@everymatrix/player-reality-check 1.54.6 → 1.54.8

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