@everymatrix/user-login 1.87.27 → 1.87.29

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