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