@formatjs/intl-locale 2.4.40 → 2.4.44

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.js CHANGED
@@ -57,10 +57,10 @@ function applyUnicodeExtensionToTag(tag, options, relevantExtensionKeys) {
57
57
  value = entry[1];
58
58
  }
59
59
  }
60
- (0, ecma402_abstract_1.invariant)(key in options, key + " must be in options");
60
+ (0, ecma402_abstract_1.invariant)(key in options, "".concat(key, " must be in options"));
61
61
  var optionsValue = options[key];
62
62
  if (optionsValue !== undefined) {
63
- (0, ecma402_abstract_1.invariant)(typeof optionsValue === 'string', "Value for " + key + " must be a string");
63
+ (0, ecma402_abstract_1.invariant)(typeof optionsValue === 'string', "Value for ".concat(key, " must be a string"));
64
64
  value = optionsValue;
65
65
  if (entry) {
66
66
  entry[1] = value;
package/lib/index.js CHANGED
@@ -54,10 +54,10 @@ function applyUnicodeExtensionToTag(tag, options, relevantExtensionKeys) {
54
54
  value = entry[1];
55
55
  }
56
56
  }
57
- invariant(key in options, key + " must be in options");
57
+ invariant(key in options, "".concat(key, " must be in options"));
58
58
  var optionsValue = options[key];
59
59
  if (optionsValue !== undefined) {
60
- invariant(typeof optionsValue === 'string', "Value for " + key + " must be a string");
60
+ invariant(typeof optionsValue === 'string', "Value for ".concat(key, " must be a string"));
61
61
  value = optionsValue;
62
62
  if (entry) {
63
63
  entry[1] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-locale",
3
- "version": "2.4.40",
3
+ "version": "2.4.44",
4
4
  "description": "Intl.Locale polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -24,8 +24,8 @@
24
24
  "url": "https://github.com/formatjs/formatjs/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@formatjs/ecma402-abstract": "1.10.0",
28
- "@formatjs/intl-getcanonicallocales": "1.8.0",
27
+ "@formatjs/ecma402-abstract": "1.11.2",
28
+ "@formatjs/intl-getcanonicallocales": "1.9.0",
29
29
  "tslib": "^2.1.0"
30
30
  }
31
31
  }
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
  };
@@ -33,7 +33,7 @@
33
33
  // node_modules/tslib/tslib.js
34
34
  var require_tslib = __commonJS({
35
35
  "node_modules/tslib/tslib.js": function(exports, module) {
36
- var __extends2;
36
+ var __extends;
37
37
  var __assign2;
38
38
  var __rest;
39
39
  var __decorate;
@@ -88,7 +88,7 @@
88
88
  if (Object.prototype.hasOwnProperty.call(b, p))
89
89
  d[p] = b[p];
90
90
  };
91
- __extends2 = function(d, b) {
91
+ __extends = function(d, b) {
92
92
  if (typeof b !== "function" && b !== null)
93
93
  throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
94
94
  extendStatics(d, b);
@@ -313,7 +313,7 @@
313
313
  ar[i] = from[i];
314
314
  }
315
315
  }
316
- return to.concat(ar || from);
316
+ return to.concat(ar || Array.prototype.slice.call(from));
317
317
  };
318
318
  __await = function(v) {
319
319
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -431,7 +431,7 @@
431
431
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
432
432
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
433
433
  };
434
- exporter("__extends", __extends2);
434
+ exporter("__extends", __extends);
435
435
  exporter("__assign", __assign2);
436
436
  exporter("__rest", __rest);
437
437
  exporter("__decorate", __decorate);
@@ -459,309 +459,6 @@
459
459
  }
460
460
  });
461
461
 
