@everymatrix/general-icon-progress-bar 1.50.0 → 1.51.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{GeneralIconProgressBar-CRk8RIfA.js → GeneralIconProgressBar-DGUCh2l_.js} +297 -287
- package/components/GeneralIconProgressBar-Xj3s_q-M.cjs +3 -0
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-CfXgfCVm.cjs +0 -3
package/components/{GeneralIconProgressBar-CRk8RIfA.js → GeneralIconProgressBar-DGUCh2l_.js}
RENAMED
@@ -12,36 +12,36 @@ var me = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writ
|
|
12
12
|
}, Ve = (e, t) => jt(e, Vt(t));
|
13
13
|
var T = (e, t, r) => me(e, typeof t != "symbol" ? t + "" : t, r);
|
14
14
|
var ke = (e, t, r) => new Promise((n, i) => {
|
15
|
-
var s = (
|
15
|
+
var s = (u) => {
|
16
16
|
try {
|
17
|
-
a(r.next(
|
18
|
-
} catch (
|
19
|
-
i(
|
17
|
+
a(r.next(u));
|
18
|
+
} catch (h) {
|
19
|
+
i(h);
|
20
20
|
}
|
21
|
-
}, o = (
|
21
|
+
}, o = (u) => {
|
22
22
|
try {
|
23
|
-
a(r.throw(
|
24
|
-
} catch (
|
25
|
-
i(
|
23
|
+
a(r.throw(u));
|
24
|
+
} catch (h) {
|
25
|
+
i(h);
|
26
26
|
}
|
27
|
-
}, a = (
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function ht(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
35
|
function Xe() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function ee(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(ht);
|
40
40
|
}
|
41
41
|
function Le(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function ut(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
47
|
function zt(e) {
|
@@ -174,21 +174,21 @@ function or(e, t) {
|
|
174
174
|
function ar(e, t, r) {
|
175
175
|
const { fragment: n, after_update: i } = e.$$;
|
176
176
|
n && n.m(t, r), He(() => {
|
177
|
-
const s = e.$$.on_mount.map(
|
177
|
+
const s = e.$$.on_mount.map(ht).filter(Le);
|
178
178
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
179
179
|
}), i.forEach(He);
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function hr(e, t) {
|
182
182
|
const r = e.$$;
|
183
183
|
r.fragment !== null && (ir(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function ur(e, t) {
|
186
186
|
e.$$.dirty[0] === -1 && (G.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
187
187
|
}
|
188
188
|
function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
189
|
-
const
|
189
|
+
const u = Me;
|
190
190
|
J(e);
|
191
|
-
const
|
191
|
+
const h = e.$$ = {
|
192
192
|
fragment: null,
|
193
193
|
ctx: [],
|
194
194
|
// state
|
@@ -202,27 +202,27 @@ function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
202
202
|
on_disconnect: [],
|
203
203
|
before_update: [],
|
204
204
|
after_update: [],
|
205
|
-
context: new Map(t.context || (
|
205
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
206
206
|
// everything else
|
207
207
|
callbacks: Xe(),
|
208
208
|
dirty: a,
|
209
209
|
skip_bound: !1,
|
210
|
-
root: t.target ||
|
210
|
+
root: t.target || u.$$.root
|
211
211
|
};
|
212
|
-
o && o(
|
212
|
+
o && o(h.root);
|
213
213
|
let l = !1;
|
214
|
-
if (
|
214
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
215
215
|
const g = x.length ? x[0] : f;
|
216
|
-
return
|
217
|
-
}) : [],
|
216
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && ur(e, c)), f;
|
217
|
+
}) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
218
218
|
if (t.hydrate) {
|
219
219
|
const c = Yt(t.target);
|
220
|
-
|
220
|
+
h.fragment && h.fragment.l(c), c.forEach(Ce);
|
221
221
|
} else
|
222
|
-
|
222
|
+
h.fragment && h.fragment.c();
|
223
223
|
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), P();
|
224
224
|
}
|
225
|
-
J(
|
225
|
+
J(u);
|
226
226
|
}
|
227
227
|
let ct;
|
228
228
|
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
@@ -275,11 +275,11 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
275
275
|
* @param {HTMLElement} target
|
276
276
|
* @param {HTMLElement} [anchor]
|
277
277
|
*/
|
278
|
-
m: function(
|
279
|
-
ft(
|
278
|
+
m: function(h, l) {
|
279
|
+
ft(h, o, l);
|
280
280
|
},
|
281
|
-
d: function(
|
282
|
-
|
281
|
+
d: function(h) {
|
282
|
+
h && Ce(o);
|
283
283
|
}
|
284
284
|
};
|
285
285
|
};
|
@@ -391,16 +391,16 @@ function fr(e, t, r, n, i, s) {
|
|
391
391
|
get() {
|
392
392
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
393
393
|
},
|
394
|
-
set(
|
395
|
-
var
|
396
|
-
|
394
|
+
set(u) {
|
395
|
+
var h;
|
396
|
+
u = ie(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
397
397
|
}
|
398
398
|
});
|
399
399
|
}), n.forEach((a) => {
|
400
400
|
Object.defineProperty(o.prototype, a, {
|
401
401
|
get() {
|
402
|
-
var
|
403
|
-
return (
|
402
|
+
var u;
|
403
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
404
404
|
}
|
405
405
|
});
|
406
406
|
}), e.element = /** @type {any} */
|
@@ -427,7 +427,7 @@ class cr {
|
|
427
427
|
}
|
428
428
|
/** @returns {void} */
|
429
429
|
$destroy() {
|
430
|
-
|
430
|
+
hr(this, 1), this.$destroy = B;
|
431
431
|
}
|
432
432
|
/**
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
@@ -457,20 +457,20 @@ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @
|
|
457
457
|
const U = [];
|
458
458
|
function mr(e, t) {
|
459
459
|
return {
|
460
|
-
subscribe:
|
460
|
+
subscribe: ue(e, t).subscribe
|
461
461
|
};
|
462
462
|
}
|
463
|
-
function
|
463
|
+
function ue(e, t = B) {
|
464
464
|
let r;
|
465
465
|
const n = /* @__PURE__ */ new Set();
|
466
466
|
function i(a) {
|
467
|
-
if (
|
468
|
-
const
|
469
|
-
for (const
|
470
|
-
|
471
|
-
if (
|
472
|
-
for (let
|
473
|
-
U[
|
467
|
+
if (ut(e, a) && (e = a, r)) {
|
468
|
+
const u = !U.length;
|
469
|
+
for (const h of n)
|
470
|
+
h[1](), U.push(h, e);
|
471
|
+
if (u) {
|
472
|
+
for (let h = 0; h < U.length; h += 2)
|
473
|
+
U[h][0](U[h + 1]);
|
474
474
|
U.length = 0;
|
475
475
|
}
|
476
476
|
}
|
@@ -478,10 +478,10 @@ function he(e, t = B) {
|
|
478
478
|
function s(a) {
|
479
479
|
i(a(e));
|
480
480
|
}
|
481
|
-
function o(a,
|
482
|
-
const
|
483
|
-
return n.add(
|
484
|
-
n.delete(
|
481
|
+
function o(a, u = B) {
|
482
|
+
const h = [a, u];
|
483
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
484
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
485
485
|
};
|
486
486
|
}
|
487
487
|
return { set: i, update: s, subscribe: o };
|
@@ -492,28 +492,28 @@ function X(e, t, r) {
|
|
492
492
|
throw new Error("derived() expects stores as input, got a falsy value");
|
493
493
|
const s = t.length < 2;
|
494
494
|
return mr(r, (o, a) => {
|
495
|
-
let
|
496
|
-
const
|
495
|
+
let u = !1;
|
496
|
+
const h = [];
|
497
497
|
let l = 0, c = B;
|
498
498
|
const f = () => {
|
499
499
|
if (l)
|
500
500
|
return;
|
501
501
|
c();
|
502
|
-
const g = t(n ?
|
502
|
+
const g = t(n ? h[0] : h, o, a);
|
503
503
|
s ? o(g) : c = Le(g) ? g : B;
|
504
504
|
}, x = i.map(
|
505
505
|
(g, y) => lt(
|
506
506
|
g,
|
507
507
|
(H) => {
|
508
|
-
|
508
|
+
h[y] = H, l &= ~(1 << y), u && f();
|
509
509
|
},
|
510
510
|
() => {
|
511
511
|
l |= 1 << y;
|
512
512
|
}
|
513
513
|
)
|
514
514
|
);
|
515
|
-
return
|
516
|
-
ee(x), c(),
|
515
|
+
return u = !0, f(), function() {
|
516
|
+
ee(x), c(), u = !1;
|
517
517
|
};
|
518
518
|
});
|
519
519
|
}
|
@@ -629,7 +629,57 @@ function de(e, t, r) {
|
|
629
629
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
630
630
|
return e.concat(s || Array.prototype.slice.call(t));
|
631
631
|
}
|
632
|
-
|
632
|
+
function ge(e, t) {
|
633
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Lr;
|
634
|
+
return i(e, {
|
635
|
+
cache: r,
|
636
|
+
serializer: n
|
637
|
+
});
|
638
|
+
}
|
639
|
+
function wr(e) {
|
640
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
641
|
+
}
|
642
|
+
function mt(e, t, r, n) {
|
643
|
+
var i = wr(n) ? n : r(n), s = t.get(i);
|
644
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
645
|
+
}
|
646
|
+
function bt(e, t, r) {
|
647
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
648
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
649
|
+
}
|
650
|
+
function Re(e, t, r, n, i) {
|
651
|
+
return r.bind(t, e, n, i);
|
652
|
+
}
|
653
|
+
function Lr(e, t) {
|
654
|
+
var r = e.length === 1 ? mt : bt;
|
655
|
+
return Re(e, this, r, t.cache.create(), t.serializer);
|
656
|
+
}
|
657
|
+
function Cr(e, t) {
|
658
|
+
return Re(e, this, bt, t.cache.create(), t.serializer);
|
659
|
+
}
|
660
|
+
function Mr(e, t) {
|
661
|
+
return Re(e, this, mt, t.cache.create(), t.serializer);
|
662
|
+
}
|
663
|
+
var Rr = function() {
|
664
|
+
return JSON.stringify(arguments);
|
665
|
+
};
|
666
|
+
function $e() {
|
667
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
668
|
+
}
|
669
|
+
$e.prototype.get = function(e) {
|
670
|
+
return this.cache[e];
|
671
|
+
};
|
672
|
+
$e.prototype.set = function(e, t) {
|
673
|
+
this.cache[e] = t;
|
674
|
+
};
|
675
|
+
var $r = {
|
676
|
+
create: function() {
|
677
|
+
return new $e();
|
678
|
+
}
|
679
|
+
}, xe = {
|
680
|
+
variadic: Cr,
|
681
|
+
monadic: Mr
|
682
|
+
}, m;
|
633
683
|
(function(e) {
|
634
684
|
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";
|
635
685
|
})(m || (m = {}));
|
@@ -644,40 +694,40 @@ var j;
|
|
644
694
|
function Ze(e) {
|
645
695
|
return e.type === E.literal;
|
646
696
|
}
|
647
|
-
function
|
697
|
+
function Ur(e) {
|
648
698
|
return e.type === E.argument;
|
649
699
|
}
|
650
|
-
function
|
700
|
+
function dt(e) {
|
651
701
|
return e.type === E.number;
|
652
702
|
}
|
653
|
-
function
|
703
|
+
function gt(e) {
|
654
704
|
return e.type === E.date;
|
655
705
|
}
|
656
|
-
function
|
706
|
+
function xt(e) {
|
657
707
|
return e.type === E.time;
|
658
708
|
}
|
659
|
-
function
|
709
|
+
function Et(e) {
|
660
710
|
return e.type === E.select;
|
661
711
|
}
|
662
|
-
function
|
712
|
+
function yt(e) {
|
663
713
|
return e.type === E.plural;
|
664
714
|
}
|
665
|
-
function
|
715
|
+
function Gr(e) {
|
666
716
|
return e.type === E.pound;
|
667
717
|
}
|
668
|
-
function
|
718
|
+
function _t(e) {
|
669
719
|
return e.type === E.tag;
|
670
720
|
}
|
671
|
-
function
|
721
|
+
function vt(e) {
|
672
722
|
return !!(e && typeof e == "object" && e.type === j.number);
|
673
723
|
}
|
674
724
|
function Be(e) {
|
675
725
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
676
726
|
}
|
677
|
-
var
|
678
|
-
function
|
727
|
+
var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
728
|
+
function Fr(e) {
|
679
729
|
var t = {};
|
680
|
-
return e.replace(
|
730
|
+
return e.replace(Dr, function(r) {
|
681
731
|
var n = r.length;
|
682
732
|
switch (r[0]) {
|
683
733
|
case "G":
|
@@ -766,36 +816,36 @@ function Mr(e) {
|
|
766
816
|
return "";
|
767
817
|
}), t;
|
768
818
|
}
|
769
|
-
var
|
770
|
-
function
|
819
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
820
|
+
function Vr(e) {
|
771
821
|
if (e.length === 0)
|
772
822
|
throw new Error("Number skeleton cannot be empty");
|
773
|
-
for (var t = e.split(
|
823
|
+
for (var t = e.split(jr).filter(function(f) {
|
774
824
|
return f.length > 0;
|
775
825
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
776
826
|
var s = i[n], o = s.split("/");
|
777
827
|
if (o.length === 0)
|
778
828
|
throw new Error("Invalid number skeleton");
|
779
|
-
for (var a = o[0],
|
780
|
-
var c = l[
|
829
|
+
for (var a = o[0], u = o.slice(1), h = 0, l = u; h < l.length; h++) {
|
830
|
+
var c = l[h];
|
781
831
|
if (c.length === 0)
|
782
832
|
throw new Error("Invalid number skeleton");
|
783
833
|
}
|
784
|
-
r.push({ stem: a, options:
|
834
|
+
r.push({ stem: a, options: u });
|
785
835
|
}
|
786
836
|
return r;
|
787
837
|
}
|
788
|
-
function
|
838
|
+
function kr(e) {
|
789
839
|
return e.replace(/^(.*?)-/, "");
|
790
840
|
}
|
791
|
-
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
841
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
|
792
842
|
function Je(e) {
|
793
843
|
var t = {};
|
794
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
844
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tt, function(r, n, i) {
|
795
845
|
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)), "";
|
796
846
|
}), t;
|
797
847
|
}
|
798
|
-
function
|
848
|
+
function St(e) {
|
799
849
|
switch (e) {
|
800
850
|
case "sign-auto":
|
801
851
|
return {
|
@@ -835,7 +885,7 @@ function Tt(e) {
|
|
835
885
|
};
|
836
886
|
}
|
837
887
|
}
|
838
|
-
function
|
888
|
+
function zr(e) {
|
839
889
|
var t;
|
840
890
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
841
891
|
notation: "engineering"
|
@@ -843,17 +893,17 @@ function Dr(e) {
|
|
843
893
|
notation: "scientific"
|
844
894
|
}, e = e.slice(1)), t) {
|
845
895
|
var r = e.slice(0, 2);
|
846
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
896
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Bt.test(e))
|
847
897
|
throw new Error("Malformed concise eng/scientific notation");
|
848
898
|
t.minimumIntegerDigits = e.length;
|
849
899
|
}
|
850
900
|
return t;
|
851
901
|
}
|
852
902
|
function qe(e) {
|
853
|
-
var t = {}, r =
|
903
|
+
var t = {}, r = St(e);
|
854
904
|
return r || t;
|
855
905
|
}
|
856
|
-
function
|
906
|
+
function Wr(e) {
|
857
907
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
858
908
|
var i = n[r];
|
859
909
|
switch (i.stem) {
|
@@ -877,7 +927,7 @@ function Fr(e) {
|
|
877
927
|
continue;
|
878
928
|
case "measure-unit":
|
879
929
|
case "unit":
|
880
|
-
t.style = "unit", t.unit =
|
930
|
+
t.style = "unit", t.unit = kr(i.options[0]);
|
881
931
|
continue;
|
882
932
|
case "compact-short":
|
883
933
|
case "K":
|
@@ -888,13 +938,13 @@ function Fr(e) {
|
|
888
938
|
t.notation = "compact", t.compactDisplay = "long";
|
889
939
|
continue;
|
890
940
|
case "scientific":
|
891
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(
|
892
|
-
return d(d({},
|
941
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
942
|
+
return d(d({}, u), qe(h));
|
893
943
|
}, {}));
|
894
944
|
continue;
|
895
945
|
case "engineering":
|
896
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(
|
897
|
-
return d(d({},
|
946
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
947
|
+
return d(d({}, u), qe(h));
|
898
948
|
}, {}));
|
899
949
|
continue;
|
900
950
|
case "notation-simple":
|
@@ -939,8 +989,8 @@ function Fr(e) {
|
|
939
989
|
case "integer-width":
|
940
990
|
if (i.options.length > 1)
|
941
991
|
throw new RangeError("integer-width stems only accept a single optional option");
|
942
|
-
i.options[0].replace(
|
943
|
-
if (
|
992
|
+
i.options[0].replace(Xr, function(u, h, l, c, f, x) {
|
993
|
+
if (h)
|
944
994
|
t.minimumIntegerDigits = l.length;
|
945
995
|
else {
|
946
996
|
if (c && f)
|
@@ -952,27 +1002,27 @@ function Fr(e) {
|
|
952
1002
|
});
|
953
1003
|
continue;
|
954
1004
|
}
|
955
|
-
if (
|
1005
|
+
if (Bt.test(i.stem)) {
|
956
1006
|
t.minimumIntegerDigits = i.stem.length;
|
957
1007
|
continue;
|
958
1008
|
}
|
959
1009
|
if (Qe.test(i.stem)) {
|
960
1010
|
if (i.options.length > 1)
|
961
1011
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
962
|
-
i.stem.replace(Qe, function(
|
963
|
-
return l === "*" ? t.minimumFractionDigits =
|
1012
|
+
i.stem.replace(Qe, function(u, h, l, c, f, x) {
|
1013
|
+
return l === "*" ? 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), "";
|
964
1014
|
});
|
965
1015
|
var s = i.options[0];
|
966
1016
|
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Je(s)));
|
967
1017
|
continue;
|
968
1018
|
}
|
969
|
-
if (
|
1019
|
+
if (Tt.test(i.stem)) {
|
970
1020
|
t = d(d({}, t), Je(i.stem));
|
971
1021
|
continue;
|
972
1022
|
}
|
973
|
-
var o =
|
1023
|
+
var o = St(i.stem);
|
974
1024
|
o && (t = d(d({}, t), o));
|
975
|
-
var a =
|
1025
|
+
var a = zr(i.stem);
|
976
1026
|
a && (t = d(d({}, t), a));
|
977
1027
|
}
|
978
1028
|
return t;
|
@@ -982,6 +1032,12 @@ var re = {
|
|
982
1032
|
"H",
|
983
1033
|
"h"
|
984
1034
|
],
|
1035
|
+
419: [
|
1036
|
+
"h",
|
1037
|
+
"H",
|
1038
|
+
"hB",
|
1039
|
+
"hb"
|
1040
|
+
],
|
985
1041
|
AC: [
|
986
1042
|
"H",
|
987
1043
|
"h",
|
@@ -1030,8 +1086,8 @@ var re = {
|
|
1030
1086
|
"hB"
|
1031
1087
|
],
|
1032
1088
|
AR: [
|
1033
|
-
"H",
|
1034
1089
|
"h",
|
1090
|
+
"H",
|
1035
1091
|
"hB",
|
1036
1092
|
"hb"
|
1037
1093
|
],
|
@@ -1121,9 +1177,9 @@ var re = {
|
|
1121
1177
|
"H"
|
1122
1178
|
],
|
1123
1179
|
BO: [
|
1180
|
+
"h",
|
1124
1181
|
"H",
|
1125
1182
|
"hB",
|
1126
|
-
"h",
|
1127
1183
|
"hb"
|
1128
1184
|
],
|
1129
1185
|
BQ: [
|
@@ -1200,8 +1256,8 @@ var re = {
|
|
1200
1256
|
"hB"
|
1201
1257
|
],
|
1202
1258
|
CL: [
|
1203
|
-
"H",
|
1204
1259
|
"h",
|
1260
|
+
"H",
|
1205
1261
|
"hB",
|
1206
1262
|
"hb"
|
1207
1263
|
],
|
@@ -1226,14 +1282,14 @@ var re = {
|
|
1226
1282
|
"H"
|
1227
1283
|
],
|
1228
1284
|
CR: [
|
1229
|
-
"H",
|
1230
1285
|
"h",
|
1286
|
+
"H",
|
1231
1287
|
"hB",
|
1232
1288
|
"hb"
|
1233
1289
|
],
|
1234
1290
|
CU: [
|
1235
|
-
"H",
|
1236
1291
|
"h",
|
1292
|
+
"H",
|
1237
1293
|
"hB",
|
1238
1294
|
"hb"
|
1239
1295
|
],
|
@@ -1302,9 +1358,9 @@ var re = {
|
|
1302
1358
|
"hb"
|
1303
1359
|
],
|
1304
1360
|
EC: [
|
1361
|
+
"h",
|
1305
1362
|
"H",
|
1306
1363
|
"hB",
|
1307
|
-
"h",
|
1308
1364
|
"hb"
|
1309
1365
|
],
|
1310
1366
|
EE: [
|
@@ -1440,8 +1496,8 @@ var re = {
|
|
1440
1496
|
"hB"
|
1441
1497
|
],
|
1442
1498
|
GT: [
|
1443
|
-
"H",
|
1444
1499
|
"h",
|
1500
|
+
"H",
|
1445
1501
|
"hB",
|
1446
1502
|
"hb"
|
1447
1503
|
],
|
@@ -1468,8 +1524,8 @@ var re = {
|
|
1468
1524
|
"H"
|
1469
1525
|
],
|
1470
1526
|
HN: [
|
1471
|
-
"H",
|
1472
1527
|
"h",
|
1528
|
+
"H",
|
1473
1529
|
"hB",
|
1474
1530
|
"hb"
|
1475
1531
|
],
|
@@ -1783,8 +1839,8 @@ var re = {
|
|
1783
1839
|
"hB"
|
1784
1840
|
],
|
1785
1841
|
MX: [
|
1786
|
-
"H",
|
1787
1842
|
"h",
|
1843
|
+
"H",
|
1788
1844
|
"hB",
|
1789
1845
|
"hb"
|
1790
1846
|
],
|
@@ -1824,8 +1880,8 @@ var re = {
|
|
1824
1880
|
"hB"
|
1825
1881
|
],
|
1826
1882
|
NI: [
|
1827
|
-
"H",
|
1828
1883
|
"h",
|
1884
|
+
"H",
|
1829
1885
|
"hB",
|
1830
1886
|
"hb"
|
1831
1887
|
],
|
@@ -1873,9 +1929,9 @@ var re = {
|
|
1873
1929
|
"hb"
|
1874
1930
|
],
|
1875
1931
|
PE: [
|
1932
|
+
"h",
|
1876
1933
|
"H",
|
1877
1934
|
"hB",
|
1878
|
-
"h",
|
1879
1935
|
"hb"
|
1880
1936
|
],
|
1881
1937
|
PF: [
|
@@ -1933,8 +1989,8 @@ var re = {
|
|
1933
1989
|
"H"
|
1934
1990
|
],
|
1935
1991
|
PY: [
|
1936
|
-
"H",
|
1937
1992
|
"h",
|
1993
|
+
"H",
|
1938
1994
|
"hB",
|
1939
1995
|
"hb"
|
1940
1996
|
],
|
@@ -2047,8 +2103,8 @@ var re = {
|
|
2047
2103
|
"hB"
|
2048
2104
|
],
|
2049
2105
|
SV: [
|
2050
|
-
"H",
|
2051
2106
|
"h",
|
2107
|
+
"H",
|
2052
2108
|
"hB",
|
2053
2109
|
"hb"
|
2054
2110
|
],
|
@@ -2170,8 +2226,8 @@ var re = {
|
|
2170
2226
|
"hB"
|
2171
2227
|
],
|
2172
2228
|
UY: [
|
2173
|
-
"H",
|
2174
2229
|
"h",
|
2230
|
+
"H",
|
2175
2231
|
"hB",
|
2176
2232
|
"hb"
|
2177
2233
|
],
|
@@ -2279,37 +2335,37 @@ var re = {
|
|
2279
2335
|
"H",
|
2280
2336
|
"hB"
|
2281
2337
|
],
|
2282
|
-
"
|
2283
|
-
"H",
|
2338
|
+
"en-HK": [
|
2284
2339
|
"h",
|
2285
|
-
"
|
2286
|
-
"
|
2340
|
+
"hb",
|
2341
|
+
"H",
|
2342
|
+
"hB"
|
2287
2343
|
],
|
2288
|
-
"
|
2344
|
+
"en-IL": [
|
2289
2345
|
"H",
|
2290
2346
|
"h",
|
2291
|
-
"
|
2292
|
-
"
|
2347
|
+
"hb",
|
2348
|
+
"hB"
|
2293
2349
|
],
|
2294
|
-
"
|
2295
|
-
"H",
|
2350
|
+
"en-MY": [
|
2296
2351
|
"h",
|
2297
|
-
"
|
2298
|
-
"
|
2352
|
+
"hb",
|
2353
|
+
"H",
|
2354
|
+
"hB"
|
2299
2355
|
],
|
2300
|
-
"es-
|
2356
|
+
"es-BR": [
|
2301
2357
|
"H",
|
2302
2358
|
"h",
|
2303
2359
|
"hB",
|
2304
2360
|
"hb"
|
2305
2361
|
],
|
2306
|
-
"es-
|
2362
|
+
"es-ES": [
|
2307
2363
|
"H",
|
2308
2364
|
"h",
|
2309
2365
|
"hB",
|
2310
2366
|
"hb"
|
2311
2367
|
],
|
2312
|
-
"es-
|
2368
|
+
"es-GQ": [
|
2313
2369
|
"H",
|
2314
2370
|
"h",
|
2315
2371
|
"hB",
|
@@ -2386,22 +2442,22 @@ var re = {
|
|
2386
2442
|
"h"
|
2387
2443
|
]
|
2388
2444
|
};
|
2389
|
-
function
|
2445
|
+
function Zr(e, t) {
|
2390
2446
|
for (var r = "", n = 0; n < e.length; n++) {
|
2391
2447
|
var i = e.charAt(n);
|
2392
2448
|
if (i === "j") {
|
2393
2449
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2394
2450
|
s++, n++;
|
2395
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2396
|
-
for ((
|
2397
|
-
r +=
|
2451
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", h = Qr(t);
|
2452
|
+
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
2453
|
+
r += u;
|
2398
2454
|
for (; o-- > 0; )
|
2399
|
-
r =
|
2455
|
+
r = h + r;
|
2400
2456
|
} else i === "J" ? r += "H" : r += i;
|
2401
2457
|
}
|
2402
2458
|
return r;
|
2403
2459
|
}
|
2404
|
-
function
|
2460
|
+
function Qr(e) {
|
2405
2461
|
var t = e.hourCycle;
|
2406
2462
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2407
2463
|
e.hourCycles && // @ts-ignore
|
@@ -2423,20 +2479,20 @@ function Vr(e) {
|
|
2423
2479
|
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2424
2480
|
return i[0];
|
2425
2481
|
}
|
2426
|
-
var
|
2482
|
+
var Ee, Jr = new RegExp("^".concat(Ht.source, "*")), qr = new RegExp("".concat(Ht.source, "*$"));
|
2427
2483
|
function b(e, t) {
|
2428
2484
|
return { start: e, end: t };
|
2429
2485
|
}
|
2430
|
-
var
|
2486
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
2431
2487
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2432
2488
|
}, Se = !0;
|
2433
2489
|
try {
|
2434
|
-
var
|
2435
|
-
Se = ((
|
2490
|
+
var an = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2491
|
+
Se = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2436
2492
|
} catch (e) {
|
2437
2493
|
Se = !1;
|
2438
2494
|
}
|
2439
|
-
var Ye =
|
2495
|
+
var Ye = Yr ? (
|
2440
2496
|
// Native
|
2441
2497
|
function(t, r, n) {
|
2442
2498
|
return t.startsWith(r, n);
|
@@ -2446,7 +2502,7 @@ var Ye = zr ? (
|
|
2446
2502
|
function(t, r, n) {
|
2447
2503
|
return t.slice(n, n + r.length) === r;
|
2448
2504
|
}
|
2449
|
-
), Ae =
|
2505
|
+
), Ae = Kr ? String.fromCodePoint : (
|
2450
2506
|
// IE11
|
2451
2507
|
function() {
|
2452
2508
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2460,7 +2516,7 @@ var Ye = zr ? (
|
|
2460
2516
|
}
|
2461
2517
|
), Ke = (
|
2462
2518
|
// native
|
2463
|
-
|
2519
|
+
en ? Object.fromEntries : (
|
2464
2520
|
// Ponyfill
|
2465
2521
|
function(t) {
|
2466
2522
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2470,7 +2526,7 @@ var Ye = zr ? (
|
|
2470
2526
|
return r;
|
2471
2527
|
}
|
2472
2528
|
)
|
2473
|
-
),
|
2529
|
+
), At = tn ? (
|
2474
2530
|
// Native
|
2475
2531
|
function(t, r) {
|
2476
2532
|
return t.codePointAt(r);
|
@@ -2484,7 +2540,7 @@ var Ye = zr ? (
|
|
2484
2540
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2485
2541
|
}
|
2486
2542
|
}
|
2487
|
-
),
|
2543
|
+
), hn = rn ? (
|
2488
2544
|
// Native
|
2489
2545
|
function(t) {
|
2490
2546
|
return t.trimStart();
|
@@ -2492,9 +2548,9 @@ var Ye = zr ? (
|
|
2492
2548
|
) : (
|
2493
2549
|
// Ponyfill
|
2494
2550
|
function(t) {
|
2495
|
-
return t.replace(
|
2551
|
+
return t.replace(Jr, "");
|
2496
2552
|
}
|
2497
|
-
),
|
2553
|
+
), un = nn ? (
|
2498
2554
|
// Native
|
2499
2555
|
function(t) {
|
2500
2556
|
return t.trimEnd();
|
@@ -2502,15 +2558,15 @@ var Ye = zr ? (
|
|
2502
2558
|
) : (
|
2503
2559
|
// Ponyfill
|
2504
2560
|
function(t) {
|
2505
|
-
return t.replace(
|
2561
|
+
return t.replace(qr, "");
|
2506
2562
|
}
|
2507
2563
|
);
|
2508
|
-
function
|
2564
|
+
function Pt(e, t) {
|
2509
2565
|
return new RegExp(e, t);
|
2510
2566
|
}
|
2511
2567
|
var Pe;
|
2512
2568
|
if (Se) {
|
2513
|
-
var et =
|
2569
|
+
var et = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2514
2570
|
Pe = function(t, r) {
|
2515
2571
|
var n;
|
2516
2572
|
et.lastIndex = r;
|
@@ -2520,14 +2576,14 @@ if (Se) {
|
|
2520
2576
|
} else
|
2521
2577
|
Pe = function(t, r) {
|
2522
2578
|
for (var n = []; ; ) {
|
2523
|
-
var i =
|
2524
|
-
if (i === void 0 ||
|
2579
|
+
var i = At(t, r);
|
2580
|
+
if (i === void 0 || Ot(i) || pn(i))
|
2525
2581
|
break;
|
2526
2582
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2527
2583
|
}
|
2528
2584
|
return Ae.apply(void 0, n);
|
2529
2585
|
};
|
2530
|
-
var
|
2586
|
+
var ln = (
|
2531
2587
|
/** @class */
|
2532
2588
|
function() {
|
2533
2589
|
function e(t, r) {
|
@@ -2593,8 +2649,8 @@ var nn = (
|
|
2593
2649
|
if (this.bumpIf("</")) {
|
2594
2650
|
if (this.isEOF() || !Oe(this.char()))
|
2595
2651
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
2596
|
-
var
|
2597
|
-
return i !==
|
2652
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
2653
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2598
2654
|
val: {
|
2599
2655
|
type: E.tag,
|
2600
2656
|
value: i,
|
@@ -2609,7 +2665,7 @@ var nn = (
|
|
2609
2665
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2610
2666
|
}, e.prototype.parseTagName = function() {
|
2611
2667
|
var t = this.offset();
|
2612
|
-
for (this.bump(); !this.isEOF() &&
|
2668
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2613
2669
|
this.bump();
|
2614
2670
|
return this.message.slice(t, this.offset());
|
2615
2671
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2631,14 +2687,14 @@ var nn = (
|
|
2631
2687
|
}
|
2632
2688
|
break;
|
2633
2689
|
}
|
2634
|
-
var
|
2690
|
+
var u = b(n, this.clonePosition());
|
2635
2691
|
return {
|
2636
|
-
val: { type: E.literal, value: i, location:
|
2692
|
+
val: { type: E.literal, value: i, location: u },
|
2637
2693
|
err: null
|
2638
2694
|
};
|
2639
2695
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2640
2696
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2641
|
-
!
|
2697
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2642
2698
|
}, e.prototype.tryParseQuote = function(t) {
|
2643
2699
|
if (this.isEOF() || this.char() !== 39)
|
2644
2700
|
return null;
|
@@ -2711,34 +2767,34 @@ var nn = (
|
|
2711
2767
|
var s = this.clonePosition(), o = b(t, s);
|
2712
2768
|
return { value: n, location: o };
|
2713
2769
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2714
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2770
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2715
2771
|
switch (a) {
|
2716
2772
|
case "":
|
2717
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o,
|
2773
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, u));
|
2718
2774
|
case "number":
|
2719
2775
|
case "date":
|
2720
2776
|
case "time": {
|
2721
2777
|
this.bumpSpace();
|
2722
|
-
var
|
2778
|
+
var h = null;
|
2723
2779
|
if (this.bumpIf(",")) {
|
2724
2780
|
this.bumpSpace();
|
2725
2781
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2726
2782
|
if (c.err)
|
2727
2783
|
return c;
|
2728
|
-
var f =
|
2784
|
+
var f = un(c.val);
|
2729
2785
|
if (f.length === 0)
|
2730
2786
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2731
2787
|
var x = b(l, this.clonePosition());
|
2732
|
-
|
2788
|
+
h = { style: f, styleLocation: x };
|
2733
2789
|
}
|
2734
2790
|
var g = this.tryParseArgumentClose(i);
|
2735
2791
|
if (g.err)
|
2736
2792
|
return g;
|
2737
2793
|
var y = b(i, this.clonePosition());
|
2738
|
-
if (
|
2739
|
-
var H =
|
2794
|
+
if (h && Ye(h == null ? void 0 : h.style, "::", 0)) {
|
2795
|
+
var H = hn(h.style.slice(2));
|
2740
2796
|
if (a === "number") {
|
2741
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2797
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2742
2798
|
return c.err ? c : {
|
2743
2799
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2744
2800
|
err: null
|
@@ -2747,12 +2803,12 @@ var nn = (
|
|
2747
2803
|
if (H.length === 0)
|
2748
2804
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2749
2805
|
var S = H;
|
2750
|
-
this.locale && (S =
|
2806
|
+
this.locale && (S = Zr(H, this.locale));
|
2751
2807
|
var f = {
|
2752
2808
|
type: j.dateTime,
|
2753
2809
|
pattern: S,
|
2754
|
-
location:
|
2755
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2810
|
+
location: h.styleLocation,
|
2811
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(S) : {}
|
2756
2812
|
}, A = a === "date" ? E.date : E.time;
|
2757
2813
|
return {
|
2758
2814
|
val: { type: A, value: n, location: y, style: f },
|
@@ -2765,7 +2821,7 @@ var nn = (
|
|
2765
2821
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2766
2822
|
value: n,
|
2767
2823
|
location: y,
|
2768
|
-
style: (s =
|
2824
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
2769
2825
|
},
|
2770
2826
|
err: null
|
2771
2827
|
};
|
@@ -2815,7 +2871,7 @@ var nn = (
|
|
2815
2871
|
};
|
2816
2872
|
}
|
2817
2873
|
default:
|
2818
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(o,
|
2874
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, u));
|
2819
2875
|
}
|
2820
2876
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2821
2877
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2857,7 +2913,7 @@ var nn = (
|
|
2857
2913
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2858
2914
|
var n = [];
|
2859
2915
|
try {
|
2860
|
-
n =
|
2916
|
+
n = Vr(t);
|
2861
2917
|
} catch (i) {
|
2862
2918
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2863
2919
|
}
|
@@ -2866,25 +2922,25 @@ var nn = (
|
|
2866
2922
|
type: j.number,
|
2867
2923
|
tokens: n,
|
2868
2924
|
location: r,
|
2869
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2925
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
2870
2926
|
},
|
2871
2927
|
err: null
|
2872
2928
|
};
|
2873
2929
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2874
|
-
for (var s, o = !1, a = [],
|
2875
|
-
if (
|
2930
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2931
|
+
if (h.length === 0) {
|
2876
2932
|
var c = this.clonePosition();
|
2877
2933
|
if (r !== "select" && this.bumpIf("=")) {
|
2878
2934
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2879
2935
|
if (f.err)
|
2880
2936
|
return f;
|
2881
|
-
l = b(c, this.clonePosition()),
|
2937
|
+
l = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2882
2938
|
} else
|
2883
2939
|
break;
|
2884
2940
|
}
|
2885
|
-
if (
|
2941
|
+
if (u.has(h))
|
2886
2942
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2887
|
-
|
2943
|
+
h === "other" && (o = !0), this.bumpSpace();
|
2888
2944
|
var x = this.clonePosition();
|
2889
2945
|
if (!this.bumpIf("{"))
|
2890
2946
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
@@ -2895,12 +2951,12 @@ var nn = (
|
|
2895
2951
|
if (y.err)
|
2896
2952
|
return y;
|
2897
2953
|
a.push([
|
2898
|
-
|
2954
|
+
h,
|
2899
2955
|
{
|
2900
2956
|
value: g.val,
|
2901
2957
|
location: b(x, this.clonePosition())
|
2902
2958
|
}
|
2903
|
-
]),
|
2959
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
2904
2960
|
}
|
2905
2961
|
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2906
2962
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2913,8 +2969,8 @@ var nn = (
|
|
2913
2969
|
else
|
2914
2970
|
break;
|
2915
2971
|
}
|
2916
|
-
var
|
2917
|
-
return s ? (o *= n,
|
2972
|
+
var u = b(i, this.clonePosition());
|
2973
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
2918
2974
|
}, e.prototype.offset = function() {
|
2919
2975
|
return this.position.offset;
|
2920
2976
|
}, e.prototype.isEOF = function() {
|
@@ -2929,7 +2985,7 @@ var nn = (
|
|
2929
2985
|
var t = this.position.offset;
|
2930
2986
|
if (t >= this.message.length)
|
2931
2987
|
throw Error("out of bound");
|
2932
|
-
var r =
|
2988
|
+
var r = At(this.message, t);
|
2933
2989
|
if (r === void 0)
|
2934
2990
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2935
2991
|
return r;
|
@@ -2970,7 +3026,7 @@ var nn = (
|
|
2970
3026
|
break;
|
2971
3027
|
}
|
2972
3028
|
}, e.prototype.bumpSpace = function() {
|
2973
|
-
for (; !this.isEOF() &&
|
3029
|
+
for (; !this.isEOF() && Ot(this.char()); )
|
2974
3030
|
this.bump();
|
2975
3031
|
}, e.prototype.peek = function() {
|
2976
3032
|
if (this.isEOF())
|
@@ -2983,86 +3039,36 @@ var nn = (
|
|
2983
3039
|
function Oe(e) {
|
2984
3040
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
2985
3041
|
}
|
2986
|
-
function
|
3042
|
+
function fn(e) {
|
2987
3043
|
return Oe(e) || e === 47;
|
2988
3044
|
}
|
2989
|
-
function
|
3045
|
+
function cn(e) {
|
2990
3046
|
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;
|
2991
3047
|
}
|
2992
|
-
function
|
3048
|
+
function Ot(e) {
|
2993
3049
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
2994
3050
|
}
|
2995
|
-
function
|
3051
|
+
function pn(e) {
|
2996
3052
|
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;
|
2997
3053
|
}
|
2998
3054
|
function Ne(e) {
|
2999
3055
|
e.forEach(function(t) {
|
3000
|
-
if (delete t.location,
|
3056
|
+
if (delete t.location, Et(t) || yt(t))
|
3001
3057
|
for (var r in t.options)
|
3002
3058
|
delete t.options[r].location, Ne(t.options[r].value);
|
3003
|
-
else
|
3059
|
+
else dt(t) && vt(t.style) || (gt(t) || xt(t)) && Be(t.style) ? delete t.style.location : _t(t) && Ne(t.children);
|
3004
3060
|
});
|
3005
3061
|
}
|
3006
|
-
function
|
3062
|
+
function mn(e, t) {
|
3007
3063
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3008
|
-
var r = new
|
3064
|
+
var r = new ln(e, t).parse();
|
3009
3065
|
if (r.err) {
|
3010
3066
|
var n = SyntaxError(m[r.err.kind]);
|
3011
3067
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3012
3068
|
}
|
3013
3069
|
return t != null && t.captureLocation || Ne(r.val), r.val;
|
3014
3070
|
}
|
3015
|
-
|
3016
|
-
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : ln;
|
3017
|
-
return i(e, {
|
3018
|
-
cache: r,
|
3019
|
-
serializer: n
|
3020
|
-
});
|
3021
|
-
}
|
3022
|
-
function hn(e) {
|
3023
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
3024
|
-
}
|
3025
|
-
function Pt(e, t, r, n) {
|
3026
|
-
var i = hn(n) ? n : r(n), s = t.get(i);
|
3027
|
-
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
3028
|
-
}
|
3029
|
-
function Ot(e, t, r) {
|
3030
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
3031
|
-
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
3032
|
-
}
|
3033
|
-
function Re(e, t, r, n, i) {
|
3034
|
-
return r.bind(t, e, n, i);
|
3035
|
-
}
|
3036
|
-
function ln(e, t) {
|
3037
|
-
var r = e.length === 1 ? Pt : Ot;
|
3038
|
-
return Re(e, this, r, t.cache.create(), t.serializer);
|
3039
|
-
}
|
3040
|
-
function fn(e, t) {
|
3041
|
-
return Re(e, this, Ot, t.cache.create(), t.serializer);
|
3042
|
-
}
|
3043
|
-
function cn(e, t) {
|
3044
|
-
return Re(e, this, Pt, t.cache.create(), t.serializer);
|
3045
|
-
}
|
3046
|
-
var pn = function() {
|
3047
|
-
return JSON.stringify(arguments);
|
3048
|
-
};
|
3049
|
-
function $e() {
|
3050
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
3051
|
-
}
|
3052
|
-
$e.prototype.get = function(e) {
|
3053
|
-
return this.cache[e];
|
3054
|
-
};
|
3055
|
-
$e.prototype.set = function(e, t) {
|
3056
|
-
this.cache[e] = t;
|
3057
|
-
};
|
3058
|
-
var mn = {
|
3059
|
-
create: function() {
|
3060
|
-
return new $e();
|
3061
|
-
}
|
3062
|
-
}, Ee = {
|
3063
|
-
variadic: fn,
|
3064
|
-
monadic: cn
|
3065
|
-
}, V;
|
3071
|
+
var V;
|
3066
3072
|
(function(e) {
|
3067
3073
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3068
3074
|
})(V || (V = {}));
|
@@ -3126,8 +3132,8 @@ function se(e, t, r, n, i, s, o) {
|
|
3126
3132
|
value: e[0].value
|
3127
3133
|
}
|
3128
3134
|
];
|
3129
|
-
for (var a = [],
|
3130
|
-
var l = u
|
3135
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3136
|
+
var l = h[u];
|
3131
3137
|
if (Ze(l)) {
|
3132
3138
|
a.push({
|
3133
3139
|
type: _.literal,
|
@@ -3135,7 +3141,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3135
3141
|
});
|
3136
3142
|
continue;
|
3137
3143
|
}
|
3138
|
-
if (
|
3144
|
+
if (Gr(l)) {
|
3139
3145
|
typeof s == "number" && a.push({
|
3140
3146
|
type: _.literal,
|
3141
3147
|
value: r.getNumberFormat(t).format(s)
|
@@ -3146,14 +3152,14 @@ function se(e, t, r, n, i, s, o) {
|
|
3146
3152
|
if (!(i && c in i))
|
3147
3153
|
throw new dn(c, o);
|
3148
3154
|
var f = i[c];
|
3149
|
-
if (
|
3155
|
+
if (Ur(l)) {
|
3150
3156
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3151
3157
|
type: typeof f == "string" ? _.literal : _.object,
|
3152
3158
|
value: f
|
3153
3159
|
});
|
3154
3160
|
continue;
|
3155
3161
|
}
|
3156
|
-
if (
|
3162
|
+
if (gt(l)) {
|
3157
3163
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3158
3164
|
a.push({
|
3159
3165
|
type: _.literal,
|
@@ -3161,7 +3167,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3161
3167
|
});
|
3162
3168
|
continue;
|
3163
3169
|
}
|
3164
|
-
if (
|
3170
|
+
if (xt(l)) {
|
3165
3171
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3166
3172
|
a.push({
|
3167
3173
|
type: _.literal,
|
@@ -3169,15 +3175,15 @@ function se(e, t, r, n, i, s, o) {
|
|
3169
3175
|
});
|
3170
3176
|
continue;
|
3171
3177
|
}
|
3172
|
-
if (
|
3173
|
-
var x = typeof l.style == "string" ? n.number[l.style] :
|
3178
|
+
if (dt(l)) {
|
3179
|
+
var x = typeof l.style == "string" ? n.number[l.style] : vt(l.style) ? l.style.parsedOptions : void 0;
|
3174
3180
|
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3175
3181
|
type: _.literal,
|
3176
3182
|
value: r.getNumberFormat(t, x).format(f)
|
3177
3183
|
});
|
3178
3184
|
continue;
|
3179
3185
|
}
|
3180
|
-
if (
|
3186
|
+
if (_t(l)) {
|
3181
3187
|
var g = l.children, y = l.value, H = i[y];
|
3182
3188
|
if (!xn(H))
|
3183
3189
|
throw new bn(y, "function", o);
|
@@ -3191,14 +3197,14 @@ function se(e, t, r, n, i, s, o) {
|
|
3191
3197
|
};
|
3192
3198
|
}));
|
3193
3199
|
}
|
3194
|
-
if (
|
3200
|
+
if (Et(l)) {
|
3195
3201
|
var v = l.options[f] || l.options.other;
|
3196
3202
|
if (!v)
|
3197
3203
|
throw new tt(l.value, f, Object.keys(l.options), o);
|
3198
3204
|
a.push.apply(a, se(v.value, t, r, n, i));
|
3199
3205
|
continue;
|
3200
3206
|
}
|
3201
|
-
if (
|
3207
|
+
if (yt(l)) {
|
3202
3208
|
var v = l.options["=".concat(f)];
|
3203
3209
|
if (!v) {
|
3204
3210
|
if (!Intl.PluralRules)
|
@@ -3246,29 +3252,29 @@ function _n(e) {
|
|
3246
3252
|
dateTime: {},
|
3247
3253
|
pluralRules: {}
|
3248
3254
|
}), {
|
3249
|
-
getNumberFormat:
|
3255
|
+
getNumberFormat: ge(function() {
|
3250
3256
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3251
3257
|
r[n] = arguments[n];
|
3252
3258
|
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3253
3259
|
}, {
|
3254
3260
|
cache: ye(e.number),
|
3255
|
-
strategy:
|
3261
|
+
strategy: xe.variadic
|
3256
3262
|
}),
|
3257
|
-
getDateTimeFormat:
|
3263
|
+
getDateTimeFormat: ge(function() {
|
3258
3264
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3259
3265
|
r[n] = arguments[n];
|
3260
3266
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3261
3267
|
}, {
|
3262
3268
|
cache: ye(e.dateTime),
|
3263
|
-
strategy:
|
3269
|
+
strategy: xe.variadic
|
3264
3270
|
}),
|
3265
|
-
getPluralRules:
|
3271
|
+
getPluralRules: ge(function() {
|
3266
3272
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3267
3273
|
r[n] = arguments[n];
|
3268
3274
|
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3269
3275
|
}, {
|
3270
3276
|
cache: ye(e.pluralRules),
|
3271
|
-
strategy:
|
3277
|
+
strategy: xe.variadic
|
3272
3278
|
})
|
3273
3279
|
};
|
3274
3280
|
}
|
@@ -3276,25 +3282,26 @@ var vn = (
|
|
3276
3282
|
/** @class */
|
3277
3283
|
function() {
|
3278
3284
|
function e(t, r, n, i) {
|
3285
|
+
r === void 0 && (r = e.defaultLocale);
|
3279
3286
|
var s = this;
|
3280
|
-
if (
|
3287
|
+
if (this.formatterCache = {
|
3281
3288
|
number: {},
|
3282
3289
|
dateTime: {},
|
3283
3290
|
pluralRules: {}
|
3284
|
-
}, this.format = function(
|
3285
|
-
var
|
3286
|
-
if (
|
3287
|
-
return
|
3288
|
-
var l =
|
3291
|
+
}, this.format = function(u) {
|
3292
|
+
var h = s.formatToParts(u);
|
3293
|
+
if (h.length === 1)
|
3294
|
+
return h[0].value;
|
3295
|
+
var l = h.reduce(function(c, f) {
|
3289
3296
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3290
3297
|
}, []);
|
3291
3298
|
return l.length <= 1 ? l[0] || "" : l;
|
3292
|
-
}, this.formatToParts = function(
|
3293
|
-
return se(s.ast, s.locales, s.formatters, s.formats,
|
3299
|
+
}, this.formatToParts = function(u) {
|
3300
|
+
return se(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
3294
3301
|
}, this.resolvedOptions = function() {
|
3295
|
-
var
|
3302
|
+
var u;
|
3296
3303
|
return {
|
3297
|
-
locale: ((
|
3304
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3298
3305
|
};
|
3299
3306
|
}, this.getAst = function() {
|
3300
3307
|
return s.ast;
|
@@ -3322,7 +3329,7 @@ var vn = (
|
|
3322
3329
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3323
3330
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3324
3331
|
}
|
3325
|
-
}, e.__parse =
|
3332
|
+
}, e.__parse = mn, e.formats = {
|
3326
3333
|
number: {
|
3327
3334
|
integer: {
|
3328
3335
|
maximumFractionDigits: 0
|
@@ -3417,7 +3424,7 @@ const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][
|
|
3417
3424
|
}
|
3418
3425
|
};
|
3419
3426
|
let Ue;
|
3420
|
-
const z =
|
3427
|
+
const z = ue({});
|
3421
3428
|
function Bn(e) {
|
3422
3429
|
return Ue[e] || null;
|
3423
3430
|
}
|
@@ -3529,7 +3536,7 @@ const In = {
|
|
3529
3536
|
function k() {
|
3530
3537
|
return Ln;
|
3531
3538
|
}
|
3532
|
-
const _e =
|
3539
|
+
const _e = ue(!1);
|
3533
3540
|
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3534
3541
|
for (var r in t || (t = {}))
|
3535
3542
|
$n.call(t, r) && nt(e, r, t[r]);
|
@@ -3539,7 +3546,7 @@ var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwn
|
|
3539
3546
|
return e;
|
3540
3547
|
}, Dn = (e, t) => Mn(e, Rn(t));
|
3541
3548
|
let we;
|
3542
|
-
const ae =
|
3549
|
+
const ae = ue(null);
|
3543
3550
|
function it(e) {
|
3544
3551
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3545
3552
|
}
|
@@ -3576,19 +3583,19 @@ const Fn = (e) => {
|
|
3576
3583
|
return i in t ? t[i] : t[i] = e(n);
|
3577
3584
|
};
|
3578
3585
|
};
|
3579
|
-
var jn = Object.defineProperty,
|
3586
|
+
var jn = Object.defineProperty, he = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
3580
3587
|
for (var r in t || (t = {}))
|
3581
3588
|
Mt.call(t, r) && st(e, r, t[r]);
|
3582
|
-
if (
|
3583
|
-
for (var r of
|
3589
|
+
if (he)
|
3590
|
+
for (var r of he(t))
|
3584
3591
|
Rt.call(t, r) && st(e, r, t[r]);
|
3585
3592
|
return e;
|
3586
3593
|
}, W = (e, t) => {
|
3587
3594
|
var r = {};
|
3588
3595
|
for (var n in e)
|
3589
3596
|
Mt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3590
|
-
if (e != null &&
|
3591
|
-
for (var n of
|
3597
|
+
if (e != null && he)
|
3598
|
+
for (var n of he(e))
|
3592
3599
|
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
3593
3600
|
return r;
|
3594
3601
|
};
|
@@ -3652,16 +3659,16 @@ const K = (e, t) => {
|
|
3652
3659
|
typeof e == "object" && (o = e, e = o.id);
|
3653
3660
|
const {
|
3654
3661
|
values: a,
|
3655
|
-
locale:
|
3656
|
-
default:
|
3662
|
+
locale: u = M(),
|
3663
|
+
default: h
|
3657
3664
|
} = o;
|
3658
|
-
if (
|
3665
|
+
if (u == null)
|
3659
3666
|
throw new Error(
|
3660
3667
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3661
3668
|
);
|
3662
|
-
let l = Nt(e,
|
3669
|
+
let l = Nt(e, u);
|
3663
3670
|
if (!l)
|
3664
|
-
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
3671
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3665
3672
|
else if (typeof l != "string")
|
3666
3673
|
return console.warn(
|
3667
3674
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3670,7 +3677,7 @@ const K = (e, t) => {
|
|
3670
3677
|
return l;
|
3671
3678
|
let c = l;
|
3672
3679
|
try {
|
3673
|
-
c = Qn(l,
|
3680
|
+
c = Qn(l, u).format(a);
|
3674
3681
|
} catch (f) {
|
3675
3682
|
f instanceof Error && console.warn(
|
3676
3683
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3715,6 +3722,9 @@ const at = {
|
|
3715
3722
|
},
|
3716
3723
|
"es-mx": {
|
3717
3724
|
bets: "apuestas"
|
3725
|
+
},
|
3726
|
+
"en-us": {
|
3727
|
+
bets: "bets"
|
3718
3728
|
}
|
3719
3729
|
};
|
3720
3730
|
function ii(e) {
|
@@ -3753,10 +3763,10 @@ function si(e) {
|
|
3753
3763
|
function oi(e, t, r) {
|
3754
3764
|
let n;
|
3755
3765
|
Wt(e, ti, (p) => r(20, n = p));
|
3756
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
3766
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: u } = t, { translationurl: h = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, S, A, v = "0px", N = "active";
|
3757
3767
|
ri({ withLocale: "en", translations: {} });
|
3758
3768
|
const O = () => {
|
3759
|
-
fetch(
|
3769
|
+
fetch(h).then((L) => L.json()).then((L) => {
|
3760
3770
|
Object.keys(L).forEach((De) => {
|
3761
3771
|
ot(De, L[De]);
|
3762
3772
|
});
|
@@ -3778,7 +3788,7 @@ function oi(e, t, r) {
|
|
3778
3788
|
y ? 573 : 0
|
3779
3789
|
), p == 0 || p == 100 ? (S = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (S = `${f.offsetHeight}px`, H = S, A = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", S), g.style.setProperty("--halfOfTriangleHeight", A), g.style.setProperty("--stepBarBorderRadius", v);
|
3780
3790
|
}, $t = () => {
|
3781
|
-
r(4, N =
|
3791
|
+
r(4, N = u == "active" ? "" : "inactive");
|
3782
3792
|
};
|
3783
3793
|
function Ut(p) {
|
3784
3794
|
q[p ? "unshift" : "push"](() => {
|
@@ -3796,15 +3806,15 @@ function oi(e, t, r) {
|
|
3796
3806
|
});
|
3797
3807
|
}
|
3798
3808
|
return e.$$set = (p) => {
|
3799
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9,
|
3809
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9, u = p.status), "translationurl" in p && r(10, h = p.translationurl), "progressfractiondigit" in p && r(11, l = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3800
3810
|
}, e.$$.update = () => {
|
3801
3811
|
e.$$.dirty & /*triggerreset, total*/
|
3802
3812
|
4160 && c && s && setTimeout(() => {
|
3803
3813
|
te();
|
3804
3814
|
}), e.$$.dirty & /*lang*/
|
3805
3815
|
256 && a && R(), e.$$.dirty & /*status*/
|
3806
|
-
512 &&
|
3807
|
-
1024 &&
|
3816
|
+
512 && u && $t(), e.$$.dirty & /*translationurl*/
|
3817
|
+
1024 && h && O();
|
3808
3818
|
}, [
|
3809
3819
|
f,
|
3810
3820
|
x,
|
@@ -3815,8 +3825,8 @@ function oi(e, t, r) {
|
|
3815
3825
|
s,
|
3816
3826
|
o,
|
3817
3827
|
a,
|
3818
|
-
h,
|
3819
3828
|
u,
|
3829
|
+
h,
|
3820
3830
|
l,
|
3821
3831
|
c,
|
3822
3832
|
Ut,
|
@@ -3831,7 +3841,7 @@ class ai extends cr {
|
|
3831
3841
|
t,
|
3832
3842
|
oi,
|
3833
3843
|
si,
|
3834
|
-
|
3844
|
+
ut,
|
3835
3845
|
{
|
3836
3846
|
currentstep: 5,
|
3837
3847
|
total: 6,
|