@formatjs/intl-relativetimeformat 9.3.3 → 9.5.1
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/lib/should-polyfill.d.ts +1 -1
- package/lib/should-polyfill.d.ts.map +1 -1
- package/lib/should-polyfill.js +7 -2
- package/lib/supported-locales.d.ts +2 -0
- package/lib/supported-locales.d.ts.map +1 -0
- package/lib/supported-locales.js +2 -0
- package/locale-data/ar-AE.js +1 -1
- package/locale-data/{ca-ES-VALENCIA.d.ts → be-tarask.d.ts} +0 -0
- package/locale-data/be-tarask.js +6 -0
- package/locale-data/bs-Latn.js +1 -1
- package/locale-data/bs.js +1 -1
- package/locale-data/{en-US-POSIX.d.ts → ca-ES-valencia.d.ts} +0 -0
- package/locale-data/{ca-ES-VALENCIA.js → ca-ES-valencia.js} +1 -1
- package/locale-data/doi.js +1 -1
- package/locale-data/dsb.js +1 -1
- package/locale-data/el-CY.js +1 -1
- package/locale-data/el.js +1 -1
- package/locale-data/en-CA.js +1 -1
- package/locale-data/en-PH.js +1 -1
- package/locale-data/es-EA.js +1 -1
- package/locale-data/es-GQ.js +1 -1
- package/locale-data/es-IC.js +1 -1
- package/locale-data/es-PH.js +1 -1
- package/locale-data/es-US.js +1 -1
- package/locale-data/es.js +1 -1
- package/locale-data/eu.js +1 -1
- package/locale-data/ff-Adlm-BF.js +1 -1
- package/locale-data/ff-Adlm-CM.js +1 -1
- package/locale-data/ff-Adlm-GH.js +1 -1
- package/locale-data/ff-Adlm-GM.js +1 -1
- package/locale-data/ff-Adlm-GW.js +1 -1
- package/locale-data/ff-Adlm-LR.js +1 -1
- package/locale-data/ff-Adlm-MR.js +1 -1
- package/locale-data/ff-Adlm-NE.js +1 -1
- package/locale-data/ff-Adlm-NG.js +1 -1
- package/locale-data/ff-Adlm-SL.js +1 -1
- package/locale-data/ff-Adlm-SN.js +1 -1
- package/locale-data/ff-Adlm.js +1 -1
- package/locale-data/fil.js +1 -1
- package/locale-data/he.js +1 -1
- package/locale-data/hsb.js +1 -1
- package/locale-data/ia.js +1 -1
- package/locale-data/id.js +1 -1
- package/locale-data/is.js +1 -1
- package/locale-data/jv.js +1 -1
- package/locale-data/kgp.d.ts +1 -0
- package/locale-data/kgp.js +6 -0
- package/locale-data/mai.js +1 -1
- package/locale-data/mni-Beng.js +1 -1
- package/locale-data/mni.js +1 -1
- package/locale-data/nb-SJ.js +1 -1
- package/locale-data/nb.js +1 -1
- package/locale-data/nn.js +1 -1
- package/locale-data/no.js +1 -1
- package/locale-data/sc.d.ts +1 -0
- package/locale-data/sc.js +6 -0
- package/locale-data/sr-Cyrl-BA.js +1 -1
- package/locale-data/sr-Cyrl-ME.js +1 -1
- package/locale-data/sr-Cyrl-XK.js +1 -1
- package/locale-data/sr-Cyrl.js +1 -1
- package/locale-data/sr-Latn-BA.js +1 -1
- package/locale-data/sr-Latn-ME.js +1 -1
- package/locale-data/sr-Latn-XK.js +1 -1
- package/locale-data/sr-Latn.js +1 -1
- package/locale-data/sr.js +1 -1
- package/locale-data/ti-ER.js +1 -1
- package/locale-data/ti.js +1 -1
- package/locale-data/und.d.ts +1 -0
- package/locale-data/und.js +6 -0
- package/locale-data/yrl-CO.d.ts +1 -0
- package/locale-data/yrl-CO.js +6 -0
- package/locale-data/yrl-VE.d.ts +1 -0
- package/locale-data/yrl-VE.js +6 -0
- package/locale-data/yrl.d.ts +1 -0
- package/locale-data/yrl.js +6 -0
- package/package.json +3 -3
- package/polyfill.iife.js +58 -143
- package/should-polyfill.d.ts +1 -1
- package/should-polyfill.d.ts.map +1 -1
- package/should-polyfill.js +7 -2
- package/supported-locales.d.ts +2 -0
- package/supported-locales.d.ts.map +1 -0
- package/supported-locales.js +5 -0
- package/locale-data/en-US-POSIX.js +0 -6
package/polyfill.iife.js
CHANGED
|
@@ -10,26 +10,39 @@
|
|
|
10
10
|
};
|
|
11
11
|
var __commonJS = function(cb, mod) {
|
|
12
12
|
return function __require() {
|
|
13
|
-
return mod || (0, cb[
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
var __reExport = function(target, module, desc) {
|
|
16
|
+
var __reExport = function(target, module, copyDefault, desc) {
|
|
17
17
|
if (module && typeof module === "object" || typeof module === "function")
|
|
18
18
|
for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
19
|
key = keys[i];
|
|
20
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
20
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
21
21
|
__defProp(target, key, { get: function(k) {
|
|
22
22
|
return module[k];
|
|
23
23
|
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
|
24
24
|
}
|
|
25
25
|
return target;
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default",
|
|
27
|
+
var __toESM = function(module, isNodeMode) {
|
|
28
|
+
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: function() {
|
|
29
29
|
return module.default;
|
|
30
30
|
}, enumerable: true } : { value: module, enumerable: true })), module);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
34
|
+
var require_CanonicalizeLocaleList = __commonJS({
|
|
35
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js": function(exports) {
|
|
36
|
+
"use strict";
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CanonicalizeLocaleList = void 0;
|
|
39
|
+
function CanonicalizeLocaleList2(locales) {
|
|
40
|
+
return Intl.getCanonicalLocales(locales);
|
|
41
|
+
}
|
|
42
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList2;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
33
46
|
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js
|
|
34
47
|
var require_utils = __commonJS({
|
|
35
48
|
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js": function(exports) {
|
|
@@ -113,15 +126,17 @@
|
|
|
113
126
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
114
127
|
var utils_1 = require_utils();
|
|
115
128
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
116
|
-
var minimizedAvailableLocaleMap =
|
|
117
|
-
|
|
118
|
-
return all;
|
|
119
|
-
}, {});
|
|
120
|
-
var minimizedAvailableLocales = new Set();
|
|
129
|
+
var minimizedAvailableLocaleMap = {};
|
|
130
|
+
var minimizedAvailableLocales = /* @__PURE__ */ new Set();
|
|
121
131
|
availableLocales.forEach(function(locale2) {
|
|
122
132
|
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|
|
133
|
+
var canonicalizedLocale = Intl.getCanonicalLocales(locale2)[0] || locale2;
|
|
123
134
|
minimizedAvailableLocaleMap[minimizedLocale] = locale2;
|
|
135
|
+
minimizedAvailableLocaleMap[locale2] = locale2;
|
|
136
|
+
minimizedAvailableLocaleMap[canonicalizedLocale] = locale2;
|
|
124
137
|
minimizedAvailableLocales.add(minimizedLocale);
|
|
138
|
+
minimizedAvailableLocales.add(locale2);
|
|
139
|
+
minimizedAvailableLocales.add(canonicalizedLocale);
|
|
125
140
|
});
|
|
126
141
|
var foundLocale;
|
|
127
142
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -147,8 +162,11 @@
|
|
|
147
162
|
}
|
|
148
163
|
foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
149
164
|
}
|
|
165
|
+
if (!foundLocale) {
|
|
166
|
+
return { locale: getDefaultLocale() };
|
|
167
|
+
}
|
|
150
168
|
return {
|
|
151
|
-
locale:
|
|
169
|
+
locale: minimizedAvailableLocaleMap[foundLocale] || foundLocale
|
|
152
170
|
};
|
|
153
171
|
}
|
|
154
172
|
exports.BestFitMatcher = BestFitMatcher;
|
|
@@ -213,7 +231,7 @@
|
|
|
213
231
|
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
214
232
|
var utils_1 = require_utils();
|
|
215
233
|
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
216
|
-
function
|
|
234
|
+
function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
217
235
|
var matcher = options.localeMatcher;
|
|
218
236
|
var r;
|
|
219
237
|
if (matcher === "lookup") {
|
|
@@ -275,7 +293,7 @@
|
|
|
275
293
|
result.locale = foundLocale;
|
|
276
294
|
return result;
|
|
277
295
|
}
|
|
278
|
-
exports.ResolveLocale =
|
|
296
|
+
exports.ResolveLocale = ResolveLocale2;
|
|
279
297
|
}
|
|
280
298
|
});
|
|
281
299
|
|
|
@@ -309,19 +327,20 @@
|
|
|
309
327
|
"use strict";
|
|
310
328
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311
329
|
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
|
|
330
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
312
331
|
var ResolveLocale_1 = require_ResolveLocale();
|
|
313
|
-
function
|
|
332
|
+
function match2(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
314
333
|
var locales = availableLocales.reduce(function(all, l) {
|
|
315
334
|
all.add(l);
|
|
316
335
|
return all;
|
|
317
|
-
}, new Set());
|
|
318
|
-
return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
|
|
336
|
+
}, /* @__PURE__ */ new Set());
|
|
337
|
+
return (0, ResolveLocale_1.ResolveLocale)(locales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
|
|
319
338
|
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
320
339
|
}, [], {}, function() {
|
|
321
340
|
return defaultLocale;
|
|
322
341
|
}).locale;
|
|
323
342
|
}
|
|
324
|
-
exports.match =
|
|
343
|
+
exports.match = match2;
|
|
325
344
|
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
326
345
|
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
327
346
|
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
@@ -395,7 +414,7 @@
|
|
|
395
414
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js
|
|
396
415
|
function CoerceOptionsToObject(options) {
|
|
397
416
|
if (typeof options === "undefined") {
|
|
398
|
-
return Object.create(null);
|
|
417
|
+
return /* @__PURE__ */ Object.create(null);
|
|
399
418
|
}
|
|
400
419
|
return ToObject(options);
|
|
401
420
|
}
|
|
@@ -426,57 +445,6 @@
|
|
|
426
445
|
return fallback;
|
|
427
446
|
}
|
|
428
447
|
|
|
429
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
430
|
-
var SANCTIONED_UNITS = [
|
|
431
|
-
"angle-degree",
|
|
432
|
-
"area-acre",
|
|
433
|
-
"area-hectare",
|
|
434
|
-
"concentr-percent",
|
|
435
|
-
"digital-bit",
|
|
436
|
-
"digital-byte",
|
|
437
|
-
"digital-gigabit",
|
|
438
|
-
"digital-gigabyte",
|
|
439
|
-
"digital-kilobit",
|
|
440
|
-
"digital-kilobyte",
|
|
441
|
-
"digital-megabit",
|
|
442
|
-
"digital-megabyte",
|
|
443
|
-
"digital-petabyte",
|
|
444
|
-
"digital-terabit",
|
|
445
|
-
"digital-terabyte",
|
|
446
|
-
"duration-day",
|
|
447
|
-
"duration-hour",
|
|
448
|
-
"duration-millisecond",
|
|
449
|
-
"duration-minute",
|
|
450
|
-
"duration-month",
|
|
451
|
-
"duration-second",
|
|
452
|
-
"duration-week",
|
|
453
|
-
"duration-year",
|
|
454
|
-
"length-centimeter",
|
|
455
|
-
"length-foot",
|
|
456
|
-
"length-inch",
|
|
457
|
-
"length-kilometer",
|
|
458
|
-
"length-meter",
|
|
459
|
-
"length-mile-scandinavian",
|
|
460
|
-
"length-mile",
|
|
461
|
-
"length-millimeter",
|
|
462
|
-
"length-yard",
|
|
463
|
-
"mass-gram",
|
|
464
|
-
"mass-kilogram",
|
|
465
|
-
"mass-ounce",
|
|
466
|
-
"mass-pound",
|
|
467
|
-
"mass-stone",
|
|
468
|
-
"temperature-celsius",
|
|
469
|
-
"temperature-fahrenheit",
|
|
470
|
-
"volume-fluid-ounce",
|
|
471
|
-
"volume-gallon",
|
|
472
|
-
"volume-liter",
|
|
473
|
-
"volume-milliliter"
|
|
474
|
-
];
|
|
475
|
-
function removeUnitNamespace(unit) {
|
|
476
|
-
return unit.slice(unit.indexOf("-") + 1);
|
|
477
|
-
}
|
|
478
|
-
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
479
|
-
|
|
480
448
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
|
|
481
449
|
function invariant(condition, message, Err) {
|
|
482
450
|
if (Err === void 0) {
|
|
@@ -487,16 +455,6 @@
|
|
|
487
455
|
}
|
|
488
456
|
}
|
|
489
457
|
|
|
490
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
|
|
491
|
-
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
492
|
-
|
|
493
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
494
|
-
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
495
|
-
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
496
|
-
|
|
497
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
|
|
498
|
-
var import_intl_localematcher = __toModule(require_intl_localematcher());
|
|
499
|
-
|
|
500
458
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js
|
|
501
459
|
function PartitionPattern(pattern) {
|
|
502
460
|
var result = [];
|
|
@@ -530,7 +488,7 @@
|
|
|
530
488
|
}
|
|
531
489
|
|
|
532
490
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
|
|
533
|
-
var
|
|
491
|
+
var import_intl_localematcher = __toESM(require_intl_localematcher());
|
|
534
492
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
535
493
|
var matcher = "best fit";
|
|
536
494
|
if (options !== void 0) {
|
|
@@ -538,60 +496,20 @@
|
|
|
538
496
|
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
539
497
|
}
|
|
540
498
|
if (matcher === "best fit") {
|
|
541
|
-
return (0,
|
|
499
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
542
500
|
}
|
|
543
|
-
return (0,
|
|
501
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
544
502
|
}
|
|
545
503
|
|
|
546
|
-
// node_modules/tslib/tslib.es6.js
|
|
547
|
-
var extendStatics = function(d, b) {
|
|
548
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
549
|
-
d2.__proto__ = b2;
|
|
550
|
-
} || function(d2, b2) {
|
|
551
|
-
for (var p in b2)
|
|
552
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
553
|
-
d2[p] = b2[p];
|
|
554
|
-
};
|
|
555
|
-
return extendStatics(d, b);
|
|
556
|
-
};
|
|
557
|
-
function __extends(d, b) {
|
|
558
|
-
if (typeof b !== "function" && b !== null)
|
|
559
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
560
|
-
extendStatics(d, b);
|
|
561
|
-
function __() {
|
|
562
|
-
this.constructor = d;
|
|
563
|
-
}
|
|
564
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
|
|
568
|
-
var MissingLocaleDataError = function(_super) {
|
|
569
|
-
__extends(MissingLocaleDataError2, _super);
|
|
570
|
-
function MissingLocaleDataError2() {
|
|
571
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
572
|
-
_this.type = "MISSING_LOCALE_DATA";
|
|
573
|
-
return _this;
|
|
574
|
-
}
|
|
575
|
-
return MissingLocaleDataError2;
|
|
576
|
-
}(Error);
|
|
577
|
-
|
|
578
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
|
|
579
|
-
var RangePatternType;
|
|
580
|
-
(function(RangePatternType2) {
|
|
581
|
-
RangePatternType2["startRange"] = "startRange";
|
|
582
|
-
RangePatternType2["shared"] = "shared";
|
|
583
|
-
RangePatternType2["endRange"] = "endRange";
|
|
584
|
-
})(RangePatternType || (RangePatternType = {}));
|
|
585
|
-
|
|
586
504
|
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/abstract/InitializeRelativeTimeFormat.js
|
|
587
|
-
var
|
|
505
|
+
var import_intl_localematcher2 = __toESM(require_intl_localematcher());
|
|
588
506
|
var NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
|
|
589
507
|
function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
|
|
590
508
|
var getInternalSlots2 = _a.getInternalSlots, availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale;
|
|
591
509
|
var internalSlots = getInternalSlots2(rtf);
|
|
592
510
|
internalSlots.initializedRelativeTimeFormat = true;
|
|
593
511
|
var requestedLocales = CanonicalizeLocaleList(locales);
|
|
594
|
-
var opt = Object.create(null);
|
|
512
|
+
var opt = /* @__PURE__ */ Object.create(null);
|
|
595
513
|
var opts = CoerceOptionsToObject(options);
|
|
596
514
|
var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
|
|
597
515
|
opt.localeMatcher = matcher;
|
|
@@ -602,7 +520,7 @@
|
|
|
602
520
|
}
|
|
603
521
|
}
|
|
604
522
|
opt.nu = numberingSystem;
|
|
605
|
-
var r = (0,
|
|
523
|
+
var r = (0, import_intl_localematcher2.ResolveLocale)(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
|
606
524
|
var locale = r.locale, nu = r.nu;
|
|
607
525
|
internalSlots.locale = locale;
|
|
608
526
|
internalSlots.style = GetOption(opts, "style", "string", ["long", "narrow", "short"], "long");
|
|
@@ -715,11 +633,11 @@
|
|
|
715
633
|
}
|
|
716
634
|
|
|
717
635
|
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/get_internal_slots.js
|
|
718
|
-
var internalSlotMap = new WeakMap();
|
|
636
|
+
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
719
637
|
function getInternalSlots(x) {
|
|
720
638
|
var internalSlots = internalSlotMap.get(x);
|
|
721
639
|
if (!internalSlots) {
|
|
722
|
-
internalSlots = Object.create(null);
|
|
640
|
+
internalSlots = /* @__PURE__ */ Object.create(null);
|
|
723
641
|
internalSlotMap.set(x, internalSlots);
|
|
724
642
|
}
|
|
725
643
|
return internalSlots;
|
|
@@ -802,7 +720,7 @@
|
|
|
802
720
|
return RelativeTimeFormat2.__defaultLocale;
|
|
803
721
|
};
|
|
804
722
|
RelativeTimeFormat2.localeData = {};
|
|
805
|
-
RelativeTimeFormat2.availableLocales = new Set();
|
|
723
|
+
RelativeTimeFormat2.availableLocales = /* @__PURE__ */ new Set();
|
|
806
724
|
RelativeTimeFormat2.__defaultLocale = "";
|
|
807
725
|
RelativeTimeFormat2.relevantExtensionKeys = ["nu"];
|
|
808
726
|
RelativeTimeFormat2.polyfilled = true;
|
|
@@ -833,6 +751,12 @@
|
|
|
833
751
|
} catch (e) {
|
|
834
752
|
}
|
|
835
753
|
|
|
754
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/should-polyfill.js
|
|
755
|
+
var import_intl_localematcher3 = __toESM(require_intl_localematcher());
|
|
756
|
+
|
|
757
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/supported-locales.js
|
|
758
|
+
var supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
|
|
759
|
+
|
|
836
760
|
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/should-polyfill.js
|
|
837
761
|
function supportedLocalesOf(locale) {
|
|
838
762
|
if (!locale) {
|
|
@@ -851,7 +775,12 @@
|
|
|
851
775
|
}
|
|
852
776
|
}
|
|
853
777
|
function shouldPolyfill(locale) {
|
|
854
|
-
|
|
778
|
+
if (locale === void 0) {
|
|
779
|
+
locale = "en";
|
|
780
|
+
}
|
|
781
|
+
if (!("RelativeTimeFormat" in Intl) || !supportedLocalesOf(locale) || !hasResolvedOptionsNumberingSystem(locale)) {
|
|
782
|
+
return (0, import_intl_localematcher3.match)([locale], supportedLocales, "en");
|
|
783
|
+
}
|
|
855
784
|
}
|
|
856
785
|
|
|
857
786
|
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/polyfill.js
|
|
@@ -864,18 +793,4 @@
|
|
|
864
793
|
});
|
|
865
794
|
}
|
|
866
795
|
})();
|
|
867
|
-
/*! *****************************************************************************
|
|
868
|
-
Copyright (c) Microsoft Corporation.
|
|
869
|
-
|
|
870
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
871
|
-
purpose with or without fee is hereby granted.
|
|
872
|
-
|
|
873
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
874
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
875
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
876
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
877
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
878
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
879
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
880
|
-
***************************************************************************** */
|
|
881
796
|
//# sourceMappingURL=polyfill.iife.js.map
|
package/should-polyfill.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function shouldPolyfill(locale?: string |
|
|
1
|
+
export declare function shouldPolyfill(locale?: string): string | undefined;
|
|
2
2
|
//# sourceMappingURL=should-polyfill.d.ts.map
|
package/should-polyfill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-relativetimeformat/should-polyfill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-relativetimeformat/should-polyfill.ts"],"names":[],"mappings":"AA2BA,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAQ3C"}
|
package/should-polyfill.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.shouldPolyfill = void 0;
|
|
4
|
+
var intl_localematcher_1 = require("@formatjs/intl-localematcher");
|
|
5
|
+
var supported_locales_1 = require("./supported-locales");
|
|
4
6
|
function supportedLocalesOf(locale) {
|
|
5
7
|
if (!locale) {
|
|
6
8
|
return true;
|
|
@@ -21,8 +23,11 @@ function hasResolvedOptionsNumberingSystem(locale) {
|
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
function shouldPolyfill(locale) {
|
|
24
|
-
|
|
26
|
+
if (locale === void 0) { locale = 'en'; }
|
|
27
|
+
if (!('RelativeTimeFormat' in Intl) ||
|
|
25
28
|
!supportedLocalesOf(locale) ||
|
|
26
|
-
!hasResolvedOptionsNumberingSystem(locale))
|
|
29
|
+
!hasResolvedOptionsNumberingSystem(locale)) {
|
|
30
|
+
return (0, intl_localematcher_1.match)([locale], supported_locales_1.supportedLocales, 'en');
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
exports.shouldPolyfill = shouldPolyfill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-relativetimeformat/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAsqI,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedLocales = void 0;
|
|
4
|
+
// This file is generated from supported-locales-gen.ts
|
|
5
|
+
exports.supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/* @generated */
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat.__addLocaleData === 'function') {
|
|
4
|
-
Intl.RelativeTimeFormat.__addLocaleData({"data":{"nu":["latn"],"year":{"0":"this year","1":"next year","future":{"one":"in {0} year","other":"in {0} years"},"past":{"one":"{0} year ago","other":"{0} years ago"},"-1":"last year"},"year-short":{"0":"this yr.","1":"next yr.","future":{"one":"in {0} yr.","other":"in {0} yr."},"past":{"one":"{0} yr. ago","other":"{0} yr. ago"},"-1":"last yr."},"year-narrow":{"0":"this yr.","1":"next yr.","future":{"one":"in {0} yr.","other":"in {0} yr."},"past":{"one":"{0} yr. ago","other":"{0} yr. ago"},"-1":"last yr."},"quarter":{"0":"this quarter","1":"next quarter","future":{"one":"in {0} quarter","other":"in {0} quarters"},"past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{"0":"this qtr.","1":"next qtr.","future":{"one":"in {0} qtr.","other":"in {0} qtrs."},"past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{"0":"this qtr.","1":"next qtr.","future":{"one":"in {0} qtr.","other":"in {0} qtrs."},"past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"-1":"last qtr."},"month":{"0":"this month","1":"next month","future":{"one":"in {0} month","other":"in {0} months"},"past":{"one":"{0} month ago","other":"{0} months ago"},"-1":"last month"},"month-short":{"0":"this mo.","1":"next mo.","future":{"one":"in {0} mo.","other":"in {0} mo."},"past":{"one":"{0} mo. ago","other":"{0} mo. ago"},"-1":"last mo."},"month-narrow":{"0":"this mo.","1":"next mo.","future":{"one":"in {0} mo.","other":"in {0} mo."},"past":{"one":"{0} mo. ago","other":"{0} mo. ago"},"-1":"last mo."},"week":{"0":"this week","1":"next week","future":{"one":"in {0} week","other":"in {0} weeks"},"past":{"one":"{0} week ago","other":"{0} weeks ago"},"-1":"last week"},"week-short":{"0":"this wk.","1":"next wk.","future":{"one":"in {0} wk.","other":"in {0} wk."},"past":{"one":"{0} wk. ago","other":"{0} wk. ago"},"-1":"last wk."},"week-narrow":{"0":"this wk.","1":"next wk.","future":{"one":"in {0} wk.","other":"in {0} wk."},"past":{"one":"{0} wk. ago","other":"{0} wk. ago"},"-1":"last wk."},"day":{"0":"today","1":"tomorrow","future":{"one":"in {0} day","other":"in {0} days"},"past":{"one":"{0} day ago","other":"{0} days ago"},"-1":"yesterday"},"day-short":{"0":"today","1":"tomorrow","future":{"one":"in {0} day","other":"in {0} days"},"past":{"one":"{0} day ago","other":"{0} days ago"},"-1":"yesterday"},"day-narrow":{"0":"today","1":"tomorrow","future":{"one":"in {0} day","other":"in {0} days"},"past":{"one":"{0} day ago","other":"{0} days ago"},"-1":"yesterday"},"hour":{"0":"this hour","future":{"one":"in {0} hour","other":"in {0} hours"},"past":{"one":"{0} hour ago","other":"{0} hours ago"}},"hour-short":{"0":"this hour","future":{"one":"in {0} hr.","other":"in {0} hr."},"past":{"one":"{0} hr. ago","other":"{0} hr. ago"}},"hour-narrow":{"0":"this hour","future":{"one":"in {0} hr.","other":"in {0} hr."},"past":{"one":"{0} hr. ago","other":"{0} hr. ago"}},"minute":{"0":"this minute","future":{"one":"in {0} minute","other":"in {0} minutes"},"past":{"one":"{0} minute ago","other":"{0} minutes ago"}},"minute-short":{"0":"this minute","future":{"one":"in {0} min.","other":"in {0} min."},"past":{"one":"{0} min. ago","other":"{0} min. ago"}},"minute-narrow":{"0":"this minute","future":{"one":"in {0} min.","other":"in {0} min."},"past":{"one":"{0} min. ago","other":"{0} min. ago"}},"second":{"0":"now","future":{"one":"in {0} second","other":"in {0} seconds"},"past":{"one":"{0} second ago","other":"{0} seconds ago"}},"second-short":{"0":"now","future":{"one":"in {0} sec.","other":"in {0} sec."},"past":{"one":"{0} sec. ago","other":"{0} sec. ago"}},"second-narrow":{"0":"now","future":{"one":"in {0} sec.","other":"in {0} sec."},"past":{"one":"{0} sec. ago","other":"{0} sec. ago"}}},"locale":"en-US-POSIX"}
|
|
5
|
-
)
|
|
6
|
-
}
|