462
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js
463
- var require_utils = __commonJS({
464
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js": function(exports) {
465
- "use strict";
466
- Object.defineProperty(exports, "__esModule", { value: true });
467
- exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
468
- exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
469
- function invariant2(condition, message, Err) {
470
- if (Err === void 0) {
471
- Err = Error;
472
- }
473
- if (!condition) {
474
- throw new Err(message);
475
- }
476
- }
477
- exports.invariant = invariant2;
478
- }
479
- });
480
-
481
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js
482
- var require_BestAvailableLocale = __commonJS({
483
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js": function(exports) {
484
- "use strict";
485
- Object.defineProperty(exports, "__esModule", { value: true });
486
- exports.BestAvailableLocale = void 0;
487
- function BestAvailableLocale(availableLocales, locale) {
488
- var candidate = locale;
489
- while (true) {
490
- if (availableLocales.has(candidate)) {
491
- return candidate;
492
- }
493
- var pos = candidate.lastIndexOf("-");
494
- if (!~pos) {
495
- return void 0;
496
- }
497
- if (pos >= 2 && candidate[pos - 2] === "-") {
498
- pos -= 2;
499
- }
500
- candidate = candidate.slice(0, pos);
501
- }
502
- }
503
- exports.BestAvailableLocale = BestAvailableLocale;
504
- }
505
- });
506
-
507
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js
508
- var require_LookupMatcher = __commonJS({
509
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js": function(exports) {
510
- "use strict";
511
- Object.defineProperty(exports, "__esModule", { value: true });
512
- exports.LookupMatcher = void 0;
513
- var utils_1 = require_utils();
514
- var BestAvailableLocale_1 = require_BestAvailableLocale();
515
- function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
516
- var result = { locale: "" };
517
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
518
- var locale = requestedLocales_1[_i];
519
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
520
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
521
- if (availableLocale) {
522
- result.locale = availableLocale;
523
- if (locale !== noExtensionLocale) {
524
- result.extension = locale.slice(noExtensionLocale.length + 1, locale.length);
525
- }
526
- return result;
527
- }
528
- }
529
- result.locale = getDefaultLocale();
530
- return result;
531
- }
532
- exports.LookupMatcher = LookupMatcher;
533
- }
534
- });
535
-
536
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js
537
- var require_BestFitMatcher = __commonJS({
538
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js": function(exports) {
539
- "use strict";
540
- Object.defineProperty(exports, "__esModule", { value: true });
541
- exports.BestFitMatcher = void 0;
542
- var BestAvailableLocale_1 = require_BestAvailableLocale();
543
- var utils_1 = require_utils();
544
- function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
545
- var minimizedAvailableLocaleMap = Array.from(availableLocales).reduce(function(all, l2) {
546
- all[l2] = l2;
547
- return all;
548
- }, {});
549
- var minimizedAvailableLocales = new Set();
550
- availableLocales.forEach(function(locale2) {
551
- var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
552
- minimizedAvailableLocaleMap[minimizedLocale] = locale2;
553
- minimizedAvailableLocales.add(minimizedLocale);
554
- });
555
- var foundLocale;
556
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
557
- var l = requestedLocales_1[_i];
558
- if (foundLocale) {
559
- break;
560
- }
561
- var noExtensionLocale = l.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
562
- if (availableLocales.has(noExtensionLocale)) {
563
- foundLocale = noExtensionLocale;
564
- break;
565
- }
566
- if (minimizedAvailableLocales.has(noExtensionLocale)) {
567
- foundLocale = noExtensionLocale;
568
- break;
569
- }
570
- var locale = new Intl.Locale(noExtensionLocale);
571
- var maximizedRequestedLocale = locale.maximize().toString();
572
- var minimizedRequestedLocale = locale.minimize().toString();
573
- if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
574
- foundLocale = minimizedRequestedLocale;
575
- break;
576
- }
577
- foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
578
- }
579
- return {
580
- locale: foundLocale && minimizedAvailableLocaleMap[foundLocale] || getDefaultLocale()
581
- };
582
- }
583
- exports.BestFitMatcher = BestFitMatcher;
584
- }
585
- });
586
-
587
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js
588
- var require_UnicodeExtensionValue = __commonJS({
589
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js": function(exports) {
590
- "use strict";
591
- Object.defineProperty(exports, "__esModule", { value: true });
592
- exports.UnicodeExtensionValue = void 0;
593
- var utils_1 = require_utils();
594
- function UnicodeExtensionValue(extension, key) {
595
- (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
596
- var size = extension.length;
597
- var searchValue = "-" + key + "-";
598
- var pos = extension.indexOf(searchValue);
599
- if (pos !== -1) {
600
- var start = pos + 4;
601
- var end = start;
602
- var k = start;
603
- var done = false;
604
- while (!done) {
605
- var e = extension.indexOf("-", k);
606
- var len = void 0;
607
- if (e === -1) {
608
- len = size - k;
609
- } else {
610
- len = e - k;
611
- }
612
- if (len === 2) {
613
- done = true;
614
- } else if (e === -1) {
615
- end = size;
616
- done = true;
617
- } else {
618
- end = e;
619
- k = e + 1;
620
- }
621
- }
622
- return extension.slice(start, end);
623
- }
624
- searchValue = "-" + key;
625
- pos = extension.indexOf(searchValue);
626
- if (pos !== -1 && pos + 3 === size) {
627
- return "";
628
- }
629
- return void 0;
630
- }
631
- exports.UnicodeExtensionValue = UnicodeExtensionValue;
632
- }
633
- });
634
-
635
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js
636
- var require_ResolveLocale = __commonJS({
637
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js": function(exports) {
638
- "use strict";
639
- Object.defineProperty(exports, "__esModule", { value: true });
640
- exports.ResolveLocale = void 0;
641
- var LookupMatcher_1 = require_LookupMatcher();
642
- var BestFitMatcher_1 = require_BestFitMatcher();
643
- var utils_1 = require_utils();
644
- var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
645
- function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
646
- var matcher = options.localeMatcher;
647
- var r;
648
- if (matcher === "lookup") {
649
- r = (0, LookupMatcher_1.LookupMatcher)(availableLocales, requestedLocales, getDefaultLocale);
650
- } else {
651
- r = (0, BestFitMatcher_1.BestFitMatcher)(availableLocales, requestedLocales, getDefaultLocale);
652
- }
653
- var foundLocale = r.locale;
654
- var result = { locale: "", dataLocale: foundLocale };
655
- var supportedExtension = "-u";
656
- for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
657
- var key = relevantExtensionKeys_1[_i];
658
- (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for " + foundLocale);
659
- var foundLocaleData = localeData[foundLocale];
660
- (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data " + key + " must be an object");
661
- var keyLocaleData = foundLocaleData[key];
662
- (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
663
- var value = keyLocaleData[0];
664
- (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got " + typeof value + " in key " + key);
665
- var supportedExtensionAddition = "";
666
- if (r.extension) {
667
- var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
668
- if (requestedValue !== void 0) {
669
- if (requestedValue !== "") {
670
- if (~keyLocaleData.indexOf(requestedValue)) {
671
- value = requestedValue;
672
- supportedExtensionAddition = "-" + key + "-" + value;
673
- }
674
- } else if (~requestedValue.indexOf("true")) {
675
- value = "true";
676
- supportedExtensionAddition = "-" + key;
677
- }
678
- }
679
- }
680
- if (key in options) {
681
- var optionsValue = options[key];
682
- (0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
683
- if (~keyLocaleData.indexOf(optionsValue)) {
684
- if (optionsValue !== value) {
685
- value = optionsValue;
686
- supportedExtensionAddition = "";
687
- }
688
- }
689
- }
690
- result[key] = value;
691
- supportedExtension += supportedExtensionAddition;
692
- }
693
- if (supportedExtension.length > 2) {
694
- var privateIndex = foundLocale.indexOf("-x-");
695
- if (privateIndex === -1) {
696
- foundLocale = foundLocale + supportedExtension;
697
- } else {
698
- var preExtension = foundLocale.slice(0, privateIndex);
699
- var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
700
- foundLocale = preExtension + supportedExtension + postExtension;
701
- }
702
- foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
703
- }
704
- result.locale = foundLocale;
705
- return result;
706
- }
707
- exports.ResolveLocale = ResolveLocale2;
708
- }
709
- });
710
-
711
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js
712
- var require_LookupSupportedLocales = __commonJS({
713
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js": function(exports) {
714
- "use strict";
715
- Object.defineProperty(exports, "__esModule", { value: true });
716
- exports.LookupSupportedLocales = void 0;
717
- var utils_1 = require_utils();
718
- var BestAvailableLocale_1 = require_BestAvailableLocale();
719
- function LookupSupportedLocales2(availableLocales, requestedLocales) {
720
- var subset = [];
721
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
722
- var locale = requestedLocales_1[_i];
723
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
724
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
725
- if (availableLocale) {
726
- subset.push(availableLocale);
727
- }
728
- }
729
- return subset;
730
- }
731
- exports.LookupSupportedLocales = LookupSupportedLocales2;
732
- }
733
- });
734
-
735
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js
736
- var require_intl_localematcher = __commonJS({
737
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js": function(exports) {
738
- "use strict";
739
- Object.defineProperty(exports, "__esModule", { value: true });
740
- exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
741
- var ResolveLocale_1 = require_ResolveLocale();
742
- function match(requestedLocales, availableLocales, defaultLocale, opts) {
743
- var locales = availableLocales.reduce(function(all, l) {
744
- all.add(l);
745
- return all;
746
- }, new Set());
747
- return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
748
- localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
749
- }, [], {}, function() {
750
- return defaultLocale;
751
- }).locale;
752
- }
753
- exports.match = match;
754
- var LookupSupportedLocales_1 = require_LookupSupportedLocales();
755
- Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
756
- return LookupSupportedLocales_1.LookupSupportedLocales;
757
- } });
758
- var ResolveLocale_2 = require_ResolveLocale();
759
- Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function() {
760
- return ResolveLocale_2.ResolveLocale;
761
- } });
762
- }
763
- });
764
-
765
462
  // bazel-out/darwin-fastbuild/bin/packages/intl-getcanonicallocales/src/parser.js
