@formatjs/intl-pluralrules 4.2.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAA4nC,CAAA"}
1
+ {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqoC,CAAA"}
@@ -1,2 +1,2 @@
1
1
  // This file is generated from supported-locales-gen.ts
2
- export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "in", "io", "is", "it", "iu", "iw", "ja", "jbo", "jgo", "ji", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tr", "ts", "tzm", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
2
+ export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
File without changes
@@ -0,0 +1,7 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(n, ord) {
5
+ return n == 1 ? 'one' : 'other';
6
+ }},"locale":"bal"})
7
+ }
package/locale-data/es.js CHANGED
@@ -1,8 +1,11 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
+ var _n = String(n), se = _n.split(/[ce]/), e = se[1] || 0, c = e, s = String(e ? Number(se[0]) * Math.pow(10, e) : _n).split("."), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
5
6
  if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
+ return n == 1 ? 'one'
8
+ : e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
9
+ : 'other';
7
10
  }},"locale":"es"})
8
11
  }
File without changes
@@ -3,5 +3,5 @@
3
3
  if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
4
  Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
5
5
  return 'other';
6
- }},"locale":"in"})
6
+ }},"locale":"hnj"})
7
7
  }
package/locale-data/it.js CHANGED
@@ -1,9 +1,11 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["many","other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), v0 = !s[1];
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["many","other"]},"fn":function(n, ord) {
5
+ var _n = String(n), se = _n.split(/[ce]/), e = se[1] || 0, c = e, s = String(e ? Number(se[0]) * Math.pow(10, e) : _n).split("."), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
6
6
  if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
7
- return n == 1 && v0 ? 'one' : 'other';
7
+ return n == 1 && v0 ? 'one'
8
+ : e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
9
+ : 'other';
8
10
  }},"locale":"it"})
9
11
  }
@@ -1,9 +1,11 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), v0 = !s[1];
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
+ var _n = String(n), se = _n.split(/[ce]/), e = se[1] || 0, c = e, s = String(e ? Number(se[0]) * Math.pow(10, e) : _n).split("."), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
6
6
  if (ord) return 'other';
7
- return n == 1 && v0 ? 'one' : 'other';
7
+ return n == 1 && v0 ? 'one'
8
+ : e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
9
+ : 'other';
8
10
  }},"locale":"pt-PT"})
9
11
  }
package/locale-data/pt.js CHANGED
@@ -1,9 +1,11 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), i = s[0];
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
+ var _n = String(n), se = _n.split(/[ce]/), e = se[1] || 0, c = e, s = String(e ? Number(se[0]) * Math.pow(10, e) : _n).split("."), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
6
6
  if (ord) return 'other';
7
- return (i == 0 || i == 1) ? 'one' : 'other';
7
+ return (i == 0 || i == 1) ? 'one'
8
+ : e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
9
+ : 'other';
8
10
  }},"locale":"pt"})
9
11
  }
File without changes
@@ -0,0 +1,7 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
5
+ return 'other';
6
+ }},"locale":"tpi"})
7
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,7 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
+ Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
5
+ return 'other';
6
+ }},"locale":"und"})
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-pluralrules",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "description": "Polyfill for Intl.PluralRules",
5
5
  "keywords": [
6
6
  "polyfill",
package/polyfill.iife.js CHANGED
@@ -10,22 +10,22 @@
10
10
  };
11
11
  var __commonJS = function(cb, mod) {
12
12
  return function __require() {
13
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
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 __toModule = function(module) {
28
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: function() {
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
  };
@@ -117,7 +117,7 @@
117
117
  availableLocales.forEach(function(l2) {
118
118
  return minimizedAvailableLocaleMap[l2] = l2;
119
119
  });
120
- var minimizedAvailableLocales = new Set();
120
+ var minimizedAvailableLocales = /* @__PURE__ */ new Set();
121
121
  availableLocales.forEach(function(locale2) {
122
122
  var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
123
123
  minimizedAvailableLocaleMap[minimizedLocale] = locale2;
@@ -213,7 +213,7 @@
213
213
  var BestFitMatcher_1 = require_BestFitMatcher();
214
214
  var utils_1 = require_utils();
215
215
  var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
216
- function ResolveLocale3(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
216
+ function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
217
217
  var matcher = options.localeMatcher;
218
218
  var r;
219
219
  if (matcher === "lookup") {
@@ -275,7 +275,7 @@
275
275
  result.locale = foundLocale;
276
276
  return result;
277
277
  }
278
- exports.ResolveLocale = ResolveLocale3;
278
+ exports.ResolveLocale = ResolveLocale2;
279
279
  }
280
280
  });
281
281
 
@@ -314,7 +314,7 @@
314
314
  var locales = availableLocales.reduce(function(all, l) {
315
315
  all.add(l);
316
316
  return all;
317
- }, new Set());
317
+ }, /* @__PURE__ */ new Set());
318
318
  return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
319
319
  localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
320
320
  }, [], {}, function() {
@@ -334,25 +334,6 @@
334
334
  });
