@everymatrix/player-limit-notification 0.7.25 → 0.7.27

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