766
463
  var require_parser = __commonJS({
767
464
  "bazel-out/darwin-fastbuild/bin/packages/intl-getcanonicallocales/src/parser.js": function(exports) {
@@ -832,7 +529,7 @@
832
529
  while (chunks.length && isUnicodeVariantSubtag(chunks[0])) {
833
530
  var variant = chunks.shift();
834
531
  if (variant in variants) {
835
- throw new RangeError('Duplicate variant "' + variant + '"');
532
+ throw new RangeError('Duplicate variant "'.concat(variant, '"'));
836
533
  }
837
534
  variants[variant] = 1;
838
535
  }
@@ -903,7 +600,7 @@
903
600
  value.push(chunks.shift());
904
601
  }
905
602
  if (!value.length) {
906
- throw new RangeError('Missing tvalue for tkey "' + key + '"');
603
+ throw new RangeError('Missing tvalue for tkey "'.concat(key, '"'));
907
604
  }
908
605
  fields.push([key, value.join(exports.SEPARATOR)]);
909
606
  }
@@ -980,7 +677,7 @@
980
677
  throw new RangeError("Malformed extension type");
981
678
  }
982
679
  if (type in otherExtensionMap) {
983
- throw new RangeError("There can only be 1 -" + type + "- extension");
680
+ throw new RangeError("There can only be 1 -".concat(type, "- extension"));
984
681
  }