335
335
 
336
336
  // node_modules/tslib/tslib.es6.js
337
- var extendStatics = function(d, b) {
338
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
339
- d2.__proto__ = b2;
340
- } || function(d2, b2) {
341
- for (var p in b2)
342
- if (Object.prototype.hasOwnProperty.call(b2, p))
343
- d2[p] = b2[p];
344
- };
345
- return extendStatics(d, b);
346
- };
347
- function __extends(d, b) {
348
- if (typeof b !== "function" && b !== null)
349
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
350
- extendStatics(d, b);
351
- function __() {
352
- this.constructor = d;
353
- }
354
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
355
- }
356
337
  function __spreadArray(to, from, pack) {
357
338
  if (pack || arguments.length === 2)
358
339
  for (var i = 0, l = from.length, ar; i < l; i++) {
@@ -362,7 +343,7 @@
362
343
  ar[i] = from[i];
363
344
  }
364
345
  }
365
- return to.concat(ar || from);
346
+ return to.concat(ar || Array.prototype.slice.call(from));
366
347
  }
367
348
 
368
349
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeLocaleList.js
@@ -494,57 +475,6 @@
494
475
  return fallback;
495
476
  }
496
477
 
497
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
498
- var SANCTIONED_UNITS = [
499
- "angle-degree",
500
- "area-acre",
501
- "area-hectare",
502
- "concentr-percent",
503
- "digital-bit",
504
- "digital-byte",
505
- "digital-gigabit",
506
- "digital-gigabyte",
507
- "digital-kilobit",
508
- "digital-kilobyte",
509
- "digital-megabit",
510
- "digital-megabyte",
511
- "digital-petabyte",
512
- "digital-terabit",
513
- "digital-terabyte",
514
- "duration-day",
515
- "duration-hour",
516
- "duration-millisecond",
517
- "duration-minute",
518
- "duration-month",
519
- "duration-second",
520
- "duration-week",
521
- "duration-year",
522
- "length-centimeter",
523
- "length-foot",
524
- "length-inch",
525
- "length-kilometer",
526
- "length-meter",
527
- "length-mile-scandinavian",
528
- "length-mile",
529
- "length-millimeter",
530
- "length-yard",
531
- "mass-gram",
532
- "mass-kilogram",
533
- "mass-ounce",
534
- "mass-pound",
535
- "mass-stone",
536
- "temperature-celsius",
537
- "temperature-fahrenheit",
538
- "volume-fluid-ounce",
539
- "volume-gallon",
540
- "volume-liter",
541
- "volume-milliliter"
542
- ];
543
- function removeUnitNamespace(unit) {
544
- return unit.slice(unit.indexOf("-") + 1);
545
- }
546
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
547
-
548
478
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
549
479
  function getMagnitude(x) {
550
480
  return Math.floor(Math.log(x) * Math.LOG10E);
@@ -702,16 +632,6 @@
702
632
  return { roundedNumber: x, formattedString: string };
703
633
  }
704
634
 
705
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
706
- 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]/;
707
-
708
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
709
- var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
710
- var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
711
-
712
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
713
- var import_intl_localematcher = __toModule(require_intl_localematcher());
714
-
715
635
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
716
636
  function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
717
637
  var mnid = GetNumberOption(opts, "minimumIntegerDigits", 1, 21, 1);
@@ -743,7 +663,7 @@
743
663
  }
744
664
 
745
665
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
746
- var import_intl_localematcher2 = __toModule(require_intl_localematcher());
666
+ var import_intl_localematcher = __toESM(require_intl_localematcher());
747
667
  function SupportedLocales(availableLocales, requestedLocales, options) {
748
668
  var matcher = "best fit";
749
669
  if (options !== void 0) {
@@ -751,32 +671,13 @@
751
671
  matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
752
672
  }
753
673
  if (matcher === "best fit") {
754
- return (0, import_intl_localematcher2.LookupSupportedLocales)(availableLocales, requestedLocales);
674
+ return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
755
675
  }
756
- return (0, import_intl_localematcher2.LookupSupportedLocales)(availableLocales, requestedLocales);
676
+ return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
757
677
  }
758
678
 
