@formatjs/intl-listformat 7.5.8 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locale-data/am.js CHANGED
@@ -5,7 +5,7 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
5
5
  "data": {
6
6
  "conjunction": {
7
7
  "long": {
8
- "end": "{0}, እና {1}",
8
+ "end": "{0} እና {1}",
9
9
  "middle": "{0}፣ {1}",
10
10
  "pair": "{0} እና {1}",
11
11
  "start": "{0}፣ {1}"
@@ -14,10 +14,10 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
14
14
  "end": "{0}, እና {1}",
15
15
  "middle": "{0}፣ {1}",
16
16
  "pair": "{0} እና {1}",
17
- "start": "{0}, {1}"
17
+ "start": "{0} {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0}, እና {1}",
20
+ "end": "{0} እና {1}",
21
21
  "middle": "{0}፣ {1}",
22
22
  "pair": "{0} እና {1}",
23
23
  "start": "{0}፣ {1}"
@@ -27,19 +27,19 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
27
27
  "long": {
28
28
  "end": "{0}፣ ወይም {1}",
29
29
  "middle": "{0}፣ {1}",
30
- "pair": "{0} ወይም {1}",
30
+ "pair": "{0} ወይም {1}",
31
31
  "start": "{0}፣ {1}"
32
32
  },
33
33
  "narrow": {
34
34
  "end": "{0}፣ ወይም {1}",
35
35
  "middle": "{0}፣ {1}",
36
- "pair": "{0} ወይም {1}",
36
+ "pair": "{0} ወይም {1}",
37
37
  "start": "{0}፣ {1}"
38
38
  },
39
39
  "short": {
40
40
  "end": "{0}፣ ወይም {1}",
41
41
  "middle": "{0}፣ {1}",
42
- "pair": "{0} ወይም {1}",
42
+ "pair": "{0} ወይም {1}",
43
43
  "start": "{0}፣ {1}"
44
44
  }
45
45
  },
@@ -5,21 +5,21 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
5
5
  "data": {
6
6
  "conjunction": {
7
7
  "long": {
8
- "end": "{0} og {1}",
8
+ "end": "{0}, og {1}",
9
9
  "middle": "{0}, {1}",
10
10
  "pair": "{0} og {1}",
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} og {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} og {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} og {1}",
20
+ "end": "{0}, & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} og {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
package/locale-data/fo.js CHANGED
@@ -5,21 +5,21 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
5
5
  "data": {
6
6
  "conjunction": {
7
7
  "long": {
8
- "end": "{0} og {1}",
8
+ "end": "{0}, og {1}",
9
9
  "middle": "{0}, {1}",
10
10
  "pair": "{0} og {1}",
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} og {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} og {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} og {1}",
20
+ "end": "{0}, & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} og {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
package/locale-data/ia.js CHANGED
@@ -11,9 +11,9 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} e {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} e {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
package/locale-data/mi.js CHANGED
@@ -17,29 +17,29 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0}, {1}",
20
+ "end": "{0}, & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0}, {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
26
26
  "disjunction": {
27
27
  "long": {
28
- "end": "{0}, or {1}",
28
+ "end": "{0}, {1} rānei",
29
29
  "middle": "{0}, {1}",
30
- "pair": "{0} or {1}",
30
+ "pair": "{0} {1} rānei",
31
31
  "start": "{0}, {1}"
32
32
  },
33
33
  "narrow": {
34
- "end": "{0}, or {1}",
34
+ "end": "{0}, {1} rānei",
35
35
  "middle": "{0}, {1}",
36
- "pair": "{0} or {1}",
36
+ "pair": "{0} {1} rānei",
37
37
  "start": "{0}, {1}"
38
38
  },
39
39
  "short": {
40
- "end": "{0}, or {1}",
40
+ "end": "{0}, {1} rānei",
41
41
  "middle": "{0}, {1}",
42
- "pair": "{0} or {1}",
42
+ "pair": "{0} {1} rānei",
43
43
  "start": "{0}, {1}"
44
44
  }
45
45
  },
@@ -51,10 +51,10 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
51
51
  "start": "{0}, {1}"
52
52
  },
53
53
  "narrow": {
54
- "end": "{0}, {1}",
55
- "middle": "{0}, {1}",
56
- "pair": "{0}, {1}",
57
- "start": "{0}, {1}"
54
+ "end": "{0} {1}",
55
+ "middle": "{0} {1}",
56
+ "pair": "{0} {1}",
57
+ "start": "{0} {1}"
58
58
  },
59
59
  "short": {
60
60
  "end": "{0}, {1}",
package/locale-data/ml.js CHANGED
@@ -13,7 +13,7 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
13
13
  "narrow": {
14
14
  "end": "{0}, {1} എന്നിവ",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0}, {1} എന്നിവ",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
@@ -47,7 +47,7 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
47
47
  "long": {
48
48
  "end": "{0}, {1}",
49
49
  "middle": "{0}, {1}",
50
- "pair": "{0} കൂടാതെ {1}",
50
+ "pair": "{0}, {1}",
51
51
  "start": "{0}, {1}"
52
52
  },
53
53
  "narrow": {
package/locale-data/my.js CHANGED
@@ -47,7 +47,7 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
47
47
  "long": {
48
48
  "end": "{0}နှင့် {1}",
49
49
  "middle": "{0}- {1}",
50
- "pair": "{0}နှင့်{1}",
50
+ "pair": "{0}နှင့် {1}",
51
51
  "start": "{0}- {1}"
52
52
  },
53
53
  "narrow": {
@@ -58,9 +58,9 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
58
58
  },
59
59
  "short": {
60
60
  "end": "{0}နှင့် {1}",
61
- "middle": "{0}- {1}",
61
+ "middle": "{0} - {1}",
62
62
  "pair": "{0}နှင့် {1}",
63
- "start": "{0}- {1}"
63
+ "start": "{0} - {1}"
64
64
  }
65
65
  }
66
66
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
package/locale-data/nl.js CHANGED
@@ -11,15 +11,15 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
11
11
  "start": "{0}, {1}"
12
12
  },
13
13
  "narrow": {
14
- "end": "{0} en {1}",
14
+ "end": "{0}, {1}",
15
15
  "middle": "{0}, {1}",
16
- "pair": "{0} en {1}",
16
+ "pair": "{0}, {1}",
17
17
  "start": "{0}, {1}"
18
18
  },
19
19
  "short": {
20
- "end": "{0} en {1}",
20
+ "end": "{0} & {1}",
21
21
  "middle": "{0}, {1}",
22
- "pair": "{0} en {1}",
22
+ "pair": "{0} & {1}",
23
23
  "start": "{0}, {1}"
24
24
  }
25
25
  },
package/locale-data/xh.js CHANGED
@@ -31,9 +31,9 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
31
31
  "start": "{0}, {1}"
32
32
  },
33
33
  "narrow": {
34
- "end": "{0}, or {1}",
34
+ "end": "{0}, okanye {1}",
35
35
  "middle": "{0}, {1}",
36
- "pair": "{0} or {1}",
36
+ "pair": "{0} okanye {1}",
37
37
  "start": "{0}, {1}"
38
38
  },
39
39
  "short": {
@@ -13,7 +13,7 @@ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
13
13
  "narrow": {
14
14
  "end": "{0}和{1}",
15
15
  "middle": "{0}、{1}",
16
- "pair": "{0}{1}",
16
+ "pair": "{0}{1}",
17
17
  "start": "{0}、{1}"
18
18
  },
19
19
  "short": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-listformat",
3
- "version": "7.5.8",
3
+ "version": "7.6.0",
4
4
  "description": "Formats JS list in a i18n-safe way",
5
5
  "keywords": [
6
6
  "intl",
@@ -19,13 +19,13 @@
19
19
  "url": "git@github.com:formatjs/formatjs.git"
20
20
  },
21
21
  "dependencies": {
22
- "tslib": "^2.4.0",
23
- "@formatjs/ecma402-abstract": "2.1.0",
24
- "@formatjs/intl-localematcher": "0.5.4"
22
+ "tslib": "^2.7.0",
23
+ "@formatjs/ecma402-abstract": "2.2.0",
24
+ "@formatjs/intl-localematcher": "0.5.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@formatjs/intl-getcanonicallocales": "2.3.0",
28
- "@formatjs/intl-locale": "4.0.1"
27
+ "@formatjs/intl-locale": "4.1.0",
28
+ "@formatjs/intl-getcanonicallocales": "2.4.0"
29
29
  },
30
30
  "main": "index.js",
31
31
  "types": "index.d.ts",
package/polyfill.iife.js CHANGED
@@ -1,54 +1,31 @@
1
1
  (() => {
2
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
3
- var extendStatics = function(d, b) {
4
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
5
- d2.__proto__ = b2;
6
- } || function(d2, b2) {
7
- for (var p in b2)
8
- if (Object.prototype.hasOwnProperty.call(b2, p))
9
- d2[p] = b2[p];
10
- };
11
- return extendStatics(d, b);
12
- };
13
- function __extends(d, b) {
14
- if (typeof b !== "function" && b !== null)
15
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
- extendStatics(d, b);
17
- function __() {
18
- this.constructor = d;
19
- }
20
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21
- }
22
- var __assign = function() {
23
- __assign = Object.assign || function __assign2(t) {
24
- for (var s, i = 1, n = arguments.length; i < n; i++) {
25
- s = arguments[i];
26
- for (var p in s)
27
- if (Object.prototype.hasOwnProperty.call(s, p))
28
- t[p] = s[p];
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __spreadValues = (a, b) => {
8
+ for (var prop in b || (b = {}))
9
+ if (__hasOwnProp.call(b, prop))
10
+ __defNormalProp(a, prop, b[prop]);
11
+ if (__getOwnPropSymbols)
12
+ for (var prop of __getOwnPropSymbols(b)) {
13
+ if (__propIsEnum.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
29
15
  }
30
- return t;
31
- };
32
- return __assign.apply(this, arguments);
16
+ return a;
17
+ };
18
+ var __publicField = (obj, key, value) => {
19
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
20
+ return value;
33
21
  };
34
- function __spreadArray(to, from, pack) {
35
- if (pack || arguments.length === 2)
36
- for (var i = 0, l = from.length, ar; i < l; i++) {
37
- if (ar || !(i in from)) {
38
- if (!ar)
39
- ar = Array.prototype.slice.call(from, 0, i);
40
- ar[i] = from[i];
41
- }
42
- }
43
- return to.concat(ar || Array.prototype.slice.call(from));
44
- }
45
22
 
46
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
23
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
47
24
  function CanonicalizeLocaleList(locales) {
48
25
  return Intl.getCanonicalLocales(locales);
49
26
  }
50
27
 
51
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
28
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
52
29
  function ToString(o) {
53
30
  if (typeof o === "symbol") {
54
31
  throw TypeError("Cannot convert a Symbol value to a string");
@@ -67,7 +44,7 @@
67
44
  var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
68
45
  var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
69
46
 
70
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
47
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
71
48
  function GetOption(opts, prop, type, values, fallback) {
72
49
  if (typeof opts !== "object") {
73
50
  throw new TypeError("Options must be an object");
@@ -93,7 +70,7 @@
93
70
  return fallback;
94
71
  }
95
72
 
96
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOptionsObject.js
73
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOptionsObject.js
97
74
  function GetOptionsObject(options) {
98
75
  if (typeof options === "undefined") {
99
76
  return /* @__PURE__ */ Object.create(null);
@@ -104,7 +81,7 @@
104
81
  throw new TypeError("Options must be an object");
105
82
  }
106
83
 
107
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
84
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
108
85
  var SANCTIONED_UNITS = [
109
86
  "angle-degree",
110
87
  "area-acre",
@@ -155,7 +132,39 @@
155
132
  }
156
133
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
157
134
 
158
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
135
+ // node_modules/.aspect_rules_js/tslib@2.8.0/node_modules/tslib/tslib.es6.mjs
136
+ var extendStatics = function(d, b) {
137
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
138
+ d2.__proto__ = b2;
139
+ } || function(d2, b2) {
140
+ for (var p in b2)
141
+ if (Object.prototype.hasOwnProperty.call(b2, p))
142
+ d2[p] = b2[p];
143
+ };
144
+ return extendStatics(d, b);
145
+ };
146
+ function __extends(d, b) {
147
+ if (typeof b !== "function" && b !== null)
148
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
149
+ extendStatics(d, b);
150
+ function __() {
151
+ this.constructor = d;
152
+ }
153
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
154
+ }
155
+ function __spreadArray(to, from, pack) {
156
+ if (pack || arguments.length === 2)
157
+ for (var i = 0, l = from.length, ar; i < l; i++) {
158
+ if (ar || !(i in from)) {
159
+ if (!ar)
160
+ ar = Array.prototype.slice.call(from, 0, i);
161
+ ar[i] = from[i];
162
+ }
163
+ }
164
+ return to.concat(ar || Array.prototype.slice.call(from));
165
+ }
166
+
167
+ // node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
159
168
  function memoize(fn, options) {
160
169
  var cache = options && options.cache ? options.cache : cacheDefault;
161
170
  var serializer = options && options.serializer ? options.serializer : serializerDefault;
@@ -222,7 +231,7 @@
222
231
  monadic: strategyMonadic
223
232
  };
224
233
 
225
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
234
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
226
235
  function setInternalSlot(map, pl, field, value) {
227
236
  if (!map.get(pl)) {
228
237
  map.set(pl, /* @__PURE__ */ Object.create(null));
@@ -309,19 +318,19 @@
309
318
  strategy: strategies.variadic
310
319
  });
311
320
 
312
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
321
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
313
322
  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]/;
314
323
 
315
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
324
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
316
325
  var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
317
326
  var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
318
327
 
319
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
328
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
320
329
  function CanonicalizeLocaleList2(locales) {
321
330
  return Intl.getCanonicalLocales(locales);
322
331
  }
323
332
 
324
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
333
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
325
334
  var data = {
326
335
  supplemental: {
327
336
  languageMatching: {
@@ -2943,7 +2952,7 @@
2943
2952
  }
2944
2953
  };
2945
2954
 
2946
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
2955
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
2947
2956
  var regions = {
2948
2957
  "001": [
2949
2958
  "001",
@@ -4278,7 +4287,7 @@
4278
4287
  ]
4279
4288
  };
4280
4289
 
4281
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4290
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4282
4291
  var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
4283
4292
  function invariant2(condition, message, Err) {
4284
4293
  if (Err === void 0) {
@@ -4432,7 +4441,7 @@
4432
4441
  return result;
4433
4442
  }
4434
4443
 
4435
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4444
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4436
4445
  function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4437
4446
  var foundLocale;
4438
4447
  var extension;
@@ -4457,7 +4466,7 @@
4457
4466
  };
4458
4467
  }
4459
4468
 
4460
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4469
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4461
4470
  function BestAvailableLocale(availableLocales, locale) {
4462
4471
  var candidate = locale;
4463
4472
  while (true) {
@@ -4475,7 +4484,7 @@
4475
4484
  }
4476
4485
  }
4477
4486
 
4478
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4487
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4479
4488
  function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4480
4489
  var result = { locale: "" };
4481
4490
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4494,7 +4503,7 @@
4494
4503
  return result;
4495
4504
  }
4496
4505
 
4497
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4506
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4498
4507
  function UnicodeExtensionValue(extension, key) {
4499
4508
  invariant2(key.length === 2, "key must have 2 elements");
4500
4509
  var size = extension.length;
@@ -4533,7 +4542,7 @@
4533
4542
  return void 0;
4534
4543
  }
4535
4544
 
4536
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4545
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4537
4546
  function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
4538
4547
  var matcher = options.localeMatcher;
4539
4548
  var r;
@@ -4597,7 +4606,7 @@
4597
4606
  return result;
4598
4607
  }
4599
4608
 
4600
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4609
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4601
4610
  function LookupSupportedLocales(availableLocales, requestedLocales) {
4602
4611
  var subset = [];
4603
4612
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4611,7 +4620,7 @@
4611
4620
  return subset;
4612
4621
  }
4613
4622
 
4614
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4623
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4615
4624
  function match(requestedLocales, availableLocales, defaultLocale, opts) {
4616
4625
  return ResolveLocale(availableLocales, CanonicalizeLocaleList2(requestedLocales), {
4617
4626
  localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
@@ -4620,7 +4629,7 @@
4620
4629
  }).locale;
4621
4630
  }
4622
4631
 
4623
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/PartitionPattern.js
4632
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/PartitionPattern.js
4624
4633
  function PartitionPattern(pattern) {
4625
4634
  var result = [];
4626
4635
  var beginIndex = pattern.indexOf("{");
@@ -4652,7 +4661,7 @@
4652
4661
  return result;
4653
4662
  }
4654
4663
 
4655
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4664
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4656
4665
  function SupportedLocales(availableLocales, requestedLocales, options) {
4657
4666
  var matcher = "best fit";
4658
4667
  if (options !== void 0) {
@@ -4665,7 +4674,7 @@
4665
4674
  return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
4666
4675
  }
4667
4676
 
4668
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4677
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4669
4678
  var MissingLocaleDataError = (
4670
4679
  /** @class */
4671
4680
  function(_super) {
@@ -4679,7 +4688,7 @@
4679
4688
  }(Error)
4680
4689
  );
4681
4690
 
4682
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4691
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4683
4692
  var RangePatternType;
4684
4693
  (function(RangePatternType2) {
4685
4694
  RangePatternType2["startRange"] = "startRange";
@@ -4687,45 +4696,48 @@
4687
4696
  RangePatternType2["endRange"] = "endRange";
4688
4697
  })(RangePatternType || (RangePatternType = {}));
4689
4698
 
4690
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-listformat/lib/index.js
4699
+ // packages/intl-listformat/index.ts
4691
4700
  function validateInstance(instance, method) {
4692
4701
  if (!(instance instanceof ListFormat)) {
4693
- throw new TypeError("Method Intl.ListFormat.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
4702
+ throw new TypeError(
4703
+ `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(
4704
+ instance
4705
+ )}`
4706
+ );
4694
4707
  }
4695
4708
  }
4696
4709
  function stringListFromIterable(list) {
4697
4710
  if (list === void 0) {
4698
4711
  return [];
4699
4712
  }
4700
- var result = [];
4701
- for (var _i = 0, list_1 = list; _i < list_1.length; _i++) {
4702
- var el = list_1[_i];
4713
+ const result = [];
4714
+ for (const el of list) {
4703
4715
  if (typeof el !== "string") {
4704
- throw new TypeError("array list[".concat(list.indexOf(el), "] is not type String"));
4716
+ throw new TypeError(`array list[${list.indexOf(el)}] is not type String`);
4705
4717
  }
4706
4718
  result.push(el);
4707
4719
  }
4708
4720
  return result;
4709
4721
  }
4710
4722
  function createPartsFromList(internalSlotMap, lf, list) {
4711
- var size = list.length;
4723
+ const size = list.length;
4712
4724
  if (size === 0) {
4713
4725
  return [];
4714
4726
  }
4715
4727
  if (size === 2) {
4716
- var pattern = getInternalSlot(internalSlotMap, lf, "templatePair");
4717
- var first = { type: "element", value: list[0] };
4718
- var second = { type: "element", value: list[1] };
4728
+ const pattern = getInternalSlot(internalSlotMap, lf, "templatePair");
4729
+ const first = { type: "element", value: list[0] };
4730
+ const second = { type: "element", value: list[1] };
4719
4731
  return deconstructPattern(pattern, { "0": first, "1": second });
4720
4732
  }
4721
- var last = {
4733
+ const last = {
4722
4734
  type: "element",
4723
4735
  value: list[size - 1]
4724
4736
  };
4725
- var parts = last;
4726
- var i = size - 2;
4737
+ let parts = last;
4738
+ let i = size - 2;
4727
4739
  while (i >= 0) {
4728
- var pattern = void 0;
4740
+ let pattern;
4729
4741
  if (i === 0) {
4730
4742
  pattern = getInternalSlot(internalSlotMap, lf, "templateStart");
4731
4743
  } else if (i < size - 2) {
@@ -4733,28 +4745,27 @@
4733
4745
  } else {
4734
4746
  pattern = getInternalSlot(internalSlotMap, lf, "templateEnd");
4735
4747
  }
4736
- var head = { type: "element", value: list[i] };
4748
+ const head = { type: "element", value: list[i] };
4737
4749
  parts = deconstructPattern(pattern, { "0": head, "1": parts });
4738
4750
  i--;
4739
4751
  }
4740
4752
  return parts;
4741
4753
  }
4742
4754
  function deconstructPattern(pattern, placeables) {
4743
- var patternParts = PartitionPattern(pattern);
4744
- var result = [];
4745
- for (var _i = 0, patternParts_1 = patternParts; _i < patternParts_1.length; _i++) {
4746
- var patternPart = patternParts_1[_i];
4747
- var part = patternPart.type;
4755
+ const patternParts = PartitionPattern(pattern);
4756
+ const result = [];
4757
+ for (const patternPart of patternParts) {
4758
+ const { type: part } = patternPart;
4748
4759
  if (isLiteralPart(patternPart)) {
4749
4760
  result.push({
4750
4761
  type: "literal",
4751
4762
  value: patternPart.value
4752
4763
  });
4753
4764
  } else {
4754
- invariant(part in placeables, "".concat(part, " is missing from placables"));
4755
- var subst = placeables[part];
4765
+ invariant(part in placeables, `${part} is missing from placables`);
4766
+ const subst = placeables[part];
4756
4767
  if (Array.isArray(subst)) {
4757
- result.push.apply(result, subst);
4768
+ result.push(...subst);
4758
4769
  } else {
4759
4770
  result.push(subst);
4760
4771
  }
@@ -4762,103 +4773,154 @@
4762
4773
  }
4763
4774
  return result;
4764
4775
  }
4765
- var ListFormat = (
4766
- /** @class */
4767
- function() {
4768
- function ListFormat2(locales, options) {
4769
- var newTarget = this && this instanceof ListFormat2 ? this.constructor : void 0;
4770
- if (!newTarget) {
4771
- throw new TypeError("Intl.ListFormat must be called with 'new'");
4772
- }
4773
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "initializedListFormat", true);
4774
- var requestedLocales = CanonicalizeLocaleList(locales);
4775
- var opt = /* @__PURE__ */ Object.create(null);
4776
- var opts = GetOptionsObject(options);
4777
- var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
4778
- opt.localeMatcher = matcher;
4779
- var localeData = ListFormat2.localeData;
4780
- var r = ResolveLocale(ListFormat2.availableLocales, requestedLocales, opt, ListFormat2.relevantExtensionKeys, localeData, ListFormat2.getDefaultLocale);
4781
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "locale", r.locale);
4782
- var type = GetOption(opts, "type", "string", ["conjunction", "disjunction", "unit"], "conjunction");
4783
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "type", type);
4784
- var style = GetOption(opts, "style", "string", ["long", "short", "narrow"], "long");
4785
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "style", style);
4786
- var dataLocale = r.dataLocale;
4787
- var dataLocaleData = localeData[dataLocale];
4788
- invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
4789
- var dataLocaleTypes = dataLocaleData[type];
4790
- var templates = dataLocaleTypes[style];
4791
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "templatePair", templates.pair);
4792
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "templateStart", templates.start);
4793
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "templateMiddle", templates.middle);
4794
- setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "templateEnd", templates.end);
4776
+ var _ListFormat = class _ListFormat {
4777
+ constructor(locales, options) {
4778
+ const newTarget = this && this instanceof _ListFormat ? this.constructor : void 0;
4779
+ if (!newTarget) {
4780
+ throw new TypeError("Intl.ListFormat must be called with 'new'");
4795
4781
  }
4796
- ListFormat2.prototype.format = function(elements) {
4797
- validateInstance(this, "format");
4798
- var result = "";
4799
- var parts = createPartsFromList(ListFormat2.__INTERNAL_SLOT_MAP__, this, stringListFromIterable(elements));
4800
- if (!Array.isArray(parts)) {
4801
- return parts.value;
4802
- }
4803
- for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
4804
- var p = parts_1[_i];
4805
- result += p.value;
4806
- }
4807
- return result;
4808
- };
4809
- ListFormat2.prototype.formatToParts = function(elements) {
4810
- validateInstance(this, "format");
4811
- var parts = createPartsFromList(ListFormat2.__INTERNAL_SLOT_MAP__, this, stringListFromIterable(elements));
4812
- if (!Array.isArray(parts)) {
4813
- return [parts];
4814
- }
4815
- var result = [];
4816
- for (var _i = 0, parts_2 = parts; _i < parts_2.length; _i++) {
4817
- var part = parts_2[_i];
4818
- result.push(__assign({}, part));
4819
- }
4820
- return result;
4821
- };
4822
- ListFormat2.prototype.resolvedOptions = function() {
4823
- validateInstance(this, "resolvedOptions");
4824
- return {
4825
- locale: getInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "locale"),
4826
- type: getInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "type"),
4827
- style: getInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "style")
4828
- };
4829
- };
4830
- ListFormat2.supportedLocalesOf = function(locales, options) {
4831
- return SupportedLocales(ListFormat2.availableLocales, CanonicalizeLocaleList(locales), options);
4782
+ setInternalSlot(
4783
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4784
+ this,
4785
+ "initializedListFormat",
4786
+ true
4787
+ );
4788
+ const requestedLocales = CanonicalizeLocaleList(locales);
4789
+ const opt = /* @__PURE__ */ Object.create(null);
4790
+ const opts = GetOptionsObject(options);
4791
+ const matcher = GetOption(
4792
+ opts,
4793
+ "localeMatcher",
4794
+ "string",
4795
+ ["best fit", "lookup"],
4796
+ "best fit"
4797
+ );
4798
+ opt.localeMatcher = matcher;
4799
+ const { localeData } = _ListFormat;
4800
+ const r = ResolveLocale(
4801
+ _ListFormat.availableLocales,
4802
+ requestedLocales,
4803
+ opt,
4804
+ _ListFormat.relevantExtensionKeys,
4805
+ localeData,
4806
+ _ListFormat.getDefaultLocale
4807
+ );
4808
+ setInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "locale", r.locale);
4809
+ const type = GetOption(
4810
+ opts,
4811
+ "type",
4812
+ "string",
4813
+ ["conjunction", "disjunction", "unit"],
4814
+ "conjunction"
4815
+ );
4816
+ setInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "type", type);
4817
+ const style = GetOption(
4818
+ opts,
4819
+ "style",
4820
+ "string",
4821
+ ["long", "short", "narrow"],
4822
+ "long"
4823
+ );
4824
+ setInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "style", style);
4825
+ const { dataLocale } = r;
4826
+ const dataLocaleData = localeData[dataLocale];
4827
+ invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`);
4828
+ const dataLocaleTypes = dataLocaleData[type];
4829
+ const templates = dataLocaleTypes[style];
4830
+ setInternalSlot(
4831
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4832
+ this,
4833
+ "templatePair",
4834
+ templates.pair
4835
+ );
4836
+ setInternalSlot(
4837
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4838
+ this,
4839
+ "templateStart",
4840
+ templates.start
4841
+ );
4842
+ setInternalSlot(
4843
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4844
+ this,
4845
+ "templateMiddle",
4846
+ templates.middle
4847
+ );
4848
+ setInternalSlot(
4849
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4850
+ this,
4851
+ "templateEnd",
4852
+ templates.end
4853
+ );
4854
+ }
4855
+ format(elements) {
4856
+ validateInstance(this, "format");
4857
+ let result = "";
4858
+ const parts = createPartsFromList(
4859
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4860
+ this,
4861
+ stringListFromIterable(elements)
4862
+ );
4863
+ if (!Array.isArray(parts)) {
4864
+ return parts.value;
4865
+ }
4866
+ for (const p of parts) {
4867
+ result += p.value;
4868
+ }
4869
+ return result;
4870
+ }
4871
+ formatToParts(elements) {
4872
+ validateInstance(this, "format");
4873
+ const parts = createPartsFromList(
4874
+ _ListFormat.__INTERNAL_SLOT_MAP__,
4875
+ this,
4876
+ stringListFromIterable(elements)
4877
+ );
4878
+ if (!Array.isArray(parts)) {
4879
+ return [parts];
4880
+ }
4881
+ const result = [];
4882
+ for (const part of parts) {
4883
+ result.push(__spreadValues({}, part));
4884
+ }
4885
+ return result;
4886
+ }
4887
+ resolvedOptions() {
4888
+ validateInstance(this, "resolvedOptions");
4889
+ return {
4890
+ locale: getInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "locale"),
4891
+ type: getInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "type"),
4892
+ style: getInternalSlot(_ListFormat.__INTERNAL_SLOT_MAP__, this, "style")
4832
4893
  };
4833
- ListFormat2.__addLocaleData = function() {
4834
- var data2 = [];
4835
- for (var _i = 0; _i < arguments.length; _i++) {
4836
- data2[_i] = arguments[_i];
4837
- }
4838
- for (var _a = 0, data_1 = data2; _a < data_1.length; _a++) {
4839
- var _b = data_1[_a], d = _b.data, locale = _b.locale;
4840
- var minimizedLocale = new Intl.Locale(locale).minimize().toString();
4841
- ListFormat2.localeData[locale] = ListFormat2.localeData[minimizedLocale] = d;
4842
- ListFormat2.availableLocales.add(minimizedLocale);
4843
- ListFormat2.availableLocales.add(locale);
4844
- if (!ListFormat2.__defaultLocale) {
4845
- ListFormat2.__defaultLocale = minimizedLocale;
4846
- }
4894
+ }
4895
+ static supportedLocalesOf(locales, options) {
4896
+ return SupportedLocales(
4897
+ _ListFormat.availableLocales,
4898
+ CanonicalizeLocaleList(locales),
4899
+ options
4900
+ );
4901
+ }
4902
+ static __addLocaleData(...data2) {
4903
+ for (const { data: d, locale } of data2) {
4904
+ const minimizedLocale = new Intl.Locale(locale).minimize().toString();
4905
+ _ListFormat.localeData[locale] = _ListFormat.localeData[minimizedLocale] = d;
4906
+ _ListFormat.availableLocales.add(minimizedLocale);
4907
+ _ListFormat.availableLocales.add(locale);
4908
+ if (!_ListFormat.__defaultLocale) {
4909
+ _ListFormat.__defaultLocale = minimizedLocale;
4847
4910
  }
4848
- };
4849
- ListFormat2.getDefaultLocale = function() {
4850
- return ListFormat2.__defaultLocale;
4851
- };
4852
- ListFormat2.localeData = {};
4853
- ListFormat2.availableLocales = /* @__PURE__ */ new Set();
4854
- ListFormat2.__defaultLocale = "";
4855
- ListFormat2.relevantExtensionKeys = [];
4856
- ListFormat2.polyfilled = true;
4857
- ListFormat2.__INTERNAL_SLOT_MAP__ = /* @__PURE__ */ new WeakMap();
4858
- return ListFormat2;
4859
- }()
4860
- );
4861
- var lib_default = ListFormat;
4911
+ }
4912
+ }
4913
+ static getDefaultLocale() {
4914
+ return _ListFormat.__defaultLocale;
4915
+ }
4916
+ };
4917
+ __publicField(_ListFormat, "localeData", {});
4918
+ __publicField(_ListFormat, "availableLocales", /* @__PURE__ */ new Set());
4919
+ __publicField(_ListFormat, "__defaultLocale", "");
4920
+ __publicField(_ListFormat, "relevantExtensionKeys", []);
4921
+ __publicField(_ListFormat, "polyfilled", true);
4922
+ __publicField(_ListFormat, "__INTERNAL_SLOT_MAP__", /* @__PURE__ */ new WeakMap());
4923
+ var ListFormat = _ListFormat;
4862
4924
  try {
4863
4925
  if (typeof Symbol !== "undefined") {
4864
4926
  Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {
@@ -4883,30 +4945,27 @@
4883
4945
  } catch (e) {
4884
4946
  }
4885
4947
 
4886
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-listformat/lib/supported-locales.generated.js
4948
+ // packages/intl-listformat/supported-locales.generated.ts
4887
4949
  var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "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", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "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", "eo", "es", "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", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "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-Latn", "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", "fi", "fil", "fo", "fo-DK", "fr", "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", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
4888
4950
 
4889
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-listformat/lib/should-polyfill.js
4951
+ // packages/intl-listformat/should-polyfill.ts
4890
4952
  function supportedLocalesOf(locale) {
4891
4953
  if (!locale) {
4892
4954
  return true;
4893
4955
  }
4894
- var locales = Array.isArray(locale) ? locale : [locale];
4956
+ const locales = Array.isArray(locale) ? locale : [locale];
4895
4957
  return Intl.ListFormat.supportedLocalesOf(locales).length === locales.length;
4896
4958
  }
4897
- function shouldPolyfill(locale) {
4898
- if (locale === void 0) {
4899
- locale = "en";
4900
- }
4959
+ function shouldPolyfill(locale = "en") {
4901
4960
  if (!("ListFormat" in Intl) || !supportedLocalesOf(locale)) {
4902
4961
  return locale ? match([locale], supportedLocales, "en") : void 0;
4903
4962
  }
4904
4963
  }
4905
4964
 
4906
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-listformat/lib/polyfill.js
4965
+ // packages/intl-listformat/polyfill.ts
4907
4966
  if (shouldPolyfill()) {
4908
4967
  Object.defineProperty(Intl, "ListFormat", {
4909
- value: lib_default,
4968
+ value: ListFormat,
4910
4969
  writable: true,
4911
4970
  enumerable: false,
4912
4971
  configurable: true
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldPolyfill = void 0;
3
+ exports.shouldPolyfill = shouldPolyfill;
4
4
  var intl_localematcher_1 = require("@formatjs/intl-localematcher");
5
5
  var supported_locales_generated_1 = require("./supported-locales.generated");
6
6
  function supportedLocalesOf(locale) {
@@ -17,4 +17,3 @@ function shouldPolyfill(locale) {
17
17
  return locale ? (0, intl_localematcher_1.match)([locale], supported_locales_generated_1.supportedLocales, 'en') : undefined;
18
18
  }
19
19
  }
20
- exports.shouldPolyfill = shouldPolyfill;