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