@everymatrix/cashier-verifications 1.45.5 → 1.45.6

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