985
682
  var extension = {
986
683
  type: type,
@@ -1090,11 +787,13 @@
1090
787
  "bgm": "bcg",
1091
788
  "bh": "bho",
1092
789
  "bhk": "fbl",
790
+ "bic": "bir",
1093
791
  "bih": "bho",
1094
792
  "bis": "bi",
1095
793
  "bjd": "drl",
1096
794
  "bjq": "bzc",
1097
795
  "bkb": "ebk",
796
+ "blg": "iba",
1098
797
  "bod": "bo",
1099
798
  "bos": "bs",
1100
799
  "bre": "br",
@@ -1357,6 +1056,7 @@
1357
1056
  "oss": "os",
1358
1057
  "oun": "vaj",
1359
1058
  "pan": "pa",
1059
+ "pat": "kxr",
1360
1060
  "pbu": "ps",
1361
1061
  "pcr": "adx",
1362
1062
  "per": "fa",
@@ -2355,6 +2055,7 @@
2355
2055
  "bkq": "bkq-Latn-ZZ",
2356
2056
  "bku": "bku-Latn-PH",
2357
2057
  "bkv": "bkv-Latn-ZZ",
2058
+ "blg": "blg-Latn-MY",
2358
2059
  "blt": "blt-Tavt-VN",
2359
2060
  "bm": "bm-Latn-ML",
2360
2061
  "bmh": "bmh-Latn-ZZ",
@@ -2666,7 +2367,7 @@
2666
2367
  "hmt": "hmt-Latn-ZZ",
2667
2368
  "hnd": "hnd-Arab-PK",
2668
2369
  "hne": "hne-Deva-IN",
2669
- "hnj": "hnj-Hmng-LA",
2370
+ "hnj": "hnj-Hmnp-US",
2670
2371
  "hnn": "hnn-Latn-PH",
2671
2372
  "hno": "hno-Arab-PK",
2672
2373
  "ho": "ho-Latn-PG",
@@ -2756,7 +2457,7 @@
2756
2457
  "kcl": "kcl-Latn-ZZ",
2757
2458
  "kct": "kct-Latn-ZZ",
2758
2459
  "kde": "kde-Latn-TZ",
2759
- "kdh": "kdh-Arab-TG",
2460
+ "kdh": "kdh-Latn-TG",
2760
2461
  "kdl": "kdl-Latn-ZZ",
2761
2462
  "kdt": "kdt-Thai-TH",
2762
2463
  "kea": "kea-Latn-CV",
@@ -3124,6 +2825,7 @@
3124
2825
  "nsn": "nsn-Latn-ZZ",
3125
2826
  "nso": "nso-Latn-ZA",
3126
2827
  "nss": "nss-Latn-ZZ",
2828
+ "nst": "nst-Tnsa-IN",
3127
2829
  "ntm": "ntm-Latn-ZZ",
3128
2830
  "ntr": "ntr-Latn-ZZ",
3129
2831
  "nui": "nui-Latn-ZZ",
@@ -3155,6 +2857,7 @@
3155
2857
  "osa": "osa-Osge-US",
3156
2858
  "ota": "ota-Arab-ZZ",
3157
2859
  "otk": "otk-Orkh-MN",
2860
+ "oui": "oui-Ougr-143",
3158
2861
  "ozm": "ozm-Latn-ZZ",
3159
2862
  "pa": "pa-Guru-IN",
3160
2863
  "pa-Arab": "pa-Arab-PK",
@@ -3209,7 +2912,7 @@
3209
2912
  "rel": "rel-Latn-ZZ",
3210
2913
  "res": "res-Latn-ZZ",
3211
2914
  "rgn": "rgn-Latn-IT",
3212
- "rhg": "rhg-Arab-MM",
2915
+ "rhg": "rhg-Rohg-MM",
3213
2916
  "ria": "ria-Latn-IN",
3214
2917
  "rif": "rif-Tfng-MA",
3215
2918
  "rif-NL": "rif-Latn-NL",
@@ -3433,6 +3136,7 @@
3433
3136
  "twh": "twh-Latn-ZZ",
3434
3137
  "twq": "twq-Latn-NE",
3435
3138
  "txg": "txg-Tang-CN",
3139
+ "txo": "txo-Toto-IN",
3436
3140
  "ty": "ty-Latn-PF",
3437
3141
  "tya": "tya-Latn-ZZ",
3438
3142
  "tyv": "tyv-Cyrl-RU",
@@ -3559,6 +3263,8 @@
3559
3263
  "und-CO": "es-Latn-CO",
3560
3264
  "und-Copt": "cop-Copt-EG",
3561
3265
  "und-CP": "und-Latn-CP",
3266
+ "und-Cpmn": "und-Cpmn-CY",
3267
+ "und-Cpmn-CY": "und-Cpmn-CY",
3562
3268
  "und-Cprt": "grc-Cprt-CY",
3563
3269
  "und-CR": "es-Latn-CR",
3564
3270
  "und-CU": "es-Latn-CU",
@@ -3645,7 +3351,7 @@
3645
3351
  "und-Hluw": "hlu-Hluw-TR",
3646
3352
  "und-HM": "und-Latn-HM",
3647
3353
  "und-Hmng": "hnj-Hmng-LA",
3648
- "und-Hmnp": "mww-Hmnp-US",
3354
+ "und-Hmnp": "hnj-Hmnp-US",
3649
3355
  "und-HN": "es-Latn-HN",
3650
3356
  "und-HR": "hr-Latn-HR",
3651
3357
  "und-HT": "ht-Latn-HT",
@@ -3776,6 +3482,7 @@
3776
3482
  "und-Orya": "or-Orya-IN",
3777
3483
  "und-Osge": "osa-Osge-US",
3778
3484
  "und-Osma": "so-Osma-SO",
3485
+ "und-Ougr": "oui-Ougr-143",
3779
3486
  "und-PA": "es-Latn-PA",
3780
3487
  "und-Palm": "arc-Palm-SY",
3781
3488
  "und-Pauc": "ctd-Pauc-MM",
@@ -3864,7 +3571,9 @@
3864
3571
  "und-TL": "pt-Latn-TL",
3865
3572
  "und-TM": "tk-Latn-TM",
3866
3573
  "und-TN": "ar-Arab-TN",
3574
+ "und-Tnsa": "nst-Tnsa-IN",
3867
3575
  "und-TO": "to-Latn-TO",
3576
+ "und-Toto": "txo-Toto-IN",
3868
3577
  "und-TR": "tr-Latn-TR",
3869
3578
  "und-TV": "tvl-Latn-TV",
3870
3579
  "und-TW": "zh-Hant-TW",
@@ -3877,6 +3586,7 @@
3877
3586
  "und-VA": "it-Latn-VA",
3878
3587
  "und-Vaii": "vai-Vaii-LR",
3879
3588
  "und-VE": "es-Latn-VE",
3589
+ "und-Vith": "sq-Vith-AL",
3880
3590
  "und-VN": "vi-Latn-VN",
3881
3591
  "und-VU": "bi-Latn-VU",
3882
3592
  "und-Wara": "hoc-Wara-IN",
@@ -4265,7 +3975,7 @@
4265
3975
  var parser_1 = require_parser();
4266
3976
  var emitter_1 = require_emitter();
4267
3977
  var canonicalizer_1 = require_canonicalizer();
4268
- function CanonicalizeLocaleList2(locales) {
3978
+ function CanonicalizeLocaleList(locales) {
4269
3979
  if (locales === void 0) {
4270
3980
  return [];
4271
3981
  }
@@ -4283,7 +3993,7 @@
4283
3993
  return seen;
4284
3994
  }
4285
3995
  function getCanonicalLocales(locales) {
4286
- return CanonicalizeLocaleList2(locales);
3996
+ return CanonicalizeLocaleList(locales);
4287
3997
  }
4288
3998
  exports.getCanonicalLocales = getCanonicalLocales;
4289
3999
  var parser_2 = require_parser();
@@ -4312,7 +4022,7 @@
4312
4022
  });
