@everymatrix/player-account-gaming-limits-group-edit 1.65.2 → 1.65.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/components/PlayerAccountGamingLimitsConfirmationModal-DT5Y2gCB.js +4852 -0
  2. package/components/PlayerAccountGamingLimitsConfirmationModal-DkEkFkSs.cjs +21 -0
  3. package/components/{PlayerAccountGamingLimitsConfirmationModal-CcypFBEg.js → PlayerAccountGamingLimitsConfirmationModal-rnfl53qp.js} +1560 -1595
  4. package/components/PlayerAccountGamingLimitsGroupEdit-BKWoEXUd.cjs +1 -0
  5. package/components/{PlayerAccountGamingLimitsGroupEdit-Bj64v19X.js → PlayerAccountGamingLimitsGroupEdit-D7ZhgIQn.js} +390 -388
  6. package/components/{PlayerAccountGamingLimitsGroupEdit-CWy0VE0e.js → PlayerAccountGamingLimitsGroupEdit-DFPbnVtf.js} +388 -386
  7. package/components/{PlayerAccountGamingLimitsPopup-BMYkuQKt.js → PlayerAccountGamingLimitsPopup-3-k3_WPP.js} +26 -26
  8. package/components/{PlayerAccountGamingLimitsPopup-BhlhhddY.cjs → PlayerAccountGamingLimitsPopup-CeT2c12X.cjs} +1 -1
  9. package/components/{PlayerAccountGamingLimitsPopup-55-IEbr5.js → PlayerAccountGamingLimitsPopup-tTjXmkaa.js} +30 -30
  10. package/components/{PlayerAccountModal-CHdyT8ES.js → PlayerAccountModal-BrzLaYAb.js} +27 -27
  11. package/components/{PlayerAccountModal-DD4JQR4E.cjs → PlayerAccountModal-DO1sUUOW.cjs} +1 -1
  12. package/components/{PlayerAccountModal-Fz0yTv_L.js → PlayerAccountModal-DTxRhSso.js} +27 -27
  13. package/es2015/player-account-gaming-limits-group-edit.cjs +1 -1
  14. package/es2015/player-account-gaming-limits-group-edit.js +1 -1
  15. package/esnext/player-account-gaming-limits-group-edit.js +1 -1
  16. package/package.json +1 -1
  17. package/components/PlayerAccountGamingLimitsConfirmationModal-DPlt6mFk.cjs +0 -21
  18. package/components/PlayerAccountGamingLimitsConfirmationModal-knclXBnO.js +0 -4887
  19. package/components/PlayerAccountGamingLimitsGroupEdit-MbTaZ7rO.cjs +0 -1
