@everymatrix/general-icon-progress-bar 1.54.8 → 1.54.10
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-mIv2HEbp.cjs → GeneralIconProgressBar-Dbtf2ZPD.cjs} +2 -2
- package/components/{GeneralIconProgressBar-CZWl7bCY.js → GeneralIconProgressBar-RIcTdYqm.js} +69 -69
- package/components/{GeneralIconProgressBar-DHNv9GhN.js → GeneralIconProgressBar-YqbhMYw-.js} +183 -183
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +2 -2
package/components/{GeneralIconProgressBar-CZWl7bCY.js → GeneralIconProgressBar-RIcTdYqm.js}
RENAMED
@@ -130,7 +130,7 @@ function er() {
|
|
130
130
|
function He(e) {
|
131
131
|
D.push(e);
|
132
132
|
}
|
133
|
-
const
|
133
|
+
const be = /* @__PURE__ */ new Set();
|
134
134
|
let $ = 0;
|
135
135
|
function P() {
|
136
136
|
if ($ !== 0)
|
@@ -148,13 +148,13 @@ function P() {
|
|
148
148
|
for (J(null), G.length = 0, $ = 0; q.length; ) q.pop()();
|
149
149
|
for (let t = 0; t < D.length; t += 1) {
|
150
150
|
const r = D[t];
|
151
|
-
|
151
|
+
be.has(r) || (be.add(r), r());
|
152
152
|
}
|
153
153
|
D.length = 0;
|
154
154
|
} while (G.length);
|
155
155
|
for (; ke.length; )
|
156
156
|
ke.pop()();
|
157
|
-
ve = !1,
|
157
|
+
ve = !1, be.clear(), J(e);
|
158
158
|
}
|
159
159
|
function tr(e) {
|
160
160
|
if (e.fragment !== null) {
|
@@ -521,12 +521,12 @@ function pr(e) {
|
|
521
521
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
522
522
|
}
|
523
523
|
var mr = function(t) {
|
524
|
-
return
|
524
|
+
return br(t) && !dr(t);
|
525
525
|
};
|
526
|
-
function
|
526
|
+
function br(e) {
|
527
527
|
return !!e && typeof e == "object";
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function dr(e) {
|
530
530
|
var t = Object.prototype.toString.call(e);
|
531
531
|
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
532
532
|
}
|
@@ -607,14 +607,14 @@ function le(e, t) {
|
|
607
607
|
}
|
608
608
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
609
609
|
}
|
610
|
-
var
|
611
|
-
return
|
610
|
+
var d = function() {
|
611
|
+
return d = Object.assign || function(t) {
|
612
612
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
613
613
|
r = arguments[n];
|
614
614
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
615
615
|
}
|
616
616
|
return t;
|
617
|
-
},
|
617
|
+
}, d.apply(this, arguments);
|
618
618
|
};
|
619
619
|
function Or(e, t) {
|
620
620
|
var r = {};
|
@@ -624,7 +624,7 @@ function Or(e, t) {
|
|
624
624
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
625
625
|
return r;
|
626
626
|
}
|
627
|
-
function
|
627
|
+
function de(e, t, r) {
|
628
628
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
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));
|
@@ -698,10 +698,10 @@ function $r(e) {
|
|
698
698
|
function mt(e) {
|
699
699
|
return e.type === E.number;
|
700
700
|
}
|
701
|
-
function
|
701
|
+
function bt(e) {
|
702
702
|
return e.type === E.date;
|
703
703
|
}
|
704
|
-
function
|
704
|
+
function dt(e) {
|
705
705
|
return e.type === E.time;
|
706
706
|
}
|
707
707
|
function gt(e) {
|
@@ -936,13 +936,13 @@ function zr(e) {
|
|
936
936
|
t.notation = "compact", t.compactDisplay = "long";
|
937
937
|
continue;
|
938
938
|
case "scientific":
|
939
|
-
t =
|
940
|
-
return
|
939
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
940
|
+
return d(d({}, h), Qe(u));
|
941
941
|
}, {}));
|
942
942
|
continue;
|
943
943
|
case "engineering":
|
944
|
-
t =
|
945
|
-
return
|
944
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
945
|
+
return d(d({}, h), Qe(u));
|
946
946
|
}, {}));
|
947
947
|
continue;
|
948
948
|
case "notation-simple":
|
@@ -1011,17 +1011,17 @@ function zr(e) {
|
|
1011
1011
|
return l === "*" ? 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), "";
|
1012
1012
|
});
|
1013
1013
|
var s = i.options[0];
|
1014
|
-
s === "w" ? t =
|
1014
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ze(s)));
|
1015
1015
|
continue;
|
1016
1016
|
}
|
1017
1017
|
if (vt.test(i.stem)) {
|
1018
|
-
t =
|
1018
|
+
t = d(d({}, t), Ze(i.stem));
|
1019
1019
|
continue;
|
1020
1020
|
}
|
1021
1021
|
var o = Tt(i.stem);
|
1022
|
-
o && (t =
|
1022
|
+
o && (t = d(d({}, t), o));
|
1023
1023
|
var a = Xr(i.stem);
|
1024
|
-
a && (t =
|
1024
|
+
a && (t = d(d({}, t), a));
|
1025
1025
|
}
|
1026
1026
|
return t;
|
1027
1027
|
}
|
@@ -2478,7 +2478,7 @@ function Zr(e) {
|
|
2478
2478
|
return i[0];
|
2479
2479
|
}
|
2480
2480
|
var Ee, Qr = new RegExp("^".concat(_t.source, "*")), Jr = new RegExp("".concat(_t.source, "*$"));
|
2481
|
-
function
|
2481
|
+
function b(e, t) {
|
2482
2482
|
return { start: e, end: t };
|
2483
2483
|
}
|
2484
2484
|
var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
@@ -2606,12 +2606,12 @@ var hn = (
|
|
2606
2606
|
var a = this.clonePosition();
|
2607
2607
|
this.bump(), i.push({
|
2608
2608
|
type: E.pound,
|
2609
|
-
location:
|
2609
|
+
location: b(a, this.clonePosition())
|
2610
2610
|
});
|
2611
2611
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2612
2612
|
if (n)
|
2613
2613
|
break;
|
2614
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2614
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2615
2615
|
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2616
2616
|
var o = this.parseTag(t, r);
|
2617
2617
|
if (o.err)
|
@@ -2635,7 +2635,7 @@ var hn = (
|
|
2635
2635
|
val: {
|
2636
2636
|
type: E.literal,
|
2637
2637
|
value: "<".concat(i, "/>"),
|
2638
|
-
location:
|
2638
|
+
location: b(n, this.clonePosition())
|
2639
2639
|
},
|
2640
2640
|
err: null
|
2641
2641
|
};
|
@@ -2646,21 +2646,21 @@ var hn = (
|
|
2646
2646
|
var o = s.val, a = this.clonePosition();
|
2647
2647
|
if (this.bumpIf("</")) {
|
2648
2648
|
if (this.isEOF() || !Oe(this.char()))
|
2649
|
-
return this.error(m.INVALID_TAG,
|
2649
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
2650
2650
|
var h = this.clonePosition(), u = this.parseTagName();
|
2651
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG,
|
2651
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2652
2652
|
val: {
|
2653
2653
|
type: E.tag,
|
2654
2654
|
value: i,
|
2655
2655
|
children: o,
|
2656
|
-
location:
|
2656
|
+
location: b(n, this.clonePosition())
|
2657
2657
|
},
|
2658
2658
|
err: null
|
2659
|
-
} : this.error(m.INVALID_TAG,
|
2659
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
2660
2660
|
} else
|
2661
|
-
return this.error(m.UNCLOSED_TAG,
|
2661
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
2662
2662
|
} else
|
2663
|
-
return this.error(m.INVALID_TAG,
|
2663
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2664
2664
|
}, e.prototype.parseTagName = function() {
|
2665
2665
|
var t = this.offset();
|
2666
2666
|
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
@@ -2685,7 +2685,7 @@ var hn = (
|
|
2685
2685
|
}
|
2686
2686
|
break;
|
2687
2687
|
}
|
2688
|
-
var h =
|
2688
|
+
var h = b(n, this.clonePosition());
|
2689
2689
|
return {
|
2690
2690
|
val: { type: E.literal, value: i, location: h },
|
2691
2691
|
err: null
|
@@ -2735,14 +2735,14 @@ var hn = (
|
|
2735
2735
|
}, e.prototype.parseArgument = function(t, r) {
|
2736
2736
|
var n = this.clonePosition();
|
2737
2737
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2738
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2738
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2739
2739
|
if (this.char() === 125)
|
2740
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2740
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
2741
2741
|
var i = this.parseIdentifierIfPossible().value;
|
2742
2742
|
if (!i)
|
2743
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2743
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2744
2744
|
if (this.bumpSpace(), this.isEOF())
|
2745
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2745
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2746
2746
|
switch (this.char()) {
|
2747
2747
|
case 125:
|
2748
2748
|
return this.bump(), {
|
@@ -2750,25 +2750,25 @@ var hn = (
|
|
2750
2750
|
type: E.argument,
|
2751
2751
|
// value does not include the opening and closing braces.
|
2752
2752
|
value: i,
|
2753
|
-
location:
|
2753
|
+
location: b(n, this.clonePosition())
|
2754
2754
|
},
|
2755
2755
|
err: null
|
2756
2756
|
};
|
2757
2757
|
case 44:
|
2758
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2758
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2759
2759
|
default:
|
2760
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2760
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2761
2761
|
}
|
2762
2762
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2763
2763
|
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2764
2764
|
this.bumpTo(i);
|
2765
|
-
var s = this.clonePosition(), o =
|
2765
|
+
var s = this.clonePosition(), o = b(t, s);
|
2766
2766
|
return { value: n, location: o };
|
2767
2767
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2768
2768
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2769
2769
|
switch (a) {
|
2770
2770
|
case "":
|
2771
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2771
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, h));
|
2772
2772
|
case "number":
|
2773
2773
|
case "date":
|
2774
2774
|
case "time": {
|
@@ -2781,14 +2781,14 @@ var hn = (
|
|
2781
2781
|
return c;
|
2782
2782
|
var f = un(c.val);
|
2783
2783
|
if (f.length === 0)
|
2784
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2785
|
-
var x =
|
2784
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2785
|
+
var x = b(l, this.clonePosition());
|
2786
2786
|
u = { style: f, styleLocation: x };
|
2787
2787
|
}
|
2788
2788
|
var g = this.tryParseArgumentClose(i);
|
2789
2789
|
if (g.err)
|
2790
2790
|
return g;
|
2791
|
-
var y =
|
2791
|
+
var y = b(i, this.clonePosition());
|
2792
2792
|
if (u && Je(u == null ? void 0 : u.style, "::", 0)) {
|
2793
2793
|
var H = an(u.style.slice(2));
|
2794
2794
|
if (a === "number") {
|
@@ -2829,12 +2829,12 @@ var hn = (
|
|
2829
2829
|
case "select": {
|
2830
2830
|
var v = this.clonePosition();
|
2831
2831
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2832
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2832
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2833
2833
|
this.bumpSpace();
|
2834
2834
|
var N = this.parseIdentifierIfPossible(), O = 0;
|
2835
2835
|
if (a !== "select" && N.value === "offset") {
|
2836
2836
|
if (!this.bumpIf(":"))
|
2837
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2837
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2838
2838
|
this.bumpSpace();
|
2839
2839
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2840
2840
|
if (c.err)
|
@@ -2847,7 +2847,7 @@ var hn = (
|
|
2847
2847
|
var g = this.tryParseArgumentClose(i);
|
2848
2848
|
if (g.err)
|
2849
2849
|
return g;
|
2850
|
-
var te =
|
2850
|
+
var te = b(i, this.clonePosition());
|
2851
2851
|
return a === "select" ? {
|
2852
2852
|
val: {
|
2853
2853
|
type: E.select,
|
@@ -2869,10 +2869,10 @@ var hn = (
|
|
2869
2869
|
};
|
2870
2870
|
}
|
2871
2871
|
default:
|
2872
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2872
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, h));
|
2873
2873
|
}
|
2874
2874
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2875
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2875
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2876
2876
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2877
2877
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2878
2878
|
var n = this.char();
|
@@ -2881,7 +2881,7 @@ var hn = (
|
|
2881
2881
|
this.bump();
|
2882
2882
|
var i = this.clonePosition();
|
2883
2883
|
if (!this.bumpUntil("'"))
|
2884
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2884
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
2885
2885
|
this.bump();
|
2886
2886
|
break;
|
2887
2887
|
}
|
@@ -2932,7 +2932,7 @@ var hn = (
|
|
2932
2932
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2933
2933
|
if (f.err)
|
2934
2934
|
return f;
|
2935
|
-
l =
|
2935
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
2936
2936
|
} else
|
2937
2937
|
break;
|
2938
2938
|
}
|
@@ -2941,7 +2941,7 @@ var hn = (
|
|
2941
2941
|
u === "other" && (o = !0), this.bumpSpace();
|
2942
2942
|
var x = this.clonePosition();
|
2943
2943
|
if (!this.bumpIf("{"))
|
2944
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2944
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2945
2945
|
var g = this.parseMessage(t + 1, r, n);
|
2946
2946
|
if (g.err)
|
2947
2947
|
return g;
|
@@ -2952,11 +2952,11 @@ var hn = (
|
|
2952
2952
|
u,
|
2953
2953
|
{
|
2954
2954
|
value: g.val,
|
2955
|
-
location:
|
2955
|
+
location: b(x, this.clonePosition())
|
2956
2956
|
}
|
2957
2957
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
2958
2958
|
}
|
2959
|
-
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2959
|
+
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 };
|
2960
2960
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2961
2961
|
var n = 1, i = this.clonePosition();
|
2962
2962
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2967,7 +2967,7 @@ var hn = (
|
|
2967
2967
|
else
|
2968
2968
|
break;
|
2969
2969
|
}
|
2970
|
-
var h =
|
2970
|
+
var h = b(i, this.clonePosition());
|
2971
2971
|
return s ? (o *= n, sn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2972
2972
|
}, e.prototype.offset = function() {
|
2973
2973
|
return this.position.offset;
|
@@ -3054,11 +3054,11 @@ function Ne(e) {
|
|
3054
3054
|
if (delete t.location, gt(t) || xt(t))
|
3055
3055
|
for (var r in t.options)
|
3056
3056
|
delete t.options[r].location, Ne(t.options[r].value);
|
3057
|
-
else mt(t) && yt(t.style) || (
|
3057
|
+
else mt(t) && yt(t.style) || (bt(t) || dt(t)) && Be(t.style) ? delete t.style.location : Et(t) && Ne(t.children);
|
3058
3058
|
});
|
3059
3059
|
}
|
3060
3060
|
function pn(e, t) {
|
3061
|
-
t === void 0 && (t = {}), t =
|
3061
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3062
3062
|
var r = new hn(e, t).parse();
|
3063
3063
|
if (r.err) {
|
3064
3064
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3100,7 +3100,7 @@ var fe = (
|
|
3100
3100
|
}
|
3101
3101
|
return t;
|
3102
3102
|
}(fe)
|
3103
|
-
),
|
3103
|
+
), bn = (
|
3104
3104
|
/** @class */
|
3105
3105
|
function(e) {
|
3106
3106
|
le(t, e);
|
@@ -3113,7 +3113,7 @@ var fe = (
|
|
3113
3113
|
(function(e) {
|
3114
3114
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3115
3115
|
})(_ || (_ = {}));
|
3116
|
-
function
|
3116
|
+
function dn(e) {
|
3117
3117
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3118
3118
|
var n = t[t.length - 1];
|
3119
3119
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
@@ -3148,7 +3148,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3148
3148
|
}
|
3149
3149
|
var c = l.value;
|
3150
3150
|
if (!(i && c in i))
|
3151
|
-
throw new
|
3151
|
+
throw new bn(c, o);
|
3152
3152
|
var f = i[c];
|
3153
3153
|
if ($r(l)) {
|
3154
3154
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
@@ -3157,7 +3157,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3157
3157
|
});
|
3158
3158
|
continue;
|
3159
3159
|
}
|
3160
|
-
if (
|
3160
|
+
if (bt(l)) {
|
3161
3161
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3162
3162
|
a.push({
|
3163
3163
|
type: _.literal,
|
@@ -3165,7 +3165,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3165
3165
|
});
|
3166
3166
|
continue;
|
3167
3167
|
}
|
3168
|
-
if (
|
3168
|
+
if (dt(l)) {
|
3169
3169
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3170
3170
|
a.push({
|
3171
3171
|
type: _.literal,
|
@@ -3218,17 +3218,17 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3218
3218
|
continue;
|
3219
3219
|
}
|
3220
3220
|
}
|
3221
|
-
return
|
3221
|
+
return dn(a);
|
3222
3222
|
}
|
3223
3223
|
function xn(e, t) {
|
3224
|
-
return t ?
|
3225
|
-
return r[n] =
|
3224
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3225
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3226
3226
|
}, {})) : e;
|
3227
3227
|
}
|
3228
3228
|
function En(e, t) {
|
3229
3229
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3230
3230
|
return r[n] = xn(e[n], t[n]), r;
|
3231
|
-
},
|
3231
|
+
}, d({}, e)) : e;
|
3232
3232
|
}
|
3233
3233
|
function ye(e) {
|
3234
3234
|
return {
|
@@ -3253,7 +3253,7 @@ function yn(e) {
|
|
3253
3253
|
getNumberFormat: ge(function() {
|
3254
3254
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3255
3255
|
r[n] = arguments[n];
|
3256
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3256
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3257
3257
|
}, {
|
3258
3258
|
cache: ye(e.number),
|
3259
3259
|
strategy: xe.variadic
|
@@ -3261,7 +3261,7 @@ function yn(e) {
|
|
3261
3261
|
getDateTimeFormat: ge(function() {
|
3262
3262
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3263
3263
|
r[n] = arguments[n];
|
3264
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3264
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3265
3265
|
}, {
|
3266
3266
|
cache: ye(e.dateTime),
|
3267
3267
|
strategy: xe.variadic
|
@@ -3269,7 +3269,7 @@ function yn(e) {
|
|
3269
3269
|
getPluralRules: ge(function() {
|
3270
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3271
3271
|
r[n] = arguments[n];
|
3272
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3272
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3273
3273
|
}, {
|
3274
3274
|
cache: ye(e.pluralRules),
|
3275
3275
|
strategy: xe.variadic
|
@@ -3309,7 +3309,7 @@ var _n = (
|
|
3309
3309
|
var o = i || {};
|
3310
3310
|
o.formatters;
|
3311
3311
|
var a = Or(o, ["formatters"]);
|
3312
|
-
this.ast = e.__parse(t,
|
3312
|
+
this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
|
3313
3313
|
} else
|
3314
3314
|
this.ast = t;
|
3315
3315
|
if (!Array.isArray(this.ast))
|