4313
4023
 
4314
4024
  // bazel-out/darwin-fastbuild/bin/packages/intl-locale/lib/index.js
4315
- var import_tslib2 = __toModule(require_tslib());
4025
+ var import_tslib = __toESM(require_tslib());
4316
4026
 
4317
4027
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/262.js
4318
4028
  function ToString(o) {
@@ -4345,7 +4055,7 @@
4345
4055
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js
4346
4056
  function CoerceOptionsToObject(options) {
4347
4057
  if (typeof options === "undefined") {
4348
- return Object.create(null);
4058
+ return /* @__PURE__ */ Object.create(null);
4349
4059
  }
4350
4060
  return ToObject(options);
4351
4061
  }
@@ -4369,64 +4079,13 @@
4369
4079
  if (values !== void 0 && !values.filter(function(val) {
4370
4080
  return val == value;
4371
4081
  }).length) {
4372
- throw new RangeError(value + " is not within " + values.join(", "));
4082
+ throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
4373
4083
  }
4374
4084
  return value;
4375
4085
  }
4376
4086
  return fallback;
4377
4087
  }
4378
4088
 
4379
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
4380
- var SANCTIONED_UNITS = [
4381
- "angle-degree",
4382
- "area-acre",
4383
- "area-hectare",
4384
- "concentr-percent",
4385
- "digital-bit",
4386
- "digital-byte",
4387
- "digital-gigabit",
4388
- "digital-gigabyte",
4389
- "digital-kilobit",
4390
- "digital-kilobyte",
4391
- "digital-megabit",
4392
- "digital-megabyte",
4393
- "digital-petabyte",
4394
- "digital-terabit",
4395
- "digital-terabyte",
4396
- "duration-day",
4397
- "duration-hour",
4398
- "duration-millisecond",
4399
- "duration-minute",
4400
- "duration-month",
4401
- "duration-second",
4402
- "duration-week",
4403
- "duration-year",
4404
- "length-centimeter",
4405
- "length-foot",
4406
- "length-inch",
4407
- "length-kilometer",
4408
- "length-meter",
4409
- "length-mile-scandinavian",
4410
- "length-mile",
4411
- "length-millimeter",
4412
- "length-yard",
4413
- "mass-gram",
4414
- "mass-kilogram",
4415
- "mass-ounce",
4416
- "mass-pound",
4417
- "mass-stone",
4418
- "temperature-celsius",
4419
- "temperature-fahrenheit",
4420
- "volume-fluid-ounce",
4421
- "volume-gallon",
4422
- "volume-liter",
4423
- "volume-milliliter"
4424
- ];
4425
- function removeUnitNamespace(unit) {
4426
- return unit.slice(unit.indexOf("-") + 1);
4427
- }
4428
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
4429
-
4430
4089
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
4431
4090
  function invariant(condition, message, Err) {
4432
4091
  if (Err === void 0) {
@@ -4437,48 +4096,15 @@
4437
4096
  }
4438
4097
  }