@@ -0,0 +1,4852 @@
1
+ var An = Object.defineProperty, Pn = Object.defineProperties;
2
+ var Ln = Object.getOwnPropertyDescriptors;
3
+ var lt = Object.getOwnPropertySymbols;
4
+ var On = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable;
5
+ var Ae = (e, t, n) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ On.call(t, n) && Ae(e, n, t[n]);
8
+ if (lt)
9
+ for (var n of lt(t))
10
+ In.call(t, n) && Ae(e, n, t[n]);
11
+ return e;
12
+ }, ft = (e, t) => Pn(e, Ln(t));
13
+ var O = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var ct = (e, t, n) => new Promise((r, i) => {
15
+ var o = (l) => {
16
+ try {
17
+ s(n.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, a = (l) => {
22
+ try {
23
+ s(n.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
28
+ s((n = n.apply(e, t)).next());
29
+ });
30
+ function I() {
31
+ }
32
+ const Mn = (e) => e;
33
+ function Nn(e, t) {
34
+ for (const n in t)
35
+ e[n] = t[n];
36
+ return (
37
+ /** @type {T & S} */
38
+ e
39
+ );
40
+ }
41
+ function Dt(e) {
42
+ return e();
43
+ }
44
+ function mt() {
45
+ return /* @__PURE__ */ Object.create(null);
46
+ }
47
+ function D(e) {
48
+ e.forEach(Dt);
49
+ }
50
+ function we(e) {
51
+ return typeof e == "function";
52
+ }
53
+ function Ft(e, t) {
54
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
+ }
56
+ function $n(e) {
57
+ return Object.keys(e).length === 0;
58
+ }
59
+ function jt(e, ...t) {
60
+ if (e == null) {
61
+ for (const r of t)
62
+ r(void 0);
63
+ return I;
64
+ }
65
+ const n = e.subscribe(...t);
66
+ return n.unsubscribe ? () => n.unsubscribe() : n;
67
+ }
68
+ function Rn(e, t, n) {
69
+ e.$$.on_destroy.push(jt(t, n));
70
+ }
71
+ function Gn(e, t, n, r) {
72
+ if (e) {
73
+ const i = kt(e, t, n, r);
74
+ return e[0](i);
75
+ }
76
+ }
77
+ function kt(e, t, n, r) {
78
+ return e[1] && r ? Nn(n.ctx.slice(), e[1](r(t))) : n.ctx;
79
+ }
80
+ function Un(e, t, n, r) {
81
+ if (e[2] && r) {
82
+ const i = e[2](r(n));
83
+ if (t.dirty === void 0)
84
+ return i;
85
+ if (typeof i == "object") {
86
+ const o = [], a = Math.max(t.dirty.length, i.length);
87
+ for (let s = 0; s < a; s += 1)
88
+ o[s] = t.dirty[s] | i[s];
89
+ return o;
90
+ }
91
+ return t.dirty | i;
92
+ }
93
+ return t.dirty;
94
+ }
95
+ function Dn(e, t, n, r, i, o) {
96
+ if (i) {
97
+ const a = kt(t, n, r, o);
98
+ e.p(a, i);
99
+ }
100
+ }
101
+ function Fn(e) {
102
+ if (e.ctx.length > 32) {
103
+ const t = [], n = e.ctx.length / 32;
104
+ for (let r = 0; r < n; r++)
105
+ t[r] = -1;
106
+ return t;
107
+ }
108
+ return -1;
109
+ }
110
+ const Vt = typeof window != "undefined";
111
+ let jn = Vt ? () => window.performance.now() : () => Date.now(), nt = Vt ? (e) => requestAnimationFrame(e) : I;
112
+ const z = /* @__PURE__ */ new Set();
113
+ function Xt(e) {
114
+ z.forEach((t) => {
115
+ t.c(e) || (z.delete(t), t.f());
116
+ }), z.size !== 0 && nt(Xt);
117
+ }
118
+ function kn(e) {
119
+ let t;
120
+ return z.size === 0 && nt(Xt), {
121
+ promise: new Promise((n) => {
122
+ z.add(t = { c: e, f: n });
123
+ }),
124
+ abort() {
125
+ z.delete(t);
126
+ }
127
+ };
128
+ }
129
+ function P(e, t) {
130
+ e.appendChild(t);
131
+ }
132
+ function Vn(e, t, n) {
133
+ const r = rt(e);
134
+ if (!r.getElementById(t)) {
135
+ const i = M("style");
136
+ i.id = t, i.textContent = n, zt(r, i);
137
+ }
138
+ }
139
+ function rt(e) {
140
+ if (!e)
141
+ return document;
142
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
143
+ return t && /** @type {ShadowRoot} */
144
+ t.host ? (
145
+ /** @type {ShadowRoot} */
146
+ t
147
+ ) : e.ownerDocument;
148
+ }
149
+ function Xn(e) {
150
+ const t = M("style");
151
+ return t.textContent = "/* empty */", zt(rt(e), t), t.sheet;
152
+ }
153
+ function zt(e, t) {
154
+ return P(
155
+ /** @type {Document} */
156
+ e.head || e,
157
+ t
158
+ ), t.sheet;
159
+ }
160
+ function it(e, t, n) {
161
+ e.insertBefore(t, n || null);
162
+ }
163
+ function le(e) {
164
+ e.parentNode && e.parentNode.removeChild(e);
165
+ }
166
+ function Ao(e, t) {
167
+ for (let n = 0; n < e.length; n += 1)
168
+ e[n] && e[n].d(t);
169
+ }
170
+ function M(e) {
171
+ return document.createElement(e);
172
+ }
173
+ function dt(e) {
174
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
175
+ }
176
+ function ie(e) {
177
+ return document.createTextNode(e);
178
+ }
179
+ function Pe() {
180
+ return ie(" ");
181
+ }
182
+ function Po() {
183
+ return ie("");
184
+ }
185
+ function Le(e, t, n, r) {
186
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
187
+ }
188
+ function Lo(e) {
189
+ return function(t) {
190
+ return t.preventDefault(), e.call(this, t);
191
+ };
192
+ }
193
+ function H(e, t, n) {
194
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
195
+ }
196
+ function Oo(e, t, n) {
197
+ const r = t.toLowerCase();
198
+ r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : H(e, t, n);
199
+ }
200
+ function Io(e) {
201
+ return e === "" ? null : +e;
202
+ }
203
+ function zn(e) {
204
+ return Array.from(e.childNodes);
205
+ }
206
+ function Oe(e, t) {
207
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
208
+ t);
209
+ }
210
+ function Mo(e, t) {
211
+ e.value = t == null ? "" : t;
212
+ }
213
+ function No(e, t, n) {
214
+ for (let r = 0; r < e.options.length; r += 1) {
215
+ const i = e.options[r];
216
+ if (i.__value === t) {
217
+ i.selected = !0;
218
+ return;
219
+ }
220
+ }
221
+ (!n || t !== void 0) && (e.selectedIndex = -1);
222
+ }
223
+ function $o(e) {
224
+ const t = e.querySelector(":checked");
225
+ return t && t.__value;
226
+ }
227
+ function Wn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
228
+ return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
229
+ }
230
+ function Zn(e) {
231
+ const t = {};
232
+ return e.childNodes.forEach(
233
+ /** @param {Element} node */
234
+ (n) => {
235
+ t[n.slot || "default"] = !0;
236
+ }
237
+ ), t;
238
+ }
239
+ const ye = /* @__PURE__ */ new Map();
240
+ let ve = 0;
241
+ function Qn(e) {
242
+ let t = 5381, n = e.length;
243
+ for (; n--; )
244
+ t = (t << 5) - t ^ e.charCodeAt(n);
245
+ return t >>> 0;
246
+ }
247
+ function Jn(e, t) {
248
+ const n = { stylesheet: Xn(t), rules: {} };
249
+ return ye.set(e, n), n;
250
+ }
251
+ function pt(e, t, n, r, i, o, a, s = 0) {
252
+ const l = 16.666 / r;
253
+ let u = `{
254
+ `;
255
+ for (let v = 0; v <= 1; v += l) {
256
+ const T = t + (n - t) * o(v);
257
+ u += v * 100 + `%{${a(T, 1 - T)}}
258
+ `;
259
+ }
260
+ const h = u + `100% {${a(n, 1 - n)}}
261
+ }`, f = `__svelte_${Qn(h)}_${s}`, c = rt(e), { stylesheet: d, rules: m } = ye.get(c) || Jn(c, e);
262
+ m[f] || (m[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
263
+ const p = e.style.animation || "";
264
+ return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, ve += 1, f;
265
+ }
266
+ function qn(e, t) {
267
+ const n = (e.style.animation || "").split(", "), r = n.filter(
268
+ t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
269
+ // remove all Svelte animations
270
+ ), i = n.length - r.length;
271
+ i && (e.style.animation = r.join(", "), ve -= i, ve || Yn());
272
+ }
273
+ function Yn() {
274
+ nt(() => {
275
+ ve || (ye.forEach((e) => {
276
+ const { ownerNode: t } = e.stylesheet;
277
+ t && le(t);
278
+ }), ye.clear());
279
+ });
280
+ }
281
+ let se;
282
+ function oe(e) {
283
+ se = e;
284
+ }
285
+ function Kn() {
286
+ if (!se)
287
+ throw new Error("Function called outside component initialization");
288
+ return se;
289
+ }
290
+ function er(e) {
291
+ Kn().$$.on_mount.push(e);
292
+ }
293
+ const X = [], Fe = [];
294
+ let W = [];
295
+ const bt = [], tr = /* @__PURE__ */ Promise.resolve();
296
+ let je = !1;
297
+ function nr() {
298
+ je || (je = !0, tr.then(N));
299
+ }
300
+ function xe(e) {
301
+ W.push(e);
302
+ }
303
+ const Ie = /* @__PURE__ */ new Set();
304
+ let k = 0;
305
+ function N() {
306
+ if (k !== 0)
307
+ return;
308
+ const e = se;
309
+ do {
310
+ try {
311
+ for (; k < X.length; ) {
312
+ const t = X[k];
313
+ k++, oe(t), rr(t.$$);
314
+ }
315
+ } catch (t) {
316
+ throw X.length = 0, k = 0, t;
317
+ }
318
+ for (oe(null), X.length = 0, k = 0; Fe.length; )
319
+ Fe.pop()();
320
+ for (let t = 0; t < W.length; t += 1) {
321
+ const n = W[t];
322
+ Ie.has(n) || (Ie.add(n), n());
323
+ }
324
+ W.length = 0;
325
+ } while (X.length);
326
+ for (; bt.length; )
327
+ bt.pop()();
328
+ je = !1, Ie.clear(), oe(e);
329
+ }
330
+ function rr(e) {
331
+ if (e.fragment !== null) {
332
+ e.update(), D(e.before_update);
333
+ const t = e.dirty;
334
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(xe);
335
+ }
336
+ }
337
+ function ir(e) {
338
+ const t = [], n = [];
339
+ W.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), W = t;
340
+ }
341
+ let ne;
342
+ function or() {
343
+ return ne || (ne = Promise.resolve(), ne.then(() => {
344
+ ne = null;
345
+ })), ne;
346
+ }
347
+ function Me(e, t, n) {
348
+ e.dispatchEvent(Wn(`${t ? "intro" : "outro"}${n}`));
349
+ }
350
+ const me = /* @__PURE__ */ new Set();
351
+ let $;
352
+ function Ro() {
353
+ $ = {
354
+ r: 0,
355
+ c: [],
356
+ p: $
357
+ // parent group
358
+ };
359
+ }
360
+ function Go() {
361
+ $.r || D($.c), $ = $.p;
362
+ }
363
+ function Wt(e, t) {
364
+ e && e.i && (me.delete(e), e.i(t));
365
+ }
366
+ function sr(e, t, n, r) {
367
+ if (e && e.o) {
368
+ if (me.has(e))
369
+ return;
370
+ me.add(e), $.c.push(() => {
371
+ me.delete(e), r && (n && e.d(1), r());
372
+ }), e.o(t);
373
+ } else
374
+ r && r();
375
+ }
376
+ const ar = { duration: 0 };
377
+ function Uo(e, t, n, r) {
378
+ let o = t(e, n, { direction: "both" }), a = r ? 0 : 1, s = null, l = null, u = null, h;
379
+ function f() {
380
+ u && qn(e, u);
381
+ }
382
+ function c(m, p) {
383
+ const v = (
384
+ /** @type {Program['d']} */
385
+ m.b - a
386
+ );
387
+ return p *= Math.abs(v), {
388
+ a,
389
+ b: m.b,
390
+ d: v,
391
+ duration: p,
392
+ start: m.start,
393
+ end: m.start + p,
394
+ group: m.group
395
+ };
396
+ }
397
+ function d(m) {
398
+ const {
399
+ delay: p = 0,
400
+ duration: v = 300,
401
+ easing: T = Mn,
402
+ tick: C = I,
403
+ css: w
404
+ } = o || ar, B = {
405
+ start: jn() + p,
406
+ b: m
407
+ };
408
+ m || (B.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
409
+ e.inert, e.inert = !0)), s || l ? l = B : (w && (f(), u = pt(e, a, m, v, p, T, w)), m && C(0, 1), s = c(B, v), xe(() => Me(e, m, "start")), kn((S) => {
410
+ if (l && S > l.start && (s = c(l, v), l = null, Me(e, s.b, "start"), w && (f(), u = pt(
411
+ e,
412
+ a,
413
+ s.b,
414
+ s.duration,
415
+ 0,
416
+ T,
417
+ o.css
418
+ ))), s) {
419
+ if (S >= s.end)
420
+ C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? f() : --s.group.r || D(s.group.c)), s = null;
421
+ else if (S >= s.start) {
422
+ const _ = S - s.start;
423
+ a = s.a + s.d * T(_ / s.duration), C(a, 1 - a);
424
+ }
425
+ }
426
+ return !!(s || l);
427
+ }));
428
+ }
429
+ return {
430
+ run(m) {
431
+ we(o) ? or().then(() => {
432
+ o = o({ direction: m ? "in" : "out" }), d(m);
433
+ }) : d(m);
434
+ },
435
+ end() {
436
+ f(), s = l = null;
437
+ }
438
+ };
439
+ }
440
+ function Do(e) {
441
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
442
+ }
443
+ function ur(e, t, n) {
444
+ const { fragment: r, after_update: i } = e.$$;
445
+ r && r.m(t, n), xe(() => {
446
+ const o = e.$$.on_mount.map(Dt).filter(we);
447
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
448
+ }), i.forEach(xe);
449
+ }
450
+ function lr(e, t) {
451
+ const n = e.$$;
452
+ n.fragment !== null && (ir(n.after_update), D(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
453
+ }
454
+ function hr(e, t) {
455
+ e.$$.dirty[0] === -1 && (X.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
456
+ }
457
+ function fr(e, t, n, r, i, o, a = null, s = [-1]) {
458
+ const l = se;
459
+ oe(e);
460
+ const u = e.$$ = {
461
+ fragment: null,
462
+ ctx: [],
463
+ // state
464
+ props: o,
465
+ update: I,
466
+ not_equal: i,
467
+ bound: mt(),
468
+ // lifecycle
469
+ on_mount: [],
470
+ on_destroy: [],
471
+ on_disconnect: [],
472
+ before_update: [],
473
+ after_update: [],
474
+ context: new Map(t.context || (l ? l.$$.context : [])),
475
+ // everything else
476
+ callbacks: mt(),
477
+ dirty: s,
478
+ skip_bound: !1,
479
+ root: t.target || l.$$.root
480
+ };
481
+ a && a(u.root);
482
+ let h = !1;
483
+ if (u.ctx = n ? n(e, t.props || {}, (f, c, ...d) => {
484
+ const m = d.length ? d[0] : c;
485
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && hr(e, f)), c;
486
+ }) : [], u.update(), h = !0, D(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
487
+ if (t.hydrate) {
488
+ const f = zn(t.target);
489
+ u.fragment && u.fragment.l(f), f.forEach(le);
490
+ } else
491
+ u.fragment && u.fragment.c();
492
+ t.intro && Wt(e.$$.fragment), ur(e, t.target, t.anchor), N();
493
+ }
494
+ oe(l);
495
+ }
496
+ let Zt;
497
+ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
498
+ constructor(t, n, r) {
499
+ super();
500
+ /** The Svelte component constructor */
501
+ O(this, "$$ctor");
502
+ /** Slots */
503
+ O(this, "$$s");
504
+ /** The Svelte component instance */
505
+ O(this, "$$c");
506
+ /** Whether or not the custom element is connected */
507
+ O(this, "$$cn", !1);
508
+ /** Component props data */
509
+ O(this, "$$d", {});
510
+ /** `true` if currently in the process of reflecting component props back to attributes */
511
+ O(this, "$$r", !1);
512
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
513
+ O(this, "$$p_d", {});
514
+ /** @type {Record<string, Function[]>} Event listeners */
515
+ O(this, "$$l", {});
516
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
517
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
518
+ this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
519
+ }
520
+ addEventListener(t, n, r) {
521
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
522
+ const i = this.$$c.$on(t, n);
523
+ this.$$l_u.set(n, i);
524
+ }
525
+ super.addEventListener(t, n, r);
526
+ }
527
+ removeEventListener(t, n, r) {
528
+ if (super.removeEventListener(t, n, r), this.$$c) {
529
+ const i = this.$$l_u.get(n);
530
+ i && (i(), this.$$l_u.delete(n));
531
+ }
532
+ }
533
+ connectedCallback() {
534
+ return ct(this, null, function* () {
535
+ if (this.$$cn = !0, !this.$$c) {
536
+ let t = function(o) {
537
+ return () => {
538
+ let a;
539
+ return {
540
+ c: function() {
541
+ a = M("slot"), o !== "default" && H(a, "name", o);
542
+ },
543
+ /**
544
+ * @param {HTMLElement} target
545
+ * @param {HTMLElement} [anchor]
546
+ */
547
+ m: function(u, h) {
548
+ it(u, a, h);
549
+ },
550
+ d: function(u) {
551
+ u && le(a);
552
+ }
553
+ };
554
+ };
555
+ };
556
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
557
+ return;
558
+ const n = {}, r = Zn(this);
559
+ for (const o of this.$$s)
560
+ o in r && (n[o] = [t(o)]);
561
+ for (const o of this.attributes) {
562
+ const a = this.$$g_p(o.name);
563
+ a in this.$$d || (this.$$d[a] = de(a, o.value, this.$$p_d, "toProp"));
564
+ }
565
+ for (const o in this.$$p_d)
566
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
567
+ this.$$c = new this.$$ctor({
568
+ target: this.shadowRoot || this,
569
+ props: ft(ht({}, this.$$d), {
570
+ $$slots: n,
571
+ $$scope: {
572
+ ctx: []
573
+ }
574
+ })
575
+ });
576
+ const i = () => {
577
+ this.$$r = !0;
578
+ for (const o in this.$$p_d)
579
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
580
+ const a = de(
581
+ o,
582
+ this.$$d[o],
583
+ this.$$p_d,
584
+ "toAttribute"
585
+ );
586
+ a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
587
+ }
588
+ this.$$r = !1;
589
+ };
590
+ this.$$c.$$.after_update.push(i), i();
591
+ for (const o in this.$$l)
592
+ for (const a of this.$$l[o]) {
593
+ const s = this.$$c.$on(o, a);
594
+ this.$$l_u.set(a, s);
595
+ }
596
+ this.$$l = {};
597
+ }
598
+ });
599
+ }
600
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
601
+ // and setting attributes through setAttribute etc, this is helpful
602
+ attributeChangedCallback(t, n, r) {
603
+ var i;
604
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
605
+ }
606
+ disconnectedCallback() {
607
+ this.$$cn = !1, Promise.resolve().then(() => {
608
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
609
+ });
610
+ }
611
+ $$g_p(t) {
612
+ return Object.keys(this.$$p_d).find(
613
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
614
+ ) || t;
615
+ }
616
+ });
617
+ function de(e, t, n, r) {
618
+ var o;
619
+ const i = (o = n[e]) == null ? void 0 : o.type;
620
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
621
+ return t;
622
+ if (r === "toAttribute")
623
+ switch (i) {
624
+ case "Object":
625
+ case "Array":
626
+ return t == null ? null : JSON.stringify(t);
627
+ case "Boolean":
628
+ return t ? "" : null;
629
+ case "Number":
630
+ return t == null ? null : t;
631
+ default:
632
+ return t;
633
+ }
634
+ else
635
+ switch (i) {
636
+ case "Object":
637
+ case "Array":
638
+ return t && JSON.parse(t);
639
+ case "Boolean":
640
+ return t;
641
+ case "Number":
642
+ return t != null ? +t : t;
643
+ default:
644
+ return t;
645
+ }
646
+ }
647
+ function cr(e, t, n, r, i, o) {
648
+ let a = class extends Zt {
649
+ constructor() {
650
+ super(e, n, i), this.$$p_d = t;
651
+ }
652
+ static get observedAttributes() {
653
+ return Object.keys(t).map(
654
+ (s) => (t[s].attribute || s).toLowerCase()
655
+ );
656
+ }
657
+ };
658
+ return Object.keys(t).forEach((s) => {
659
+ Object.defineProperty(a.prototype, s, {
660
+ get() {
661
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
662
+ },
663
+ set(l) {
664
+ var u;
665
+ l = de(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
666
+ }
667
+ });
668
+ }), r.forEach((s) => {
669
+ Object.defineProperty(a.prototype, s, {
670
+ get() {
671
+ var l;
672
+ return (l = this.$$c) == null ? void 0 : l[s];
673
+ }
674
+ });
675
+ }), e.element = /** @type {any} */
676
+ a, a;
677
+ }
678
+ class mr {
679
+ constructor() {
680
+ /**
681
+ * ### PRIVATE API
682
+ *
683
+ * Do not use, may change at any time
684
+ *
685
+ * @type {any}
686
+ */
687
+ O(this, "$$");
688
+ /**
689
+ * ### PRIVATE API
690
+ *
691
+ * Do not use, may change at any time
692
+ *
693
+ * @type {any}
694
+ */
695
+ O(this, "$$set");
696
+ }
697
+ /** @returns {void} */
698
+ $destroy() {
699
+ lr(this, 1), this.$destroy = I;
700
+ }
701
+ /**
702
+ * @template {Extract<keyof Events, string>} K
703
+ * @param {K} type
704
+ * @param {((e: Events[K]) => void) | null | undefined} callback
705
+ * @returns {() => void}
706
+ */
707
+ $on(t, n) {
708
+ if (!we(n))
709
+ return I;
710
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
711
+ return r.push(n), () => {
712
+ const i = r.indexOf(n);
713
+ i !== -1 && r.splice(i, 1);
714
+ };
715
+ }
716
+ /**
717
+ * @param {Partial<Props>} props
718
+ * @returns {void}
719
+ */
720
+ $set(t) {
721
+ this.$$set && !$n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
722
+ }
723
+ }
724
+ const dr = "4";
725
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
726
+ /*! *****************************************************************************
727
+ Copyright (c) Microsoft Corporation.
728
+
729
+ Permission to use, copy, modify, and/or distribute this software for any
730
+ purpose with or without fee is hereby granted.
731
+
732
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
733
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
734
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
735
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
736
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
737
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
738
+ PERFORMANCE OF THIS SOFTWARE.
739
+ ***************************************************************************** */
740
+ var ke = function(e, t) {
741
+ return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
742
+ n.__proto__ = r;
743
+ } || function(n, r) {
744
+ for (var i in r)
745
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
746
+ }, ke(e, t);
747
+ };
748
+ function G(e, t) {
749
+ if (typeof t != "function" && t !== null)
750
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
751
+ ke(e, t);
752
+ function n() {
753
+ this.constructor = e;
754
+ }
755
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
756
+ }
757
+ var x = function() {
758
+ return x = Object.assign || function(t) {
759
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
760
+ n = arguments[r];
761
+ for (var o in n)
762
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
763
+ }
764
+ return t;
765
+ }, x.apply(this, arguments);
766
+ };
767
+ function pr(e, t) {
768
+ var n = {};
769
+ for (var r in e)
770
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
771
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
772
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
773
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
774
+ return n;
775
+ }
776
+ function Ve(e) {
777
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
778
+ if (n)
779
+ return n.call(e);
780
+ if (e && typeof e.length == "number")
781
+ return {
782
+ next: function() {
783
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
784
+ }
785
+ };
786
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
787
+ }
788
+ function Xe(e, t) {
789
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
790
+ if (!n)
791
+ return e;
792
+ var r = n.call(e), i, o = [], a;
793
+ try {
794
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
795
+ o.push(i.value);
796
+ } catch (s) {
797
+ a = { error: s };
798
+ } finally {
799
+ try {
800
+ i && !i.done && (n = r.return) && n.call(r);
801
+ } finally {
802
+ if (a)
803
+ throw a.error;
804
+ }
805
+ }
806
+ return o;
807
+ }
808
+ function Z(e, t, n) {
809
+ if (n || arguments.length === 2)
810
+ for (var r = 0, i = t.length, o; r < i; r++)
811
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
812
+ return e.concat(o || t);
813
+ }
814
+ function R(e) {
815
+ return typeof e == "function";
816
+ }
817
+ function Qt(e) {
818
+ var t = function(r) {
819
+ Error.call(r), r.stack = new Error().stack;
820
+ }, n = e(t);
821
+ return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
822
+ }
823
+ var Ne = Qt(function(e) {
824
+ return function(n) {
825
+ e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
826
+ ` + n.map(function(r, i) {
827
+ return i + 1 + ") " + r.toString();
828
+ }).join(`
829
+ `) : "", this.name = "UnsubscriptionError", this.errors = n;
830
+ };
831
+ });
832
+ function ze(e, t) {
833
+ if (e) {
834
+ var n = e.indexOf(t);
835
+ 0 <= n && e.splice(n, 1);
836
+ }
837
+ }
838
+ var Se = function() {
839
+ function e(t) {
840
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
841
+ }
842
+ return e.prototype.unsubscribe = function() {
843
+ var t, n, r, i, o;
844
+ if (!this.closed) {
845
+ this.closed = !0;
846
+ var a = this._parentage;
847
+ if (a)
848
+ if (this._parentage = null, Array.isArray(a))
849
+ try {
850
+ for (var s = Ve(a), l = s.next(); !l.done; l = s.next()) {
851
+ var u = l.value;
852
+ u.remove(this);
853
+ }
854
+ } catch (p) {
855
+ t = { error: p };
856
+ } finally {
857
+ try {
858
+ l && !l.done && (n = s.return) && n.call(s);
859
+ } finally {
860
+ if (t)
861
+ throw t.error;
862
+ }
863
+ }
864
+ else
865
+ a.remove(this);
866
+ var h = this.initialTeardown;
867
+ if (R(h))
868
+ try {
869
+ h();
870
+ } catch (p) {
871
+ o = p instanceof Ne ? p.errors : [p];
872
+ }
873
+ var f = this._finalizers;
874
+ if (f) {
875
+ this._finalizers = null;
876
+ try {
877
+ for (var c = Ve(f), d = c.next(); !d.done; d = c.next()) {
878
+ var m = d.value;
879
+ try {
880
+ gt(m);
881
+ } catch (p) {
882
+ o = o != null ? o : [], p instanceof Ne ? o = Z(Z([], Xe(o)), Xe(p.errors)) : o.push(p);
883
+ }
884
+ }
885
+ } catch (p) {
886
+ r = { error: p };
887
+ } finally {
888
+ try {
889
+ d && !d.done && (i = c.return) && i.call(c);
890
+ } finally {
891
+ if (r)
892
+ throw r.error;
893
+ }
894
+ }
895
+ }
896
+ if (o)
897
+ throw new Ne(o);
898
+ }
899
+ }, e.prototype.add = function(t) {
900
+ var n;
901
+ if (t && t !== this)
902
+ if (this.closed)
903
+ gt(t);
904
+ else {
905
+ if (t instanceof e) {
906
+ if (t.closed || t._hasParent(this))
907
+ return;
908
+ t._addParent(this);
909
+ }
910
+ (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
911
+ }
912
+ }, e.prototype._hasParent = function(t) {
913
+ var n = this._parentage;
914
+ return n === t || Array.isArray(n) && n.includes(t);
915
+ }, e.prototype._addParent = function(t) {
916
+ var n = this._parentage;
917
+ this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
918
+ }, e.prototype._removeParent = function(t) {
919
+ var n = this._parentage;
920
+ n === t ? this._parentage = null : Array.isArray(n) && ze(n, t);
921
+ }, e.prototype.remove = function(t) {
922
+ var n = this._finalizers;
923
+ n && ze(n, t), t instanceof e && t._removeParent(this);
924
+ }, e.EMPTY = function() {
925
+ var t = new e();
926
+ return t.closed = !0, t;
927
+ }(), e;
928
+ }(), Jt = Se.EMPTY;
929
+ function qt(e) {
930
+ return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
931
+ }
932
+ function gt(e) {
933
+ R(e) ? e() : e.unsubscribe();
934
+ }
935
+ var br = {
936
+ onUnhandledError: null,
937
+ onStoppedNotification: null,
938
+ Promise: void 0,
939
+ useDeprecatedSynchronousErrorHandling: !1,
940
+ useDeprecatedNextContext: !1
941
+ }, gr = {
942
+ setTimeout: function(e, t) {
943
+ for (var n = [], r = 2; r < arguments.length; r++)
944
+ n[r - 2] = arguments[r];
945
+ return setTimeout.apply(void 0, Z([e, t], Xe(n)));
946
+ },
947
+ clearTimeout: function(e) {
948
+ return clearTimeout(e);
949
+ },
950
+ delegate: void 0
951
+ };
952
+ function yr(e) {
953
+ gr.setTimeout(function() {
954
+ throw e;
955
+ });
956
+ }
957
+ function yt() {
958
+ }
959
+ function pe(e) {
960
+ e();
961
+ }
962
+ var Yt = function(e) {
963
+ G(t, e);
964
+ function t(n) {
965
+ var r = e.call(this) || this;
966
+ return r.isStopped = !1, n ? (r.destination = n, qt(n) && n.add(r)) : r.destination = _r, r;
967
+ }
968
+ return t.create = function(n, r, i) {
969
+ return new We(n, r, i);
970
+ }, t.prototype.next = function(n) {
971
+ this.isStopped || this._next(n);
972
+ }, t.prototype.error = function(n) {
973
+ this.isStopped || (this.isStopped = !0, this._error(n));
974
+ }, t.prototype.complete = function() {
975
+ this.isStopped || (this.isStopped = !0, this._complete());
976
+ }, t.prototype.unsubscribe = function() {
977
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
978
+ }, t.prototype._next = function(n) {
979
+ this.destination.next(n);
980
+ }, t.prototype._error = function(n) {
981
+ try {
982
+ this.destination.error(n);
983
+ } finally {
984
+ this.unsubscribe();
985
+ }
986
+ }, t.prototype._complete = function() {
987
+ try {
988
+ this.destination.complete();
989
+ } finally {
990
+ this.unsubscribe();
991
+ }
992
+ }, t;
993
+ }(Se), vr = function() {
994
+ function e(t) {
995
+ this.partialObserver = t;
996
+ }
997
+ return e.prototype.next = function(t) {
998
+ var n = this.partialObserver;
999
+ if (n.next)
1000
+ try {
1001
+ n.next(t);
1002
+ } catch (r) {
1003
+ fe(r);
1004
+ }
1005
+ }, e.prototype.error = function(t) {
1006
+ var n = this.partialObserver;
1007
+ if (n.error)
1008
+ try {
1009
+ n.error(t);
1010
+ } catch (r) {
1011
+ fe(r);
1012
+ }
1013
+ else
1014
+ fe(t);
1015
+ }, e.prototype.complete = function() {
1016
+ var t = this.partialObserver;
1017
+ if (t.complete)
1018
+ try {
1019
+ t.complete();
1020
+ } catch (n) {
1021
+ fe(n);
1022
+ }
1023
+ }, e;
1024
+ }(), We = function(e) {
1025
+ G(t, e);
1026
+ function t(n, r, i) {
1027
+ var o = e.call(this) || this, a;
1028
+ return R(n) || !n ? a = {
1029
+ next: n != null ? n : void 0,
1030
+ error: r != null ? r : void 0,
1031
+ complete: i != null ? i : void 0
1032
+ } : a = n, o.destination = new vr(a), o;
1033
+ }
1034
+ return t;
1035
+ }(Yt);
1036
+ function fe(e) {
1037
+ yr(e);
1038
+ }
1039
+ function xr(e) {
1040
+ throw e;
1041
+ }
1042
+ var _r = {
1043
+ closed: !0,
1044
+ next: yt,
1045
+ error: xr,
1046
+ complete: yt
1047
+ }, Er = function() {
1048
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
1049
+ }();
1050
+ function wr(e) {
1051
+ return e;
1052
+ }
1053
+ function Sr(e) {
1054
+ return e.length === 0 ? wr : e.length === 1 ? e[0] : function(n) {
1055
+ return e.reduce(function(r, i) {
1056
+ return i(r);
1057
+ }, n);
1058
+ };
1059
+ }
1060
+ var vt = function() {
1061
+ function e(t) {
1062
+ t && (this._subscribe = t);
1063
+ }
1064
+ return e.prototype.lift = function(t) {
1065
+ var n = new e();
1066
+ return n.source = this, n.operator = t, n;
1067
+ }, e.prototype.subscribe = function(t, n, r) {
1068
+ var i = this, o = Hr(t) ? t : new We(t, n, r);
1069
+ return pe(function() {
1070
+ var a = i, s = a.operator, l = a.source;
1071
+ o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
1072
+ }), o;
1073
+ }, e.prototype._trySubscribe = function(t) {
1074
+ try {
1075
+ return this._subscribe(t);
1076
+ } catch (n) {
1077
+ t.error(n);
1078
+ }
1079
+ }, e.prototype.forEach = function(t, n) {
1080
+ var r = this;
1081
+ return n = xt(n), new n(function(i, o) {
1082
+ var a = new We({
1083
+ next: function(s) {
1084
+ try {
1085
+ t(s);
1086
+ } catch (l) {
1087
+ o(l), a.unsubscribe();
1088
+ }
1089
+ },
1090
+ error: o,
1091
+ complete: i
1092
+ });
1093
+ r.subscribe(a);
1094
+ });
1095
+ }, e.prototype._subscribe = function(t) {
1096
+ var n;
1097
+ return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
1098
+ }, e.prototype[Er] = function() {
1099
+ return this;
1100
+ }, e.prototype.pipe = function() {
1101
+ for (var t = [], n = 0; n < arguments.length; n++)
1102
+ t[n] = arguments[n];
1103
+ return Sr(t)(this);
1104
+ }, e.prototype.toPromise = function(t) {
1105
+ var n = this;
1106
+ return t = xt(t), new t(function(r, i) {
1107
+ var o;
1108
+ n.subscribe(function(a) {
1109
+ return o = a;
1110
+ }, function(a) {
1111
+ return i(a);
1112
+ }, function() {
1113
+ return r(o);
1114
+ });
1115
+ });
1116
+ }, e.create = function(t) {
1117
+ return new e(t);
1118
+ }, e;
1119
+ }();
1120
+ function xt(e) {
1121
+ var t;
1122
+ return (t = e != null ? e : br.Promise) !== null && t !== void 0 ? t : Promise;
1123
+ }
1124
+ function Tr(e) {
1125
+ return e && R(e.next) && R(e.error) && R(e.complete);
1126
+ }
1127
+ function Hr(e) {
1128
+ return e && e instanceof Yt || Tr(e) && qt(e);
1129
+ }
1130
+ var Cr = Qt(function(e) {
1131
+ return function() {
1132
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1133
+ };
1134
+ }), Kt = function(e) {
1135
+ G(t, e);
1136
+ function t() {
1137
+ var n = e.call(this) || this;
1138
+ return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
1139
+ }
1140
+ return t.prototype.lift = function(n) {
1141
+ var r = new _t(this, this);
1142
+ return r.operator = n, r;
1143
+ }, t.prototype._throwIfClosed = function() {
1144
+ if (this.closed)
1145
+ throw new Cr();
1146
+ }, t.prototype.next = function(n) {
1147
+ var r = this;
1148
+ pe(function() {
1149
+ var i, o;
1150
+ if (r._throwIfClosed(), !r.isStopped) {
1151
+ r.currentObservers || (r.currentObservers = Array.from(r.observers));
1152
+ try {
1153
+ for (var a = Ve(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
1154
+ var l = s.value;
1155
+ l.next(n);
1156
+ }
1157
+ } catch (u) {
1158
+ i = { error: u };
1159
+ } finally {
1160
+ try {
1161
+ s && !s.done && (o = a.return) && o.call(a);
1162
+ } finally {
1163
+ if (i)
1164
+ throw i.error;
1165
+ }
1166
+ }
1167
+ }
1168
+ });
1169
+ }, t.prototype.error = function(n) {
1170
+ var r = this;
1171
+ pe(function() {
1172
+ if (r._throwIfClosed(), !r.isStopped) {
1173
+ r.hasError = r.isStopped = !0, r.thrownError = n;
1174
+ for (var i = r.observers; i.length; )
1175
+ i.shift().error(n);
1176
+ }
1177
+ });
1178
+ }, t.prototype.complete = function() {
1179
+ var n = this;
1180
+ pe(function() {
1181
+ if (n._throwIfClosed(), !n.isStopped) {
1182
+ n.isStopped = !0;
1183
+ for (var r = n.observers; r.length; )
1184
+ r.shift().complete();
1185
+ }
1186
+ });
1187
+ }, t.prototype.unsubscribe = function() {
1188
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1189
+ }, Object.defineProperty(t.prototype, "observed", {
1190
+ get: function() {
1191
+ var n;
1192
+ return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
1193
+ },
1194
+ enumerable: !1,
1195
+ configurable: !0
1196
+ }), t.prototype._trySubscribe = function(n) {
1197
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
1198
+ }, t.prototype._subscribe = function(n) {
1199
+ return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
1200
+ }, t.prototype._innerSubscribe = function(n) {
1201
+ var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1202
+ return o || a ? Jt : (this.currentObservers = null, s.push(n), new Se(function() {
1203
+ r.currentObservers = null, ze(s, n);
1204
+ }));
1205
+ }, t.prototype._checkFinalizedStatuses = function(n) {
1206
+ var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
1207
+ i ? n.error(o) : a && n.complete();
1208
+ }, t.prototype.asObservable = function() {
1209
+ var n = new vt();
1210
+ return n.source = this, n;
1211
+ }, t.create = function(n, r) {
1212
+ return new _t(n, r);
1213
+ }, t;
1214
+ }(vt), _t = function(e) {
1215
+ G(t, e);
1216
+ function t(n, r) {
1217
+ var i = e.call(this) || this;
1218
+ return i.destination = n, i.source = r, i;
1219
+ }
1220
+ return t.prototype.next = function(n) {
1221
+ var r, i;
1222
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
1223
+ }, t.prototype.error = function(n) {
1224
+ var r, i;
1225
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
1226
+ }, t.prototype.complete = function() {
1227
+ var n, r;
1228
+ (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
1229
+ }, t.prototype._subscribe = function(n) {
1230
+ var r, i;
1231
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Jt;
1232
+ }, t;
1233
+ }(Kt), en = {
1234
+ now: function() {
1235
+ return (en.delegate || Date).now();
1236
+ },
1237
+ delegate: void 0
1238
+ }, Br = function(e) {
1239
+ G(t, e);
1240
+ function t(n, r, i) {
1241
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = en);
1242
+ var o = e.call(this) || this;
1243
+ return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
1244
+ }
1245
+ return t.prototype.next = function(n) {
1246
+ var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, l = r._windowTime;
1247
+ i || (o.push(n), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
1248
+ }, t.prototype._subscribe = function(n) {
1249
+ this._throwIfClosed(), this._trimBuffer();
1250
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !n.closed; l += o ? 1 : 2)
1251
+ n.next(s[l]);
1252
+ return this._checkFinalizedStatuses(n), r;
1253
+ }, t.prototype._trimBuffer = function() {
1254
+ var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
1255
+ if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1256
+ for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
1257
+ u = h;
1258
+ u && o.splice(0, u + 1);
1259
+ }
1260
+ }, t;
1261
+ }(Kt);
1262
+ const Et = [], wt = {}, Ar = (e, t = 0) => {
1263
+ if (Et.indexOf(e) == -1) {
1264
+ const n = new Br(t);
1265
+ wt[e] = n, Et.push(e);
1266
+ }
1267
+ return wt[e];
1268
+ }, V = [];
1269
+ function Pr(e, t) {
1270
+ return {
1271
+ subscribe: Te(e, t).subscribe
1272
+ };
1273
+ }
1274
+ function Te(e, t = I) {
1275
+ let n;
1276
+ const r = /* @__PURE__ */ new Set();
1277
+ function i(s) {
1278
+ if (Ft(e, s) && (e = s, n)) {
1279
+ const l = !V.length;
1280
+ for (const u of r)
1281
+ u[1](), V.push(u, e);
1282
+ if (l) {
1283
+ for (let u = 0; u < V.length; u += 2)
1284
+ V[u][0](V[u + 1]);
1285
+ V.length = 0;
1286
+ }
1287
+ }
1288
+ }
1289
+ function o(s) {
1290
+ i(s(e));
1291
+ }
1292
+ function a(s, l = I) {
1293
+ const u = [s, l];
1294
+ return r.add(u), r.size === 1 && (n = t(i, o) || I), s(e), () => {
1295
+ r.delete(u), r.size === 0 && n && (n(), n = null);
1296
+ };
1297
+ }
1298
+ return { set: i, update: o, subscribe: a };
1299
+ }
1300
+ function K(e, t, n) {
1301
+ const r = !Array.isArray(e), i = r ? [e] : e;
1302
+ if (!i.every(Boolean))
1303
+ throw new Error("derived() expects stores as input, got a falsy value");
1304
+ const o = t.length < 2;
1305
+ return Pr(n, (a, s) => {
1306
+ let l = !1;
1307
+ const u = [];
1308
+ let h = 0, f = I;
1309
+ const c = () => {
1310
+ if (h)
1311
+ return;
1312
+ f();
1313
+ const m = t(r ? u[0] : u, a, s);
1314
+ o ? a(m) : f = we(m) ? m : I;
1315
+ }, d = i.map(
1316
+ (m, p) => jt(
1317
+ m,
1318
+ (v) => {
1319
+ u[p] = v, h &= ~(1 << p), l && c();
1320
+ },
1321
+ () => {
1322
+ h |= 1 << p;
1323
+ }
1324
+ )
1325
+ );
1326
+ return l = !0, c(), function() {
1327
+ D(d), f(), l = !1;
1328
+ };
1329
+ });
1330
+ }
1331
+ function Lr(e) {
1332
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1333
+ }
1334
+ var Or = function(t) {
1335
+ return Ir(t) && !Mr(t);
1336
+ };
1337
+ function Ir(e) {
1338
+ return !!e && typeof e == "object";
1339
+ }
1340
+ function Mr(e) {
1341
+ var t = Object.prototype.toString.call(e);
1342
+ return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
1343
+ }
1344
+ var Nr = typeof Symbol == "function" && Symbol.for, $r = Nr ? Symbol.for("react.element") : 60103;
1345
+ function Rr(e) {
1346
+ return e.$$typeof === $r;
1347
+ }
1348
+ function Gr(e) {
1349
+ return Array.isArray(e) ? [] : {};
1350
+ }
1351
+ function ae(e, t) {
1352
+ return t.clone !== !1 && t.isMergeableObject(e) ? Q(Gr(e), e, t) : e;
1353
+ }
1354
+ function Ur(e, t, n) {
1355
+ return e.concat(t).map(function(r) {
1356
+ return ae(r, n);
1357
+ });
1358
+ }
1359
+ function Dr(e, t) {
1360
+ if (!t.customMerge)
1361
+ return Q;
1362
+ var n = t.customMerge(e);
1363
+ return typeof n == "function" ? n : Q;
1364
+ }
1365
+ function Fr(e) {
1366
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1367
+ return Object.propertyIsEnumerable.call(e, t);
1368
+ }) : [];
1369
+ }
1370
+ function St(e) {
1371
+ return Object.keys(e).concat(Fr(e));
1372
+ }
1373
+ function tn(e, t) {
1374
+ try {
1375
+ return t in e;
1376
+ } catch (n) {
1377
+ return !1;
1378
+ }
1379
+ }
1380
+ function jr(e, t) {
1381
+ return tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1382
+ }
1383
+ function kr(e, t, n) {
1384
+ var r = {};
1385
+ return n.isMergeableObject(e) && St(e).forEach(function(i) {
1386
+ r[i] = ae(e[i], n);
1387
+ }), St(t).forEach(function(i) {
1388
+ jr(e, i) || (tn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Dr(i, n)(e[i], t[i], n) : r[i] = ae(t[i], n));
1389
+ }), r;
1390
+ }
1391
+ function Q(e, t, n) {
1392
+ n = n || {}, n.arrayMerge = n.arrayMerge || Ur, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = ae;
1393
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1394
+ return o ? r ? n.arrayMerge(e, t, n) : kr(e, t, n) : ae(t, n);
1395
+ }
1396
+ Q.all = function(t, n) {
1397
+ if (!Array.isArray(t))
1398
+ throw new Error("first argument should be an array");
1399
+ return t.reduce(function(r, i) {
1400
+ return Q(r, i, n);
1401
+ }, {});
1402
+ };
1403
+ var Vr = Q, Xr = Vr;
1404
+ const zr = /* @__PURE__ */ Lr(Xr);
1405
+ function $e(e, t) {
1406
+ var n = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Zr;
1407
+ return i(e, {
1408
+ cache: n,
1409
+ serializer: r
1410
+ });
1411
+ }
1412
+ function Wr(e) {
1413
+ return e == null || typeof e == "number" || typeof e == "boolean";
1414
+ }
1415
+ function nn(e, t, n, r) {
1416
+ var i = Wr(r) ? r : n(r), o = t.get(i);
1417
+ return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
1418
+ }
1419
+ function rn(e, t, n) {
1420
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1421
+ return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
1422
+ }
1423
+ function ot(e, t, n, r, i) {
1424
+ return n.bind(t, e, r, i);
1425
+ }
1426
+ function Zr(e, t) {
1427
+ var n = e.length === 1 ? nn : rn;
1428
+ return ot(e, this, n, t.cache.create(), t.serializer);
1429
+ }
1430
+ function Qr(e, t) {
1431
+ return ot(e, this, rn, t.cache.create(), t.serializer);
1432
+ }
1433
+ function Jr(e, t) {
1434
+ return ot(e, this, nn, t.cache.create(), t.serializer);
1435
+ }
1436
+ var qr = function() {
1437
+ return JSON.stringify(arguments);
1438
+ }, Yr = (
1439
+ /** @class */
1440
+ function() {
1441
+ function e() {
1442
+ this.cache = /* @__PURE__ */ Object.create(null);
1443
+ }
1444
+ return e.prototype.get = function(t) {
1445
+ return this.cache[t];
1446
+ }, e.prototype.set = function(t, n) {
1447
+ this.cache[t] = n;
1448
+ }, e;
1449
+ }()
1450
+ ), Kr = {
1451
+ create: function() {
1452
+ return new Yr();
1453
+ }
1454
+ }, Re = {
1455
+ variadic: Qr,
1456
+ monadic: Jr
1457
+ }, b;
1458
+ (function(e) {
1459
+ 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";
1460
+ })(b || (b = {}));
1461
+ var E;
1462
+ (function(e) {
1463
+ 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";
1464
+ })(E || (E = {}));
1465
+ var J;
1466
+ (function(e) {
1467
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1468
+ })(J || (J = {}));
1469
+ function Tt(e) {
1470
+ return e.type === E.literal;
1471
+ }
1472
+ function ei(e) {
1473
+ return e.type === E.argument;
1474
+ }
1475
+ function on(e) {
1476
+ return e.type === E.number;
1477
+ }
1478
+ function sn(e) {
1479
+ return e.type === E.date;
1480
+ }
1481
+ function an(e) {
1482
+ return e.type === E.time;
1483
+ }
1484
+ function un(e) {
1485
+ return e.type === E.select;
1486
+ }
1487
+ function ln(e) {
1488
+ return e.type === E.plural;
1489
+ }
1490
+ function ti(e) {
1491
+ return e.type === E.pound;
1492
+ }
1493
+ function hn(e) {
1494
+ return e.type === E.tag;
1495
+ }
1496
+ function fn(e) {
1497
+ return !!(e && typeof e == "object" && e.type === J.number);
1498
+ }
1499
+ function Ze(e) {
1500
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
1501
+ }
1502
+ var cn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[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;
1503
+ function ri(e) {
1504
+ var t = {};
1505
+ return e.replace(ni, function(n) {
1506
+ var r = n.length;
1507
+ switch (n[0]) {
1508
+ case "G":
1509
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1510
+ break;
1511
+ case "y":
1512
+ t.year = r === 2 ? "2-digit" : "numeric";
1513
+ break;
1514
+ case "Y":
1515
+ case "u":
1516
+ case "U":
1517
+ case "r":
1518
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1519
+ case "q":
1520
+ case "Q":
1521
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
1522
+ case "M":
1523
+ case "L":
1524
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1525
+ break;
1526
+ case "w":
1527
+ case "W":
1528
+ throw new RangeError("`w/W` (week) patterns are not supported");
1529
+ case "d":
1530
+ t.day = ["numeric", "2-digit"][r - 1];
1531
+ break;
1532
+ case "D":
1533
+ case "F":
1534
+ case "g":
1535
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1536
+ case "E":
1537
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1538
+ break;
1539
+ case "e":
1540
+ if (r < 4)
1541
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
1542
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1543
+ break;
1544
+ case "c":
1545
+ if (r < 4)
1546
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1547
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1548
+ break;
1549
+ case "a":
1550
+ t.hour12 = !0;
1551
+ break;
1552
+ case "b":
1553
+ case "B":
1554
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1555
+ case "h":
1556
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1557
+ break;
1558
+ case "H":
1559
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1560
+ break;
1561
+ case "K":
1562
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1563
+ break;
1564
+ case "k":
1565
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1566
+ break;
1567
+ case "j":
1568
+ case "J":
1569
+ case "C":
1570
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1571
+ case "m":
1572
+ t.minute = ["numeric", "2-digit"][r - 1];
1573
+ break;
1574
+ case "s":
1575
+ t.second = ["numeric", "2-digit"][r - 1];
1576
+ break;
1577
+ case "S":
1578
+ case "A":
1579
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1580
+ case "z":
1581
+ t.timeZoneName = r < 4 ? "short" : "long";
1582
+ break;
1583
+ case "Z":
1584
+ case "O":
1585
+ case "v":
1586
+ case "V":
1587
+ case "X":
1588
+ case "x":
1589
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1590
+ }
1591
+ return "";
1592
+ }), t;
1593
+ }
1594
+ var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1595
+ function oi(e) {
1596
+ if (e.length === 0)
1597
+ throw new Error("Number skeleton cannot be empty");
1598
+ for (var t = e.split(ii).filter(function(c) {
1599
+ return c.length > 0;
1600
+ }), n = [], r = 0, i = t; r < i.length; r++) {
1601
+ var o = i[r], a = o.split("/");
1602
+ if (a.length === 0)
1603
+ throw new Error("Invalid number skeleton");
1604
+ for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1605
+ var f = h[u];
1606
+ if (f.length === 0)
1607
+ throw new Error("Invalid number skeleton");
1608
+ }
1609
+ n.push({ stem: s, options: l });
1610
+ }
1611
+ return n;
1612
+ }
1613
+ function si(e) {
1614
+ return e.replace(/^(.*?)-/, "");
1615
+ }
1616
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
1617
+ function Ct(e) {
1618
+ var t = {};
1619
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(n, r, i) {
1620
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1621
+ }), t;
1622
+ }
1623
+ function pn(e) {
1624
+ switch (e) {
1625
+ case "sign-auto":
1626
+ return {
1627
+ signDisplay: "auto"
1628
+ };
1629
+ case "sign-accounting":
1630
+ case "()":
1631
+ return {
1632
+ currencySign: "accounting"
1633
+ };
1634
+ case "sign-always":
1635
+ case "+!":
1636
+ return {
1637
+ signDisplay: "always"
1638
+ };
1639
+ case "sign-accounting-always":
1640
+ case "()!":
1641
+ return {
1642
+ signDisplay: "always",
1643
+ currencySign: "accounting"
1644
+ };
1645
+ case "sign-except-zero":
1646
+ case "+?":
1647
+ return {
1648
+ signDisplay: "exceptZero"
1649
+ };
1650
+ case "sign-accounting-except-zero":
1651
+ case "()?":
1652
+ return {
1653
+ signDisplay: "exceptZero",
1654
+ currencySign: "accounting"
1655
+ };
1656
+ case "sign-never":
1657
+ case "+_":
1658
+ return {
1659
+ signDisplay: "never"
1660
+ };
1661
+ }
1662
+ }
1663
+ function ui(e) {
1664
+ var t;
1665
+ if (e[0] === "E" && e[1] === "E" ? (t = {
1666
+ notation: "engineering"
1667
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
1668
+ notation: "scientific"
1669
+ }, e = e.slice(1)), t) {
1670
+ var n = e.slice(0, 2);
1671
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
1672
+ throw new Error("Malformed concise eng/scientific notation");
1673
+ t.minimumIntegerDigits = e.length;
1674
+ }
1675
+ return t;
1676
+ }
1677
+ function Bt(e) {
1678
+ var t = {}, n = pn(e);
1679
+ return n || t;
1680
+ }
1681
+ function li(e) {
1682
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
1683
+ var i = r[n];
1684
+ switch (i.stem) {
1685
+ case "percent":
1686
+ case "%":
1687
+ t.style = "percent";
1688
+ continue;
1689
+ case "%x100":
1690
+ t.style = "percent", t.scale = 100;
1691
+ continue;
1692
+ case "currency":
1693
+ t.style = "currency", t.currency = i.options[0];
1694
+ continue;
1695
+ case "group-off":
1696
+ case ",_":
1697
+ t.useGrouping = !1;
1698
+ continue;
1699
+ case "precision-integer":
1700
+ case ".":
1701
+ t.maximumFractionDigits = 0;
1702
+ continue;
1703
+ case "measure-unit":
1704
+ case "unit":
1705
+ t.style = "unit", t.unit = si(i.options[0]);
1706
+ continue;
1707
+ case "compact-short":
1708
+ case "K":
1709
+ t.notation = "compact", t.compactDisplay = "short";
1710
+ continue;
1711
+ case "compact-long":
1712
+ case "KK":
1713
+ t.notation = "compact", t.compactDisplay = "long";
1714
+ continue;
1715
+ case "scientific":
1716
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1717
+ return x(x({}, l), Bt(u));
1718
+ }, {}));
1719
+ continue;
1720
+ case "engineering":
1721
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1722
+ return x(x({}, l), Bt(u));
1723
+ }, {}));
1724
+ continue;
1725
+ case "notation-simple":
1726
+ t.notation = "standard";
1727
+ continue;
1728
+ case "unit-width-narrow":
1729
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1730
+ continue;
1731
+ case "unit-width-short":
1732
+ t.currencyDisplay = "code", t.unitDisplay = "short";
1733
+ continue;
1734
+ case "unit-width-full-name":
1735
+ t.currencyDisplay = "name", t.unitDisplay = "long";
1736
+ continue;
1737
+ case "unit-width-iso-code":
1738
+ t.currencyDisplay = "symbol";
1739
+ continue;
1740
+ case "scale":
1741
+ t.scale = parseFloat(i.options[0]);
1742
+ continue;
1743
+ case "rounding-mode-floor":
1744
+ t.roundingMode = "floor";
1745
+ continue;
1746
+ case "rounding-mode-ceiling":
1747
+ t.roundingMode = "ceil";
1748
+ continue;
1749
+ case "rounding-mode-down":
1750
+ t.roundingMode = "trunc";
1751
+ continue;
1752
+ case "rounding-mode-up":
1753
+ t.roundingMode = "expand";
1754
+ continue;
1755
+ case "rounding-mode-half-even":
1756
+ t.roundingMode = "halfEven";
1757
+ continue;
1758
+ case "rounding-mode-half-down":
1759
+ t.roundingMode = "halfTrunc";
1760
+ continue;
1761
+ case "rounding-mode-half-up":
1762
+ t.roundingMode = "halfExpand";
1763
+ continue;
1764
+ case "integer-width":
1765
+ if (i.options.length > 1)
1766
+ throw new RangeError("integer-width stems only accept a single optional option");
1767
+ i.options[0].replace(ai, function(l, u, h, f, c, d) {
1768
+ if (u)
1769
+ t.minimumIntegerDigits = h.length;
1770
+ else {
1771
+ if (f && c)
1772
+ throw new Error("We currently do not support maximum integer digits");
1773
+ if (d)
1774
+ throw new Error("We currently do not support exact integer digits");
1775
+ }
1776
+ return "";
1777
+ });
1778
+ continue;
1779
+ }
1780
+ if (dn.test(i.stem)) {
1781
+ t.minimumIntegerDigits = i.stem.length;
1782
+ continue;
1783
+ }
1784
+ if (Ht.test(i.stem)) {
1785
+ if (i.options.length > 1)
1786
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
1787
+ i.stem.replace(Ht, function(l, u, h, f, c, d) {
1788
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1789
+ });
1790
+ var o = i.options[0];
1791
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ct(o)));
1792
+ continue;
1793
+ }
1794
+ if (mn.test(i.stem)) {
1795
+ t = x(x({}, t), Ct(i.stem));
1796
+ continue;
1797
+ }
1798
+ var a = pn(i.stem);
1799
+ a && (t = x(x({}, t), a));
1800
+ var s = ui(i.stem);
1801
+ s && (t = x(x({}, t), s));
1802
+ }
1803
+ return t;
1804
+ }
1805
+ var ce = {
1806
+ "001": [
1807
+ "H",
1808
+ "h"
1809
+ ],
1810
+ 419: [
1811
+ "h",
1812
+ "H",
1813
+ "hB",
1814
+ "hb"
1815
+ ],
1816
+ AC: [
1817
+ "H",
1818
+ "h",
1819
+ "hb",
1820
+ "hB"
1821
+ ],
1822
+ AD: [
1823
+ "H",
1824
+ "hB"
1825
+ ],
1826
+ AE: [
1827
+ "h",
1828
+ "hB",
1829
+ "hb",
1830
+ "H"
1831
+ ],
1832
+ AF: [
1833
+ "H",
1834
+ "hb",
1835
+ "hB",
1836
+ "h"
1837
+ ],
1838
+ AG: [
1839
+ "h",
1840
+ "hb",
1841
+ "H",
1842
+ "hB"
1843
+ ],
1844
+ AI: [
1845
+ "H",
1846
+ "h",
1847
+ "hb",
1848
+ "hB"
1849
+ ],
1850
+ AL: [
1851
+ "h",
1852
+ "H",
1853
+ "hB"
1854
+ ],
1855
+ AM: [
1856
+ "H",
1857
+ "hB"
1858
+ ],
1859
+ AO: [
1860
+ "H",
1861
+ "hB"
1862
+ ],
1863
+ AR: [
1864
+ "h",
1865
+ "H",
1866
+ "hB",
1867
+ "hb"
1868
+ ],
1869
+ AS: [
1870
+ "h",
1871
+ "H"
1872
+ ],
1873
+ AT: [
1874
+ "H",
1875
+ "hB"
1876
+ ],
1877
+ AU: [
1878
+ "h",
1879
+ "hb",
1880
+ "H",
1881
+ "hB"
1882
+ ],
1883
+ AW: [
1884
+ "H",
1885
+ "hB"
1886
+ ],
1887
+ AX: [
1888
+ "H"
1889
+ ],
1890
+ AZ: [
1891
+ "H",
1892
+ "hB",
1893
+ "h"
1894
+ ],
1895
+ BA: [
1896
+ "H",
1897
+ "hB",
1898
+ "h"
1899
+ ],
1900
+ BB: [
1901
+ "h",
1902
+ "hb",
1903
+ "H",
1904
+ "hB"
1905
+ ],
1906
+ BD: [
1907
+ "h",
1908
+ "hB",
1909
+ "H"
1910
+ ],
1911
+ BE: [
1912
+ "H",
1913
+ "hB"
1914
+ ],
1915
+ BF: [
1916
+ "H",
1917
+ "hB"
1918
+ ],
1919
+ BG: [
1920
+ "H",
1921
+ "hB",
1922
+ "h"
1923
+ ],
1924
+ BH: [
1925
+ "h",
1926
+ "hB",
1927
+ "hb",
1928
+ "H"
1929
+ ],
1930
+ BI: [
1931
+ "H",
1932
+ "h"
1933
+ ],
1934
+ BJ: [
1935
+ "H",
1936
+ "hB"
1937
+ ],
1938
+ BL: [
1939
+ "H",
1940
+ "hB"
1941
+ ],
1942
+ BM: [
1943
+ "h",
1944
+ "hb",
1945
+ "H",
1946
+ "hB"
1947
+ ],
1948
+ BN: [
1949
+ "hb",
1950
+ "hB",
1951
+ "h",
1952
+ "H"
1953
+ ],
1954
+ BO: [
1955
+ "h",
1956
+ "H",
1957
+ "hB",
1958
+ "hb"
1959
+ ],
1960
+ BQ: [
1961
+ "H"
1962
+ ],
1963
+ BR: [
1964
+ "H",
1965
+ "hB"
1966
+ ],
1967
+ BS: [
1968
+ "h",
1969
+ "hb",
1970
+ "H",
1971
+ "hB"
1972
+ ],
1973
+ BT: [
1974
+ "h",
1975
+ "H"
1976
+ ],
1977
+ BW: [
1978
+ "H",
1979
+ "h",
1980
+ "hb",
1981
+ "hB"
1982
+ ],
1983
+ BY: [
1984
+ "H",
1985
+ "h"
1986
+ ],
1987
+ BZ: [
1988
+ "H",
1989
+ "h",
1990
+ "hb",
1991
+ "hB"
1992
+ ],
1993
+ CA: [
1994
+ "h",
1995
+ "hb",
1996
+ "H",
1997
+ "hB"
1998
+ ],
1999
+ CC: [
2000
+ "H",
2001
+ "h",
2002
+ "hb",
2003
+ "hB"
2004
+ ],
2005
+ CD: [
2006
+ "hB",
2007
+ "H"
2008
+ ],
2009
+ CF: [
2010
+ "H",
2011
+ "h",
2012
+ "hB"
2013
+ ],
2014
+ CG: [
2015
+ "H",
2016
+ "hB"
2017
+ ],
2018
+ CH: [
2019
+ "H",
2020
+ "hB",
2021
+ "h"
2022
+ ],
2023
+ CI: [
2024
+ "H",
2025
+ "hB"
2026
+ ],
2027
+ CK: [
2028
+ "H",
2029
+ "h",
2030
+ "hb",
2031
+ "hB"
2032
+ ],
2033
+ CL: [
2034
+ "h",
2035
+ "H",
2036
+ "hB",
2037
+ "hb"
2038
+ ],
2039
+ CM: [
2040
+ "H",
2041
+ "h",
2042
+ "hB"
2043
+ ],
2044
+ CN: [
2045
+ "H",
2046
+ "hB",
2047
+ "hb",
2048
+ "h"
2049
+ ],
2050
+ CO: [
2051
+ "h",
2052
+ "H",
2053
+ "hB",
2054
+ "hb"
2055
+ ],
2056
+ CP: [
2057
+ "H"
2058
+ ],
2059
+ CR: [
2060
+ "h",
2061
+ "H",
2062
+ "hB",
2063
+ "hb"
2064
+ ],
2065
+ CU: [
2066
+ "h",
2067
+ "H",
2068
+ "hB",
2069
+ "hb"
2070
+ ],
2071
+ CV: [
2072
+ "H",
2073
+ "hB"
2074
+ ],
2075
+ CW: [
2076
+ "H",
2077
+ "hB"
2078
+ ],
2079
+ CX: [
2080
+ "H",
2081
+ "h",
2082
+ "hb",
2083
+ "hB"
2084
+ ],
2085
+ CY: [
2086
+ "h",
2087
+ "H",
2088
+ "hb",
2089
+ "hB"
2090
+ ],
2091
+ CZ: [
2092
+ "H"
2093
+ ],
2094
+ DE: [
2095
+ "H",
2096
+ "hB"
2097
+ ],
2098
+ DG: [
2099
+ "H",
2100
+ "h",
2101
+ "hb",
2102
+ "hB"
2103
+ ],
2104
+ DJ: [
2105
+ "h",
2106
+ "H"
2107
+ ],
2108
+ DK: [
2109
+ "H"
2110
+ ],
2111
+ DM: [
2112
+ "h",
2113
+ "hb",
2114
+ "H",
2115
+ "hB"
2116
+ ],
2117
+ DO: [
2118
+ "h",
2119
+ "H",
2120
+ "hB",
2121
+ "hb"
2122
+ ],
2123
+ DZ: [
2124
+ "h",
2125
+ "hB",
2126
+ "hb",
2127
+ "H"
2128
+ ],
2129
+ EA: [
2130
+ "H",
2131
+ "h",
2132
+ "hB",
2133
+ "hb"
2134
+ ],
2135
+ EC: [
2136
+ "h",
2137
+ "H",
2138
+ "hB",
2139
+ "hb"
2140
+ ],
2141
+ EE: [
2142
+ "H",
2143
+ "hB"
2144
+ ],
2145
+ EG: [
2146
+ "h",
2147
+ "hB",
2148
+ "hb",
2149
+ "H"
2150
+ ],
2151
+ EH: [
2152
+ "h",
2153
+ "hB",
2154
+ "hb",
2155
+ "H"
2156
+ ],
2157
+ ER: [
2158
+ "h",
2159
+ "H"
2160
+ ],
2161
+ ES: [
2162
+ "H",
2163
+ "hB",
2164
+ "h",
2165
+ "hb"
2166
+ ],
2167
+ ET: [
2168
+ "hB",
2169
+ "hb",
2170
+ "h",
2171
+ "H"
2172
+ ],
2173
+ FI: [
2174
+ "H"
2175
+ ],
2176
+ FJ: [
2177
+ "h",
2178
+ "hb",
2179
+ "H",
2180
+ "hB"
2181
+ ],
2182
+ FK: [
2183
+ "H",
2184
+ "h",
2185
+ "hb",
2186
+ "hB"
2187
+ ],
2188
+ FM: [
2189
+ "h",
2190
+ "hb",
2191
+ "H",
2192
+ "hB"
2193
+ ],
2194
+ FO: [
2195
+ "H",
2196
+ "h"
2197
+ ],
2198
+ FR: [
2199
+ "H",
2200
+ "hB"
2201
+ ],
2202
+ GA: [
2203
+ "H",
2204
+ "hB"
2205
+ ],
2206
+ GB: [
2207
+ "H",
2208
+ "h",
2209
+ "hb",
2210
+ "hB"
2211
+ ],
2212
+ GD: [
2213
+ "h",
2214
+ "hb",
2215
+ "H",
2216
+ "hB"
2217
+ ],
2218
+ GE: [
2219
+ "H",
2220
+ "hB",
2221
+ "h"
2222
+ ],
2223
+ GF: [
2224
+ "H",
2225
+ "hB"
2226
+ ],
2227
+ GG: [
2228
+ "H",
2229
+ "h",
2230
+ "hb",
2231
+ "hB"
2232
+ ],
2233
+ GH: [
2234
+ "h",
2235
+ "H"
2236
+ ],
2237
+ GI: [
2238
+ "H",
2239
+ "h",
2240
+ "hb",
2241
+ "hB"
2242
+ ],
2243
+ GL: [
2244
+ "H",
2245
+ "h"
2246
+ ],
2247
+ GM: [
2248
+ "h",
2249
+ "hb",
2250
+ "H",
2251
+ "hB"
2252
+ ],
2253
+ GN: [
2254
+ "H",
2255
+ "hB"
2256
+ ],
2257
+ GP: [
2258
+ "H",
2259
+ "hB"
2260
+ ],
2261
+ GQ: [
2262
+ "H",
2263
+ "hB",
2264
+ "h",
2265
+ "hb"
2266
+ ],
2267
+ GR: [
2268
+ "h",
2269
+ "H",
2270
+ "hb",
2271
+ "hB"
2272
+ ],
2273
+ GT: [
2274
+ "h",
2275
+ "H",
2276
+ "hB",
2277
+ "hb"
2278
+ ],
2279
+ GU: [
2280
+ "h",
2281
+ "hb",
2282
+ "H",
2283
+ "hB"
2284
+ ],
2285
+ GW: [
2286
+ "H",
2287
+ "hB"
2288
+ ],
2289
+ GY: [
2290
+ "h",
2291
+ "hb",
2292
+ "H",
2293
+ "hB"
2294
+ ],
2295
+ HK: [
2296
+ "h",
2297
+ "hB",
2298
+ "hb",
2299
+ "H"
2300
+ ],
2301
+ HN: [
2302
+ "h",
2303
+ "H",
2304
+ "hB",
2305
+ "hb"
2306
+ ],
2307
+ HR: [
2308
+ "H",
2309
+ "hB"
2310
+ ],
2311
+ HU: [
2312
+ "H",
2313
+ "h"
2314
+ ],
2315
+ IC: [
2316
+ "H",
2317
+ "h",
2318
+ "hB",
2319
+ "hb"
2320
+ ],
2321
+ ID: [
2322
+ "H"
2323
+ ],
2324
+ IE: [
2325
+ "H",
2326
+ "h",
2327
+ "hb",
2328
+ "hB"
2329
+ ],
2330
+ IL: [
2331
+ "H",
2332
+ "hB"
2333
+ ],
2334
+ IM: [
2335
+ "H",
2336
+ "h",
2337
+ "hb",
2338
+ "hB"
2339
+ ],
2340
+ IN: [
2341
+ "h",
2342
+ "H"
2343
+ ],
2344
+ IO: [
2345
+ "H",
2346
+ "h",
2347
+ "hb",
2348
+ "hB"
2349
+ ],
2350
+ IQ: [
2351
+ "h",
2352
+ "hB",
2353
+ "hb",
2354
+ "H"
2355
+ ],
2356
+ IR: [
2357
+ "hB",
2358
+ "H"
2359
+ ],
2360
+ IS: [
2361
+ "H"
2362
+ ],
2363
+ IT: [
2364
+ "H",
2365
+ "hB"
2366
+ ],
2367
+ JE: [
2368
+ "H",
2369
+ "h",
2370
+ "hb",
2371
+ "hB"
2372
+ ],
2373
+ JM: [
2374
+ "h",
2375
+ "hb",
2376
+ "H",
2377
+ "hB"
2378
+ ],
2379
+ JO: [
2380
+ "h",
2381
+ "hB",
2382
+ "hb",
2383
+ "H"
2384
+ ],
2385
+ JP: [
2386
+ "H",
2387
+ "K",
2388
+ "h"
2389
+ ],
2390
+ KE: [
2391
+ "hB",
2392
+ "hb",
2393
+ "H",
2394
+ "h"
2395
+ ],
2396
+ KG: [
2397
+ "H",
2398
+ "h",
2399
+ "hB",
2400
+ "hb"
2401
+ ],
2402
+ KH: [
2403
+ "hB",
2404
+ "h",
2405
+ "H",
2406
+ "hb"
2407
+ ],
2408
+ KI: [
2409
+ "h",
2410
+ "hb",
2411
+ "H",
2412
+ "hB"
2413
+ ],
2414
+ KM: [
2415
+ "H",
2416
+ "h",
2417
+ "hB",
2418
+ "hb"
2419
+ ],
2420
+ KN: [
2421
+ "h",
2422
+ "hb",
2423
+ "H",
2424
+ "hB"
2425
+ ],
2426
+ KP: [
2427
+ "h",
2428
+ "H",
2429
+ "hB",
2430
+ "hb"
2431
+ ],
2432
+ KR: [
2433
+ "h",
2434
+ "H",
2435
+ "hB",
2436
+ "hb"
2437
+ ],
2438
+ KW: [
2439
+ "h",
2440
+ "hB",
2441
+ "hb",
2442
+ "H"
2443
+ ],
2444
+ KY: [
2445
+ "h",
2446
+ "hb",
2447
+ "H",
2448
+ "hB"
2449
+ ],
2450
+ KZ: [
2451
+ "H",
2452
+ "hB"
2453
+ ],
2454
+ LA: [
2455
+ "H",
2456
+ "hb",
2457
+ "hB",
2458
+ "h"
2459
+ ],
2460
+ LB: [
2461
+ "h",
2462
+ "hB",
2463
+ "hb",
2464
+ "H"
2465
+ ],
2466
+ LC: [
2467
+ "h",
2468
+ "hb",
2469
+ "H",
2470
+ "hB"
2471
+ ],
2472
+ LI: [
2473
+ "H",
2474
+ "hB",
2475
+ "h"
2476
+ ],
2477
+ LK: [
2478
+ "H",
2479
+ "h",
2480
+ "hB",
2481
+ "hb"
2482
+ ],
2483
+ LR: [
2484
+ "h",
2485
+ "hb",
2486
+ "H",
2487
+ "hB"
2488
+ ],
2489
+ LS: [
2490
+ "h",
2491
+ "H"
2492
+ ],
2493
+ LT: [
2494
+ "H",
2495
+ "h",
2496
+ "hb",
2497
+ "hB"
2498
+ ],
2499
+ LU: [
2500
+ "H",
2501
+ "h",
2502
+ "hB"
2503
+ ],
2504
+ LV: [
2505
+ "H",
2506
+ "hB",
2507
+ "hb",
2508
+ "h"
2509
+ ],
2510
+ LY: [
2511
+ "h",
2512
+ "hB",
2513
+ "hb",
2514
+ "H"
2515
+ ],
2516
+ MA: [
2517
+ "H",
2518
+ "h",
2519
+ "hB",
2520
+ "hb"
2521
+ ],
2522
+ MC: [
2523
+ "H",
2524
+ "hB"
2525
+ ],
2526
+ MD: [
2527
+ "H",
2528
+ "hB"
2529
+ ],
2530
+ ME: [
2531
+ "H",
2532
+ "hB",
2533
+ "h"
2534
+ ],
2535
+ MF: [
2536
+ "H",
2537
+ "hB"
2538
+ ],
2539
+ MG: [
2540
+ "H",
2541
+ "h"
2542
+ ],
2543
+ MH: [
2544
+ "h",
2545
+ "hb",
2546
+ "H",
2547
+ "hB"
2548
+ ],
2549
+ MK: [
2550
+ "H",
2551
+ "h",
2552
+ "hb",
2553
+ "hB"
2554
+ ],
2555
+ ML: [
2556
+ "H"
2557
+ ],
2558
+ MM: [
2559
+ "hB",
2560
+ "hb",
2561
+ "H",
2562
+ "h"
2563
+ ],
2564
+ MN: [
2565
+ "H",
2566
+ "h",
2567
+ "hb",
2568
+ "hB"
2569
+ ],
2570
+ MO: [
2571
+ "h",
2572
+ "hB",
2573
+ "hb",
2574
+ "H"
2575
+ ],
2576
+ MP: [
2577
+ "h",
2578
+ "hb",
2579
+ "H",
2580
+ "hB"
2581
+ ],
2582
+ MQ: [
2583
+ "H",
2584
+ "hB"
2585
+ ],
2586
+ MR: [
2587
+ "h",
2588
+ "hB",
2589
+ "hb",
2590
+ "H"
2591
+ ],
2592
+ MS: [
2593
+ "H",
2594
+ "h",
2595
+ "hb",
2596
+ "hB"
2597
+ ],
2598
+ MT: [
2599
+ "H",
2600
+ "h"
2601
+ ],
2602
+ MU: [
2603
+ "H",
2604
+ "h"
2605
+ ],
2606
+ MV: [
2607
+ "H",
2608
+ "h"
2609
+ ],
2610
+ MW: [
2611
+ "h",
2612
+ "hb",
2613
+ "H",
2614
+ "hB"
2615
+ ],
2616
+ MX: [
2617
+ "h",
2618
+ "H",
2619
+ "hB",
2620
+ "hb"
2621
+ ],
2622
+ MY: [
2623
+ "hb",
2624
+ "hB",
2625
+ "h",
2626
+ "H"
2627
+ ],
2628
+ MZ: [
2629
+ "H",
2630
+ "hB"
2631
+ ],
2632
+ NA: [
2633
+ "h",
2634
+ "H",
2635
+ "hB",
2636
+ "hb"
2637
+ ],
2638
+ NC: [
2639
+ "H",
2640
+ "hB"
2641
+ ],
2642
+ NE: [
2643
+ "H"
2644
+ ],
2645
+ NF: [
2646
+ "H",
2647
+ "h",
2648
+ "hb",
2649
+ "hB"
2650
+ ],
2651
+ NG: [
2652
+ "H",
2653
+ "h",
2654
+ "hb",
2655
+ "hB"
2656
+ ],
2657
+ NI: [
2658
+ "h",
2659
+ "H",
2660
+ "hB",
2661
+ "hb"
2662
+ ],
2663
+ NL: [
2664
+ "H",
2665
+ "hB"
2666
+ ],
2667
+ NO: [
2668
+ "H",
2669
+ "h"
2670
+ ],
2671
+ NP: [
2672
+ "H",
2673
+ "h",
2674
+ "hB"
2675
+ ],
2676
+ NR: [
2677
+ "H",
2678
+ "h",
2679
+ "hb",
2680
+ "hB"
2681
+ ],
2682
+ NU: [
2683
+ "H",
2684
+ "h",
2685
+ "hb",
2686
+ "hB"
2687
+ ],
2688
+ NZ: [
2689
+ "h",
2690
+ "hb",
2691
+ "H",
2692
+ "hB"
2693
+ ],
2694
+ OM: [
2695
+ "h",
2696
+ "hB",
2697
+ "hb",
2698
+ "H"
2699
+ ],
2700
+ PA: [
2701
+ "h",
2702
+ "H",
2703
+ "hB",
2704
+ "hb"
2705
+ ],
2706
+ PE: [
2707
+ "h",
2708
+ "H",
2709
+ "hB",
2710
+ "hb"
2711
+ ],
2712
+ PF: [
2713
+ "H",
2714
+ "h",
2715
+ "hB"
2716
+ ],
2717
+ PG: [
2718
+ "h",
2719
+ "H"
2720
+ ],
2721
+ PH: [
2722
+ "h",
2723
+ "hB",
2724
+ "hb",
2725
+ "H"
2726
+ ],
2727
+ PK: [
2728
+ "h",
2729
+ "hB",
2730
+ "H"
2731
+ ],
2732
+ PL: [
2733
+ "H",
2734
+ "h"
2735
+ ],
2736
+ PM: [
2737
+ "H",
2738
+ "hB"
2739
+ ],
2740
+ PN: [
2741
+ "H",
2742
+ "h",
2743
+ "hb",
2744
+ "hB"
2745
+ ],
2746
+ PR: [
2747
+ "h",
2748
+ "H",
2749
+ "hB",
2750
+ "hb"
2751
+ ],
2752
+ PS: [
2753
+ "h",
2754
+ "hB",
2755
+ "hb",
2756
+ "H"
2757
+ ],
2758
+ PT: [
2759
+ "H",
2760
+ "hB"
2761
+ ],
2762
+ PW: [
2763
+ "h",
2764
+ "H"
2765
+ ],
2766
+ PY: [
2767
+ "h",
2768
+ "H",
2769
+ "hB",
2770
+ "hb"
2771
+ ],
2772
+ QA: [
2773
+ "h",
2774
+ "hB",
2775
+ "hb",
2776
+ "H"
2777
+ ],
2778
+ RE: [
2779
+ "H",
2780
+ "hB"
2781
+ ],
2782
+ RO: [
2783
+ "H",
2784
+ "hB"
2785
+ ],
2786
+ RS: [
2787
+ "H",
2788
+ "hB",
2789
+ "h"
2790
+ ],
2791
+ RU: [
2792
+ "H"
2793
+ ],
2794
+ RW: [
2795
+ "H",
2796
+ "h"
2797
+ ],
2798
+ SA: [
2799
+ "h",
2800
+ "hB",
2801
+ "hb",
2802
+ "H"
2803
+ ],
2804
+ SB: [
2805
+ "h",
2806
+ "hb",
2807
+ "H",
2808
+ "hB"
2809
+ ],
2810
+ SC: [
2811
+ "H",
2812
+ "h",
2813
+ "hB"
2814
+ ],
2815
+ SD: [
2816
+ "h",
2817
+ "hB",
2818
+ "hb",
2819
+ "H"
2820
+ ],
2821
+ SE: [
2822
+ "H"
2823
+ ],
2824
+ SG: [
2825
+ "h",
2826
+ "hb",
2827
+ "H",
2828
+ "hB"
2829
+ ],
2830
+ SH: [
2831
+ "H",
2832
+ "h",
2833
+ "hb",
2834
+ "hB"
2835
+ ],
2836
+ SI: [
2837
+ "H",
2838
+ "hB"
2839
+ ],
2840
+ SJ: [
2841
+ "H"
2842
+ ],
2843
+ SK: [
2844
+ "H"
2845
+ ],
2846
+ SL: [
2847
+ "h",
2848
+ "hb",
2849
+ "H",
2850
+ "hB"
2851
+ ],
2852
+ SM: [
2853
+ "H",
2854
+ "h",
2855
+ "hB"
2856
+ ],
2857
+ SN: [
2858
+ "H",
2859
+ "h",
2860
+ "hB"
2861
+ ],
2862
+ SO: [
2863
+ "h",
2864
+ "H"
2865
+ ],
2866
+ SR: [
2867
+ "H",
2868
+ "hB"
2869
+ ],
2870
+ SS: [
2871
+ "h",
2872
+ "hb",
2873
+ "H",
2874
+ "hB"
2875
+ ],
2876
+ ST: [
2877
+ "H",
2878
+ "hB"
2879
+ ],
2880
+ SV: [
2881
+ "h",
2882
+ "H",
2883
+ "hB",
2884
+ "hb"
2885
+ ],
2886
+ SX: [
2887
+ "H",
2888
+ "h",
2889
+ "hb",
2890
+ "hB"
2891
+ ],
2892
+ SY: [
2893
+ "h",
2894
+ "hB",
2895
+ "hb",
2896
+ "H"
2897
+ ],
2898
+ SZ: [
2899
+ "h",
2900
+ "hb",
2901
+ "H",
2902
+ "hB"
2903
+ ],
2904
+ TA: [
2905
+ "H",
2906
+ "h",
2907
+ "hb",
2908
+ "hB"
2909
+ ],
2910
+ TC: [
2911
+ "h",
2912
+ "hb",
2913
+ "H",
2914
+ "hB"
2915
+ ],
2916
+ TD: [
2917
+ "h",
2918
+ "H",
2919
+ "hB"
2920
+ ],
2921
+ TF: [
2922
+ "H",
2923
+ "h",
2924
+ "hB"
2925
+ ],
2926
+ TG: [
2927
+ "H",
2928
+ "hB"
2929
+ ],
2930
+ TH: [
2931
+ "H",
2932
+ "h"
2933
+ ],
2934
+ TJ: [
2935
+ "H",
2936
+ "h"
2937
+ ],
2938
+ TL: [
2939
+ "H",
2940
+ "hB",
2941
+ "hb",
2942
+ "h"
2943
+ ],
2944
+ TM: [
2945
+ "H",
2946
+ "h"
2947
+ ],
2948
+ TN: [
2949
+ "h",
2950
+ "hB",
2951
+ "hb",
2952
+ "H"
2953
+ ],
2954
+ TO: [
2955
+ "h",
2956
+ "H"
2957
+ ],
2958
+ TR: [
2959
+ "H",
2960
+ "hB"
2961
+ ],
2962
+ TT: [
2963
+ "h",
2964
+ "hb",
2965
+ "H",
2966
+ "hB"
2967
+ ],
2968
+ TW: [
2969
+ "hB",
2970
+ "hb",
2971
+ "h",
2972
+ "H"
2973
+ ],
2974
+ TZ: [
2975
+ "hB",
2976
+ "hb",
2977
+ "H",
2978
+ "h"
2979
+ ],
2980
+ UA: [
2981
+ "H",
2982
+ "hB",
2983
+ "h"
2984
+ ],
2985
+ UG: [
2986
+ "hB",
2987
+ "hb",
2988
+ "H",
2989
+ "h"
2990
+ ],
2991
+ UM: [
2992
+ "h",
2993
+ "hb",
2994
+ "H",
2995
+ "hB"
2996
+ ],
2997
+ US: [
2998
+ "h",
2999
+ "hb",
3000
+ "H",
3001
+ "hB"
3002
+ ],
3003
+ UY: [
3004
+ "h",
3005
+ "H",
3006
+ "hB",
3007
+ "hb"
3008
+ ],
3009
+ UZ: [
3010
+ "H",
3011
+ "hB",
3012
+ "h"
3013
+ ],
3014
+ VA: [
3015
+ "H",
3016
+ "h",
3017
+ "hB"
3018
+ ],
3019
+ VC: [
3020
+ "h",
3021
+ "hb",
3022
+ "H",
3023
+ "hB"
3024
+ ],
3025
+ VE: [
3026
+ "h",
3027
+ "H",
3028
+ "hB",
3029
+ "hb"
3030
+ ],
3031
+ VG: [
3032
+ "h",
3033
+ "hb",
3034
+ "H",
3035
+ "hB"
3036
+ ],
3037
+ VI: [
3038
+ "h",
3039
+ "hb",
3040
+ "H",
3041
+ "hB"
3042
+ ],
3043
+ VN: [
3044
+ "H",
3045
+ "h"
3046
+ ],
3047
+ VU: [
3048
+ "h",
3049
+ "H"
3050
+ ],
3051
+ WF: [
3052
+ "H",
3053
+ "hB"
3054
+ ],
3055
+ WS: [
3056
+ "h",
3057
+ "H"
3058
+ ],
3059
+ XK: [
3060
+ "H",
3061
+ "hB",
3062
+ "h"
3063
+ ],
3064
+ YE: [
3065
+ "h",
3066
+ "hB",
3067
+ "hb",
3068
+ "H"
3069
+ ],
3070
+ YT: [
3071
+ "H",
3072
+ "hB"
3073
+ ],
3074
+ ZA: [
3075
+ "H",
3076
+ "h",
3077
+ "hb",
3078
+ "hB"
3079
+ ],
3080
+ ZM: [
3081
+ "h",
3082
+ "hb",
3083
+ "H",
3084
+ "hB"
3085
+ ],
3086
+ ZW: [
3087
+ "H",
3088
+ "h"
3089
+ ],
3090
+ "af-ZA": [
3091
+ "H",
3092
+ "h",
3093
+ "hB",
3094
+ "hb"
3095
+ ],
3096
+ "ar-001": [
3097
+ "h",
3098
+ "hB",
3099
+ "hb",
3100
+ "H"
3101
+ ],
3102
+ "ca-ES": [
3103
+ "H",
3104
+ "h",
3105
+ "hB"
3106
+ ],
3107
+ "en-001": [
3108
+ "h",
3109
+ "hb",
3110
+ "H",
3111
+ "hB"
3112
+ ],
3113
+ "en-HK": [
3114
+ "h",
3115
+ "hb",
3116
+ "H",
3117
+ "hB"
3118
+ ],
3119
+ "en-IL": [
3120
+ "H",
3121
+ "h",
3122
+ "hb",
3123
+ "hB"
3124
+ ],
3125
+ "en-MY": [
3126
+ "h",
3127
+ "hb",
3128
+ "H",
3129
+ "hB"
3130
+ ],
3131
+ "es-BR": [
3132
+ "H",
3133
+ "h",
3134
+ "hB",
3135
+ "hb"
3136
+ ],
3137
+ "es-ES": [
3138
+ "H",
3139
+ "h",
3140
+ "hB",
3141
+ "hb"
3142
+ ],
3143
+ "es-GQ": [
3144
+ "H",
3145
+ "h",
3146
+ "hB",
3147
+ "hb"
3148
+ ],
3149
+ "fr-CA": [
3150
+ "H",
3151
+ "h",
3152
+ "hB"
3153
+ ],
3154
+ "gl-ES": [
3155
+ "H",
3156
+ "h",
3157
+ "hB"
3158
+ ],
3159
+ "gu-IN": [
3160
+ "hB",
3161
+ "hb",
3162
+ "h",
3163
+ "H"
3164
+ ],
3165
+ "hi-IN": [
3166
+ "hB",
3167
+ "h",
3168
+ "H"
3169
+ ],
3170
+ "it-CH": [
3171
+ "H",
3172
+ "h",
3173
+ "hB"
3174
+ ],
3175
+ "it-IT": [
3176
+ "H",
3177
+ "h",
3178
+ "hB"
3179
+ ],
3180
+ "kn-IN": [
3181
+ "hB",
3182
+ "h",
3183
+ "H"
3184
+ ],
3185
+ "ml-IN": [
3186
+ "hB",
3187
+ "h",
3188
+ "H"
3189
+ ],
3190
+ "mr-IN": [
3191
+ "hB",
3192
+ "hb",
3193
+ "h",
3194
+ "H"
3195
+ ],
3196
+ "pa-IN": [
3197
+ "hB",
3198
+ "hb",
3199
+ "h",
3200
+ "H"
3201
+ ],
3202
+ "ta-IN": [
3203
+ "hB",
3204
+ "h",
3205
+ "hb",
3206
+ "H"
3207
+ ],
3208
+ "te-IN": [
3209
+ "hB",
3210
+ "h",
3211
+ "H"
3212
+ ],
3213
+ "zu-ZA": [
3214
+ "H",
3215
+ "hB",
3216
+ "hb",
3217
+ "h"
3218
+ ]
3219
+ };
3220
+ function hi(e, t) {
3221
+ for (var n = "", r = 0; r < e.length; r++) {
3222
+ var i = e.charAt(r);
3223
+ if (i === "j") {
3224
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
3225
+ o++, r++;
3226
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = fi(t);
3227
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
3228
+ n += l;
3229
+ for (; a-- > 0; )
3230
+ n = u + n;
3231
+ } else
3232
+ i === "J" ? n += "H" : n += i;
3233
+ }
3234
+ return n;
3235
+ }
3236
+ function fi(e) {
3237
+ var t = e.hourCycle;
3238
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3239
+ e.hourCycles && // @ts-ignore
3240
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
3241
+ switch (t) {
3242
+ case "h24":
3243
+ return "k";
3244
+ case "h23":
3245
+ return "H";
3246
+ case "h12":
3247
+ return "h";
3248
+ case "h11":
3249
+ return "K";
3250
+ default:
3251
+ throw new Error("Invalid hourCycle");
3252
+ }
3253
+ var n = e.language, r;
3254
+ n !== "root" && (r = e.maximize().region);
3255
+ var i = ce[r || ""] || ce[n || ""] || ce["".concat(n, "-001")] || ce["001"];
3256
+ return i[0];
3257
+ }
3258
+ var Ge, ci = new RegExp("^".concat(cn.source, "*")), mi = new RegExp("".concat(cn.source, "*$"));
3259
+ function y(e, t) {
3260
+ return { start: e, end: t };
3261
+ }
3262
+ var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, _i = xi ? Number.isSafeInteger : function(e) {
3263
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3264
+ }, Qe = !0;
3265
+ try {
3266
+ var Ei = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3267
+ Qe = ((Ge = Ei.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
3268
+ } catch (e) {
3269
+ Qe = !1;
3270
+ }
3271
+ var At = di ? (
3272
+ // Native
3273
+ function(t, n, r) {
3274
+ return t.startsWith(n, r);
3275
+ }
3276
+ ) : (
3277
+ // For IE11
3278
+ function(t, n, r) {
3279
+ return t.slice(r, r + n.length) === n;
3280
+ }
3281
+ ), Je = pi ? String.fromCodePoint : (
3282
+ // IE11
3283
+ function() {
3284
+ for (var t = [], n = 0; n < arguments.length; n++)
3285
+ t[n] = arguments[n];
3286
+ for (var r = "", i = t.length, o = 0, a; i > o; ) {
3287
+ if (a = t[o++], a > 1114111)
3288
+ throw RangeError(a + " is not a valid code point");
3289
+ r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3290
+ }
3291
+ return r;
3292
+ }
3293
+ ), Pt = (
3294
+ // native
3295
+ bi ? Object.fromEntries : (
3296
+ // Ponyfill
3297
+ function(t) {
3298
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
3299
+ var o = i[r], a = o[0], s = o[1];
3300
+ n[a] = s;
3301
+ }
3302
+ return n;
3303
+ }
3304
+ )
3305
+ ), bn = gi ? (
3306
+ // Native
3307
+ function(t, n) {
3308
+ return t.codePointAt(n);
3309
+ }
3310
+ ) : (
3311
+ // IE 11
3312
+ function(t, n) {
3313
+ var r = t.length;
3314
+ if (!(n < 0 || n >= r)) {
3315
+ var i = t.charCodeAt(n), o;
3316
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3317
+ }
3318
+ }
3319
+ ), wi = yi ? (
3320
+ // Native
3321
+ function(t) {
3322
+ return t.trimStart();
3323
+ }
3324
+ ) : (
3325
+ // Ponyfill
3326
+ function(t) {
3327
+ return t.replace(ci, "");
3328
+ }
3329
+ ), Si = vi ? (
3330
+ // Native
3331
+ function(t) {
3332
+ return t.trimEnd();
3333
+ }
3334
+ ) : (
3335
+ // Ponyfill
3336
+ function(t) {
3337
+ return t.replace(mi, "");
3338
+ }
3339
+ );
3340
+ function gn(e, t) {
3341
+ return new RegExp(e, t);
3342
+ }
3343
+ var qe;
3344
+ if (Qe) {
3345
+ var Lt = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3346
+ qe = function(t, n) {
3347
+ var r;
3348
+ Lt.lastIndex = n;
3349
+ var i = Lt.exec(t);
3350
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
3351
+ };
3352
+ } else
3353
+ qe = function(t, n) {
3354
+ for (var r = []; ; ) {
3355
+ var i = bn(t, n);
3356
+ if (i === void 0 || yn(i) || Bi(i))
3357
+ break;
3358
+ r.push(i), n += i >= 65536 ? 2 : 1;
3359
+ }
3360
+ return Je.apply(void 0, r);
3361
+ };
3362
+ var Ti = (
3363
+ /** @class */
3364
+ function() {
3365
+ function e(t, n) {
3366
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
3367
+ }
3368
+ return e.prototype.parse = function() {
3369
+ if (this.offset() !== 0)
3370
+ throw Error("parser can only be used once");
3371
+ return this.parseMessage(0, "", !1);
3372
+ }, e.prototype.parseMessage = function(t, n, r) {
3373
+ for (var i = []; !this.isEOF(); ) {
3374
+ var o = this.char();
3375
+ if (o === 123) {
3376
+ var a = this.parseArgument(t, r);
3377
+ if (a.err)
3378
+ return a;
3379
+ i.push(a.val);
3380
+ } else {
3381
+ if (o === 125 && t > 0)
3382
+ break;
3383
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
3384
+ var s = this.clonePosition();
3385
+ this.bump(), i.push({
3386
+ type: E.pound,
3387
+ location: y(s, this.clonePosition())
3388
+ });
3389
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3390
+ if (r)
3391
+ break;
3392
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3393
+ } else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
3394
+ var a = this.parseTag(t, n);
3395
+ if (a.err)
3396
+ return a;
3397
+ i.push(a.val);
3398
+ } else {
3399
+ var a = this.parseLiteral(t, n);
3400
+ if (a.err)
3401
+ return a;
3402
+ i.push(a.val);
3403
+ }
3404
+ }
3405
+ }
3406
+ return { val: i, err: null };
3407
+ }, e.prototype.parseTag = function(t, n) {
3408
+ var r = this.clonePosition();
3409
+ this.bump();
3410
+ var i = this.parseTagName();
3411
+ if (this.bumpSpace(), this.bumpIf("/>"))
3412
+ return {
3413
+ val: {
3414
+ type: E.literal,
3415
+ value: "<".concat(i, "/>"),
3416
+ location: y(r, this.clonePosition())
3417
+ },
3418
+ err: null
3419
+ };
3420
+ if (this.bumpIf(">")) {
3421
+ var o = this.parseMessage(t + 1, n, !0);
3422
+ if (o.err)
3423
+ return o;
3424
+ var a = o.val, s = this.clonePosition();
3425
+ if (this.bumpIf("</")) {
3426
+ if (this.isEOF() || !Ye(this.char()))
3427
+ return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3428
+ var l = this.clonePosition(), u = this.parseTagName();
3429
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3430
+ val: {
3431
+ type: E.tag,
3432
+ value: i,
3433
+ children: a,
3434
+ location: y(r, this.clonePosition())
3435
+ },
3436
+ err: null
3437
+ } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
3438
+ } else
3439
+ return this.error(b.UNCLOSED_TAG, y(r, this.clonePosition()));
3440
+ } else
3441
+ return this.error(b.INVALID_TAG, y(r, this.clonePosition()));
3442
+ }, e.prototype.parseTagName = function() {
3443
+ var t = this.offset();
3444
+ for (this.bump(); !this.isEOF() && Ci(this.char()); )
3445
+ this.bump();
3446
+ return this.message.slice(t, this.offset());
3447
+ }, e.prototype.parseLiteral = function(t, n) {
3448
+ for (var r = this.clonePosition(), i = ""; ; ) {
3449
+ var o = this.tryParseQuote(n);
3450
+ if (o) {
3451
+ i += o;
3452
+ continue;
3453
+ }
3454
+ var a = this.tryParseUnquoted(t, n);
3455
+ if (a) {
3456
+ i += a;
3457
+ continue;
3458
+ }
3459
+ var s = this.tryParseLeftAngleBracket();
3460
+ if (s) {
3461
+ i += s;
3462
+ continue;
3463
+ }
3464
+ break;
3465
+ }
3466
+ var l = y(r, this.clonePosition());
3467
+ return {
3468
+ val: { type: E.literal, value: i, location: l },
3469
+ err: null
3470
+ };
3471
+ }, e.prototype.tryParseLeftAngleBracket = function() {
3472
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3473
+ !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
3474
+ }, e.prototype.tryParseQuote = function(t) {
3475
+ if (this.isEOF() || this.char() !== 39)
3476
+ return null;
3477
+ switch (this.peek()) {
3478
+ case 39:
3479
+ return this.bump(), this.bump(), "'";
3480
+ case 123:
3481
+ case 60:
3482
+ case 62:
3483
+ case 125:
3484
+ break;
3485
+ case 35:
3486
+ if (t === "plural" || t === "selectordinal")
3487
+ break;
3488
+ return null;
3489
+ default:
3490
+ return null;
3491
+ }
3492
+ this.bump();
3493
+ var n = [this.char()];
3494
+ for (this.bump(); !this.isEOF(); ) {
3495
+ var r = this.char();
3496
+ if (r === 39)
3497
+ if (this.peek() === 39)
3498
+ n.push(39), this.bump();
3499
+ else {
3500
+ this.bump();
3501
+ break;
3502
+ }
3503
+ else
3504
+ n.push(r);
3505
+ this.bump();
3506
+ }
3507
+ return Je.apply(void 0, n);
3508
+ }, e.prototype.tryParseUnquoted = function(t, n) {
3509
+ if (this.isEOF())
3510
+ return null;
3511
+ var r = this.char();
3512
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Je(r));
3513
+ }, e.prototype.parseArgument = function(t, n) {
3514
+ var r = this.clonePosition();
3515
+ if (this.bump(), this.bumpSpace(), this.isEOF())
3516
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition()));
3517
+ if (this.char() === 125)
3518
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(r, this.clonePosition()));
3519
+ var i = this.parseIdentifierIfPossible().value;
3520
+ if (!i)
3521
+ return this.error(b.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
3522
+ if (this.bumpSpace(), this.isEOF())
3523
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition()));
3524
+ switch (this.char()) {
3525
+ case 125:
3526
+ return this.bump(), {
3527
+ val: {
3528
+ type: E.argument,
3529
+ // value does not include the opening and closing braces.
3530
+ value: i,
3531
+ location: y(r, this.clonePosition())
3532
+ },
3533
+ err: null
3534
+ };
3535
+ case 44:
3536
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3537
+ default:
3538
+ return this.error(b.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
3539
+ }
3540
+ }, e.prototype.parseIdentifierIfPossible = function() {
3541
+ var t = this.clonePosition(), n = this.offset(), r = qe(this.message, n), i = n + r.length;
3542
+ this.bumpTo(i);
3543
+ var o = this.clonePosition(), a = y(t, o);
3544
+ return { value: r, location: a };
3545
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3546
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3547
+ switch (s) {
3548
+ case "":
3549
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
3550
+ case "number":
3551
+ case "date":
3552
+ case "time": {
3553
+ this.bumpSpace();
3554
+ var u = null;
3555
+ if (this.bumpIf(",")) {
3556
+ this.bumpSpace();
3557
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3558
+ if (f.err)
3559
+ return f;
3560
+ var c = Si(f.val);
3561
+ if (c.length === 0)
3562
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3563
+ var d = y(h, this.clonePosition());
3564
+ u = { style: c, styleLocation: d };
3565
+ }
3566
+ var m = this.tryParseArgumentClose(i);
3567
+ if (m.err)
3568
+ return m;
3569
+ var p = y(i, this.clonePosition());
3570
+ if (u && At(u == null ? void 0 : u.style, "::", 0)) {
3571
+ var v = wi(u.style.slice(2));
3572
+ if (s === "number") {
3573
+ var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
3574
+ return f.err ? f : {
3575
+ val: { type: E.number, value: r, location: p, style: f.val },
3576
+ err: null
3577
+ };
3578
+ } else {
3579
+ if (v.length === 0)
3580
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
3581
+ var T = v;
3582
+ this.locale && (T = hi(v, this.locale));
3583
+ var c = {
3584
+ type: J.dateTime,
3585
+ pattern: T,
3586
+ location: u.styleLocation,
3587
+ parsedOptions: this.shouldParseSkeletons ? ri(T) : {}
3588
+ }, C = s === "date" ? E.date : E.time;
3589
+ return {
3590
+ val: { type: C, value: r, location: p, style: c },
3591
+ err: null
3592
+ };
3593
+ }
3594
+ }
3595
+ return {
3596
+ val: {
3597
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
3598
+ value: r,
3599
+ location: p,
3600
+ style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3601
+ },
3602
+ err: null
3603
+ };
3604
+ }
3605
+ case "plural":
3606
+ case "selectordinal":
3607
+ case "select": {
3608
+ var w = this.clonePosition();
3609
+ if (this.bumpSpace(), !this.bumpIf(","))
3610
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, x({}, w)));
3611
+ this.bumpSpace();
3612
+ var B = this.parseIdentifierIfPossible(), S = 0;
3613
+ if (s !== "select" && B.value === "offset") {
3614
+ if (!this.bumpIf(":"))
3615
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3616
+ this.bumpSpace();
3617
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3618
+ if (f.err)
3619
+ return f;
3620
+ this.bumpSpace(), B = this.parseIdentifierIfPossible(), S = f.val;
3621
+ }
3622
+ var _ = this.tryParsePluralOrSelectOptions(t, s, n, B);
3623
+ if (_.err)
3624
+ return _;
3625
+ var m = this.tryParseArgumentClose(i);
3626
+ if (m.err)
3627
+ return m;
3628
+ var L = y(i, this.clonePosition());
3629
+ return s === "select" ? {
3630
+ val: {
3631
+ type: E.select,
3632
+ value: r,
3633
+ options: Pt(_.val),
3634
+ location: L
3635
+ },
3636
+ err: null
3637
+ } : {
3638
+ val: {
3639
+ type: E.plural,
3640
+ value: r,
3641
+ options: Pt(_.val),
3642
+ offset: S,
3643
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3644
+ location: L
3645
+ },
3646
+ err: null
3647
+ };
3648
+ }
3649
+ default:
3650
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
3651
+ }
3652
+ }, e.prototype.tryParseArgumentClose = function(t) {
3653
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3654
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3655
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3656
+ var r = this.char();
3657
+ switch (r) {
3658
+ case 39: {
3659
+ this.bump();
3660
+ var i = this.clonePosition();
3661
+ if (!this.bumpUntil("'"))
3662
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3663
+ this.bump();
3664
+ break;
3665
+ }
3666
+ case 123: {
3667
+ t += 1, this.bump();
3668
+ break;
3669
+ }
3670
+ case 125: {
3671
+ if (t > 0)
3672
+ t -= 1;
3673
+ else
3674
+ return {
3675
+ val: this.message.slice(n.offset, this.offset()),
3676
+ err: null
3677
+ };
3678
+ break;
3679
+ }
3680
+ default:
3681
+ this.bump();
3682
+ break;
3683
+ }
3684
+ }
3685
+ return {
3686
+ val: this.message.slice(n.offset, this.offset()),
3687
+ err: null
3688
+ };
3689
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3690
+ var r = [];
3691
+ try {
3692
+ r = oi(t);
3693
+ } catch (i) {
3694
+ return this.error(b.INVALID_NUMBER_SKELETON, n);
3695
+ }
3696
+ return {
3697
+ val: {
3698
+ type: J.number,
3699
+ tokens: r,
3700
+ location: n,
3701
+ parsedOptions: this.shouldParseSkeletons ? li(r) : {}
3702
+ },
3703
+ err: null
3704
+ };
3705
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3706
+ for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3707
+ if (u.length === 0) {
3708
+ var f = this.clonePosition();
3709
+ if (n !== "select" && this.bumpIf("=")) {
3710
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3711
+ if (c.err)
3712
+ return c;
3713
+ h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3714
+ } else
3715
+ break;
3716
+ }
3717
+ if (l.has(u))
3718
+ return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3719
+ u === "other" && (a = !0), this.bumpSpace();
3720
+ var d = this.clonePosition();
3721
+ if (!this.bumpIf("{"))
3722
+ return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3723
+ var m = this.parseMessage(t + 1, n, r);
3724
+ if (m.err)
3725
+ return m;
3726
+ var p = this.tryParseArgumentClose(d);
3727
+ if (p.err)
3728
+ return p;
3729
+ s.push([
3730
+ u,
3731
+ {
3732
+ value: m.val,
3733
+ location: y(d, this.clonePosition())
3734
+ }
3735
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3736
+ }
3737
+ return s.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3738
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3739
+ var r = 1, i = this.clonePosition();
3740
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3741
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3742
+ var s = this.char();
3743
+ if (s >= 48 && s <= 57)
3744
+ o = !0, a = a * 10 + (s - 48), this.bump();
3745
+ else
3746
+ break;
3747
+ }
3748
+ var l = y(i, this.clonePosition());
3749
+ return o ? (a *= r, _i(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3750
+ }, e.prototype.offset = function() {
3751
+ return this.position.offset;
3752
+ }, e.prototype.isEOF = function() {
3753
+ return this.offset() === this.message.length;
3754
+ }, e.prototype.clonePosition = function() {
3755
+ return {
3756
+ offset: this.position.offset,
3757
+ line: this.position.line,
3758
+ column: this.position.column
3759
+ };
3760
+ }, e.prototype.char = function() {
3761
+ var t = this.position.offset;
3762
+ if (t >= this.message.length)
3763
+ throw Error("out of bound");
3764
+ var n = bn(this.message, t);
3765
+ if (n === void 0)
3766
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3767
+ return n;
3768
+ }, e.prototype.error = function(t, n) {
3769
+ return {
3770
+ val: null,
3771
+ err: {
3772
+ kind: t,
3773
+ message: this.message,
3774
+ location: n
3775
+ }
3776
+ };
3777
+ }, e.prototype.bump = function() {
3778
+ if (!this.isEOF()) {
3779
+ var t = this.char();
3780
+ 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);
3781
+ }
3782
+ }, e.prototype.bumpIf = function(t) {
3783
+ if (At(this.message, t, this.offset())) {
3784
+ for (var n = 0; n < t.length; n++)
3785
+ this.bump();
3786
+ return !0;
3787
+ }
3788
+ return !1;
3789
+ }, e.prototype.bumpUntil = function(t) {
3790
+ var n = this.offset(), r = this.message.indexOf(t, n);
3791
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3792
+ }, e.prototype.bumpTo = function(t) {
3793
+ if (this.offset() > t)
3794
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3795
+ for (t = Math.min(t, this.message.length); ; ) {
3796
+ var n = this.offset();
3797
+ if (n === t)
3798
+ break;
3799
+ if (n > t)
3800
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3801
+ if (this.bump(), this.isEOF())
3802
+ break;
3803
+ }
3804
+ }, e.prototype.bumpSpace = function() {
3805
+ for (; !this.isEOF() && yn(this.char()); )
3806
+ this.bump();
3807
+ }, e.prototype.peek = function() {
3808
+ if (this.isEOF())
3809
+ return null;
3810
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3811
+ return r != null ? r : null;
3812
+ }, e;
3813
+ }()
3814
+ );
3815
+ function Ye(e) {
3816
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3817
+ }
3818
+ function Hi(e) {
3819
+ return Ye(e) || e === 47;
3820
+ }
3821
+ function Ci(e) {
3822
+ 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;
3823
+ }
3824
+ function yn(e) {
3825
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3826
+ }
3827
+ function Bi(e) {
3828
+ 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;
3829
+ }
3830
+ function Ke(e) {
3831
+ e.forEach(function(t) {
3832
+ if (delete t.location, un(t) || ln(t))
3833
+ for (var n in t.options)
3834
+ delete t.options[n].location, Ke(t.options[n].value);
3835
+ else
3836
+ on(t) && fn(t.style) || (sn(t) || an(t)) && Ze(t.style) ? delete t.style.location : hn(t) && Ke(t.children);
3837
+ });
3838
+ }
3839
+ function Ai(e, t) {
3840
+ t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3841
+ var n = new Ti(e, t).parse();
3842
+ if (n.err) {
3843
+ var r = SyntaxError(b[n.err.kind]);
3844
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3845
+ }
3846
+ return t != null && t.captureLocation || Ke(n.val), n.val;
3847
+ }
3848
+ var q;
3849
+ (function(e) {
3850
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3851
+ })(q || (q = {}));
3852
+ var He = (
3853
+ /** @class */
3854
+ function(e) {
3855
+ G(t, e);
3856
+ function t(n, r, i) {
3857
+ var o = e.call(this, n) || this;
3858
+ return o.code = r, o.originalMessage = i, o;
3859
+ }
3860
+ return t.prototype.toString = function() {
3861
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3862
+ }, t;
3863
+ }(Error)
3864
+ ), Ot = (
3865
+ /** @class */
3866
+ function(e) {
3867
+ G(t, e);
3868
+ function t(n, r, i, o) {
3869
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3870
+ }
3871
+ return t;
3872
+ }(He)
3873
+ ), Pi = (
3874
+ /** @class */
3875
+ function(e) {
3876
+ G(t, e);
3877
+ function t(n, r, i) {
3878
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), q.INVALID_VALUE, i) || this;
3879
+ }
3880
+ return t;
3881
+ }(He)
3882
+ ), Li = (
3883
+ /** @class */
3884
+ function(e) {
3885
+ G(t, e);
3886
+ function t(n, r) {
3887
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), q.MISSING_VALUE, r) || this;
3888
+ }
3889
+ return t;
3890
+ }(He)
3891
+ ), A;
3892
+ (function(e) {
3893
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3894
+ })(A || (A = {}));
3895
+ function Oi(e) {
3896
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3897
+ var r = t[t.length - 1];
3898
+ return !r || r.type !== A.literal || n.type !== A.literal ? t.push(n) : r.value += n.value, t;
3899
+ }, []);
3900
+ }
3901
+ function Ii(e) {
3902
+ return typeof e == "function";
3903
+ }
3904
+ function be(e, t, n, r, i, o, a) {
3905
+ if (e.length === 1 && Tt(e[0]))
3906
+ return [
3907
+ {
3908
+ type: A.literal,
3909
+ value: e[0].value
3910
+ }
3911
+ ];
3912
+ for (var s = [], l = 0, u = e; l < u.length; l++) {
3913
+ var h = u[l];
3914
+ if (Tt(h)) {
3915
+ s.push({
3916
+ type: A.literal,
3917
+ value: h.value
3918
+ });
3919
+ continue;
3920
+ }
3921
+ if (ti(h)) {
3922
+ typeof o == "number" && s.push({
3923
+ type: A.literal,
3924
+ value: n.getNumberFormat(t).format(o)
3925
+ });
3926
+ continue;
3927
+ }
3928
+ var f = h.value;
3929
+ if (!(i && f in i))
3930
+ throw new Li(f, a);
3931
+ var c = i[f];
3932
+ if (ei(h)) {
3933
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3934
+ type: typeof c == "string" ? A.literal : A.object,
3935
+ value: c
3936
+ });
3937
+ continue;
3938
+ }
3939
+ if (sn(h)) {
3940
+ var d = typeof h.style == "string" ? r.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
3941
+ s.push({
3942
+ type: A.literal,
3943
+ value: n.getDateTimeFormat(t, d).format(c)
3944
+ });
3945
+ continue;
3946
+ }
3947
+ if (an(h)) {
3948
+ var d = typeof h.style == "string" ? r.time[h.style] : Ze(h.style) ? h.style.parsedOptions : r.time.medium;
3949
+ s.push({
3950
+ type: A.literal,
3951
+ value: n.getDateTimeFormat(t, d).format(c)
3952
+ });
3953
+ continue;
3954
+ }
3955
+ if (on(h)) {
3956
+ var d = typeof h.style == "string" ? r.number[h.style] : fn(h.style) ? h.style.parsedOptions : void 0;
3957
+ d && d.scale && (c = c * (d.scale || 1)), s.push({
3958
+ type: A.literal,
3959
+ value: n.getNumberFormat(t, d).format(c)
3960
+ });
3961
+ continue;
3962
+ }
3963
+ if (hn(h)) {
3964
+ var m = h.children, p = h.value, v = i[p];
3965
+ if (!Ii(v))
3966
+ throw new Pi(p, "function", a);
3967
+ var T = be(m, t, n, r, i, o), C = v(T.map(function(S) {
3968
+ return S.value;
3969
+ }));
3970
+ Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(S) {
3971
+ return {
3972
+ type: typeof S == "string" ? A.literal : A.object,
3973
+ value: S
3974
+ };
3975
+ }));
3976
+ }
3977
+ if (un(h)) {
3978
+ var w = h.options[c] || h.options.other;
3979
+ if (!w)
3980
+ throw new Ot(h.value, c, Object.keys(h.options), a);
3981
+ s.push.apply(s, be(w.value, t, n, r, i));
3982
+ continue;
3983
+ }
3984
+ if (ln(h)) {
3985
+ var w = h.options["=".concat(c)];
3986
+ if (!w) {
3987
+ if (!Intl.PluralRules)
3988
+ throw new He(`Intl.PluralRules is not available in this environment.
3989
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3990
+ `, q.MISSING_INTL_API, a);
3991
+ var B = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3992
+ w = h.options[B] || h.options.other;
3993
+ }
3994
+ if (!w)
3995
+ throw new Ot(h.value, c, Object.keys(h.options), a);
3996
+ s.push.apply(s, be(w.value, t, n, r, i, c - (h.offset || 0)));
3997
+ continue;
3998
+ }
3999
+ }
4000
+ return Oi(s);
4001
+ }
4002
+ function Mi(e, t) {
4003
+ return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
4004
+ return n[r] = x(x({}, e[r]), t[r] || {}), n;
4005
+ }, {})) : e;
4006
+ }
4007
+ function Ni(e, t) {
4008
+ return t ? Object.keys(e).reduce(function(n, r) {
4009
+ return n[r] = Mi(e[r], t[r]), n;
4010
+ }, x({}, e)) : e;
4011
+ }
4012
+ function Ue(e) {
4013
+ return {
4014
+ create: function() {
4015
+ return {
4016
+ get: function(t) {
4017
+ return e[t];
4018
+ },
4019
+ set: function(t, n) {
4020
+ e[t] = n;
4021
+ }
4022
+ };
4023
+ }
4024
+ };
4025
+ }
4026
+ function $i(e) {
4027
+ return e === void 0 && (e = {
4028
+ number: {},
4029
+ dateTime: {},
4030
+ pluralRules: {}
4031
+ }), {
4032
+ getNumberFormat: $e(function() {
4033
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4034
+ n[r] = arguments[r];
4035
+ return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
4036
+ }, {
4037
+ cache: Ue(e.number),
4038
+ strategy: Re.variadic
4039
+ }),
4040
+ getDateTimeFormat: $e(function() {
4041
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4042
+ n[r] = arguments[r];
4043
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
4044
+ }, {
4045
+ cache: Ue(e.dateTime),
4046
+ strategy: Re.variadic
4047
+ }),
4048
+ getPluralRules: $e(function() {
4049
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4050
+ n[r] = arguments[r];
4051
+ return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
4052
+ }, {
4053
+ cache: Ue(e.pluralRules),
4054
+ strategy: Re.variadic
4055
+ })
4056
+ };
4057
+ }
4058
+ var Ri = (
4059
+ /** @class */
4060
+ function() {
4061
+ function e(t, n, r, i) {
4062
+ n === void 0 && (n = e.defaultLocale);
4063
+ var o = this;
4064
+ if (this.formatterCache = {
4065
+ number: {},
4066
+ dateTime: {},
4067
+ pluralRules: {}
4068
+ }, this.format = function(l) {
4069
+ var u = o.formatToParts(l);
4070
+ if (u.length === 1)
4071
+ return u[0].value;
4072
+ var h = u.reduce(function(f, c) {
4073
+ return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4074
+ }, []);
4075
+ return h.length <= 1 ? h[0] || "" : h;
4076
+ }, this.formatToParts = function(l) {
4077
+ return be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
4078
+ }, this.resolvedOptions = function() {
4079
+ var l;
4080
+ return {
4081
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4082
+ };
4083
+ }, this.getAst = function() {
4084
+ return o.ast;
4085
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
4086
+ if (this.message = t, !e.__parse)
4087
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4088
+ var a = i || {};
4089
+ a.formatters;
4090
+ var s = pr(a, ["formatters"]);
4091
+ this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
4092
+ } else
4093
+ this.ast = t;
4094
+ if (!Array.isArray(this.ast))
4095
+ throw new TypeError("A message must be provided as a String or AST.");
4096
+ this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || $i(this.formatterCache);
4097
+ }
4098
+ return Object.defineProperty(e, "defaultLocale", {
4099
+ get: function() {
4100
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4101
+ },
4102
+ enumerable: !1,
4103
+ configurable: !0
4104
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4105
+ if (typeof Intl.Locale != "undefined") {
4106
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
4107
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4108
+ }
4109
+ }, e.__parse = Ai, e.formats = {
4110
+ number: {
4111
+ integer: {
4112
+ maximumFractionDigits: 0
4113
+ },
4114
+ currency: {
4115
+ style: "currency"
4116
+ },
4117
+ percent: {
4118
+ style: "percent"
4119
+ }
4120
+ },
4121
+ date: {
4122
+ short: {
4123
+ month: "numeric",
4124
+ day: "numeric",
4125
+ year: "2-digit"
4126
+ },
4127
+ medium: {
4128
+ month: "short",
4129
+ day: "numeric",
4130
+ year: "numeric"
4131
+ },
4132
+ long: {
4133
+ month: "long",
4134
+ day: "numeric",
4135
+ year: "numeric"
4136
+ },
4137
+ full: {
4138
+ weekday: "long",
4139
+ month: "long",
4140
+ day: "numeric",
4141
+ year: "numeric"
4142
+ }
4143
+ },
4144
+ time: {
4145
+ short: {
4146
+ hour: "numeric",
4147
+ minute: "numeric"
4148
+ },
4149
+ medium: {
4150
+ hour: "numeric",
4151
+ minute: "numeric",
4152
+ second: "numeric"
4153
+ },
4154
+ long: {
4155
+ hour: "numeric",
4156
+ minute: "numeric",
4157
+ second: "numeric",
4158
+ timeZoneName: "short"
4159
+ },
4160
+ full: {
4161
+ hour: "numeric",
4162
+ minute: "numeric",
4163
+ second: "numeric",
4164
+ timeZoneName: "short"
4165
+ }
4166
+ }
4167
+ }, e;
4168
+ }()
4169
+ );
4170
+ function Gi(e, t) {
4171
+ if (t == null)
4172
+ return;
4173
+ if (t in e)
4174
+ return e[t];
4175
+ const n = t.split(".");
4176
+ let r = e;
4177
+ for (let i = 0; i < n.length; i++)
4178
+ if (typeof r == "object") {
4179
+ if (i > 0) {
4180
+ const o = n.slice(i, n.length).join(".");
4181
+ if (o in r) {
4182
+ r = r[o];
4183
+ break;
4184
+ }
4185
+ }
4186
+ r = r[n[i]];
4187
+ } else
4188
+ r = void 0;
4189
+ return r;
4190
+ }
4191
+ const U = {}, Ui = (e, t, n) => n && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = n), n), vn = (e, t) => {
4192
+ if (t == null)
4193
+ return;
4194
+ if (t in U && e in U[t])
4195
+ return U[t][e];
4196
+ const n = Ce(t);
4197
+ for (let r = 0; r < n.length; r++) {
4198
+ const i = n[r], o = Fi(i, e);
4199
+ if (o)
4200
+ return Ui(e, t, o);
4201
+ }
4202
+ };
4203
+ let st;
4204
+ const he = Te({});
4205
+ function Di(e) {
4206
+ return st[e] || null;
4207
+ }
4208
+ function xn(e) {
4209
+ return e in st;
4210
+ }
4211
+ function Fi(e, t) {
4212
+ if (!xn(e))
4213
+ return null;
4214
+ const n = Di(e);
4215
+ return Gi(n, t);
4216
+ }
4217
+ function ji(e) {
4218
+ if (e == null)
4219
+ return;
4220
+ const t = Ce(e);
4221
+ for (let n = 0; n < t.length; n++) {
4222
+ const r = t[n];
4223
+ if (xn(r))
4224
+ return r;
4225
+ }
4226
+ }
4227
+ function _n(e, ...t) {
4228
+ delete U[e], he.update((n) => (n[e] = zr.all([n[e] || {}, ...t]), n));
4229
+ }
4230
+ K(
4231
+ [he],
4232
+ ([e]) => Object.keys(e)
4233
+ );
4234
+ he.subscribe((e) => st = e);
4235
+ const ge = {};
4236
+ function ki(e, t) {
4237
+ ge[e].delete(t), ge[e].size === 0 && delete ge[e];
4238
+ }
4239
+ function En(e) {
4240
+ return ge[e];
4241
+ }
4242
+ function Vi(e) {
4243
+ return Ce(e).map((t) => {
4244
+ const n = En(t);
4245
+ return [t, n ? [...n] : []];
4246
+ }).filter(([, t]) => t.length > 0);
4247
+ }
4248
+ function et(e) {
4249
+ return e == null ? !1 : Ce(e).some(
4250
+ (t) => {
4251
+ var n;
4252
+ return (n = En(t)) == null ? void 0 : n.size;
4253
+ }
4254
+ );
4255
+ }
4256
+ function Xi(e, t) {
4257
+ return Promise.all(
4258
+ t.map((r) => (ki(e, r), r().then((i) => i.default || i)))
4259
+ ).then((r) => _n(e, ...r));
4260
+ }
4261
+ const re = {};
4262
+ function wn(e) {
4263
+ if (!et(e))
4264
+ return e in re ? re[e] : Promise.resolve();
4265
+ const t = Vi(e);
4266
+ return re[e] = Promise.all(
4267
+ t.map(
4268
+ ([n, r]) => Xi(n, r)
4269
+ )
4270
+ ).then(() => {
4271
+ if (et(e))
4272
+ return wn(e);
4273
+ delete re[e];
4274
+ }), re[e];
4275
+ }
4276
+ const zi = {
4277
+ number: {
4278
+ scientific: { notation: "scientific" },
4279
+ engineering: { notation: "engineering" },
4280
+ compactLong: { notation: "compact", compactDisplay: "long" },
4281
+ compactShort: { notation: "compact", compactDisplay: "short" }
4282
+ },
4283
+ date: {
4284
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
4285
+ medium: { month: "short", day: "numeric", year: "numeric" },
4286
+ long: { month: "long", day: "numeric", year: "numeric" },
4287
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4288
+ },
4289
+ time: {
4290
+ short: { hour: "numeric", minute: "numeric" },
4291
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4292
+ long: {
4293
+ hour: "numeric",
4294
+ minute: "numeric",
4295
+ second: "numeric",
4296
+ timeZoneName: "short"
4297
+ },
4298
+ full: {
4299
+ hour: "numeric",
4300
+ minute: "numeric",
4301
+ second: "numeric",
4302
+ timeZoneName: "short"
4303
+ }
4304
+ }
4305
+ }, Wi = {
4306
+ fallbackLocale: null,
4307
+ loadingDelay: 200,
4308
+ formats: zi,
4309
+ warnOnMissingMessages: !0,
4310
+ handleMissingMessage: void 0,
4311
+ ignoreTag: !0
4312
+ }, Zi = Wi;
4313
+ function Y() {
4314
+ return Zi;
4315
+ }
4316
+ const De = Te(!1);
4317
+ var Qi = Object.defineProperty, Ji = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, Mt = (e, t, n) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, eo = (e, t) => {
4318
+ for (var n in t)
4319
+ Yi.call(t, n) && Mt(e, n, t[n]);
4320
+ if (It)
4321
+ for (var n of It(t))
4322
+ Ki.call(t, n) && Mt(e, n, t[n]);
4323
+ return e;
4324
+ }, to = (e, t) => Ji(e, qi(t));
4325
+ let tt;
4326
+ const _e = Te(null);
4327
+ function Nt(e) {
4328
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4329
+ }
4330
+ function Ce(e, t = Y().fallbackLocale) {
4331
+ const n = Nt(e);
4332
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Nt(t)])] : n;
4333
+ }
4334
+ function F() {
4335
+ return tt != null ? tt : void 0;
4336
+ }
4337
+ _e.subscribe((e) => {
4338
+ tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4339
+ });
4340
+ const no = (e) => {
4341
+ if (e && ji(e) && et(e)) {
4342
+ const { loadingDelay: t } = Y();
4343
+ let n;
4344
+ return typeof window != "undefined" && F() != null && t ? n = window.setTimeout(
4345
+ () => De.set(!0),
4346
+ t
4347
+ ) : De.set(!0), wn(e).then(() => {
4348
+ _e.set(e);
4349
+ }).finally(() => {
4350
+ clearTimeout(n), De.set(!1);
4351
+ });
4352
+ }
4353
+ return _e.set(e);
4354
+ }, ee = to(eo({}, _e), {
4355
+ set: no
4356
+ }), Be = (e) => {
4357
+ const t = /* @__PURE__ */ Object.create(null);
4358
+ return (r) => {
4359
+ const i = JSON.stringify(r);
4360
+ return i in t ? t[i] : t[i] = e(r);
4361
+ };
4362
+ };
4363
+ var ro = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
4364
+ for (var n in t || (t = {}))
4365
+ Sn.call(t, n) && $t(e, n, t[n]);
4366
+ if (Ee)
4367
+ for (var n of Ee(t))
4368
+ Tn.call(t, n) && $t(e, n, t[n]);
4369
+ return e;
4370
+ }, te = (e, t) => {
4371
+ var n = {};
4372
+ for (var r in e)
4373
+ Sn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4374
+ if (e != null && Ee)
4375
+ for (var r of Ee(e))
4376
+ t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
4377
+ return n;
4378
+ };
4379
+ const ue = (e, t) => {
4380
+ const { formats: n } = Y();
4381
+ if (e in n && t in n[e])
4382
+ return n[e][t];
4383
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4384
+ }, io = Be(
4385
+ (e) => {
4386
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4387
+ if (n == null)
4388
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4389
+ return r && (i = ue("number", r)), new Intl.NumberFormat(n, i);
4390
+ }
4391
+ ), oo = Be(
4392
+ (e) => {
4393
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4394
+ if (n == null)
4395
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4396
+ return r ? i = ue("date", r) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(n, i);
4397
+ }
4398
+ ), so = Be(
4399
+ (e) => {
4400
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4401
+ if (n == null)
4402
+ throw new Error(
4403
+ '[svelte-i18n] A "locale" must be set to format time values'
4404
+ );
4405
+ return r ? i = ue("time", r) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(n, i);
4406
+ }
4407
+ ), ao = (e = {}) => {
4408
+ var t = e, {
4409
+ locale: n = F()
4410
+ } = t, r = te(t, [
4411
+ "locale"
4412
+ ]);
4413
+ return io(at({ locale: n }, r));
4414
+ }, uo = (e = {}) => {
4415
+ var t = e, {
4416
+ locale: n = F()
4417
+ } = t, r = te(t, [
4418
+ "locale"
4419
+ ]);
4420
+ return oo(at({ locale: n }, r));
4421
+ }, lo = (e = {}) => {
4422
+ var t = e, {
4423
+ locale: n = F()
4424
+ } = t, r = te(t, [
4425
+ "locale"
4426
+ ]);
4427
+ return so(at({ locale: n }, r));
4428
+ }, ho = Be(
4429
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4430
+ (e, t = F()) => new Ri(e, t, Y().formats, {
4431
+ ignoreTag: Y().ignoreTag
4432
+ })
4433
+ ), fo = (e, t = {}) => {
4434
+ var n, r, i, o;
4435
+ let a = t;
4436
+ typeof e == "object" && (a = e, e = a.id);
4437
+ const {
4438
+ values: s,
4439
+ locale: l = F(),
4440
+ default: u
4441
+ } = a;
4442
+ if (l == null)
4443
+ throw new Error(
4444
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
4445
+ );
4446
+ let h = vn(e, l);
4447
+ if (!h)
4448
+ h = (o = (i = (r = (n = Y()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4449
+ else if (typeof h != "string")
4450
+ return console.warn(
4451
+ `[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.`
4452
+ ), h;
4453
+ if (!s)
4454
+ return h;
4455
+ let f = h;
4456
+ try {
4457
+ f = ho(h, l).format(s);
4458
+ } catch (c) {
4459
+ c instanceof Error && console.warn(
4460
+ `[svelte-i18n] Message "${e}" has syntax error:`,
4461
+ c.message
4462
+ );
4463
+ }
4464
+ return f;
4465
+ }, co = (e, t) => lo(t).format(e), mo = (e, t) => uo(t).format(e), po = (e, t) => ao(t).format(e), bo = (e, t = F()) => vn(e, t), go = K([ee, he], () => fo);
4466
+ K([ee], () => co);
4467
+ K([ee], () => mo);
4468
+ K([ee], () => po);
4469
+ K([ee, he], () => bo);
4470
+ window.emWidgets = { topic: Ar };
4471
+ const yo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4472
+ function vo(e, t) {
4473
+ if (e) {
4474
+ const n = document.createElement("style");
4475
+ n.innerHTML = t, e.appendChild(n);
4476
+ }
4477
+ }
4478
+ function xo(e, t) {
4479
+ const n = new URL(t);
4480
+ fetch(n.href).then((r) => r.text()).then((r) => {
4481
+ const i = document.createElement("style");
4482
+ i.innerHTML = r, e && e.appendChild(i);
4483
+ }).catch((r) => {
4484
+ console.error("There was an error while trying to load client styling from URL", r);
4485
+ });
4486
+ }
4487
+ function _o(e, t, n) {
4488
+ if (window.emMessageBus) {
4489
+ const r = document.createElement("style");
4490
+ window.emMessageBus.subscribe(t, (i) => {
4491
+ r.innerHTML = i, e && e.appendChild(r);
4492
+ });
4493
+ }
4494
+ }
4495
+ function Rt(e, t) {
4496
+ _n(e, t);
4497
+ }
4498
+ function Eo(e) {
4499
+ ee.set(e);
4500
+ }
4501
+ const Gt = {
4502
+ en: {
4503
+ cancel: "Cancel",
4504
+ confirm: "Confirm"
4505
+ },
4506
+ fr: {
4507
+ cancel: "Annuler",
4508
+ confirm: "Confirmer"
4509
+ },
4510
+ ro: {
4511
+ cancel: "Anulează",
4512
+ confirm: "Confirmă"
4513
+ },
4514
+ es: {
4515
+ cancel: "Cancelar",
4516
+ confirm: "Confirmar"
4517
+ },
4518
+ pt: {
4519
+ cancel: "Cancelar",
4520
+ confirm: "Confirmar"
4521
+ },
4522
+ "zh-hk": {
4523
+ cancel: "取消",
4524
+ confirm: "確認"
4525
+ },
4526
+ hr: {
4527
+ cancel: "Otkaži",
4528
+ confirm: "Potvrdi"
4529
+ },
4530
+ "pt-br": {
4531
+ cancel: "Cancelar",
4532
+ confirm: "confirme"
4533
+ },
4534
+ "es-mx": {
4535
+ cancel: "Cancelar",
4536
+ confirm: "Confirmar"
4537
+ },
4538
+ tr: {
4539
+ cancel: "İptal etmek",
4540
+ confirm: "Onaylamak"
4541
+ },
4542
+ "en-us": {
4543
+ cancel: "Cancel",
4544
+ confirm: "Confirm"
4545
+ }
4546
+ };
4547
+ function wo(e) {
4548
+ Vn(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
4549
+ }
4550
+ const So = (e) => ({}), Ut = (e) => ({});
4551
+ function To(e) {
4552
+ let t, n;
4553
+ return {
4554
+ c() {
4555
+ t = dt("svg"), n = dt("path"), H(n, "stroke-linecap", "round"), H(n, "stroke-linejoin", "round"), H(n, "stroke-width", "2"), H(n, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
4556
+ },
4557
+ m(r, i) {
4558
+ it(r, t, i), P(t, n);
4559
+ },
4560
+ p: I,
4561
+ d(r) {
4562
+ r && le(t);
4563
+ }
4564
+ };
4565
+ }
4566
+ function Ho(e) {
4567
+ let t, n, r, i, o, a, s, l, u, h = (
4568
+ /*$_*/
4569
+ e[2]("cancel") + ""
4570
+ ), f, c, d, m = (
4571
+ /*$_*/
4572
+ e[2]("confirm") + ""
4573
+ ), p, v, T, C;
4574
+ const w = (
4575
+ /*#slots*/
4576
+ e[14].close
4577
+ ), B = Gn(
4578
+ w,
4579
+ e,
4580
+ /*$$scope*/
4581
+ e[13],
4582
+ Ut
4583
+ ), S = B || To();
4584
+ return {
4585
+ c() {
4586
+ t = M("div"), n = M("div"), r = M("span"), S.c(), i = Pe(), o = M("div"), a = ie(
4587
+ /*modaltext*/
4588
+ e[0]
4589
+ ), s = Pe(), l = M("div"), u = M("button"), f = ie(h), c = Pe(), d = M("button"), p = ie(m), H(r, "class", "ModalCloseBtn"), H(r, "role", "button"), H(o, "class", "GamingLimitsConfirmationContent"), H(u, "class", "GamingLimitsCancelButton"), H(d, "class", "GamingLimitsConfirmButton"), H(l, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
4590
+ (e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
4591
+ (e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
4592
+ (e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
4593
+ },
4594
+ m(_, L) {
4595
+ it(_, t, L), P(t, n), P(n, r), S.m(r, null), P(n, i), P(n, o), P(o, a), P(n, s), P(n, l), P(l, u), P(u, f), P(l, c), P(l, d), P(d, p), e[15](t), v = !0, T || (C = [
4596
+ Le(
4597
+ r,
4598
+ "click",
4599
+ /*close*/
4600
+ e[4]
4601
+ ),
4602
+ Le(
4603
+ u,
4604
+ "click",
4605
+ /*cancelChanges*/
4606
+ e[6]
4607
+ ),
4608
+ Le(
4609
+ d,
4610
+ "click",
4611
+ /*confirmChanges*/
4612
+ e[5]
4613
+ )
4614
+ ], T = !0);
4615
+ },
4616
+ p(_, [L]) {
4617
+ B && B.p && (!v || L & /*$$scope*/
4618
+ 8192) && Dn(
4619
+ B,
4620
+ w,
4621
+ _,
4622
+ /*$$scope*/
4623
+ _[13],
4624
+ v ? Un(
4625
+ w,
4626
+ /*$$scope*/
4627
+ _[13],
4628
+ L,
4629
+ So
4630
+ ) : Fn(
4631
+ /*$$scope*/
4632
+ _[13]
4633
+ ),
4634
+ Ut
4635
+ ), (!v || L & /*modaltext*/
4636
+ 1) && Oe(
4637
+ a,
4638
+ /*modaltext*/
4639
+ _[0]
4640
+ ), (!v || L & /*$_*/
4641
+ 4) && h !== (h = /*$_*/
4642
+ _[2]("cancel") + "") && Oe(f, h), (!v || L & /*$_*/
4643
+ 4) && m !== (m = /*$_*/
4644
+ _[2]("confirm") + "") && Oe(p, m);
4645
+ },
4646
+ i(_) {
4647
+ v || (Wt(S, _), v = !0);
4648
+ },
4649
+ o(_) {
4650
+ sr(S, _), v = !1;
4651
+ },
4652
+ d(_) {
4653
+ _ && le(t), S.d(_), e[15](null), T = !1, D(C);
4654
+ }
4655
+ };
4656
+ }
4657
+ function Co(e, t, n) {
4658
+ let r;
4659
+ Rn(e, go, (g) => n(2, r = g));
4660
+ let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: f } = t, { translationurl: c = "" } = t;
4661
+ const d = () => {
4662
+ fetch(c).then((j) => j.json()).then((j) => {
4663
+ Object.keys(j).forEach((ut) => {
4664
+ Rt(ut, j[ut]);
4665
+ });
4666
+ }).catch((j) => {
4667
+ console.log(j);
4668
+ });
4669
+ };
4670
+ Object.keys(Gt).forEach((g) => {
4671
+ Rt(g, Gt[g]);
4672
+ });
4673
+ let m, p = window.navigator.userAgent, v = yo(p) !== "PC", T = {}, C = "";
4674
+ const w = () => {
4675
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
4676
+ }, B = () => {
4677
+ s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
4678
+ {
4679
+ type: "PlayerAccountGamingLimitDelete",
4680
+ limit: T,
4681
+ name: C
4682
+ },
4683
+ window.location.href
4684
+ ), window.postMessage({ type: "ModalClosed" }, window.location.href);
4685
+ }, S = () => {
4686
+ s === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : s === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
4687
+ }, _ = (g) => g === "Time Limit" ? "cumulativeSessionLimits" : g === "Deposit Limit" ? "depositLimits" : g === "Wagering Limit" ? "wageringLimit" : "lossLimit", L = (g) => {
4688
+ if (g.data)
4689
+ switch (g.data.type) {
4690
+ case "DeleteLimitsItem":
4691
+ T = g.data.removeData, C = _(g.data.removeName);
4692
+ break;
4693
+ }
4694
+ }, Cn = () => {
4695
+ Eo(l);
4696
+ };
4697
+ er(() => (window.addEventListener("message", L, !1), () => {
4698
+ window.removeEventListener("message", L);
4699
+ }));
4700
+ function Bn(g) {
4701
+ Fe[g ? "unshift" : "push"](() => {
4702
+ m = g, n(1, m);
4703
+ });
4704
+ }
4705
+ return e.$$set = (g) => {
4706
+ "modaltext" in g && n(0, a = g.modaltext), "modalsource" in g && n(7, s = g.modalsource), "lang" in g && n(8, l = g.lang), "clientstyling" in g && n(9, u = g.clientstyling), "clientstylingurl" in g && n(10, h = g.clientstylingurl), "mbsource" in g && n(11, f = g.mbsource), "translationurl" in g && n(12, c = g.translationurl), "$$scope" in g && n(13, o = g.$$scope);
4707
+ }, e.$$.update = () => {
4708
+ e.$$.dirty & /*modaltext, modalsource, lang*/
4709
+ 385 && a && s && l && Cn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4710
+ 514 && u && m && vo(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4711
+ 1026 && h && m && xo(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4712
+ 2050 && f && m && _o(m, `${f}.Style`), e.$$.dirty & /*translationurl*/
4713
+ 4096 && c && d();
4714
+ }, [
4715
+ a,
4716
+ m,
4717
+ r,
4718
+ v,
4719
+ w,
4720
+ B,
4721
+ S,
4722
+ s,
4723
+ l,
4724
+ u,
4725
+ h,
4726
+ f,
4727
+ c,
4728
+ o,
4729
+ i,
4730
+ Bn
4731
+ ];
4732
+ }
4733
+ class Hn extends mr {
4734
+ constructor(t) {
4735
+ super(), fr(
4736
+ this,
4737
+ t,
4738
+ Co,
4739
+ Ho,
4740
+ Ft,
4741
+ {
4742
+ modaltext: 0,
4743
+ modalsource: 7,
4744
+ lang: 8,
4745
+ clientstyling: 9,
4746
+ clientstylingurl: 10,
4747
+ mbsource: 11,
4748
+ translationurl: 12
4749
+ },
4750
+ wo
4751
+ );
4752
+ }
4753
+ get modaltext() {
4754
+ return this.$$.ctx[0];
4755
+ }
4756
+ set modaltext(t) {
4757
+ this.$$set({ modaltext: t }), N();
4758
+ }
4759
+ get modalsource() {
4760
+ return this.$$.ctx[7];
4761
+ }
4762
+ set modalsource(t) {
4763
+ this.$$set({ modalsource: t }), N();
4764
+ }
4765
+ get lang() {
4766
+ return this.$$.ctx[8];
4767
+ }
4768
+ set lang(t) {
4769
+ this.$$set({ lang: t }), N();
4770
+ }
4771
+ get clientstyling() {
4772
+ return this.$$.ctx[9];
4773
+ }
4774
+ set clientstyling(t) {
4775
+ this.$$set({ clientstyling: t }), N();
4776
+ }
4777
+ get clientstylingurl() {
4778
+ return this.$$.ctx[10];
4779
+ }
4780
+ set clientstylingurl(t) {
4781
+ this.$$set({ clientstylingurl: t }), N();
4782
+ }
4783
+ get mbsource() {
4784
+ return this.$$.ctx[11];
4785
+ }
4786
+ set mbsource(t) {
4787
+ this.$$set({ mbsource: t }), N();
4788
+ }
4789
+ get translationurl() {
4790
+ return this.$$.ctx[12];
4791
+ }
4792
+ set translationurl(t) {
4793
+ this.$$set({ translationurl: t }), N();
4794
+ }
4795
+ }
4796
+ cr(Hn, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
4797
+ const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4798
+ __proto__: null,
4799
+ default: Hn
4800
+ }, Symbol.toStringTag, { value: "Module" }));
4801
+ export {
4802
+ ee as $,
4803
+ $o as A,
4804
+ Io as B,
4805
+ Fe as C,
4806
+ vo as D,
4807
+ xo as E,
4808
+ _o as F,
4809
+ Mo as G,
4810
+ xe as H,
4811
+ No as I,
4812
+ we as J,
4813
+ go as K,
4814
+ Mn as L,
4815
+ Wt as M,
4816
+ sr as N,
4817
+ Go as O,
4818
+ Gn as P,
4819
+ Dn as Q,
4820
+ Fn as R,
4821
+ mr as S,
4822
+ Un as T,
4823
+ Uo as U,
4824
+ Ro as V,
4825
+ Fo as W,
4826
+ _n as a,
4827
+ Vn as b,
4828
+ cr as c,
4829
+ Pe as d,
4830
+ M as e,
4831
+ N as f,
4832
+ dt as g,
4833
+ H as h,
4834
+ fr as i,
4835
+ Oo as j,
4836
+ it as k,
4837
+ P as l,
4838
+ Le as m,
4839
+ Oe as n,
4840
+ I as o,
4841
+ Lo as p,
4842
+ le as q,
4843
+ D as r,
4844
+ Ft as s,
4845
+ ie as t,
4846
+ Rn as u,
4847
+ yo as v,
4848
+ er as w,
4849
+ Do as x,
4850
+ Ao as y,
4851
+ Po as z
4852
+ };