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