@everymatrix/general-icon-progress-bar 1.54.6 → 1.54.8
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-CZWl7bCY.js +3908 -0
- package/components/{GeneralIconProgressBar-C9Vh7zO4.js → GeneralIconProgressBar-DHNv9GhN.js} +320 -324
- package/components/GeneralIconProgressBar-mIv2HEbp.cjs +3 -0
- package/es2015/general-icon-progress-bar.cjs +1 -0
- package/es2015/general-icon-progress-bar.js +16 -0
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
package/components/{GeneralIconProgressBar-C9Vh7zO4.js → GeneralIconProgressBar-DHNv9GhN.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 nt(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) return document;
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
46
46
|
return t && /** @type {ShadowRoot} */
|
@@ -49,14 +49,14 @@ function $t(e) {
|
|
49
49
|
t
|
50
50
|
) : e.ownerDocument;
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function $t(e, t) {
|
53
53
|
return re(
|
54
54
|
/** @type {Document} */
|
55
55
|
e.head || e,
|
56
56
|
t
|
57
57
|
), t.sheet;
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function nt(e, t, r) {
|
60
60
|
e.insertBefore(t, r || null);
|
61
61
|
}
|
62
62
|
function we(e) {
|
@@ -65,20 +65,20 @@ function we(e) {
|
|
65
65
|
function Z(e) {
|
66
66
|
return document.createElement(e);
|
67
67
|
}
|
68
|
-
function
|
68
|
+
function Ut(e) {
|
69
69
|
return document.createTextNode(e);
|
70
70
|
}
|
71
71
|
function L(e, t, r) {
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function Gt(e) {
|
75
75
|
return Array.from(e.childNodes);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function Dt(e, t) {
|
78
78
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
79
79
|
t);
|
80
80
|
}
|
81
|
-
function
|
81
|
+
function Ft(e) {
|
82
82
|
const t = {};
|
83
83
|
return e.childNodes.forEach(
|
84
84
|
/** @param {Element} node */
|
@@ -93,10 +93,10 @@ function Q(e) {
|
|
93
93
|
}
|
94
94
|
const U = [], J = [];
|
95
95
|
let G = [];
|
96
|
-
const
|
96
|
+
const Ue = [], jt = /* @__PURE__ */ Promise.resolve();
|
97
97
|
let ye = !1;
|
98
|
-
function
|
99
|
-
ye || (ye = !0,
|
98
|
+
function Vt() {
|
99
|
+
ye || (ye = !0, jt.then(A));
|
100
100
|
}
|
101
101
|
function _e(e) {
|
102
102
|
G.push(e);
|
@@ -111,7 +111,7 @@ function A() {
|
|
111
111
|
try {
|
112
112
|
for (; R < U.length; ) {
|
113
113
|
const t = U[R];
|
114
|
-
R++, Q(t),
|
114
|
+
R++, Q(t), kt(t.$$);
|
115
115
|
}
|
116
116
|
} catch (t) {
|
117
117
|
throw U.length = 0, R = 0, t;
|
@@ -123,40 +123,40 @@ function A() {
|
|
123
123
|
}
|
124
124
|
G.length = 0;
|
125
125
|
} while (U.length);
|
126
|
-
for (;
|
127
|
-
|
126
|
+
for (; Ue.length; )
|
127
|
+
Ue.pop()();
|
128
128
|
ye = !1, pe.clear(), Q(e);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function kt(e) {
|
131
131
|
if (e.fragment !== null) {
|
132
132
|
e.update(), K(e.before_update);
|
133
133
|
const t = e.dirty;
|
134
134
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
135
135
|
}
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function Xt(e) {
|
138
138
|
const t = [], r = [];
|
139
139
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
140
140
|
}
|
141
|
-
const
|
142
|
-
function
|
143
|
-
e && e.i && (
|
141
|
+
const zt = /* @__PURE__ */ new Set();
|
142
|
+
function Wt(e, t) {
|
143
|
+
e && e.i && (zt.delete(e), e.i(t));
|
144
144
|
}
|
145
|
-
function
|
145
|
+
function Zt(e, t, r) {
|
146
146
|
const { fragment: n, after_update: i } = e.$$;
|
147
147
|
n && n.m(t, r), _e(() => {
|
148
|
-
const s = e.$$.on_mount.map(
|
148
|
+
const s = e.$$.on_mount.map(et).filter(Ie);
|
149
149
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
150
150
|
}), i.forEach(_e);
|
151
151
|
}
|
152
|
-
function
|
152
|
+
function Qt(e, t) {
|
153
153
|
const r = e.$$;
|
154
|
-
r.fragment !== null && (
|
154
|
+
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 = []);
|
155
155
|
}
|
156
|
-
function
|
157
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
156
|
+
function Jt(e, t) {
|
157
|
+
e.$$.dirty[0] === -1 && (U.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
160
160
|
const l = Le;
|
161
161
|
Q(e);
|
162
162
|
const u = e.$$ = {
|
@@ -166,7 +166,7 @@ function Yt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
166
166
|
props: s,
|
167
167
|
update: T,
|
168
168
|
not_equal: i,
|
169
|
-
bound:
|
169
|
+
bound: $e(),
|
170
170
|
// lifecycle
|
171
171
|
on_mount: [],
|
172
172
|
on_destroy: [],
|
@@ -175,28 +175,28 @@ function Yt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
175
175
|
after_update: [],
|
176
176
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
177
177
|
// everything else
|
178
|
-
callbacks:
|
178
|
+
callbacks: $e(),
|
179
179
|
dirty: o,
|
180
180
|
skip_bound: !1,
|
181
181
|
root: t.target || l.$$.root
|
182
182
|
};
|
183
183
|
a && a(u.root);
|
184
184
|
let h = !1;
|
185
|
-
if (u.ctx = r(e, t.props || {}, (c, f, ...x) => {
|
185
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
186
186
|
const g = x.length ? x[0] : f;
|
187
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h &&
|
188
|
-
}), u.update(), h = !0, K(u.before_update), u.fragment = n(u.ctx), t.target) {
|
187
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Jt(e, c)), f;
|
188
|
+
}) : [], u.update(), h = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
189
189
|
if (t.hydrate) {
|
190
|
-
const c =
|
190
|
+
const c = Gt(t.target);
|
191
191
|
u.fragment && u.fragment.l(c), c.forEach(we);
|
192
192
|
} else
|
193
193
|
u.fragment && u.fragment.c();
|
194
|
-
t.intro &&
|
194
|
+
t.intro && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), A();
|
195
195
|
}
|
196
196
|
Q(l);
|
197
197
|
}
|
198
|
-
let
|
199
|
-
typeof HTMLElement == "function" && (
|
198
|
+
let it;
|
199
|
+
typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
200
200
|
/** The Svelte component constructor */
|
201
201
|
$$ctor;
|
202
202
|
/** Slots */
|
@@ -245,7 +245,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
245
245
|
* @param {HTMLElement} [anchor]
|
246
246
|
*/
|
247
247
|
m: function(l, u) {
|
248
|
-
|
248
|
+
nt(l, s, u);
|
249
249
|
},
|
250
250
|
d: function(l) {
|
251
251
|
l && we(s);
|
@@ -255,7 +255,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
255
255
|
};
|
256
256
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
257
257
|
return;
|
258
|
-
const t = {}, r =
|
258
|
+
const t = {}, r = Ft(this);
|
259
259
|
for (const i of this.$$s)
|
260
260
|
i in r && (t[i] = [e(i)]);
|
261
261
|
for (const i of this.attributes) {
|
@@ -342,8 +342,8 @@ function ne(e, t, r, n) {
|
|
342
342
|
return t;
|
343
343
|
}
|
344
344
|
}
|
345
|
-
function
|
346
|
-
let a = class extends
|
345
|
+
function Yt(e, t, r, n, i, s) {
|
346
|
+
let a = class extends it {
|
347
347
|
constructor() {
|
348
348
|
super(e, r, i), this.$$p_d = t;
|
349
349
|
}
|
@@ -371,7 +371,7 @@ function Kt(e, t, r, n, i, s) {
|
|
371
371
|
}), e.element = /** @type {any} */
|
372
372
|
a, a;
|
373
373
|
}
|
374
|
-
class
|
374
|
+
class Kt {
|
375
375
|
/**
|
376
376
|
* ### PRIVATE API
|
377
377
|
*
|
@@ -390,7 +390,7 @@ class er {
|
|
390
390
|
$$set = void 0;
|
391
391
|
/** @returns {void} */
|
392
392
|
$destroy() {
|
393
|
-
|
393
|
+
Qt(this, 1), this.$destroy = T;
|
394
394
|
}
|
395
395
|
/**
|
396
396
|
* @template {Extract<keyof Events, string>} K
|
@@ -412,13 +412,13 @@ class er {
|
|
412
412
|
* @returns {void}
|
413
413
|
*/
|
414
414
|
$set(t) {
|
415
|
-
this.$$set && !
|
415
|
+
this.$$set && !Lt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
416
416
|
}
|
417
417
|
}
|
418
|
-
const
|
419
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
418
|
+
const er = "4";
|
419
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
420
420
|
const $ = [];
|
421
|
-
function
|
421
|
+
function tr(e, t) {
|
422
422
|
return {
|
423
423
|
subscribe: ue(e, t).subscribe
|
424
424
|
};
|
@@ -427,7 +427,7 @@ function ue(e, t = T) {
|
|
427
427
|
let r;
|
428
428
|
const n = /* @__PURE__ */ new Set();
|
429
429
|
function i(o) {
|
430
|
-
if (
|
430
|
+
if (tt(e, o) && (e = o, r)) {
|
431
431
|
const l = !$.length;
|
432
432
|
for (const u of n)
|
433
433
|
u[1](), $.push(u, e);
|
@@ -454,7 +454,7 @@ function k(e, t, r) {
|
|
454
454
|
if (!i.every(Boolean))
|
455
455
|
throw new Error("derived() expects stores as input, got a falsy value");
|
456
456
|
const s = t.length < 2;
|
457
|
-
return
|
457
|
+
return tr(r, (a, o) => {
|
458
458
|
let l = !1;
|
459
459
|
const u = [];
|
460
460
|
let h = 0, c = T;
|
@@ -465,7 +465,7 @@ function k(e, t, r) {
|
|
465
465
|
const g = t(n ? u[0] : u, a, o);
|
466
466
|
s ? a(g) : c = Ie(g) ? g : T;
|
467
467
|
}, x = i.map(
|
468
|
-
(g, y) =>
|
468
|
+
(g, y) => rt(
|
469
469
|
g,
|
470
470
|
(H) => {
|
471
471
|
u[y] = H, h &= ~(1 << y), l && f();
|
@@ -480,70 +480,70 @@ function k(e, t, r) {
|
|
480
480
|
};
|
481
481
|
});
|
482
482
|
}
|
483
|
-
function
|
484
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
483
|
+
function rr(e) {
|
484
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
485
485
|
}
|
486
|
-
var
|
487
|
-
return
|
486
|
+
var nr = function(t) {
|
487
|
+
return ir(t) && !sr(t);
|
488
488
|
};
|
489
|
-
function
|
489
|
+
function ir(e) {
|
490
490
|
return !!e && typeof e == "object";
|
491
491
|
}
|
492
|
-
function
|
492
|
+
function sr(e) {
|
493
493
|
var t = Object.prototype.toString.call(e);
|
494
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
494
|
+
return t === "[object RegExp]" || t === "[object Date]" || ur(e);
|
495
495
|
}
|
496
|
-
var
|
497
|
-
function
|
498
|
-
return e.$$typeof ===
|
496
|
+
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
497
|
+
function ur(e) {
|
498
|
+
return e.$$typeof === ar;
|
499
499
|
}
|
500
|
-
function
|
500
|
+
function hr(e) {
|
501
501
|
return Array.isArray(e) ? [] : {};
|
502
502
|
}
|
503
503
|
function q(e, t) {
|
504
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
504
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(hr(e), e, t) : e;
|
505
505
|
}
|
506
|
-
function
|
506
|
+
function lr(e, t, r) {
|
507
507
|
return e.concat(t).map(function(n) {
|
508
508
|
return q(n, r);
|
509
509
|
});
|
510
510
|
}
|
511
|
-
function
|
511
|
+
function fr(e, t) {
|
512
512
|
if (!t.customMerge)
|
513
513
|
return D;
|
514
514
|
var r = t.customMerge(e);
|
515
515
|
return typeof r == "function" ? r : D;
|
516
516
|
}
|
517
|
-
function
|
517
|
+
function cr(e) {
|
518
518
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
519
519
|
return Object.propertyIsEnumerable.call(e, t);
|
520
520
|
}) : [];
|
521
521
|
}
|
522
|
-
function
|
523
|
-
return Object.keys(e).concat(
|
522
|
+
function Ge(e) {
|
523
|
+
return Object.keys(e).concat(cr(e));
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function st(e, t) {
|
526
526
|
try {
|
527
527
|
return t in e;
|
528
528
|
} catch {
|
529
529
|
return !1;
|
530
530
|
}
|
531
531
|
}
|
532
|
-
function
|
533
|
-
return
|
532
|
+
function pr(e, t) {
|
533
|
+
return st(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function mr(e, t, r) {
|
536
536
|
var n = {};
|
537
|
-
return r.isMergeableObject(e) &&
|
537
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
538
538
|
n[i] = q(e[i], r);
|
539
|
-
}),
|
540
|
-
|
539
|
+
}), Ge(t).forEach(function(i) {
|
540
|
+
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));
|
541
541
|
}), n;
|
542
542
|
}
|
543
543
|
function D(e, t, r) {
|
544
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
544
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = q;
|
545
545
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
546
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
546
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : q(t, r);
|
547
547
|
}
|
548
548
|
D.all = function(t, r) {
|
549
549
|
if (!Array.isArray(t))
|
@@ -552,8 +552,8 @@ D.all = function(t, r) {
|
|
552
552
|
return D(n, i, r);
|
553
553
|
}, {});
|
554
554
|
};
|
555
|
-
var
|
556
|
-
const
|
555
|
+
var dr = D, br = dr;
|
556
|
+
const gr = /* @__PURE__ */ rr(br);
|
557
557
|
var ve = function(e, t) {
|
558
558
|
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
559
559
|
r.__proto__ = n;
|
@@ -579,7 +579,7 @@ var b = function() {
|
|
579
579
|
return t;
|
580
580
|
}, b.apply(this, arguments);
|
581
581
|
};
|
582
|
-
function
|
582
|
+
function xr(e, t) {
|
583
583
|
var r = {};
|
584
584
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
585
585
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -593,39 +593,36 @@ function me(e, t, r) {
|
|
593
593
|
return e.concat(s || Array.prototype.slice.call(t));
|
594
594
|
}
|
595
595
|
function de(e, t) {
|
596
|
-
var r = t && t.cache ? t.cache :
|
596
|
+
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
597
597
|
return i(e, {
|
598
598
|
cache: r,
|
599
599
|
serializer: n
|
600
600
|
});
|
601
601
|
}
|
602
|
-
function
|
602
|
+
function Er(e) {
|
603
603
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
604
604
|
}
|
605
|
-
function
|
606
|
-
var i =
|
605
|
+
function yr(e, t, r, n) {
|
606
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
607
607
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
608
608
|
}
|
609
|
-
function
|
609
|
+
function ot(e, t, r) {
|
610
610
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
611
611
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
612
612
|
}
|
613
|
-
function
|
613
|
+
function at(e, t, r, n, i) {
|
614
614
|
return r.bind(t, e, n, i);
|
615
615
|
}
|
616
616
|
function _r(e, t) {
|
617
|
-
var r = e.length === 1 ?
|
618
|
-
return
|
617
|
+
var r = e.length === 1 ? yr : ot;
|
618
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
619
619
|
}
|
620
620
|
function vr(e, t) {
|
621
|
-
return
|
621
|
+
return at(e, this, ot, t.cache.create(), t.serializer);
|
622
622
|
}
|
623
|
-
|
624
|
-
return Ce(e, this, at, t.cache.create(), t.serializer);
|
625
|
-
}
|
626
|
-
var Tr = function() {
|
623
|
+
var Hr = function() {
|
627
624
|
return JSON.stringify(arguments);
|
628
|
-
},
|
625
|
+
}, Tr = (
|
629
626
|
/** @class */
|
630
627
|
function() {
|
631
628
|
function e() {
|
@@ -637,13 +634,12 @@ var Tr = function() {
|
|
637
634
|
this.cache[t] = r;
|
638
635
|
}, e;
|
639
636
|
}()
|
640
|
-
),
|
637
|
+
), Br = {
|
641
638
|
create: function() {
|
642
|
-
return new
|
639
|
+
return new Tr();
|
643
640
|
}
|
644
641
|
}, be = {
|
645
|
-
variadic: vr
|
646
|
-
monadic: Hr
|
642
|
+
variadic: vr
|
647
643
|
}, m;
|
648
644
|
(function(e) {
|
649
645
|
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";
|
@@ -656,43 +652,43 @@ var F;
|
|
656
652
|
(function(e) {
|
657
653
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
658
654
|
})(F || (F = {}));
|
659
|
-
function
|
655
|
+
function De(e) {
|
660
656
|
return e.type === E.literal;
|
661
657
|
}
|
662
|
-
function
|
658
|
+
function Sr(e) {
|
663
659
|
return e.type === E.argument;
|
664
660
|
}
|
665
|
-
function
|
661
|
+
function ut(e) {
|
666
662
|
return e.type === E.number;
|
667
663
|
}
|
668
|
-
function
|
664
|
+
function ht(e) {
|
669
665
|
return e.type === E.date;
|
670
666
|
}
|
671
|
-
function
|
667
|
+
function lt(e) {
|
672
668
|
return e.type === E.time;
|
673
669
|
}
|
674
|
-
function
|
670
|
+
function ft(e) {
|
675
671
|
return e.type === E.select;
|
676
672
|
}
|
677
|
-
function
|
673
|
+
function ct(e) {
|
678
674
|
return e.type === E.plural;
|
679
675
|
}
|
680
|
-
function
|
676
|
+
function Ar(e) {
|
681
677
|
return e.type === E.pound;
|
682
678
|
}
|
683
|
-
function
|
679
|
+
function pt(e) {
|
684
680
|
return e.type === E.tag;
|
685
681
|
}
|
686
|
-
function
|
682
|
+
function mt(e) {
|
687
683
|
return !!(e && typeof e == "object" && e.type === F.number);
|
688
684
|
}
|
689
685
|
function He(e) {
|
690
686
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
691
687
|
}
|
692
|
-
var
|
693
|
-
function
|
688
|
+
var dt = /[ \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;
|
689
|
+
function Or(e) {
|
694
690
|
var t = {};
|
695
|
-
return e.replace(
|
691
|
+
return e.replace(Pr, function(r) {
|
696
692
|
var n = r.length;
|
697
693
|
switch (r[0]) {
|
698
694
|
case "G":
|
@@ -781,11 +777,11 @@ function Nr(e) {
|
|
781
777
|
return "";
|
782
778
|
}), t;
|
783
779
|
}
|
784
|
-
var
|
785
|
-
function
|
780
|
+
var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
781
|
+
function Ir(e) {
|
786
782
|
if (e.length === 0)
|
787
783
|
throw new Error("Number skeleton cannot be empty");
|
788
|
-
for (var t = e.split(
|
784
|
+
for (var t = e.split(Nr).filter(function(f) {
|
789
785
|
return f.length > 0;
|
790
786
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
791
787
|
var s = i[n], a = s.split("/");
|
@@ -800,17 +796,17 @@ function wr(e) {
|
|
800
796
|
}
|
801
797
|
return r;
|
802
798
|
}
|
803
|
-
function
|
799
|
+
function wr(e) {
|
804
800
|
return e.replace(/^(.*?)-/, "");
|
805
801
|
}
|
806
|
-
var
|
807
|
-
function
|
802
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, gt = /^(0+)$/;
|
803
|
+
function je(e) {
|
808
804
|
var t = {};
|
809
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
805
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bt, function(r, n, i) {
|
810
806
|
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)), "";
|
811
807
|
}), t;
|
812
808
|
}
|
813
|
-
function
|
809
|
+
function xt(e) {
|
814
810
|
switch (e) {
|
815
811
|
case "sign-auto":
|
816
812
|
return {
|
@@ -850,7 +846,7 @@ function Et(e) {
|
|
850
846
|
};
|
851
847
|
}
|
852
848
|
}
|
853
|
-
function
|
849
|
+
function Cr(e) {
|
854
850
|
var t;
|
855
851
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
856
852
|
notation: "engineering"
|
@@ -858,17 +854,17 @@ function Mr(e) {
|
|
858
854
|
notation: "scientific"
|
859
855
|
}, e = e.slice(1)), t) {
|
860
856
|
var r = e.slice(0, 2);
|
861
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
857
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gt.test(e))
|
862
858
|
throw new Error("Malformed concise eng/scientific notation");
|
863
859
|
t.minimumIntegerDigits = e.length;
|
864
860
|
}
|
865
861
|
return t;
|
866
862
|
}
|
867
|
-
function
|
868
|
-
var t = {}, r =
|
863
|
+
function Ve(e) {
|
864
|
+
var t = {}, r = xt(e);
|
869
865
|
return r || t;
|
870
866
|
}
|
871
|
-
function
|
867
|
+
function Mr(e) {
|
872
868
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
873
869
|
var i = n[r];
|
874
870
|
switch (i.stem) {
|
@@ -892,7 +888,7 @@ function Rr(e) {
|
|
892
888
|
continue;
|
893
889
|
case "measure-unit":
|
894
890
|
case "unit":
|
895
|
-
t.style = "unit", t.unit =
|
891
|
+
t.style = "unit", t.unit = wr(i.options[0]);
|
896
892
|
continue;
|
897
893
|
case "compact-short":
|
898
894
|
case "K":
|
@@ -904,12 +900,12 @@ function Rr(e) {
|
|
904
900
|
continue;
|
905
901
|
case "scientific":
|
906
902
|
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
907
|
-
return b(b({}, l),
|
903
|
+
return b(b({}, l), Ve(u));
|
908
904
|
}, {}));
|
909
905
|
continue;
|
910
906
|
case "engineering":
|
911
907
|
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
912
|
-
return b(b({}, l),
|
908
|
+
return b(b({}, l), Ve(u));
|
913
909
|
}, {}));
|
914
910
|
continue;
|
915
911
|
case "notation-simple":
|
@@ -954,7 +950,7 @@ function Rr(e) {
|
|
954
950
|
case "integer-width":
|
955
951
|
if (i.options.length > 1)
|
956
952
|
throw new RangeError("integer-width stems only accept a single optional option");
|
957
|
-
i.options[0].replace(
|
953
|
+
i.options[0].replace(Lr, function(l, u, h, c, f, x) {
|
958
954
|
if (u)
|
959
955
|
t.minimumIntegerDigits = h.length;
|
960
956
|
else {
|
@@ -967,27 +963,27 @@ function Rr(e) {
|
|
967
963
|
});
|
968
964
|
continue;
|
969
965
|
}
|
970
|
-
if (
|
966
|
+
if (gt.test(i.stem)) {
|
971
967
|
t.minimumIntegerDigits = i.stem.length;
|
972
968
|
continue;
|
973
969
|
}
|
974
|
-
if (
|
970
|
+
if (Fe.test(i.stem)) {
|
975
971
|
if (i.options.length > 1)
|
976
972
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
977
|
-
i.stem.replace(
|
973
|
+
i.stem.replace(Fe, function(l, u, h, c, f, x) {
|
978
974
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
979
975
|
});
|
980
976
|
var s = i.options[0];
|
981
|
-
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t),
|
977
|
+
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t), je(s)));
|
982
978
|
continue;
|
983
979
|
}
|
984
|
-
if (
|
985
|
-
t = b(b({}, t),
|
980
|
+
if (bt.test(i.stem)) {
|
981
|
+
t = b(b({}, t), je(i.stem));
|
986
982
|
continue;
|
987
983
|
}
|
988
|
-
var a =
|
984
|
+
var a = xt(i.stem);
|
989
985
|
a && (t = b(b({}, t), a));
|
990
|
-
var o =
|
986
|
+
var o = Cr(i.stem);
|
991
987
|
o && (t = b(b({}, t), o));
|
992
988
|
}
|
993
989
|
return t;
|
@@ -2407,13 +2403,13 @@ var te = {
|
|
2407
2403
|
"h"
|
2408
2404
|
]
|
2409
2405
|
};
|
2410
|
-
function
|
2406
|
+
function Rr(e, t) {
|
2411
2407
|
for (var r = "", n = 0; n < e.length; n++) {
|
2412
2408
|
var i = e.charAt(n);
|
2413
2409
|
if (i === "j") {
|
2414
2410
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2415
2411
|
s++, n++;
|
2416
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
2412
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = $r(t);
|
2417
2413
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
2418
2414
|
r += l;
|
2419
2415
|
for (; a-- > 0; )
|
@@ -2422,7 +2418,7 @@ function $r(e, t) {
|
|
2422
2418
|
}
|
2423
2419
|
return r;
|
2424
2420
|
}
|
2425
|
-
function
|
2421
|
+
function $r(e) {
|
2426
2422
|
var t = e.hourCycle;
|
2427
2423
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2428
2424
|
e.hourCycles && // @ts-ignore
|
@@ -2444,20 +2440,20 @@ function Ur(e) {
|
|
2444
2440
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2445
2441
|
return i[0];
|
2446
2442
|
}
|
2447
|
-
var ge,
|
2443
|
+
var ge, Ur = new RegExp("^".concat(dt.source, "*")), Gr = new RegExp("".concat(dt.source, "*$"));
|
2448
2444
|
function d(e, t) {
|
2449
2445
|
return { start: e, end: t };
|
2450
2446
|
}
|
2451
|
-
var
|
2447
|
+
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) {
|
2452
2448
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2453
2449
|
}, Te = !0;
|
2454
2450
|
try {
|
2455
|
-
var
|
2456
|
-
Te = ((ge =
|
2451
|
+
var Zr = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2452
|
+
Te = ((ge = Zr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2457
2453
|
} catch {
|
2458
2454
|
Te = !1;
|
2459
2455
|
}
|
2460
|
-
var
|
2456
|
+
var ke = Dr ? (
|
2461
2457
|
// Native
|
2462
2458
|
function(t, r, n) {
|
2463
2459
|
return t.startsWith(r, n);
|
@@ -2467,7 +2463,7 @@ var Xe = Fr ? (
|
|
2467
2463
|
function(t, r, n) {
|
2468
2464
|
return t.slice(n, n + r.length) === r;
|
2469
2465
|
}
|
2470
|
-
), Be =
|
2466
|
+
), Be = Fr ? String.fromCodePoint : (
|
2471
2467
|
// IE11
|
2472
2468
|
function() {
|
2473
2469
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2479,9 +2475,9 @@ var Xe = Fr ? (
|
|
2479
2475
|
}
|
2480
2476
|
return n;
|
2481
2477
|
}
|
2482
|
-
),
|
2478
|
+
), Xe = (
|
2483
2479
|
// native
|
2484
|
-
|
2480
|
+
jr ? Object.fromEntries : (
|
2485
2481
|
// Ponyfill
|
2486
2482
|
function(t) {
|
2487
2483
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2491,7 +2487,7 @@ var Xe = Fr ? (
|
|
2491
2487
|
return r;
|
2492
2488
|
}
|
2493
2489
|
)
|
2494
|
-
),
|
2490
|
+
), Et = Vr ? (
|
2495
2491
|
// Native
|
2496
2492
|
function(t, r) {
|
2497
2493
|
return t.codePointAt(r);
|
@@ -2505,7 +2501,7 @@ var Xe = Fr ? (
|
|
2505
2501
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2506
2502
|
}
|
2507
2503
|
}
|
2508
|
-
),
|
2504
|
+
), Qr = kr ? (
|
2509
2505
|
// Native
|
2510
2506
|
function(t) {
|
2511
2507
|
return t.trimStart();
|
@@ -2513,9 +2509,9 @@ var Xe = Fr ? (
|
|
2513
2509
|
) : (
|
2514
2510
|
// Ponyfill
|
2515
2511
|
function(t) {
|
2516
|
-
return t.replace(
|
2512
|
+
return t.replace(Ur, "");
|
2517
2513
|
}
|
2518
|
-
),
|
2514
|
+
), Jr = Xr ? (
|
2519
2515
|
// Native
|
2520
2516
|
function(t) {
|
2521
2517
|
return t.trimEnd();
|
@@ -2523,32 +2519,32 @@ var Xe = Fr ? (
|
|
2523
2519
|
) : (
|
2524
2520
|
// Ponyfill
|
2525
2521
|
function(t) {
|
2526
|
-
return t.replace(
|
2522
|
+
return t.replace(Gr, "");
|
2527
2523
|
}
|
2528
2524
|
);
|
2529
|
-
function
|
2525
|
+
function yt(e, t) {
|
2530
2526
|
return new RegExp(e, t);
|
2531
2527
|
}
|
2532
2528
|
var Se;
|
2533
2529
|
if (Te) {
|
2534
|
-
var
|
2530
|
+
var ze = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2535
2531
|
Se = function(t, r) {
|
2536
2532
|
var n;
|
2537
|
-
|
2538
|
-
var i =
|
2533
|
+
ze.lastIndex = r;
|
2534
|
+
var i = ze.exec(t);
|
2539
2535
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2540
2536
|
};
|
2541
2537
|
} else
|
2542
2538
|
Se = function(t, r) {
|
2543
2539
|
for (var n = []; ; ) {
|
2544
|
-
var i =
|
2545
|
-
if (i === void 0 ||
|
2540
|
+
var i = Et(t, r);
|
2541
|
+
if (i === void 0 || _t(i) || en(i))
|
2546
2542
|
break;
|
2547
2543
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2548
2544
|
}
|
2549
2545
|
return Be.apply(void 0, n);
|
2550
2546
|
};
|
2551
|
-
var
|
2547
|
+
var qr = (
|
2552
2548
|
/** @class */
|
2553
2549
|
function() {
|
2554
2550
|
function e(t, r) {
|
@@ -2630,7 +2626,7 @@ var Yr = (
|
|
2630
2626
|
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
2631
2627
|
}, e.prototype.parseTagName = function() {
|
2632
2628
|
var t = this.offset();
|
2633
|
-
for (this.bump(); !this.isEOF() &&
|
2629
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
2634
2630
|
this.bump();
|
2635
2631
|
return this.message.slice(t, this.offset());
|
2636
2632
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2659,7 +2655,7 @@ var Yr = (
|
|
2659
2655
|
};
|
2660
2656
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2661
2657
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2662
|
-
!
|
2658
|
+
!Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2663
2659
|
}, e.prototype.tryParseQuote = function(t) {
|
2664
2660
|
if (this.isEOF() || this.char() !== 39)
|
2665
2661
|
return null;
|
@@ -2746,7 +2742,7 @@ var Yr = (
|
|
2746
2742
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2747
2743
|
if (c.err)
|
2748
2744
|
return c;
|
2749
|
-
var f =
|
2745
|
+
var f = Jr(c.val);
|
2750
2746
|
if (f.length === 0)
|
2751
2747
|
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
2752
2748
|
var x = d(h, this.clonePosition());
|
@@ -2756,8 +2752,8 @@ var Yr = (
|
|
2756
2752
|
if (g.err)
|
2757
2753
|
return g;
|
2758
2754
|
var y = d(i, this.clonePosition());
|
2759
|
-
if (u &&
|
2760
|
-
var H =
|
2755
|
+
if (u && ke(u?.style, "::", 0)) {
|
2756
|
+
var H = Qr(u.style.slice(2));
|
2761
2757
|
if (o === "number") {
|
2762
2758
|
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
2763
2759
|
return c.err ? c : {
|
@@ -2768,12 +2764,12 @@ var Yr = (
|
|
2768
2764
|
if (H.length === 0)
|
2769
2765
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2770
2766
|
var B = H;
|
2771
|
-
this.locale && (B =
|
2767
|
+
this.locale && (B = Rr(H, this.locale));
|
2772
2768
|
var f = {
|
2773
2769
|
type: F.dateTime,
|
2774
2770
|
pattern: B,
|
2775
2771
|
location: u.styleLocation,
|
2776
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2772
|
+
parsedOptions: this.shouldParseSkeletons ? Or(B) : {}
|
2777
2773
|
}, S = o === "date" ? E.date : E.time;
|
2778
2774
|
return {
|
2779
2775
|
val: { type: S, value: n, location: y, style: f },
|
@@ -2819,7 +2815,7 @@ var Yr = (
|
|
2819
2815
|
val: {
|
2820
2816
|
type: E.select,
|
2821
2817
|
value: n,
|
2822
|
-
options:
|
2818
|
+
options: Xe(M.val),
|
2823
2819
|
location: ee
|
2824
2820
|
},
|
2825
2821
|
err: null
|
@@ -2827,7 +2823,7 @@ var Yr = (
|
|
2827
2823
|
val: {
|
2828
2824
|
type: E.plural,
|
2829
2825
|
value: n,
|
2830
|
-
options:
|
2826
|
+
options: Xe(M.val),
|
2831
2827
|
offset: P,
|
2832
2828
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2833
2829
|
location: ee
|
@@ -2878,7 +2874,7 @@ var Yr = (
|
|
2878
2874
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2879
2875
|
var n = [];
|
2880
2876
|
try {
|
2881
|
-
n =
|
2877
|
+
n = Ir(t);
|
2882
2878
|
} catch {
|
2883
2879
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2884
2880
|
}
|
@@ -2887,7 +2883,7 @@ var Yr = (
|
|
2887
2883
|
type: F.number,
|
2888
2884
|
tokens: n,
|
2889
2885
|
location: r,
|
2890
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2886
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
|
2891
2887
|
},
|
2892
2888
|
err: null
|
2893
2889
|
};
|
@@ -2935,7 +2931,7 @@ var Yr = (
|
|
2935
2931
|
break;
|
2936
2932
|
}
|
2937
2933
|
var l = d(i, this.clonePosition());
|
2938
|
-
return s ? (a *= n,
|
2934
|
+
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2939
2935
|
}, e.prototype.offset = function() {
|
2940
2936
|
return this.position.offset;
|
2941
2937
|
}, e.prototype.isEOF = function() {
|
@@ -2950,7 +2946,7 @@ var Yr = (
|
|
2950
2946
|
var t = this.position.offset;
|
2951
2947
|
if (t >= this.message.length)
|
2952
2948
|
throw Error("out of bound");
|
2953
|
-
var r =
|
2949
|
+
var r = Et(this.message, t);
|
2954
2950
|
if (r === void 0)
|
2955
2951
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2956
2952
|
return r;
|
@@ -2969,7 +2965,7 @@ var Yr = (
|
|
2969
2965
|
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);
|
2970
2966
|
}
|
2971
2967
|
}, e.prototype.bumpIf = function(t) {
|
2972
|
-
if (
|
2968
|
+
if (ke(this.message, t, this.offset())) {
|
2973
2969
|
for (var r = 0; r < t.length; r++)
|
2974
2970
|
this.bump();
|
2975
2971
|
return !0;
|
@@ -2991,7 +2987,7 @@ var Yr = (
|
|
2991
2987
|
break;
|
2992
2988
|
}
|
2993
2989
|
}, e.prototype.bumpSpace = function() {
|
2994
|
-
for (; !this.isEOF() &&
|
2990
|
+
for (; !this.isEOF() && _t(this.char()); )
|
2995
2991
|
this.bump();
|
2996
2992
|
}, e.prototype.peek = function() {
|
2997
2993
|
if (this.isEOF())
|
@@ -3004,29 +3000,29 @@ var Yr = (
|
|
3004
3000
|
function Ae(e) {
|
3005
3001
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3006
3002
|
}
|
3007
|
-
function
|
3003
|
+
function Yr(e) {
|
3008
3004
|
return Ae(e) || e === 47;
|
3009
3005
|
}
|
3010
|
-
function
|
3006
|
+
function Kr(e) {
|
3011
3007
|
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;
|
3012
3008
|
}
|
3013
|
-
function
|
3009
|
+
function _t(e) {
|
3014
3010
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3015
3011
|
}
|
3016
|
-
function
|
3012
|
+
function en(e) {
|
3017
3013
|
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;
|
3018
3014
|
}
|
3019
3015
|
function Pe(e) {
|
3020
3016
|
e.forEach(function(t) {
|
3021
|
-
if (delete t.location,
|
3017
|
+
if (delete t.location, ft(t) || ct(t))
|
3022
3018
|
for (var r in t.options)
|
3023
3019
|
delete t.options[r].location, Pe(t.options[r].value);
|
3024
|
-
else
|
3020
|
+
else ut(t) && mt(t.style) || (ht(t) || lt(t)) && He(t.style) ? delete t.style.location : pt(t) && Pe(t.children);
|
3025
3021
|
});
|
3026
3022
|
}
|
3027
|
-
function
|
3023
|
+
function tn(e, t) {
|
3028
3024
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3029
|
-
var r = new
|
3025
|
+
var r = new qr(e, t).parse();
|
3030
3026
|
if (r.err) {
|
3031
3027
|
var n = SyntaxError(m[r.err.kind]);
|
3032
3028
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3049,7 +3045,7 @@ var le = (
|
|
3049
3045
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3050
3046
|
}, t;
|
3051
3047
|
}(Error)
|
3052
|
-
),
|
3048
|
+
), We = (
|
3053
3049
|
/** @class */
|
3054
3050
|
function(e) {
|
3055
3051
|
he(t, e);
|
@@ -3058,7 +3054,7 @@ var le = (
|
|
3058
3054
|
}
|
3059
3055
|
return t;
|
3060
3056
|
}(le)
|
3061
|
-
),
|
3057
|
+
), rn = (
|
3062
3058
|
/** @class */
|
3063
3059
|
function(e) {
|
3064
3060
|
he(t, e);
|
@@ -3067,7 +3063,7 @@ var le = (
|
|
3067
3063
|
}
|
3068
3064
|
return t;
|
3069
3065
|
}(le)
|
3070
|
-
),
|
3066
|
+
), nn = (
|
3071
3067
|
/** @class */
|
3072
3068
|
function(e) {
|
3073
3069
|
he(t, e);
|
@@ -3080,17 +3076,17 @@ var le = (
|
|
3080
3076
|
(function(e) {
|
3081
3077
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3082
3078
|
})(_ || (_ = {}));
|
3083
|
-
function
|
3079
|
+
function sn(e) {
|
3084
3080
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3085
3081
|
var n = t[t.length - 1];
|
3086
3082
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3087
3083
|
}, []);
|
3088
3084
|
}
|
3089
|
-
function
|
3085
|
+
function on(e) {
|
3090
3086
|
return typeof e == "function";
|
3091
3087
|
}
|
3092
3088
|
function ie(e, t, r, n, i, s, a) {
|
3093
|
-
if (e.length === 1 &&
|
3089
|
+
if (e.length === 1 && De(e[0]))
|
3094
3090
|
return [
|
3095
3091
|
{
|
3096
3092
|
type: _.literal,
|
@@ -3099,14 +3095,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3099
3095
|
];
|
3100
3096
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
3101
3097
|
var h = u[l];
|
3102
|
-
if (
|
3098
|
+
if (De(h)) {
|
3103
3099
|
o.push({
|
3104
3100
|
type: _.literal,
|
3105
3101
|
value: h.value
|
3106
3102
|
});
|
3107
3103
|
continue;
|
3108
3104
|
}
|
3109
|
-
if (
|
3105
|
+
if (Ar(h)) {
|
3110
3106
|
typeof s == "number" && o.push({
|
3111
3107
|
type: _.literal,
|
3112
3108
|
value: r.getNumberFormat(t).format(s)
|
@@ -3115,16 +3111,16 @@ function ie(e, t, r, n, i, s, a) {
|
|
3115
3111
|
}
|
3116
3112
|
var c = h.value;
|
3117
3113
|
if (!(i && c in i))
|
3118
|
-
throw new
|
3114
|
+
throw new nn(c, a);
|
3119
3115
|
var f = i[c];
|
3120
|
-
if (
|
3116
|
+
if (Sr(h)) {
|
3121
3117
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3122
3118
|
type: typeof f == "string" ? _.literal : _.object,
|
3123
3119
|
value: f
|
3124
3120
|
});
|
3125
3121
|
continue;
|
3126
3122
|
}
|
3127
|
-
if (
|
3123
|
+
if (ht(h)) {
|
3128
3124
|
var x = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
|
3129
3125
|
o.push({
|
3130
3126
|
type: _.literal,
|
@@ -3132,7 +3128,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3132
3128
|
});
|
3133
3129
|
continue;
|
3134
3130
|
}
|
3135
|
-
if (
|
3131
|
+
if (lt(h)) {
|
3136
3132
|
var x = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
|
3137
3133
|
o.push({
|
3138
3134
|
type: _.literal,
|
@@ -3140,18 +3136,18 @@ function ie(e, t, r, n, i, s, a) {
|
|
3140
3136
|
});
|
3141
3137
|
continue;
|
3142
3138
|
}
|
3143
|
-
if (
|
3144
|
-
var x = typeof h.style == "string" ? n.number[h.style] :
|
3139
|
+
if (ut(h)) {
|
3140
|
+
var x = typeof h.style == "string" ? n.number[h.style] : mt(h.style) ? h.style.parsedOptions : void 0;
|
3145
3141
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3146
3142
|
type: _.literal,
|
3147
3143
|
value: r.getNumberFormat(t, x).format(f)
|
3148
3144
|
});
|
3149
3145
|
continue;
|
3150
3146
|
}
|
3151
|
-
if (
|
3147
|
+
if (pt(h)) {
|
3152
3148
|
var g = h.children, y = h.value, H = i[y];
|
3153
|
-
if (!
|
3154
|
-
throw new
|
3149
|
+
if (!on(H))
|
3150
|
+
throw new rn(y, "function", a);
|
3155
3151
|
var B = ie(g, t, r, n, i, s), S = H(B.map(function(P) {
|
3156
3152
|
return P.value;
|
3157
3153
|
}));
|
@@ -3162,14 +3158,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3162
3158
|
};
|
3163
3159
|
}));
|
3164
3160
|
}
|
3165
|
-
if (
|
3161
|
+
if (ft(h)) {
|
3166
3162
|
var v = h.options[f] || h.options.other;
|
3167
3163
|
if (!v)
|
3168
|
-
throw new
|
3164
|
+
throw new We(h.value, f, Object.keys(h.options), a);
|
3169
3165
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3170
3166
|
continue;
|
3171
3167
|
}
|
3172
|
-
if (
|
3168
|
+
if (ct(h)) {
|
3173
3169
|
var v = h.options["=".concat(f)];
|
3174
3170
|
if (!v) {
|
3175
3171
|
if (!Intl.PluralRules)
|
@@ -3180,21 +3176,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3180
3176
|
v = h.options[O] || h.options.other;
|
3181
3177
|
}
|
3182
3178
|
if (!v)
|
3183
|
-
throw new
|
3179
|
+
throw new We(h.value, f, Object.keys(h.options), a);
|
3184
3180
|
o.push.apply(o, ie(v.value, t, r, n, i, f - (h.offset || 0)));
|
3185
3181
|
continue;
|
3186
3182
|
}
|
3187
3183
|
}
|
3188
|
-
return
|
3184
|
+
return sn(o);
|
3189
3185
|
}
|
3190
|
-
function
|
3186
|
+
function an(e, t) {
|
3191
3187
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3192
3188
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
3193
3189
|
}, {})) : e;
|
3194
3190
|
}
|
3195
|
-
function
|
3191
|
+
function un(e, t) {
|
3196
3192
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3197
|
-
return r[n] =
|
3193
|
+
return r[n] = an(e[n], t[n]), r;
|
3198
3194
|
}, b({}, e)) : e;
|
3199
3195
|
}
|
3200
3196
|
function xe(e) {
|
@@ -3211,7 +3207,7 @@ function xe(e) {
|
|
3211
3207
|
}
|
3212
3208
|
};
|
3213
3209
|
}
|
3214
|
-
function
|
3210
|
+
function hn(e) {
|
3215
3211
|
return e === void 0 && (e = {
|
3216
3212
|
number: {},
|
3217
3213
|
dateTime: {},
|
@@ -3243,7 +3239,7 @@ function ln(e) {
|
|
3243
3239
|
})
|
3244
3240
|
};
|
3245
3241
|
}
|
3246
|
-
var
|
3242
|
+
var ln = (
|
3247
3243
|
/** @class */
|
3248
3244
|
function() {
|
3249
3245
|
function e(t, r, n, i) {
|
@@ -3275,13 +3271,13 @@ var fn = (
|
|
3275
3271
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3276
3272
|
var a = i || {};
|
3277
3273
|
a.formatters;
|
3278
|
-
var o =
|
3274
|
+
var o = xr(a, ["formatters"]);
|
3279
3275
|
this.ast = e.__parse(t, b(b({}, o), { locale: this.resolvedLocale }));
|
3280
3276
|
} else
|
3281
3277
|
this.ast = t;
|
3282
3278
|
if (!Array.isArray(this.ast))
|
3283
3279
|
throw new TypeError("A message must be provided as a String or AST.");
|
3284
|
-
this.formats =
|
3280
|
+
this.formats = un(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
|
3285
3281
|
}
|
3286
3282
|
return Object.defineProperty(e, "defaultLocale", {
|
3287
3283
|
get: function() {
|
@@ -3294,7 +3290,7 @@ var fn = (
|
|
3294
3290
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3295
3291
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3296
3292
|
}
|
3297
|
-
}, e.__parse =
|
3293
|
+
}, e.__parse = tn, e.formats = {
|
3298
3294
|
number: {
|
3299
3295
|
integer: {
|
3300
3296
|
maximumFractionDigits: 0
|
@@ -3355,7 +3351,7 @@ var fn = (
|
|
3355
3351
|
}, e;
|
3356
3352
|
}()
|
3357
3353
|
);
|
3358
|
-
function
|
3354
|
+
function fn(e, t) {
|
3359
3355
|
if (t == null)
|
3360
3356
|
return;
|
3361
3357
|
if (t in e)
|
@@ -3376,60 +3372,60 @@ function cn(e, t) {
|
|
3376
3372
|
n = void 0;
|
3377
3373
|
return n;
|
3378
3374
|
}
|
3379
|
-
const N = {},
|
3375
|
+
const N = {}, cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), vt = (e, t) => {
|
3380
3376
|
if (t == null)
|
3381
3377
|
return;
|
3382
3378
|
if (t in N && e in N[t])
|
3383
3379
|
return N[t][e];
|
3384
3380
|
const r = fe(t);
|
3385
3381
|
for (let n = 0; n < r.length; n++) {
|
3386
|
-
const i = r[n], s =
|
3382
|
+
const i = r[n], s = mn(i, e);
|
3387
3383
|
if (s)
|
3388
|
-
return
|
3384
|
+
return cn(e, t, s);
|
3389
3385
|
}
|
3390
3386
|
};
|
3391
|
-
let
|
3387
|
+
let Ce;
|
3392
3388
|
const X = ue({});
|
3393
|
-
function
|
3394
|
-
return
|
3389
|
+
function pn(e) {
|
3390
|
+
return Ce[e] || null;
|
3395
3391
|
}
|
3396
|
-
function
|
3397
|
-
return e in
|
3392
|
+
function Ht(e) {
|
3393
|
+
return e in Ce;
|
3398
3394
|
}
|
3399
|
-
function
|
3400
|
-
if (!
|
3395
|
+
function mn(e, t) {
|
3396
|
+
if (!Ht(e))
|
3401
3397
|
return null;
|
3402
|
-
const r =
|
3403
|
-
return
|
3398
|
+
const r = pn(e);
|
3399
|
+
return fn(r, t);
|
3404
3400
|
}
|
3405
|
-
function
|
3401
|
+
function dn(e) {
|
3406
3402
|
if (e == null)
|
3407
3403
|
return;
|
3408
3404
|
const t = fe(e);
|
3409
3405
|
for (let r = 0; r < t.length; r++) {
|
3410
3406
|
const n = t[r];
|
3411
|
-
if (
|
3407
|
+
if (Ht(n))
|
3412
3408
|
return n;
|
3413
3409
|
}
|
3414
3410
|
}
|
3415
|
-
function
|
3416
|
-
delete N[e], X.update((r) => (r[e] =
|
3411
|
+
function Tt(e, ...t) {
|
3412
|
+
delete N[e], X.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
3417
3413
|
}
|
3418
3414
|
k(
|
3419
3415
|
[X],
|
3420
3416
|
([e]) => Object.keys(e)
|
3421
3417
|
);
|
3422
|
-
X.subscribe((e) =>
|
3418
|
+
X.subscribe((e) => Ce = e);
|
3423
3419
|
const se = {};
|
3424
|
-
function
|
3420
|
+
function bn(e, t) {
|
3425
3421
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3426
3422
|
}
|
3427
|
-
function
|
3423
|
+
function Bt(e) {
|
3428
3424
|
return se[e];
|
3429
3425
|
}
|
3430
|
-
function
|
3426
|
+
function gn(e) {
|
3431
3427
|
return fe(e).map((t) => {
|
3432
|
-
const r =
|
3428
|
+
const r = Bt(t);
|
3433
3429
|
return [t, r ? [...r] : []];
|
3434
3430
|
}).filter(([, t]) => t.length > 0);
|
3435
3431
|
}
|
@@ -3437,31 +3433,31 @@ function Oe(e) {
|
|
3437
3433
|
return e == null ? !1 : fe(e).some(
|
3438
3434
|
(t) => {
|
3439
3435
|
var r;
|
3440
|
-
return (r =
|
3436
|
+
return (r = Bt(t)) == null ? void 0 : r.size;
|
3441
3437
|
}
|
3442
3438
|
);
|
3443
3439
|
}
|
3444
|
-
function
|
3440
|
+
function xn(e, t) {
|
3445
3441
|
return Promise.all(
|
3446
|
-
t.map((n) => (
|
3447
|
-
).then((n) =>
|
3442
|
+
t.map((n) => (bn(e, n), n().then((i) => i.default || i)))
|
3443
|
+
).then((n) => Tt(e, ...n));
|
3448
3444
|
}
|
3449
3445
|
const W = {};
|
3450
|
-
function
|
3446
|
+
function St(e) {
|
3451
3447
|
if (!Oe(e))
|
3452
3448
|
return e in W ? W[e] : Promise.resolve();
|
3453
|
-
const t =
|
3449
|
+
const t = gn(e);
|
3454
3450
|
return W[e] = Promise.all(
|
3455
3451
|
t.map(
|
3456
|
-
([r, n]) =>
|
3452
|
+
([r, n]) => xn(r, n)
|
3457
3453
|
)
|
3458
3454
|
).then(() => {
|
3459
3455
|
if (Oe(e))
|
3460
|
-
return
|
3456
|
+
return St(e);
|
3461
3457
|
delete W[e];
|
3462
3458
|
}), W[e];
|
3463
3459
|
}
|
3464
|
-
const
|
3460
|
+
const En = {
|
3465
3461
|
number: {
|
3466
3462
|
scientific: { notation: "scientific" },
|
3467
3463
|
engineering: { notation: "engineering" },
|
@@ -3490,34 +3486,34 @@ const yn = {
|
|
3490
3486
|
timeZoneName: "short"
|
3491
3487
|
}
|
3492
3488
|
}
|
3493
|
-
},
|
3489
|
+
}, yn = {
|
3494
3490
|
fallbackLocale: null,
|
3495
3491
|
loadingDelay: 200,
|
3496
|
-
formats:
|
3492
|
+
formats: En,
|
3497
3493
|
warnOnMissingMessages: !0,
|
3498
3494
|
handleMissingMessage: void 0,
|
3499
3495
|
ignoreTag: !0
|
3500
|
-
},
|
3496
|
+
}, _n = yn;
|
3501
3497
|
function V() {
|
3502
|
-
return
|
3498
|
+
return _n;
|
3503
3499
|
}
|
3504
3500
|
const Ee = ue(!1);
|
3505
|
-
var
|
3506
|
-
for (var r in t)
|
3507
|
-
|
3508
|
-
if (
|
3509
|
-
for (var r of
|
3510
|
-
|
3501
|
+
var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
3502
|
+
for (var r in t || (t = {}))
|
3503
|
+
Bn.call(t, r) && Qe(e, r, t[r]);
|
3504
|
+
if (Ze)
|
3505
|
+
for (var r of Ze(t))
|
3506
|
+
Sn.call(t, r) && Qe(e, r, t[r]);
|
3511
3507
|
return e;
|
3512
|
-
},
|
3508
|
+
}, Pn = (e, t) => Hn(e, Tn(t));
|
3513
3509
|
let Ne;
|
3514
3510
|
const oe = ue(null);
|
3515
|
-
function
|
3511
|
+
function Je(e) {
|
3516
3512
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3517
3513
|
}
|
3518
3514
|
function fe(e, t = V().fallbackLocale) {
|
3519
|
-
const r =
|
3520
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3515
|
+
const r = Je(e);
|
3516
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
|
3521
3517
|
}
|
3522
3518
|
function C() {
|
3523
3519
|
return Ne ?? void 0;
|
@@ -3525,22 +3521,22 @@ function C() {
|
|
3525
3521
|
oe.subscribe((e) => {
|
3526
3522
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3527
3523
|
});
|
3528
|
-
const
|
3529
|
-
if (e &&
|
3524
|
+
const On = (e) => {
|
3525
|
+
if (e && dn(e) && Oe(e)) {
|
3530
3526
|
const { loadingDelay: t } = V();
|
3531
3527
|
let r;
|
3532
3528
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3533
3529
|
() => Ee.set(!0),
|
3534
3530
|
t
|
3535
|
-
) : Ee.set(!0),
|
3531
|
+
) : Ee.set(!0), St(e).then(() => {
|
3536
3532
|
oe.set(e);
|
3537
3533
|
}).finally(() => {
|
3538
3534
|
clearTimeout(r), Ee.set(!1);
|
3539
3535
|
});
|
3540
3536
|
}
|
3541
3537
|
return oe.set(e);
|
3542
|
-
}, I =
|
3543
|
-
set:
|
3538
|
+
}, I = Pn(An({}, oe), {
|
3539
|
+
set: On
|
3544
3540
|
}), ce = (e) => {
|
3545
3541
|
const t = /* @__PURE__ */ Object.create(null);
|
3546
3542
|
return (n) => {
|
@@ -3548,20 +3544,20 @@ const Nn = (e) => {
|
|
3548
3544
|
return i in t ? t[i] : t[i] = e(n);
|
3549
3545
|
};
|
3550
3546
|
};
|
3551
|
-
var
|
3547
|
+
var Nn = Object.defineProperty, ae = Object.getOwnPropertySymbols, At = 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) => {
|
3552
3548
|
for (var r in t || (t = {}))
|
3553
|
-
|
3549
|
+
At.call(t, r) && qe(e, r, t[r]);
|
3554
3550
|
if (ae)
|
3555
3551
|
for (var r of ae(t))
|
3556
|
-
|
3552
|
+
Pt.call(t, r) && qe(e, r, t[r]);
|
3557
3553
|
return e;
|
3558
3554
|
}, z = (e, t) => {
|
3559
3555
|
var r = {};
|
3560
3556
|
for (var n in e)
|
3561
|
-
|
3557
|
+
At.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3562
3558
|
if (e != null && ae)
|
3563
3559
|
for (var n of ae(e))
|
3564
|
-
t.indexOf(n) < 0 &&
|
3560
|
+
t.indexOf(n) < 0 && Pt.call(e, n) && (r[n] = e[n]);
|
3565
3561
|
return r;
|
3566
3562
|
};
|
3567
3563
|
const Y = (e, t) => {
|
@@ -3569,21 +3565,21 @@ const Y = (e, t) => {
|
|
3569
3565
|
if (e in r && t in r[e])
|
3570
3566
|
return r[e][t];
|
3571
3567
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3572
|
-
},
|
3568
|
+
}, In = ce(
|
3573
3569
|
(e) => {
|
3574
3570
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3575
3571
|
if (r == null)
|
3576
3572
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3577
3573
|
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
3578
3574
|
}
|
3579
|
-
),
|
3575
|
+
), wn = ce(
|
3580
3576
|
(e) => {
|
3581
3577
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3582
3578
|
if (r == null)
|
3583
3579
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3584
3580
|
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
3585
3581
|
}
|
3586
|
-
),
|
3582
|
+
), Ln = ce(
|
3587
3583
|
(e) => {
|
3588
3584
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3589
3585
|
if (r == null)
|
@@ -3592,33 +3588,33 @@ const Y = (e, t) => {
|
|
3592
3588
|
);
|
3593
3589
|
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
3594
3590
|
}
|
3595
|
-
),
|
3591
|
+
), Cn = (e = {}) => {
|
3596
3592
|
var t = e, {
|
3597
3593
|
locale: r = C()
|
3598
3594
|
} = t, n = z(t, [
|
3599
3595
|
"locale"
|
3600
3596
|
]);
|
3601
|
-
return
|
3602
|
-
},
|
3597
|
+
return In(Me({ locale: r }, n));
|
3598
|
+
}, Mn = (e = {}) => {
|
3603
3599
|
var t = e, {
|
3604
3600
|
locale: r = C()
|
3605
3601
|
} = t, n = z(t, [
|
3606
3602
|
"locale"
|
3607
3603
|
]);
|
3608
|
-
return
|
3609
|
-
},
|
3604
|
+
return wn(Me({ locale: r }, n));
|
3605
|
+
}, Rn = (e = {}) => {
|
3610
3606
|
var t = e, {
|
3611
3607
|
locale: r = C()
|
3612
3608
|
} = t, n = z(t, [
|
3613
3609
|
"locale"
|
3614
3610
|
]);
|
3615
|
-
return
|
3616
|
-
},
|
3611
|
+
return Ln(Me({ locale: r }, n));
|
3612
|
+
}, $n = ce(
|
3617
3613
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3618
|
-
(e, t = C()) => new
|
3614
|
+
(e, t = C()) => new ln(e, t, V().formats, {
|
3619
3615
|
ignoreTag: V().ignoreTag
|
3620
3616
|
})
|
3621
|
-
),
|
3617
|
+
), Un = (e, t = {}) => {
|
3622
3618
|
var r, n, i, s;
|
3623
3619
|
let a = t;
|
3624
3620
|
typeof e == "object" && (a = e, e = a.id);
|
@@ -3631,7 +3627,7 @@ const Y = (e, t) => {
|
|
3631
3627
|
throw new Error(
|
3632
3628
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3633
3629
|
);
|
3634
|
-
let h =
|
3630
|
+
let h = vt(e, l);
|
3635
3631
|
if (!h)
|
3636
3632
|
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
3637
3633
|
else if (typeof h != "string")
|
@@ -3642,7 +3638,7 @@ const Y = (e, t) => {
|
|
3642
3638
|
return h;
|
3643
3639
|
let c = h;
|
3644
3640
|
try {
|
3645
|
-
c =
|
3641
|
+
c = $n(h, l).format(o);
|
3646
3642
|
} catch (f) {
|
3647
3643
|
f instanceof Error && console.warn(
|
3648
3644
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3650,23 +3646,23 @@ const Y = (e, t) => {
|
|
3650
3646
|
);
|
3651
3647
|
}
|
3652
3648
|
return c;
|
3653
|
-
},
|
3649
|
+
}, 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);
|
3650
|
+
k([I], () => Gn);
|
3654
3651
|
k([I], () => Dn);
|
3655
3652
|
k([I], () => Fn);
|
3656
|
-
k([I], () => jn);
|
3657
|
-
|
3658
|
-
function Xn({ withLocale: e, translations: t }) {
|
3653
|
+
k([I, X], () => jn);
|
3654
|
+
function kn({ withLocale: e, translations: t }) {
|
3659
3655
|
I.subscribe((r) => {
|
3660
3656
|
r == null && (X.set(t), I.set(e));
|
3661
3657
|
});
|
3662
3658
|
}
|
3663
|
-
function
|
3664
|
-
|
3659
|
+
function Ye(e, t) {
|
3660
|
+
Tt(e, t);
|
3665
3661
|
}
|
3666
|
-
function
|
3662
|
+
function Xn(e) {
|
3667
3663
|
I.set(e);
|
3668
3664
|
}
|
3669
|
-
const
|
3665
|
+
const Ke = {
|
3670
3666
|
en: {
|
3671
3667
|
bets: "bets"
|
3672
3668
|
},
|
@@ -3692,25 +3688,25 @@ const et = {
|
|
3692
3688
|
bets: "bets"
|
3693
3689
|
}
|
3694
3690
|
};
|
3695
|
-
function
|
3696
|
-
|
3691
|
+
function zn(e) {
|
3692
|
+
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}');
|
3697
3693
|
}
|
3698
|
-
function
|
3694
|
+
function Wn(e) {
|
3699
3695
|
let t, r, n, i, s;
|
3700
3696
|
return {
|
3701
3697
|
c() {
|
3702
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3698
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Ut(
|
3703
3699
|
/*progressText*/
|
3704
3700
|
e[3]
|
3705
3701
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3706
3702
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3707
3703
|
},
|
3708
3704
|
m(a, o) {
|
3709
|
-
|
3705
|
+
nt(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3710
3706
|
},
|
3711
3707
|
p(a, [o]) {
|
3712
3708
|
o & /*progressText*/
|
3713
|
-
8 &&
|
3709
|
+
8 && Dt(
|
3714
3710
|
i,
|
3715
3711
|
/*progressText*/
|
3716
3712
|
a[3]
|
@@ -3725,25 +3721,25 @@ function Zn(e) {
|
|
3725
3721
|
}
|
3726
3722
|
};
|
3727
3723
|
}
|
3728
|
-
function
|
3724
|
+
function Zn(e, t, r) {
|
3729
3725
|
let n;
|
3730
|
-
|
3726
|
+
Ct(e, Vn, (p) => r(20, n = p));
|
3731
3727
|
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: u = "" } = t, { progressfractiondigit: h = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, S, v = "0px", O = "active";
|
3732
|
-
|
3728
|
+
kn({ withLocale: "en", translations: {} });
|
3733
3729
|
const P = () => {
|
3734
3730
|
fetch(u).then((w) => w.json()).then((w) => {
|
3735
|
-
Object.keys(w).forEach((
|
3736
|
-
|
3731
|
+
Object.keys(w).forEach((Re) => {
|
3732
|
+
Ye(Re, w[Re]);
|
3737
3733
|
});
|
3738
3734
|
}).catch((w) => {
|
3739
3735
|
console.log(w);
|
3740
3736
|
});
|
3741
3737
|
};
|
3742
|
-
Object.keys(
|
3743
|
-
|
3738
|
+
Object.keys(Ke).forEach((p) => {
|
3739
|
+
Ye(p, Ke[p]);
|
3744
3740
|
});
|
3745
3741
|
const M = () => {
|
3746
|
-
|
3742
|
+
Xn(o);
|
3747
3743
|
}, ee = () => {
|
3748
3744
|
let p = (i / s * 100).toFixed(h);
|
3749
3745
|
setTimeout(
|
@@ -3752,20 +3748,20 @@ function Qn(e, t, r) {
|
|
3752
3748
|
},
|
3753
3749
|
y ? 573 : 0
|
3754
3750
|
), p == 0 || p == 100 ? (B = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, S = `${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", S), g.style.setProperty("--stepBarBorderRadius", v);
|
3755
|
-
},
|
3751
|
+
}, Ot = () => {
|
3756
3752
|
r(4, O = l == "active" ? "" : "inactive");
|
3757
3753
|
};
|
3758
|
-
function
|
3754
|
+
function Nt(p) {
|
3759
3755
|
J[p ? "unshift" : "push"](() => {
|
3760
3756
|
x = p, r(1, x);
|
3761
3757
|
});
|
3762
3758
|
}
|
3763
|
-
function
|
3759
|
+
function It(p) {
|
3764
3760
|
J[p ? "unshift" : "push"](() => {
|
3765
3761
|
g = p, r(2, g);
|
3766
3762
|
});
|
3767
3763
|
}
|
3768
|
-
function
|
3764
|
+
function wt(p) {
|
3769
3765
|
J[p ? "unshift" : "push"](() => {
|
3770
3766
|
f = p, r(0, f);
|
3771
3767
|
});
|
@@ -3778,7 +3774,7 @@ function Qn(e, t, r) {
|
|
3778
3774
|
ee();
|
3779
3775
|
}), e.$$.dirty & /*lang*/
|
3780
3776
|
256 && o && M(), e.$$.dirty & /*status*/
|
3781
|
-
512 && l &&
|
3777
|
+
512 && l && Ot(), e.$$.dirty & /*translationurl*/
|
3782
3778
|
1024 && u && P();
|
3783
3779
|
}, [
|
3784
3780
|
f,
|
@@ -3794,19 +3790,19 @@ function Qn(e, t, r) {
|
|
3794
3790
|
u,
|
3795
3791
|
h,
|
3796
3792
|
c,
|
3793
|
+
Nt,
|
3797
3794
|
It,
|
3798
|
-
wt
|
3799
|
-
Lt
|
3795
|
+
wt
|
3800
3796
|
];
|
3801
3797
|
}
|
3802
|
-
class
|
3798
|
+
class Qn extends Kt {
|
3803
3799
|
constructor(t) {
|
3804
|
-
super(),
|
3800
|
+
super(), qt(
|
3805
3801
|
this,
|
3806
3802
|
t,
|
3807
|
-
Qn,
|
3808
3803
|
Zn,
|
3809
|
-
|
3804
|
+
Wn,
|
3805
|
+
tt,
|
3810
3806
|
{
|
3811
3807
|
currentstep: 5,
|
3812
3808
|
total: 6,
|
@@ -3817,7 +3813,7 @@ class Jn extends er {
|
|
3817
3813
|
progressfractiondigit: 11,
|
3818
3814
|
triggerreset: 12
|
3819
3815
|
},
|
3820
|
-
|
3816
|
+
zn
|
3821
3817
|
);
|
3822
3818
|
}
|
3823
3819
|
get currentstep() {
|
@@ -3869,7 +3865,7 @@ class Jn extends er {
|
|
3869
3865
|
this.$$set({ triggerreset: t }), A();
|
3870
3866
|
}
|
3871
3867
|
}
|
3872
|
-
|
3868
|
+
Yt(Qn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3873
3869
|
export {
|
3874
|
-
|
3870
|
+
Qn as G
|
3875
3871
|
};
|