@everymatrix/cashier-carousel 1.77.12

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