4439
4098
 
4440
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
4441
- 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]/;
4442
-
4443
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
4444
- var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
4445
- var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
4446
-
4447
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
4448
- var import_intl_localematcher = __toModule(require_intl_localematcher());
4449
-
4450
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
4451
- var import_intl_localematcher2 = __toModule(require_intl_localematcher());
4452
-
4453
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
4454
- var import_tslib = __toModule(require_tslib());
4455
- var MissingLocaleDataError = function(_super) {
4456
- (0, import_tslib.__extends)(MissingLocaleDataError2, _super);
4457
- function MissingLocaleDataError2() {
4458
- var _this = _super !== null && _super.apply(this, arguments) || this;
4459
- _this.type = "MISSING_LOCALE_DATA";
4460
- return _this;
4461
- }
4462
- return MissingLocaleDataError2;
4463
- }(Error);
4464
-
4465
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
4466
- var RangePatternType;
4467
- (function(RangePatternType2) {
4468
- RangePatternType2["startRange"] = "startRange";
4469
- RangePatternType2["shared"] = "shared";
4470
- RangePatternType2["endRange"] = "endRange";
4471
- })(RangePatternType || (RangePatternType = {}));
4472
-
4473
4099
  // bazel-out/darwin-fastbuild/bin/packages/intl-locale/lib/index.js
