@everymatrix/player-account-timeout 1.52.6 → 1.53.0

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