759
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
760
- var MissingLocaleDataError = function(_super) {
761
- __extends(MissingLocaleDataError2, _super);
762
- function MissingLocaleDataError2() {
763
- var _this = _super !== null && _super.apply(this, arguments) || this;
764
- _this.type = "MISSING_LOCALE_DATA";
765
- return _this;
766
- }
767
- return MissingLocaleDataError2;
768
- }(Error);
769
-
770
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
771
- var RangePatternType;
772
- (function(RangePatternType2) {
773
- RangePatternType2["startRange"] = "startRange";
774
- RangePatternType2["shared"] = "shared";
775
- RangePatternType2["endRange"] = "endRange";
776
- })(RangePatternType || (RangePatternType = {}));
777
-
778
679
  // bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/abstract/InitializePluralRules.js
779
- var import_intl_localematcher3 = __toModule(require_intl_localematcher());
680
+ var import_intl_localematcher2 = __toESM(require_intl_localematcher());
780
681
  function InitializePluralRules(pl, locales, options, _a) {
781
682
  var availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getInternalSlots2 = _a.getInternalSlots;
782
683
  var requestedLocales = CanonicalizeLocaleList(locales);
@@ -788,7 +689,7 @@
788
689
  opt.localeMatcher = matcher;
789
690
  internalSlots.type = GetOption(opts, "type", "string", ["cardinal", "ordinal"], "cardinal");
790
691
  SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, "standard");
791
- var r = (0, import_intl_localematcher3.ResolveLocale)(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
692
+ var r = (0, import_intl_localematcher2.ResolveLocale)(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
792
693
  internalSlots.locale = r.locale;
793
694
  return pl;
794
695
  }
@@ -852,7 +753,7 @@
852
753
  }
853
754
 
854
755
  // bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/get_internal_slots.js
855
- var internalSlotMap = new WeakMap();
756
+ var internalSlotMap = /* @__PURE__ */ new WeakMap();
856
757
  function getInternalSlots(x) {
857
758
  var internalSlots = internalSlotMap.get(x);
858
759
  if (!internalSlots) {
@@ -937,7 +838,7 @@
937
838
  return PluralRules2.__defaultLocale;
938
839
  };
939
840
  PluralRules2.localeData = {};
940
- PluralRules2.availableLocales = new Set();
841
+ PluralRules2.availableLocales = /* @__PURE__ */ new Set();
941
842
  PluralRules2.__defaultLocale = "";
942
843
  PluralRules2.relevantExtensionKeys = [];
943
844
  PluralRules2.polyfilled = true;
@@ -977,10 +878,10 @@
977
878
  }
978
879
 
979
880
  // bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
980
- var import_intl_localematcher4 = __toModule(require_intl_localematcher());
881
+ var import_intl_localematcher3 = __toESM(require_intl_localematcher());
981
882
 
982
883
  // bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/supported-locales.js
983
- var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "in", "io", "is", "it", "iu", "iw", "ja", "jbo", "jgo", "ji", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tr", "ts", "tzm", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
884
+ var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
984
885
 
985
886
  // bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
986
887
  function supportedLocalesOf(locale) {
@@ -995,7 +896,7 @@
995
896
  locale = "en";
996
897
  }
997
898
  if (!("PluralRules" in Intl) || new Intl.PluralRules("en", { minimumFractionDigits: 2 }).select(1) === "one" || !supportedLocalesOf(locale)) {
998
- return locale ? (0, import_intl_localematcher4.match)([locale], supportedLocales, "en") : void 0;
899
+ return locale ? (0, import_intl_localematcher3.match)([locale], supportedLocales, "en") : void 0;
999
900
  }
1000
901
  }
1001
902
 
@@ -1 +1 @@
1
- {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAA4nC,CAAA"}
1
+ {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqoC,CAAA"}
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.supportedLocales = void 0;
4
4
  // This file is generated from supported-locales-gen.ts
5
- exports.supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "in", "io", "is", "it", "iu", "iw", "ja", "jbo", "jgo", "ji", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tr", "ts", "tzm", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
5
+ exports.supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
package/locale-data/iw.js DELETED
@@ -1,12 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
6
- if (ord) return 'other';
7
- return n == 1 && v0 ? 'one'
8
- : i == 2 && v0 ? 'two'
9
- : v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
10
- : 'other';
11
- }},"locale":"iw"})
12
- }
package/locale-data/ji.js DELETED
@@ -1,9 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), v0 = !s[1];
6
- if (ord) return 'other';
7
- return n == 1 && v0 ? 'one' : 'other';
8
- }},"locale":"ji"})
9
- }