@formatjs/intl-durationformat 0.10.3 → 0.10.5
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 +78 -1
- package/index.js +2179 -1
- package/index.js.map +1 -0
- package/package.json +2 -3
- package/polyfill-force.d.ts +1 -1
- package/polyfill-force.js +2182 -7
- package/polyfill-force.js.map +1 -0
- package/polyfill.d.ts +1 -1
- package/polyfill.js +2187 -10
- package/polyfill.js.map +1 -0
- package/should-polyfill.d.ts +5 -1
- package/should-polyfill.js +6 -1
- package/should-polyfill.js.map +1 -0
- package/src/abstract/DurationRecordSign.d.ts +0 -2
- package/src/abstract/DurationRecordSign.js +0 -13
- package/src/abstract/GetDurationUnitOptions.d.ts +0 -4
- package/src/abstract/GetDurationUnitOptions.js +0 -36
- package/src/abstract/IsValidDurationRecord.d.ts +0 -2
- package/src/abstract/IsValidDurationRecord.js +0 -18
- package/src/abstract/PartitionDurationFormatPattern.d.ts +0 -3
- package/src/abstract/PartitionDurationFormatPattern.js +0 -129
- package/src/abstract/ToDurationRecord.d.ts +0 -2
- package/src/abstract/ToDurationRecord.js +0 -60
- package/src/abstract/ToIntegerIfIntegral.d.ts +0 -1
- package/src/abstract/ToIntegerIfIntegral.js +0 -6
- package/src/constants.d.ts +0 -63
- package/src/constants.js +0 -85
- package/src/core.d.ts +0 -18
- package/src/core.js +0 -308
- package/src/get_internal_slots.d.ts +0 -2
- package/src/get_internal_slots.js +0 -9
- package/src/numbering-systems.generated.d.ts +0 -1
- package/src/numbering-systems.generated.js +0 -99
- package/src/time-separators.generated.d.ts +0 -2342
- package/src/time-separators.generated.js +0 -812
- package/src/types.d.ts +0 -108
- package/src/types.js +0 -1
package/polyfill-force.js
CHANGED
|
@@ -1,10 +1,2185 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { LookupSupportedLocales, ResolveLocale } from "@formatjs/intl-localematcher";
|
|
2
|
+
//#region packages/ecma262-abstract/OrdinaryHasInstance.js
|
|
3
|
+
function IsCallable$1(fn) {
|
|
4
|
+
return typeof fn === "function";
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* https://tc39.es/ecma262/#sec-ordinaryhasinstance
|
|
8
|
+
*/
|
|
9
|
+
function OrdinaryHasInstance(C, O, internalSlots) {
|
|
10
|
+
if (!IsCallable$1(C)) return false;
|
|
11
|
+
if (internalSlots?.boundTargetFunction) return O instanceof internalSlots?.boundTargetFunction;
|
|
12
|
+
if (typeof O !== "object") return false;
|
|
13
|
+
let P = C.prototype;
|
|
14
|
+
if (typeof P !== "object") throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");
|
|
15
|
+
return Object.prototype.isPrototypeOf.call(P, O);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region packages/ecma262-abstract/ToObject.js
|
|
19
|
+
/**
|
|
20
|
+
* https://tc39.es/ecma262/#sec-toobject
|
|
21
|
+
*/
|
|
22
|
+
function ToObject(arg) {
|
|
23
|
+
if (arg == null) throw new TypeError("undefined/null cannot be converted to object");
|
|
24
|
+
return Object(arg);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
28
|
+
/**
|
|
29
|
+
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
30
|
+
* @param locales
|
|
31
|
+
*/
|
|
32
|
+
function CanonicalizeLocaleList(locales) {
|
|
33
|
+
return Intl.getCanonicalLocales(locales);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region packages/ecma402-abstract/DefaultNumberOption.js
|
|
37
|
+
/**
|
|
38
|
+
* https://tc39.es/ecma402/#sec-defaultnumberoption
|
|
39
|
+
* @param val
|
|
40
|
+
* @param min
|
|
41
|
+
* @param max
|
|
42
|
+
* @param fallback
|
|
43
|
+
*/
|
|
44
|
+
function DefaultNumberOption(inputVal, min, max, fallback) {
|
|
45
|
+
if (inputVal === void 0) return fallback;
|
|
46
|
+
const val = Number(inputVal);
|
|
47
|
+
if (isNaN(val) || val < min || val > max) throw new RangeError(`${val} is outside of range [${min}, ${max}]`);
|
|
48
|
+
return Math.floor(val);
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region packages/ecma402-abstract/GetNumberOption.js
|
|
52
|
+
/**
|
|
53
|
+
* https://tc39.es/ecma402/#sec-getnumberoption
|
|
54
|
+
* @param options
|
|
55
|
+
* @param property
|
|
56
|
+
* @param min
|
|
57
|
+
* @param max
|
|
58
|
+
* @param fallback
|
|
59
|
+
*/
|
|
60
|
+
function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
61
|
+
const val = options[property];
|
|
62
|
+
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region packages/ecma262-abstract/ToString.js
|
|
66
|
+
/**
|
|
67
|
+
* https://tc39.es/ecma262/#sec-tostring
|
|
68
|
+
*/
|
|
69
|
+
function ToString(o) {
|
|
70
|
+
if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
|
|
71
|
+
return String(o);
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region packages/ecma402-abstract/GetOption.js
|
|
75
|
+
/**
|
|
76
|
+
* https://tc39.es/ecma402/#sec-getoption
|
|
77
|
+
* @param opts
|
|
78
|
+
* @param prop
|
|
79
|
+
* @param type
|
|
80
|
+
* @param values
|
|
81
|
+
* @param fallback
|
|
82
|
+
*/
|
|
83
|
+
function GetOption(opts, prop, type, values, fallback) {
|
|
84
|
+
if (typeof opts !== "object") throw new TypeError("Options must be an object");
|
|
85
|
+
let value = opts[prop];
|
|
86
|
+
if (value !== void 0) {
|
|
87
|
+
if (type !== "boolean" && type !== "string") throw new TypeError("invalid type");
|
|
88
|
+
if (type === "boolean") value = Boolean(value);
|
|
89
|
+
if (type === "string") value = ToString(value);
|
|
90
|
+
if (values !== void 0 && !values.filter((val) => val == value).length) throw new RangeError(`${value} is not within ${values.join(", ")}`);
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return fallback;
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region packages/ecma402-abstract/SupportedLocales.js
|
|
97
|
+
/**
|
|
98
|
+
* https://tc39.es/ecma402/#sec-supportedlocales
|
|
99
|
+
* @param availableLocales
|
|
100
|
+
* @param requestedLocales
|
|
101
|
+
* @param options
|
|
102
|
+
*/
|
|
103
|
+
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
104
|
+
let matcher = "best fit";
|
|
105
|
+
if (options !== void 0) {
|
|
106
|
+
options = ToObject(options);
|
|
107
|
+
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
108
|
+
}
|
|
109
|
+
if (matcher === "best fit") return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
110
|
+
return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
114
|
+
function memoize(fn, options) {
|
|
115
|
+
const cache = options && options.cache ? options.cache : cacheDefault;
|
|
116
|
+
const serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
117
|
+
return (options && options.strategy ? options.strategy : strategyDefault)(fn, {
|
|
118
|
+
cache,
|
|
119
|
+
serializer
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function isPrimitive(value) {
|
|
123
|
+
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
124
|
+
}
|
|
125
|
+
function monadic(fn, cache, serializer, arg) {
|
|
126
|
+
const cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
127
|
+
let computedValue = cache.get(cacheKey);
|
|
128
|
+
if (typeof computedValue === "undefined") {
|
|
129
|
+
computedValue = fn.call(this, arg);
|
|
130
|
+
cache.set(cacheKey, computedValue);
|
|
131
|
+
}
|
|
132
|
+
return computedValue;
|
|
133
|
+
}
|
|
134
|
+
function variadic(fn, cache, serializer) {
|
|
135
|
+
const args = Array.prototype.slice.call(arguments, 3);
|
|
136
|
+
const cacheKey = serializer(args);
|
|
137
|
+
let computedValue = cache.get(cacheKey);
|
|
138
|
+
if (typeof computedValue === "undefined") {
|
|
139
|
+
computedValue = fn.apply(this, args);
|
|
140
|
+
cache.set(cacheKey, computedValue);
|
|
141
|
+
}
|
|
142
|
+
return computedValue;
|
|
143
|
+
}
|
|
144
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
145
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
146
|
+
}
|
|
147
|
+
function strategyDefault(fn, options) {
|
|
148
|
+
const strategy = fn.length === 1 ? monadic : variadic;
|
|
149
|
+
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
150
|
+
}
|
|
151
|
+
function strategyVariadic(fn, options) {
|
|
152
|
+
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
153
|
+
}
|
|
154
|
+
function strategyMonadic(fn, options) {
|
|
155
|
+
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
156
|
+
}
|
|
157
|
+
const serializerDefault = function() {
|
|
158
|
+
return JSON.stringify(arguments);
|
|
159
|
+
};
|
|
160
|
+
var ObjectWithoutPrototypeCache = class {
|
|
161
|
+
constructor() {
|
|
162
|
+
this.cache = Object.create(null);
|
|
163
|
+
}
|
|
164
|
+
get(key) {
|
|
165
|
+
return this.cache[key];
|
|
166
|
+
}
|
|
167
|
+
set(key, value) {
|
|
168
|
+
this.cache[key] = value;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const cacheDefault = { create: function create() {
|
|
172
|
+
return new ObjectWithoutPrototypeCache();
|
|
173
|
+
} };
|
|
174
|
+
const strategies = {
|
|
175
|
+
variadic: strategyVariadic,
|
|
176
|
+
monadic: strategyMonadic
|
|
177
|
+
};
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region packages/ecma402-abstract/utils.js
|
|
180
|
+
function invariant$2(condition, message, Err = Error) {
|
|
181
|
+
if (!condition) throw new Err(message);
|
|
182
|
+
}
|
|
183
|
+
const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
|
|
184
|
+
memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
|
|
185
|
+
memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });
|
|
186
|
+
const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region packages/ecma402-abstract/DurationFormat/GetDurationUnitOptions.js
|
|
189
|
+
function GetDurationUnitOptions(unit, options, baseStyle, stylesList, digitalBase, prevStyle) {
|
|
190
|
+
let style = GetOption(options, unit, "string", stylesList, void 0);
|
|
191
|
+
let displayDefault = "always";
|
|
192
|
+
if (style === void 0) if (baseStyle === "digital") {
|
|
193
|
+
if (unit !== "hours" && unit !== "minutes" && unit !== "seconds") displayDefault = "auto";
|
|
194
|
+
style = digitalBase;
|
|
195
|
+
} else {
|
|
196
|
+
displayDefault = "auto";
|
|
197
|
+
if (prevStyle === "numeric" || prevStyle === "2-digit") style = "numeric";
|
|
198
|
+
else style = baseStyle;
|
|
199
|
+
}
|
|
200
|
+
let display = GetOption(options, `${unit}Display`, "string", ["always", "auto"], displayDefault);
|
|
201
|
+
if (prevStyle === "numeric" || prevStyle === "2-digit") {
|
|
202
|
+
if (style !== "numeric" && style !== "2-digit") throw new RangeError("Can't mix numeric and non-numeric styles");
|
|
203
|
+
else if (unit === "minutes" || unit === "seconds") style = "2-digit";
|
|
204
|
+
if (style === "numeric" && display === "always" && (unit === "milliseconds" || unit === "microseconds" || unit === "nanoseconds")) throw new RangeError("Can't display milliseconds, microseconds, or nanoseconds in numeric format");
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
style,
|
|
208
|
+
display
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region packages/intl-durationformat/constants.ts
|
|
213
|
+
const TABLE_2 = [
|
|
214
|
+
{
|
|
215
|
+
valueField: "years",
|
|
216
|
+
styleSlot: "years",
|
|
217
|
+
displaySlot: "yearsDisplay",
|
|
218
|
+
unit: "years",
|
|
219
|
+
numberFormatUnit: "year"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
valueField: "months",
|
|
223
|
+
styleSlot: "months",
|
|
224
|
+
displaySlot: "monthsDisplay",
|
|
225
|
+
unit: "months",
|
|
226
|
+
numberFormatUnit: "month"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
valueField: "weeks",
|
|
230
|
+
styleSlot: "weeks",
|
|
231
|
+
displaySlot: "weeksDisplay",
|
|
232
|
+
unit: "weeks",
|
|
233
|
+
numberFormatUnit: "week"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
valueField: "days",
|
|
237
|
+
styleSlot: "days",
|
|
238
|
+
displaySlot: "daysDisplay",
|
|
239
|
+
unit: "days",
|
|
240
|
+
numberFormatUnit: "day"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
valueField: "hours",
|
|
244
|
+
styleSlot: "hours",
|
|
245
|
+
displaySlot: "hoursDisplay",
|
|
246
|
+
unit: "hours",
|
|
247
|
+
numberFormatUnit: "hour"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
valueField: "minutes",
|
|
251
|
+
styleSlot: "minutes",
|
|
252
|
+
displaySlot: "minutesDisplay",
|
|
253
|
+
unit: "minutes",
|
|
254
|
+
numberFormatUnit: "minute"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
valueField: "seconds",
|
|
258
|
+
styleSlot: "seconds",
|
|
259
|
+
displaySlot: "secondsDisplay",
|
|
260
|
+
unit: "seconds",
|
|
261
|
+
numberFormatUnit: "second"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
valueField: "milliseconds",
|
|
265
|
+
styleSlot: "milliseconds",
|
|
266
|
+
displaySlot: "millisecondsDisplay",
|
|
267
|
+
unit: "milliseconds",
|
|
268
|
+
numberFormatUnit: "millisecond"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
valueField: "microseconds",
|
|
272
|
+
styleSlot: "microseconds",
|
|
273
|
+
displaySlot: "microsecondsDisplay",
|
|
274
|
+
unit: "microseconds",
|
|
275
|
+
numberFormatUnit: "microsecond"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
valueField: "nanoseconds",
|
|
279
|
+
styleSlot: "nanoseconds",
|
|
280
|
+
displaySlot: "nanosecondsDisplay",
|
|
281
|
+
unit: "nanoseconds",
|
|
282
|
+
numberFormatUnit: "nanosecond"
|
|
283
|
+
}
|
|
284
|
+
];
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region packages/intl-durationformat/get_internal_slots.ts
|
|
287
|
+
const internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
288
|
+
function getInternalSlots(x) {
|
|
289
|
+
let internalSlots = internalSlotMap.get(x);
|
|
290
|
+
if (!internalSlots) {
|
|
291
|
+
internalSlots = Object.create(null);
|
|
292
|
+
internalSlotMap.set(x, internalSlots);
|
|
293
|
+
}
|
|
294
|
+
return internalSlots;
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region packages/intl-durationformat/abstract/PartitionDurationFormatPattern.ts
|
|
298
|
+
function PartitionDurationFormatPattern(df, duration) {
|
|
299
|
+
const result = [];
|
|
300
|
+
let done = false;
|
|
301
|
+
let separated = false;
|
|
302
|
+
const internalSlots = getInternalSlots(df);
|
|
303
|
+
let dataLocale = internalSlots.dataLocale;
|
|
304
|
+
const dataLocaleData = DurationFormat.localeData[dataLocale];
|
|
305
|
+
if (!dataLocaleData) throw new TypeError("Invalid locale");
|
|
306
|
+
const numberingSystem = internalSlots.numberingSystem;
|
|
307
|
+
const separator = dataLocaleData.digitalFormat[numberingSystem];
|
|
308
|
+
for (let i = 0; i < TABLE_2.length && !done; i++) {
|
|
309
|
+
const row = TABLE_2[i];
|
|
310
|
+
let value = duration[row.valueField];
|
|
311
|
+
const style = internalSlots[row.styleSlot];
|
|
312
|
+
const display = internalSlots[row.displaySlot];
|
|
313
|
+
const { unit, numberFormatUnit } = row;
|
|
314
|
+
const nfOpts = Object.create(null);
|
|
315
|
+
if (unit === "seconds" || unit === "milliseconds" || unit === "microseconds") {
|
|
316
|
+
let nextStyle;
|
|
317
|
+
if (unit === "seconds") nextStyle = internalSlots.milliseconds;
|
|
318
|
+
else if (unit === "milliseconds") nextStyle = internalSlots.microseconds;
|
|
319
|
+
else nextStyle = internalSlots.nanoseconds;
|
|
320
|
+
if (nextStyle === "numeric") {
|
|
321
|
+
if (unit === "seconds") value += duration.milliseconds / 1e3 + duration.microseconds / 1e6 + duration.nanoseconds / 1e9;
|
|
322
|
+
else if (unit === "milliseconds") value += duration.microseconds / 1e3 + duration.nanoseconds / 1e6;
|
|
323
|
+
else value += duration.nanoseconds / 1e3;
|
|
324
|
+
if (internalSlots.fractionalDigits === void 0) {
|
|
325
|
+
nfOpts.maximumFractionDigits = 9;
|
|
326
|
+
nfOpts.minimumFractionDigits = 0;
|
|
327
|
+
} else {
|
|
328
|
+
nfOpts.maximumFractionDigits = internalSlots.fractionalDigits;
|
|
329
|
+
nfOpts.minimumFractionDigits = internalSlots.fractionalDigits;
|
|
330
|
+
}
|
|
331
|
+
nfOpts.roundingMode = "trunc";
|
|
332
|
+
done = true;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (value !== 0 || display !== "auto") {
|
|
336
|
+
nfOpts.numberingSystem = internalSlots.numberingSystem;
|
|
337
|
+
if (style === "2-digit") nfOpts.minimumIntegerDigits = 2;
|
|
338
|
+
if (style !== "2-digit" && style !== "numeric") {
|
|
339
|
+
nfOpts.style = "unit";
|
|
340
|
+
nfOpts.unit = numberFormatUnit;
|
|
341
|
+
nfOpts.unitDisplay = style;
|
|
342
|
+
}
|
|
343
|
+
const nf = createMemoizedNumberFormat(internalSlots.locale, nfOpts);
|
|
344
|
+
let list;
|
|
345
|
+
if (!separated) list = [];
|
|
346
|
+
else {
|
|
347
|
+
list = result[result.length - 1];
|
|
348
|
+
list.push({
|
|
349
|
+
type: "literal",
|
|
350
|
+
value: separator
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
nf.formatToParts(value).forEach(({ type, value }) => {
|
|
354
|
+
list.push({
|
|
355
|
+
type,
|
|
356
|
+
value,
|
|
357
|
+
unit: numberFormatUnit
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
if (!separated) {
|
|
361
|
+
if (style === "2-digit" || style === "numeric") separated = true;
|
|
362
|
+
result.push(list);
|
|
363
|
+
}
|
|
364
|
+
} else separated = false;
|
|
365
|
+
}
|
|
366
|
+
const lfOpts = Object.create(null);
|
|
367
|
+
lfOpts.type = "unit";
|
|
368
|
+
let listStyle = internalSlots.style;
|
|
369
|
+
if (listStyle === "digital") listStyle = "short";
|
|
370
|
+
lfOpts.style = listStyle;
|
|
371
|
+
const lf = createMemoizedListFormat(internalSlots.locale, lfOpts);
|
|
372
|
+
const strings = [];
|
|
373
|
+
for (const parts of result) {
|
|
374
|
+
let string = "";
|
|
375
|
+
for (const { value } of parts) string += value;
|
|
376
|
+
strings.push(string);
|
|
377
|
+
}
|
|
378
|
+
let formatted = lf.formatToParts(strings);
|
|
379
|
+
let resultIndex = 0;
|
|
380
|
+
let resultLength = result.length;
|
|
381
|
+
let flattened = [];
|
|
382
|
+
for (const { type, value } of formatted) if (type === "element") {
|
|
383
|
+
invariant$2(resultIndex < resultLength, "Index out of bounds");
|
|
384
|
+
let parts = result[resultIndex];
|
|
385
|
+
for (const part of parts) flattened.push(part);
|
|
386
|
+
resultIndex++;
|
|
387
|
+
} else {
|
|
388
|
+
invariant$2(type === "literal", "Type must be literal");
|
|
389
|
+
flattened.push({
|
|
390
|
+
type: "literal",
|
|
391
|
+
value
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
return flattened;
|
|
395
|
+
}
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region packages/ecma402-abstract/DurationFormat/constants.js
|
|
398
|
+
const TABLE_1 = [
|
|
399
|
+
"years",
|
|
400
|
+
"months",
|
|
401
|
+
"weeks",
|
|
402
|
+
"days",
|
|
403
|
+
"hours",
|
|
404
|
+
"minutes",
|
|
405
|
+
"seconds",
|
|
406
|
+
"milliseconds",
|
|
407
|
+
"microseconds",
|
|
408
|
+
"nanoseconds"
|
|
409
|
+
];
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region packages/ecma402-abstract/DurationFormat/DurationRecordSign.js
|
|
412
|
+
function DurationRecordSign(record) {
|
|
413
|
+
for (const key of TABLE_1) {
|
|
414
|
+
if (record[key] < 0) return -1;
|
|
415
|
+
if (record[key] > 0) return 1;
|
|
416
|
+
}
|
|
417
|
+
return 0;
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region packages/ecma402-abstract/DurationFormat/IsValidDurationRecord.js
|
|
421
|
+
function IsValidDurationRecord(record) {
|
|
422
|
+
const sign = DurationRecordSign(record);
|
|
423
|
+
for (const key of TABLE_1) {
|
|
424
|
+
const v = record[key];
|
|
425
|
+
invariant$2(isFinite(Number(v)), `${key} is not finite`);
|
|
426
|
+
if (v < 0 && sign > 0) return false;
|
|
427
|
+
if (v > 0 && sign < 0) return false;
|
|
428
|
+
}
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region node_modules/.aspect_rules_js/@formatjs+bigdecimal@0.0.0/node_modules/@formatjs/bigdecimal/index.js
|
|
433
|
+
const DIV_PRECISION = 40;
|
|
434
|
+
var SpecialValue = /* @__PURE__ */ function(SpecialValue) {
|
|
435
|
+
SpecialValue[SpecialValue["NONE"] = 0] = "NONE";
|
|
436
|
+
SpecialValue[SpecialValue["NAN"] = 1] = "NAN";
|
|
437
|
+
SpecialValue[SpecialValue["POSITIVE_INFINITY"] = 2] = "POSITIVE_INFINITY";
|
|
438
|
+
SpecialValue[SpecialValue["NEGATIVE_INFINITY"] = 3] = "NEGATIVE_INFINITY";
|
|
439
|
+
return SpecialValue;
|
|
440
|
+
}(SpecialValue || {});
|
|
441
|
+
function removeTrailingZeros(mantissa, exponent) {
|
|
442
|
+
if (mantissa === 0n) return [0n, 0];
|
|
443
|
+
while (mantissa % 10n === 0n) {
|
|
444
|
+
mantissa /= 10n;
|
|
445
|
+
exponent++;
|
|
446
|
+
}
|
|
447
|
+
return [mantissa, exponent];
|
|
448
|
+
}
|
|
449
|
+
function bigintAbs(n) {
|
|
450
|
+
return n < 0n ? -n : n;
|
|
451
|
+
}
|
|
452
|
+
function digitCount(n) {
|
|
453
|
+
if (n === 0n) return 1;
|
|
454
|
+
if (n < 0n) n = -n;
|
|
455
|
+
let count = 0;
|
|
456
|
+
const big15 = 1000000000000000n;
|
|
457
|
+
while (n >= big15) {
|
|
458
|
+
n /= big15;
|
|
459
|
+
count += 15;
|
|
460
|
+
}
|
|
461
|
+
let r = Number(n);
|
|
462
|
+
while (r >= 1) {
|
|
463
|
+
r /= 10;
|
|
464
|
+
count++;
|
|
465
|
+
}
|
|
466
|
+
return count;
|
|
467
|
+
}
|
|
468
|
+
const TEN_BIGINT = 10n;
|
|
469
|
+
function bigintPow10(n) {
|
|
470
|
+
if (n <= 0) return 1n;
|
|
471
|
+
let result = 1n;
|
|
472
|
+
let base = TEN_BIGINT;
|
|
473
|
+
let exp = n;
|
|
474
|
+
while (exp > 0) {
|
|
475
|
+
if (exp & 1) result *= base;
|
|
476
|
+
base *= base;
|
|
477
|
+
exp >>= 1;
|
|
478
|
+
}
|
|
479
|
+
return result;
|
|
480
|
+
}
|
|
481
|
+
function parseDecimalString(s) {
|
|
482
|
+
s = s.trim();
|
|
483
|
+
if (s === "NaN") return {
|
|
484
|
+
mantissa: 0n,
|
|
485
|
+
exponent: 0,
|
|
486
|
+
special: SpecialValue.NAN,
|
|
487
|
+
negativeZero: false
|
|
488
|
+
};
|
|
489
|
+
if (s === "Infinity" || s === "+Infinity") return {
|
|
490
|
+
mantissa: 0n,
|
|
491
|
+
exponent: 0,
|
|
492
|
+
special: SpecialValue.POSITIVE_INFINITY,
|
|
493
|
+
negativeZero: false
|
|
494
|
+
};
|
|
495
|
+
if (s === "-Infinity") return {
|
|
496
|
+
mantissa: 0n,
|
|
497
|
+
exponent: 0,
|
|
498
|
+
special: SpecialValue.NEGATIVE_INFINITY,
|
|
499
|
+
negativeZero: false
|
|
500
|
+
};
|
|
501
|
+
let negative = false;
|
|
502
|
+
let idx = 0;
|
|
503
|
+
if (s[idx] === "-") {
|
|
504
|
+
negative = true;
|
|
505
|
+
idx++;
|
|
506
|
+
} else if (s[idx] === "+") idx++;
|
|
507
|
+
let eIdx = s.indexOf("e", idx);
|
|
508
|
+
if (eIdx === -1) eIdx = s.indexOf("E", idx);
|
|
509
|
+
let sciExp = 0;
|
|
510
|
+
let numPart;
|
|
511
|
+
if (eIdx !== -1) {
|
|
512
|
+
sciExp = parseInt(s.substring(eIdx + 1), 10);
|
|
513
|
+
numPart = s.substring(idx, eIdx);
|
|
514
|
+
} else numPart = s.substring(idx);
|
|
515
|
+
const dotIdx = numPart.indexOf(".");
|
|
516
|
+
let intPart;
|
|
517
|
+
let fracPart;
|
|
518
|
+
if (dotIdx !== -1) {
|
|
519
|
+
intPart = numPart.substring(0, dotIdx);
|
|
520
|
+
fracPart = numPart.substring(dotIdx + 1);
|
|
521
|
+
} else {
|
|
522
|
+
intPart = numPart;
|
|
523
|
+
fracPart = "";
|
|
524
|
+
}
|
|
525
|
+
const combined = intPart + fracPart;
|
|
526
|
+
const exponent = sciExp - fracPart.length;
|
|
527
|
+
if (combined === "" || combined === "0" || /^0+$/.test(combined)) return {
|
|
528
|
+
mantissa: 0n,
|
|
529
|
+
exponent: 0,
|
|
530
|
+
special: SpecialValue.NONE,
|
|
531
|
+
negativeZero: negative
|
|
532
|
+
};
|
|
533
|
+
let mantissa = BigInt(combined);
|
|
534
|
+
if (negative) mantissa = -mantissa;
|
|
535
|
+
const [normMantissa, normExponent] = removeTrailingZeros(mantissa, exponent);
|
|
536
|
+
return {
|
|
537
|
+
mantissa: normMantissa,
|
|
538
|
+
exponent: normExponent,
|
|
539
|
+
special: SpecialValue.NONE,
|
|
540
|
+
negativeZero: false
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
var BigDecimal = class BigDecimal {
|
|
544
|
+
constructor(value) {
|
|
545
|
+
if (typeof value === "bigint") {
|
|
546
|
+
const [m, e] = removeTrailingZeros(value, 0);
|
|
547
|
+
this._mantissa = m;
|
|
548
|
+
this._exponent = e;
|
|
549
|
+
this._special = SpecialValue.NONE;
|
|
550
|
+
this._negativeZero = false;
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
if (typeof value === "number") {
|
|
554
|
+
if (Number.isNaN(value)) {
|
|
555
|
+
this._mantissa = 0n;
|
|
556
|
+
this._exponent = 0;
|
|
557
|
+
this._special = SpecialValue.NAN;
|
|
558
|
+
this._negativeZero = false;
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
if (value === Infinity) {
|
|
562
|
+
this._mantissa = 0n;
|
|
563
|
+
this._exponent = 0;
|
|
564
|
+
this._special = SpecialValue.POSITIVE_INFINITY;
|
|
565
|
+
this._negativeZero = false;
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
if (value === -Infinity) {
|
|
569
|
+
this._mantissa = 0n;
|
|
570
|
+
this._exponent = 0;
|
|
571
|
+
this._special = SpecialValue.NEGATIVE_INFINITY;
|
|
572
|
+
this._negativeZero = false;
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
if (value === 0) {
|
|
576
|
+
this._mantissa = 0n;
|
|
577
|
+
this._exponent = 0;
|
|
578
|
+
this._special = SpecialValue.NONE;
|
|
579
|
+
this._negativeZero = Object.is(value, -0);
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
value = String(value);
|
|
583
|
+
}
|
|
584
|
+
const parsed = parseDecimalString(value);
|
|
585
|
+
this._mantissa = parsed.mantissa;
|
|
586
|
+
this._exponent = parsed.exponent;
|
|
587
|
+
this._special = parsed.special;
|
|
588
|
+
this._negativeZero = parsed.negativeZero;
|
|
589
|
+
}
|
|
590
|
+
static _create(mantissa, exponent, special, negativeZero) {
|
|
591
|
+
const bd = Object.create(BigDecimal.prototype);
|
|
592
|
+
bd._mantissa = mantissa;
|
|
593
|
+
bd._exponent = exponent;
|
|
594
|
+
bd._special = special;
|
|
595
|
+
bd._negativeZero = negativeZero;
|
|
596
|
+
return bd;
|
|
597
|
+
}
|
|
598
|
+
static _coerce(v) {
|
|
599
|
+
return v instanceof BigDecimal ? v : new BigDecimal(v);
|
|
600
|
+
}
|
|
601
|
+
times(y) {
|
|
602
|
+
const other = BigDecimal._coerce(y);
|
|
603
|
+
if (this._special || other._special) return this._specialArith(other, "times");
|
|
604
|
+
if (this._mantissa === 0n || other._mantissa === 0n) {
|
|
605
|
+
const negZero = this._isSignNegative() ? !other._isSignNegative() : other._isSignNegative();
|
|
606
|
+
return BigDecimal._create(0n, 0, SpecialValue.NONE, negZero);
|
|
607
|
+
}
|
|
608
|
+
const [nm, ne] = removeTrailingZeros(this._mantissa * other._mantissa, this._exponent + other._exponent);
|
|
609
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
610
|
+
}
|
|
611
|
+
div(y) {
|
|
612
|
+
const other = BigDecimal._coerce(y);
|
|
613
|
+
if (this._special || other._special) return this._specialArith(other, "div");
|
|
614
|
+
if (other._mantissa === 0n) {
|
|
615
|
+
if (this._mantissa === 0n) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
616
|
+
const neg = this._isSignNegative() !== other._isSignNegative();
|
|
617
|
+
return BigDecimal._create(0n, 0, neg ? SpecialValue.NEGATIVE_INFINITY : SpecialValue.POSITIVE_INFINITY, false);
|
|
618
|
+
}
|
|
619
|
+
if (this._mantissa === 0n) {
|
|
620
|
+
const negZero = this._isSignNegative() !== other._isSignNegative();
|
|
621
|
+
return BigDecimal._create(0n, 0, SpecialValue.NONE, negZero);
|
|
622
|
+
}
|
|
623
|
+
const [nm, ne] = removeTrailingZeros(this._mantissa * bigintPow10(DIV_PRECISION) / other._mantissa, this._exponent - other._exponent - DIV_PRECISION);
|
|
624
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
8
625
|
}
|
|
626
|
+
plus(y) {
|
|
627
|
+
const other = BigDecimal._coerce(y);
|
|
628
|
+
if (this._special || other._special) return this._specialArith(other, "plus");
|
|
629
|
+
if (this._mantissa === 0n && other._mantissa === 0n) {
|
|
630
|
+
const negZero = this._negativeZero && other._negativeZero;
|
|
631
|
+
return BigDecimal._create(0n, 0, SpecialValue.NONE, negZero);
|
|
632
|
+
}
|
|
633
|
+
if (this._mantissa === 0n) return other;
|
|
634
|
+
if (other._mantissa === 0n) return this;
|
|
635
|
+
let m1 = this._mantissa;
|
|
636
|
+
let m2 = other._mantissa;
|
|
637
|
+
const e1 = this._exponent;
|
|
638
|
+
const e2 = other._exponent;
|
|
639
|
+
const minE = Math.min(e1, e2);
|
|
640
|
+
if (e1 > minE) m1 *= bigintPow10(e1 - minE);
|
|
641
|
+
if (e2 > minE) m2 *= bigintPow10(e2 - minE);
|
|
642
|
+
const sum = m1 + m2;
|
|
643
|
+
if (sum === 0n) return BigDecimal._create(0n, 0, SpecialValue.NONE, false);
|
|
644
|
+
const [nm, ne] = removeTrailingZeros(sum, minE);
|
|
645
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
646
|
+
}
|
|
647
|
+
minus(y) {
|
|
648
|
+
return this.plus(BigDecimal._coerce(y).negated());
|
|
649
|
+
}
|
|
650
|
+
mod(y) {
|
|
651
|
+
const other = BigDecimal._coerce(y);
|
|
652
|
+
if (this._special || other._special) {
|
|
653
|
+
if (this._special === SpecialValue.NAN || other._special === SpecialValue.NAN) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
654
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY || this._special === SpecialValue.NEGATIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
655
|
+
if (other._special === SpecialValue.POSITIVE_INFINITY || other._special === SpecialValue.NEGATIVE_INFINITY) return this;
|
|
656
|
+
}
|
|
657
|
+
if (other._mantissa === 0n) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
658
|
+
if (this._mantissa === 0n) return this;
|
|
659
|
+
let m1 = this._mantissa;
|
|
660
|
+
let m2 = other._mantissa;
|
|
661
|
+
const e1 = this._exponent;
|
|
662
|
+
const e2 = other._exponent;
|
|
663
|
+
const minE = Math.min(e1, e2);
|
|
664
|
+
if (e1 > minE) m1 *= bigintPow10(e1 - minE);
|
|
665
|
+
if (e2 > minE) m2 *= bigintPow10(e2 - minE);
|
|
666
|
+
const remainder = m1 % m2;
|
|
667
|
+
if (remainder === 0n) return BigDecimal._create(0n, 0, SpecialValue.NONE, false);
|
|
668
|
+
const [nm, ne] = removeTrailingZeros(remainder, minE);
|
|
669
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
670
|
+
}
|
|
671
|
+
abs() {
|
|
672
|
+
if (this._special === SpecialValue.NAN) return this;
|
|
673
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.POSITIVE_INFINITY, false);
|
|
674
|
+
return BigDecimal._create(bigintAbs(this._mantissa), this._exponent, this._special, false);
|
|
675
|
+
}
|
|
676
|
+
negated() {
|
|
677
|
+
if (this._special === SpecialValue.NAN) return this;
|
|
678
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.NEGATIVE_INFINITY, false);
|
|
679
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.POSITIVE_INFINITY, false);
|
|
680
|
+
if (this._mantissa === 0n) return BigDecimal._create(0n, 0, SpecialValue.NONE, !this._negativeZero);
|
|
681
|
+
return BigDecimal._create(-this._mantissa, this._exponent, SpecialValue.NONE, false);
|
|
682
|
+
}
|
|
683
|
+
pow(n) {
|
|
684
|
+
if (this._special === SpecialValue.NAN) return this;
|
|
685
|
+
if (n === 0) return new BigDecimal(1);
|
|
686
|
+
if (n < 0) return new BigDecimal(1).div(this.pow(-n));
|
|
687
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return this;
|
|
688
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return n % 2 === 0 ? BigDecimal._create(0n, 0, SpecialValue.POSITIVE_INFINITY, false) : this;
|
|
689
|
+
if (this._mantissa === 0n) return new BigDecimal(0);
|
|
690
|
+
const [nm, ne] = removeTrailingZeros(this._mantissa ** BigInt(n), this._exponent * n);
|
|
691
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
692
|
+
}
|
|
693
|
+
floor() {
|
|
694
|
+
if (this._special !== SpecialValue.NONE) return this;
|
|
695
|
+
if (this._mantissa === 0n) return this;
|
|
696
|
+
if (this._exponent >= 0) return this;
|
|
697
|
+
const divisor = bigintPow10(-this._exponent);
|
|
698
|
+
const m = this._mantissa;
|
|
699
|
+
let q = m / divisor;
|
|
700
|
+
if (m < 0n && m % divisor !== 0n) q -= 1n;
|
|
701
|
+
if (q === 0n) {
|
|
702
|
+
const negZero = this._mantissa < 0n;
|
|
703
|
+
return BigDecimal._create(0n, 0, SpecialValue.NONE, negZero);
|
|
704
|
+
}
|
|
705
|
+
const [nm, ne] = removeTrailingZeros(q, 0);
|
|
706
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
707
|
+
}
|
|
708
|
+
ceil() {
|
|
709
|
+
if (this._special !== SpecialValue.NONE) return this;
|
|
710
|
+
if (this._mantissa === 0n) return this;
|
|
711
|
+
if (this._exponent >= 0) return this;
|
|
712
|
+
const divisor = bigintPow10(-this._exponent);
|
|
713
|
+
const m = this._mantissa;
|
|
714
|
+
let q = m / divisor;
|
|
715
|
+
if (m > 0n && m % divisor !== 0n) q += 1n;
|
|
716
|
+
if (q === 0n) return BigDecimal._create(0n, 0, SpecialValue.NONE, false);
|
|
717
|
+
const [nm, ne] = removeTrailingZeros(q, 0);
|
|
718
|
+
return BigDecimal._create(nm, ne, SpecialValue.NONE, false);
|
|
719
|
+
}
|
|
720
|
+
log(base) {
|
|
721
|
+
if (this._special === SpecialValue.NAN) return this;
|
|
722
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
723
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return BigDecimal._create(0n, 0, SpecialValue.POSITIVE_INFINITY, false);
|
|
724
|
+
if (this._mantissa < 0n) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
725
|
+
if (this._mantissa === 0n) return BigDecimal._create(0n, 0, SpecialValue.NEGATIVE_INFINITY, false);
|
|
726
|
+
if (base === 10) return this._log10();
|
|
727
|
+
const log10x = this._log10();
|
|
728
|
+
const log10b = new BigDecimal(Math.log10(base));
|
|
729
|
+
return log10x.div(log10b);
|
|
730
|
+
}
|
|
731
|
+
_log10() {
|
|
732
|
+
const absMantissa = bigintAbs(this._mantissa);
|
|
733
|
+
const digits = digitCount(absMantissa);
|
|
734
|
+
let log10Mantissa;
|
|
735
|
+
if (digits <= 15) log10Mantissa = Math.log10(Number(absMantissa));
|
|
736
|
+
else {
|
|
737
|
+
const shift = digits - 17;
|
|
738
|
+
const leading = absMantissa / bigintPow10(shift);
|
|
739
|
+
log10Mantissa = Math.log10(Number(leading)) + shift;
|
|
740
|
+
}
|
|
741
|
+
return new BigDecimal(log10Mantissa + this._exponent);
|
|
742
|
+
}
|
|
743
|
+
eq(y) {
|
|
744
|
+
const other = BigDecimal._coerce(y);
|
|
745
|
+
if (this._special === SpecialValue.NAN || other._special === SpecialValue.NAN) return false;
|
|
746
|
+
if (this._special !== other._special) return false;
|
|
747
|
+
if (this._special !== SpecialValue.NONE) return true;
|
|
748
|
+
if (this._mantissa === 0n && other._mantissa === 0n) return true;
|
|
749
|
+
return this._mantissa === other._mantissa && this._exponent === other._exponent;
|
|
750
|
+
}
|
|
751
|
+
_compareTo(other) {
|
|
752
|
+
if (this._special === SpecialValue.NAN || other._special === SpecialValue.NAN) return NaN;
|
|
753
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return other._special === SpecialValue.POSITIVE_INFINITY ? 0 : 1;
|
|
754
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return other._special === SpecialValue.NEGATIVE_INFINITY ? 0 : -1;
|
|
755
|
+
if (other._special === SpecialValue.POSITIVE_INFINITY) return -1;
|
|
756
|
+
if (other._special === SpecialValue.NEGATIVE_INFINITY) return 1;
|
|
757
|
+
const thisZero = this._mantissa === 0n;
|
|
758
|
+
const otherZero = other._mantissa === 0n;
|
|
759
|
+
if (thisZero && otherZero) return 0;
|
|
760
|
+
if (thisZero) return other._mantissa > 0n ? -1 : 1;
|
|
761
|
+
if (otherZero) return this._mantissa > 0n ? 1 : -1;
|
|
762
|
+
const thisNeg = this._mantissa < 0n;
|
|
763
|
+
if (thisNeg !== other._mantissa < 0n) return thisNeg ? -1 : 1;
|
|
764
|
+
let m1 = this._mantissa;
|
|
765
|
+
let m2 = other._mantissa;
|
|
766
|
+
const e1 = this._exponent;
|
|
767
|
+
const e2 = other._exponent;
|
|
768
|
+
const minE = Math.min(e1, e2);
|
|
769
|
+
if (e1 > minE) m1 *= bigintPow10(e1 - minE);
|
|
770
|
+
if (e2 > minE) m2 *= bigintPow10(e2 - minE);
|
|
771
|
+
if (m1 < m2) return -1;
|
|
772
|
+
if (m1 > m2) return 1;
|
|
773
|
+
return 0;
|
|
774
|
+
}
|
|
775
|
+
lessThan(y) {
|
|
776
|
+
return this._compareTo(BigDecimal._coerce(y)) === -1;
|
|
777
|
+
}
|
|
778
|
+
greaterThan(y) {
|
|
779
|
+
return this._compareTo(BigDecimal._coerce(y)) === 1;
|
|
780
|
+
}
|
|
781
|
+
lessThanOrEqualTo(y) {
|
|
782
|
+
const c = this._compareTo(BigDecimal._coerce(y));
|
|
783
|
+
return c === 0 || c === -1;
|
|
784
|
+
}
|
|
785
|
+
greaterThanOrEqualTo(y) {
|
|
786
|
+
const c = this._compareTo(BigDecimal._coerce(y));
|
|
787
|
+
return c === 0 || c === 1;
|
|
788
|
+
}
|
|
789
|
+
isZero() {
|
|
790
|
+
return this._special === SpecialValue.NONE && this._mantissa === 0n;
|
|
791
|
+
}
|
|
792
|
+
isNaN() {
|
|
793
|
+
return this._special === SpecialValue.NAN;
|
|
794
|
+
}
|
|
795
|
+
isFinite() {
|
|
796
|
+
return this._special === SpecialValue.NONE;
|
|
797
|
+
}
|
|
798
|
+
isNegative() {
|
|
799
|
+
if (this._special === SpecialValue.NAN) return false;
|
|
800
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return true;
|
|
801
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return false;
|
|
802
|
+
if (this._mantissa === 0n) return this._negativeZero;
|
|
803
|
+
return this._mantissa < 0n;
|
|
804
|
+
}
|
|
805
|
+
isPositive() {
|
|
806
|
+
if (this._special === SpecialValue.NAN) return false;
|
|
807
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return true;
|
|
808
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return false;
|
|
809
|
+
if (this._mantissa === 0n) return !this._negativeZero;
|
|
810
|
+
return this._mantissa > 0n;
|
|
811
|
+
}
|
|
812
|
+
isInteger() {
|
|
813
|
+
if (this._special !== SpecialValue.NONE) return false;
|
|
814
|
+
if (this._mantissa === 0n) return true;
|
|
815
|
+
return this._exponent >= 0;
|
|
816
|
+
}
|
|
817
|
+
toJSON() {
|
|
818
|
+
return this.toString();
|
|
819
|
+
}
|
|
820
|
+
toNumber() {
|
|
821
|
+
if (this._special === SpecialValue.NAN) return NaN;
|
|
822
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return Infinity;
|
|
823
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return -Infinity;
|
|
824
|
+
if (this._mantissa === 0n) return this._negativeZero ? -0 : 0;
|
|
825
|
+
return Number(this.toString());
|
|
826
|
+
}
|
|
827
|
+
toString() {
|
|
828
|
+
if (this._special === SpecialValue.NAN) return "NaN";
|
|
829
|
+
if (this._special === SpecialValue.POSITIVE_INFINITY) return "Infinity";
|
|
830
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return "-Infinity";
|
|
831
|
+
if (this._mantissa === 0n) return "0";
|
|
832
|
+
const negative = this._mantissa < 0n;
|
|
833
|
+
const absStr = bigintAbs(this._mantissa).toString();
|
|
834
|
+
const prefix = negative ? "-" : "";
|
|
835
|
+
if (this._exponent === 0) return prefix + absStr;
|
|
836
|
+
if (this._exponent > 0) return prefix + absStr + "0".repeat(this._exponent);
|
|
837
|
+
const decimalPlaces = -this._exponent;
|
|
838
|
+
if (decimalPlaces < absStr.length) {
|
|
839
|
+
const intPart = absStr.slice(0, absStr.length - decimalPlaces);
|
|
840
|
+
const fracPart = absStr.slice(absStr.length - decimalPlaces);
|
|
841
|
+
return prefix + intPart + "." + fracPart;
|
|
842
|
+
} else {
|
|
843
|
+
const leadingZeros = decimalPlaces - absStr.length;
|
|
844
|
+
return prefix + "0." + "0".repeat(leadingZeros) + absStr;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
static pow(base, exp) {
|
|
848
|
+
const n = typeof exp === "number" ? exp : exp.toNumber();
|
|
849
|
+
if (typeof base === "number" && base === 10) return BigDecimal._create(1n, n, SpecialValue.NONE, false);
|
|
850
|
+
return (base instanceof BigDecimal ? base : new BigDecimal(base)).pow(n);
|
|
851
|
+
}
|
|
852
|
+
static set(_config) {}
|
|
853
|
+
_isSignNegative() {
|
|
854
|
+
if (this._special === SpecialValue.NEGATIVE_INFINITY) return true;
|
|
855
|
+
if (this._mantissa < 0n) return true;
|
|
856
|
+
if (this._mantissa === 0n) return this._negativeZero;
|
|
857
|
+
return false;
|
|
858
|
+
}
|
|
859
|
+
_specialArith(other, op) {
|
|
860
|
+
const a = this._special;
|
|
861
|
+
const b = other._special;
|
|
862
|
+
if (a === SpecialValue.NAN || b === SpecialValue.NAN) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
863
|
+
const aNeg = this._isSignNegative();
|
|
864
|
+
const bNeg = other._isSignNegative();
|
|
865
|
+
const aInf = a === SpecialValue.POSITIVE_INFINITY || a === SpecialValue.NEGATIVE_INFINITY;
|
|
866
|
+
const bInf = b === SpecialValue.POSITIVE_INFINITY || b === SpecialValue.NEGATIVE_INFINITY;
|
|
867
|
+
if (op === "times") {
|
|
868
|
+
if (aInf || bInf) {
|
|
869
|
+
if (aInf && other._mantissa === 0n && !bInf || bInf && this._mantissa === 0n && !aInf) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
870
|
+
const neg = aNeg !== bNeg;
|
|
871
|
+
return BigDecimal._create(0n, 0, neg ? SpecialValue.NEGATIVE_INFINITY : SpecialValue.POSITIVE_INFINITY, false);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
if (op === "div") {
|
|
875
|
+
if (aInf && bInf) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
876
|
+
if (aInf) {
|
|
877
|
+
const neg = aNeg !== bNeg;
|
|
878
|
+
return BigDecimal._create(0n, 0, neg ? SpecialValue.NEGATIVE_INFINITY : SpecialValue.POSITIVE_INFINITY, false);
|
|
879
|
+
}
|
|
880
|
+
if (bInf) {
|
|
881
|
+
const negZero = aNeg !== bNeg;
|
|
882
|
+
return BigDecimal._create(0n, 0, SpecialValue.NONE, negZero);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
if (op === "plus") {
|
|
886
|
+
if (aInf && bInf) {
|
|
887
|
+
if (aNeg !== bNeg) return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
888
|
+
return this;
|
|
889
|
+
}
|
|
890
|
+
if (aInf) return this;
|
|
891
|
+
if (bInf) return other;
|
|
892
|
+
}
|
|
893
|
+
return BigDecimal._create(0n, 0, SpecialValue.NAN, false);
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
//#endregion
|
|
897
|
+
//#region packages/ecma262-abstract/ToPrimitive.js
|
|
898
|
+
function invariant$1(condition, message, Err = Error) {
|
|
899
|
+
if (!condition) throw new Err(message);
|
|
900
|
+
}
|
|
901
|
+
function IsCallable(fn) {
|
|
902
|
+
return typeof fn === "function";
|
|
903
|
+
}
|
|
904
|
+
function OrdinaryToPrimitive(O, hint) {
|
|
905
|
+
let methodNames;
|
|
906
|
+
if (hint === "string") methodNames = ["toString", "valueOf"];
|
|
907
|
+
else methodNames = ["valueOf", "toString"];
|
|
908
|
+
for (const name of methodNames) {
|
|
909
|
+
const method = O[name];
|
|
910
|
+
if (IsCallable(method)) {
|
|
911
|
+
let result = method.call(O);
|
|
912
|
+
if (typeof result !== "object") return result;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
throw new TypeError("Cannot convert object to primitive value");
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* https://tc39.es/ecma262/#sec-toprimitive
|
|
919
|
+
*/
|
|
920
|
+
function ToPrimitive(input, preferredType) {
|
|
921
|
+
if (typeof input === "object" && input != null) {
|
|
922
|
+
const exoticToPrim = Symbol.toPrimitive in input ? input[Symbol.toPrimitive] : void 0;
|
|
923
|
+
let hint;
|
|
924
|
+
if (exoticToPrim !== void 0) {
|
|
925
|
+
if (preferredType === void 0) hint = "default";
|
|
926
|
+
else if (preferredType === "string") hint = "string";
|
|
927
|
+
else {
|
|
928
|
+
invariant$1(preferredType === "number", "preferredType must be \"string\" or \"number\"");
|
|
929
|
+
hint = "number";
|
|
930
|
+
}
|
|
931
|
+
let result = exoticToPrim.call(input, hint);
|
|
932
|
+
if (typeof result !== "object") return result;
|
|
933
|
+
throw new TypeError("Cannot convert exotic object to primitive.");
|
|
934
|
+
}
|
|
935
|
+
if (preferredType === void 0) preferredType = "number";
|
|
936
|
+
return OrdinaryToPrimitive(input, preferredType);
|
|
937
|
+
}
|
|
938
|
+
return input;
|
|
939
|
+
}
|
|
940
|
+
//#endregion
|
|
941
|
+
//#region packages/ecma262-abstract/ToNumber.js
|
|
942
|
+
const ZERO = new BigDecimal(0);
|
|
943
|
+
function invariant(condition, message, Err = Error) {
|
|
944
|
+
if (!condition) throw new Err(message);
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* https://tc39.es/ecma262/#sec-tonumber
|
|
948
|
+
*/
|
|
949
|
+
function ToNumber(arg) {
|
|
950
|
+
if (typeof arg === "number") return new BigDecimal(arg);
|
|
951
|
+
if (typeof arg === "bigint") return new BigDecimal(arg.toString());
|
|
952
|
+
invariant(typeof arg !== "symbol", "Symbol is not supported", TypeError);
|
|
953
|
+
if (arg === void 0) return new BigDecimal(NaN);
|
|
954
|
+
if (arg === null || arg === 0) return ZERO;
|
|
955
|
+
if (arg === true) return new BigDecimal(1);
|
|
956
|
+
if (typeof arg === "string") try {
|
|
957
|
+
return new BigDecimal(arg);
|
|
958
|
+
} catch {
|
|
959
|
+
return new BigDecimal(NaN);
|
|
960
|
+
}
|
|
961
|
+
invariant(typeof arg === "object", "object expected", TypeError);
|
|
962
|
+
let primValue = ToPrimitive(arg, "number");
|
|
963
|
+
invariant(typeof primValue !== "object", "object expected", TypeError);
|
|
964
|
+
return ToNumber(primValue);
|
|
965
|
+
}
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region packages/ecma402-abstract/DurationFormat/ToIntegerIfIntegral.js
|
|
968
|
+
function ToIntegerIfIntegral(arg) {
|
|
969
|
+
const number = ToNumber(arg);
|
|
970
|
+
invariant$2(number.isInteger(), `${arg} is not an integer`);
|
|
971
|
+
return number.toNumber();
|
|
972
|
+
}
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region packages/ecma402-abstract/DurationFormat/ToDurationRecord.js
|
|
975
|
+
function ToDurationRecord(input) {
|
|
976
|
+
if (typeof input !== "object") {
|
|
977
|
+
if (typeof input === "string") throw new RangeError("Invalid duration format");
|
|
978
|
+
throw new TypeError("Invalid duration");
|
|
979
|
+
}
|
|
980
|
+
const result = {
|
|
981
|
+
years: 0,
|
|
982
|
+
months: 0,
|
|
983
|
+
weeks: 0,
|
|
984
|
+
days: 0,
|
|
985
|
+
hours: 0,
|
|
986
|
+
minutes: 0,
|
|
987
|
+
seconds: 0,
|
|
988
|
+
milliseconds: 0,
|
|
989
|
+
microseconds: 0,
|
|
990
|
+
nanoseconds: 0
|
|
991
|
+
};
|
|
992
|
+
if (input.days !== void 0) result.days = ToIntegerIfIntegral(input.days);
|
|
993
|
+
if (input.hours !== void 0) result.hours = ToIntegerIfIntegral(input.hours);
|
|
994
|
+
if (input.microseconds !== void 0) result.microseconds = ToIntegerIfIntegral(input.microseconds);
|
|
995
|
+
if (input.milliseconds !== void 0) result.milliseconds = ToIntegerIfIntegral(input.milliseconds);
|
|
996
|
+
if (input.minutes !== void 0) result.minutes = ToIntegerIfIntegral(input.minutes);
|
|
997
|
+
if (input.months !== void 0) result.months = ToIntegerIfIntegral(input.months);
|
|
998
|
+
if (input.nanoseconds !== void 0) result.nanoseconds = ToIntegerIfIntegral(input.nanoseconds);
|
|
999
|
+
if (input.seconds !== void 0) result.seconds = ToIntegerIfIntegral(input.seconds);
|
|
1000
|
+
if (input.weeks !== void 0) result.weeks = ToIntegerIfIntegral(input.weeks);
|
|
1001
|
+
if (input.years !== void 0) result.years = ToIntegerIfIntegral(input.years);
|
|
1002
|
+
if (input.years === void 0 && input.months === void 0 && input.weeks === void 0 && input.days === void 0 && input.hours === void 0 && input.minutes === void 0 && input.seconds === void 0 && input.milliseconds === void 0 && input.microseconds === void 0 && input.nanoseconds === void 0) throw new TypeError("Invalid duration format");
|
|
1003
|
+
if (!IsValidDurationRecord(result)) throw new RangeError("Invalid duration format");
|
|
1004
|
+
return result;
|
|
1005
|
+
}
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.number@0.0.0/node_modules/@formatjs_generated/cldr.number/numbering-systems.js
|
|
1008
|
+
const numberingSystemNames = [
|
|
1009
|
+
"adlm",
|
|
1010
|
+
"ahom",
|
|
1011
|
+
"arab",
|
|
1012
|
+
"arabext",
|
|
1013
|
+
"armn",
|
|
1014
|
+
"armnlow",
|
|
1015
|
+
"bali",
|
|
1016
|
+
"beng",
|
|
1017
|
+
"bhks",
|
|
1018
|
+
"brah",
|
|
1019
|
+
"cakm",
|
|
1020
|
+
"cham",
|
|
1021
|
+
"cyrl",
|
|
1022
|
+
"deva",
|
|
1023
|
+
"diak",
|
|
1024
|
+
"ethi",
|
|
1025
|
+
"fullwide",
|
|
1026
|
+
"gara",
|
|
1027
|
+
"geor",
|
|
1028
|
+
"gong",
|
|
1029
|
+
"gonm",
|
|
1030
|
+
"grek",
|
|
1031
|
+
"greklow",
|
|
1032
|
+
"gujr",
|
|
1033
|
+
"gukh",
|
|
1034
|
+
"guru",
|
|
1035
|
+
"hanidays",
|
|
1036
|
+
"hanidec",
|
|
1037
|
+
"hans",
|
|
1038
|
+
"hansfin",
|
|
1039
|
+
"hant",
|
|
1040
|
+
"hantfin",
|
|
1041
|
+
"hebr",
|
|
1042
|
+
"hmng",
|
|
1043
|
+
"hmnp",
|
|
1044
|
+
"java",
|
|
1045
|
+
"jpan",
|
|
1046
|
+
"jpanfin",
|
|
1047
|
+
"jpanyear",
|
|
1048
|
+
"kali",
|
|
1049
|
+
"kawi",
|
|
1050
|
+
"khmr",
|
|
1051
|
+
"knda",
|
|
1052
|
+
"krai",
|
|
1053
|
+
"lana",
|
|
1054
|
+
"lanatham",
|
|
1055
|
+
"laoo",
|
|
1056
|
+
"latn",
|
|
1057
|
+
"lepc",
|
|
1058
|
+
"limb",
|
|
1059
|
+
"mathbold",
|
|
1060
|
+
"mathdbl",
|
|
1061
|
+
"mathmono",
|
|
1062
|
+
"mathsanb",
|
|
1063
|
+
"mathsans",
|
|
1064
|
+
"mlym",
|
|
1065
|
+
"modi",
|
|
1066
|
+
"mong",
|
|
1067
|
+
"mroo",
|
|
1068
|
+
"mtei",
|
|
1069
|
+
"mymr",
|
|
1070
|
+
"mymrepka",
|
|
1071
|
+
"mymrpao",
|
|
1072
|
+
"mymrshan",
|
|
1073
|
+
"mymrtlng",
|
|
1074
|
+
"nagm",
|
|
1075
|
+
"newa",
|
|
1076
|
+
"nkoo",
|
|
1077
|
+
"olck",
|
|
1078
|
+
"onao",
|
|
1079
|
+
"orya",
|
|
1080
|
+
"osma",
|
|
1081
|
+
"outlined",
|
|
1082
|
+
"rohg",
|
|
1083
|
+
"roman",
|
|
1084
|
+
"romanlow",
|
|
1085
|
+
"saur",
|
|
1086
|
+
"segment",
|
|
1087
|
+
"shrd",
|
|
1088
|
+
"sind",
|
|
1089
|
+
"sinh",
|
|
1090
|
+
"sora",
|
|
1091
|
+
"sund",
|
|
1092
|
+
"sunu",
|
|
1093
|
+
"takr",
|
|
1094
|
+
"talu",
|
|
1095
|
+
"taml",
|
|
1096
|
+
"tamldec",
|
|
1097
|
+
"telu",
|
|
1098
|
+
"thai",
|
|
1099
|
+
"tibt",
|
|
1100
|
+
"tirh",
|
|
1101
|
+
"tnsa",
|
|
1102
|
+
"tols",
|
|
1103
|
+
"vaii",
|
|
1104
|
+
"wara",
|
|
1105
|
+
"wcho"
|
|
1106
|
+
];
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.number@0.0.0/node_modules/@formatjs_generated/cldr.number/time-separators.js
|
|
1109
|
+
const TIME_SEPARATORS = {
|
|
1110
|
+
"default": ":",
|
|
1111
|
+
"localeData": {
|
|
1112
|
+
"aa": { "nu": ["latn"] },
|
|
1113
|
+
"aa-DJ": { "nu": ["latn"] },
|
|
1114
|
+
"aa-ER": { "nu": ["latn"] },
|
|
1115
|
+
"ab": { "nu": ["latn"] },
|
|
1116
|
+
"af": { "nu": ["latn"] },
|
|
1117
|
+
"af-NA": { "nu": ["latn"] },
|
|
1118
|
+
"agq": { "nu": ["latn"] },
|
|
1119
|
+
"ak": { "nu": ["latn"] },
|
|
1120
|
+
"am": { "nu": ["latn"] },
|
|
1121
|
+
"an": { "nu": ["latn"] },
|
|
1122
|
+
"ann": { "nu": ["latn"] },
|
|
1123
|
+
"apc": { "nu": ["latn"] },
|
|
1124
|
+
"ar": { "nu": ["latn", "latn"] },
|
|
1125
|
+
"ar-AE": { "nu": ["latn", "latn"] },
|
|
1126
|
+
"ar-BH": { "nu": ["arab", "latn"] },
|
|
1127
|
+
"ar-DJ": { "nu": ["arab", "latn"] },
|
|
1128
|
+
"ar-DZ": { "nu": ["latn", "latn"] },
|
|
1129
|
+
"ar-EG": { "nu": ["arab", "latn"] },
|
|
1130
|
+
"ar-EH": { "nu": ["latn", "latn"] },
|
|
1131
|
+
"ar-ER": { "nu": ["arab", "latn"] },
|
|
1132
|
+
"ar-IL": { "nu": ["arab", "latn"] },
|
|
1133
|
+
"ar-IQ": { "nu": ["arab", "latn"] },
|
|
1134
|
+
"ar-JO": { "nu": ["arab", "latn"] },
|
|
1135
|
+
"ar-KM": { "nu": ["arab", "latn"] },
|
|
1136
|
+
"ar-KW": { "nu": ["arab", "latn"] },
|
|
1137
|
+
"ar-LB": { "nu": ["arab", "latn"] },
|
|
1138
|
+
"ar-LY": { "nu": ["latn", "latn"] },
|
|
1139
|
+
"ar-MA": { "nu": ["latn", "latn"] },
|
|
1140
|
+
"ar-MR": { "nu": ["arab", "latn"] },
|
|
1141
|
+
"ar-OM": { "nu": ["arab", "latn"] },
|
|
1142
|
+
"ar-PS": { "nu": ["arab", "latn"] },
|
|
1143
|
+
"ar-QA": { "nu": ["arab", "latn"] },
|
|
1144
|
+
"ar-SA": { "nu": ["arab", "latn"] },
|
|
1145
|
+
"ar-SD": { "nu": ["arab", "latn"] },
|
|
1146
|
+
"ar-SO": { "nu": ["arab", "latn"] },
|
|
1147
|
+
"ar-SS": { "nu": ["arab", "latn"] },
|
|
1148
|
+
"ar-SY": { "nu": ["arab", "latn"] },
|
|
1149
|
+
"ar-TD": { "nu": ["arab", "latn"] },
|
|
1150
|
+
"ar-TN": { "nu": ["latn", "latn"] },
|
|
1151
|
+
"ar-YE": { "nu": ["arab", "latn"] },
|
|
1152
|
+
"arn": { "nu": ["latn"] },
|
|
1153
|
+
"as": { "nu": ["beng"] },
|
|
1154
|
+
"asa": { "nu": ["latn"] },
|
|
1155
|
+
"ast": { "nu": ["latn"] },
|
|
1156
|
+
"az": { "nu": ["latn"] },
|
|
1157
|
+
"az-Arab": { "nu": ["arabext"] },
|
|
1158
|
+
"az-Arab-IQ": { "nu": ["arabext"] },
|
|
1159
|
+
"az-Arab-TR": { "nu": ["arabext"] },
|
|
1160
|
+
"az-Cyrl": { "nu": ["latn"] },
|
|
1161
|
+
"az-Latn": { "nu": ["latn"] },
|
|
1162
|
+
"ba": { "nu": ["latn"] },
|
|
1163
|
+
"bal": { "nu": ["latn"] },
|
|
1164
|
+
"bal-Arab": { "nu": ["latn"] },
|
|
1165
|
+
"bal-Latn": { "nu": ["latn"] },
|
|
1166
|
+
"bas": { "nu": ["latn"] },
|
|
1167
|
+
"be": { "nu": ["latn"] },
|
|
1168
|
+
"be-tarask": { "nu": ["latn"] },
|
|
1169
|
+
"bem": { "nu": ["latn"] },
|
|
1170
|
+
"bew": { "nu": ["latn"] },
|
|
1171
|
+
"bez": { "nu": ["latn"] },
|
|
1172
|
+
"bg": { "nu": ["latn"] },
|
|
1173
|
+
"bgc": { "nu": ["deva"] },
|
|
1174
|
+
"bgn": { "nu": ["arabext"] },
|
|
1175
|
+
"bgn-AE": { "nu": ["arabext"] },
|
|
1176
|
+
"bgn-AF": { "nu": ["arabext"] },
|
|
1177
|
+
"bgn-IR": { "nu": ["arabext"] },
|
|
1178
|
+
"bgn-OM": { "nu": ["arabext"] },
|
|
1179
|
+
"bho": { "nu": ["deva"] },
|
|
1180
|
+
"blo": { "nu": ["latn"] },
|
|
1181
|
+
"blt": { "nu": ["latn"] },
|
|
1182
|
+
"bm": { "nu": ["latn"] },
|
|
1183
|
+
"bm-Nkoo": { "nu": ["latn"] },
|
|
1184
|
+
"bn": { "nu": ["beng"] },
|
|
1185
|
+
"bn-IN": { "nu": ["beng"] },
|
|
1186
|
+
"bo": { "nu": ["latn"] },
|
|
1187
|
+
"bo-IN": { "nu": ["latn"] },
|
|
1188
|
+
"bqi": { "nu": ["latn"] },
|
|
1189
|
+
"br": { "nu": ["latn"] },
|
|
1190
|
+
"brx": { "nu": ["latn"] },
|
|
1191
|
+
"bs": { "nu": ["latn"] },
|
|
1192
|
+
"bs-Cyrl": { "nu": ["latn"] },
|
|
1193
|
+
"bs-Latn": { "nu": ["latn"] },
|
|
1194
|
+
"bss": { "nu": ["latn"] },
|
|
1195
|
+
"bua": { "nu": ["latn"] },
|
|
1196
|
+
"byn": { "nu": ["latn"] },
|
|
1197
|
+
"ca": { "nu": ["latn"] },
|
|
1198
|
+
"ca-AD": { "nu": ["latn"] },
|
|
1199
|
+
"ca-ES-valencia": { "nu": ["latn"] },
|
|
1200
|
+
"ca-FR": { "nu": ["latn"] },
|
|
1201
|
+
"ca-IT": { "nu": ["latn"] },
|
|
1202
|
+
"cad": { "nu": ["latn"] },
|
|
1203
|
+
"cch": { "nu": ["latn"] },
|
|
1204
|
+
"ccp": { "nu": ["cakm"] },
|
|
1205
|
+
"ccp-IN": { "nu": ["cakm"] },
|
|
1206
|
+
"ce": { "nu": ["latn"] },
|
|
1207
|
+
"ceb": { "nu": ["latn"] },
|
|
1208
|
+
"cgg": { "nu": ["latn"] },
|
|
1209
|
+
"cho": { "nu": ["latn"] },
|
|
1210
|
+
"chr": { "nu": ["latn"] },
|
|
1211
|
+
"cic": { "nu": ["latn"] },
|
|
1212
|
+
"ckb": { "nu": ["arab"] },
|
|
1213
|
+
"ckb-IR": { "nu": ["arab"] },
|
|
1214
|
+
"co": { "nu": ["latn"] },
|
|
1215
|
+
"cop": { "nu": ["latn"] },
|
|
1216
|
+
"cs": { "nu": ["latn"] },
|
|
1217
|
+
"csw": { "nu": ["latn"] },
|
|
1218
|
+
"cu": { "nu": ["latn"] },
|
|
1219
|
+
"cv": { "nu": ["latn"] },
|
|
1220
|
+
"cy": { "nu": ["latn"] },
|
|
1221
|
+
"da": {
|
|
1222
|
+
"nu": ["latn"],
|
|
1223
|
+
"separator": { "latn": "." }
|
|
1224
|
+
},
|
|
1225
|
+
"da-GL": {
|
|
1226
|
+
"nu": ["latn"],
|
|
1227
|
+
"separator": { "latn": "." }
|
|
1228
|
+
},
|
|
1229
|
+
"dav": { "nu": ["latn"] },
|
|
1230
|
+
"de": { "nu": ["latn"] },
|
|
1231
|
+
"de-AT": { "nu": ["latn"] },
|
|
1232
|
+
"de-BE": { "nu": ["latn"] },
|
|
1233
|
+
"de-CH": { "nu": ["latn"] },
|
|
1234
|
+
"de-IT": { "nu": ["latn"] },
|
|
1235
|
+
"de-LI": { "nu": ["latn"] },
|
|
1236
|
+
"de-LU": { "nu": ["latn"] },
|
|
1237
|
+
"dje": { "nu": ["latn"] },
|
|
1238
|
+
"doi": { "nu": ["latn"] },
|
|
1239
|
+
"dsb": { "nu": ["latn"] },
|
|
1240
|
+
"dua": { "nu": ["latn"] },
|
|
1241
|
+
"dv": { "nu": ["latn"] },
|
|
1242
|
+
"dyo": { "nu": ["latn"] },
|
|
1243
|
+
"dz": { "nu": ["tibt"] },
|
|
1244
|
+
"ebu": { "nu": ["latn"] },
|
|
1245
|
+
"ee": { "nu": ["latn"] },
|
|
1246
|
+
"ee-TG": { "nu": ["latn"] },
|
|
1247
|
+
"el": { "nu": ["latn"] },
|
|
1248
|
+
"el-CY": { "nu": ["latn"] },
|
|
1249
|
+
"el-polyton": { "nu": ["latn"] },
|
|
1250
|
+
"en": { "nu": ["latn"] },
|
|
1251
|
+
"en-001": { "nu": ["latn"] },
|
|
1252
|
+
"en-150": { "nu": ["latn"] },
|
|
1253
|
+
"en-AE": { "nu": ["latn"] },
|
|
1254
|
+
"en-AG": { "nu": ["latn"] },
|
|
1255
|
+
"en-AI": { "nu": ["latn"] },
|
|
1256
|
+
"en-AS": { "nu": ["latn"] },
|
|
1257
|
+
"en-AT": { "nu": ["latn"] },
|
|
1258
|
+
"en-AU": { "nu": ["latn"] },
|
|
1259
|
+
"en-BB": { "nu": ["latn"] },
|
|
1260
|
+
"en-BE": { "nu": ["latn"] },
|
|
1261
|
+
"en-BI": { "nu": ["latn"] },
|
|
1262
|
+
"en-BM": { "nu": ["latn"] },
|
|
1263
|
+
"en-BS": { "nu": ["latn"] },
|
|
1264
|
+
"en-BW": { "nu": ["latn"] },
|
|
1265
|
+
"en-BZ": { "nu": ["latn"] },
|
|
1266
|
+
"en-CA": { "nu": ["latn"] },
|
|
1267
|
+
"en-CC": { "nu": ["latn"] },
|
|
1268
|
+
"en-CH": { "nu": ["latn"] },
|
|
1269
|
+
"en-CK": { "nu": ["latn"] },
|
|
1270
|
+
"en-CM": { "nu": ["latn"] },
|
|
1271
|
+
"en-CX": { "nu": ["latn"] },
|
|
1272
|
+
"en-CY": { "nu": ["latn"] },
|
|
1273
|
+
"en-CZ": { "nu": ["latn"] },
|
|
1274
|
+
"en-DE": { "nu": ["latn"] },
|
|
1275
|
+
"en-DG": { "nu": ["latn"] },
|
|
1276
|
+
"en-DK": {
|
|
1277
|
+
"nu": ["latn"],
|
|
1278
|
+
"separator": { "latn": "." }
|
|
1279
|
+
},
|
|
1280
|
+
"en-DM": { "nu": ["latn"] },
|
|
1281
|
+
"en-Dsrt": { "nu": ["latn"] },
|
|
1282
|
+
"en-EE": { "nu": ["latn"] },
|
|
1283
|
+
"en-ER": { "nu": ["latn"] },
|
|
1284
|
+
"en-ES": { "nu": ["latn"] },
|
|
1285
|
+
"en-FI": {
|
|
1286
|
+
"nu": ["latn"],
|
|
1287
|
+
"separator": { "latn": "." }
|
|
1288
|
+
},
|
|
1289
|
+
"en-FJ": { "nu": ["latn"] },
|
|
1290
|
+
"en-FK": { "nu": ["latn"] },
|
|
1291
|
+
"en-FM": { "nu": ["latn"] },
|
|
1292
|
+
"en-FR": { "nu": ["latn"] },
|
|
1293
|
+
"en-GB": { "nu": ["latn"] },
|
|
1294
|
+
"en-GD": { "nu": ["latn"] },
|
|
1295
|
+
"en-GE": { "nu": ["latn"] },
|
|
1296
|
+
"en-GG": { "nu": ["latn"] },
|
|
1297
|
+
"en-GH": { "nu": ["latn"] },
|
|
1298
|
+
"en-GI": { "nu": ["latn"] },
|
|
1299
|
+
"en-GM": { "nu": ["latn"] },
|
|
1300
|
+
"en-GS": { "nu": ["latn"] },
|
|
1301
|
+
"en-GU": { "nu": ["latn"] },
|
|
1302
|
+
"en-GY": { "nu": ["latn"] },
|
|
1303
|
+
"en-HK": { "nu": ["latn"] },
|
|
1304
|
+
"en-HU": { "nu": ["latn"] },
|
|
1305
|
+
"en-ID": { "nu": ["latn"] },
|
|
1306
|
+
"en-IE": { "nu": ["latn"] },
|
|
1307
|
+
"en-IL": { "nu": ["latn"] },
|
|
1308
|
+
"en-IM": { "nu": ["latn"] },
|
|
1309
|
+
"en-IN": { "nu": ["latn"] },
|
|
1310
|
+
"en-IO": { "nu": ["latn"] },
|
|
1311
|
+
"en-IT": { "nu": ["latn"] },
|
|
1312
|
+
"en-JE": { "nu": ["latn"] },
|
|
1313
|
+
"en-JM": { "nu": ["latn"] },
|
|
1314
|
+
"en-JP": { "nu": ["latn"] },
|
|
1315
|
+
"en-KE": { "nu": ["latn"] },
|
|
1316
|
+
"en-KI": { "nu": ["latn"] },
|
|
1317
|
+
"en-KN": { "nu": ["latn"] },
|
|
1318
|
+
"en-KY": { "nu": ["latn"] },
|
|
1319
|
+
"en-LC": { "nu": ["latn"] },
|
|
1320
|
+
"en-LR": { "nu": ["latn"] },
|
|
1321
|
+
"en-LS": { "nu": ["latn"] },
|
|
1322
|
+
"en-LT": { "nu": ["latn"] },
|
|
1323
|
+
"en-LV": { "nu": ["latn"] },
|
|
1324
|
+
"en-MG": { "nu": ["latn"] },
|
|
1325
|
+
"en-MH": { "nu": ["latn"] },
|
|
1326
|
+
"en-MO": { "nu": ["latn"] },
|
|
1327
|
+
"en-MP": { "nu": ["latn"] },
|
|
1328
|
+
"en-MS": { "nu": ["latn"] },
|
|
1329
|
+
"en-MT": { "nu": ["latn"] },
|
|
1330
|
+
"en-MU": { "nu": ["latn"] },
|
|
1331
|
+
"en-MV": { "nu": ["latn"] },
|
|
1332
|
+
"en-MW": { "nu": ["latn"] },
|
|
1333
|
+
"en-MY": { "nu": ["latn"] },
|
|
1334
|
+
"en-NA": { "nu": ["latn"] },
|
|
1335
|
+
"en-NF": { "nu": ["latn"] },
|
|
1336
|
+
"en-NG": { "nu": ["latn"] },
|
|
1337
|
+
"en-NL": { "nu": ["latn"] },
|
|
1338
|
+
"en-NO": { "nu": ["latn"] },
|
|
1339
|
+
"en-NR": { "nu": ["latn"] },
|
|
1340
|
+
"en-NU": { "nu": ["latn"] },
|
|
1341
|
+
"en-NZ": { "nu": ["latn"] },
|
|
1342
|
+
"en-PG": { "nu": ["latn"] },
|
|
1343
|
+
"en-PH": { "nu": ["latn"] },
|
|
1344
|
+
"en-PK": { "nu": ["latn"] },
|
|
1345
|
+
"en-PL": { "nu": ["latn"] },
|
|
1346
|
+
"en-PN": { "nu": ["latn"] },
|
|
1347
|
+
"en-PR": { "nu": ["latn"] },
|
|
1348
|
+
"en-PT": { "nu": ["latn"] },
|
|
1349
|
+
"en-PW": { "nu": ["latn"] },
|
|
1350
|
+
"en-RO": { "nu": ["latn"] },
|
|
1351
|
+
"en-RW": { "nu": ["latn"] },
|
|
1352
|
+
"en-SB": { "nu": ["latn"] },
|
|
1353
|
+
"en-SC": { "nu": ["latn"] },
|
|
1354
|
+
"en-SD": { "nu": ["latn"] },
|
|
1355
|
+
"en-SE": { "nu": ["latn"] },
|
|
1356
|
+
"en-SG": { "nu": ["latn"] },
|
|
1357
|
+
"en-SH": { "nu": ["latn"] },
|
|
1358
|
+
"en-SI": { "nu": ["latn"] },
|
|
1359
|
+
"en-SK": { "nu": ["latn"] },
|
|
1360
|
+
"en-SL": { "nu": ["latn"] },
|
|
1361
|
+
"en-SS": { "nu": ["latn"] },
|
|
1362
|
+
"en-SX": { "nu": ["latn"] },
|
|
1363
|
+
"en-SZ": { "nu": ["latn"] },
|
|
1364
|
+
"en-Shaw": { "nu": ["latn"] },
|
|
1365
|
+
"en-TC": { "nu": ["latn"] },
|
|
1366
|
+
"en-TK": { "nu": ["latn"] },
|
|
1367
|
+
"en-TO": { "nu": ["latn"] },
|
|
1368
|
+
"en-TT": { "nu": ["latn"] },
|
|
1369
|
+
"en-TV": { "nu": ["latn"] },
|
|
1370
|
+
"en-TZ": { "nu": ["latn"] },
|
|
1371
|
+
"en-UA": { "nu": ["latn"] },
|
|
1372
|
+
"en-UG": { "nu": ["latn"] },
|
|
1373
|
+
"en-UM": { "nu": ["latn"] },
|
|
1374
|
+
"en-VC": { "nu": ["latn"] },
|
|
1375
|
+
"en-VG": { "nu": ["latn"] },
|
|
1376
|
+
"en-VI": { "nu": ["latn"] },
|
|
1377
|
+
"en-VU": { "nu": ["latn"] },
|
|
1378
|
+
"en-WS": { "nu": ["latn"] },
|
|
1379
|
+
"en-ZA": { "nu": ["latn"] },
|
|
1380
|
+
"en-ZM": { "nu": ["latn"] },
|
|
1381
|
+
"en-ZW": { "nu": ["latn"] },
|
|
1382
|
+
"eo": { "nu": ["latn"] },
|
|
1383
|
+
"es": { "nu": ["latn"] },
|
|
1384
|
+
"es-419": { "nu": ["latn"] },
|
|
1385
|
+
"es-AR": { "nu": ["latn"] },
|
|
1386
|
+
"es-BO": { "nu": ["latn"] },
|
|
1387
|
+
"es-BR": { "nu": ["latn"] },
|
|
1388
|
+
"es-BZ": { "nu": ["latn"] },
|
|
1389
|
+
"es-CL": { "nu": ["latn"] },
|
|
1390
|
+
"es-CO": { "nu": ["latn"] },
|
|
1391
|
+
"es-CR": { "nu": ["latn"] },
|
|
1392
|
+
"es-CU": { "nu": ["latn"] },
|
|
1393
|
+
"es-DO": { "nu": ["latn"] },
|
|
1394
|
+
"es-EA": { "nu": ["latn"] },
|
|
1395
|
+
"es-EC": { "nu": ["latn"] },
|
|
1396
|
+
"es-GQ": { "nu": ["latn"] },
|
|
1397
|
+
"es-GT": { "nu": ["latn"] },
|
|
1398
|
+
"es-HN": { "nu": ["latn"] },
|
|
1399
|
+
"es-IC": { "nu": ["latn"] },
|
|
1400
|
+
"es-MX": { "nu": ["latn"] },
|
|
1401
|
+
"es-NI": { "nu": ["latn"] },
|
|
1402
|
+
"es-PA": { "nu": ["latn"] },
|
|
1403
|
+
"es-PE": { "nu": ["latn"] },
|
|
1404
|
+
"es-PH": { "nu": ["latn"] },
|
|
1405
|
+
"es-PR": { "nu": ["latn"] },
|
|
1406
|
+
"es-PY": { "nu": ["latn"] },
|
|
1407
|
+
"es-SV": { "nu": ["latn"] },
|
|
1408
|
+
"es-US": { "nu": ["latn"] },
|
|
1409
|
+
"es-UY": { "nu": ["latn"] },
|
|
1410
|
+
"es-VE": { "nu": ["latn"] },
|
|
1411
|
+
"et": { "nu": ["latn"] },
|
|
1412
|
+
"eu": { "nu": ["latn"] },
|
|
1413
|
+
"ewo": { "nu": ["latn"] },
|
|
1414
|
+
"fa": { "nu": ["arabext"] },
|
|
1415
|
+
"fa-AF": { "nu": ["arabext"] },
|
|
1416
|
+
"ff": { "nu": ["latn"] },
|
|
1417
|
+
"ff-Adlm": { "nu": ["adlm"] },
|
|
1418
|
+
"ff-Adlm-BF": { "nu": ["adlm"] },
|
|
1419
|
+
"ff-Adlm-CM": { "nu": ["adlm"] },
|
|
1420
|
+
"ff-Adlm-GH": { "nu": ["adlm"] },
|
|
1421
|
+
"ff-Adlm-GM": { "nu": ["adlm"] },
|
|
1422
|
+
"ff-Adlm-GW": { "nu": ["adlm"] },
|
|
1423
|
+
"ff-Adlm-LR": { "nu": ["adlm"] },
|
|
1424
|
+
"ff-Adlm-MR": { "nu": ["adlm"] },
|
|
1425
|
+
"ff-Adlm-NE": { "nu": ["adlm"] },
|
|
1426
|
+
"ff-Adlm-NG": { "nu": ["adlm"] },
|
|
1427
|
+
"ff-Adlm-SL": { "nu": ["adlm"] },
|
|
1428
|
+
"ff-Adlm-SN": { "nu": ["adlm"] },
|
|
1429
|
+
"ff-Latn": { "nu": ["latn"] },
|
|
1430
|
+
"ff-Latn-BF": { "nu": ["latn"] },
|
|
1431
|
+
"ff-Latn-CM": { "nu": ["latn"] },
|
|
1432
|
+
"ff-Latn-GH": { "nu": ["latn"] },
|
|
1433
|
+
"ff-Latn-GM": { "nu": ["latn"] },
|
|
1434
|
+
"ff-Latn-GN": { "nu": ["latn"] },
|
|
1435
|
+
"ff-Latn-GW": { "nu": ["latn"] },
|
|
1436
|
+
"ff-Latn-LR": { "nu": ["latn"] },
|
|
1437
|
+
"ff-Latn-MR": { "nu": ["latn"] },
|
|
1438
|
+
"ff-Latn-NE": { "nu": ["latn"] },
|
|
1439
|
+
"ff-Latn-NG": { "nu": ["latn"] },
|
|
1440
|
+
"ff-Latn-SL": { "nu": ["latn"] },
|
|
1441
|
+
"fi": {
|
|
1442
|
+
"nu": ["latn"],
|
|
1443
|
+
"separator": { "latn": "." }
|
|
1444
|
+
},
|
|
1445
|
+
"fil": { "nu": ["latn"] },
|
|
1446
|
+
"fo": { "nu": ["latn"] },
|
|
1447
|
+
"fo-DK": { "nu": ["latn"] },
|
|
1448
|
+
"fr": { "nu": ["latn"] },
|
|
1449
|
+
"fr-BE": { "nu": ["latn"] },
|
|
1450
|
+
"fr-BF": { "nu": ["latn"] },
|
|
1451
|
+
"fr-BI": { "nu": ["latn"] },
|
|
1452
|
+
"fr-BJ": { "nu": ["latn"] },
|
|
1453
|
+
"fr-BL": { "nu": ["latn"] },
|
|
1454
|
+
"fr-CA": { "nu": ["latn"] },
|
|
1455
|
+
"fr-CD": { "nu": ["latn"] },
|
|
1456
|
+
"fr-CF": { "nu": ["latn"] },
|
|
1457
|
+
"fr-CG": { "nu": ["latn"] },
|
|
1458
|
+
"fr-CH": { "nu": ["latn"] },
|
|
1459
|
+
"fr-CI": { "nu": ["latn"] },
|
|
1460
|
+
"fr-CM": { "nu": ["latn"] },
|
|
1461
|
+
"fr-DJ": { "nu": ["latn"] },
|
|
1462
|
+
"fr-DZ": { "nu": ["latn"] },
|
|
1463
|
+
"fr-GA": { "nu": ["latn"] },
|
|
1464
|
+
"fr-GF": { "nu": ["latn"] },
|
|
1465
|
+
"fr-GN": { "nu": ["latn"] },
|
|
1466
|
+
"fr-GP": { "nu": ["latn"] },
|
|
1467
|
+
"fr-GQ": { "nu": ["latn"] },
|
|
1468
|
+
"fr-HT": { "nu": ["latn"] },
|
|
1469
|
+
"fr-KM": { "nu": ["latn"] },
|
|
1470
|
+
"fr-LU": { "nu": ["latn"] },
|
|
1471
|
+
"fr-MA": { "nu": ["latn"] },
|
|
1472
|
+
"fr-MC": { "nu": ["latn"] },
|
|
1473
|
+
"fr-MF": { "nu": ["latn"] },
|
|
1474
|
+
"fr-MG": { "nu": ["latn"] },
|
|
1475
|
+
"fr-ML": { "nu": ["latn"] },
|
|
1476
|
+
"fr-MQ": { "nu": ["latn"] },
|
|
1477
|
+
"fr-MR": { "nu": ["latn"] },
|
|
1478
|
+
"fr-MU": { "nu": ["latn"] },
|
|
1479
|
+
"fr-NC": { "nu": ["latn"] },
|
|
1480
|
+
"fr-NE": { "nu": ["latn"] },
|
|
1481
|
+
"fr-PF": { "nu": ["latn"] },
|
|
1482
|
+
"fr-PM": { "nu": ["latn"] },
|
|
1483
|
+
"fr-RE": { "nu": ["latn"] },
|
|
1484
|
+
"fr-RW": { "nu": ["latn"] },
|
|
1485
|
+
"fr-SC": { "nu": ["latn"] },
|
|
1486
|
+
"fr-SN": { "nu": ["latn"] },
|
|
1487
|
+
"fr-SY": { "nu": ["latn"] },
|
|
1488
|
+
"fr-TD": { "nu": ["latn"] },
|
|
1489
|
+
"fr-TG": { "nu": ["latn"] },
|
|
1490
|
+
"fr-TN": { "nu": ["latn"] },
|
|
1491
|
+
"fr-VU": { "nu": ["latn"] },
|
|
1492
|
+
"fr-WF": { "nu": ["latn"] },
|
|
1493
|
+
"fr-YT": { "nu": ["latn"] },
|
|
1494
|
+
"frr": { "nu": ["latn"] },
|
|
1495
|
+
"fur": { "nu": ["latn"] },
|
|
1496
|
+
"fy": { "nu": ["latn"] },
|
|
1497
|
+
"ga": { "nu": ["latn"] },
|
|
1498
|
+
"ga-GB": { "nu": ["latn"] },
|
|
1499
|
+
"gaa": { "nu": ["latn"] },
|
|
1500
|
+
"gd": { "nu": ["latn"] },
|
|
1501
|
+
"gez": { "nu": ["latn"] },
|
|
1502
|
+
"gez-ER": { "nu": ["latn"] },
|
|
1503
|
+
"gl": { "nu": ["latn"] },
|
|
1504
|
+
"gn": { "nu": ["latn"] },
|
|
1505
|
+
"gsw": { "nu": ["latn"] },
|
|
1506
|
+
"gsw-FR": { "nu": ["latn"] },
|
|
1507
|
+
"gsw-LI": { "nu": ["latn"] },
|
|
1508
|
+
"gu": { "nu": ["latn"] },
|
|
1509
|
+
"guz": { "nu": ["latn"] },
|
|
1510
|
+
"gv": { "nu": ["latn"] },
|
|
1511
|
+
"ha": { "nu": ["latn"] },
|
|
1512
|
+
"ha-Arab": { "nu": ["latn"] },
|
|
1513
|
+
"ha-Arab-SD": { "nu": ["latn"] },
|
|
1514
|
+
"ha-GH": { "nu": ["latn"] },
|
|
1515
|
+
"ha-NE": { "nu": ["latn"] },
|
|
1516
|
+
"haw": { "nu": ["latn"] },
|
|
1517
|
+
"he": { "nu": ["latn"] },
|
|
1518
|
+
"hi": { "nu": ["latn"] },
|
|
1519
|
+
"hi-Latn": { "nu": ["latn"] },
|
|
1520
|
+
"hnj": { "nu": ["hmnp", "latn"] },
|
|
1521
|
+
"hnj-Hmnp": { "nu": ["hmnp", "latn"] },
|
|
1522
|
+
"hr": { "nu": ["latn"] },
|
|
1523
|
+
"hr-BA": { "nu": ["latn"] },
|
|
1524
|
+
"hsb": { "nu": ["latn"] },
|
|
1525
|
+
"ht": { "nu": ["latn"] },
|
|
1526
|
+
"hu": { "nu": ["latn"] },
|
|
1527
|
+
"hy": { "nu": ["latn"] },
|
|
1528
|
+
"ia": { "nu": ["latn"] },
|
|
1529
|
+
"id": {
|
|
1530
|
+
"nu": ["latn"],
|
|
1531
|
+
"separator": { "latn": "." }
|
|
1532
|
+
},
|
|
1533
|
+
"ie": { "nu": ["latn"] },
|
|
1534
|
+
"ig": { "nu": ["latn"] },
|
|
1535
|
+
"ii": { "nu": ["latn"] },
|
|
1536
|
+
"io": { "nu": ["latn"] },
|
|
1537
|
+
"is": { "nu": ["latn"] },
|
|
1538
|
+
"it": { "nu": ["latn"] },
|
|
1539
|
+
"it-CH": { "nu": ["latn"] },
|
|
1540
|
+
"it-SM": { "nu": ["latn"] },
|
|
1541
|
+
"it-VA": { "nu": ["latn"] },
|
|
1542
|
+
"iu": { "nu": ["latn"] },
|
|
1543
|
+
"iu-Latn": { "nu": ["latn"] },
|
|
1544
|
+
"ja": { "nu": ["latn"] },
|
|
1545
|
+
"jbo": { "nu": ["latn"] },
|
|
1546
|
+
"jgo": { "nu": ["latn"] },
|
|
1547
|
+
"jmc": { "nu": ["latn"] },
|
|
1548
|
+
"jv": { "nu": ["latn"] },
|
|
1549
|
+
"ka": { "nu": ["latn"] },
|
|
1550
|
+
"kaa": { "nu": ["latn"] },
|
|
1551
|
+
"kaa-Cyrl": { "nu": ["latn"] },
|
|
1552
|
+
"kaa-Latn": { "nu": ["latn"] },
|
|
1553
|
+
"kab": { "nu": ["latn"] },
|
|
1554
|
+
"kaj": { "nu": ["latn"] },
|
|
1555
|
+
"kam": { "nu": ["latn"] },
|
|
1556
|
+
"kcg": { "nu": ["latn"] },
|
|
1557
|
+
"kde": { "nu": ["latn"] },
|
|
1558
|
+
"kea": { "nu": ["latn"] },
|
|
1559
|
+
"kek": { "nu": ["latn"] },
|
|
1560
|
+
"ken": { "nu": ["latn"] },
|
|
1561
|
+
"kgp": { "nu": ["latn"] },
|
|
1562
|
+
"khq": { "nu": ["latn"] },
|
|
1563
|
+
"ki": { "nu": ["latn"] },
|
|
1564
|
+
"kk": { "nu": ["latn"] },
|
|
1565
|
+
"kk-Arab": { "nu": ["latn"] },
|
|
1566
|
+
"kk-Cyrl": { "nu": ["latn"] },
|
|
1567
|
+
"kk-KZ": { "nu": ["latn"] },
|
|
1568
|
+
"kkj": { "nu": ["latn"] },
|
|
1569
|
+
"kl": { "nu": ["latn"] },
|
|
1570
|
+
"kln": { "nu": ["latn"] },
|
|
1571
|
+
"km": { "nu": ["latn"] },
|
|
1572
|
+
"kn": { "nu": ["latn"] },
|
|
1573
|
+
"ko": { "nu": ["latn"] },
|
|
1574
|
+
"ko-CN": { "nu": ["latn"] },
|
|
1575
|
+
"ko-KP": { "nu": ["latn"] },
|
|
1576
|
+
"kok": { "nu": ["latn"] },
|
|
1577
|
+
"kok-Deva": { "nu": ["latn"] },
|
|
1578
|
+
"kok-Latn": { "nu": ["latn"] },
|
|
1579
|
+
"kpe": { "nu": ["latn"] },
|
|
1580
|
+
"kpe-GN": { "nu": ["latn"] },
|
|
1581
|
+
"ks": { "nu": ["arabext"] },
|
|
1582
|
+
"ks-Arab": { "nu": ["arabext"] },
|
|
1583
|
+
"ks-Deva": { "nu": ["latn"] },
|
|
1584
|
+
"ksb": { "nu": ["latn"] },
|
|
1585
|
+
"ksf": { "nu": ["latn"] },
|
|
1586
|
+
"ksh": { "nu": ["latn"] },
|
|
1587
|
+
"ku": { "nu": ["latn"] },
|
|
1588
|
+
"ku-Arab": { "nu": ["latn"] },
|
|
1589
|
+
"ku-Arab-IR": { "nu": ["latn"] },
|
|
1590
|
+
"ku-Latn": { "nu": ["latn"] },
|
|
1591
|
+
"ku-Latn-IQ": { "nu": ["latn"] },
|
|
1592
|
+
"ku-Latn-SY": { "nu": ["latn"] },
|
|
1593
|
+
"ku-TR": { "nu": ["latn"] },
|
|
1594
|
+
"kw": { "nu": ["latn"] },
|
|
1595
|
+
"kxv": { "nu": ["latn"] },
|
|
1596
|
+
"kxv-Deva": { "nu": ["latn"] },
|
|
1597
|
+
"kxv-Latn": { "nu": ["latn"] },
|
|
1598
|
+
"kxv-Orya": { "nu": ["latn"] },
|
|
1599
|
+
"kxv-Telu": { "nu": ["latn"] },
|
|
1600
|
+
"ky": { "nu": ["latn"] },
|
|
1601
|
+
"la": { "nu": ["latn"] },
|
|
1602
|
+
"lag": { "nu": ["latn"] },
|
|
1603
|
+
"lb": { "nu": ["latn"] },
|
|
1604
|
+
"lg": { "nu": ["latn"] },
|
|
1605
|
+
"lij": { "nu": ["latn"] },
|
|
1606
|
+
"lkt": { "nu": ["latn"] },
|
|
1607
|
+
"lld": { "nu": ["latn"] },
|
|
1608
|
+
"lmo": { "nu": ["latn"] },
|
|
1609
|
+
"ln": { "nu": ["latn"] },
|
|
1610
|
+
"ln-AO": { "nu": ["latn"] },
|
|
1611
|
+
"ln-CF": { "nu": ["latn"] },
|
|
1612
|
+
"ln-CG": { "nu": ["latn"] },
|
|
1613
|
+
"lo": { "nu": ["latn"] },
|
|
1614
|
+
"lrc": { "nu": ["arabext"] },
|
|
1615
|
+
"lrc-IQ": { "nu": ["arabext"] },
|
|
1616
|
+
"lt": { "nu": ["latn"] },
|
|
1617
|
+
"ltg": { "nu": ["latn"] },
|
|
1618
|
+
"lu": { "nu": ["latn"] },
|
|
1619
|
+
"luo": { "nu": ["latn"] },
|
|
1620
|
+
"luy": { "nu": ["latn"] },
|
|
1621
|
+
"lv": { "nu": ["latn"] },
|
|
1622
|
+
"lzz": { "nu": ["latn"] },
|
|
1623
|
+
"mai": { "nu": ["latn"] },
|
|
1624
|
+
"mas": { "nu": ["latn"] },
|
|
1625
|
+
"mas-TZ": { "nu": ["latn"] },
|
|
1626
|
+
"mdf": { "nu": ["latn"] },
|
|
1627
|
+
"mer": { "nu": ["latn"] },
|
|
1628
|
+
"mfe": { "nu": ["latn"] },
|
|
1629
|
+
"mg": { "nu": ["latn"] },
|
|
1630
|
+
"mgh": { "nu": ["latn"] },
|
|
1631
|
+
"mgo": { "nu": ["latn"] },
|
|
1632
|
+
"mhn": { "nu": ["latn"] },
|
|
1633
|
+
"mi": { "nu": ["latn"] },
|
|
1634
|
+
"mic": { "nu": ["latn"] },
|
|
1635
|
+
"mk": { "nu": ["latn"] },
|
|
1636
|
+
"ml": { "nu": ["latn"] },
|
|
1637
|
+
"mn": { "nu": ["latn"] },
|
|
1638
|
+
"mn-Mong": { "nu": ["latn"] },
|
|
1639
|
+
"mn-Mong-MN": { "nu": ["latn"] },
|
|
1640
|
+
"mni": { "nu": ["beng"] },
|
|
1641
|
+
"mni-Beng": { "nu": ["beng"] },
|
|
1642
|
+
"mni-Mtei": { "nu": ["mtei"] },
|
|
1643
|
+
"moh": { "nu": ["latn"] },
|
|
1644
|
+
"mr": { "nu": ["deva"] },
|
|
1645
|
+
"ms": { "nu": ["latn"] },
|
|
1646
|
+
"ms-Arab": { "nu": ["latn"] },
|
|
1647
|
+
"ms-Arab-BN": { "nu": ["latn"] },
|
|
1648
|
+
"ms-BN": { "nu": ["latn"] },
|
|
1649
|
+
"ms-ID": {
|
|
1650
|
+
"nu": ["latn"],
|
|
1651
|
+
"separator": { "latn": "." }
|
|
1652
|
+
},
|
|
1653
|
+
"ms-SG": { "nu": ["latn"] },
|
|
1654
|
+
"mt": { "nu": ["latn"] },
|
|
1655
|
+
"mua": { "nu": ["latn"] },
|
|
1656
|
+
"mus": { "nu": ["latn"] },
|
|
1657
|
+
"mww": { "nu": ["hmnp", "latn"] },
|
|
1658
|
+
"mww-Hmnp": { "nu": ["hmnp", "latn"] },
|
|
1659
|
+
"my": { "nu": ["mymr"] },
|
|
1660
|
+
"myv": { "nu": ["latn"] },
|
|
1661
|
+
"mzn": { "nu": ["arabext"] },
|
|
1662
|
+
"naq": { "nu": ["latn"] },
|
|
1663
|
+
"nb": { "nu": ["latn"] },
|
|
1664
|
+
"nb-SJ": { "nu": ["latn"] },
|
|
1665
|
+
"nd": { "nu": ["latn"] },
|
|
1666
|
+
"nds": { "nu": ["latn"] },
|
|
1667
|
+
"nds-NL": { "nu": ["latn"] },
|
|
1668
|
+
"ne": { "nu": ["deva"] },
|
|
1669
|
+
"ne-IN": { "nu": ["deva"] },
|
|
1670
|
+
"nl": { "nu": ["latn"] },
|
|
1671
|
+
"nl-AW": { "nu": ["latn"] },
|
|
1672
|
+
"nl-BE": { "nu": ["latn"] },
|
|
1673
|
+
"nl-BQ": { "nu": ["latn"] },
|
|
1674
|
+
"nl-CW": { "nu": ["latn"] },
|
|
1675
|
+
"nl-SR": { "nu": ["latn"] },
|
|
1676
|
+
"nl-SX": { "nu": ["latn"] },
|
|
1677
|
+
"nmg": { "nu": ["latn"] },
|
|
1678
|
+
"nn": { "nu": ["latn"] },
|
|
1679
|
+
"nnh": { "nu": ["latn"] },
|
|
1680
|
+
"no": { "nu": ["latn"] },
|
|
1681
|
+
"nqo": { "nu": ["nkoo"] },
|
|
1682
|
+
"nr": { "nu": ["latn"] },
|
|
1683
|
+
"nso": { "nu": ["latn"] },
|
|
1684
|
+
"nus": { "nu": ["latn"] },
|
|
1685
|
+
"nv": { "nu": ["latn"] },
|
|
1686
|
+
"ny": { "nu": ["latn"] },
|
|
1687
|
+
"nyn": { "nu": ["latn"] },
|
|
1688
|
+
"oc": { "nu": ["latn"] },
|
|
1689
|
+
"oc-ES": { "nu": ["latn"] },
|
|
1690
|
+
"oka": { "nu": ["latn"] },
|
|
1691
|
+
"oka-US": { "nu": ["latn"] },
|
|
1692
|
+
"om": { "nu": ["latn"] },
|
|
1693
|
+
"om-KE": { "nu": ["latn"] },
|
|
1694
|
+
"or": { "nu": ["latn"] },
|
|
1695
|
+
"os": { "nu": ["latn"] },
|
|
1696
|
+
"os-RU": { "nu": ["latn"] },
|
|
1697
|
+
"osa": { "nu": ["latn"] },
|
|
1698
|
+
"pa": { "nu": ["latn"] },
|
|
1699
|
+
"pa-Arab": { "nu": ["arabext"] },
|
|
1700
|
+
"pa-Guru": { "nu": ["latn"] },
|
|
1701
|
+
"pap": { "nu": ["latn"] },
|
|
1702
|
+
"pap-AW": { "nu": ["latn"] },
|
|
1703
|
+
"pcm": { "nu": ["latn"] },
|
|
1704
|
+
"pi": { "nu": ["latn"] },
|
|
1705
|
+
"pi-Latn": { "nu": ["latn"] },
|
|
1706
|
+
"pis": { "nu": ["latn"] },
|
|
1707
|
+
"pl": { "nu": ["latn"] },
|
|
1708
|
+
"pms": { "nu": ["latn"] },
|
|
1709
|
+
"prg": { "nu": ["latn"] },
|
|
1710
|
+
"ps": { "nu": ["arabext"] },
|
|
1711
|
+
"ps-PK": { "nu": ["arabext"] },
|
|
1712
|
+
"pt": { "nu": ["latn"] },
|
|
1713
|
+
"pt-AO": { "nu": ["latn"] },
|
|
1714
|
+
"pt-CH": { "nu": ["latn"] },
|
|
1715
|
+
"pt-CV": { "nu": ["latn"] },
|
|
1716
|
+
"pt-GQ": { "nu": ["latn"] },
|
|
1717
|
+
"pt-GW": { "nu": ["latn"] },
|
|
1718
|
+
"pt-LU": { "nu": ["latn"] },
|
|
1719
|
+
"pt-MO": { "nu": ["latn"] },
|
|
1720
|
+
"pt-MZ": { "nu": ["latn"] },
|
|
1721
|
+
"pt-PT": { "nu": ["latn"] },
|
|
1722
|
+
"pt-ST": { "nu": ["latn"] },
|
|
1723
|
+
"pt-TL": { "nu": ["latn"] },
|
|
1724
|
+
"qu": { "nu": ["latn"] },
|
|
1725
|
+
"qu-BO": { "nu": ["latn"] },
|
|
1726
|
+
"qu-EC": { "nu": ["latn"] },
|
|
1727
|
+
"quc": { "nu": ["latn"] },
|
|
1728
|
+
"raj": { "nu": ["deva"] },
|
|
1729
|
+
"rhg": { "nu": ["latn"] },
|
|
1730
|
+
"rhg-Rohg": { "nu": ["latn"] },
|
|
1731
|
+
"rhg-Rohg-BD": { "nu": ["latn"] },
|
|
1732
|
+
"rif": { "nu": ["latn"] },
|
|
1733
|
+
"rm": { "nu": ["latn"] },
|
|
1734
|
+
"rn": { "nu": ["latn"] },
|
|
1735
|
+
"ro": { "nu": ["latn"] },
|
|
1736
|
+
"ro-MD": { "nu": ["latn"] },
|
|
1737
|
+
"rof": { "nu": ["latn"] },
|
|
1738
|
+
"ru": { "nu": ["latn"] },
|
|
1739
|
+
"ru-BY": { "nu": ["latn"] },
|
|
1740
|
+
"ru-KG": { "nu": ["latn"] },
|
|
1741
|
+
"ru-KZ": { "nu": ["latn"] },
|
|
1742
|
+
"ru-MD": { "nu": ["latn"] },
|
|
1743
|
+
"ru-UA": { "nu": ["latn"] },
|
|
1744
|
+
"rw": { "nu": ["latn"] },
|
|
1745
|
+
"rwk": { "nu": ["latn"] },
|
|
1746
|
+
"sa": { "nu": ["deva"] },
|
|
1747
|
+
"sah": { "nu": ["latn"] },
|
|
1748
|
+
"saq": { "nu": ["latn"] },
|
|
1749
|
+
"sat": { "nu": ["olck"] },
|
|
1750
|
+
"sat-Deva": { "nu": ["deva"] },
|
|
1751
|
+
"sat-Olck": { "nu": ["olck"] },
|
|
1752
|
+
"sbp": { "nu": ["latn"] },
|
|
1753
|
+
"sc": { "nu": ["latn"] },
|
|
1754
|
+
"scn": { "nu": ["latn"] },
|
|
1755
|
+
"sd": { "nu": ["arab"] },
|
|
1756
|
+
"sd-Arab": { "nu": ["arab"] },
|
|
1757
|
+
"sd-Deva": { "nu": ["latn"] },
|
|
1758
|
+
"sdh": { "nu": ["arab"] },
|
|
1759
|
+
"sdh-IQ": { "nu": ["arab"] },
|
|
1760
|
+
"se": { "nu": ["latn"] },
|
|
1761
|
+
"se-FI": { "nu": ["latn"] },
|
|
1762
|
+
"se-SE": { "nu": ["latn"] },
|
|
1763
|
+
"seh": { "nu": ["latn"] },
|
|
1764
|
+
"ses": { "nu": ["latn"] },
|
|
1765
|
+
"sg": { "nu": ["latn"] },
|
|
1766
|
+
"sgs": { "nu": ["latn"] },
|
|
1767
|
+
"shi": { "nu": ["latn"] },
|
|
1768
|
+
"shi-Latn": { "nu": ["latn"] },
|
|
1769
|
+
"shi-Tfng": { "nu": ["latn"] },
|
|
1770
|
+
"shn": { "nu": ["latn"] },
|
|
1771
|
+
"shn-TH": { "nu": ["latn"] },
|
|
1772
|
+
"si": {
|
|
1773
|
+
"nu": ["latn"],
|
|
1774
|
+
"separator": { "latn": "." }
|
|
1775
|
+
},
|
|
1776
|
+
"sid": { "nu": ["latn"] },
|
|
1777
|
+
"sk": { "nu": ["latn"] },
|
|
1778
|
+
"skr": { "nu": ["latn"] },
|
|
1779
|
+
"sl": { "nu": ["latn"] },
|
|
1780
|
+
"sma": { "nu": ["latn"] },
|
|
1781
|
+
"sma-NO": { "nu": ["latn"] },
|
|
1782
|
+
"smj": { "nu": ["latn"] },
|
|
1783
|
+
"smj-NO": { "nu": ["latn"] },
|
|
1784
|
+
"smn": {
|
|
1785
|
+
"nu": ["latn"],
|
|
1786
|
+
"separator": { "latn": "." }
|
|
1787
|
+
},
|
|
1788
|
+
"sms": { "nu": ["latn"] },
|
|
1789
|
+
"sn": { "nu": ["latn"] },
|
|
1790
|
+
"so": { "nu": ["latn"] },
|
|
1791
|
+
"so-DJ": { "nu": ["latn"] },
|
|
1792
|
+
"so-ET": { "nu": ["latn"] },
|
|
1793
|
+
"so-KE": { "nu": ["latn"] },
|
|
1794
|
+
"sq": { "nu": ["latn"] },
|
|
1795
|
+
"sq-MK": { "nu": ["latn"] },
|
|
1796
|
+
"sq-XK": { "nu": ["latn"] },
|
|
1797
|
+
"sr": { "nu": ["latn"] },
|
|
1798
|
+
"sr-Cyrl": { "nu": ["latn"] },
|
|
1799
|
+
"sr-Cyrl-BA": { "nu": ["latn"] },
|
|
1800
|
+
"sr-Cyrl-ME": { "nu": ["latn"] },
|
|
1801
|
+
"sr-Cyrl-XK": { "nu": ["latn"] },
|
|
1802
|
+
"sr-Latn": { "nu": ["latn"] },
|
|
1803
|
+
"sr-Latn-BA": { "nu": ["latn"] },
|
|
1804
|
+
"sr-Latn-ME": { "nu": ["latn"] },
|
|
1805
|
+
"sr-Latn-XK": { "nu": ["latn"] },
|
|
1806
|
+
"ss": { "nu": ["latn"] },
|
|
1807
|
+
"ss-SZ": { "nu": ["latn"] },
|
|
1808
|
+
"ssy": { "nu": ["latn"] },
|
|
1809
|
+
"st": { "nu": ["latn"] },
|
|
1810
|
+
"st-LS": { "nu": ["latn"] },
|
|
1811
|
+
"su": {
|
|
1812
|
+
"nu": ["latn"],
|
|
1813
|
+
"separator": { "latn": "." }
|
|
1814
|
+
},
|
|
1815
|
+
"su-Latn": {
|
|
1816
|
+
"nu": ["latn"],
|
|
1817
|
+
"separator": { "latn": "." }
|
|
1818
|
+
},
|
|
1819
|
+
"suz": { "nu": ["latn"] },
|
|
1820
|
+
"suz-Deva": { "nu": ["latn"] },
|
|
1821
|
+
"suz-Sunu": { "nu": ["latn"] },
|
|
1822
|
+
"sv": { "nu": ["latn"] },
|
|
1823
|
+
"sv-AX": { "nu": ["latn"] },
|
|
1824
|
+
"sv-FI": {
|
|
1825
|
+
"nu": ["latn"],
|
|
1826
|
+
"separator": { "latn": "." }
|
|
1827
|
+
},
|
|
1828
|
+
"sw": { "nu": ["latn"] },
|
|
1829
|
+
"sw-CD": { "nu": ["latn"] },
|
|
1830
|
+
"sw-KE": { "nu": ["latn"] },
|
|
1831
|
+
"sw-UG": { "nu": ["latn"] },
|
|
1832
|
+
"syr": { "nu": ["latn"] },
|
|
1833
|
+
"syr-SY": { "nu": ["latn"] },
|
|
1834
|
+
"szl": { "nu": ["latn"] },
|
|
1835
|
+
"ta": { "nu": ["latn"] },
|
|
1836
|
+
"ta-LK": { "nu": ["latn"] },
|
|
1837
|
+
"ta-MY": { "nu": ["latn"] },
|
|
1838
|
+
"ta-SG": { "nu": ["latn"] },
|
|
1839
|
+
"te": { "nu": ["latn"] },
|
|
1840
|
+
"teo": { "nu": ["latn"] },
|
|
1841
|
+
"teo-KE": { "nu": ["latn"] },
|
|
1842
|
+
"tg": { "nu": ["latn"] },
|
|
1843
|
+
"th": { "nu": ["latn"] },
|
|
1844
|
+
"ti": { "nu": ["latn"] },
|
|
1845
|
+
"ti-ER": { "nu": ["latn"] },
|
|
1846
|
+
"tig": { "nu": ["latn"] },
|
|
1847
|
+
"tk": { "nu": ["latn"] },
|
|
1848
|
+
"tn": { "nu": ["latn"] },
|
|
1849
|
+
"tn-BW": { "nu": ["latn"] },
|
|
1850
|
+
"to": { "nu": ["latn"] },
|
|
1851
|
+
"tok": { "nu": ["latn"] },
|
|
1852
|
+
"tpi": { "nu": ["latn"] },
|
|
1853
|
+
"tr": { "nu": ["latn"] },
|
|
1854
|
+
"tr-CY": { "nu": ["latn"] },
|
|
1855
|
+
"trv": { "nu": ["latn"] },
|
|
1856
|
+
"trw": { "nu": ["latn"] },
|
|
1857
|
+
"ts": { "nu": ["latn"] },
|
|
1858
|
+
"tt": { "nu": ["latn"] },
|
|
1859
|
+
"twq": { "nu": ["latn"] },
|
|
1860
|
+
"tyv": { "nu": ["latn"] },
|
|
1861
|
+
"tzm": { "nu": ["latn"] },
|
|
1862
|
+
"ug": { "nu": ["latn"] },
|
|
1863
|
+
"uk": { "nu": ["latn"] },
|
|
1864
|
+
"und": { "nu": ["latn"] },
|
|
1865
|
+
"ur": { "nu": ["latn"] },
|
|
1866
|
+
"ur-IN": {
|
|
1867
|
+
"nu": ["arabext"],
|
|
1868
|
+
"separator": { "arabext": "٫" }
|
|
1869
|
+
},
|
|
1870
|
+
"uz": { "nu": ["latn"] },
|
|
1871
|
+
"uz-Arab": { "nu": ["arabext"] },
|
|
1872
|
+
"uz-Cyrl": { "nu": ["latn"] },
|
|
1873
|
+
"uz-Latn": { "nu": ["latn"] },
|
|
1874
|
+
"vai": { "nu": ["latn"] },
|
|
1875
|
+
"vai-Latn": { "nu": ["latn"] },
|
|
1876
|
+
"vai-Vaii": { "nu": ["latn"] },
|
|
1877
|
+
"ve": { "nu": ["latn"] },
|
|
1878
|
+
"vec": { "nu": ["latn"] },
|
|
1879
|
+
"vi": { "nu": ["latn"] },
|
|
1880
|
+
"vmw": { "nu": ["latn"] },
|
|
1881
|
+
"vo": { "nu": ["latn"] },
|
|
1882
|
+
"vun": { "nu": ["latn"] },
|
|
1883
|
+
"wa": { "nu": ["latn"] },
|
|
1884
|
+
"wae": { "nu": ["latn"] },
|
|
1885
|
+
"wal": { "nu": ["latn"] },
|
|
1886
|
+
"wbp": { "nu": ["latn"] },
|
|
1887
|
+
"wo": { "nu": ["latn"] },
|
|
1888
|
+
"xh": { "nu": ["latn"] },
|
|
1889
|
+
"xnr": { "nu": ["latn"] },
|
|
1890
|
+
"xog": { "nu": ["latn"] },
|
|
1891
|
+
"yav": { "nu": ["latn"] },
|
|
1892
|
+
"yi": { "nu": ["latn"] },
|
|
1893
|
+
"yo": { "nu": ["latn"] },
|
|
1894
|
+
"yo-BJ": { "nu": ["latn"] },
|
|
1895
|
+
"yrl": { "nu": ["latn"] },
|
|
1896
|
+
"yrl-CO": { "nu": ["latn"] },
|
|
1897
|
+
"yrl-VE": { "nu": ["latn"] },
|
|
1898
|
+
"yue": { "nu": ["latn"] },
|
|
1899
|
+
"yue-Hans": { "nu": ["latn"] },
|
|
1900
|
+
"yue-Hant": { "nu": ["latn"] },
|
|
1901
|
+
"yue-Hant-CN": { "nu": ["latn"] },
|
|
1902
|
+
"yue-Hant-MO": { "nu": ["latn"] },
|
|
1903
|
+
"za": { "nu": ["latn"] },
|
|
1904
|
+
"zgh": { "nu": ["latn"] },
|
|
1905
|
+
"zh": { "nu": ["latn"] },
|
|
1906
|
+
"zh-Hans": { "nu": ["latn"] },
|
|
1907
|
+
"zh-Hans-HK": { "nu": ["latn"] },
|
|
1908
|
+
"zh-Hans-MO": { "nu": ["latn"] },
|
|
1909
|
+
"zh-Hans-MY": { "nu": ["latn"] },
|
|
1910
|
+
"zh-Hans-SG": { "nu": ["latn"] },
|
|
1911
|
+
"zh-Hant": { "nu": ["latn"] },
|
|
1912
|
+
"zh-Hant-HK": { "nu": ["latn"] },
|
|
1913
|
+
"zh-Hant-MO": { "nu": ["latn"] },
|
|
1914
|
+
"zh-Hant-MY": { "nu": ["latn"] },
|
|
1915
|
+
"zh-Latn": { "nu": ["latn"] },
|
|
1916
|
+
"zu": { "nu": ["latn"] }
|
|
1917
|
+
}
|
|
1918
|
+
};
|
|
1919
|
+
//#endregion
|
|
1920
|
+
//#region packages/intl-durationformat/core.ts
|
|
1921
|
+
const RESOLVED_OPTIONS_KEYS = [
|
|
1922
|
+
"locale",
|
|
1923
|
+
"style",
|
|
1924
|
+
"years",
|
|
1925
|
+
"yearsDisplay",
|
|
1926
|
+
"months",
|
|
1927
|
+
"monthsDisplay",
|
|
1928
|
+
"weeks",
|
|
1929
|
+
"weeksDisplay",
|
|
1930
|
+
"days",
|
|
1931
|
+
"daysDisplay",
|
|
1932
|
+
"hours",
|
|
1933
|
+
"hoursDisplay",
|
|
1934
|
+
"minutes",
|
|
1935
|
+
"minutesDisplay",
|
|
1936
|
+
"seconds",
|
|
1937
|
+
"secondsDisplay",
|
|
1938
|
+
"milliseconds",
|
|
1939
|
+
"millisecondsDisplay",
|
|
1940
|
+
"microseconds",
|
|
1941
|
+
"microsecondsDisplay",
|
|
1942
|
+
"nanoseconds",
|
|
1943
|
+
"nanosecondsDisplay",
|
|
1944
|
+
"numberingSystem",
|
|
1945
|
+
"fractionalDigits"
|
|
1946
|
+
];
|
|
1947
|
+
const TABLE_3 = [
|
|
1948
|
+
{
|
|
1949
|
+
styleSlot: "years",
|
|
1950
|
+
displaySlot: "yearsDisplay",
|
|
1951
|
+
unit: "years",
|
|
1952
|
+
values: [
|
|
1953
|
+
"long",
|
|
1954
|
+
"short",
|
|
1955
|
+
"narrow"
|
|
1956
|
+
],
|
|
1957
|
+
digitalDefault: "short"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
styleSlot: "months",
|
|
1961
|
+
displaySlot: "monthsDisplay",
|
|
1962
|
+
unit: "months",
|
|
1963
|
+
values: [
|
|
1964
|
+
"long",
|
|
1965
|
+
"short",
|
|
1966
|
+
"narrow"
|
|
1967
|
+
],
|
|
1968
|
+
digitalDefault: "short"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
styleSlot: "weeks",
|
|
1972
|
+
displaySlot: "weeksDisplay",
|
|
1973
|
+
unit: "weeks",
|
|
1974
|
+
values: [
|
|
1975
|
+
"long",
|
|
1976
|
+
"short",
|
|
1977
|
+
"narrow"
|
|
1978
|
+
],
|
|
1979
|
+
digitalDefault: "short"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
styleSlot: "days",
|
|
1983
|
+
displaySlot: "daysDisplay",
|
|
1984
|
+
unit: "days",
|
|
1985
|
+
values: [
|
|
1986
|
+
"long",
|
|
1987
|
+
"short",
|
|
1988
|
+
"narrow"
|
|
1989
|
+
],
|
|
1990
|
+
digitalDefault: "short"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
styleSlot: "hours",
|
|
1994
|
+
displaySlot: "hoursDisplay",
|
|
1995
|
+
unit: "hours",
|
|
1996
|
+
values: [
|
|
1997
|
+
"long",
|
|
1998
|
+
"short",
|
|
1999
|
+
"narrow",
|
|
2000
|
+
"numeric",
|
|
2001
|
+
"2-digit"
|
|
2002
|
+
],
|
|
2003
|
+
digitalDefault: "numeric"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
styleSlot: "minutes",
|
|
2007
|
+
displaySlot: "minutesDisplay",
|
|
2008
|
+
unit: "minutes",
|
|
2009
|
+
values: [
|
|
2010
|
+
"long",
|
|
2011
|
+
"short",
|
|
2012
|
+
"narrow",
|
|
2013
|
+
"numeric",
|
|
2014
|
+
"2-digit"
|
|
2015
|
+
],
|
|
2016
|
+
digitalDefault: "numeric"
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
styleSlot: "seconds",
|
|
2020
|
+
displaySlot: "secondsDisplay",
|
|
2021
|
+
unit: "seconds",
|
|
2022
|
+
values: [
|
|
2023
|
+
"long",
|
|
2024
|
+
"short",
|
|
2025
|
+
"narrow",
|
|
2026
|
+
"numeric",
|
|
2027
|
+
"2-digit"
|
|
2028
|
+
],
|
|
2029
|
+
digitalDefault: "numeric"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
styleSlot: "milliseconds",
|
|
2033
|
+
displaySlot: "millisecondsDisplay",
|
|
2034
|
+
unit: "milliseconds",
|
|
2035
|
+
values: [
|
|
2036
|
+
"long",
|
|
2037
|
+
"short",
|
|
2038
|
+
"narrow",
|
|
2039
|
+
"numeric"
|
|
2040
|
+
],
|
|
2041
|
+
digitalDefault: "numeric"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
styleSlot: "microseconds",
|
|
2045
|
+
displaySlot: "microsecondsDisplay",
|
|
2046
|
+
unit: "microseconds",
|
|
2047
|
+
values: [
|
|
2048
|
+
"long",
|
|
2049
|
+
"short",
|
|
2050
|
+
"narrow",
|
|
2051
|
+
"numeric"
|
|
2052
|
+
],
|
|
2053
|
+
digitalDefault: "numeric"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
styleSlot: "nanoseconds",
|
|
2057
|
+
displaySlot: "nanosecondsDisplay",
|
|
2058
|
+
unit: "nanoseconds",
|
|
2059
|
+
values: [
|
|
2060
|
+
"long",
|
|
2061
|
+
"short",
|
|
2062
|
+
"narrow",
|
|
2063
|
+
"numeric"
|
|
2064
|
+
],
|
|
2065
|
+
digitalDefault: "numeric"
|
|
2066
|
+
}
|
|
2067
|
+
];
|
|
2068
|
+
/**
|
|
2069
|
+
* DurationFormat provides locale-sensitive duration formatting
|
|
2070
|
+
* Implements the Intl.DurationFormat API from the TC39 proposal
|
|
2071
|
+
*/
|
|
2072
|
+
var DurationFormat = class DurationFormat {
|
|
2073
|
+
constructor(locales, options) {
|
|
2074
|
+
if (!(this && this instanceof DurationFormat ? this.constructor : void 0)) throw new TypeError("Intl.DurationFormat must be called with 'new'");
|
|
2075
|
+
const requestedLocales = CanonicalizeLocaleList(locales);
|
|
2076
|
+
const opt = Object.create(null);
|
|
2077
|
+
const opts = options === void 0 ? Object.create(null) : ToObject(options);
|
|
2078
|
+
const matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
|
|
2079
|
+
const numberingSystem = GetOption(opts, "numberingSystem", "string", void 0, void 0);
|
|
2080
|
+
if (numberingSystem !== void 0 && numberingSystemNames.indexOf(numberingSystem) < 0) throw RangeError(`Invalid numberingSystems: ${numberingSystem}`);
|
|
2081
|
+
opt.nu = numberingSystem;
|
|
2082
|
+
opt.localeMatcher = matcher;
|
|
2083
|
+
const { localeData, availableLocales } = DurationFormat;
|
|
2084
|
+
const r = ResolveLocale(availableLocales, requestedLocales, opt, ["nu"], localeData, DurationFormat.getDefaultLocale);
|
|
2085
|
+
const locale = r.locale;
|
|
2086
|
+
const internalSlots = getInternalSlots(this);
|
|
2087
|
+
internalSlots.initializedDurationFormat = true;
|
|
2088
|
+
internalSlots.locale = locale;
|
|
2089
|
+
internalSlots.numberingSystem = r.nu;
|
|
2090
|
+
const style = GetOption(opts, "style", "string", [
|
|
2091
|
+
"long",
|
|
2092
|
+
"short",
|
|
2093
|
+
"narrow",
|
|
2094
|
+
"digital"
|
|
2095
|
+
], "short");
|
|
2096
|
+
internalSlots.style = style;
|
|
2097
|
+
internalSlots.dataLocale = r.dataLocale;
|
|
2098
|
+
let prevStyle = "";
|
|
2099
|
+
TABLE_3.forEach((row) => {
|
|
2100
|
+
const { styleSlot, displaySlot, unit, values: valueList, digitalDefault: digitalBase } = row;
|
|
2101
|
+
const unitOptions = GetDurationUnitOptions(unit, opts, style, valueList, digitalBase, prevStyle);
|
|
2102
|
+
internalSlots[styleSlot] = unitOptions.style;
|
|
2103
|
+
internalSlots[displaySlot] = unitOptions.display;
|
|
2104
|
+
if (unit === "hours" || unit === "minutes" || unit === "seconds" || unit === "milliseconds" || unit === "microseconds") prevStyle = unitOptions.style;
|
|
2105
|
+
});
|
|
2106
|
+
internalSlots.fractionalDigits = GetNumberOption(opts, "fractionalDigits", 0, 9, void 0);
|
|
2107
|
+
}
|
|
2108
|
+
resolvedOptions() {
|
|
2109
|
+
if (typeof this !== "object" || !OrdinaryHasInstance(DurationFormat, this)) throw TypeError("Method Intl.DurationFormat.prototype.resolvedOptions called on incompatible receiver");
|
|
2110
|
+
const internalSlots = getInternalSlots(this);
|
|
2111
|
+
const ro = {};
|
|
2112
|
+
for (const key of RESOLVED_OPTIONS_KEYS) {
|
|
2113
|
+
let v = internalSlots[key];
|
|
2114
|
+
if (key === "fractionalDigits") {
|
|
2115
|
+
if (v !== void 0) v = Number(v);
|
|
2116
|
+
} else invariant$2(v !== void 0, `Missing internal slot ${key}`);
|
|
2117
|
+
ro[key] = v;
|
|
2118
|
+
}
|
|
2119
|
+
return ro;
|
|
2120
|
+
}
|
|
2121
|
+
formatToParts(duration) {
|
|
2122
|
+
if (getInternalSlots(this).initializedDurationFormat === void 0) throw new TypeError("Error uninitialized locale");
|
|
2123
|
+
const record = ToDurationRecord(duration);
|
|
2124
|
+
const parts = PartitionDurationFormatPattern(this, record);
|
|
2125
|
+
const result = [];
|
|
2126
|
+
for (const { type, unit, value } of parts) {
|
|
2127
|
+
const obj = {
|
|
2128
|
+
type,
|
|
2129
|
+
value
|
|
2130
|
+
};
|
|
2131
|
+
if (unit) obj.unit = unit;
|
|
2132
|
+
result.push(obj);
|
|
2133
|
+
}
|
|
2134
|
+
return result;
|
|
2135
|
+
}
|
|
2136
|
+
format(duration) {
|
|
2137
|
+
if (getInternalSlots(this).initializedDurationFormat === void 0) throw new TypeError("Error uninitialized locale");
|
|
2138
|
+
const record = ToDurationRecord(duration);
|
|
2139
|
+
const parts = PartitionDurationFormatPattern(this, record);
|
|
2140
|
+
let result = "";
|
|
2141
|
+
for (const { value } of parts) result += value;
|
|
2142
|
+
return result;
|
|
2143
|
+
}
|
|
2144
|
+
static supportedLocalesOf(locales, options) {
|
|
2145
|
+
return SupportedLocales(DurationFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
2146
|
+
}
|
|
2147
|
+
static {
|
|
2148
|
+
this.__defaultLocale = "en";
|
|
2149
|
+
}
|
|
2150
|
+
static {
|
|
2151
|
+
this.availableLocales = /* @__PURE__ */ new Set();
|
|
2152
|
+
}
|
|
2153
|
+
static {
|
|
2154
|
+
this.localeData = Object.keys(TIME_SEPARATORS.localeData).reduce((all, locale) => {
|
|
2155
|
+
DurationFormat.availableLocales.add(locale);
|
|
2156
|
+
const nu = TIME_SEPARATORS.localeData[locale].nu;
|
|
2157
|
+
all[locale] = {
|
|
2158
|
+
nu,
|
|
2159
|
+
digitalFormat: TIME_SEPARATORS.localeData[locale].separator || nu.reduce((separators, n) => {
|
|
2160
|
+
separators[n] = TIME_SEPARATORS.default;
|
|
2161
|
+
return separators;
|
|
2162
|
+
}, {})
|
|
2163
|
+
};
|
|
2164
|
+
return all;
|
|
2165
|
+
}, {});
|
|
2166
|
+
}
|
|
2167
|
+
static {
|
|
2168
|
+
this.getDefaultLocale = () => {
|
|
2169
|
+
return DurationFormat.__defaultLocale;
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
2172
|
+
static {
|
|
2173
|
+
this.polyfilled = true;
|
|
2174
|
+
}
|
|
2175
|
+
};
|
|
2176
|
+
//#endregion
|
|
2177
|
+
//#region packages/intl-durationformat/polyfill-force.ts
|
|
2178
|
+
if (typeof Intl === "undefined") {
|
|
2179
|
+
if (typeof window !== "undefined") Object.defineProperty(window, "Intl", { value: {} });
|
|
2180
|
+
else if (typeof global !== "undefined") Object.defineProperty(global, "Intl", { value: {} });
|
|
9
2181
|
}
|
|
10
2182
|
Object.defineProperty(Intl, "DurationFormat", { value: DurationFormat });
|
|
2183
|
+
//#endregion
|
|
2184
|
+
|
|
2185
|
+
//# sourceMappingURL=polyfill-force.js.map
|