@everymatrix/general-icon-progress-bar 1.60.1 → 1.60.2
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.
- package/components/{GeneralIconProgressBar-DvfGRc7A.js → GeneralIconProgressBar-Bt-psNCh.js} +330 -332
- package/components/GeneralIconProgressBar-Cmawx_Ll.cjs +16 -0
- package/components/{GeneralIconProgressBar-DSaIA0Oc.js → GeneralIconProgressBar-g6HVGgOD.js} +343 -345
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-DvairRCn.cjs +0 -16
package/components/{GeneralIconProgressBar-DvfGRc7A.js → GeneralIconProgressBar-Bt-psNCh.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function et(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function $e() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function K(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(et);
|
11
11
|
}
|
12
12
|
function Ie(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function tt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Lt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function rt(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function it(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Ct(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(rt(t, r));
|
32
32
|
}
|
33
33
|
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Mt(e, t, r) {
|
37
|
+
const n = Rt(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = Z("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, $t(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Rt(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,14 +50,14 @@ function Ut(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function $t(e, t) {
|
54
54
|
return re(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function nt(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
63
|
function we(e) {
|
@@ -66,20 +66,20 @@ function we(e) {
|
|
66
66
|
function Z(e) {
|
67
67
|
return document.createElement(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Ut(e) {
|
70
70
|
return document.createTextNode(e);
|
71
71
|
}
|
72
72
|
function L(e, t, r) {
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
74
74
|
}
|
75
|
-
function
|
75
|
+
function Gt(e) {
|
76
76
|
return Array.from(e.childNodes);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function Dt(e, t) {
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
80
80
|
t);
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Ft(e) {
|
83
83
|
const t = {};
|
84
84
|
return e.childNodes.forEach(
|
85
85
|
/** @param {Element} node */
|
@@ -94,10 +94,10 @@ function Q(e) {
|
|
94
94
|
}
|
95
95
|
const U = [], J = [];
|
96
96
|
let G = [];
|
97
|
-
const
|
97
|
+
const Ue = [], jt = /* @__PURE__ */ Promise.resolve();
|
98
98
|
let ye = !1;
|
99
|
-
function
|
100
|
-
ye || (ye = !0,
|
99
|
+
function Vt() {
|
100
|
+
ye || (ye = !0, jt.then(S));
|
101
101
|
}
|
102
102
|
function _e(e) {
|
103
103
|
G.push(e);
|
@@ -112,7 +112,7 @@ function S() {
|
|
112
112
|
try {
|
113
113
|
for (; R < U.length; ) {
|
114
114
|
const t = U[R];
|
115
|
-
R++, Q(t),
|
115
|
+
R++, Q(t), kt(t.$$);
|
116
116
|
}
|
117
117
|
} catch (t) {
|
118
118
|
throw U.length = 0, R = 0, t;
|
@@ -125,40 +125,40 @@ function S() {
|
|
125
125
|
}
|
126
126
|
G.length = 0;
|
127
127
|
} while (U.length);
|
128
|
-
for (;
|
129
|
-
|
128
|
+
for (; Ue.length; )
|
129
|
+
Ue.pop()();
|
130
130
|
ye = !1, pe.clear(), Q(e);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function kt(e) {
|
133
133
|
if (e.fragment !== null) {
|
134
134
|
e.update(), K(e.before_update);
|
135
135
|
const t = e.dirty;
|
136
136
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
137
137
|
}
|
138
138
|
}
|
139
|
-
function
|
139
|
+
function Xt(e) {
|
140
140
|
const t = [], r = [];
|
141
141
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
142
142
|
}
|
143
|
-
const
|
144
|
-
function
|
145
|
-
e && e.i && (
|
143
|
+
const zt = /* @__PURE__ */ new Set();
|
144
|
+
function Wt(e, t) {
|
145
|
+
e && e.i && (zt.delete(e), e.i(t));
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function Zt(e, t, r) {
|
148
148
|
const { fragment: n, after_update: i } = e.$$;
|
149
149
|
n && n.m(t, r), _e(() => {
|
150
|
-
const s = e.$$.on_mount.map(
|
150
|
+
const s = e.$$.on_mount.map(et).filter(Ie);
|
151
151
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
152
152
|
}), i.forEach(_e);
|
153
153
|
}
|
154
|
-
function
|
154
|
+
function Qt(e, t) {
|
155
155
|
const r = e.$$;
|
156
|
-
r.fragment !== null && (
|
156
|
+
r.fragment !== null && (Xt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
158
|
+
function Jt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (U.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
162
162
|
const l = Le;
|
163
163
|
Q(e);
|
164
164
|
const h = e.$$ = {
|
@@ -168,7 +168,7 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
168
168
|
props: s,
|
169
169
|
update: T,
|
170
170
|
not_equal: i,
|
171
|
-
bound:
|
171
|
+
bound: $e(),
|
172
172
|
// lifecycle
|
173
173
|
on_mount: [],
|
174
174
|
on_destroy: [],
|
@@ -177,7 +177,7 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
177
177
|
after_update: [],
|
178
178
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
179
179
|
// everything else
|
180
|
-
callbacks:
|
180
|
+
callbacks: $e(),
|
181
181
|
dirty: o,
|
182
182
|
skip_bound: !1,
|
183
183
|
root: t.target || l.$$.root
|
@@ -186,19 +186,19 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
186
186
|
let u = !1;
|
187
187
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
188
188
|
const g = x.length ? x[0] : f;
|
189
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u &&
|
189
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Jt(e, c)), f;
|
190
190
|
}) : [], h.update(), u = !0, K(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
191
191
|
if (t.hydrate) {
|
192
|
-
const c =
|
192
|
+
const c = Gt(t.target);
|
193
193
|
h.fragment && h.fragment.l(c), c.forEach(we);
|
194
194
|
} else
|
195
195
|
h.fragment && h.fragment.c();
|
196
|
-
t.intro &&
|
196
|
+
t.intro && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), S();
|
197
197
|
}
|
198
198
|
Q(l);
|
199
199
|
}
|
200
|
-
let
|
201
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let it;
|
201
|
+
typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
202
202
|
/** The Svelte component constructor */
|
203
203
|
$$ctor;
|
204
204
|
/** Slots */
|
@@ -247,7 +247,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
247
247
|
* @param {HTMLElement} [anchor]
|
248
248
|
*/
|
249
249
|
m: function(l, h) {
|
250
|
-
|
250
|
+
nt(l, s, h);
|
251
251
|
},
|
252
252
|
d: function(l) {
|
253
253
|
l && we(s);
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
257
257
|
};
|
258
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
259
259
|
return;
|
260
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = Ft(this);
|
261
261
|
for (const i of this.$$s)
|
262
262
|
i in r && (t[i] = [e(i)]);
|
263
263
|
for (const i of this.attributes) {
|
@@ -344,8 +344,8 @@ function ne(e, t, r, n) {
|
|
344
344
|
return t;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
function
|
348
|
-
let a = class extends
|
347
|
+
function Yt(e, t, r, n, i, s) {
|
348
|
+
let a = class extends it {
|
349
349
|
constructor() {
|
350
350
|
super(e, r, i), this.$$p_d = t;
|
351
351
|
}
|
@@ -373,7 +373,7 @@ function er(e, t, r, n, i, s) {
|
|
373
373
|
}), e.element = /** @type {any} */
|
374
374
|
a, a;
|
375
375
|
}
|
376
|
-
class
|
376
|
+
class Kt {
|
377
377
|
/**
|
378
378
|
* ### PRIVATE API
|
379
379
|
*
|
@@ -392,7 +392,7 @@ class tr {
|
|
392
392
|
$$set = void 0;
|
393
393
|
/** @returns {void} */
|
394
394
|
$destroy() {
|
395
|
-
|
395
|
+
Qt(this, 1), this.$destroy = T;
|
396
396
|
}
|
397
397
|
/**
|
398
398
|
* @template {Extract<keyof Events, string>} K
|
@@ -414,13 +414,13 @@ class tr {
|
|
414
414
|
* @returns {void}
|
415
415
|
*/
|
416
416
|
$set(t) {
|
417
|
-
this.$$set && !
|
417
|
+
this.$$set && !Lt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
418
418
|
}
|
419
419
|
}
|
420
|
-
const
|
421
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
420
|
+
const er = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
422
422
|
const $ = [];
|
423
|
-
function
|
423
|
+
function tr(e, t) {
|
424
424
|
return {
|
425
425
|
subscribe: he(e, t).subscribe
|
426
426
|
};
|
@@ -429,7 +429,7 @@ function he(e, t = T) {
|
|
429
429
|
let r;
|
430
430
|
const n = /* @__PURE__ */ new Set();
|
431
431
|
function i(o) {
|
432
|
-
if (
|
432
|
+
if (tt(e, o) && (e = o, r)) {
|
433
433
|
const l = !$.length;
|
434
434
|
for (const h of n)
|
435
435
|
h[1](), $.push(h, e);
|
@@ -456,7 +456,7 @@ function k(e, t, r) {
|
|
456
456
|
if (!i.every(Boolean))
|
457
457
|
throw new Error("derived() expects stores as input, got a falsy value");
|
458
458
|
const s = t.length < 2;
|
459
|
-
return
|
459
|
+
return tr(r, (a, o) => {
|
460
460
|
let l = !1;
|
461
461
|
const h = [];
|
462
462
|
let u = 0, c = T;
|
@@ -467,7 +467,7 @@ function k(e, t, r) {
|
|
467
467
|
const g = t(n ? h[0] : h, a, o);
|
468
468
|
s ? a(g) : c = Ie(g) ? g : T;
|
469
469
|
}, x = i.map(
|
470
|
-
(g, y) =>
|
470
|
+
(g, y) => rt(
|
471
471
|
g,
|
472
472
|
(H) => {
|
473
473
|
h[y] = H, u &= ~(1 << y), l && f();
|
@@ -482,70 +482,70 @@ function k(e, t, r) {
|
|
482
482
|
};
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
485
|
+
function rr(e) {
|
486
486
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
487
487
|
}
|
488
|
-
var
|
489
|
-
return
|
488
|
+
var nr = function(t) {
|
489
|
+
return ir(t) && !sr(t);
|
490
490
|
};
|
491
|
-
function
|
491
|
+
function ir(e) {
|
492
492
|
return !!e && typeof e == "object";
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function sr(e) {
|
495
495
|
var t = Object.prototype.toString.call(e);
|
496
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
496
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
497
497
|
}
|
498
|
-
var
|
499
|
-
function
|
500
|
-
return e.$$typeof ===
|
498
|
+
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
499
|
+
function hr(e) {
|
500
|
+
return e.$$typeof === ar;
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function ur(e) {
|
503
503
|
return Array.isArray(e) ? [] : {};
|
504
504
|
}
|
505
505
|
function q(e, t) {
|
506
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(ur(e), e, t) : e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function lr(e, t, r) {
|
509
509
|
return e.concat(t).map(function(n) {
|
510
510
|
return q(n, r);
|
511
511
|
});
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function fr(e, t) {
|
514
514
|
if (!t.customMerge)
|
515
515
|
return D;
|
516
516
|
var r = t.customMerge(e);
|
517
517
|
return typeof r == "function" ? r : D;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function cr(e) {
|
520
520
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
521
521
|
return Object.propertyIsEnumerable.call(e, t);
|
522
522
|
}) : [];
|
523
523
|
}
|
524
|
-
function
|
525
|
-
return Object.keys(e).concat(
|
524
|
+
function Ge(e) {
|
525
|
+
return Object.keys(e).concat(cr(e));
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function st(e, t) {
|
528
528
|
try {
|
529
529
|
return t in e;
|
530
530
|
} catch {
|
531
531
|
return !1;
|
532
532
|
}
|
533
533
|
}
|
534
|
-
function
|
535
|
-
return
|
534
|
+
function pr(e, t) {
|
535
|
+
return st(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
536
536
|
}
|
537
|
-
function
|
537
|
+
function mr(e, t, r) {
|
538
538
|
var n = {};
|
539
|
-
return r.isMergeableObject(e) &&
|
539
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
540
540
|
n[i] = q(e[i], r);
|
541
|
-
}),
|
542
|
-
|
541
|
+
}), Ge(t).forEach(function(i) {
|
542
|
+
pr(e, i) || (st(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
543
543
|
}), n;
|
544
544
|
}
|
545
545
|
function D(e, t, r) {
|
546
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = q;
|
547
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
548
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
548
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : q(t, r);
|
549
549
|
}
|
550
550
|
D.all = function(t, r) {
|
551
551
|
if (!Array.isArray(t))
|
@@ -554,8 +554,8 @@ D.all = function(t, r) {
|
|
554
554
|
return D(n, i, r);
|
555
555
|
}, {});
|
556
556
|
};
|
557
|
-
var
|
558
|
-
const
|
557
|
+
var br = D, dr = br;
|
558
|
+
const gr = /* @__PURE__ */ rr(dr);
|
559
559
|
/*! *****************************************************************************
|
560
560
|
Copyright (c) Microsoft Corporation.
|
561
561
|
|
@@ -597,7 +597,7 @@ var d = function() {
|
|
597
597
|
return t;
|
598
598
|
}, d.apply(this, arguments);
|
599
599
|
};
|
600
|
-
function
|
600
|
+
function xr(e, t) {
|
601
601
|
var r = {};
|
602
602
|
for (var n in e)
|
603
603
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -613,55 +613,53 @@ function me(e, t, r) {
|
|
613
613
|
return e.concat(s || t);
|
614
614
|
}
|
615
615
|
function be(e, t) {
|
616
|
-
var r = t && t.cache ? t.cache :
|
616
|
+
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
617
617
|
return i(e, {
|
618
618
|
cache: r,
|
619
619
|
serializer: n
|
620
620
|
});
|
621
621
|
}
|
622
|
-
function
|
622
|
+
function Er(e) {
|
623
623
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
624
624
|
}
|
625
|
-
function
|
626
|
-
var i =
|
625
|
+
function yr(e, t, r, n) {
|
626
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
627
627
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
628
628
|
}
|
629
|
-
function
|
629
|
+
function ot(e, t, r) {
|
630
630
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
631
631
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
632
632
|
}
|
633
|
-
function
|
633
|
+
function at(e, t, r, n, i) {
|
634
634
|
return r.bind(t, e, n, i);
|
635
635
|
}
|
636
|
-
function
|
637
|
-
var r = e.length === 1 ?
|
638
|
-
return
|
639
|
-
}
|
640
|
-
function Hr(e, t) {
|
641
|
-
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
636
|
+
function _r(e, t) {
|
637
|
+
var r = e.length === 1 ? yr : ot;
|
638
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
642
639
|
}
|
643
|
-
function
|
644
|
-
return
|
640
|
+
function vr(e, t) {
|
641
|
+
return at(e, this, ot, t.cache.create(), t.serializer);
|
645
642
|
}
|
646
|
-
var
|
643
|
+
var Hr = function() {
|
647
644
|
return JSON.stringify(arguments);
|
648
|
-
}
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
645
|
+
}, Tr = (
|
646
|
+
/** @class */
|
647
|
+
function() {
|
648
|
+
function e() {
|
649
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
650
|
+
}
|
651
|
+
return e.prototype.get = function(t) {
|
652
|
+
return this.cache[t];
|
653
|
+
}, e.prototype.set = function(t, r) {
|
654
|
+
this.cache[t] = r;
|
655
|
+
}, e;
|
656
|
+
}()
|
657
|
+
), Br = {
|
659
658
|
create: function() {
|
660
|
-
return new
|
659
|
+
return new Tr();
|
661
660
|
}
|
662
661
|
}, de = {
|
663
|
-
variadic:
|
664
|
-
monadic: Tr
|
662
|
+
variadic: vr
|
665
663
|
}, m;
|
666
664
|
(function(e) {
|
667
665
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
@@ -674,43 +672,43 @@ var F;
|
|
674
672
|
(function(e) {
|
675
673
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
676
674
|
})(F || (F = {}));
|
677
|
-
function
|
675
|
+
function De(e) {
|
678
676
|
return e.type === E.literal;
|
679
677
|
}
|
680
|
-
function
|
678
|
+
function Ar(e) {
|
681
679
|
return e.type === E.argument;
|
682
680
|
}
|
683
|
-
function
|
681
|
+
function ht(e) {
|
684
682
|
return e.type === E.number;
|
685
683
|
}
|
686
|
-
function
|
684
|
+
function ut(e) {
|
687
685
|
return e.type === E.date;
|
688
686
|
}
|
689
|
-
function
|
687
|
+
function lt(e) {
|
690
688
|
return e.type === E.time;
|
691
689
|
}
|
692
|
-
function
|
690
|
+
function ft(e) {
|
693
691
|
return e.type === E.select;
|
694
692
|
}
|
695
|
-
function
|
693
|
+
function ct(e) {
|
696
694
|
return e.type === E.plural;
|
697
695
|
}
|
698
|
-
function
|
696
|
+
function Sr(e) {
|
699
697
|
return e.type === E.pound;
|
700
698
|
}
|
701
|
-
function
|
699
|
+
function pt(e) {
|
702
700
|
return e.type === E.tag;
|
703
701
|
}
|
704
|
-
function
|
702
|
+
function mt(e) {
|
705
703
|
return !!(e && typeof e == "object" && e.type === F.number);
|
706
704
|
}
|
707
705
|
function He(e) {
|
708
706
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
709
707
|
}
|
710
|
-
var
|
711
|
-
function
|
708
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
709
|
+
function Or(e) {
|
712
710
|
var t = {};
|
713
|
-
return e.replace(
|
711
|
+
return e.replace(Pr, function(r) {
|
714
712
|
var n = r.length;
|
715
713
|
switch (r[0]) {
|
716
714
|
case "G":
|
@@ -799,11 +797,11 @@ function Nr(e) {
|
|
799
797
|
return "";
|
800
798
|
}), t;
|
801
799
|
}
|
802
|
-
var
|
803
|
-
function
|
800
|
+
var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
801
|
+
function Ir(e) {
|
804
802
|
if (e.length === 0)
|
805
803
|
throw new Error("Number skeleton cannot be empty");
|
806
|
-
for (var t = e.split(
|
804
|
+
for (var t = e.split(Nr).filter(function(f) {
|
807
805
|
return f.length > 0;
|
808
806
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
809
807
|
var s = i[n], a = s.split("/");
|
@@ -818,17 +816,17 @@ function wr(e) {
|
|
818
816
|
}
|
819
817
|
return r;
|
820
818
|
}
|
821
|
-
function
|
819
|
+
function wr(e) {
|
822
820
|
return e.replace(/^(.*?)-/, "");
|
823
821
|
}
|
824
|
-
var
|
825
|
-
function
|
822
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, gt = /^(0+)$/;
|
823
|
+
function je(e) {
|
826
824
|
var t = {};
|
827
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
825
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dt, function(r, n, i) {
|
828
826
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
829
827
|
}), t;
|
830
828
|
}
|
831
|
-
function
|
829
|
+
function xt(e) {
|
832
830
|
switch (e) {
|
833
831
|
case "sign-auto":
|
834
832
|
return {
|
@@ -868,7 +866,7 @@ function yt(e) {
|
|
868
866
|
};
|
869
867
|
}
|
870
868
|
}
|
871
|
-
function
|
869
|
+
function Cr(e) {
|
872
870
|
var t;
|
873
871
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
874
872
|
notation: "engineering"
|
@@ -876,17 +874,17 @@ function Mr(e) {
|
|
876
874
|
notation: "scientific"
|
877
875
|
}, e = e.slice(1)), t) {
|
878
876
|
var r = e.slice(0, 2);
|
879
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
877
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gt.test(e))
|
880
878
|
throw new Error("Malformed concise eng/scientific notation");
|
881
879
|
t.minimumIntegerDigits = e.length;
|
882
880
|
}
|
883
881
|
return t;
|
884
882
|
}
|
885
|
-
function
|
886
|
-
var t = {}, r =
|
883
|
+
function Ve(e) {
|
884
|
+
var t = {}, r = xt(e);
|
887
885
|
return r || t;
|
888
886
|
}
|
889
|
-
function
|
887
|
+
function Mr(e) {
|
890
888
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
891
889
|
var i = n[r];
|
892
890
|
switch (i.stem) {
|
@@ -910,7 +908,7 @@ function Rr(e) {
|
|
910
908
|
continue;
|
911
909
|
case "measure-unit":
|
912
910
|
case "unit":
|
913
|
-
t.style = "unit", t.unit =
|
911
|
+
t.style = "unit", t.unit = wr(i.options[0]);
|
914
912
|
continue;
|
915
913
|
case "compact-short":
|
916
914
|
case "K":
|
@@ -922,12 +920,12 @@ function Rr(e) {
|
|
922
920
|
continue;
|
923
921
|
case "scientific":
|
924
922
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
925
|
-
return d(d({}, l),
|
923
|
+
return d(d({}, l), Ve(h));
|
926
924
|
}, {}));
|
927
925
|
continue;
|
928
926
|
case "engineering":
|
929
927
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
930
|
-
return d(d({}, l),
|
928
|
+
return d(d({}, l), Ve(h));
|
931
929
|
}, {}));
|
932
930
|
continue;
|
933
931
|
case "notation-simple":
|
@@ -972,7 +970,7 @@ function Rr(e) {
|
|
972
970
|
case "integer-width":
|
973
971
|
if (i.options.length > 1)
|
974
972
|
throw new RangeError("integer-width stems only accept a single optional option");
|
975
|
-
i.options[0].replace(
|
973
|
+
i.options[0].replace(Lr, function(l, h, u, c, f, x) {
|
976
974
|
if (h)
|
977
975
|
t.minimumIntegerDigits = u.length;
|
978
976
|
else {
|
@@ -985,27 +983,27 @@ function Rr(e) {
|
|
985
983
|
});
|
986
984
|
continue;
|
987
985
|
}
|
988
|
-
if (
|
986
|
+
if (gt.test(i.stem)) {
|
989
987
|
t.minimumIntegerDigits = i.stem.length;
|
990
988
|
continue;
|
991
989
|
}
|
992
|
-
if (
|
990
|
+
if (Fe.test(i.stem)) {
|
993
991
|
if (i.options.length > 1)
|
994
992
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
995
|
-
i.stem.replace(
|
993
|
+
i.stem.replace(Fe, function(l, h, u, c, f, x) {
|
996
994
|
return u === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
997
995
|
});
|
998
996
|
var s = i.options[0];
|
999
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
997
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
|
1000
998
|
continue;
|
1001
999
|
}
|
1002
|
-
if (
|
1003
|
-
t = d(d({}, t),
|
1000
|
+
if (dt.test(i.stem)) {
|
1001
|
+
t = d(d({}, t), je(i.stem));
|
1004
1002
|
continue;
|
1005
1003
|
}
|
1006
|
-
var a =
|
1004
|
+
var a = xt(i.stem);
|
1007
1005
|
a && (t = d(d({}, t), a));
|
1008
|
-
var o =
|
1006
|
+
var o = Cr(i.stem);
|
1009
1007
|
o && (t = d(d({}, t), o));
|
1010
1008
|
}
|
1011
1009
|
return t;
|
@@ -2425,13 +2423,13 @@ var te = {
|
|
2425
2423
|
"h"
|
2426
2424
|
]
|
2427
2425
|
};
|
2428
|
-
function
|
2426
|
+
function Rr(e, t) {
|
2429
2427
|
for (var r = "", n = 0; n < e.length; n++) {
|
2430
2428
|
var i = e.charAt(n);
|
2431
2429
|
if (i === "j") {
|
2432
2430
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2433
2431
|
s++, n++;
|
2434
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
2432
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = $r(t);
|
2435
2433
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2436
2434
|
r += l;
|
2437
2435
|
for (; a-- > 0; )
|
@@ -2441,7 +2439,7 @@ function $r(e, t) {
|
|
2441
2439
|
}
|
2442
2440
|
return r;
|
2443
2441
|
}
|
2444
|
-
function
|
2442
|
+
function $r(e) {
|
2445
2443
|
var t = e.hourCycle;
|
2446
2444
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2447
2445
|
e.hourCycles && // @ts-ignore
|
@@ -2463,20 +2461,20 @@ function Ur(e) {
|
|
2463
2461
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2464
2462
|
return i[0];
|
2465
2463
|
}
|
2466
|
-
var ge,
|
2464
|
+
var ge, Ur = new RegExp("^".concat(bt.source, "*")), Gr = new RegExp("".concat(bt.source, "*$"));
|
2467
2465
|
function b(e, t) {
|
2468
2466
|
return { start: e, end: t };
|
2469
2467
|
}
|
2470
|
-
var
|
2468
|
+
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Wr = zr ? Number.isSafeInteger : function(e) {
|
2471
2469
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2472
2470
|
}, Te = !0;
|
2473
2471
|
try {
|
2474
|
-
var
|
2475
|
-
Te = ((ge =
|
2472
|
+
var Zr = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2473
|
+
Te = ((ge = Zr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2476
2474
|
} catch {
|
2477
2475
|
Te = !1;
|
2478
2476
|
}
|
2479
|
-
var
|
2477
|
+
var ke = Dr ? (
|
2480
2478
|
// Native
|
2481
2479
|
function(t, r, n) {
|
2482
2480
|
return t.startsWith(r, n);
|
@@ -2486,7 +2484,7 @@ var ze = Fr ? (
|
|
2486
2484
|
function(t, r, n) {
|
2487
2485
|
return t.slice(n, n + r.length) === r;
|
2488
2486
|
}
|
2489
|
-
), Be =
|
2487
|
+
), Be = Fr ? String.fromCodePoint : (
|
2490
2488
|
// IE11
|
2491
2489
|
function() {
|
2492
2490
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2498,9 +2496,9 @@ var ze = Fr ? (
|
|
2498
2496
|
}
|
2499
2497
|
return n;
|
2500
2498
|
}
|
2501
|
-
),
|
2499
|
+
), Xe = (
|
2502
2500
|
// native
|
2503
|
-
|
2501
|
+
jr ? Object.fromEntries : (
|
2504
2502
|
// Ponyfill
|
2505
2503
|
function(t) {
|
2506
2504
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2510,7 +2508,7 @@ var ze = Fr ? (
|
|
2510
2508
|
return r;
|
2511
2509
|
}
|
2512
2510
|
)
|
2513
|
-
),
|
2511
|
+
), Et = Vr ? (
|
2514
2512
|
// Native
|
2515
2513
|
function(t, r) {
|
2516
2514
|
return t.codePointAt(r);
|
@@ -2524,7 +2522,7 @@ var ze = Fr ? (
|
|
2524
2522
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2525
2523
|
}
|
2526
2524
|
}
|
2527
|
-
),
|
2525
|
+
), Qr = kr ? (
|
2528
2526
|
// Native
|
2529
2527
|
function(t) {
|
2530
2528
|
return t.trimStart();
|
@@ -2532,9 +2530,9 @@ var ze = Fr ? (
|
|
2532
2530
|
) : (
|
2533
2531
|
// Ponyfill
|
2534
2532
|
function(t) {
|
2535
|
-
return t.replace(
|
2533
|
+
return t.replace(Ur, "");
|
2536
2534
|
}
|
2537
|
-
),
|
2535
|
+
), Jr = Xr ? (
|
2538
2536
|
// Native
|
2539
2537
|
function(t) {
|
2540
2538
|
return t.trimEnd();
|
@@ -2542,32 +2540,32 @@ var ze = Fr ? (
|
|
2542
2540
|
) : (
|
2543
2541
|
// Ponyfill
|
2544
2542
|
function(t) {
|
2545
|
-
return t.replace(
|
2543
|
+
return t.replace(Gr, "");
|
2546
2544
|
}
|
2547
2545
|
);
|
2548
|
-
function
|
2546
|
+
function yt(e, t) {
|
2549
2547
|
return new RegExp(e, t);
|
2550
2548
|
}
|
2551
2549
|
var Ae;
|
2552
2550
|
if (Te) {
|
2553
|
-
var
|
2551
|
+
var ze = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2554
2552
|
Ae = function(t, r) {
|
2555
2553
|
var n;
|
2556
|
-
|
2557
|
-
var i =
|
2554
|
+
ze.lastIndex = r;
|
2555
|
+
var i = ze.exec(t);
|
2558
2556
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2559
2557
|
};
|
2560
2558
|
} else
|
2561
2559
|
Ae = function(t, r) {
|
2562
2560
|
for (var n = []; ; ) {
|
2563
|
-
var i =
|
2564
|
-
if (i === void 0 ||
|
2561
|
+
var i = Et(t, r);
|
2562
|
+
if (i === void 0 || _t(i) || en(i))
|
2565
2563
|
break;
|
2566
2564
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2567
2565
|
}
|
2568
2566
|
return Be.apply(void 0, n);
|
2569
2567
|
};
|
2570
|
-
var
|
2568
|
+
var qr = (
|
2571
2569
|
/** @class */
|
2572
2570
|
function() {
|
2573
2571
|
function e(t, r) {
|
@@ -2649,7 +2647,7 @@ var Yr = (
|
|
2649
2647
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2650
2648
|
}, e.prototype.parseTagName = function() {
|
2651
2649
|
var t = this.offset();
|
2652
|
-
for (this.bump(); !this.isEOF() &&
|
2650
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
2653
2651
|
this.bump();
|
2654
2652
|
return this.message.slice(t, this.offset());
|
2655
2653
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2678,7 +2676,7 @@ var Yr = (
|
|
2678
2676
|
};
|
2679
2677
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2680
2678
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2681
|
-
!
|
2679
|
+
!Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2682
2680
|
}, e.prototype.tryParseQuote = function(t) {
|
2683
2681
|
if (this.isEOF() || this.char() !== 39)
|
2684
2682
|
return null;
|
@@ -2765,7 +2763,7 @@ var Yr = (
|
|
2765
2763
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2766
2764
|
if (c.err)
|
2767
2765
|
return c;
|
2768
|
-
var f =
|
2766
|
+
var f = Jr(c.val);
|
2769
2767
|
if (f.length === 0)
|
2770
2768
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2771
2769
|
var x = b(u, this.clonePosition());
|
@@ -2775,8 +2773,8 @@ var Yr = (
|
|
2775
2773
|
if (g.err)
|
2776
2774
|
return g;
|
2777
2775
|
var y = b(i, this.clonePosition());
|
2778
|
-
if (h &&
|
2779
|
-
var H =
|
2776
|
+
if (h && ke(h?.style, "::", 0)) {
|
2777
|
+
var H = Qr(h.style.slice(2));
|
2780
2778
|
if (o === "number") {
|
2781
2779
|
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2782
2780
|
return c.err ? c : {
|
@@ -2787,12 +2785,12 @@ var Yr = (
|
|
2787
2785
|
if (H.length === 0)
|
2788
2786
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2789
2787
|
var B = H;
|
2790
|
-
this.locale && (B =
|
2788
|
+
this.locale && (B = Rr(H, this.locale));
|
2791
2789
|
var f = {
|
2792
2790
|
type: F.dateTime,
|
2793
2791
|
pattern: B,
|
2794
2792
|
location: h.styleLocation,
|
2795
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2793
|
+
parsedOptions: this.shouldParseSkeletons ? Or(B) : {}
|
2796
2794
|
}, A = o === "date" ? E.date : E.time;
|
2797
2795
|
return {
|
2798
2796
|
val: { type: A, value: n, location: y, style: f },
|
@@ -2838,7 +2836,7 @@ var Yr = (
|
|
2838
2836
|
val: {
|
2839
2837
|
type: E.select,
|
2840
2838
|
value: n,
|
2841
|
-
options:
|
2839
|
+
options: Xe(M.val),
|
2842
2840
|
location: ee
|
2843
2841
|
},
|
2844
2842
|
err: null
|
@@ -2846,7 +2844,7 @@ var Yr = (
|
|
2846
2844
|
val: {
|
2847
2845
|
type: E.plural,
|
2848
2846
|
value: n,
|
2849
|
-
options:
|
2847
|
+
options: Xe(M.val),
|
2850
2848
|
offset: P,
|
2851
2849
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2852
2850
|
location: ee
|
@@ -2897,7 +2895,7 @@ var Yr = (
|
|
2897
2895
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2898
2896
|
var n = [];
|
2899
2897
|
try {
|
2900
|
-
n =
|
2898
|
+
n = Ir(t);
|
2901
2899
|
} catch {
|
2902
2900
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2903
2901
|
}
|
@@ -2906,7 +2904,7 @@ var Yr = (
|
|
2906
2904
|
type: F.number,
|
2907
2905
|
tokens: n,
|
2908
2906
|
location: r,
|
2909
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2907
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
|
2910
2908
|
},
|
2911
2909
|
err: null
|
2912
2910
|
};
|
@@ -2954,7 +2952,7 @@ var Yr = (
|
|
2954
2952
|
break;
|
2955
2953
|
}
|
2956
2954
|
var l = b(i, this.clonePosition());
|
2957
|
-
return s ? (a *= n,
|
2955
|
+
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2958
2956
|
}, e.prototype.offset = function() {
|
2959
2957
|
return this.position.offset;
|
2960
2958
|
}, e.prototype.isEOF = function() {
|
@@ -2969,7 +2967,7 @@ var Yr = (
|
|
2969
2967
|
var t = this.position.offset;
|
2970
2968
|
if (t >= this.message.length)
|
2971
2969
|
throw Error("out of bound");
|
2972
|
-
var r =
|
2970
|
+
var r = Et(this.message, t);
|
2973
2971
|
if (r === void 0)
|
2974
2972
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2975
2973
|
return r;
|
@@ -2988,7 +2986,7 @@ var Yr = (
|
|
2988
2986
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
2989
2987
|
}
|
2990
2988
|
}, e.prototype.bumpIf = function(t) {
|
2991
|
-
if (
|
2989
|
+
if (ke(this.message, t, this.offset())) {
|
2992
2990
|
for (var r = 0; r < t.length; r++)
|
2993
2991
|
this.bump();
|
2994
2992
|
return !0;
|
@@ -3010,7 +3008,7 @@ var Yr = (
|
|
3010
3008
|
break;
|
3011
3009
|
}
|
3012
3010
|
}, e.prototype.bumpSpace = function() {
|
3013
|
-
for (; !this.isEOF() &&
|
3011
|
+
for (; !this.isEOF() && _t(this.char()); )
|
3014
3012
|
this.bump();
|
3015
3013
|
}, e.prototype.peek = function() {
|
3016
3014
|
if (this.isEOF())
|
@@ -3023,30 +3021,30 @@ var Yr = (
|
|
3023
3021
|
function Se(e) {
|
3024
3022
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3025
3023
|
}
|
3026
|
-
function
|
3024
|
+
function Yr(e) {
|
3027
3025
|
return Se(e) || e === 47;
|
3028
3026
|
}
|
3029
|
-
function
|
3027
|
+
function Kr(e) {
|
3030
3028
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
3031
3029
|
}
|
3032
|
-
function
|
3030
|
+
function _t(e) {
|
3033
3031
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3034
3032
|
}
|
3035
|
-
function
|
3033
|
+
function en(e) {
|
3036
3034
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
3037
3035
|
}
|
3038
3036
|
function Pe(e) {
|
3039
3037
|
e.forEach(function(t) {
|
3040
|
-
if (delete t.location,
|
3038
|
+
if (delete t.location, ft(t) || ct(t))
|
3041
3039
|
for (var r in t.options)
|
3042
3040
|
delete t.options[r].location, Pe(t.options[r].value);
|
3043
3041
|
else
|
3044
|
-
|
3042
|
+
ht(t) && mt(t.style) || (ut(t) || lt(t)) && He(t.style) ? delete t.style.location : pt(t) && Pe(t.children);
|
3045
3043
|
});
|
3046
3044
|
}
|
3047
|
-
function
|
3045
|
+
function tn(e, t) {
|
3048
3046
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3049
|
-
var r = new
|
3047
|
+
var r = new qr(e, t).parse();
|
3050
3048
|
if (r.err) {
|
3051
3049
|
var n = SyntaxError(m[r.err.kind]);
|
3052
3050
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3069,7 +3067,7 @@ var le = (
|
|
3069
3067
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3070
3068
|
}, t;
|
3071
3069
|
}(Error)
|
3072
|
-
),
|
3070
|
+
), We = (
|
3073
3071
|
/** @class */
|
3074
3072
|
function(e) {
|
3075
3073
|
ue(t, e);
|
@@ -3078,7 +3076,7 @@ var le = (
|
|
3078
3076
|
}
|
3079
3077
|
return t;
|
3080
3078
|
}(le)
|
3081
|
-
),
|
3079
|
+
), rn = (
|
3082
3080
|
/** @class */
|
3083
3081
|
function(e) {
|
3084
3082
|
ue(t, e);
|
@@ -3087,7 +3085,7 @@ var le = (
|
|
3087
3085
|
}
|
3088
3086
|
return t;
|
3089
3087
|
}(le)
|
3090
|
-
),
|
3088
|
+
), nn = (
|
3091
3089
|
/** @class */
|
3092
3090
|
function(e) {
|
3093
3091
|
ue(t, e);
|
@@ -3100,17 +3098,17 @@ var le = (
|
|
3100
3098
|
(function(e) {
|
3101
3099
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3102
3100
|
})(_ || (_ = {}));
|
3103
|
-
function
|
3101
|
+
function sn(e) {
|
3104
3102
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3105
3103
|
var n = t[t.length - 1];
|
3106
3104
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3107
3105
|
}, []);
|
3108
3106
|
}
|
3109
|
-
function
|
3107
|
+
function on(e) {
|
3110
3108
|
return typeof e == "function";
|
3111
3109
|
}
|
3112
3110
|
function ie(e, t, r, n, i, s, a) {
|
3113
|
-
if (e.length === 1 &&
|
3111
|
+
if (e.length === 1 && De(e[0]))
|
3114
3112
|
return [
|
3115
3113
|
{
|
3116
3114
|
type: _.literal,
|
@@ -3119,14 +3117,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3119
3117
|
];
|
3120
3118
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3121
3119
|
var u = h[l];
|
3122
|
-
if (
|
3120
|
+
if (De(u)) {
|
3123
3121
|
o.push({
|
3124
3122
|
type: _.literal,
|
3125
3123
|
value: u.value
|
3126
3124
|
});
|
3127
3125
|
continue;
|
3128
3126
|
}
|
3129
|
-
if (
|
3127
|
+
if (Sr(u)) {
|
3130
3128
|
typeof s == "number" && o.push({
|
3131
3129
|
type: _.literal,
|
3132
3130
|
value: r.getNumberFormat(t).format(s)
|
@@ -3135,16 +3133,16 @@ function ie(e, t, r, n, i, s, a) {
|
|
3135
3133
|
}
|
3136
3134
|
var c = u.value;
|
3137
3135
|
if (!(i && c in i))
|
3138
|
-
throw new
|
3136
|
+
throw new nn(c, a);
|
3139
3137
|
var f = i[c];
|
3140
|
-
if (
|
3138
|
+
if (Ar(u)) {
|
3141
3139
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3142
3140
|
type: typeof f == "string" ? _.literal : _.object,
|
3143
3141
|
value: f
|
3144
3142
|
});
|
3145
3143
|
continue;
|
3146
3144
|
}
|
3147
|
-
if (
|
3145
|
+
if (ut(u)) {
|
3148
3146
|
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3149
3147
|
o.push({
|
3150
3148
|
type: _.literal,
|
@@ -3152,7 +3150,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3152
3150
|
});
|
3153
3151
|
continue;
|
3154
3152
|
}
|
3155
|
-
if (
|
3153
|
+
if (lt(u)) {
|
3156
3154
|
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3157
3155
|
o.push({
|
3158
3156
|
type: _.literal,
|
@@ -3160,18 +3158,18 @@ function ie(e, t, r, n, i, s, a) {
|
|
3160
3158
|
});
|
3161
3159
|
continue;
|
3162
3160
|
}
|
3163
|
-
if (
|
3164
|
-
var x = typeof u.style == "string" ? n.number[u.style] :
|
3161
|
+
if (ht(u)) {
|
3162
|
+
var x = typeof u.style == "string" ? n.number[u.style] : mt(u.style) ? u.style.parsedOptions : void 0;
|
3165
3163
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3166
3164
|
type: _.literal,
|
3167
3165
|
value: r.getNumberFormat(t, x).format(f)
|
3168
3166
|
});
|
3169
3167
|
continue;
|
3170
3168
|
}
|
3171
|
-
if (
|
3169
|
+
if (pt(u)) {
|
3172
3170
|
var g = u.children, y = u.value, H = i[y];
|
3173
|
-
if (!
|
3174
|
-
throw new
|
3171
|
+
if (!on(H))
|
3172
|
+
throw new rn(y, "function", a);
|
3175
3173
|
var B = ie(g, t, r, n, i, s), A = H(B.map(function(P) {
|
3176
3174
|
return P.value;
|
3177
3175
|
}));
|
@@ -3182,14 +3180,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3182
3180
|
};
|
3183
3181
|
}));
|
3184
3182
|
}
|
3185
|
-
if (
|
3183
|
+
if (ft(u)) {
|
3186
3184
|
var v = u.options[f] || u.options.other;
|
3187
3185
|
if (!v)
|
3188
|
-
throw new
|
3186
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3189
3187
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3190
3188
|
continue;
|
3191
3189
|
}
|
3192
|
-
if (
|
3190
|
+
if (ct(u)) {
|
3193
3191
|
var v = u.options["=".concat(f)];
|
3194
3192
|
if (!v) {
|
3195
3193
|
if (!Intl.PluralRules)
|
@@ -3200,21 +3198,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3200
3198
|
v = u.options[O] || u.options.other;
|
3201
3199
|
}
|
3202
3200
|
if (!v)
|
3203
|
-
throw new
|
3201
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3204
3202
|
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3205
3203
|
continue;
|
3206
3204
|
}
|
3207
3205
|
}
|
3208
|
-
return
|
3206
|
+
return sn(o);
|
3209
3207
|
}
|
3210
|
-
function
|
3208
|
+
function an(e, t) {
|
3211
3209
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3212
3210
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3213
3211
|
}, {})) : e;
|
3214
3212
|
}
|
3215
|
-
function
|
3213
|
+
function hn(e, t) {
|
3216
3214
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3217
|
-
return r[n] =
|
3215
|
+
return r[n] = an(e[n], t[n]), r;
|
3218
3216
|
}, d({}, e)) : e;
|
3219
3217
|
}
|
3220
3218
|
function xe(e) {
|
@@ -3231,7 +3229,7 @@ function xe(e) {
|
|
3231
3229
|
}
|
3232
3230
|
};
|
3233
3231
|
}
|
3234
|
-
function
|
3232
|
+
function un(e) {
|
3235
3233
|
return e === void 0 && (e = {
|
3236
3234
|
number: {},
|
3237
3235
|
dateTime: {},
|
@@ -3263,7 +3261,7 @@ function ln(e) {
|
|
3263
3261
|
})
|
3264
3262
|
};
|
3265
3263
|
}
|
3266
|
-
var
|
3264
|
+
var ln = (
|
3267
3265
|
/** @class */
|
3268
3266
|
function() {
|
3269
3267
|
function e(t, r, n, i) {
|
@@ -3295,13 +3293,13 @@ var fn = (
|
|
3295
3293
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3296
3294
|
var a = i || {};
|
3297
3295
|
a.formatters;
|
3298
|
-
var o =
|
3296
|
+
var o = xr(a, ["formatters"]);
|
3299
3297
|
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3300
3298
|
} else
|
3301
3299
|
this.ast = t;
|
3302
3300
|
if (!Array.isArray(this.ast))
|
3303
3301
|
throw new TypeError("A message must be provided as a String or AST.");
|
3304
|
-
this.formats =
|
3302
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
3305
3303
|
}
|
3306
3304
|
return Object.defineProperty(e, "defaultLocale", {
|
3307
3305
|
get: function() {
|
@@ -3314,7 +3312,7 @@ var fn = (
|
|
3314
3312
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3315
3313
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3316
3314
|
}
|
3317
|
-
}, e.__parse =
|
3315
|
+
}, e.__parse = tn, e.formats = {
|
3318
3316
|
number: {
|
3319
3317
|
integer: {
|
3320
3318
|
maximumFractionDigits: 0
|
@@ -3375,7 +3373,7 @@ var fn = (
|
|
3375
3373
|
}, e;
|
3376
3374
|
}()
|
3377
3375
|
);
|
3378
|
-
function
|
3376
|
+
function fn(e, t) {
|
3379
3377
|
if (t == null)
|
3380
3378
|
return;
|
3381
3379
|
if (t in e)
|
@@ -3396,60 +3394,60 @@ function cn(e, t) {
|
|
3396
3394
|
n = void 0;
|
3397
3395
|
return n;
|
3398
3396
|
}
|
3399
|
-
const N = {},
|
3397
|
+
const N = {}, cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), vt = (e, t) => {
|
3400
3398
|
if (t == null)
|
3401
3399
|
return;
|
3402
3400
|
if (t in N && e in N[t])
|
3403
3401
|
return N[t][e];
|
3404
3402
|
const r = fe(t);
|
3405
3403
|
for (let n = 0; n < r.length; n++) {
|
3406
|
-
const i = r[n], s =
|
3404
|
+
const i = r[n], s = mn(i, e);
|
3407
3405
|
if (s)
|
3408
|
-
return
|
3406
|
+
return cn(e, t, s);
|
3409
3407
|
}
|
3410
3408
|
};
|
3411
|
-
let
|
3409
|
+
let Ce;
|
3412
3410
|
const X = he({});
|
3413
|
-
function
|
3414
|
-
return
|
3411
|
+
function pn(e) {
|
3412
|
+
return Ce[e] || null;
|
3415
3413
|
}
|
3416
|
-
function
|
3417
|
-
return e in
|
3414
|
+
function Ht(e) {
|
3415
|
+
return e in Ce;
|
3418
3416
|
}
|
3419
|
-
function
|
3420
|
-
if (!
|
3417
|
+
function mn(e, t) {
|
3418
|
+
if (!Ht(e))
|
3421
3419
|
return null;
|
3422
|
-
const r =
|
3423
|
-
return
|
3420
|
+
const r = pn(e);
|
3421
|
+
return fn(r, t);
|
3424
3422
|
}
|
3425
|
-
function
|
3423
|
+
function bn(e) {
|
3426
3424
|
if (e == null)
|
3427
3425
|
return;
|
3428
3426
|
const t = fe(e);
|
3429
3427
|
for (let r = 0; r < t.length; r++) {
|
3430
3428
|
const n = t[r];
|
3431
|
-
if (
|
3429
|
+
if (Ht(n))
|
3432
3430
|
return n;
|
3433
3431
|
}
|
3434
3432
|
}
|
3435
|
-
function
|
3436
|
-
delete N[e], X.update((r) => (r[e] =
|
3433
|
+
function Tt(e, ...t) {
|
3434
|
+
delete N[e], X.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
3437
3435
|
}
|
3438
3436
|
k(
|
3439
3437
|
[X],
|
3440
3438
|
([e]) => Object.keys(e)
|
3441
3439
|
);
|
3442
|
-
X.subscribe((e) =>
|
3440
|
+
X.subscribe((e) => Ce = e);
|
3443
3441
|
const se = {};
|
3444
|
-
function
|
3442
|
+
function dn(e, t) {
|
3445
3443
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3446
3444
|
}
|
3447
|
-
function
|
3445
|
+
function Bt(e) {
|
3448
3446
|
return se[e];
|
3449
3447
|
}
|
3450
|
-
function
|
3448
|
+
function gn(e) {
|
3451
3449
|
return fe(e).map((t) => {
|
3452
|
-
const r =
|
3450
|
+
const r = Bt(t);
|
3453
3451
|
return [t, r ? [...r] : []];
|
3454
3452
|
}).filter(([, t]) => t.length > 0);
|
3455
3453
|
}
|
@@ -3457,31 +3455,31 @@ function Oe(e) {
|
|
3457
3455
|
return e == null ? !1 : fe(e).some(
|
3458
3456
|
(t) => {
|
3459
3457
|
var r;
|
3460
|
-
return (r =
|
3458
|
+
return (r = Bt(t)) == null ? void 0 : r.size;
|
3461
3459
|
}
|
3462
3460
|
);
|
3463
3461
|
}
|
3464
|
-
function
|
3462
|
+
function xn(e, t) {
|
3465
3463
|
return Promise.all(
|
3466
|
-
t.map((n) => (
|
3467
|
-
).then((n) =>
|
3464
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
3465
|
+
).then((n) => Tt(e, ...n));
|
3468
3466
|
}
|
3469
3467
|
const W = {};
|
3470
|
-
function
|
3468
|
+
function At(e) {
|
3471
3469
|
if (!Oe(e))
|
3472
3470
|
return e in W ? W[e] : Promise.resolve();
|
3473
|
-
const t =
|
3471
|
+
const t = gn(e);
|
3474
3472
|
return W[e] = Promise.all(
|
3475
3473
|
t.map(
|
3476
|
-
([r, n]) =>
|
3474
|
+
([r, n]) => xn(r, n)
|
3477
3475
|
)
|
3478
3476
|
).then(() => {
|
3479
3477
|
if (Oe(e))
|
3480
|
-
return
|
3478
|
+
return At(e);
|
3481
3479
|
delete W[e];
|
3482
3480
|
}), W[e];
|
3483
3481
|
}
|
3484
|
-
const
|
3482
|
+
const En = {
|
3485
3483
|
number: {
|
3486
3484
|
scientific: { notation: "scientific" },
|
3487
3485
|
engineering: { notation: "engineering" },
|
@@ -3510,34 +3508,34 @@ const yn = {
|
|
3510
3508
|
timeZoneName: "short"
|
3511
3509
|
}
|
3512
3510
|
}
|
3513
|
-
},
|
3511
|
+
}, yn = {
|
3514
3512
|
fallbackLocale: null,
|
3515
3513
|
loadingDelay: 200,
|
3516
|
-
formats:
|
3514
|
+
formats: En,
|
3517
3515
|
warnOnMissingMessages: !0,
|
3518
3516
|
handleMissingMessage: void 0,
|
3519
3517
|
ignoreTag: !0
|
3520
|
-
},
|
3518
|
+
}, _n = yn;
|
3521
3519
|
function V() {
|
3522
|
-
return
|
3520
|
+
return _n;
|
3523
3521
|
}
|
3524
3522
|
const Ee = he(!1);
|
3525
|
-
var
|
3523
|
+
var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
3526
3524
|
for (var r in t || (t = {}))
|
3527
|
-
|
3528
|
-
if (
|
3529
|
-
for (var r of
|
3530
|
-
|
3525
|
+
Bn.call(t, r) && Qe(e, r, t[r]);
|
3526
|
+
if (Ze)
|
3527
|
+
for (var r of Ze(t))
|
3528
|
+
An.call(t, r) && Qe(e, r, t[r]);
|
3531
3529
|
return e;
|
3532
|
-
},
|
3530
|
+
}, Pn = (e, t) => Hn(e, Tn(t));
|
3533
3531
|
let Ne;
|
3534
3532
|
const oe = he(null);
|
3535
|
-
function
|
3533
|
+
function Je(e) {
|
3536
3534
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3537
3535
|
}
|
3538
3536
|
function fe(e, t = V().fallbackLocale) {
|
3539
|
-
const r =
|
3540
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3537
|
+
const r = Je(e);
|
3538
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
|
3541
3539
|
}
|
3542
3540
|
function C() {
|
3543
3541
|
return Ne ?? void 0;
|
@@ -3545,22 +3543,22 @@ function C() {
|
|
3545
3543
|
oe.subscribe((e) => {
|
3546
3544
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3547
3545
|
});
|
3548
|
-
const
|
3549
|
-
if (e &&
|
3546
|
+
const On = (e) => {
|
3547
|
+
if (e && bn(e) && Oe(e)) {
|
3550
3548
|
const { loadingDelay: t } = V();
|
3551
3549
|
let r;
|
3552
3550
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3553
3551
|
() => Ee.set(!0),
|
3554
3552
|
t
|
3555
|
-
) : Ee.set(!0),
|
3553
|
+
) : Ee.set(!0), At(e).then(() => {
|
3556
3554
|
oe.set(e);
|
3557
3555
|
}).finally(() => {
|
3558
3556
|
clearTimeout(r), Ee.set(!1);
|
3559
3557
|
});
|
3560
3558
|
}
|
3561
3559
|
return oe.set(e);
|
3562
|
-
}, I =
|
3563
|
-
set:
|
3560
|
+
}, I = Pn(Sn({}, oe), {
|
3561
|
+
set: On
|
3564
3562
|
}), ce = (e) => {
|
3565
3563
|
const t = /* @__PURE__ */ Object.create(null);
|
3566
3564
|
return (n) => {
|
@@ -3568,20 +3566,20 @@ const Nn = (e) => {
|
|
3568
3566
|
return i in t ? t[i] : t[i] = e(n);
|
3569
3567
|
};
|
3570
3568
|
};
|
3571
|
-
var
|
3569
|
+
var Nn = Object.defineProperty, ae = Object.getOwnPropertySymbols, St = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
3572
3570
|
for (var r in t || (t = {}))
|
3573
|
-
|
3571
|
+
St.call(t, r) && qe(e, r, t[r]);
|
3574
3572
|
if (ae)
|
3575
3573
|
for (var r of ae(t))
|
3576
|
-
|
3574
|
+
Pt.call(t, r) && qe(e, r, t[r]);
|
3577
3575
|
return e;
|
3578
3576
|
}, z = (e, t) => {
|
3579
3577
|
var r = {};
|
3580
3578
|
for (var n in e)
|
3581
|
-
|
3579
|
+
St.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3582
3580
|
if (e != null && ae)
|
3583
3581
|
for (var n of ae(e))
|
3584
|
-
t.indexOf(n) < 0 &&
|
3582
|
+
t.indexOf(n) < 0 && Pt.call(e, n) && (r[n] = e[n]);
|
3585
3583
|
return r;
|
3586
3584
|
};
|
3587
3585
|
const Y = (e, t) => {
|
@@ -3589,21 +3587,21 @@ const Y = (e, t) => {
|
|
3589
3587
|
if (e in r && t in r[e])
|
3590
3588
|
return r[e][t];
|
3591
3589
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3592
|
-
},
|
3590
|
+
}, In = ce(
|
3593
3591
|
(e) => {
|
3594
3592
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3595
3593
|
if (r == null)
|
3596
3594
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3597
3595
|
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
3598
3596
|
}
|
3599
|
-
),
|
3597
|
+
), wn = ce(
|
3600
3598
|
(e) => {
|
3601
3599
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3602
3600
|
if (r == null)
|
3603
3601
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3604
3602
|
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
3605
3603
|
}
|
3606
|
-
),
|
3604
|
+
), Ln = ce(
|
3607
3605
|
(e) => {
|
3608
3606
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3609
3607
|
if (r == null)
|
@@ -3612,33 +3610,33 @@ const Y = (e, t) => {
|
|
3612
3610
|
);
|
3613
3611
|
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
3614
3612
|
}
|
3615
|
-
),
|
3613
|
+
), Cn = (e = {}) => {
|
3616
3614
|
var t = e, {
|
3617
3615
|
locale: r = C()
|
3618
3616
|
} = t, n = z(t, [
|
3619
3617
|
"locale"
|
3620
3618
|
]);
|
3621
|
-
return
|
3622
|
-
},
|
3619
|
+
return In(Me({ locale: r }, n));
|
3620
|
+
}, Mn = (e = {}) => {
|
3623
3621
|
var t = e, {
|
3624
3622
|
locale: r = C()
|
3625
3623
|
} = t, n = z(t, [
|
3626
3624
|
"locale"
|
3627
3625
|
]);
|
3628
|
-
return
|
3629
|
-
},
|
3626
|
+
return wn(Me({ locale: r }, n));
|
3627
|
+
}, Rn = (e = {}) => {
|
3630
3628
|
var t = e, {
|
3631
3629
|
locale: r = C()
|
3632
3630
|
} = t, n = z(t, [
|
3633
3631
|
"locale"
|
3634
3632
|
]);
|
3635
|
-
return
|
3636
|
-
},
|
3633
|
+
return Ln(Me({ locale: r }, n));
|
3634
|
+
}, $n = ce(
|
3637
3635
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3638
|
-
(e, t = C()) => new
|
3636
|
+
(e, t = C()) => new ln(e, t, V().formats, {
|
3639
3637
|
ignoreTag: V().ignoreTag
|
3640
3638
|
})
|
3641
|
-
),
|
3639
|
+
), Un = (e, t = {}) => {
|
3642
3640
|
var r, n, i, s;
|
3643
3641
|
let a = t;
|
3644
3642
|
typeof e == "object" && (a = e, e = a.id);
|
@@ -3651,7 +3649,7 @@ const Y = (e, t) => {
|
|
3651
3649
|
throw new Error(
|
3652
3650
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3653
3651
|
);
|
3654
|
-
let u =
|
3652
|
+
let u = vt(e, l);
|
3655
3653
|
if (!u)
|
3656
3654
|
u = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3657
3655
|
else if (typeof u != "string")
|
@@ -3662,7 +3660,7 @@ const Y = (e, t) => {
|
|
3662
3660
|
return u;
|
3663
3661
|
let c = u;
|
3664
3662
|
try {
|
3665
|
-
c =
|
3663
|
+
c = $n(u, l).format(o);
|
3666
3664
|
} catch (f) {
|
3667
3665
|
f instanceof Error && console.warn(
|
3668
3666
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3670,23 +3668,23 @@ const Y = (e, t) => {
|
|
3670
3668
|
);
|
3671
3669
|
}
|
3672
3670
|
return c;
|
3673
|
-
},
|
3671
|
+
}, Gn = (e, t) => Rn(t).format(e), Dn = (e, t) => Mn(t).format(e), Fn = (e, t) => Cn(t).format(e), jn = (e, t = C()) => vt(e, t), Vn = k([I, X], () => Un);
|
3672
|
+
k([I], () => Gn);
|
3674
3673
|
k([I], () => Dn);
|
3675
3674
|
k([I], () => Fn);
|
3676
|
-
k([I], () => jn);
|
3677
|
-
|
3678
|
-
function Xn({ withLocale: e, translations: t }) {
|
3675
|
+
k([I, X], () => jn);
|
3676
|
+
function kn({ withLocale: e, translations: t }) {
|
3679
3677
|
I.subscribe((r) => {
|
3680
3678
|
r == null && (X.set(t), I.set(e));
|
3681
3679
|
});
|
3682
3680
|
}
|
3683
|
-
function
|
3684
|
-
|
3681
|
+
function Ye(e, t) {
|
3682
|
+
Tt(e, t);
|
3685
3683
|
}
|
3686
|
-
function
|
3684
|
+
function Xn(e) {
|
3687
3685
|
I.set(e);
|
3688
3686
|
}
|
3689
|
-
const
|
3687
|
+
const Ke = {
|
3690
3688
|
en: {
|
3691
3689
|
bets: "bets"
|
3692
3690
|
},
|
@@ -3712,25 +3710,25 @@ const tt = {
|
|
3712
3710
|
bets: "bets"
|
3713
3711
|
}
|
3714
3712
|
};
|
3715
|
-
function
|
3716
|
-
|
3713
|
+
function zn(e) {
|
3714
|
+
Mt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3717
3715
|
}
|
3718
|
-
function
|
3716
|
+
function Wn(e) {
|
3719
3717
|
let t, r, n, i, s;
|
3720
3718
|
return {
|
3721
3719
|
c() {
|
3722
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3720
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Ut(
|
3723
3721
|
/*progressText*/
|
3724
3722
|
e[3]
|
3725
3723
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3726
3724
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3727
3725
|
},
|
3728
3726
|
m(a, o) {
|
3729
|
-
|
3727
|
+
nt(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3730
3728
|
},
|
3731
3729
|
p(a, [o]) {
|
3732
3730
|
o & /*progressText*/
|
3733
|
-
8 &&
|
3731
|
+
8 && Dt(
|
3734
3732
|
i,
|
3735
3733
|
/*progressText*/
|
3736
3734
|
a[3]
|
@@ -3745,25 +3743,25 @@ function Zn(e) {
|
|
3745
3743
|
}
|
3746
3744
|
};
|
3747
3745
|
}
|
3748
|
-
function
|
3746
|
+
function Zn(e, t, r) {
|
3749
3747
|
let n;
|
3750
|
-
|
3748
|
+
Ct(e, Vn, (p) => r(20, n = p));
|
3751
3749
|
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: h = "" } = t, { progressfractiondigit: u = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, A, v = "0px", O = "active";
|
3752
|
-
|
3750
|
+
kn({ withLocale: "en", translations: {} });
|
3753
3751
|
const P = () => {
|
3754
3752
|
fetch(h).then((w) => w.json()).then((w) => {
|
3755
|
-
Object.keys(w).forEach((
|
3756
|
-
|
3753
|
+
Object.keys(w).forEach((Re) => {
|
3754
|
+
Ye(Re, w[Re]);
|
3757
3755
|
});
|
3758
3756
|
}).catch((w) => {
|
3759
3757
|
console.log(w);
|
3760
3758
|
});
|
3761
3759
|
};
|
3762
|
-
Object.keys(
|
3763
|
-
|
3760
|
+
Object.keys(Ke).forEach((p) => {
|
3761
|
+
Ye(p, Ke[p]);
|
3764
3762
|
});
|
3765
3763
|
const M = () => {
|
3766
|
-
|
3764
|
+
Xn(o);
|
3767
3765
|
}, ee = () => {
|
3768
3766
|
let p = (i / s * 100).toFixed(u);
|
3769
3767
|
setTimeout(
|
@@ -3772,20 +3770,20 @@ function Qn(e, t, r) {
|
|
3772
3770
|
},
|
3773
3771
|
y ? 573 : 0
|
3774
3772
|
), p == 0 || p == 100 ? (B = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, A = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", B), g.style.setProperty("--halfOfTriangleHeight", A), g.style.setProperty("--stepBarBorderRadius", v);
|
3775
|
-
},
|
3773
|
+
}, Ot = () => {
|
3776
3774
|
r(4, O = l == "active" ? "" : "inactive");
|
3777
3775
|
};
|
3778
|
-
function
|
3776
|
+
function Nt(p) {
|
3779
3777
|
J[p ? "unshift" : "push"](() => {
|
3780
3778
|
x = p, r(1, x);
|
3781
3779
|
});
|
3782
3780
|
}
|
3783
|
-
function
|
3781
|
+
function It(p) {
|
3784
3782
|
J[p ? "unshift" : "push"](() => {
|
3785
3783
|
g = p, r(2, g);
|
3786
3784
|
});
|
3787
3785
|
}
|
3788
|
-
function
|
3786
|
+
function wt(p) {
|
3789
3787
|
J[p ? "unshift" : "push"](() => {
|
3790
3788
|
f = p, r(0, f);
|
3791
3789
|
});
|
@@ -3798,7 +3796,7 @@ function Qn(e, t, r) {
|
|
3798
3796
|
ee();
|
3799
3797
|
}), e.$$.dirty & /*lang*/
|
3800
3798
|
256 && o && M(), e.$$.dirty & /*status*/
|
3801
|
-
512 && l &&
|
3799
|
+
512 && l && Ot(), e.$$.dirty & /*translationurl*/
|
3802
3800
|
1024 && h && P();
|
3803
3801
|
}, [
|
3804
3802
|
f,
|
@@ -3814,19 +3812,19 @@ function Qn(e, t, r) {
|
|
3814
3812
|
h,
|
3815
3813
|
u,
|
3816
3814
|
c,
|
3817
|
-
|
3818
|
-
|
3819
|
-
|
3815
|
+
Nt,
|
3816
|
+
It,
|
3817
|
+
wt
|
3820
3818
|
];
|
3821
3819
|
}
|
3822
|
-
class
|
3820
|
+
class Qn extends Kt {
|
3823
3821
|
constructor(t) {
|
3824
|
-
super(),
|
3822
|
+
super(), qt(
|
3825
3823
|
this,
|
3826
3824
|
t,
|
3827
|
-
Qn,
|
3828
3825
|
Zn,
|
3829
|
-
|
3826
|
+
Wn,
|
3827
|
+
tt,
|
3830
3828
|
{
|
3831
3829
|
currentstep: 5,
|
3832
3830
|
total: 6,
|
@@ -3837,7 +3835,7 @@ class Jn extends tr {
|
|
3837
3835
|
progressfractiondigit: 11,
|
3838
3836
|
triggerreset: 12
|
3839
3837
|
},
|
3840
|
-
|
3838
|
+
zn
|
3841
3839
|
);
|
3842
3840
|
}
|
3843
3841
|
get currentstep() {
|
@@ -3889,7 +3887,7 @@ class Jn extends tr {
|
|
3889
3887
|
this.$$set({ triggerreset: t }), S();
|
3890
3888
|
}
|
3891
3889
|
}
|
3892
|
-
|
3890
|
+
Yt(Qn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3893
3891
|
export {
|
3894
|
-
|
3892
|
+
Qn as G
|
3895
3893
|
};
|