4474
- var import_intl_getcanonicallocales = __toModule(require_intl_getcanonicallocales());
4100
+ var import_intl_getcanonicallocales = __toESM(require_intl_getcanonicallocales());
4475
4101
 
4476
4102
  // bazel-out/darwin-fastbuild/bin/packages/intl-locale/lib/get_internal_slots.js
4477
- var internalSlotMap = new WeakMap();
4103
+ var internalSlotMap = /* @__PURE__ */ new WeakMap();
4478
4104
  function getInternalSlots(x) {
4479
4105
  var internalSlots = internalSlotMap.get(x);
4480
4106
  if (!internalSlots) {
4481
- internalSlots = Object.create(null);
4107
+ internalSlots = /* @__PURE__ */ Object.create(null);
4482
4108
  internalSlotMap.set(x, internalSlots);
4483
4109
  }
4484
4110
  return internalSlots;
@@ -4512,7 +4138,7 @@
4512
4138
  if (region !== void 0) {
4513
4139
  languageId.region = region;
4514
4140
  }
4515
- return Intl.getCanonicalLocales((0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag)), { lang: languageId })))[0];
4141
+ return Intl.getCanonicalLocales((0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib.__assign)((0, import_tslib.__assign)({}, (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag)), { lang: languageId })))[0];
4516
4142
  }
4517
4143
  function applyUnicodeExtensionToTag(tag, options, relevantExtensionKeys) {
4518
4144
  var unicodeExtension;
@@ -4526,7 +4152,7 @@
4526
4152
  keywords = ext.keywords;
4527
4153
  }
