@everymatrix/player-account-biometrics-action 0.0.1

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,4108 @@
1
+ function H() {
2
+ }
3
+ function it(e) {
4
+ return e();
5
+ }
6
+ function ke() {
7
+ return /* @__PURE__ */ Object.create(null);
8
+ }
9
+ function te(e) {
10
+ e.forEach(it);
11
+ }
12
+ function Re(e) {
13
+ return typeof e == "function";
14
+ }
15
+ function st(e, t) {
16
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
+ }
18
+ function $t(e) {
19
+ return Object.keys(e).length === 0;
20
+ }
21
+ function ot(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 Dt(e, t, r) {
31
+ e.$$.on_destroy.push(ot(t, r));
32
+ }
33
+ function $e(e, t) {
34
+ e.appendChild(t);
35
+ }
36
+ function Ut(e, t, r) {
37
+ const n = Gt(e);
38
+ if (!n.getElementById(t)) {
39
+ const i = G("style");
40
+ i.id = t, i.textContent = r, Ft(n, i);
41
+ }
42
+ }
43
+ function Gt(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 Ft(e, t) {
54
+ return $e(
55
+ /** @type {Document} */
56
+ e.head || e,
57
+ t
58
+ ), t.sheet;
59
+ }
60
+ function re(e, t, r) {
61
+ e.insertBefore(t, r || null);
62
+ }
63
+ function X(e) {
64
+ e.parentNode && e.parentNode.removeChild(e);
65
+ }
66
+ function G(e) {
67
+ return document.createElement(e);
68
+ }
69
+ function at(e) {
70
+ return document.createTextNode(e);
71
+ }
72
+ function kt() {
73
+ return at("");
74
+ }
75
+ function ut(e, t, r, n) {
76
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
77
+ }
78
+ function ue(e, t, r) {
79
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
80
+ }
81
+ function jt(e) {
82
+ return Array.from(e.childNodes);
83
+ }
84
+ function Vt(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 Xt(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 Y;
101
+ function q(e) {
102
+ Y = e;
103
+ }
104
+ function zt() {
105
+ if (!Y)
106
+ throw new Error("Function called outside component initialization");
107
+ return Y;
108
+ }
109
+ function Wt(e) {
110
+ zt().$$.on_mount.push(e);
111
+ }
112
+ const D = [], He = [];
113
+ let U = [];
114
+ const je = [], Zt = /* @__PURE__ */ Promise.resolve();
115
+ let Te = !1;
116
+ function Qt() {
117
+ Te || (Te = !0, Zt.then(w));
118
+ }
119
+ function Se(e) {
120
+ U.push(e);
121
+ }
122
+ const ge = /* @__PURE__ */ new Set();
123
+ let R = 0;
124
+ function w() {
125
+ if (R !== 0)
126
+ return;
127
+ const e = Y;
128
+ do {
129
+ try {
130
+ for (; R < D.length; ) {
131
+ const t = D[R];
132
+ R++, q(t), Jt(t.$$);
133
+ }
134
+ } catch (t) {
135
+ throw D.length = 0, R = 0, t;
136
+ }
137
+ for (q(null), D.length = 0, R = 0; He.length; )
138
+ He.pop()();
139
+ for (let t = 0; t < U.length; t += 1) {
140
+ const r = U[t];
141
+ ge.has(r) || (ge.add(r), r());
142
+ }
143
+ U.length = 0;
144
+ } while (D.length);
145
+ for (; je.length; )
146
+ je.pop()();
147
+ Te = !1, ge.clear(), q(e);
148
+ }
149
+ function Jt(e) {
150
+ if (e.fragment !== null) {
151
+ e.update(), te(e.before_update);
152
+ const t = e.dirty;
153
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
154
+ }
155
+ }
156
+ function qt(e) {
157
+ const t = [], r = [];
158
+ U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
159
+ }
160
+ const Yt = /* @__PURE__ */ new Set();
161
+ function Kt(e, t) {
162
+ e && e.i && (Yt.delete(e), e.i(t));
163
+ }
164
+ function er(e, t, r) {
165
+ const { fragment: n, after_update: i } = e.$$;
166
+ n && n.m(t, r), Se(() => {
167
+ const s = e.$$.on_mount.map(it).filter(Re);
168
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
169
+ }), i.forEach(Se);
170
+ }
171
+ function tr(e, t) {
172
+ const r = e.$$;
173
+ r.fragment !== null && (qt(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
174
+ }
175
+ function rr(e, t) {
176
+ e.$$.dirty[0] === -1 && (D.push(e), Qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
177
+ }
178
+ function nr(e, t, r, n, i, s, o = null, a = [-1]) {
179
+ const l = Y;
180
+ q(e);
181
+ const u = e.$$ = {
182
+ fragment: null,
183
+ ctx: [],
184
+ // state
185
+ props: s,
186
+ update: H,
187
+ not_equal: i,
188
+ bound: ke(),
189
+ // lifecycle
190
+ on_mount: [],
191
+ on_destroy: [],
192
+ on_disconnect: [],
193
+ before_update: [],
194
+ after_update: [],
195
+ context: new Map(t.context || (l ? l.$$.context : [])),
196
+ // everything else
197
+ callbacks: ke(),
198
+ dirty: a,
199
+ skip_bound: !1,
200
+ root: t.target || l.$$.root
201
+ };
202
+ o && o(u.root);
203
+ let h = !1;
204
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
205
+ const g = p.length ? p[0] : f;
206
+ return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && rr(e, c)), f;
207
+ }) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
208
+ if (t.hydrate) {
209
+ const c = jt(t.target);
210
+ u.fragment && u.fragment.l(c), c.forEach(X);
211
+ } else
212
+ u.fragment && u.fragment.c();
213
+ t.intro && Kt(e.$$.fragment), er(e, t.target, t.anchor), w();
214
+ }
215
+ q(l);
216
+ }
217
+ let ht;
218
+ typeof HTMLElement == "function" && (ht = 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 = G("slot"), i !== "default" && ue(s, "name", i);
261
+ },
262
+ /**
263
+ * @param {HTMLElement} target
264
+ * @param {HTMLElement} [anchor]
265
+ */
266
+ m: function(l, u) {
267
+ re(l, s, u);
268
+ },
269
+ d: function(l) {
270
+ l && X(s);
271
+ }
272
+ };
273
+ };
274
+ };
275
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
276
+ return;
277
+ const t = {}, r = Xt(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] = se(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 = se(
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 o = this.$$c.$on(i, s);
314
+ this.$$l_u.set(s, o);
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] = se(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 se(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 ir(e, t, r, n, i, s) {
365
+ let o = class extends ht {
366
+ constructor() {
367
+ super(e, r, i), this.$$p_d = t;
368
+ }
369
+ static get observedAttributes() {
370
+ return Object.keys(t).map(
371
+ (a) => (t[a].attribute || a).toLowerCase()
372
+ );
373
+ }
374
+ };
375
+ return Object.keys(t).forEach((a) => {
376
+ Object.defineProperty(o.prototype, a, {
377
+ get() {
378
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
379
+ },
380
+ set(l) {
381
+ l = se(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
382
+ }
383
+ });
384
+ }), n.forEach((a) => {
385
+ Object.defineProperty(o.prototype, a, {
386
+ get() {
387
+ return this.$$c?.[a];
388
+ }
389
+ });
390
+ }), e.element = /** @type {any} */
391
+ o, o;
392
+ }
393
+ class sr {
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
+ tr(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 (!Re(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 && !$t(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
435
+ }
436
+ }
437
+ const or = "4";
438
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(or);
439
+ const $ = [];
440
+ function ar(e, t) {
441
+ return {
442
+ subscribe: fe(e, t).subscribe
443
+ };
444
+ }
445
+ function fe(e, t = H) {
446
+ let r;
447
+ const n = /* @__PURE__ */ new Set();
448
+ function i(a) {
449
+ if (st(e, a) && (e = a, r)) {
450
+ const l = !$.length;
451
+ for (const u of n)
452
+ u[1](), $.push(u, e);
453
+ if (l) {
454
+ for (let u = 0; u < $.length; u += 2)
455
+ $[u][0]($[u + 1]);
456
+ $.length = 0;
457
+ }
458
+ }
459
+ }
460
+ function s(a) {
461
+ i(a(e));
462
+ }
463
+ function o(a, l = H) {
464
+ const u = [a, l];
465
+ return n.add(u), n.size === 1 && (r = t(i, s) || H), a(e), () => {
466
+ n.delete(u), n.size === 0 && r && (r(), r = null);
467
+ };
468
+ }
469
+ return { set: i, update: s, subscribe: o };
470
+ }
471
+ function z(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 ar(r, (o, a) => {
477
+ let l = !1;
478
+ const u = [];
479
+ let h = 0, c = H;
480
+ const f = () => {
481
+ if (h)
482
+ return;
483
+ c();
484
+ const g = t(n ? u[0] : u, o, a);
485
+ s ? o(g) : c = Re(g) ? g : H;
486
+ }, p = i.map(
487
+ (g, x) => ot(
488
+ g,
489
+ (v) => {
490
+ u[x] = v, h &= ~(1 << x), l && f();
491
+ },
492
+ () => {
493
+ h |= 1 << x;
494
+ }
495
+ )
496
+ );
497
+ return l = !0, f(), function() {
498
+ te(p), c(), l = !1;
499
+ };
500
+ });
501
+ }
502
+ function ur(e) {
503
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
504
+ }
505
+ var hr = function(t) {
506
+ return lr(t) && !cr(t);
507
+ };
508
+ function lr(e) {
509
+ return !!e && typeof e == "object";
510
+ }
511
+ function cr(e) {
512
+ var t = Object.prototype.toString.call(e);
513
+ return t === "[object RegExp]" || t === "[object Date]" || br(e);
514
+ }
515
+ var fr = typeof Symbol == "function" && Symbol.for, mr = fr ? Symbol.for("react.element") : 60103;
516
+ function br(e) {
517
+ return e.$$typeof === mr;
518
+ }
519
+ function pr(e) {
520
+ return Array.isArray(e) ? [] : {};
521
+ }
522
+ function K(e, t) {
523
+ return t.clone !== !1 && t.isMergeableObject(e) ? F(pr(e), e, t) : e;
524
+ }
525
+ function dr(e, t, r) {
526
+ return e.concat(t).map(function(n) {
527
+ return K(n, r);
528
+ });
529
+ }
530
+ function gr(e, t) {
531
+ if (!t.customMerge)
532
+ return F;
533
+ var r = t.customMerge(e);
534
+ return typeof r == "function" ? r : F;
535
+ }
536
+ function Er(e) {
537
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
538
+ return Object.propertyIsEnumerable.call(e, t);
539
+ }) : [];
540
+ }
541
+ function Ve(e) {
542
+ return Object.keys(e).concat(Er(e));
543
+ }
544
+ function lt(e, t) {
545
+ try {
546
+ return t in e;
547
+ } catch {
548
+ return !1;
549
+ }
550
+ }
551
+ function yr(e, t) {
552
+ return lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
553
+ }
554
+ function xr(e, t, r) {
555
+ var n = {};
556
+ return r.isMergeableObject(e) && Ve(e).forEach(function(i) {
557
+ n[i] = K(e[i], r);
558
+ }), Ve(t).forEach(function(i) {
559
+ yr(e, i) || (lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
560
+ }), n;
561
+ }
562
+ function F(e, t, r) {
563
+ r = r || {}, r.arrayMerge = r.arrayMerge || dr, r.isMergeableObject = r.isMergeableObject || hr, r.cloneUnlessOtherwiseSpecified = K;
564
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
565
+ return s ? n ? r.arrayMerge(e, t, r) : xr(e, t, r) : K(t, r);
566
+ }
567
+ F.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 F(n, i, r);
572
+ }, {});
573
+ };
574
+ var _r = F, vr = _r;
575
+ const Br = /* @__PURE__ */ ur(vr);
576
+ var Ae = function(e, t) {
577
+ return Ae = 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
+ }, Ae(e, t);
583
+ };
584
+ function me(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
+ Ae(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 T = function() {
594
+ return T = 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
+ }, T.apply(this, arguments);
602
+ };
603
+ function Hr(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 Ee(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 ye(e, t) {
619
+ var r = t && t.cache ? t.cache : Or, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Ar;
620
+ return i(e, {
621
+ cache: r,
622
+ serializer: n
623
+ });
624
+ }
625
+ function Tr(e) {
626
+ return e == null || typeof e == "number" || typeof e == "boolean";
627
+ }
628
+ function Sr(e, t, r, n) {
629
+ var i = Tr(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 ct(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 ft(e, t, r, n, i) {
637
+ return r.bind(t, e, n, i);
638
+ }
639
+ function Ar(e, t) {
640
+ var r = e.length === 1 ? Sr : ct;
641
+ return ft(e, this, r, t.cache.create(), t.serializer);
642
+ }
643
+ function wr(e, t) {
644
+ return ft(e, this, ct, t.cache.create(), t.serializer);
645
+ }
646
+ var Nr = function() {
647
+ return JSON.stringify(arguments);
648
+ }, Pr = (
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
+ ), Or = {
661
+ create: function() {
662
+ return new Pr();
663
+ }
664
+ }, xe = {
665
+ variadic: wr
666
+ }, he = function() {
667
+ return he = 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
+ }, he.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 E;
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
+ })(E || (E = {}));
684
+ var k;
685
+ (function(e) {
686
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
687
+ })(k || (k = {}));
688
+ function Xe(e) {
689
+ return e.type === E.literal;
690
+ }
691
+ function Ir(e) {
692
+ return e.type === E.argument;
693
+ }
694
+ function mt(e) {
695
+ return e.type === E.number;
696
+ }
697
+ function bt(e) {
698
+ return e.type === E.date;
699
+ }
700
+ function pt(e) {
701
+ return e.type === E.time;
702
+ }
703
+ function dt(e) {
704
+ return e.type === E.select;
705
+ }
706
+ function gt(e) {
707
+ return e.type === E.plural;
708
+ }
709
+ function Mr(e) {
710
+ return e.type === E.pound;
711
+ }
712
+ function Et(e) {
713
+ return e.type === E.tag;
714
+ }
715
+ function yt(e) {
716
+ return !!(e && typeof e == "object" && e.type === k.number);
717
+ }
718
+ function we(e) {
719
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
720
+ }
721
+ var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Lr = /(?:[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 Cr(e) {
723
+ var t = {};
724
+ return e.replace(Lr, 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 Rr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
824
+ function $r(e) {
825
+ if (e.length === 0)
826
+ throw new Error("Number skeleton cannot be empty");
827
+ for (var t = e.split(Rr).filter(function(f) {
828
+ return f.length > 0;
829
+ }), r = [], n = 0, i = t; n < i.length; n++) {
830
+ var s = i[n], o = s.split("/");
831
+ if (o.length === 0)
832
+ throw new Error("Invalid number skeleton");
833
+ for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
834
+ var c = h[u];
835
+ if (c.length === 0)
836
+ throw new Error("Invalid number skeleton");
837
+ }
838
+ r.push({ stem: a, options: l });
839
+ }
840
+ return r;
841
+ }
842
+ function Dr(e) {
843
+ return e.replace(/^(.*?)-/, "");
844
+ }
845
+ var ze = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _t = /^(@+)?(\+|#+)?[rs]?$/g, Ur = /(\*)(0+)|(#+)(0+)|(0+)/g, vt = /^(0+)$/;
846
+ function We(e) {
847
+ var t = {};
848
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_t, 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 Bt(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 Gr(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)), !vt.test(e))
901
+ throw new Error("Malformed concise eng/scientific notation");
902
+ t.minimumIntegerDigits = e.length;
903
+ }
904
+ return t;
905
+ }
906
+ function Ze(e) {
907
+ var t = {}, r = Bt(e);
908
+ return r || t;
909
+ }
910
+ function Fr(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 = Dr(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(l, u) {
946
+ return y(y({}, l), Ze(u));
947
+ }, {}));
948
+ continue;
949
+ case "engineering":
950
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
951
+ return y(y({}, l), Ze(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(Ur, function(l, u, h, c, f, p) {
997
+ if (u)
998
+ t.minimumIntegerDigits = h.length;
999
+ else {
1000
+ if (c && f)
1001
+ throw new Error("We currently do not support maximum integer digits");
1002
+ if (p)
1003
+ throw new Error("We currently do not support exact integer digits");
1004
+ }
1005
+ return "";
1006
+ });
1007
+ continue;
1008
+ }
1009
+ if (vt.test(i.stem)) {
1010
+ t.minimumIntegerDigits = i.stem.length;
1011
+ continue;
1012
+ }
1013
+ if (ze.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(ze, function(l, u, h, c, f, p) {
1017
+ return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.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), We(s)));
1021
+ continue;
1022
+ }
1023
+ if (_t.test(i.stem)) {
1024
+ t = y(y({}, t), We(i.stem));
1025
+ continue;
1026
+ }
1027
+ var o = Bt(i.stem);
1028
+ o && (t = y(y({}, t), o));
1029
+ var a = Gr(i.stem);
1030
+ a && (t = y(y({}, t), a));
1031
+ }
1032
+ return t;
1033
+ }
1034
+ var ie = {
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 kr(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 o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = jr(t);
2456
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2457
+ r += l;
2458
+ for (; o-- > 0; )
2459
+ r = u + r;
2460
+ } else
2461
+ i === "J" ? r += "H" : r += i;
2462
+ }
2463
+ return r;
2464
+ }
2465
+ function jr(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 = ie[n || ""] || ie[r || ""] || ie["".concat(r, "-001")] || ie["001"];
2485
+ return i[0];
2486
+ }
2487
+ var _e, Vr = new RegExp("^".concat(xt.source, "*")), Xr = new RegExp("".concat(xt.source, "*$"));
2488
+ function b(e, t) {
2489
+ return { start: e, end: t };
2490
+ }
2491
+ var zr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wr = !!String.fromCodePoint, Zr = !!Object.fromEntries, Qr = !!String.prototype.codePointAt, Jr = !!String.prototype.trimStart, qr = !!String.prototype.trimEnd, Yr = !!Number.isSafeInteger, Kr = Yr ? Number.isSafeInteger : function(e) {
2492
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2493
+ }, Ne = !0;
2494
+ try {
2495
+ var en = Tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2496
+ Ne = ((_e = en.exec("a")) === null || _e === void 0 ? void 0 : _e[0]) === "a";
2497
+ } catch {
2498
+ Ne = !1;
2499
+ }
2500
+ var Qe = zr ? (
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
+ ), Pe = Wr ? 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, o; i > s; ) {
2516
+ if (o = t[s++], o > 1114111)
2517
+ throw RangeError(o + " is not a valid code point");
2518
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2519
+ }
2520
+ return n;
2521
+ }
2522
+ ), Je = (
2523
+ // native
2524
+ Zr ? Object.fromEntries : (
2525
+ // Ponyfill
2526
+ function(t) {
2527
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2528
+ var s = i[n], o = s[0], a = s[1];
2529
+ r[o] = a;
2530
+ }
2531
+ return r;
2532
+ }
2533
+ )
2534
+ ), Ht = Qr ? (
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
+ ), tn = Jr ? (
2549
+ // Native
2550
+ function(t) {
2551
+ return t.trimStart();
2552
+ }
2553
+ ) : (
2554
+ // Ponyfill
2555
+ function(t) {
2556
+ return t.replace(Vr, "");
2557
+ }
2558
+ ), rn = qr ? (
2559
+ // Native
2560
+ function(t) {
2561
+ return t.trimEnd();
2562
+ }
2563
+ ) : (
2564
+ // Ponyfill
2565
+ function(t) {
2566
+ return t.replace(Xr, "");
2567
+ }
2568
+ );
2569
+ function Tt(e, t) {
2570
+ return new RegExp(e, t);
2571
+ }
2572
+ var Oe;
2573
+ if (Ne) {
2574
+ var qe = Tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2575
+ Oe = function(t, r) {
2576
+ var n;
2577
+ qe.lastIndex = r;
2578
+ var i = qe.exec(t);
2579
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2580
+ };
2581
+ } else
2582
+ Oe = function(t, r) {
2583
+ for (var n = []; ; ) {
2584
+ var i = Ht(t, r);
2585
+ if (i === void 0 || St(i) || an(i))
2586
+ break;
2587
+ n.push(i), r += i >= 65536 ? 2 : 1;
2588
+ }
2589
+ return Pe.apply(void 0, n);
2590
+ };
2591
+ var nn = (
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 o = this.parseArgument(t, n);
2606
+ if (o.err)
2607
+ return o;
2608
+ i.push(o.val);
2609
+ } else {
2610
+ if (s === 125 && t > 0)
2611
+ break;
2612
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2613
+ var a = this.clonePosition();
2614
+ this.bump(), i.push({
2615
+ type: E.pound,
2616
+ location: b(a, 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 && Ie(this.peek() || 0)) {
2623
+ var o = this.parseTag(t, r);
2624
+ if (o.err)
2625
+ return o;
2626
+ i.push(o.val);
2627
+ } else {
2628
+ var o = this.parseLiteral(t, r);
2629
+ if (o.err)
2630
+ return o;
2631
+ i.push(o.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: E.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 o = s.val, a = this.clonePosition();
2654
+ if (this.bumpIf("</")) {
2655
+ if (this.isEOF() || !Ie(this.char()))
2656
+ return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
2657
+ var l = this.clonePosition(), u = this.parseTagName();
2658
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2659
+ val: {
2660
+ type: E.tag,
2661
+ value: i,
2662
+ children: o,
2663
+ location: b(n, this.clonePosition())
2664
+ },
2665
+ err: null
2666
+ } : this.error(m.INVALID_TAG, b(a, 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() && on(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 o = this.tryParseUnquoted(t, r);
2684
+ if (o) {
2685
+ i += o;
2686
+ continue;
2687
+ }
2688
+ var a = this.tryParseLeftAngleBracket();
2689
+ if (a) {
2690
+ i += a;
2691
+ continue;
2692
+ }
2693
+ break;
2694
+ }
2695
+ var l = b(n, this.clonePosition());
2696
+ return {
2697
+ val: { type: E.literal, value: i, location: l },
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
+ !sn(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 Pe.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(), Pe(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: E.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 = Oe(this.message, r), i = r + n.length;
2771
+ this.bumpTo(i);
2772
+ var s = this.clonePosition(), o = b(t, s);
2773
+ return { value: n, location: o };
2774
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2775
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2776
+ switch (a) {
2777
+ case "":
2778
+ return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, l));
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 h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2787
+ if (c.err)
2788
+ return c;
2789
+ var f = rn(c.val);
2790
+ if (f.length === 0)
2791
+ return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2792
+ var p = b(h, this.clonePosition());
2793
+ u = { style: f, styleLocation: p };
2794
+ }
2795
+ var g = this.tryParseArgumentClose(i);
2796
+ if (g.err)
2797
+ return g;
2798
+ var x = b(i, this.clonePosition());
2799
+ if (u && Qe(u?.style, "::", 0)) {
2800
+ var v = tn(u.style.slice(2));
2801
+ if (a === "number") {
2802
+ var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
2803
+ return c.err ? c : {
2804
+ val: { type: E.number, value: n, location: x, style: c.val },
2805
+ err: null
2806
+ };
2807
+ } else {
2808
+ if (v.length === 0)
2809
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
2810
+ var I = v;
2811
+ this.locale && (I = kr(v, this.locale));
2812
+ var f = {
2813
+ type: k.dateTime,
2814
+ pattern: I,
2815
+ location: u.styleLocation,
2816
+ parsedOptions: this.shouldParseSkeletons ? Cr(I) : {}
2817
+ }, N = a === "date" ? E.date : E.time;
2818
+ return {
2819
+ val: { type: N, value: n, location: x, style: f },
2820
+ err: null
2821
+ };
2822
+ }
2823
+ }
2824
+ return {
2825
+ val: {
2826
+ type: a === "number" ? E.number : a === "date" ? E.date : E.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, he({}, B)));
2840
+ this.bumpSpace();
2841
+ var S = this.parseIdentifierIfPossible(), A = 0;
2842
+ if (a !== "select" && S.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(), S = this.parseIdentifierIfPossible(), A = c.val;
2850
+ }
2851
+ var M = this.tryParsePluralOrSelectOptions(t, a, r, S);
2852
+ if (M.err)
2853
+ return M;
2854
+ var g = this.tryParseArgumentClose(i);
2855
+ if (g.err)
2856
+ return g;
2857
+ var Q = b(i, this.clonePosition());
2858
+ return a === "select" ? {
2859
+ val: {
2860
+ type: E.select,
2861
+ value: n,
2862
+ options: Je(M.val),
2863
+ location: Q
2864
+ },
2865
+ err: null
2866
+ } : {
2867
+ val: {
2868
+ type: E.plural,
2869
+ value: n,
2870
+ options: Je(M.val),
2871
+ offset: A,
2872
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2873
+ location: Q
2874
+ },
2875
+ err: null
2876
+ };
2877
+ }
2878
+ default:
2879
+ return this.error(m.INVALID_ARGUMENT_TYPE, b(o, l));
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 = $r(t);
2922
+ } catch {
2923
+ return this.error(m.INVALID_NUMBER_SKELETON, r);
2924
+ }
2925
+ return {
2926
+ val: {
2927
+ type: k.number,
2928
+ tokens: n,
2929
+ location: r,
2930
+ parsedOptions: this.shouldParseSkeletons ? Fr(n) : {}
2931
+ },
2932
+ err: null
2933
+ };
2934
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2935
+ for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = 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
+ h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2943
+ } else
2944
+ break;
2945
+ }
2946
+ if (l.has(u))
2947
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2948
+ u === "other" && (o = !0), this.bumpSpace();
2949
+ var p = 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 g = this.parseMessage(t + 1, r, n);
2953
+ if (g.err)
2954
+ return g;
2955
+ var x = this.tryParseArgumentClose(p);
2956
+ if (x.err)
2957
+ return x;
2958
+ a.push([
2959
+ u,
2960
+ {
2961
+ value: g.val,
2962
+ location: b(p, this.clonePosition())
2963
+ }
2964
+ ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
2965
+ }
2966
+ return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, 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, o = 0; !this.isEOF(); ) {
2971
+ var a = this.char();
2972
+ if (a >= 48 && a <= 57)
2973
+ s = !0, o = o * 10 + (a - 48), this.bump();
2974
+ else
2975
+ break;
2976
+ }
2977
+ var l = b(i, this.clonePosition());
2978
+ return s ? (o *= n, Kr(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
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 = Ht(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 (Qe(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() && St(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 Ie(e) {
3045
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3046
+ }
3047
+ function sn(e) {
3048
+ return Ie(e) || e === 47;
3049
+ }
3050
+ function on(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 St(e) {
3054
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3055
+ }
3056
+ function an(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 Me(e) {
3060
+ e.forEach(function(t) {
3061
+ if (delete t.location, dt(t) || gt(t))
3062
+ for (var r in t.options)
3063
+ delete t.options[r].location, Me(t.options[r].value);
3064
+ else
3065
+ mt(t) && yt(t.style) || (bt(t) || pt(t)) && we(t.style) ? delete t.style.location : Et(t) && Me(t.children);
3066
+ });
3067
+ }
3068
+ function un(e, t) {
3069
+ t === void 0 && (t = {}), t = he({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3070
+ var r = new nn(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 || Me(r.val), r.val;
3076
+ }
3077
+ var j;
3078
+ (function(e) {
3079
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3080
+ })(j || (j = {}));
3081
+ var be = (
3082
+ /** @class */
3083
+ function(e) {
3084
+ me(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
+ ), Ye = (
3094
+ /** @class */
3095
+ function(e) {
3096
+ me(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('", "'), '"'), j.INVALID_VALUE, s) || this;
3099
+ }
3100
+ return t;
3101
+ }(be)
3102
+ ), hn = (
3103
+ /** @class */
3104
+ function(e) {
3105
+ me(t, e);
3106
+ function t(r, n, i) {
3107
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3108
+ }
3109
+ return t;
3110
+ }(be)
3111
+ ), ln = (
3112
+ /** @class */
3113
+ function(e) {
3114
+ me(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, '"'), j.MISSING_VALUE, n) || this;
3117
+ }
3118
+ return t;
3119
+ }(be)
3120
+ ), _;
3121
+ (function(e) {
3122
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3123
+ })(_ || (_ = {}));
3124
+ function cn(e) {
3125
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3126
+ var n = t[t.length - 1];
3127
+ return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3128
+ }, []);
3129
+ }
3130
+ function fn(e) {
3131
+ return typeof e == "function";
3132
+ }
3133
+ function oe(e, t, r, n, i, s, o) {
3134
+ if (e.length === 1 && Xe(e[0]))
3135
+ return [
3136
+ {
3137
+ type: _.literal,
3138
+ value: e[0].value
3139
+ }
3140
+ ];
3141
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3142
+ var h = u[l];
3143
+ if (Xe(h)) {
3144
+ a.push({
3145
+ type: _.literal,
3146
+ value: h.value
3147
+ });
3148
+ continue;
3149
+ }
3150
+ if (Mr(h)) {
3151
+ typeof s == "number" && a.push({
3152
+ type: _.literal,
3153
+ value: r.getNumberFormat(t).format(s)
3154
+ });
3155
+ continue;
3156
+ }
3157
+ var c = h.value;
3158
+ if (!(i && c in i))
3159
+ throw new ln(c, o);
3160
+ var f = i[c];
3161
+ if (Ir(h)) {
3162
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3163
+ type: typeof f == "string" ? _.literal : _.object,
3164
+ value: f
3165
+ });
3166
+ continue;
3167
+ }
3168
+ if (bt(h)) {
3169
+ var p = typeof h.style == "string" ? n.date[h.style] : we(h.style) ? h.style.parsedOptions : void 0;
3170
+ a.push({
3171
+ type: _.literal,
3172
+ value: r.getDateTimeFormat(t, p).format(f)
3173
+ });
3174
+ continue;
3175
+ }
3176
+ if (pt(h)) {
3177
+ var p = typeof h.style == "string" ? n.time[h.style] : we(h.style) ? h.style.parsedOptions : n.time.medium;
3178
+ a.push({
3179
+ type: _.literal,
3180
+ value: r.getDateTimeFormat(t, p).format(f)
3181
+ });
3182
+ continue;
3183
+ }
3184
+ if (mt(h)) {
3185
+ var p = typeof h.style == "string" ? n.number[h.style] : yt(h.style) ? h.style.parsedOptions : void 0;
3186
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3187
+ type: _.literal,
3188
+ value: r.getNumberFormat(t, p).format(f)
3189
+ });
3190
+ continue;
3191
+ }
3192
+ if (Et(h)) {
3193
+ var g = h.children, x = h.value, v = i[x];
3194
+ if (!fn(v))
3195
+ throw new hn(x, "function", o);
3196
+ var I = oe(g, t, r, n, i, s), N = v(I.map(function(A) {
3197
+ return A.value;
3198
+ }));
3199
+ Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(A) {
3200
+ return {
3201
+ type: typeof A == "string" ? _.literal : _.object,
3202
+ value: A
3203
+ };
3204
+ }));
3205
+ }
3206
+ if (dt(h)) {
3207
+ var B = h.options[f] || h.options.other;
3208
+ if (!B)
3209
+ throw new Ye(h.value, f, Object.keys(h.options), o);
3210
+ a.push.apply(a, oe(B.value, t, r, n, i));
3211
+ continue;
3212
+ }
3213
+ if (gt(h)) {
3214
+ var B = h.options["=".concat(f)];
3215
+ if (!B) {
3216
+ if (!Intl.PluralRules)
3217
+ throw new be(`Intl.PluralRules is not available in this environment.
3218
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3219
+ `, j.MISSING_INTL_API, o);
3220
+ var S = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3221
+ B = h.options[S] || h.options.other;
3222
+ }
3223
+ if (!B)
3224
+ throw new Ye(h.value, f, Object.keys(h.options), o);
3225
+ a.push.apply(a, oe(B.value, t, r, n, i, f - (h.offset || 0)));
3226
+ continue;
3227
+ }
3228
+ }
3229
+ return cn(a);
3230
+ }
3231
+ function mn(e, t) {
3232
+ return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3233
+ return r[n] = T(T({}, e[n]), t[n] || {}), r;
3234
+ }, {})) : e;
3235
+ }
3236
+ function bn(e, t) {
3237
+ return t ? Object.keys(e).reduce(function(r, n) {
3238
+ return r[n] = mn(e[n], t[n]), r;
3239
+ }, T({}, e)) : e;
3240
+ }
3241
+ function ve(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 pn(e) {
3256
+ return e === void 0 && (e = {
3257
+ number: {},
3258
+ dateTime: {},
3259
+ pluralRules: {}
3260
+ }), {
3261
+ getNumberFormat: ye(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, Ee([void 0], r, !1)))();
3265
+ }, {
3266
+ cache: ve(e.number),
3267
+ strategy: xe.variadic
3268
+ }),
3269
+ getDateTimeFormat: ye(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, Ee([void 0], r, !1)))();
3273
+ }, {
3274
+ cache: ve(e.dateTime),
3275
+ strategy: xe.variadic
3276
+ }),
3277
+ getPluralRules: ye(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, Ee([void 0], r, !1)))();
3281
+ }, {
3282
+ cache: ve(e.pluralRules),
3283
+ strategy: xe.variadic
3284
+ })
3285
+ };
3286
+ }
3287
+ var dn = (
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(l) {
3298
+ var u = s.formatToParts(l);
3299
+ if (u.length === 1)
3300
+ return u[0].value;
3301
+ var h = u.reduce(function(c, f) {
3302
+ return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3303
+ }, []);
3304
+ return h.length <= 1 ? h[0] || "" : h;
3305
+ }, this.formatToParts = function(l) {
3306
+ return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3307
+ }, this.resolvedOptions = function() {
3308
+ var l;
3309
+ return {
3310
+ locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.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 o = i || {};
3318
+ o.formatters;
3319
+ var a = Hr(o, ["formatters"]);
3320
+ this.ast = e.__parse(t, T(T({}, a), { locale: this.resolvedLocale }));
3321
+ } else
3322
+ this.ast = t;
3323
+ if (!Array.isArray(this.ast))
3324
+ throw new TypeError("A message must be provided as a String or AST.");
3325
+ this.formats = bn(e.formats, n), this.formatters = i && i.formatters || pn(this.formatterCache);
3326
+ }
3327
+ return Object.defineProperty(e, "defaultLocale", {
3328
+ get: function() {
3329
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
3330
+ },
3331
+ enumerable: !1,
3332
+ configurable: !0
3333
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3334
+ if (!(typeof Intl.Locale > "u")) {
3335
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3336
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3337
+ }
3338
+ }, e.__parse = un, e.formats = {
3339
+ number: {
3340
+ integer: {
3341
+ maximumFractionDigits: 0
3342
+ },
3343
+ currency: {
3344
+ style: "currency"
3345
+ },
3346
+ percent: {
3347
+ style: "percent"
3348
+ }
3349
+ },
3350
+ date: {
3351
+ short: {
3352
+ month: "numeric",
3353
+ day: "numeric",
3354
+ year: "2-digit"
3355
+ },
3356
+ medium: {
3357
+ month: "short",
3358
+ day: "numeric",
3359
+ year: "numeric"
3360
+ },
3361
+ long: {
3362
+ month: "long",
3363
+ day: "numeric",
3364
+ year: "numeric"
3365
+ },
3366
+ full: {
3367
+ weekday: "long",
3368
+ month: "long",
3369
+ day: "numeric",
3370
+ year: "numeric"
3371
+ }
3372
+ },
3373
+ time: {
3374
+ short: {
3375
+ hour: "numeric",
3376
+ minute: "numeric"
3377
+ },
3378
+ medium: {
3379
+ hour: "numeric",
3380
+ minute: "numeric",
3381
+ second: "numeric"
3382
+ },
3383
+ long: {
3384
+ hour: "numeric",
3385
+ minute: "numeric",
3386
+ second: "numeric",
3387
+ timeZoneName: "short"
3388
+ },
3389
+ full: {
3390
+ hour: "numeric",
3391
+ minute: "numeric",
3392
+ second: "numeric",
3393
+ timeZoneName: "short"
3394
+ }
3395
+ }
3396
+ }, e;
3397
+ }()
3398
+ );
3399
+ function gn(e, t) {
3400
+ if (t == null)
3401
+ return;
3402
+ if (t in e)
3403
+ return e[t];
3404
+ const r = t.split(".");
3405
+ let n = e;
3406
+ for (let i = 0; i < r.length; i++)
3407
+ if (typeof n == "object") {
3408
+ if (i > 0) {
3409
+ const s = r.slice(i, r.length).join(".");
3410
+ if (s in n) {
3411
+ n = n[s];
3412
+ break;
3413
+ }
3414
+ }
3415
+ n = n[r[i]];
3416
+ } else
3417
+ n = void 0;
3418
+ return n;
3419
+ }
3420
+ const O = {}, En = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), At = (e, t) => {
3421
+ if (t == null)
3422
+ return;
3423
+ if (t in O && e in O[t])
3424
+ return O[t][e];
3425
+ const r = pe(t);
3426
+ for (let n = 0; n < r.length; n++) {
3427
+ const i = r[n], s = xn(i, e);
3428
+ if (s)
3429
+ return En(e, t, s);
3430
+ }
3431
+ };
3432
+ let De;
3433
+ const ne = fe({});
3434
+ function yn(e) {
3435
+ return De[e] || null;
3436
+ }
3437
+ function wt(e) {
3438
+ return e in De;
3439
+ }
3440
+ function xn(e, t) {
3441
+ if (!wt(e))
3442
+ return null;
3443
+ const r = yn(e);
3444
+ return gn(r, t);
3445
+ }
3446
+ function _n(e) {
3447
+ if (e == null)
3448
+ return;
3449
+ const t = pe(e);
3450
+ for (let r = 0; r < t.length; r++) {
3451
+ const n = t[r];
3452
+ if (wt(n))
3453
+ return n;
3454
+ }
3455
+ }
3456
+ function Nt(e, ...t) {
3457
+ delete O[e], ne.update((r) => (r[e] = Br.all([r[e] || {}, ...t]), r));
3458
+ }
3459
+ z(
3460
+ [ne],
3461
+ ([e]) => Object.keys(e)
3462
+ );
3463
+ ne.subscribe((e) => De = e);
3464
+ const ae = {};
3465
+ function vn(e, t) {
3466
+ ae[e].delete(t), ae[e].size === 0 && delete ae[e];
3467
+ }
3468
+ function Pt(e) {
3469
+ return ae[e];
3470
+ }
3471
+ function Bn(e) {
3472
+ return pe(e).map((t) => {
3473
+ const r = Pt(t);
3474
+ return [t, r ? [...r] : []];
3475
+ }).filter(([, t]) => t.length > 0);
3476
+ }
3477
+ function Le(e) {
3478
+ return e == null ? !1 : pe(e).some(
3479
+ (t) => {
3480
+ var r;
3481
+ return (r = Pt(t)) == null ? void 0 : r.size;
3482
+ }
3483
+ );
3484
+ }
3485
+ function Hn(e, t) {
3486
+ return Promise.all(
3487
+ t.map((n) => (vn(e, n), n().then((i) => i.default || i)))
3488
+ ).then((n) => Nt(e, ...n));
3489
+ }
3490
+ const J = {};
3491
+ function Ot(e) {
3492
+ if (!Le(e))
3493
+ return e in J ? J[e] : Promise.resolve();
3494
+ const t = Bn(e);
3495
+ return J[e] = Promise.all(
3496
+ t.map(
3497
+ ([r, n]) => Hn(r, n)
3498
+ )
3499
+ ).then(() => {
3500
+ if (Le(e))
3501
+ return Ot(e);
3502
+ delete J[e];
3503
+ }), J[e];
3504
+ }
3505
+ const Tn = {
3506
+ number: {
3507
+ scientific: { notation: "scientific" },
3508
+ engineering: { notation: "engineering" },
3509
+ compactLong: { notation: "compact", compactDisplay: "long" },
3510
+ compactShort: { notation: "compact", compactDisplay: "short" }
3511
+ },
3512
+ date: {
3513
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
3514
+ medium: { month: "short", day: "numeric", year: "numeric" },
3515
+ long: { month: "long", day: "numeric", year: "numeric" },
3516
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
3517
+ },
3518
+ time: {
3519
+ short: { hour: "numeric", minute: "numeric" },
3520
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
3521
+ long: {
3522
+ hour: "numeric",
3523
+ minute: "numeric",
3524
+ second: "numeric",
3525
+ timeZoneName: "short"
3526
+ },
3527
+ full: {
3528
+ hour: "numeric",
3529
+ minute: "numeric",
3530
+ second: "numeric",
3531
+ timeZoneName: "short"
3532
+ }
3533
+ }
3534
+ }, Sn = {
3535
+ fallbackLocale: null,
3536
+ loadingDelay: 200,
3537
+ formats: Tn,
3538
+ warnOnMissingMessages: !0,
3539
+ handleMissingMessage: void 0,
3540
+ ignoreTag: !0
3541
+ }, An = Sn;
3542
+ function V() {
3543
+ return An;
3544
+ }
3545
+ const Be = fe(!1);
3546
+ var wn = Object.defineProperty, Nn = Object.defineProperties, Pn = Object.getOwnPropertyDescriptors, Ke = Object.getOwnPropertySymbols, On = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable, et = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
3547
+ for (var r in t || (t = {}))
3548
+ On.call(t, r) && et(e, r, t[r]);
3549
+ if (Ke)
3550
+ for (var r of Ke(t))
3551
+ In.call(t, r) && et(e, r, t[r]);
3552
+ return e;
3553
+ }, Ln = (e, t) => Nn(e, Pn(t));
3554
+ let Ce;
3555
+ const le = fe(null);
3556
+ function tt(e) {
3557
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3558
+ }
3559
+ function pe(e, t = V().fallbackLocale) {
3560
+ const r = tt(e);
3561
+ return t ? [.../* @__PURE__ */ new Set([...r, ...tt(t)])] : r;
3562
+ }
3563
+ function L() {
3564
+ return Ce ?? void 0;
3565
+ }
3566
+ le.subscribe((e) => {
3567
+ Ce = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3568
+ });
3569
+ const Cn = (e) => {
3570
+ if (e && _n(e) && Le(e)) {
3571
+ const { loadingDelay: t } = V();
3572
+ let r;
3573
+ return typeof window < "u" && L() != null && t ? r = window.setTimeout(
3574
+ () => Be.set(!0),
3575
+ t
3576
+ ) : Be.set(!0), Ot(e).then(() => {
3577
+ le.set(e);
3578
+ }).finally(() => {
3579
+ clearTimeout(r), Be.set(!1);
3580
+ });
3581
+ }
3582
+ return le.set(e);
3583
+ }, W = Ln(Mn({}, le), {
3584
+ set: Cn
3585
+ }), de = (e) => {
3586
+ const t = /* @__PURE__ */ Object.create(null);
3587
+ return (n) => {
3588
+ const i = JSON.stringify(n);
3589
+ return i in t ? t[i] : t[i] = e(n);
3590
+ };
3591
+ };
3592
+ var Rn = Object.defineProperty, ce = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, rt = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
3593
+ for (var r in t || (t = {}))
3594
+ It.call(t, r) && rt(e, r, t[r]);
3595
+ if (ce)
3596
+ for (var r of ce(t))
3597
+ Mt.call(t, r) && rt(e, r, t[r]);
3598
+ return e;
3599
+ }, Z = (e, t) => {
3600
+ var r = {};
3601
+ for (var n in e)
3602
+ It.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3603
+ if (e != null && ce)
3604
+ for (var n of ce(e))
3605
+ t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
3606
+ return r;
3607
+ };
3608
+ const ee = (e, t) => {
3609
+ const { formats: r } = V();
3610
+ if (e in r && t in r[e])
3611
+ return r[e][t];
3612
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3613
+ }, $n = de(
3614
+ (e) => {
3615
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3616
+ if (r == null)
3617
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3618
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3619
+ }
3620
+ ), Dn = de(
3621
+ (e) => {
3622
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3623
+ if (r == null)
3624
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3625
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3626
+ }
3627
+ ), Un = de(
3628
+ (e) => {
3629
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3630
+ if (r == null)
3631
+ throw new Error(
3632
+ '[svelte-i18n] A "locale" must be set to format time values'
3633
+ );
3634
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3635
+ }
3636
+ ), Gn = (e = {}) => {
3637
+ var t = e, {
3638
+ locale: r = L()
3639
+ } = t, n = Z(t, [
3640
+ "locale"
3641
+ ]);
3642
+ return $n(Ue({ locale: r }, n));
3643
+ }, Fn = (e = {}) => {
3644
+ var t = e, {
3645
+ locale: r = L()
3646
+ } = t, n = Z(t, [
3647
+ "locale"
3648
+ ]);
3649
+ return Dn(Ue({ locale: r }, n));
3650
+ }, kn = (e = {}) => {
3651
+ var t = e, {
3652
+ locale: r = L()
3653
+ } = t, n = Z(t, [
3654
+ "locale"
3655
+ ]);
3656
+ return Un(Ue({ locale: r }, n));
3657
+ }, jn = de(
3658
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3659
+ (e, t = L()) => new dn(e, t, V().formats, {
3660
+ ignoreTag: V().ignoreTag
3661
+ })
3662
+ ), Vn = (e, t = {}) => {
3663
+ var r, n, i, s;
3664
+ let o = t;
3665
+ typeof e == "object" && (o = e, e = o.id);
3666
+ const {
3667
+ values: a,
3668
+ locale: l = L(),
3669
+ default: u
3670
+ } = o;
3671
+ if (l == null)
3672
+ throw new Error(
3673
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
3674
+ );
3675
+ let h = At(e, l);
3676
+ if (!h)
3677
+ h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3678
+ else if (typeof h != "string")
3679
+ return console.warn(
3680
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3681
+ ), h;
3682
+ if (!a)
3683
+ return h;
3684
+ let c = h;
3685
+ try {
3686
+ c = jn(h, l).format(a);
3687
+ } catch (f) {
3688
+ f instanceof Error && console.warn(
3689
+ `[svelte-i18n] Message "${e}" has syntax error:`,
3690
+ f.message
3691
+ );
3692
+ }
3693
+ return c;
3694
+ }, Xn = (e, t) => kn(t).format(e), zn = (e, t) => Fn(t).format(e), Wn = (e, t) => Gn(t).format(e), Zn = (e, t = L()) => At(e, t), Qn = z([W, ne], () => Vn);
3695
+ z([W], () => Xn);
3696
+ z([W], () => zn);
3697
+ z([W], () => Wn);
3698
+ z([W, ne], () => Zn);
3699
+ function Jn(e, t) {
3700
+ Nt(e, t);
3701
+ }
3702
+ function qn(e) {
3703
+ W.set(e);
3704
+ }
3705
+ const Yn = {
3706
+ en: {
3707
+ btnEnableBiometrics: "Enable biometrics",
3708
+ btnDisableBiometrics: "Disable biometrics",
3709
+ errorMessage: "Biometrics update failed"
3710
+ },
3711
+ "zh-hk": {
3712
+ btnEnableBiometrics: "Enable biometrics",
3713
+ btnDisableBiometrics: "Disable biometrics",
3714
+ errorMessage: "Biometrics update failed"
3715
+ },
3716
+ fr: {
3717
+ btnEnableBiometrics: "Enable biometrics",
3718
+ btnDisableBiometrics: "Disable biometrics",
3719
+ errorMessage: "Biometrics update failed"
3720
+ },
3721
+ tr: {
3722
+ btnEnableBiometrics: "Enable biometrics",
3723
+ btnDisableBiometrics: "Disable biometrics",
3724
+ errorMessage: "Biometrics update failed"
3725
+ },
3726
+ ro: {
3727
+ btnEnableBiometrics: "Enable biometrics",
3728
+ btnDisableBiometrics: "Disable biometrics",
3729
+ errorMessage: "Biometrics update failed"
3730
+ },
3731
+ es: {
3732
+ btnEnableBiometrics: "Enable biometrics",
3733
+ btnDisableBiometrics: "Disable biometrics",
3734
+ errorMessage: "Biometrics update failed"
3735
+ },
3736
+ pt: {
3737
+ btnEnableBiometrics: "Enable biometrics",
3738
+ btnDisableBiometrics: "Disable biometrics",
3739
+ errorMessage: "Biometrics update failed"
3740
+ },
3741
+ hr: {
3742
+ btnEnableBiometrics: "Omogući biometriju",
3743
+ btnDisableBiometrics: "Onemogući biometriju",
3744
+ errorMessage: "Biometrics update failed"
3745
+ },
3746
+ "pt-br": {
3747
+ btnEnableBiometrics: "Enable biometrics",
3748
+ btnDisableBiometrics: "Disable biometrics",
3749
+ errorMessage: "Biometrics update failed"
3750
+ },
3751
+ "es-mx": {
3752
+ btnEnableBiometrics: "Enable biometrics",
3753
+ btnDisableBiometrics: "Disable biometrics",
3754
+ errorMessage: "Biometrics update failed"
3755
+ },
3756
+ "en-us": {
3757
+ btnEnableBiometrics: "Enable biometrics",
3758
+ btnDisableBiometrics: "Disable biometrics",
3759
+ errorMessage: "Biometrics update failed"
3760
+ }
3761
+ };
3762
+ function Kn(e, t) {
3763
+ if (e) {
3764
+ const r = document.createElement("style");
3765
+ r.innerHTML = t, e.appendChild(r);
3766
+ }
3767
+ }
3768
+ function ei(e, t) {
3769
+ if (!e || !t)
3770
+ return;
3771
+ const r = new URL(t);
3772
+ fetch(r.href).then((n) => n.text()).then((n) => {
3773
+ const i = document.createElement("style");
3774
+ i.innerHTML = n, e && e.appendChild(i);
3775
+ }).catch((n) => {
3776
+ console.error("There was an error while trying to load client styling from URL", n);
3777
+ });
3778
+ }
3779
+ function ti(e, t, r) {
3780
+ if (window.emMessageBus) {
3781
+ const n = document.createElement("style");
3782
+ window.emMessageBus.subscribe(t, (i) => {
3783
+ n.innerHTML = i, e && e.appendChild(n);
3784
+ });
3785
+ }
3786
+ }
3787
+ function ri(e, t, r) {
3788
+ return window.emMessageBus && (t = window.emMessageBus.subscribe(e, r)), t;
3789
+ }
3790
+ function ni(e) {
3791
+ Ut(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}');
3792
+ }
3793
+ function nt(e) {
3794
+ let t;
3795
+ function r(s, o) {
3796
+ if (
3797
+ /*mode*/
3798
+ s[1] === "button"
3799
+ )
3800
+ return si;
3801
+ if (
3802
+ /*mode*/
3803
+ s[1] === "switch"
3804
+ )
3805
+ return ii;
3806
+ }
3807
+ let n = r(e), i = n && n(e);
3808
+ return {
3809
+ c() {
3810
+ t = G("div"), i && i.c();
3811
+ },
3812
+ m(s, o) {
3813
+ re(s, t, o), i && i.m(t, null), e[15](t);
3814
+ },
3815
+ p(s, o) {
3816
+ n === (n = r(s)) && i ? i.p(s, o) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
3817
+ },
3818
+ d(s) {
3819
+ s && X(t), i && i.d(), e[15](null);
3820
+ }
3821
+ };
3822
+ }
3823
+ function ii(e) {
3824
+ let t, r, n, i;
3825
+ return {
3826
+ c() {
3827
+ t = G("button"), r = G("div"), r.innerHTML = '<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>', ue(r, "class", "skip-switch"), C(
3828
+ r,
3829
+ "checked",
3830
+ /*biometricsEnabled*/
3831
+ e[3]
3832
+ ), C(
3833
+ r,
3834
+ "disabled",
3835
+ /*isUpdatingBiometrics*/
3836
+ e[4]
3837
+ ), C(
3838
+ r,
3839
+ "shake",
3840
+ /*shake*/
3841
+ e[5]
3842
+ ), ue(t, "class", "toggle-content"), t.disabled = /*isUpdatingBiometrics*/
3843
+ e[4];
3844
+ },
3845
+ m(s, o) {
3846
+ re(s, t, o), $e(t, r), n || (i = ut(
3847
+ t,
3848
+ "click",
3849
+ /*toggleBiometrics*/
3850
+ e[7]
3851
+ ), n = !0);
3852
+ },
3853
+ p(s, o) {
3854
+ o & /*biometricsEnabled*/
3855
+ 8 && C(
3856
+ r,
3857
+ "checked",
3858
+ /*biometricsEnabled*/
3859
+ s[3]
3860
+ ), o & /*isUpdatingBiometrics*/
3861
+ 16 && C(
3862
+ r,
3863
+ "disabled",
3864
+ /*isUpdatingBiometrics*/
3865
+ s[4]
3866
+ ), o & /*shake*/
3867
+ 32 && C(
3868
+ r,
3869
+ "shake",
3870
+ /*shake*/
3871
+ s[5]
3872
+ ), o & /*isUpdatingBiometrics*/
3873
+ 16 && (t.disabled = /*isUpdatingBiometrics*/
3874
+ s[4]);
3875
+ },
3876
+ d(s) {
3877
+ s && X(t), n = !1, i();
3878
+ }
3879
+ };
3880
+ }
3881
+ function si(e) {
3882
+ let t, r = (
3883
+ /*biometricsEnabled*/
3884
+ (e[3] ? (
3885
+ /*$_*/
3886
+ e[6]("btnDisableBiometrics")
3887
+ ) : (
3888
+ /*$_*/
3889
+ e[6]("btnEnableBiometrics")
3890
+ )) + ""
3891
+ ), n, i, s;
3892
+ return {
3893
+ c() {
3894
+ t = G("button"), n = at(r), ue(t, "class", "BiometricsToggle"), t.disabled = /*isUpdatingBiometrics*/
3895
+ e[4];
3896
+ },
3897
+ m(o, a) {
3898
+ re(o, t, a), $e(t, n), i || (s = ut(
3899
+ t,
3900
+ "click",
3901
+ /*click_handler*/
3902
+ e[14]
3903
+ ), i = !0);
3904
+ },
3905
+ p(o, a) {
3906
+ a & /*biometricsEnabled, $_*/
3907
+ 72 && r !== (r = /*biometricsEnabled*/
3908
+ (o[3] ? (
3909
+ /*$_*/
3910
+ o[6]("btnDisableBiometrics")
3911
+ ) : (
3912
+ /*$_*/
3913
+ o[6]("btnEnableBiometrics")
3914
+ )) + "") && Vt(n, r), a & /*isUpdatingBiometrics*/
3915
+ 16 && (t.disabled = /*isUpdatingBiometrics*/
3916
+ o[4]);
3917
+ },
3918
+ d(o) {
3919
+ o && X(t), i = !1, s();
3920
+ }
3921
+ };
3922
+ }
3923
+ function oi(e) {
3924
+ let t, r = (
3925
+ /*isNativeApp*/
3926
+ e[0] && nt(e)
3927
+ );
3928
+ return {
3929
+ c() {
3930
+ r && r.c(), t = kt();
3931
+ },
3932
+ m(n, i) {
3933
+ r && r.m(n, i), re(n, t, i);
3934
+ },
3935
+ p(n, [i]) {
3936
+ /*isNativeApp*/
3937
+ n[0] ? r ? r.p(n, i) : (r = nt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3938
+ },
3939
+ i: H,
3940
+ o: H,
3941
+ d(n) {
3942
+ n && X(t), r && r.d(n);
3943
+ }
3944
+ };
3945
+ }
3946
+ function ai(e, t, r) {
3947
+ let n;
3948
+ Dt(e, Qn, (d) => r(6, n = d));
3949
+ let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, { isNativeApp: u = !1 } = t, { mode: h = "button" } = t, c, f, p = null, g = !1, x = !1;
3950
+ const v = (d) => {
3951
+ Object.keys(d).forEach((P) => {
3952
+ Jn(P, d[P]);
3953
+ });
3954
+ }, I = () => {
3955
+ fetch(l).then((P) => P.json()).then((P) => {
3956
+ v(P);
3957
+ }).catch((P) => {
3958
+ console.log(P);
3959
+ });
3960
+ };
3961
+ v(Yn);
3962
+ const N = () => {
3963
+ qn(i);
3964
+ }, B = {
3965
+ BIOMETRICS_RESPONSE: 3e3,
3966
+ SHAKE_DURATION: 500
3967
+ };
3968
+ let S = !1;
3969
+ const A = () => {
3970
+ r(5, S = !0), setTimeout(
3971
+ () => {
3972
+ r(5, S = !1);
3973
+ },
3974
+ B.SHAKE_DURATION
3975
+ );
3976
+ }, M = () => {
3977
+ p && clearTimeout(p), p = setTimeout(
3978
+ () => {
3979
+ r(4, x = !1), A(), window.postMessage(
3980
+ {
3981
+ type: "WidgetNotification",
3982
+ data: {
3983
+ type: "error",
3984
+ message: n("errorMessage")
3985
+ }
3986
+ },
3987
+ window.location.href
3988
+ );
3989
+ },
3990
+ B.BIOMETRICS_RESPONSE
3991
+ );
3992
+ }, Q = async () => {
3993
+ x || (r(4, x = !0), window.postMessage({
3994
+ type: "ToggleBiometrics",
3995
+ data: `${!g}`
3996
+ }), M());
3997
+ }, Ge = (d) => {
3998
+ d.data?.type === "NativeAppReady" && (r(0, u = !0), Fe()), d.data?.type === "BiometricsStatus" && (r(3, g = d.data.status || !1), r(4, x = !1), p && (clearTimeout(p), p = null));
3999
+ }, Fe = () => {
4000
+ r(4, x = !0), window.postMessage({ type: "GetBiometricsStatus" }), M();
4001
+ }, Lt = () => {
4002
+ window.postMessage({ type: "CheckNativeApp" });
4003
+ };
4004
+ Wt(() => (window.addEventListener("message", Ge), u === !0 ? Fe() : Lt(), () => {
4005
+ window.removeEventListener("message", Ge), f && f.unsubscribe(), p && clearTimeout(p);
4006
+ }));
4007
+ const Ct = () => Q();
4008
+ function Rt(d) {
4009
+ He[d ? "unshift" : "push"](() => {
4010
+ c = d, r(2, c);
4011
+ });
4012
+ }
4013
+ return e.$$set = (d) => {
4014
+ "lang" in d && r(8, i = d.lang), "clientstyling" in d && r(9, s = d.clientstyling), "clientstylingurl" in d && r(10, o = d.clientstylingurl), "mbsource" in d && r(11, a = d.mbsource), "translationurl" in d && r(12, l = d.translationurl), "isNativeApp" in d && r(0, u = d.isNativeApp), "mode" in d && r(1, h = d.mode);
4015
+ }, e.$$.update = () => {
4016
+ e.$$.dirty & /*lang*/
4017
+ 256 && i && N(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4018
+ 516 && s && c && Kn(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4019
+ 1028 && o && c && ei(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4020
+ 2052 && a && c && ti(c, `${a}.Style`), e.$$.dirty & /*translationurl*/
4021
+ 4096 && l && I(), e.$$.dirty & /*mbsource, translationurl, translationSubscription*/
4022
+ 14336 && a && !l && r(13, f = ri(`${a}.Translation`, f, v));
4023
+ }, [
4024
+ u,
4025
+ h,
4026
+ c,
4027
+ g,
4028
+ x,
4029
+ S,
4030
+ n,
4031
+ Q,
4032
+ i,
4033
+ s,
4034
+ o,
4035
+ a,
4036
+ l,
4037
+ f,
4038
+ Ct,
4039
+ Rt
4040
+ ];
4041
+ }
4042
+ class ui extends sr {
4043
+ constructor(t) {
4044
+ super(), nr(
4045
+ this,
4046
+ t,
4047
+ ai,
4048
+ oi,
4049
+ st,
4050
+ {
4051
+ lang: 8,
4052
+ clientstyling: 9,
4053
+ clientstylingurl: 10,
4054
+ mbsource: 11,
4055
+ translationurl: 12,
4056
+ isNativeApp: 0,
4057
+ mode: 1
4058
+ },
4059
+ ni
4060
+ );
4061
+ }
4062
+ get lang() {
4063
+ return this.$$.ctx[8];
4064
+ }
4065
+ set lang(t) {
4066
+ this.$$set({ lang: t }), w();
4067
+ }
4068
+ get clientstyling() {
4069
+ return this.$$.ctx[9];
4070
+ }
4071
+ set clientstyling(t) {
4072
+ this.$$set({ clientstyling: t }), w();
4073
+ }
4074
+ get clientstylingurl() {
4075
+ return this.$$.ctx[10];
4076
+ }
4077
+ set clientstylingurl(t) {
4078
+ this.$$set({ clientstylingurl: t }), w();
4079
+ }
4080
+ get mbsource() {
4081
+ return this.$$.ctx[11];
4082
+ }
4083
+ set mbsource(t) {
4084
+ this.$$set({ mbsource: t }), w();
4085
+ }
4086
+ get translationurl() {
4087
+ return this.$$.ctx[12];
4088
+ }
4089
+ set translationurl(t) {
4090
+ this.$$set({ translationurl: t }), w();
4091
+ }
4092
+ get isNativeApp() {
4093
+ return this.$$.ctx[0];
4094
+ }
4095
+ set isNativeApp(t) {
4096
+ this.$$set({ isNativeApp: t }), w();
4097
+ }
4098
+ get mode() {
4099
+ return this.$$.ctx[1];
4100
+ }
4101
+ set mode(t) {
4102
+ this.$$set({ mode: t }), w();
4103
+ }
4104
+ }
4105
+ ir(ui, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {} }, [], [], !0);
4106
+ export {
4107
+ ui as P
4108
+ };