@everymatrix/user-login 1.87.26 → 1.87.28

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