@everymatrix/cashier-receipt-page 1.76.3 → 1.76.5

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