@formatjs/intl-numberformat 8.15.5 → 9.0.0
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/index.d.ts +1 -1
- package/index.js +1 -4
- package/package.json +14 -7
- package/polyfill-force.js +6 -8
- package/polyfill.iife.js +90 -91
- package/polyfill.js +8 -10
- package/should-polyfill.js +6 -9
- package/src/core.d.ts +1 -1
- package/src/core.js +59 -65
- package/src/currency-digits.generated.js +1 -4
- package/src/get_internal_slots.js +1 -4
- package/src/numbering-systems.generated.js +1 -4
- package/src/to_locale_string.js +3 -6
- package/src/types.js +1 -2
- package/supported-locales.generated.js +1 -4
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/polyfill-force.d.ts +0 -1
- package/lib/polyfill-force.js +0 -9
- package/lib/polyfill.d.ts +0 -1
- package/lib/polyfill.js +0 -12
- package/lib/should-polyfill.d.ts +0 -1
- package/lib/should-polyfill.js +0 -78
- package/lib/src/core.d.ts +0 -6
- package/lib/src/core.js +0 -238
- package/lib/src/currency-digits.generated.d.ts +0 -1
- package/lib/src/currency-digits.generated.js +0 -75
- package/lib/src/get_internal_slots.d.ts +0 -2
- package/lib/src/get_internal_slots.js +0 -10
- package/lib/src/numbering-systems.generated.d.ts +0 -1
- package/lib/src/numbering-systems.generated.js +0 -1
- package/lib/src/to_locale_string.d.ts +0 -6
- package/lib/src/to_locale_string.js +0 -10
- package/lib/src/types.d.ts +0 -21
- package/lib/src/types.js +0 -1
- package/lib/supported-locales.generated.d.ts +0 -1
- package/lib/supported-locales.generated.js +0 -1
package/polyfill.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CanonicalizeLocaleList.js
|
|
3
3
|
function CanonicalizeLocaleList(locales) {
|
|
4
4
|
return Intl.getCanonicalLocales(locales);
|
|
5
5
|
}
|
|
@@ -2364,12 +2364,11 @@
|
|
|
2364
2364
|
var Decimal = P.constructor = clone(DEFAULTS);
|
|
2365
2365
|
LN10 = new Decimal(LN10);
|
|
2366
2366
|
PI = new Decimal(PI);
|
|
2367
|
-
var decimal_default = Decimal;
|
|
2368
2367
|
|
|
2369
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2370
|
-
var TEN = new
|
|
2371
|
-
var ZERO = new
|
|
2372
|
-
var NEGATIVE_ZERO = new
|
|
2368
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/constants.js
|
|
2369
|
+
var TEN = new Decimal(10);
|
|
2370
|
+
var ZERO = new Decimal(0);
|
|
2371
|
+
var NEGATIVE_ZERO = new Decimal(-0);
|
|
2373
2372
|
|
|
2374
2373
|
// node_modules/.aspect_rules_js/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
2375
2374
|
var extendStatics = function(d, b) {
|
|
@@ -2403,7 +2402,7 @@
|
|
|
2403
2402
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2404
2403
|
}
|
|
2405
2404
|
|
|
2406
|
-
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/
|
|
2405
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
2407
2406
|
function memoize(fn, options) {
|
|
2408
2407
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
2409
2408
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -2476,12 +2475,12 @@
|
|
|
2476
2475
|
monadic: strategyMonadic
|
|
2477
2476
|
};
|
|
2478
2477
|
|
|
2479
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2478
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js
|
|
2480
2479
|
function repeat(s, times) {
|
|
2481
2480
|
if (typeof s.repeat === "function") {
|
|
2482
2481
|
return s.repeat(times);
|
|
2483
2482
|
}
|
|
2484
|
-
var arr =
|
|
2483
|
+
var arr = Array.from({ length: times });
|
|
2485
2484
|
for (var i = 0; i < arr.length; i++) {
|
|
2486
2485
|
arr[i] = s;
|
|
2487
2486
|
}
|
|
@@ -2555,7 +2554,7 @@
|
|
|
2555
2554
|
strategy: strategies.variadic
|
|
2556
2555
|
});
|
|
2557
2556
|
|
|
2558
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2557
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/262.js
|
|
2559
2558
|
function ToString(o) {
|
|
2560
2559
|
if (typeof o === "symbol") {
|
|
2561
2560
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
@@ -2569,7 +2568,7 @@
|
|
|
2569
2568
|
return Object(arg);
|
|
2570
2569
|
}
|
|
2571
2570
|
function ArrayCreate(len) {
|
|
2572
|
-
return
|
|
2571
|
+
return Array.from({ length: len });
|
|
2573
2572
|
}
|
|
2574
2573
|
function HasOwnProperty(o, prop) {
|
|
2575
2574
|
return Object.prototype.hasOwnProperty.call(o, prop);
|
|
@@ -2645,7 +2644,7 @@
|
|
|
2645
2644
|
return input;
|
|
2646
2645
|
}
|
|
2647
2646
|
|
|
2648
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2647
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CoerceOptionsToObject.js
|
|
2649
2648
|
function CoerceOptionsToObject(options) {
|
|
2650
2649
|
if (typeof options === "undefined") {
|
|
2651
2650
|
return /* @__PURE__ */ Object.create(null);
|
|
@@ -2653,7 +2652,7 @@
|
|
|
2653
2652
|
return ToObject(options);
|
|
2654
2653
|
}
|
|
2655
2654
|
|
|
2656
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2655
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/DefaultNumberOption.js
|
|
2657
2656
|
function DefaultNumberOption(inputVal, min2, max2, fallback) {
|
|
2658
2657
|
if (inputVal === void 0) {
|
|
2659
2658
|
return fallback;
|
|
@@ -2665,13 +2664,13 @@
|
|
|
2665
2664
|
return Math.floor(val);
|
|
2666
2665
|
}
|
|
2667
2666
|
|
|
2668
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2667
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetNumberOption.js
|
|
2669
2668
|
function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
2670
2669
|
var val = options[property];
|
|
2671
2670
|
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
2672
2671
|
}
|
|
2673
2672
|
|
|
2674
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2673
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetOption.js
|
|
2675
2674
|
function GetOption(opts, prop, type, values, fallback) {
|
|
2676
2675
|
if (typeof opts !== "object") {
|
|
2677
2676
|
throw new TypeError("Options must be an object");
|
|
@@ -2697,7 +2696,7 @@
|
|
|
2697
2696
|
return fallback;
|
|
2698
2697
|
}
|
|
2699
2698
|
|
|
2700
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2699
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetStringOrBooleanOption.js
|
|
2701
2700
|
function GetStringOrBooleanOption(opts, prop, values, trueValue, falsyValue, fallback) {
|
|
2702
2701
|
var value = opts[prop];
|
|
2703
2702
|
if (value === void 0) {
|
|
@@ -2720,7 +2719,7 @@
|
|
|
2720
2719
|
return value;
|
|
2721
2720
|
}
|
|
2722
2721
|
|
|
2723
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2722
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.js
|
|
2724
2723
|
var SANCTIONED_UNITS = [
|
|
2725
2724
|
"angle-degree",
|
|
2726
2725
|
"area-acre",
|
|
@@ -2774,7 +2773,7 @@
|
|
|
2774
2773
|
return SIMPLE_UNITS.indexOf(unitIdentifier) > -1;
|
|
2775
2774
|
}
|
|
2776
2775
|
|
|
2777
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2776
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedCurrencyCode.js
|
|
2778
2777
|
function toUpperCase(str) {
|
|
2779
2778
|
return str.replace(/([a-z])/g, function(_, c) {
|
|
2780
2779
|
return c.toUpperCase();
|
|
@@ -2792,7 +2791,7 @@
|
|
|
2792
2791
|
return true;
|
|
2793
2792
|
}
|
|
2794
2793
|
|
|
2795
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2794
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedUnitIdentifier.js
|
|
2796
2795
|
function toLowerCase(str) {
|
|
2797
2796
|
return str.replace(/([A-Z])/g, function(_, c) {
|
|
2798
2797
|
return c.toLowerCase();
|
|
@@ -2814,7 +2813,7 @@
|
|
|
2814
2813
|
return true;
|
|
2815
2814
|
}
|
|
2816
2815
|
|
|
2817
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2816
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
2818
2817
|
function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
2819
2818
|
if (x.eq(r1))
|
|
2820
2819
|
return r1;
|
|
@@ -2848,7 +2847,7 @@
|
|
|
2848
2847
|
return r2;
|
|
2849
2848
|
}
|
|
2850
2849
|
|
|
2851
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2850
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CollapseNumberRange.js
|
|
2852
2851
|
var PART_TYPES_TO_COLLAPSE = /* @__PURE__ */ new Set([
|
|
2853
2852
|
"unit",
|
|
2854
2853
|
"exponentMinusSign",
|
|
@@ -2900,8 +2899,8 @@
|
|
|
2900
2899
|
return result;
|
|
2901
2900
|
}
|
|
2902
2901
|
|
|
2903
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2904
|
-
|
|
2902
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.js
|
|
2903
|
+
Decimal.set({
|
|
2905
2904
|
toExpPos: 100
|
|
2906
2905
|
});
|
|
2907
2906
|
function ComputeExponentForMagnitude(internalSlots, magnitude) {
|
|
@@ -2928,7 +2927,7 @@
|
|
|
2928
2927
|
if (!thresholdMap) {
|
|
2929
2928
|
return 0;
|
|
2930
2929
|
}
|
|
2931
|
-
var num =
|
|
2930
|
+
var num = Decimal.pow(10, magnitude).toString();
|
|
2932
2931
|
var thresholds = Object.keys(thresholdMap);
|
|
2933
2932
|
if (num < thresholds[0]) {
|
|
2934
2933
|
return 0;
|
|
@@ -2950,7 +2949,7 @@
|
|
|
2950
2949
|
}
|
|
2951
2950
|
}
|
|
2952
2951
|
|
|
2953
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2952
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
2954
2953
|
var negativeMapping = {
|
|
2955
2954
|
ceil: "zero",
|
|
2956
2955
|
floor: "infinity",
|
|
@@ -2980,15 +2979,15 @@
|
|
|
2980
2979
|
return positiveMapping[roundingMode];
|
|
2981
2980
|
}
|
|
2982
2981
|
|
|
2983
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
2984
|
-
|
|
2982
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
2983
|
+
Decimal.set({
|
|
2985
2984
|
toExpPos: 100
|
|
2986
2985
|
});
|
|
2987
2986
|
function ToRawFixedFn(n, f) {
|
|
2988
|
-
return n.times(
|
|
2987
|
+
return n.times(Decimal.pow(10, -f));
|
|
2989
2988
|
}
|
|
2990
2989
|
function findN1R1(x, f, roundingIncrement) {
|
|
2991
|
-
var nx = x.times(
|
|
2990
|
+
var nx = x.times(Decimal.pow(10, f)).floor();
|
|
2992
2991
|
var n1 = nx.div(roundingIncrement).floor().times(roundingIncrement);
|
|
2993
2992
|
var r1 = ToRawFixedFn(n1, f);
|
|
2994
2993
|
return {
|
|
@@ -2997,7 +2996,7 @@
|
|
|
2997
2996
|
};
|
|
2998
2997
|
}
|
|
2999
2998
|
function findN2R2(x, f, roundingIncrement) {
|
|
3000
|
-
var nx = x.times(
|
|
2999
|
+
var nx = x.times(Decimal.pow(10, f)).ceil();
|
|
3001
3000
|
var n2 = nx.div(roundingIncrement).ceil().times(roundingIncrement);
|
|
3002
3001
|
var r2 = ToRawFixedFn(n2, f);
|
|
3003
3002
|
return {
|
|
@@ -3055,16 +3054,16 @@
|
|
|
3055
3054
|
};
|
|
3056
3055
|
}
|
|
3057
3056
|
|
|
3058
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3057
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
3059
3058
|
function findN1E1R1(x, p) {
|
|
3060
|
-
var maxN1 =
|
|
3061
|
-
var minN1 =
|
|
3059
|
+
var maxN1 = Decimal.pow(10, p);
|
|
3060
|
+
var minN1 = Decimal.pow(10, p - 1);
|
|
3062
3061
|
var maxE1 = x.div(minN1).log(10).plus(p).minus(1).ceil();
|
|
3063
3062
|
var currentE1 = maxE1;
|
|
3064
3063
|
while (true) {
|
|
3065
|
-
var currentN1 = x.div(
|
|
3064
|
+
var currentN1 = x.div(Decimal.pow(10, currentE1.minus(p).plus(1))).floor();
|
|
3066
3065
|
if (currentN1.lessThan(maxN1) && currentN1.greaterThanOrEqualTo(minN1)) {
|
|
3067
|
-
var currentR1 = currentN1.times(
|
|
3066
|
+
var currentR1 = currentN1.times(Decimal.pow(10, currentE1.minus(p).plus(1)));
|
|
3068
3067
|
if (currentR1.lessThanOrEqualTo(x)) {
|
|
3069
3068
|
return {
|
|
3070
3069
|
n1: currentN1,
|
|
@@ -3077,14 +3076,14 @@
|
|
|
3077
3076
|
}
|
|
3078
3077
|
}
|
|
3079
3078
|
function findN2E2R2(x, p) {
|
|
3080
|
-
var maxN2 =
|
|
3081
|
-
var minN2 =
|
|
3079
|
+
var maxN2 = Decimal.pow(10, p);
|
|
3080
|
+
var minN2 = Decimal.pow(10, p - 1);
|
|
3082
3081
|
var minE2 = x.div(maxN2).log(10).plus(p).minus(1).floor();
|
|
3083
3082
|
var currentE2 = minE2;
|
|
3084
3083
|
while (true) {
|
|
3085
|
-
var currentN2 = x.div(
|
|
3084
|
+
var currentN2 = x.div(Decimal.pow(10, currentE2.minus(p).plus(1))).ceil();
|
|
3086
3085
|
if (currentN2.lessThan(maxN2) && currentN2.greaterThanOrEqualTo(minN2)) {
|
|
3087
|
-
var currentR2 = currentN2.times(
|
|
3086
|
+
var currentR2 = currentN2.times(Decimal.pow(10, currentE2.minus(p).plus(1)));
|
|
3088
3087
|
if (currentR2.greaterThanOrEqualTo(x)) {
|
|
3089
3088
|
return {
|
|
3090
3089
|
n2: currentN2,
|
|
@@ -3151,7 +3150,7 @@
|
|
|
3151
3150
|
};
|
|
3152
3151
|
}
|
|
3153
3152
|
|
|
3154
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3153
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
3155
3154
|
function FormatNumericToString(intlObject, _x) {
|
|
3156
3155
|
var x = _x;
|
|
3157
3156
|
var sign2;
|
|
@@ -3222,7 +3221,7 @@
|
|
|
3222
3221
|
return { roundedNumber: x, formattedString: string };
|
|
3223
3222
|
}
|
|
3224
3223
|
|
|
3225
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3224
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponent.js
|
|
3226
3225
|
function ComputeExponent(internalSlots, x) {
|
|
3227
3226
|
if (x.isZero()) {
|
|
3228
3227
|
return [0, 0];
|
|
@@ -3232,7 +3231,7 @@
|
|
|
3232
3231
|
}
|
|
3233
3232
|
var magnitude = x.log(10).floor();
|
|
3234
3233
|
var exponent = ComputeExponentForMagnitude(internalSlots, magnitude);
|
|
3235
|
-
x = x.times(
|
|
3234
|
+
x = x.times(Decimal.pow(10, -exponent));
|
|
3236
3235
|
var formatNumberResult = FormatNumericToString(internalSlots, x);
|
|
3237
3236
|
if (formatNumberResult.roundedNumber.isZero()) {
|
|
3238
3237
|
return [exponent, magnitude.toNumber()];
|
|
@@ -3247,16 +3246,16 @@
|
|
|
3247
3246
|
];
|
|
3248
3247
|
}
|
|
3249
3248
|
|
|
3250
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3249
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CurrencyDigits.js
|
|
3251
3250
|
function CurrencyDigits(c, _a) {
|
|
3252
3251
|
var currencyDigitsData2 = _a.currencyDigitsData;
|
|
3253
3252
|
return HasOwnProperty(currencyDigitsData2, c) ? currencyDigitsData2[c] : 2;
|
|
3254
3253
|
}
|
|
3255
3254
|
|
|
3256
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3255
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/regex.generated.js
|
|
3257
3256
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
3258
3257
|
|
|
3259
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
3258
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/digit-mapping.generated.js
|
|
3260
3259
|
var digitMapping = {
|
|
3261
3260
|
"adlm": [
|
|
3262
3261
|
"\u{1E950}",
|
|
@@ -4040,10 +4039,10 @@
|
|
|
4040
4039
|
]
|
|
4041
4040
|
};
|
|
4042
4041
|
|
|
4043
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4042
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/format_to_parts.js
|
|
4044
4043
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
4045
4044
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
4046
|
-
var CLDR_NUMBER_PATTERN = /[#0](?:[
|
|
4045
|
+
var CLDR_NUMBER_PATTERN = /[#0](?:[.,][#0]+)*/g;
|
|
4047
4046
|
function formatToParts(numberResult, data2, pl, options) {
|
|
4048
4047
|
var _a;
|
|
4049
4048
|
var sign2 = numberResult.sign, exponent = numberResult.exponent, magnitude = numberResult.magnitude;
|
|
@@ -4100,7 +4099,7 @@
|
|
|
4100
4099
|
numberPattern = numberPattern.replace("{0}\xA4", "{0}".concat(beforeCurrency, "\xA4"));
|
|
4101
4100
|
}
|
|
4102
4101
|
}
|
|
4103
|
-
var numberPatternParts = numberPattern.split(/({c:[^}]+}|\{0\}|[
|
|
4102
|
+
var numberPatternParts = numberPattern.split(/({c:[^}]+}|\{0\}|[¤%\-+])/g);
|
|
4104
4103
|
var numberParts = [];
|
|
4105
4104
|
var symbols = data2.numbers.symbols[numberingSystem] || data2.numbers.symbols[defaultNumberingSystem];
|
|
4106
4105
|
for (var _i = 0, numberPatternParts_1 = numberPatternParts; _i < numberPatternParts_1.length; _i++) {
|
|
@@ -4138,7 +4137,7 @@
|
|
|
4138
4137
|
numberParts.push({ type: "currency", value: nonNameCurrencyPart });
|
|
4139
4138
|
break;
|
|
4140
4139
|
default:
|
|
4141
|
-
if (
|
|
4140
|
+
if (part.startsWith("{c:")) {
|
|
4142
4141
|
numberParts.push({
|
|
4143
4142
|
type: "compact",
|
|
4144
4143
|
value: part.substring(3, part.length - 1)
|
|
@@ -4156,7 +4155,7 @@
|
|
|
4156
4155
|
var unitName = void 0;
|
|
4157
4156
|
var currencyNameData = data2.currencies[options.currency];
|
|
4158
4157
|
if (currencyNameData) {
|
|
4159
|
-
unitName = selectPlural(pl, numberResult.roundedNumber.times(
|
|
4158
|
+
unitName = selectPlural(pl, numberResult.roundedNumber.times(Decimal.pow(10, exponent)).toNumber(), currencyNameData.displayName);
|
|
4160
4159
|
} else {
|
|
4161
4160
|
unitName = options.currency;
|
|
4162
4161
|
}
|
|
@@ -4188,11 +4187,11 @@
|
|
|
4188
4187
|
var unitData = data2.units.simple[unit];
|
|
4189
4188
|
var unitPattern = void 0;
|
|
4190
4189
|
if (unitData) {
|
|
4191
|
-
unitPattern = selectPlural(pl, numberResult.roundedNumber.times(
|
|
4190
|
+
unitPattern = selectPlural(pl, numberResult.roundedNumber.times(Decimal.pow(10, exponent)).toNumber(), data2.units.simple[unit][unitDisplay]);
|
|
4192
4191
|
} else {
|
|
4193
4192
|
var _c = unit.split("-per-"), numeratorUnit = _c[0], denominatorUnit = _c[1];
|
|
4194
4193
|
unitData = data2.units.simple[numeratorUnit];
|
|
4195
|
-
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber.times(
|
|
4194
|
+
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber.times(Decimal.pow(10, exponent)).toNumber(), data2.units.simple[numeratorUnit][unitDisplay]);
|
|
4196
4195
|
var perUnitPattern = data2.units.simple[denominatorUnit].perUnit[unitDisplay];
|
|
4197
4196
|
if (perUnitPattern) {
|
|
4198
4197
|
unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
|
|
@@ -4298,7 +4297,7 @@
|
|
|
4298
4297
|
result.push({ type: "exponentMinusSign", value: symbols.minusSign });
|
|
4299
4298
|
exponent = -exponent;
|
|
4300
4299
|
}
|
|
4301
|
-
var exponentResult = ToRawFixed(new
|
|
4300
|
+
var exponentResult = ToRawFixed(new Decimal(exponent), 0, 0, roundingIncrement, unsignedRoundingMode);
|
|
4302
4301
|
result.push({
|
|
4303
4302
|
type: "exponentInteger",
|
|
4304
4303
|
value: exponentResult.formattedString
|
|
@@ -4346,14 +4345,14 @@
|
|
|
4346
4345
|
if (pattern === "0") {
|
|
4347
4346
|
return null;
|
|
4348
4347
|
}
|
|
4349
|
-
pattern = getPatternForSign(pattern, sign2).replace(/([^\s
|
|
4348
|
+
pattern = getPatternForSign(pattern, sign2).replace(/([^\s;\-+\d¤]+)/g, "{c:$1}").replace(/0+/, "0");
|
|
4350
4349
|
return pattern;
|
|
4351
4350
|
}
|
|
4352
4351
|
function selectPlural(pl, x, rules) {
|
|
4353
4352
|
return rules[pl.select(x)] || rules.other;
|
|
4354
4353
|
}
|
|
4355
4354
|
|
|
4356
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4355
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatApproximately.js
|
|
4357
4356
|
function FormatApproximately(internalSlots, result) {
|
|
4358
4357
|
var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
|
|
4359
4358
|
var approximatelySign = symbols.approximatelySign;
|
|
@@ -4361,7 +4360,7 @@
|
|
|
4361
4360
|
return result;
|
|
4362
4361
|
}
|
|
4363
4362
|
|
|
4364
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4363
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberPattern.js
|
|
4365
4364
|
function PartitionNumberPattern(internalSlots, _x) {
|
|
4366
4365
|
var _a;
|
|
4367
4366
|
var x = _x;
|
|
@@ -4383,7 +4382,7 @@
|
|
|
4383
4382
|
;
|
|
4384
4383
|
_a = ComputeExponent(internalSlots, x), exponent = _a[0], // IMPL: We need to record the magnitude of the number
|
|
4385
4384
|
magnitude = _a[1];
|
|
4386
|
-
x = x.times(
|
|
4385
|
+
x = x.times(Decimal.pow(10, -exponent));
|
|
4387
4386
|
}
|
|
4388
4387
|
var formatNumberResult = FormatNumericToString(internalSlots, x);
|
|
4389
4388
|
n = formatNumberResult.formattedString;
|
|
@@ -4437,7 +4436,7 @@
|
|
|
4437
4436
|
}, internalSlots.dataLocaleData, pl, internalSlots);
|
|
4438
4437
|
}
|
|
4439
4438
|
|
|
4440
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4439
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumeric.js
|
|
4441
4440
|
function FormatNumeric(internalSlots, x) {
|
|
4442
4441
|
var parts = PartitionNumberPattern(internalSlots, x);
|
|
4443
4442
|
return parts.map(function(p) {
|
|
@@ -4445,7 +4444,7 @@
|
|
|
4445
4444
|
}).join("");
|
|
4446
4445
|
}
|
|
4447
4446
|
|
|
4448
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4447
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberRangePattern.js
|
|
4449
4448
|
function PartitionNumberRangePattern(numberFormat, x, y, _a) {
|
|
4450
4449
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
4451
4450
|
invariant(!x.isNaN() && !y.isNaN(), "Input must be a number", RangeError);
|
|
@@ -4473,7 +4472,7 @@
|
|
|
4473
4472
|
return CollapseNumberRange(numberFormat, result, { getInternalSlots: getInternalSlots2 });
|
|
4474
4473
|
}
|
|
4475
4474
|
|
|
4476
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4475
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRange.js
|
|
4477
4476
|
function FormatNumericRange(numberFormat, x, y, _a) {
|
|
4478
4477
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
4479
4478
|
var parts = PartitionNumberRangePattern(numberFormat, x, y, {
|
|
@@ -4484,7 +4483,7 @@
|
|
|
4484
4483
|
}).join("");
|
|
4485
4484
|
}
|
|
4486
4485
|
|
|
4487
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4486
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRangeToParts.js
|
|
4488
4487
|
function FormatNumericRangeToParts(numberFormat, x, y, _a) {
|
|
4489
4488
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
4490
4489
|
var parts = PartitionNumberRangePattern(numberFormat, x, y, {
|
|
@@ -4500,7 +4499,7 @@
|
|
|
4500
4499
|
});
|
|
4501
4500
|
}
|
|
4502
4501
|
|
|
4503
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
4502
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToParts.js
|
|
4504
4503
|
function FormatNumericToParts(nf, x, implDetails) {
|
|
4505
4504
|
var parts = PartitionNumberPattern(implDetails.getInternalSlots(nf), x);
|
|
4506
4505
|
var result = ArrayCreate(0);
|
|
@@ -4514,12 +4513,12 @@
|
|
|
4514
4513
|
return result;
|
|
4515
4514
|
}
|
|
4516
4515
|
|
|
4517
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
4516
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
4518
4517
|
function CanonicalizeLocaleList2(locales) {
|
|
4519
4518
|
return Intl.getCanonicalLocales(locales);
|
|
4520
4519
|
}
|
|
4521
4520
|
|
|
4522
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
4521
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
4523
4522
|
var data = {
|
|
4524
4523
|
supplemental: {
|
|
4525
4524
|
languageMatching: {
|
|
@@ -7141,7 +7140,7 @@
|
|
|
7141
7140
|
}
|
|
7142
7141
|
};
|
|
7143
7142
|
|
|
7144
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
7143
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/regions.generated.js
|
|
7145
7144
|
var regions = {
|
|
7146
7145
|
"001": [
|
|
7147
7146
|
"001",
|
|
@@ -8476,7 +8475,7 @@
|
|
|
8476
8475
|
]
|
|
8477
8476
|
};
|
|
8478
8477
|
|
|
8479
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8478
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/utils.js
|
|
8480
8479
|
var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
8481
8480
|
function invariant2(condition, message, Err) {
|
|
8482
8481
|
if (Err === void 0) {
|
|
@@ -8630,7 +8629,7 @@
|
|
|
8630
8629
|
return result;
|
|
8631
8630
|
}
|
|
8632
8631
|
|
|
8633
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8632
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
|
|
8634
8633
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
8635
8634
|
var foundLocale;
|
|
8636
8635
|
var extension;
|
|
@@ -8655,7 +8654,7 @@
|
|
|
8655
8654
|
};
|
|
8656
8655
|
}
|
|
8657
8656
|
|
|
8658
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8657
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeUValue.js
|
|
8659
8658
|
function CanonicalizeUValue(ukey, uvalue) {
|
|
8660
8659
|
var lowerValue = uvalue.toLowerCase();
|
|
8661
8660
|
invariant2(ukey !== void 0, "ukey must be defined");
|
|
@@ -8663,12 +8662,12 @@
|
|
|
8663
8662
|
return canonicalized;
|
|
8664
8663
|
}
|
|
8665
8664
|
|
|
8666
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8665
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeUnicodeLocaleId.js
|
|
8667
8666
|
function CanonicalizeUnicodeLocaleId(locale) {
|
|
8668
8667
|
return Intl.getCanonicalLocales(locale)[0];
|
|
8669
8668
|
}
|
|
8670
8669
|
|
|
8671
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8670
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/InsertUnicodeExtensionAndCanonicalize.js
|
|
8672
8671
|
function InsertUnicodeExtensionAndCanonicalize(locale, attributes, keywords) {
|
|
8673
8672
|
invariant2(locale.indexOf("-u-") === -1, "Expected locale to not have a Unicode locale extension");
|
|
8674
8673
|
var extension = "-u";
|
|
@@ -8699,7 +8698,7 @@
|
|
|
8699
8698
|
return CanonicalizeUnicodeLocaleId(newLocale);
|
|
8700
8699
|
}
|
|
8701
8700
|
|
|
8702
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8701
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
|
|
8703
8702
|
function BestAvailableLocale(availableLocales, locale) {
|
|
8704
8703
|
var candidate = locale;
|
|
8705
8704
|
while (true) {
|
|
@@ -8717,7 +8716,7 @@
|
|
|
8717
8716
|
}
|
|
8718
8717
|
}
|
|
8719
8718
|
|
|
8720
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8719
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
|
|
8721
8720
|
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
8722
8721
|
var result = { locale: "" };
|
|
8723
8722
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -8736,7 +8735,7 @@
|
|
|
8736
8735
|
return result;
|
|
8737
8736
|
}
|
|
8738
8737
|
|
|
8739
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8738
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionComponents.js
|
|
8740
8739
|
function UnicodeExtensionComponents(extension) {
|
|
8741
8740
|
invariant2(extension === extension.toLowerCase(), "Expected extension to be lowercase");
|
|
8742
8741
|
invariant2(extension.slice(0, 3) === "-u-", "Expected extension to be a Unicode locale extension");
|
|
@@ -8777,7 +8776,7 @@
|
|
|
8777
8776
|
return { attributes, keywords };
|
|
8778
8777
|
}
|
|
8779
8778
|
|
|
8780
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8779
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
|
|
8781
8780
|
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
8782
8781
|
var _a;
|
|
8783
8782
|
var matcher = options.localeMatcher;
|
|
@@ -8863,7 +8862,7 @@
|
|
|
8863
8862
|
return result;
|
|
8864
8863
|
}
|
|
8865
8864
|
|
|
8866
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8865
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
|
|
8867
8866
|
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
8868
8867
|
var subset = [];
|
|
8869
8868
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -8877,7 +8876,7 @@
|
|
|
8877
8876
|
return subset;
|
|
8878
8877
|
}
|
|
8879
8878
|
|
|
8880
|
-
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/
|
|
8879
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/index.js
|
|
8881
8880
|
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
8882
8881
|
return ResolveLocale(availableLocales, CanonicalizeLocaleList2(requestedLocales), {
|
|
8883
8882
|
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
@@ -8886,7 +8885,7 @@
|
|
|
8886
8885
|
}).locale;
|
|
8887
8886
|
}
|
|
8888
8887
|
|
|
8889
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
8888
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
8890
8889
|
var VALID_ROUNDING_INCREMENTS = /* @__PURE__ */ new Set([
|
|
8891
8890
|
1,
|
|
8892
8891
|
2,
|
|
@@ -8996,7 +8995,7 @@
|
|
|
8996
8995
|
}
|
|
8997
8996
|
}
|
|
8998
8997
|
|
|
8999
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
8998
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
|
|
9000
8999
|
function SetNumberFormatUnitOptions(internalSlots, options) {
|
|
9001
9000
|
if (options === void 0) {
|
|
9002
9001
|
options = /* @__PURE__ */ Object.create(null);
|
|
@@ -9023,7 +9022,7 @@
|
|
|
9023
9022
|
}
|
|
9024
9023
|
}
|
|
9025
9024
|
|
|
9026
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
9025
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
|
|
9027
9026
|
function InitializeNumberFormat(nf, locales, opts, _a) {
|
|
9028
9027
|
var getInternalSlots2 = _a.getInternalSlots, localeData = _a.localeData, availableLocales = _a.availableLocales, numberingSystemNames2 = _a.numberingSystemNames, getDefaultLocale = _a.getDefaultLocale, currencyDigitsData2 = _a.currencyDigitsData;
|
|
9029
9028
|
var requestedLocales = CanonicalizeLocaleList(locales);
|
|
@@ -9081,7 +9080,7 @@
|
|
|
9081
9080
|
return nf;
|
|
9082
9081
|
}
|
|
9083
9082
|
|
|
9084
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
9083
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
9085
9084
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
9086
9085
|
var matcher = "best fit";
|
|
9087
9086
|
if (options !== void 0) {
|
|
@@ -9094,7 +9093,7 @@
|
|
|
9094
9093
|
return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
9095
9094
|
}
|
|
9096
9095
|
|
|
9097
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
9096
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/data.js
|
|
9098
9097
|
var MissingLocaleDataError = (
|
|
9099
9098
|
/** @class */
|
|
9100
9099
|
function(_super) {
|
|
@@ -9108,7 +9107,7 @@
|
|
|
9108
9107
|
}(Error)
|
|
9109
9108
|
);
|
|
9110
9109
|
|
|
9111
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
9110
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
9112
9111
|
var RangePatternType;
|
|
9113
9112
|
(function(RangePatternType2) {
|
|
9114
9113
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -9116,28 +9115,28 @@
|
|
|
9116
9115
|
RangePatternType2["endRange"] = "endRange";
|
|
9117
9116
|
})(RangePatternType || (RangePatternType = {}));
|
|
9118
9117
|
|
|
9119
|
-
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/
|
|
9118
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/ToIntlMathematicalValue.js
|
|
9120
9119
|
function ToIntlMathematicalValue(input) {
|
|
9121
9120
|
var primValue = ToPrimitive(input, "number");
|
|
9122
9121
|
if (typeof primValue === "bigint") {
|
|
9123
|
-
return new
|
|
9122
|
+
return new Decimal(primValue);
|
|
9124
9123
|
}
|
|
9125
9124
|
if (primValue === void 0) {
|
|
9126
|
-
return new
|
|
9125
|
+
return new Decimal(NaN);
|
|
9127
9126
|
}
|
|
9128
9127
|
if (primValue === true) {
|
|
9129
|
-
return new
|
|
9128
|
+
return new Decimal(1);
|
|
9130
9129
|
}
|
|
9131
9130
|
if (primValue === false) {
|
|
9132
|
-
return new
|
|
9131
|
+
return new Decimal(0);
|
|
9133
9132
|
}
|
|
9134
9133
|
if (primValue === null) {
|
|
9135
|
-
return new
|
|
9134
|
+
return new Decimal(0);
|
|
9136
9135
|
}
|
|
9137
9136
|
try {
|
|
9138
|
-
return new
|
|
9139
|
-
} catch (
|
|
9140
|
-
return new
|
|
9137
|
+
return new Decimal(primValue);
|
|
9138
|
+
} catch (_a) {
|
|
9139
|
+
return new Decimal(NaN);
|
|
9141
9140
|
}
|
|
9142
9141
|
}
|
|
9143
9142
|
|