@everymatrix/player-account-betting-history 1.87.25 → 1.87.27

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