@everymatrix/cashier-receipt-page 1.87.26 → 1.87.28

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