@everymatrix/player-account-self-exclusion 1.64.8 → 1.65.1

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