4528
4154
  }
4529
- var result = Object.create(null);
4155
+ var result = /* @__PURE__ */ Object.create(null);
4530
4156
  for (var _b = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _b < relevantExtensionKeys_1.length; _b++) {
4531
4157
  var key = relevantExtensionKeys_1[_b];
4532
4158
  var value = void 0, entry = void 0;
@@ -4537,10 +4163,10 @@
4537
4163
  value = entry[1];
4538
4164
  }
4539
4165
  }
4540
- invariant(key in options, key + " must be in options");
4166
+ invariant(key in options, "".concat(key, " must be in options"));
4541
4167
  var optionsValue = options[key];
4542
4168
  if (optionsValue !== void 0) {
4543
- invariant(typeof optionsValue === "string", "Value for " + key + " must be a string");
4169
+ invariant(typeof optionsValue === "string", "Value for ".concat(key, " must be a string"));
4544
4170
  value = optionsValue;
4545
4171
  if (entry) {
4546
4172
  entry[1] = value;
@@ -4580,7 +4206,7 @@
4580
4206
  lang: !lang || lang === "und" ? replacement.lang : lang,
4581
4207
  script: script || replacement.script,
4582
4208
  region: region || replacement.region,
4583
- variants: (0, import_tslib2.__spreadArray)((0, import_tslib2.__spreadArray)([], variants, true), replacement.variants, true)
4209
+ variants: (0, import_tslib.__spreadArray)((0, import_tslib.__spreadArray)([], variants, true), replacement.variants, true)
4584
4210
  };
4585
4211
  }
4586
4212
  function addLikelySubtags(tag) {
@@ -4624,23 +4250,23 @@
4624
4250
  if (!maxLocale) {
4625
4251
  return tag;
4626
4252
  }
4627
- maxLocale = (0, import_intl_getcanonicallocales.emitUnicodeLanguageId)((0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(maxLocale)), { variants: [] }));
4253
+ maxLocale = (0, import_intl_getcanonicallocales.emitUnicodeLanguageId)((0, import_tslib.__assign)((0, import_tslib.__assign)({}, (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(maxLocale)), { variants: [] }));
4628
4254
  var ast = (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag);
4629
4255
  var _a = ast.lang, lang = _a.lang, script = _a.script, region = _a.region, variants = _a.variants;
4630
4256
  var trial = addLikelySubtags((0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang: lang, variants: [] }));
4631
4257
  if (trial === maxLocale) {
4632
- return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, void 0, void 0, variants) }));
4258
+ return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib.__assign)((0, import_tslib.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, void 0, void 0, variants) }));
4633
4259
  }
4634
4260
  if (region) {
4635
4261
  var trial_1 = addLikelySubtags((0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang: lang, region: region, variants: [] }));
4636
4262
  if (trial_1 === maxLocale) {
4637
- return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, void 0, region, variants) }));
4263
+ return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib.__assign)((0, import_tslib.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, void 0, region, variants) }));
4638
4264
  }
4639
4265
  }
4640
4266
  if (script) {
4641
4267
  var trial_2 = addLikelySubtags((0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang: lang, script: script, variants: [] }));
4642
4268
  if (trial_2 === maxLocale) {
4643
- return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, script, void 0, variants) }));
4269
+ return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)((0, import_tslib.__assign)((0, import_tslib.__assign)({}, ast), { lang: mergeUnicodeLanguageId(lang, script, void 0, variants) }));
4644
4270
  }
4645
4271
  }
4646
4272
  return tag;
@@ -4681,7 +4307,7 @@
4681
4307
  internalSlots = getInternalSlots(this);
4682
4308
  var options = CoerceOptionsToObject(opts);
4683
4309
  tag = applyOptionsToTag(tag, options);
4684
- var opt = Object.create(null);
4310
+ var opt = /* @__PURE__ */ Object.create(null);
4685
4311
  var calendar = GetOption(options, "calendar", "string", void 0, void 0);
4686
4312
  if (calendar !== void 0) {
4687
4313
  if (!UNICODE_TYPE_REGEX.test(calendar)) {