@formatjs/intl-datetimeformat 5.0.2 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/polyfill.iife.js +2546 -681
package/polyfill.iife.js
CHANGED
|
@@ -1,665 +1,2515 @@
|
|
|
1
1
|
(function() {
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = function(cb, mod) {
|
|
9
|
+
return function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
11
|
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
12
|
};
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function CanonicalizeLocaleList(locales) {
|
|
30
|
-
return Intl.getCanonicalLocales(locales);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeTimeZoneName.js
|
|
34
|
-
function CanonicalizeTimeZoneName(tz, _a) {
|
|
35
|
-
var tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
36
|
-
var uppercasedTz = tz.toUpperCase();
|
|
37
|
-
var uppercasedZones = Object.keys(tzData).reduce(function(all, z) {
|
|
38
|
-
all[z.toUpperCase()] = z;
|
|
39
|
-
return all;
|
|
40
|
-
}, {});
|
|
41
|
-
var ianaTimeZone = uppercaseLinks[uppercasedTz] || uppercasedZones[uppercasedTz];
|
|
42
|
-
if (ianaTimeZone === "Etc/UTC" || ianaTimeZone === "Etc/GMT") {
|
|
43
|
-
return "UTC";
|
|
44
|
-
}
|
|
45
|
-
return ianaTimeZone;
|
|
46
|
-
}
|
|
13
|
+
var __copyProps = function(to, from, except, desc) {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function")
|
|
15
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
+
key = keys[i];
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: function(k) {
|
|
19
|
+
return from[k];
|
|
20
|
+
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = function(mod, isNodeMode, target) {
|
|
25
|
+
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod);
|
|
26
|
+
};
|
|
47
27
|
|
|
48
|
-
// bazel-out/darwin-fastbuild/bin/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
28
|
+
// bazel-out/darwin-fastbuild/bin/external/npm/node_modules/tslib/tslib.js
|
|
29
|
+
var require_tslib = __commonJS({
|
|
30
|
+
"bazel-out/darwin-fastbuild/bin/external/npm/node_modules/tslib/tslib.js": function(exports, module) {
|
|
31
|
+
var __extends;
|
|
32
|
+
var __assign5;
|
|
33
|
+
var __rest2;
|
|
34
|
+
var __decorate;
|
|
35
|
+
var __param;
|
|
36
|
+
var __metadata;
|
|
37
|
+
var __awaiter;
|
|
38
|
+
var __generator;
|
|
39
|
+
var __exportStar;
|
|
40
|
+
var __values;
|
|
41
|
+
var __read;
|
|
42
|
+
var __spread;
|
|
43
|
+
var __spreadArrays;
|
|
44
|
+
var __spreadArray;
|
|
45
|
+
var __await;
|
|
46
|
+
var __asyncGenerator;
|
|
47
|
+
var __asyncDelegator;
|
|
48
|
+
var __asyncValues;
|
|
49
|
+
var __makeTemplateObject;
|
|
50
|
+
var __importStar;
|
|
51
|
+
var __importDefault;
|
|
52
|
+
var __classPrivateFieldGet;
|
|
53
|
+
var __classPrivateFieldSet;
|
|
54
|
+
var __classPrivateFieldIn;
|
|
55
|
+
var __createBinding;
|
|
56
|
+
(function(factory) {
|
|
57
|
+
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
58
|
+
if (typeof define === "function" && define.amd) {
|
|
59
|
+
define("tslib", ["exports"], function(exports2) {
|
|
60
|
+
factory(createExporter(root, createExporter(exports2)));
|
|
61
|
+
});
|
|
62
|
+
} else if (typeof module === "object" && typeof module.exports === "object") {
|
|
63
|
+
factory(createExporter(root, createExporter(module.exports)));
|
|
64
|
+
} else {
|
|
65
|
+
factory(createExporter(root));
|
|
66
|
+
}
|
|
67
|
+
function createExporter(exports2, previous) {
|
|
68
|
+
if (exports2 !== root) {
|
|
69
|
+
if (typeof Object.create === "function") {
|
|
70
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
71
|
+
} else {
|
|
72
|
+
exports2.__esModule = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return function(id, v) {
|
|
76
|
+
return exports2[id] = previous ? previous(id, v) : v;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
})(function(exporter) {
|
|
80
|
+
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
81
|
+
d.__proto__ = b;
|
|
82
|
+
} || function(d, b) {
|
|
83
|
+
for (var p in b)
|
|
84
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
85
|
+
d[p] = b[p];
|
|
86
|
+
};
|
|
87
|
+
__extends = function(d, b) {
|
|
88
|
+
if (typeof b !== "function" && b !== null)
|
|
89
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
90
|
+
extendStatics(d, b);
|
|
91
|
+
function __() {
|
|
92
|
+
this.constructor = d;
|
|
93
|
+
}
|
|
94
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
95
|
+
};
|
|
96
|
+
__assign5 = Object.assign || function(t) {
|
|
97
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
98
|
+
s = arguments[i];
|
|
99
|
+
for (var p in s)
|
|
100
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
101
|
+
t[p] = s[p];
|
|
102
|
+
}
|
|
103
|
+
return t;
|
|
104
|
+
};
|
|
105
|
+
__rest2 = function(s, e) {
|
|
106
|
+
var t = {};
|
|
107
|
+
for (var p in s)
|
|
108
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
109
|
+
t[p] = s[p];
|
|
110
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
111
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
112
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
113
|
+
t[p[i]] = s[p[i]];
|
|
114
|
+
}
|
|
115
|
+
return t;
|
|
116
|
+
};
|
|
117
|
+
__decorate = function(decorators, target, key, desc) {
|
|
118
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
119
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
120
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
121
|
+
else
|
|
122
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
123
|
+
if (d = decorators[i])
|
|
124
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
125
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
126
|
+
};
|
|
127
|
+
__param = function(paramIndex, decorator) {
|
|
128
|
+
return function(target, key) {
|
|
129
|
+
decorator(target, key, paramIndex);
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
__metadata = function(metadataKey, metadataValue) {
|
|
133
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
134
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
135
|
+
};
|
|
136
|
+
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
137
|
+
function adopt(value) {
|
|
138
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
139
|
+
resolve(value);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
143
|
+
function fulfilled(value) {
|
|
144
|
+
try {
|
|
145
|
+
step(generator.next(value));
|
|
146
|
+
} catch (e) {
|
|
147
|
+
reject(e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function rejected(value) {
|
|
151
|
+
try {
|
|
152
|
+
step(generator["throw"](value));
|
|
153
|
+
} catch (e) {
|
|
154
|
+
reject(e);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function step(result) {
|
|
158
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
159
|
+
}
|
|
160
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
__generator = function(thisArg, body) {
|
|
164
|
+
var _ = { label: 0, sent: function() {
|
|
165
|
+
if (t[0] & 1)
|
|
166
|
+
throw t[1];
|
|
167
|
+
return t[1];
|
|
168
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
169
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
170
|
+
return this;
|
|
171
|
+
}), g;
|
|
172
|
+
function verb(n) {
|
|
173
|
+
return function(v) {
|
|
174
|
+
return step([n, v]);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function step(op) {
|
|
178
|
+
if (f)
|
|
179
|
+
throw new TypeError("Generator is already executing.");
|
|
180
|
+
while (_)
|
|
181
|
+
try {
|
|
182
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
183
|
+
return t;
|
|
184
|
+
if (y = 0, t)
|
|
185
|
+
op = [op[0] & 2, t.value];
|
|
186
|
+
switch (op[0]) {
|
|
187
|
+
case 0:
|
|
188
|
+
case 1:
|
|
189
|
+
t = op;
|
|
190
|
+
break;
|
|
191
|
+
case 4:
|
|
192
|
+
_.label++;
|
|
193
|
+
return { value: op[1], done: false };
|
|
194
|
+
case 5:
|
|
195
|
+
_.label++;
|
|
196
|
+
y = op[1];
|
|
197
|
+
op = [0];
|
|
198
|
+
continue;
|
|
199
|
+
case 7:
|
|
200
|
+
op = _.ops.pop();
|
|
201
|
+
_.trys.pop();
|
|
202
|
+
continue;
|
|
203
|
+
default:
|
|
204
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
205
|
+
_ = 0;
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
209
|
+
_.label = op[1];
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
213
|
+
_.label = t[1];
|
|
214
|
+
t = op;
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (t && _.label < t[2]) {
|
|
218
|
+
_.label = t[2];
|
|
219
|
+
_.ops.push(op);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (t[2])
|
|
223
|
+
_.ops.pop();
|
|
224
|
+
_.trys.pop();
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
op = body.call(thisArg, _);
|
|
228
|
+
} catch (e) {
|
|
229
|
+
op = [6, e];
|
|
230
|
+
y = 0;
|
|
231
|
+
} finally {
|
|
232
|
+
f = t = 0;
|
|
233
|
+
}
|
|
234
|
+
if (op[0] & 5)
|
|
235
|
+
throw op[1];
|
|
236
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
__exportStar = function(m, o) {
|
|
240
|
+
for (var p in m)
|
|
241
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
242
|
+
__createBinding(o, m, p);
|
|
243
|
+
};
|
|
244
|
+
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
245
|
+
if (k2 === void 0)
|
|
246
|
+
k2 = k;
|
|
247
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
248
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
249
|
+
desc = { enumerable: true, get: function() {
|
|
250
|
+
return m[k];
|
|
251
|
+
} };
|
|
252
|
+
}
|
|
253
|
+
Object.defineProperty(o, k2, desc);
|
|
254
|
+
} : function(o, m, k, k2) {
|
|
255
|
+
if (k2 === void 0)
|
|
256
|
+
k2 = k;
|
|
257
|
+
o[k2] = m[k];
|
|
258
|
+
};
|
|
259
|
+
__values = function(o) {
|
|
260
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
261
|
+
if (m)
|
|
262
|
+
return m.call(o);
|
|
263
|
+
if (o && typeof o.length === "number")
|
|
264
|
+
return {
|
|
265
|
+
next: function() {
|
|
266
|
+
if (o && i >= o.length)
|
|
267
|
+
o = void 0;
|
|
268
|
+
return { value: o && o[i++], done: !o };
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
272
|
+
};
|
|
273
|
+
__read = function(o, n) {
|
|
274
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
275
|
+
if (!m)
|
|
276
|
+
return o;
|
|
277
|
+
var i = m.call(o), r, ar = [], e;
|
|
278
|
+
try {
|
|
279
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
280
|
+
ar.push(r.value);
|
|
281
|
+
} catch (error) {
|
|
282
|
+
e = { error: error };
|
|
283
|
+
} finally {
|
|
284
|
+
try {
|
|
285
|
+
if (r && !r.done && (m = i["return"]))
|
|
286
|
+
m.call(i);
|
|
287
|
+
} finally {
|
|
288
|
+
if (e)
|
|
289
|
+
throw e.error;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return ar;
|
|
293
|
+
};
|
|
294
|
+
__spread = function() {
|
|
295
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
296
|
+
ar = ar.concat(__read(arguments[i]));
|
|
297
|
+
return ar;
|
|
298
|
+
};
|
|
299
|
+
__spreadArrays = function() {
|
|
300
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
301
|
+
s += arguments[i].length;
|
|
302
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
303
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
304
|
+
r[k] = a[j];
|
|
305
|
+
return r;
|
|
306
|
+
};
|
|
307
|
+
__spreadArray = function(to, from, pack) {
|
|
308
|
+
if (pack || arguments.length === 2)
|
|
309
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
310
|
+
if (ar || !(i in from)) {
|
|
311
|
+
if (!ar)
|
|
312
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
313
|
+
ar[i] = from[i];
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
317
|
+
};
|
|
318
|
+
__await = function(v) {
|
|
319
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
320
|
+
};
|
|
321
|
+
__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
322
|
+
if (!Symbol.asyncIterator)
|
|
323
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
324
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
325
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
326
|
+
return this;
|
|
327
|
+
}, i;
|
|
328
|
+
function verb(n) {
|
|
329
|
+
if (g[n])
|
|
330
|
+
i[n] = function(v) {
|
|
331
|
+
return new Promise(function(a, b) {
|
|
332
|
+
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
function resume(n, v) {
|
|
337
|
+
try {
|
|
338
|
+
step(g[n](v));
|
|
339
|
+
} catch (e) {
|
|
340
|
+
settle(q[0][3], e);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function step(r) {
|
|
344
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
345
|
+
}
|
|
346
|
+
function fulfill(value) {
|
|
347
|
+
resume("next", value);
|
|
348
|
+
}
|
|
349
|
+
function reject(value) {
|
|
350
|
+
resume("throw", value);
|
|
351
|
+
}
|
|
352
|
+
function settle(f, v) {
|
|
353
|
+
if (f(v), q.shift(), q.length)
|
|
354
|
+
resume(q[0][0], q[0][1]);
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
__asyncDelegator = function(o) {
|
|
358
|
+
var i, p;
|
|
359
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
360
|
+
throw e;
|
|
361
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
362
|
+
return this;
|
|
363
|
+
}, i;
|
|
364
|
+
function verb(n, f) {
|
|
365
|
+
i[n] = o[n] ? function(v) {
|
|
366
|
+
return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
|
|
367
|
+
} : f;
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
__asyncValues = function(o) {
|
|
371
|
+
if (!Symbol.asyncIterator)
|
|
372
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
373
|
+
var m = o[Symbol.asyncIterator], i;
|
|
374
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
375
|
+
return this;
|
|
376
|
+
}, i);
|
|
377
|
+
function verb(n) {
|
|
378
|
+
i[n] = o[n] && function(v) {
|
|
379
|
+
return new Promise(function(resolve, reject) {
|
|
380
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function settle(resolve, reject, d, v) {
|
|
385
|
+
Promise.resolve(v).then(function(v2) {
|
|
386
|
+
resolve({ value: v2, done: d });
|
|
387
|
+
}, reject);
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
__makeTemplateObject = function(cooked, raw) {
|
|
391
|
+
if (Object.defineProperty) {
|
|
392
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
393
|
+
} else {
|
|
394
|
+
cooked.raw = raw;
|
|
395
|
+
}
|
|
396
|
+
return cooked;
|
|
397
|
+
};
|
|
398
|
+
var __setModuleDefault = Object.create ? function(o, v) {
|
|
399
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
400
|
+
} : function(o, v) {
|
|
401
|
+
o["default"] = v;
|
|
402
|
+
};
|
|
403
|
+
__importStar = function(mod) {
|
|
404
|
+
if (mod && mod.__esModule)
|
|
405
|
+
return mod;
|
|
406
|
+
var result = {};
|
|
407
|
+
if (mod != null) {
|
|
408
|
+
for (var k in mod)
|
|
409
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
410
|
+
__createBinding(result, mod, k);
|
|
411
|
+
}
|
|
412
|
+
__setModuleDefault(result, mod);
|
|
413
|
+
return result;
|
|
414
|
+
};
|
|
415
|
+
__importDefault = function(mod) {
|
|
416
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
417
|
+
};
|
|
418
|
+
__classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
419
|
+
if (kind === "a" && !f)
|
|
420
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
421
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
422
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
423
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
424
|
+
};
|
|
425
|
+
__classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
426
|
+
if (kind === "m")
|
|
427
|
+
throw new TypeError("Private method is not writable");
|
|
428
|
+
if (kind === "a" && !f)
|
|
429
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
430
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
431
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
432
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
433
|
+
};
|
|
434
|
+
__classPrivateFieldIn = function(state, receiver) {
|
|
435
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
436
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
437
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
438
|
+
};
|
|
439
|
+
exporter("__extends", __extends);
|
|
440
|
+
exporter("__assign", __assign5);
|
|
441
|
+
exporter("__rest", __rest2);
|
|
442
|
+
exporter("__decorate", __decorate);
|
|
443
|
+
exporter("__param", __param);
|
|
444
|
+
exporter("__metadata", __metadata);
|
|
445
|
+
exporter("__awaiter", __awaiter);
|
|
446
|
+
exporter("__generator", __generator);
|
|
447
|
+
exporter("__exportStar", __exportStar);
|
|
448
|
+
exporter("__createBinding", __createBinding);
|
|
449
|
+
exporter("__values", __values);
|
|
450
|
+
exporter("__read", __read);
|
|
451
|
+
exporter("__spread", __spread);
|
|
452
|
+
exporter("__spreadArrays", __spreadArrays);
|
|
453
|
+
exporter("__spreadArray", __spreadArray);
|
|
454
|
+
exporter("__await", __await);
|
|
455
|
+
exporter("__asyncGenerator", __asyncGenerator);
|
|
456
|
+
exporter("__asyncDelegator", __asyncDelegator);
|
|
457
|
+
exporter("__asyncValues", __asyncValues);
|
|
458
|
+
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
459
|
+
exporter("__importStar", __importStar);
|
|
460
|
+
exporter("__importDefault", __importDefault);
|
|
461
|
+
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
462
|
+
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
463
|
+
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
464
|
+
});
|
|
212
465
|
}
|
|
213
|
-
|
|
214
|
-
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
469
|
+
var require_CanonicalizeLocaleList = __commonJS({
|
|
470
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CanonicalizeLocaleList.js": function(exports) {
|
|
471
|
+
"use strict";
|
|
472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
473
|
+
exports.CanonicalizeLocaleList = void 0;
|
|
474
|
+
function CanonicalizeLocaleList3(locales) {
|
|
475
|
+
return Intl.getCanonicalLocales(locales);
|
|
476
|
+
}
|
|
477
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList3;
|
|
215
478
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
479
|
+
});
|
|
480
|
+
|
|
481
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CanonicalizeTimeZoneName.js
|
|
482
|
+
var require_CanonicalizeTimeZoneName = __commonJS({
|
|
483
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CanonicalizeTimeZoneName.js": function(exports) {
|
|
484
|
+
"use strict";
|
|
485
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
486
|
+
exports.CanonicalizeTimeZoneName = void 0;
|
|
487
|
+
function CanonicalizeTimeZoneName3(tz, _a) {
|
|
488
|
+
var tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
489
|
+
var uppercasedTz = tz.toUpperCase();
|
|
490
|
+
var uppercasedZones = Object.keys(tzData).reduce(function(all, z) {
|
|
491
|
+
all[z.toUpperCase()] = z;
|
|
492
|
+
return all;
|
|
493
|
+
}, {});
|
|
494
|
+
var ianaTimeZone = uppercaseLinks[uppercasedTz] || uppercasedZones[uppercasedTz];
|
|
495
|
+
if (ianaTimeZone === "Etc/UTC" || ianaTimeZone === "Etc/GMT") {
|
|
496
|
+
return "UTC";
|
|
497
|
+
}
|
|
498
|
+
return ianaTimeZone;
|
|
499
|
+
}
|
|
500
|
+
exports.CanonicalizeTimeZoneName = CanonicalizeTimeZoneName3;
|
|
224
501
|
}
|
|
225
|
-
|
|
226
|
-
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/262.js
|
|
505
|
+
var require__ = __commonJS({
|
|
506
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/262.js": function(exports) {
|
|
507
|
+
"use strict";
|
|
508
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
509
|
+
exports.msFromTime = exports.OrdinaryHasInstance = exports.SecFromTime = exports.MinFromTime = exports.HourFromTime = exports.DateFromTime = exports.MonthFromTime = exports.InLeapYear = exports.DayWithinYear = exports.DaysInYear = exports.YearFromTime = exports.TimeFromYear = exports.DayFromYear = exports.WeekDay = exports.Day = exports.Type = exports.HasOwnProperty = exports.ArrayCreate = exports.SameValue = exports.ToObject = exports.TimeClip = exports.ToNumber = exports.ToString = void 0;
|
|
510
|
+
function ToString(o) {
|
|
511
|
+
if (typeof o === "symbol") {
|
|
512
|
+
throw TypeError("Cannot convert a Symbol value to a string");
|
|
513
|
+
}
|
|
514
|
+
return String(o);
|
|
515
|
+
}
|
|
516
|
+
exports.ToString = ToString;
|
|
517
|
+
function ToNumber2(val) {
|
|
518
|
+
if (val === void 0) {
|
|
519
|
+
return NaN;
|
|
520
|
+
}
|
|
521
|
+
if (val === null) {
|
|
522
|
+
return 0;
|
|
523
|
+
}
|
|
524
|
+
if (typeof val === "boolean") {
|
|
525
|
+
return val ? 1 : 0;
|
|
526
|
+
}
|
|
527
|
+
if (typeof val === "number") {
|
|
528
|
+
return val;
|
|
529
|
+
}
|
|
530
|
+
if (typeof val === "symbol" || typeof val === "bigint") {
|
|
531
|
+
throw new TypeError("Cannot convert symbol/bigint to number");
|
|
532
|
+
}
|
|
533
|
+
return Number(val);
|
|
534
|
+
}
|
|
535
|
+
exports.ToNumber = ToNumber2;
|
|
536
|
+
function ToInteger(n) {
|
|
537
|
+
var number = ToNumber2(n);
|
|
538
|
+
if (isNaN(number) || SameValue2(number, -0)) {
|
|
539
|
+
return 0;
|
|
540
|
+
}
|
|
541
|
+
if (isFinite(number)) {
|
|
542
|
+
return number;
|
|
543
|
+
}
|
|
544
|
+
var integer = Math.floor(Math.abs(number));
|
|
545
|
+
if (number < 0) {
|
|
546
|
+
integer = -integer;
|
|
547
|
+
}
|
|
548
|
+
if (SameValue2(integer, -0)) {
|
|
549
|
+
return 0;
|
|
550
|
+
}
|
|
551
|
+
return integer;
|
|
552
|
+
}
|
|
553
|
+
function TimeClip4(time) {
|
|
554
|
+
if (!isFinite(time)) {
|
|
555
|
+
return NaN;
|
|
556
|
+
}
|
|
557
|
+
if (Math.abs(time) > 8.64 * 1e15) {
|
|
558
|
+
return NaN;
|
|
559
|
+
}
|
|
560
|
+
return ToInteger(time);
|
|
561
|
+
}
|
|
562
|
+
exports.TimeClip = TimeClip4;
|
|
563
|
+
function ToObject2(arg) {
|
|
564
|
+
if (arg == null) {
|
|
565
|
+
throw new TypeError("undefined/null cannot be converted to object");
|
|
566
|
+
}
|
|
567
|
+
return Object(arg);
|
|
568
|
+
}
|
|
569
|
+
exports.ToObject = ToObject2;
|
|
570
|
+
function SameValue2(x, y) {
|
|
571
|
+
if (Object.is) {
|
|
572
|
+
return Object.is(x, y);
|
|
573
|
+
}
|
|
574
|
+
if (x === y) {
|
|
575
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
576
|
+
}
|
|
577
|
+
return x !== x && y !== y;
|
|
578
|
+
}
|
|
579
|
+
exports.SameValue = SameValue2;
|
|
580
|
+
function ArrayCreate2(len) {
|
|
581
|
+
return new Array(len);
|
|
582
|
+
}
|
|
583
|
+
exports.ArrayCreate = ArrayCreate2;
|
|
584
|
+
function HasOwnProperty(o, prop) {
|
|
585
|
+
return Object.prototype.hasOwnProperty.call(o, prop);
|
|
586
|
+
}
|
|
587
|
+
exports.HasOwnProperty = HasOwnProperty;
|
|
588
|
+
function Type2(x) {
|
|
589
|
+
if (x === null) {
|
|
590
|
+
return "Null";
|
|
591
|
+
}
|
|
592
|
+
if (typeof x === "undefined") {
|
|
593
|
+
return "Undefined";
|
|
594
|
+
}
|
|
595
|
+
if (typeof x === "function" || typeof x === "object") {
|
|
596
|
+
return "Object";
|
|
597
|
+
}
|
|
598
|
+
if (typeof x === "number") {
|
|
599
|
+
return "Number";
|
|
600
|
+
}
|
|
601
|
+
if (typeof x === "boolean") {
|
|
602
|
+
return "Boolean";
|
|
603
|
+
}
|
|
604
|
+
if (typeof x === "string") {
|
|
605
|
+
return "String";
|
|
606
|
+
}
|
|
607
|
+
if (typeof x === "symbol") {
|
|
608
|
+
return "Symbol";
|
|
609
|
+
}
|
|
610
|
+
if (typeof x === "bigint") {
|
|
611
|
+
return "BigInt";
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
exports.Type = Type2;
|
|
615
|
+
var MS_PER_DAY = 864e5;
|
|
616
|
+
function mod(x, y) {
|
|
617
|
+
return x - Math.floor(x / y) * y;
|
|
618
|
+
}
|
|
619
|
+
function Day(t) {
|
|
620
|
+
return Math.floor(t / MS_PER_DAY);
|
|
621
|
+
}
|
|
622
|
+
exports.Day = Day;
|
|
623
|
+
function WeekDay2(t) {
|
|
624
|
+
return mod(Day(t) + 4, 7);
|
|
625
|
+
}
|
|
626
|
+
exports.WeekDay = WeekDay2;
|
|
627
|
+
function DayFromYear(y) {
|
|
628
|
+
return Date.UTC(y, 0) / MS_PER_DAY;
|
|
629
|
+
}
|
|
630
|
+
exports.DayFromYear = DayFromYear;
|
|
631
|
+
function TimeFromYear(y) {
|
|
632
|
+
return Date.UTC(y, 0);
|
|
633
|
+
}
|
|
634
|
+
exports.TimeFromYear = TimeFromYear;
|
|
635
|
+
function YearFromTime2(t) {
|
|
636
|
+
return new Date(t).getUTCFullYear();
|
|
637
|
+
}
|
|
638
|
+
exports.YearFromTime = YearFromTime2;
|
|
639
|
+
function DaysInYear(y) {
|
|
640
|
+
if (y % 4 !== 0) {
|
|
641
|
+
return 365;
|
|
642
|
+
}
|
|
643
|
+
if (y % 100 !== 0) {
|
|
644
|
+
return 366;
|
|
645
|
+
}
|
|
646
|
+
if (y % 400 !== 0) {
|
|
647
|
+
return 365;
|
|
648
|
+
}
|
|
649
|
+
return 366;
|
|
650
|
+
}
|
|
651
|
+
exports.DaysInYear = DaysInYear;
|
|
652
|
+
function DayWithinYear(t) {
|
|
653
|
+
return Day(t) - DayFromYear(YearFromTime2(t));
|
|
654
|
+
}
|
|
655
|
+
exports.DayWithinYear = DayWithinYear;
|
|
656
|
+
function InLeapYear(t) {
|
|
657
|
+
return DaysInYear(YearFromTime2(t)) === 365 ? 0 : 1;
|
|
658
|
+
}
|
|
659
|
+
exports.InLeapYear = InLeapYear;
|
|
660
|
+
function MonthFromTime2(t) {
|
|
661
|
+
var dwy = DayWithinYear(t);
|
|
662
|
+
var leap = InLeapYear(t);
|
|
663
|
+
if (dwy >= 0 && dwy < 31) {
|
|
664
|
+
return 0;
|
|
665
|
+
}
|
|
666
|
+
if (dwy < 59 + leap) {
|
|
667
|
+
return 1;
|
|
668
|
+
}
|
|
669
|
+
if (dwy < 90 + leap) {
|
|
670
|
+
return 2;
|
|
671
|
+
}
|
|
672
|
+
if (dwy < 120 + leap) {
|
|
673
|
+
return 3;
|
|
674
|
+
}
|
|
675
|
+
if (dwy < 151 + leap) {
|
|
676
|
+
return 4;
|
|
677
|
+
}
|
|
678
|
+
if (dwy < 181 + leap) {
|
|
679
|
+
return 5;
|
|
680
|
+
}
|
|
681
|
+
if (dwy < 212 + leap) {
|
|
682
|
+
return 6;
|
|
683
|
+
}
|
|
684
|
+
if (dwy < 243 + leap) {
|
|
685
|
+
return 7;
|
|
686
|
+
}
|
|
687
|
+
if (dwy < 273 + leap) {
|
|
688
|
+
return 8;
|
|
689
|
+
}
|
|
690
|
+
if (dwy < 304 + leap) {
|
|
691
|
+
return 9;
|
|
692
|
+
}
|
|
693
|
+
if (dwy < 334 + leap) {
|
|
694
|
+
return 10;
|
|
695
|
+
}
|
|
696
|
+
if (dwy < 365 + leap) {
|
|
697
|
+
return 11;
|
|
698
|
+
}
|
|
699
|
+
throw new Error("Invalid time");
|
|
700
|
+
}
|
|
701
|
+
exports.MonthFromTime = MonthFromTime2;
|
|
702
|
+
function DateFromTime2(t) {
|
|
703
|
+
var dwy = DayWithinYear(t);
|
|
704
|
+
var mft = MonthFromTime2(t);
|
|
705
|
+
var leap = InLeapYear(t);
|
|
706
|
+
if (mft === 0) {
|
|
707
|
+
return dwy + 1;
|
|
708
|
+
}
|
|
709
|
+
if (mft === 1) {
|
|
710
|
+
return dwy - 30;
|
|
711
|
+
}
|
|
712
|
+
if (mft === 2) {
|
|
713
|
+
return dwy - 58 - leap;
|
|
714
|
+
}
|
|
715
|
+
if (mft === 3) {
|
|
716
|
+
return dwy - 89 - leap;
|
|
717
|
+
}
|
|
718
|
+
if (mft === 4) {
|
|
719
|
+
return dwy - 119 - leap;
|
|
720
|
+
}
|
|
721
|
+
if (mft === 5) {
|
|
722
|
+
return dwy - 150 - leap;
|
|
723
|
+
}
|
|
724
|
+
if (mft === 6) {
|
|
725
|
+
return dwy - 180 - leap;
|
|
726
|
+
}
|
|
727
|
+
if (mft === 7) {
|
|
728
|
+
return dwy - 211 - leap;
|
|
729
|
+
}
|
|
730
|
+
if (mft === 8) {
|
|
731
|
+
return dwy - 242 - leap;
|
|
732
|
+
}
|
|
733
|
+
if (mft === 9) {
|
|
734
|
+
return dwy - 272 - leap;
|
|
735
|
+
}
|
|
736
|
+
if (mft === 10) {
|
|
737
|
+
return dwy - 303 - leap;
|
|
738
|
+
}
|
|
739
|
+
if (mft === 11) {
|
|
740
|
+
return dwy - 333 - leap;
|
|
741
|
+
}
|
|
742
|
+
throw new Error("Invalid time");
|
|
743
|
+
}
|
|
744
|
+
exports.DateFromTime = DateFromTime2;
|
|
745
|
+
var HOURS_PER_DAY = 24;
|
|
746
|
+
var MINUTES_PER_HOUR = 60;
|
|
747
|
+
var SECONDS_PER_MINUTE = 60;
|
|
748
|
+
var MS_PER_SECOND = 1e3;
|
|
749
|
+
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
750
|
+
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
751
|
+
function HourFromTime2(t) {
|
|
752
|
+
return mod(Math.floor(t / MS_PER_HOUR), HOURS_PER_DAY);
|
|
753
|
+
}
|
|
754
|
+
exports.HourFromTime = HourFromTime2;
|
|
755
|
+
function MinFromTime2(t) {
|
|
756
|
+
return mod(Math.floor(t / MS_PER_MINUTE), MINUTES_PER_HOUR);
|
|
757
|
+
}
|
|
758
|
+
exports.MinFromTime = MinFromTime2;
|
|
759
|
+
function SecFromTime2(t) {
|
|
760
|
+
return mod(Math.floor(t / MS_PER_SECOND), SECONDS_PER_MINUTE);
|
|
761
|
+
}
|
|
762
|
+
exports.SecFromTime = SecFromTime2;
|
|
763
|
+
function IsCallable(fn) {
|
|
764
|
+
return typeof fn === "function";
|
|
765
|
+
}
|
|
766
|
+
function OrdinaryHasInstance2(C, O, internalSlots) {
|
|
767
|
+
if (!IsCallable(C)) {
|
|
768
|
+
return false;
|
|
769
|
+
}
|
|
770
|
+
if (internalSlots === null || internalSlots === void 0 ? void 0 : internalSlots.boundTargetFunction) {
|
|
771
|
+
var BC = internalSlots === null || internalSlots === void 0 ? void 0 : internalSlots.boundTargetFunction;
|
|
772
|
+
return O instanceof BC;
|
|
773
|
+
}
|
|
774
|
+
if (typeof O !== "object") {
|
|
775
|
+
return false;
|
|
776
|
+
}
|
|
777
|
+
var P = C.prototype;
|
|
778
|
+
if (typeof P !== "object") {
|
|
779
|
+
throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");
|
|
780
|
+
}
|
|
781
|
+
return Object.prototype.isPrototypeOf.call(P, O);
|
|
782
|
+
}
|
|
783
|
+
exports.OrdinaryHasInstance = OrdinaryHasInstance2;
|
|
784
|
+
function msFromTime2(t) {
|
|
785
|
+
return mod(t, MS_PER_SECOND);
|
|
786
|
+
}
|
|
787
|
+
exports.msFromTime = msFromTime2;
|
|
227
788
|
}
|
|
228
|
-
|
|
229
|
-
|
|
789
|
+
});
|
|
790
|
+
|
|
791
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CoerceOptionsToObject.js
|
|
792
|
+
var require_CoerceOptionsToObject = __commonJS({
|
|
793
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/CoerceOptionsToObject.js": function(exports) {
|
|
794
|
+
"use strict";
|
|
795
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
796
|
+
exports.CoerceOptionsToObject = void 0;
|
|
797
|
+
var _262_1 = require__();
|
|
798
|
+
function CoerceOptionsToObject(options) {
|
|
799
|
+
if (typeof options === "undefined") {
|
|
800
|
+
return /* @__PURE__ */ Object.create(null);
|
|
801
|
+
}
|
|
802
|
+
return (0, _262_1.ToObject)(options);
|
|
803
|
+
}
|
|
804
|
+
exports.CoerceOptionsToObject = CoerceOptionsToObject;
|
|
230
805
|
}
|
|
231
|
-
|
|
232
|
-
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/DefaultNumberOption.js
|
|
809
|
+
var require_DefaultNumberOption = __commonJS({
|
|
810
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/DefaultNumberOption.js": function(exports) {
|
|
811
|
+
"use strict";
|
|
812
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
813
|
+
exports.DefaultNumberOption = void 0;
|
|
814
|
+
function DefaultNumberOption(val, min, max, fallback) {
|
|
815
|
+
if (val !== void 0) {
|
|
816
|
+
val = Number(val);
|
|
817
|
+
if (isNaN(val) || val < min || val > max) {
|
|
818
|
+
throw new RangeError("".concat(val, " is outside of range [").concat(min, ", ").concat(max, "]"));
|
|
819
|
+
}
|
|
820
|
+
return Math.floor(val);
|
|
821
|
+
}
|
|
822
|
+
return fallback;
|
|
823
|
+
}
|
|
824
|
+
exports.DefaultNumberOption = DefaultNumberOption;
|
|
233
825
|
}
|
|
234
|
-
|
|
235
|
-
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetNumberOption.js
|
|
829
|
+
var require_GetNumberOption = __commonJS({
|
|
830
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetNumberOption.js": function(exports) {
|
|
831
|
+
"use strict";
|
|
832
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
833
|
+
exports.GetNumberOption = void 0;
|
|
834
|
+
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
835
|
+
function GetNumberOption2(options, property, minimum, maximum, fallback) {
|
|
836
|
+
var val = options[property];
|
|
837
|
+
return (0, DefaultNumberOption_1.DefaultNumberOption)(val, minimum, maximum, fallback);
|
|
838
|
+
}
|
|
839
|
+
exports.GetNumberOption = GetNumberOption2;
|
|
236
840
|
}
|
|
237
|
-
|
|
238
|
-
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetOption.js
|
|
844
|
+
var require_GetOption = __commonJS({
|
|
845
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetOption.js": function(exports) {
|
|
846
|
+
"use strict";
|
|
847
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
848
|
+
exports.GetOption = void 0;
|
|
849
|
+
var _262_1 = require__();
|
|
850
|
+
function GetOption2(opts, prop, type, values, fallback) {
|
|
851
|
+
if (typeof opts !== "object") {
|
|
852
|
+
throw new TypeError("Options must be an object");
|
|
853
|
+
}
|
|
854
|
+
var value = opts[prop];
|
|
855
|
+
if (value !== void 0) {
|
|
856
|
+
if (type !== "boolean" && type !== "string") {
|
|
857
|
+
throw new TypeError("invalid type");
|
|
858
|
+
}
|
|
859
|
+
if (type === "boolean") {
|
|
860
|
+
value = Boolean(value);
|
|
861
|
+
}
|
|
862
|
+
if (type === "string") {
|
|
863
|
+
value = (0, _262_1.ToString)(value);
|
|
864
|
+
}
|
|
865
|
+
if (values !== void 0 && !values.filter(function(val) {
|
|
866
|
+
return val == value;
|
|
867
|
+
}).length) {
|
|
868
|
+
throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
|
869
|
+
}
|
|
870
|
+
return value;
|
|
871
|
+
}
|
|
872
|
+
return fallback;
|
|
873
|
+
}
|
|
874
|
+
exports.GetOption = GetOption2;
|
|
239
875
|
}
|
|
240
|
-
|
|
241
|
-
|
|
876
|
+
});
|
|
877
|
+
|
|
878
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetOptionsObject.js
|
|
879
|
+
var require_GetOptionsObject = __commonJS({
|
|
880
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/GetOptionsObject.js": function(exports) {
|
|
881
|
+
"use strict";
|
|
882
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
883
|
+
exports.GetOptionsObject = void 0;
|
|
884
|
+
function GetOptionsObject(options) {
|
|
885
|
+
if (typeof options === "undefined") {
|
|
886
|
+
return /* @__PURE__ */ Object.create(null);
|
|
887
|
+
}
|
|
888
|
+
if (typeof options === "object") {
|
|
889
|
+
return options;
|
|
890
|
+
}
|
|
891
|
+
throw new TypeError("Options must be an object");
|
|
892
|
+
}
|
|
893
|
+
exports.GetOptionsObject = GetOptionsObject;
|
|
242
894
|
}
|
|
243
|
-
|
|
244
|
-
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.js
|
|
898
|
+
var require_IsSanctionedSimpleUnitIdentifier = __commonJS({
|
|
899
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.js": function(exports) {
|
|
900
|
+
"use strict";
|
|
901
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
902
|
+
exports.IsSanctionedSimpleUnitIdentifier = exports.SIMPLE_UNITS = exports.removeUnitNamespace = exports.SANCTIONED_UNITS = void 0;
|
|
903
|
+
exports.SANCTIONED_UNITS = [
|
|
904
|
+
"angle-degree",
|
|
905
|
+
"area-acre",
|
|
906
|
+
"area-hectare",
|
|
907
|
+
"concentr-percent",
|
|
908
|
+
"digital-bit",
|
|
909
|
+
"digital-byte",
|
|
910
|
+
"digital-gigabit",
|
|
911
|
+
"digital-gigabyte",
|
|
912
|
+
"digital-kilobit",
|
|
913
|
+
"digital-kilobyte",
|
|
914
|
+
"digital-megabit",
|
|
915
|
+
"digital-megabyte",
|
|
916
|
+
"digital-petabyte",
|
|
917
|
+
"digital-terabit",
|
|
918
|
+
"digital-terabyte",
|
|
919
|
+
"duration-day",
|
|
920
|
+
"duration-hour",
|
|
921
|
+
"duration-millisecond",
|
|
922
|
+
"duration-minute",
|
|
923
|
+
"duration-month",
|
|
924
|
+
"duration-second",
|
|
925
|
+
"duration-week",
|
|
926
|
+
"duration-year",
|
|
927
|
+
"length-centimeter",
|
|
928
|
+
"length-foot",
|
|
929
|
+
"length-inch",
|
|
930
|
+
"length-kilometer",
|
|
931
|
+
"length-meter",
|
|
932
|
+
"length-mile-scandinavian",
|
|
933
|
+
"length-mile",
|
|
934
|
+
"length-millimeter",
|
|
935
|
+
"length-yard",
|
|
936
|
+
"mass-gram",
|
|
937
|
+
"mass-kilogram",
|
|
938
|
+
"mass-ounce",
|
|
939
|
+
"mass-pound",
|
|
940
|
+
"mass-stone",
|
|
941
|
+
"temperature-celsius",
|
|
942
|
+
"temperature-fahrenheit",
|
|
943
|
+
"volume-fluid-ounce",
|
|
944
|
+
"volume-gallon",
|
|
945
|
+
"volume-liter",
|
|
946
|
+
"volume-milliliter"
|
|
947
|
+
];
|
|
948
|
+
function removeUnitNamespace(unit) {
|
|
949
|
+
return unit.slice(unit.indexOf("-") + 1);
|
|
950
|
+
}
|
|
951
|
+
exports.removeUnitNamespace = removeUnitNamespace;
|
|
952
|
+
exports.SIMPLE_UNITS = exports.SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
953
|
+
function IsSanctionedSimpleUnitIdentifier(unitIdentifier) {
|
|
954
|
+
return exports.SIMPLE_UNITS.indexOf(unitIdentifier) > -1;
|
|
955
|
+
}
|
|
956
|
+
exports.IsSanctionedSimpleUnitIdentifier = IsSanctionedSimpleUnitIdentifier;
|
|
245
957
|
}
|
|
246
|
-
|
|
247
|
-
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsValidTimeZoneName.js
|
|
961
|
+
var require_IsValidTimeZoneName = __commonJS({
|
|
962
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsValidTimeZoneName.js": function(exports) {
|
|
963
|
+
"use strict";
|
|
964
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
965
|
+
exports.IsValidTimeZoneName = void 0;
|
|
966
|
+
function IsValidTimeZoneName3(tz, _a) {
|
|
967
|
+
var tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
968
|
+
var uppercasedTz = tz.toUpperCase();
|
|
969
|
+
var zoneNames = /* @__PURE__ */ new Set();
|
|
970
|
+
var linkNames = /* @__PURE__ */ new Set();
|
|
971
|
+
Object.keys(tzData).map(function(z) {
|
|
972
|
+
return z.toUpperCase();
|
|
973
|
+
}).forEach(function(z) {
|
|
974
|
+
return zoneNames.add(z);
|
|
975
|
+
});
|
|
976
|
+
Object.keys(uppercaseLinks).forEach(function(linkName) {
|
|
977
|
+
linkNames.add(linkName.toUpperCase());
|
|
978
|
+
zoneNames.add(uppercaseLinks[linkName].toUpperCase());
|
|
979
|
+
});
|
|
980
|
+
return zoneNames.has(uppercasedTz) || linkNames.has(uppercasedTz);
|
|
981
|
+
}
|
|
982
|
+
exports.IsValidTimeZoneName = IsValidTimeZoneName3;
|
|
248
983
|
}
|
|
249
|
-
|
|
250
|
-
|
|
984
|
+
});
|
|
985
|
+
|
|
986
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsWellFormedCurrencyCode.js
|
|
987
|
+
var require_IsWellFormedCurrencyCode = __commonJS({
|
|
988
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsWellFormedCurrencyCode.js": function(exports) {
|
|
989
|
+
"use strict";
|
|
990
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
991
|
+
exports.IsWellFormedCurrencyCode = void 0;
|
|
992
|
+
function toUpperCase(str) {
|
|
993
|
+
return str.replace(/([a-z])/g, function(_, c) {
|
|
994
|
+
return c.toUpperCase();
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
var NOT_A_Z_REGEX = /[^A-Z]/;
|
|
998
|
+
function IsWellFormedCurrencyCode(currency) {
|
|
999
|
+
currency = toUpperCase(currency);
|
|
1000
|
+
if (currency.length !== 3) {
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
if (NOT_A_Z_REGEX.test(currency)) {
|
|
1004
|
+
return false;
|
|
1005
|
+
}
|
|
1006
|
+
return true;
|
|
1007
|
+
}
|
|
1008
|
+
exports.IsWellFormedCurrencyCode = IsWellFormedCurrencyCode;
|
|
251
1009
|
}
|
|
252
|
-
|
|
253
|
-
|
|
1010
|
+
});
|
|
1011
|
+
|
|
1012
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsWellFormedUnitIdentifier.js
|
|
1013
|
+
var require_IsWellFormedUnitIdentifier = __commonJS({
|
|
1014
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/IsWellFormedUnitIdentifier.js": function(exports) {
|
|
1015
|
+
"use strict";
|
|
1016
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1017
|
+
exports.IsWellFormedUnitIdentifier = void 0;
|
|
1018
|
+
var IsSanctionedSimpleUnitIdentifier_1 = require_IsSanctionedSimpleUnitIdentifier();
|
|
1019
|
+
function toLowerCase(str) {
|
|
1020
|
+
return str.replace(/([A-Z])/g, function(_, c) {
|
|
1021
|
+
return c.toLowerCase();
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
function IsWellFormedUnitIdentifier(unit) {
|
|
1025
|
+
unit = toLowerCase(unit);
|
|
1026
|
+
if ((0, IsSanctionedSimpleUnitIdentifier_1.IsSanctionedSimpleUnitIdentifier)(unit)) {
|
|
1027
|
+
return true;
|
|
1028
|
+
}
|
|
1029
|
+
var units = unit.split("-per-");
|
|
1030
|
+
if (units.length !== 2) {
|
|
1031
|
+
return false;
|
|
1032
|
+
}
|
|
1033
|
+
var numerator = units[0], denominator = units[1];
|
|
1034
|
+
if (!(0, IsSanctionedSimpleUnitIdentifier_1.IsSanctionedSimpleUnitIdentifier)(numerator) || !(0, IsSanctionedSimpleUnitIdentifier_1.IsSanctionedSimpleUnitIdentifier)(denominator)) {
|
|
1035
|
+
return false;
|
|
1036
|
+
}
|
|
1037
|
+
return true;
|
|
1038
|
+
}
|
|
1039
|
+
exports.IsWellFormedUnitIdentifier = IsWellFormedUnitIdentifier;
|
|
254
1040
|
}
|
|
255
|
-
|
|
256
|
-
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/utils.js
|
|
1044
|
+
var require_utils = __commonJS({
|
|
1045
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/utils.js": function(exports) {
|
|
1046
|
+
"use strict";
|
|
1047
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1048
|
+
exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = exports.defineProperty = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports.setMultiInternalSlots = exports.setInternalSlot = exports.repeat = exports.getMagnitude = void 0;
|
|
1049
|
+
function getMagnitude(x) {
|
|
1050
|
+
return Math.floor(Math.log(x) * Math.LOG10E);
|
|
1051
|
+
}
|
|
1052
|
+
exports.getMagnitude = getMagnitude;
|
|
1053
|
+
function repeat(s, times) {
|
|
1054
|
+
if (typeof s.repeat === "function") {
|
|
1055
|
+
return s.repeat(times);
|
|
1056
|
+
}
|
|
1057
|
+
var arr = new Array(times);
|
|
1058
|
+
for (var i = 0; i < arr.length; i++) {
|
|
1059
|
+
arr[i] = s;
|
|
1060
|
+
}
|
|
1061
|
+
return arr.join("");
|
|
1062
|
+
}
|
|
1063
|
+
exports.repeat = repeat;
|
|
1064
|
+
function setInternalSlot(map, pl, field, value) {
|
|
1065
|
+
if (!map.get(pl)) {
|
|
1066
|
+
map.set(pl, /* @__PURE__ */ Object.create(null));
|
|
1067
|
+
}
|
|
1068
|
+
var slots = map.get(pl);
|
|
1069
|
+
slots[field] = value;
|
|
1070
|
+
}
|
|
1071
|
+
exports.setInternalSlot = setInternalSlot;
|
|
1072
|
+
function setMultiInternalSlots(map, pl, props) {
|
|
1073
|
+
for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
|
|
1074
|
+
var k = _a[_i];
|
|
1075
|
+
setInternalSlot(map, pl, k, props[k]);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
exports.setMultiInternalSlots = setMultiInternalSlots;
|
|
1079
|
+
function getInternalSlot(map, pl, field) {
|
|
1080
|
+
return getMultiInternalSlots(map, pl, field)[field];
|
|
1081
|
+
}
|
|
1082
|
+
exports.getInternalSlot = getInternalSlot;
|
|
1083
|
+
function getMultiInternalSlots(map, pl) {
|
|
1084
|
+
var fields = [];
|
|
1085
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1086
|
+
fields[_i - 2] = arguments[_i];
|
|
1087
|
+
}
|
|
1088
|
+
var slots = map.get(pl);
|
|
1089
|
+
if (!slots) {
|
|
1090
|
+
throw new TypeError("".concat(pl, " InternalSlot has not been initialized"));
|
|
1091
|
+
}
|
|
1092
|
+
return fields.reduce(function(all, f) {
|
|
1093
|
+
all[f] = slots[f];
|
|
1094
|
+
return all;
|
|
1095
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
1096
|
+
}
|
|
1097
|
+
exports.getMultiInternalSlots = getMultiInternalSlots;
|
|
1098
|
+
function isLiteralPart(patternPart) {
|
|
1099
|
+
return patternPart.type === "literal";
|
|
1100
|
+
}
|
|
1101
|
+
exports.isLiteralPart = isLiteralPart;
|
|
1102
|
+
function defineProperty3(target, name, _a) {
|
|
1103
|
+
var value = _a.value;
|
|
1104
|
+
Object.defineProperty(target, name, {
|
|
1105
|
+
configurable: true,
|
|
1106
|
+
enumerable: false,
|
|
1107
|
+
writable: true,
|
|
1108
|
+
value: value
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
exports.defineProperty = defineProperty3;
|
|
1112
|
+
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
1113
|
+
function invariant7(condition, message, Err) {
|
|
1114
|
+
if (Err === void 0) {
|
|
1115
|
+
Err = Error;
|
|
1116
|
+
}
|
|
1117
|
+
if (!condition) {
|
|
1118
|
+
throw new Err(message);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
exports.invariant = invariant7;
|
|
257
1122
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1125
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.js
|
|
1126
|
+
var require_ComputeExponentForMagnitude = __commonJS({
|
|
1127
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.js": function(exports) {
|
|
1128
|
+
"use strict";
|
|
1129
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1130
|
+
exports.ComputeExponentForMagnitude = void 0;
|
|
1131
|
+
function ComputeExponentForMagnitude(numberFormat, magnitude, _a) {
|
|
1132
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
1133
|
+
var internalSlots = getInternalSlots2(numberFormat);
|
|
1134
|
+
var notation = internalSlots.notation, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
|
|
1135
|
+
switch (notation) {
|
|
1136
|
+
case "standard":
|
|
1137
|
+
return 0;
|
|
1138
|
+
case "scientific":
|
|
1139
|
+
return magnitude;
|
|
1140
|
+
case "engineering":
|
|
1141
|
+
return Math.floor(magnitude / 3) * 3;
|
|
1142
|
+
default: {
|
|
1143
|
+
var compactDisplay = internalSlots.compactDisplay, style = internalSlots.style, currencyDisplay = internalSlots.currencyDisplay;
|
|
1144
|
+
var thresholdMap = void 0;
|
|
1145
|
+
if (style === "currency" && currencyDisplay !== "name") {
|
|
1146
|
+
var currency = dataLocaleData.numbers.currency[numberingSystem] || dataLocaleData.numbers.currency[dataLocaleData.numbers.nu[0]];
|
|
1147
|
+
thresholdMap = currency.short;
|
|
1148
|
+
} else {
|
|
1149
|
+
var decimal = dataLocaleData.numbers.decimal[numberingSystem] || dataLocaleData.numbers.decimal[dataLocaleData.numbers.nu[0]];
|
|
1150
|
+
thresholdMap = compactDisplay === "long" ? decimal.long : decimal.short;
|
|
1151
|
+
}
|
|
1152
|
+
if (!thresholdMap) {
|
|
1153
|
+
return 0;
|
|
1154
|
+
}
|
|
1155
|
+
var num = String(Math.pow(10, magnitude));
|
|
1156
|
+
var thresholds = Object.keys(thresholdMap);
|
|
1157
|
+
if (num < thresholds[0]) {
|
|
1158
|
+
return 0;
|
|
1159
|
+
}
|
|
1160
|
+
if (num > thresholds[thresholds.length - 1]) {
|
|
1161
|
+
return thresholds[thresholds.length - 1].length - 1;
|
|
1162
|
+
}
|
|
1163
|
+
var i = thresholds.indexOf(num);
|
|
1164
|
+
if (i === -1) {
|
|
1165
|
+
return 0;
|
|
1166
|
+
}
|
|
1167
|
+
var magnitudeKey = thresholds[i];
|
|
1168
|
+
var compactPattern = thresholdMap[magnitudeKey].other;
|
|
1169
|
+
if (compactPattern === "0") {
|
|
1170
|
+
return 0;
|
|
1171
|
+
}
|
|
1172
|
+
return magnitudeKey.length - thresholdMap[magnitudeKey].other.match(/0+/)[0].length;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
exports.ComputeExponentForMagnitude = ComputeExponentForMagnitude;
|
|
281
1177
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
1178
|
+
});
|
|
1179
|
+
|
|
1180
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
1181
|
+
var require_ToRawPrecision = __commonJS({
|
|
1182
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ToRawPrecision.js": function(exports) {
|
|
1183
|
+
"use strict";
|
|
1184
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1185
|
+
exports.ToRawPrecision = void 0;
|
|
1186
|
+
var utils_1 = require_utils();
|
|
1187
|
+
function ToRawPrecision(x, minPrecision, maxPrecision) {
|
|
1188
|
+
var p = maxPrecision;
|
|
1189
|
+
var m;
|
|
1190
|
+
var e;
|
|
1191
|
+
var xFinal;
|
|
1192
|
+
if (x === 0) {
|
|
1193
|
+
m = (0, utils_1.repeat)("0", p);
|
|
1194
|
+
e = 0;
|
|
1195
|
+
xFinal = 0;
|
|
1196
|
+
} else {
|
|
1197
|
+
var xToString = x.toString();
|
|
1198
|
+
var xToStringExponentIndex = xToString.indexOf("e");
|
|
1199
|
+
var _a = xToString.split("e"), xToStringMantissa = _a[0], xToStringExponent = _a[1];
|
|
1200
|
+
var xToStringMantissaWithoutDecimalPoint = xToStringMantissa.replace(".", "");
|
|
1201
|
+
if (xToStringExponentIndex >= 0 && xToStringMantissaWithoutDecimalPoint.length <= p) {
|
|
1202
|
+
e = +xToStringExponent;
|
|
1203
|
+
m = xToStringMantissaWithoutDecimalPoint + (0, utils_1.repeat)("0", p - xToStringMantissaWithoutDecimalPoint.length);
|
|
1204
|
+
xFinal = x;
|
|
1205
|
+
} else {
|
|
1206
|
+
e = (0, utils_1.getMagnitude)(x);
|
|
1207
|
+
var decimalPlaceOffset = e - p + 1;
|
|
1208
|
+
var n = Math.round(adjustDecimalPlace(x, decimalPlaceOffset));
|
|
1209
|
+
if (adjustDecimalPlace(n, p - 1) >= 10) {
|
|
1210
|
+
e = e + 1;
|
|
1211
|
+
n = Math.floor(n / 10);
|
|
1212
|
+
}
|
|
1213
|
+
m = n.toString();
|
|
1214
|
+
xFinal = adjustDecimalPlace(n, p - 1 - e);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
var int;
|
|
1218
|
+
if (e >= p - 1) {
|
|
1219
|
+
m = m + (0, utils_1.repeat)("0", e - p + 1);
|
|
1220
|
+
int = e + 1;
|
|
1221
|
+
} else if (e >= 0) {
|
|
1222
|
+
m = "".concat(m.slice(0, e + 1), ".").concat(m.slice(e + 1));
|
|
1223
|
+
int = e + 1;
|
|
1224
|
+
} else {
|
|
1225
|
+
m = "0.".concat((0, utils_1.repeat)("0", -e - 1)).concat(m);
|
|
1226
|
+
int = 1;
|
|
1227
|
+
}
|
|
1228
|
+
if (m.indexOf(".") >= 0 && maxPrecision > minPrecision) {
|
|
1229
|
+
var cut = maxPrecision - minPrecision;
|
|
1230
|
+
while (cut > 0 && m[m.length - 1] === "0") {
|
|
1231
|
+
m = m.slice(0, -1);
|
|
1232
|
+
cut--;
|
|
1233
|
+
}
|
|
1234
|
+
if (m[m.length - 1] === ".") {
|
|
1235
|
+
m = m.slice(0, -1);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
|
|
1239
|
+
function adjustDecimalPlace(x2, magnitude) {
|
|
1240
|
+
return magnitude < 0 ? x2 * Math.pow(10, -magnitude) : x2 / Math.pow(10, magnitude);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
exports.ToRawPrecision = ToRawPrecision;
|
|
285
1244
|
}
|
|
286
|
-
|
|
287
|
-
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
1248
|
+
var require_ToRawFixed = __commonJS({
|
|
1249
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ToRawFixed.js": function(exports) {
|
|
1250
|
+
"use strict";
|
|
1251
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1252
|
+
exports.ToRawFixed = void 0;
|
|
1253
|
+
var utils_1 = require_utils();
|
|
1254
|
+
function ToRawFixed(x, minFraction, maxFraction) {
|
|
1255
|
+
var f = maxFraction;
|
|
1256
|
+
var n = Math.round(x * Math.pow(10, f));
|
|
1257
|
+
var xFinal = n / Math.pow(10, f);
|
|
1258
|
+
var m;
|
|
1259
|
+
if (n < 1e21) {
|
|
1260
|
+
m = n.toString();
|
|
1261
|
+
} else {
|
|
1262
|
+
m = n.toString();
|
|
1263
|
+
var _a = m.split("e"), mantissa = _a[0], exponent = _a[1];
|
|
1264
|
+
m = mantissa.replace(".", "");
|
|
1265
|
+
m = m + (0, utils_1.repeat)("0", Math.max(+exponent - m.length + 1, 0));
|
|
1266
|
+
}
|
|
1267
|
+
var int;
|
|
1268
|
+
if (f !== 0) {
|
|
1269
|
+
var k = m.length;
|
|
1270
|
+
if (k <= f) {
|
|
1271
|
+
var z = (0, utils_1.repeat)("0", f + 1 - k);
|
|
1272
|
+
m = z + m;
|
|
1273
|
+
k = f + 1;
|
|
1274
|
+
}
|
|
1275
|
+
var a = m.slice(0, k - f);
|
|
1276
|
+
var b = m.slice(k - f);
|
|
1277
|
+
m = "".concat(a, ".").concat(b);
|
|
1278
|
+
int = a.length;
|
|
1279
|
+
} else {
|
|
1280
|
+
int = m.length;
|
|
1281
|
+
}
|
|
1282
|
+
var cut = maxFraction - minFraction;
|
|
1283
|
+
while (cut > 0 && m[m.length - 1] === "0") {
|
|
1284
|
+
m = m.slice(0, -1);
|
|
1285
|
+
cut--;
|
|
1286
|
+
}
|
|
1287
|
+
if (m[m.length - 1] === ".") {
|
|
1288
|
+
m = m.slice(0, -1);
|
|
1289
|
+
}
|
|
1290
|
+
return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
|
|
1291
|
+
}
|
|
1292
|
+
exports.ToRawFixed = ToRawFixed;
|
|
288
1293
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
1294
|
+
});
|
|
1295
|
+
|
|
1296
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
1297
|
+
var require_FormatNumericToString = __commonJS({
|
|
1298
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/FormatNumericToString.js": function(exports) {
|
|
1299
|
+
"use strict";
|
|
1300
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1301
|
+
exports.FormatNumericToString = void 0;
|
|
1302
|
+
var _262_1 = require__();
|
|
1303
|
+
var ToRawPrecision_1 = require_ToRawPrecision();
|
|
1304
|
+
var utils_1 = require_utils();
|
|
1305
|
+
var ToRawFixed_1 = require_ToRawFixed();
|
|
1306
|
+
function FormatNumericToString(intlObject, x) {
|
|
1307
|
+
var isNegative = x < 0 || (0, _262_1.SameValue)(x, -0);
|
|
1308
|
+
if (isNegative) {
|
|
1309
|
+
x = -x;
|
|
1310
|
+
}
|
|
1311
|
+
var result;
|
|
1312
|
+
var rourndingType = intlObject.roundingType;
|
|
1313
|
+
switch (rourndingType) {
|
|
1314
|
+
case "significantDigits":
|
|
1315
|
+
result = (0, ToRawPrecision_1.ToRawPrecision)(x, intlObject.minimumSignificantDigits, intlObject.maximumSignificantDigits);
|
|
1316
|
+
break;
|
|
1317
|
+
case "fractionDigits":
|
|
1318
|
+
result = (0, ToRawFixed_1.ToRawFixed)(x, intlObject.minimumFractionDigits, intlObject.maximumFractionDigits);
|
|
1319
|
+
break;
|
|
1320
|
+
default:
|
|
1321
|
+
result = (0, ToRawPrecision_1.ToRawPrecision)(x, 1, 2);
|
|
1322
|
+
if (result.integerDigitsCount > 1) {
|
|
1323
|
+
result = (0, ToRawFixed_1.ToRawFixed)(x, 0, 0);
|
|
1324
|
+
}
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
x = result.roundedNumber;
|
|
1328
|
+
var string = result.formattedString;
|
|
1329
|
+
var int = result.integerDigitsCount;
|
|
1330
|
+
var minInteger = intlObject.minimumIntegerDigits;
|
|
1331
|
+
if (int < minInteger) {
|
|
1332
|
+
var forwardZeros = (0, utils_1.repeat)("0", minInteger - int);
|
|
1333
|
+
string = forwardZeros + string;
|
|
1334
|
+
}
|
|
1335
|
+
if (isNegative) {
|
|
1336
|
+
x = -x;
|
|
1337
|
+
}
|
|
1338
|
+
return { roundedNumber: x, formattedString: string };
|
|
1339
|
+
}
|
|
1340
|
+
exports.FormatNumericToString = FormatNumericToString;
|
|
292
1341
|
}
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
function msFromTime(t) {
|
|
296
|
-
return mod(t, MS_PER_SECOND);
|
|
297
|
-
}
|
|
1342
|
+
});
|
|
298
1343
|
|
|
299
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
1344
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ComputeExponent.js
|
|
1345
|
+
var require_ComputeExponent = __commonJS({
|
|
1346
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/ComputeExponent.js": function(exports) {
|
|
1347
|
+
"use strict";
|
|
1348
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1349
|
+
exports.ComputeExponent = void 0;
|
|
1350
|
+
var utils_1 = require_utils();
|
|
1351
|
+
var ComputeExponentForMagnitude_1 = require_ComputeExponentForMagnitude();
|
|
1352
|
+
var FormatNumericToString_1 = require_FormatNumericToString();
|
|
1353
|
+
function ComputeExponent(numberFormat, x, _a) {
|
|
1354
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
1355
|
+
if (x === 0) {
|
|
1356
|
+
return [0, 0];
|
|
1357
|
+
}
|
|
1358
|
+
if (x < 0) {
|
|
1359
|
+
x = -x;
|
|
1360
|
+
}
|
|
1361
|
+
var magnitude = (0, utils_1.getMagnitude)(x);
|
|
1362
|
+
var exponent = (0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(numberFormat, magnitude, {
|
|
1363
|
+
getInternalSlots: getInternalSlots2
|
|
1364
|
+
});
|
|
1365
|
+
x = exponent < 0 ? x * Math.pow(10, -exponent) : x / Math.pow(10, exponent);
|
|
1366
|
+
var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(getInternalSlots2(numberFormat), x);
|
|
1367
|
+
if (formatNumberResult.roundedNumber === 0) {
|
|
1368
|
+
return [exponent, magnitude];
|
|
1369
|
+
}
|
|
1370
|
+
var newMagnitude = (0, utils_1.getMagnitude)(formatNumberResult.roundedNumber);
|
|
1371
|
+
if (newMagnitude === magnitude - exponent) {
|
|
1372
|
+
return [exponent, magnitude];
|
|
1373
|
+
}
|
|
1374
|
+
return [
|
|
1375
|
+
(0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(numberFormat, magnitude + 1, {
|
|
1376
|
+
getInternalSlots: getInternalSlots2
|
|
1377
|
+
}),
|
|
1378
|
+
magnitude + 1
|
|
1379
|
+
];
|
|
305
1380
|
}
|
|
306
|
-
|
|
1381
|
+
exports.ComputeExponent = ComputeExponent;
|
|
307
1382
|
}
|
|
308
|
-
|
|
309
|
-
}
|
|
1383
|
+
});
|
|
310
1384
|
|
|
311
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
1385
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/CurrencyDigits.js
|
|
1386
|
+
var require_CurrencyDigits = __commonJS({
|
|
1387
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/CurrencyDigits.js": function(exports) {
|
|
1388
|
+
"use strict";
|
|
1389
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1390
|
+
exports.CurrencyDigits = void 0;
|
|
1391
|
+
var _262_1 = require__();
|
|
1392
|
+
function CurrencyDigits(c, _a) {
|
|
1393
|
+
var currencyDigitsData = _a.currencyDigitsData;
|
|
1394
|
+
return (0, _262_1.HasOwnProperty)(currencyDigitsData, c) ? currencyDigitsData[c] : 2;
|
|
1395
|
+
}
|
|
1396
|
+
exports.CurrencyDigits = CurrencyDigits;
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/digit-mapping.generated.js
|
|
1401
|
+
var require_digit_mapping_generated = __commonJS({
|
|
1402
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/digit-mapping.generated.js": function(exports) {
|
|
1403
|
+
"use strict";
|
|
1404
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1405
|
+
exports.digitMapping = void 0;
|
|
1406
|
+
exports.digitMapping = { "adlm": ["\uD83A\uDD50", "\uD83A\uDD51", "\uD83A\uDD52", "\uD83A\uDD53", "\uD83A\uDD54", "\uD83A\uDD55", "\uD83A\uDD56", "\uD83A\uDD57", "\uD83A\uDD58", "\uD83A\uDD59"], "ahom": ["\uD805\uDF30", "\uD805\uDF31", "\uD805\uDF32", "\uD805\uDF33", "\uD805\uDF34", "\uD805\uDF35", "\uD805\uDF36", "\uD805\uDF37", "\uD805\uDF38", "\uD805\uDF39"], "arab": ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"], "arabext": ["\u06F0", "\u06F1", "\u06F2", "\u06F3", "\u06F4", "\u06F5", "\u06F6", "\u06F7", "\u06F8", "\u06F9"], "bali": ["\u1B50", "\u1B51", "\u1B52", "\u1B53", "\u1B54", "\u1B55", "\u1B56", "\u1B57", "\u1B58", "\u1B59"], "beng": ["\u09E6", "\u09E7", "\u09E8", "\u09E9", "\u09EA", "\u09EB", "\u09EC", "\u09ED", "\u09EE", "\u09EF"], "bhks": ["\uD807\uDC50", "\uD807\uDC51", "\uD807\uDC52", "\uD807\uDC53", "\uD807\uDC54", "\uD807\uDC55", "\uD807\uDC56", "\uD807\uDC57", "\uD807\uDC58", "\uD807\uDC59"], "brah": ["\uD804\uDC66", "\uD804\uDC67", "\uD804\uDC68", "\uD804\uDC69", "\uD804\uDC6A", "\uD804\uDC6B", "\uD804\uDC6C", "\uD804\uDC6D", "\uD804\uDC6E", "\uD804\uDC6F"], "cakm": ["\uD804\uDD36", "\uD804\uDD37", "\uD804\uDD38", "\uD804\uDD39", "\uD804\uDD3A", "\uD804\uDD3B", "\uD804\uDD3C", "\uD804\uDD3D", "\uD804\uDD3E", "\uD804\uDD3F"], "cham": ["\uAA50", "\uAA51", "\uAA52", "\uAA53", "\uAA54", "\uAA55", "\uAA56", "\uAA57", "\uAA58", "\uAA59"], "deva": ["\u0966", "\u0967", "\u0968", "\u0969", "\u096A", "\u096B", "\u096C", "\u096D", "\u096E", "\u096F"], "diak": ["\uD806\uDD50", "\uD806\uDD51", "\uD806\uDD52", "\uD806\uDD53", "\uD806\uDD54", "\uD806\uDD55", "\uD806\uDD56", "\uD806\uDD57", "\uD806\uDD58", "\uD806\uDD59"], "fullwide": ["\uFF10", "\uFF11", "\uFF12", "\uFF13", "\uFF14", "\uFF15", "\uFF16", "\uFF17", "\uFF18", "\uFF19"], "gong": ["\uD807\uDDA0", "\uD807\uDDA1", "\uD807\uDDA2", "\uD807\uDDA3", "\uD807\uDDA4", "\uD807\uDDA5", "\uD807\uDDA6", "\uD807\uDDA7", "\uD807\uDDA8", "\uD807\uDDA9"], "gonm": ["\uD807\uDD50", "\uD807\uDD51", "\uD807\uDD52", "\uD807\uDD53", "\uD807\uDD54", "\uD807\uDD55", "\uD807\uDD56", "\uD807\uDD57", "\uD807\uDD58", "\uD807\uDD59"], "gujr": ["\u0AE6", "\u0AE7", "\u0AE8", "\u0AE9", "\u0AEA", "\u0AEB", "\u0AEC", "\u0AED", "\u0AEE", "\u0AEF"], "guru": ["\u0A66", "\u0A67", "\u0A68", "\u0A69", "\u0A6A", "\u0A6B", "\u0A6C", "\u0A6D", "\u0A6E", "\u0A6F"], "hanidec": ["\u3007", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D"], "hmng": ["\uD81A\uDF50", "\uD81A\uDF51", "\uD81A\uDF52", "\uD81A\uDF53", "\uD81A\uDF54", "\uD81A\uDF55", "\uD81A\uDF56", "\uD81A\uDF57", "\uD81A\uDF58", "\uD81A\uDF59"], "hmnp": ["\uD838\uDD40", "\uD838\uDD41", "\uD838\uDD42", "\uD838\uDD43", "\uD838\uDD44", "\uD838\uDD45", "\uD838\uDD46", "\uD838\uDD47", "\uD838\uDD48", "\uD838\uDD49"], "java": ["\uA9D0", "\uA9D1", "\uA9D2", "\uA9D3", "\uA9D4", "\uA9D5", "\uA9D6", "\uA9D7", "\uA9D8", "\uA9D9"], "kali": ["\uA900", "\uA901", "\uA902", "\uA903", "\uA904", "\uA905", "\uA906", "\uA907", "\uA908", "\uA909"], "khmr": ["\u17E0", "\u17E1", "\u17E2", "\u17E3", "\u17E4", "\u17E5", "\u17E6", "\u17E7", "\u17E8", "\u17E9"], "knda": ["\u0CE6", "\u0CE7", "\u0CE8", "\u0CE9", "\u0CEA", "\u0CEB", "\u0CEC", "\u0CED", "\u0CEE", "\u0CEF"], "lana": ["\u1A80", "\u1A81", "\u1A82", "\u1A83", "\u1A84", "\u1A85", "\u1A86", "\u1A87", "\u1A88", "\u1A89"], "lanatham": ["\u1A90", "\u1A91", "\u1A92", "\u1A93", "\u1A94", "\u1A95", "\u1A96", "\u1A97", "\u1A98", "\u1A99"], "laoo": ["\u0ED0", "\u0ED1", "\u0ED2", "\u0ED3", "\u0ED4", "\u0ED5", "\u0ED6", "\u0ED7", "\u0ED8", "\u0ED9"], "lepc": ["\u1A90", "\u1A91", "\u1A92", "\u1A93", "\u1A94", "\u1A95", "\u1A96", "\u1A97", "\u1A98", "\u1A99"], "limb": ["\u1946", "\u1947", "\u1948", "\u1949", "\u194A", "\u194B", "\u194C", "\u194D", "\u194E", "\u194F"], "mathbold": ["\uD835\uDFCE", "\uD835\uDFCF", "\uD835\uDFD0", "\uD835\uDFD1", "\uD835\uDFD2", "\uD835\uDFD3", "\uD835\uDFD4", "\uD835\uDFD5", "\uD835\uDFD6", "\uD835\uDFD7"], "mathdbl": ["\uD835\uDFD8", "\uD835\uDFD9", "\uD835\uDFDA", "\uD835\uDFDB", "\uD835\uDFDC", "\uD835\uDFDD", "\uD835\uDFDE", "\uD835\uDFDF", "\uD835\uDFE0", "\uD835\uDFE1"], "mathmono": ["\uD835\uDFF6", "\uD835\uDFF7", "\uD835\uDFF8", "\uD835\uDFF9", "\uD835\uDFFA", "\uD835\uDFFB", "\uD835\uDFFC", "\uD835\uDFFD", "\uD835\uDFFE", "\uD835\uDFFF"], "mathsanb": ["\uD835\uDFEC", "\uD835\uDFED", "\uD835\uDFEE", "\uD835\uDFEF", "\uD835\uDFF0", "\uD835\uDFF1", "\uD835\uDFF2", "\uD835\uDFF3", "\uD835\uDFF4", "\uD835\uDFF5"], "mathsans": ["\uD835\uDFE2", "\uD835\uDFE3", "\uD835\uDFE4", "\uD835\uDFE5", "\uD835\uDFE6", "\uD835\uDFE7", "\uD835\uDFE8", "\uD835\uDFE9", "\uD835\uDFEA", "\uD835\uDFEB"], "mlym": ["\u0D66", "\u0D67", "\u0D68", "\u0D69", "\u0D6A", "\u0D6B", "\u0D6C", "\u0D6D", "\u0D6E", "\u0D6F"], "modi": ["\uD805\uDE50", "\uD805\uDE51", "\uD805\uDE52", "\uD805\uDE53", "\uD805\uDE54", "\uD805\uDE55", "\uD805\uDE56", "\uD805\uDE57", "\uD805\uDE58", "\uD805\uDE59"], "mong": ["\u1810", "\u1811", "\u1812", "\u1813", "\u1814", "\u1815", "\u1816", "\u1817", "\u1818", "\u1819"], "mroo": ["\uD81A\uDE60", "\uD81A\uDE61", "\uD81A\uDE62", "\uD81A\uDE63", "\uD81A\uDE64", "\uD81A\uDE65", "\uD81A\uDE66", "\uD81A\uDE67", "\uD81A\uDE68", "\uD81A\uDE69"], "mtei": ["\uABF0", "\uABF1", "\uABF2", "\uABF3", "\uABF4", "\uABF5", "\uABF6", "\uABF7", "\uABF8", "\uABF9"], "mymr": ["\u1040", "\u1041", "\u1042", "\u1043", "\u1044", "\u1045", "\u1046", "\u1047", "\u1048", "\u1049"], "mymrshan": ["\u1090", "\u1091", "\u1092", "\u1093", "\u1094", "\u1095", "\u1096", "\u1097", "\u1098", "\u1099"], "mymrtlng": ["\uA9F0", "\uA9F1", "\uA9F2", "\uA9F3", "\uA9F4", "\uA9F5", "\uA9F6", "\uA9F7", "\uA9F8", "\uA9F9"], "newa": ["\uD805\uDC50", "\uD805\uDC51", "\uD805\uDC52", "\uD805\uDC53", "\uD805\uDC54", "\uD805\uDC55", "\uD805\uDC56", "\uD805\uDC57", "\uD805\uDC58", "\uD805\uDC59"], "nkoo": ["\u07C0", "\u07C1", "\u07C2", "\u07C3", "\u07C4", "\u07C5", "\u07C6", "\u07C7", "\u07C8", "\u07C9"], "olck": ["\u1C50", "\u1C51", "\u1C52", "\u1C53", "\u1C54", "\u1C55", "\u1C56", "\u1C57", "\u1C58", "\u1C59"], "orya": ["\u0B66", "\u0B67", "\u0B68", "\u0B69", "\u0B6A", "\u0B6B", "\u0B6C", "\u0B6D", "\u0B6E", "\u0B6F"], "osma": ["\uD801\uDCA0", "\uD801\uDCA1", "\uD801\uDCA2", "\uD801\uDCA3", "\uD801\uDCA4", "\uD801\uDCA5", "\uD801\uDCA6", "\uD801\uDCA7", "\uD801\uDCA8", "\uD801\uDCA9"], "rohg": ["\uD803\uDD30", "\uD803\uDD31", "\uD803\uDD32", "\uD803\uDD33", "\uD803\uDD34", "\uD803\uDD35", "\uD803\uDD36", "\uD803\uDD37", "\uD803\uDD38", "\uD803\uDD39"], "saur": ["\uA8D0", "\uA8D1", "\uA8D2", "\uA8D3", "\uA8D4", "\uA8D5", "\uA8D6", "\uA8D7", "\uA8D8", "\uA8D9"], "segment": ["\uD83E\uDFF0", "\uD83E\uDFF1", "\uD83E\uDFF2", "\uD83E\uDFF3", "\uD83E\uDFF4", "\uD83E\uDFF5", "\uD83E\uDFF6", "\uD83E\uDFF7", "\uD83E\uDFF8", "\uD83E\uDFF9"], "shrd": ["\uD804\uDDD0", "\uD804\uDDD1", "\uD804\uDDD2", "\uD804\uDDD3", "\uD804\uDDD4", "\uD804\uDDD5", "\uD804\uDDD6", "\uD804\uDDD7", "\uD804\uDDD8", "\uD804\uDDD9"], "sind": ["\uD804\uDEF0", "\uD804\uDEF1", "\uD804\uDEF2", "\uD804\uDEF3", "\uD804\uDEF4", "\uD804\uDEF5", "\uD804\uDEF6", "\uD804\uDEF7", "\uD804\uDEF8", "\uD804\uDEF9"], "sinh": ["\u0DE6", "\u0DE7", "\u0DE8", "\u0DE9", "\u0DEA", "\u0DEB", "\u0DEC", "\u0DED", "\u0DEE", "\u0DEF"], "sora": ["\uD804\uDCF0", "\uD804\uDCF1", "\uD804\uDCF2", "\uD804\uDCF3", "\uD804\uDCF4", "\uD804\uDCF5", "\uD804\uDCF6", "\uD804\uDCF7", "\uD804\uDCF8", "\uD804\uDCF9"], "sund": ["\u1BB0", "\u1BB1", "\u1BB2", "\u1BB3", "\u1BB4", "\u1BB5", "\u1BB6", "\u1BB7", "\u1BB8", "\u1BB9"], "takr": ["\uD805\uDEC0", "\uD805\uDEC1", "\uD805\uDEC2", "\uD805\uDEC3", "\uD805\uDEC4", "\uD805\uDEC5", "\uD805\uDEC6", "\uD805\uDEC7", "\uD805\uDEC8", "\uD805\uDEC9"], "talu": ["\u19D0", "\u19D1", "\u19D2", "\u19D3", "\u19D4", "\u19D5", "\u19D6", "\u19D7", "\u19D8", "\u19D9"], "tamldec": ["\u0BE6", "\u0BE7", "\u0BE8", "\u0BE9", "\u0BEA", "\u0BEB", "\u0BEC", "\u0BED", "\u0BEE", "\u0BEF"], "telu": ["\u0C66", "\u0C67", "\u0C68", "\u0C69", "\u0C6A", "\u0C6B", "\u0C6C", "\u0C6D", "\u0C6E", "\u0C6F"], "thai": ["\u0E50", "\u0E51", "\u0E52", "\u0E53", "\u0E54", "\u0E55", "\u0E56", "\u0E57", "\u0E58", "\u0E59"], "tibt": ["\u0F20", "\u0F21", "\u0F22", "\u0F23", "\u0F24", "\u0F25", "\u0F26", "\u0F27", "\u0F28", "\u0F29"], "tirh": ["\uD805\uDCD0", "\uD805\uDCD1", "\uD805\uDCD2", "\uD805\uDCD3", "\uD805\uDCD4", "\uD805\uDCD5", "\uD805\uDCD6", "\uD805\uDCD7", "\uD805\uDCD8", "\uD805\uDCD9"], "vaii": ["\u1620", "\u1621", "\u1622", "\u1623", "\u1624", "\u1625", "\u1626", "\u1627", "\u1628", "\u1629"], "wara": ["\uD806\uDCE0", "\uD806\uDCE1", "\uD806\uDCE2", "\uD806\uDCE3", "\uD806\uDCE4", "\uD806\uDCE5", "\uD806\uDCE6", "\uD806\uDCE7", "\uD806\uDCE8", "\uD806\uDCE9"], "wcho": ["\uD838\uDEF0", "\uD838\uDEF1", "\uD838\uDEF2", "\uD838\uDEF3", "\uD838\uDEF4", "\uD838\uDEF5", "\uD838\uDEF6", "\uD838\uDEF7", "\uD838\uDEF8", "\uD838\uDEF9"] };
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
316
1409
|
|
|
317
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
1410
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/regex.generated.js
|
|
1411
|
+
var require_regex_generated = __commonJS({
|
|
1412
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/regex.generated.js": function(exports) {
|
|
1413
|
+
"use strict";
|
|
1414
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1415
|
+
exports.S_UNICODE_REGEX = void 0;
|
|
1416
|
+
exports.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]/;
|
|
321
1417
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
1418
|
+
});
|
|
1419
|
+
|
|
1420
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/format_to_parts.js
|
|
1421
|
+
var require_format_to_parts = __commonJS({
|
|
1422
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/format_to_parts.js": function(exports) {
|
|
1423
|
+
"use strict";
|
|
1424
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1425
|
+
var ToRawFixed_1 = require_ToRawFixed();
|
|
1426
|
+
var digit_mapping_generated_1 = require_digit_mapping_generated();
|
|
1427
|
+
var regex_generated_1 = require_regex_generated();
|
|
1428
|
+
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(regex_generated_1.S_UNICODE_REGEX.source));
|
|
1429
|
+
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(regex_generated_1.S_UNICODE_REGEX.source, "$"));
|
|
1430
|
+
var CLDR_NUMBER_PATTERN = /[#0](?:[\.,][#0]+)*/g;
|
|
1431
|
+
function formatToParts2(numberResult, data, pl, options) {
|
|
1432
|
+
var sign = numberResult.sign, exponent = numberResult.exponent, magnitude = numberResult.magnitude;
|
|
1433
|
+
var notation = options.notation, style = options.style, numberingSystem = options.numberingSystem;
|
|
1434
|
+
var defaultNumberingSystem = data.numbers.nu[0];
|
|
1435
|
+
var compactNumberPattern = null;
|
|
1436
|
+
if (notation === "compact" && magnitude) {
|
|
1437
|
+
compactNumberPattern = getCompactDisplayPattern(numberResult, pl, data, style, options.compactDisplay, options.currencyDisplay, numberingSystem);
|
|
1438
|
+
}
|
|
1439
|
+
var nonNameCurrencyPart;
|
|
1440
|
+
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
1441
|
+
var byCurrencyDisplay = data.currencies[options.currency];
|
|
1442
|
+
if (byCurrencyDisplay) {
|
|
1443
|
+
switch (options.currencyDisplay) {
|
|
1444
|
+
case "code":
|
|
1445
|
+
nonNameCurrencyPart = options.currency;
|
|
1446
|
+
break;
|
|
1447
|
+
case "symbol":
|
|
1448
|
+
nonNameCurrencyPart = byCurrencyDisplay.symbol;
|
|
1449
|
+
break;
|
|
1450
|
+
default:
|
|
1451
|
+
nonNameCurrencyPart = byCurrencyDisplay.narrow;
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
} else {
|
|
1455
|
+
nonNameCurrencyPart = options.currency;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
var numberPattern;
|
|
1459
|
+
if (!compactNumberPattern) {
|
|
1460
|
+
if (style === "decimal" || style === "unit" || style === "currency" && options.currencyDisplay === "name") {
|
|
1461
|
+
var decimalData = data.numbers.decimal[numberingSystem] || data.numbers.decimal[defaultNumberingSystem];
|
|
1462
|
+
numberPattern = getPatternForSign(decimalData.standard, sign);
|
|
1463
|
+
} else if (style === "currency") {
|
|
1464
|
+
var currencyData = data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem];
|
|
1465
|
+
numberPattern = getPatternForSign(currencyData[options.currencySign], sign);
|
|
1466
|
+
} else {
|
|
1467
|
+
var percentPattern = data.numbers.percent[numberingSystem] || data.numbers.percent[defaultNumberingSystem];
|
|
1468
|
+
numberPattern = getPatternForSign(percentPattern, sign);
|
|
1469
|
+
}
|
|
1470
|
+
} else {
|
|
1471
|
+
numberPattern = compactNumberPattern;
|
|
1472
|
+
}
|
|
1473
|
+
var decimalNumberPattern = CLDR_NUMBER_PATTERN.exec(numberPattern)[0];
|
|
1474
|
+
numberPattern = numberPattern.replace(CLDR_NUMBER_PATTERN, "{0}").replace(/'(.)'/g, "$1");
|
|
1475
|
+
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
1476
|
+
var currencyData = data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem];
|
|
1477
|
+
var afterCurrency = currencyData.currencySpacing.afterInsertBetween;
|
|
1478
|
+
if (afterCurrency && !S_DOLLAR_UNICODE_REGEX.test(nonNameCurrencyPart)) {
|
|
1479
|
+
numberPattern = numberPattern.replace("\xA4{0}", "\xA4".concat(afterCurrency, "{0}"));
|
|
1480
|
+
}
|
|
1481
|
+
var beforeCurrency = currencyData.currencySpacing.beforeInsertBetween;
|
|
1482
|
+
if (beforeCurrency && !CARET_S_UNICODE_REGEX.test(nonNameCurrencyPart)) {
|
|
1483
|
+
numberPattern = numberPattern.replace("{0}\xA4", "{0}".concat(beforeCurrency, "\xA4"));
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
var numberPatternParts = numberPattern.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g);
|
|
1487
|
+
var numberParts = [];
|
|
1488
|
+
var symbols = data.numbers.symbols[numberingSystem] || data.numbers.symbols[defaultNumberingSystem];
|
|
1489
|
+
for (var _i = 0, numberPatternParts_1 = numberPatternParts; _i < numberPatternParts_1.length; _i++) {
|
|
1490
|
+
var part = numberPatternParts_1[_i];
|
|
1491
|
+
if (!part) {
|
|
1492
|
+
continue;
|
|
1493
|
+
}
|
|
1494
|
+
switch (part) {
|
|
1495
|
+
case "{0}": {
|
|
1496
|
+
numberParts.push.apply(numberParts, paritionNumberIntoParts(symbols, numberResult, notation, exponent, numberingSystem, !compactNumberPattern && options.useGrouping, decimalNumberPattern));
|
|
1497
|
+
break;
|
|
1498
|
+
}
|
|
1499
|
+
case "-":
|
|
1500
|
+
numberParts.push({ type: "minusSign", value: symbols.minusSign });
|
|
1501
|
+
break;
|
|
1502
|
+
case "+":
|
|
1503
|
+
numberParts.push({ type: "plusSign", value: symbols.plusSign });
|
|
1504
|
+
break;
|
|
1505
|
+
case "%":
|
|
1506
|
+
numberParts.push({ type: "percentSign", value: symbols.percentSign });
|
|
1507
|
+
break;
|
|
1508
|
+
case "\xA4":
|
|
1509
|
+
numberParts.push({ type: "currency", value: nonNameCurrencyPart });
|
|
1510
|
+
break;
|
|
1511
|
+
default:
|
|
1512
|
+
if (/^\{c:/.test(part)) {
|
|
1513
|
+
numberParts.push({
|
|
1514
|
+
type: "compact",
|
|
1515
|
+
value: part.substring(3, part.length - 1)
|
|
1516
|
+
});
|
|
1517
|
+
} else {
|
|
1518
|
+
numberParts.push({ type: "literal", value: part });
|
|
1519
|
+
}
|
|
1520
|
+
break;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
switch (style) {
|
|
1524
|
+
case "currency": {
|
|
1525
|
+
if (options.currencyDisplay === "name") {
|
|
1526
|
+
var unitPattern = (data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem]).unitPattern;
|
|
1527
|
+
var unitName = void 0;
|
|
1528
|
+
var currencyNameData = data.currencies[options.currency];
|
|
1529
|
+
if (currencyNameData) {
|
|
1530
|
+
unitName = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), currencyNameData.displayName);
|
|
1531
|
+
} else {
|
|
1532
|
+
unitName = options.currency;
|
|
1533
|
+
}
|
|
1534
|
+
var unitPatternParts = unitPattern.split(/(\{[01]\})/g);
|
|
1535
|
+
var result = [];
|
|
1536
|
+
for (var _a = 0, unitPatternParts_1 = unitPatternParts; _a < unitPatternParts_1.length; _a++) {
|
|
1537
|
+
var part = unitPatternParts_1[_a];
|
|
1538
|
+
switch (part) {
|
|
1539
|
+
case "{0}":
|
|
1540
|
+
result.push.apply(result, numberParts);
|
|
1541
|
+
break;
|
|
1542
|
+
case "{1}":
|
|
1543
|
+
result.push({ type: "currency", value: unitName });
|
|
1544
|
+
break;
|
|
1545
|
+
default:
|
|
1546
|
+
if (part) {
|
|
1547
|
+
result.push({ type: "literal", value: part });
|
|
1548
|
+
}
|
|
1549
|
+
break;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
return result;
|
|
1553
|
+
} else {
|
|
1554
|
+
return numberParts;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
case "unit": {
|
|
1558
|
+
var unit = options.unit, unitDisplay = options.unitDisplay;
|
|
1559
|
+
var unitData = data.units.simple[unit];
|
|
1560
|
+
var unitPattern = void 0;
|
|
1561
|
+
if (unitData) {
|
|
1562
|
+
unitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data.units.simple[unit][unitDisplay]);
|
|
1563
|
+
} else {
|
|
1564
|
+
var _b = unit.split("-per-"), numeratorUnit = _b[0], denominatorUnit = _b[1];
|
|
1565
|
+
unitData = data.units.simple[numeratorUnit];
|
|
1566
|
+
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data.units.simple[numeratorUnit][unitDisplay]);
|
|
1567
|
+
var perUnitPattern = data.units.simple[denominatorUnit].perUnit[unitDisplay];
|
|
1568
|
+
if (perUnitPattern) {
|
|
1569
|
+
unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
|
|
1570
|
+
} else {
|
|
1571
|
+
var perPattern = data.units.compound.per[unitDisplay];
|
|
1572
|
+
var denominatorPattern = selectPlural(pl, 1, data.units.simple[denominatorUnit][unitDisplay]);
|
|
1573
|
+
unitPattern = unitPattern = perPattern.replace("{0}", numeratorUnitPattern).replace("{1}", denominatorPattern.replace("{0}", ""));
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
var result = [];
|
|
1577
|
+
for (var _c = 0, _d = unitPattern.split(/(\s*\{0\}\s*)/); _c < _d.length; _c++) {
|
|
1578
|
+
var part = _d[_c];
|
|
1579
|
+
var interpolateMatch = /^(\s*)\{0\}(\s*)$/.exec(part);
|
|
1580
|
+
if (interpolateMatch) {
|
|
1581
|
+
if (interpolateMatch[1]) {
|
|
1582
|
+
result.push({ type: "literal", value: interpolateMatch[1] });
|
|
1583
|
+
}
|
|
1584
|
+
result.push.apply(result, numberParts);
|
|
1585
|
+
if (interpolateMatch[2]) {
|
|
1586
|
+
result.push({ type: "literal", value: interpolateMatch[2] });
|
|
1587
|
+
}
|
|
1588
|
+
} else if (part) {
|
|
1589
|
+
result.push({ type: "unit", value: part });
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
return result;
|
|
1593
|
+
}
|
|
1594
|
+
default:
|
|
1595
|
+
return numberParts;
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
exports.default = formatToParts2;
|
|
1599
|
+
function paritionNumberIntoParts(symbols, numberResult, notation, exponent, numberingSystem, useGrouping, decimalNumberPattern) {
|
|
1600
|
+
var result = [];
|
|
1601
|
+
var n = numberResult.formattedString, x = numberResult.roundedNumber;
|
|
1602
|
+
if (isNaN(x)) {
|
|
1603
|
+
return [{ type: "nan", value: n }];
|
|
1604
|
+
} else if (!isFinite(x)) {
|
|
1605
|
+
return [{ type: "infinity", value: n }];
|
|
1606
|
+
}
|
|
1607
|
+
var digitReplacementTable = digit_mapping_generated_1.digitMapping[numberingSystem];
|
|
1608
|
+
if (digitReplacementTable) {
|
|
1609
|
+
n = n.replace(/\d/g, function(digit) {
|
|
1610
|
+
return digitReplacementTable[+digit] || digit;
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
var decimalSepIndex = n.indexOf(".");
|
|
1614
|
+
var integer;
|
|
1615
|
+
var fraction;
|
|
1616
|
+
if (decimalSepIndex > 0) {
|
|
1617
|
+
integer = n.slice(0, decimalSepIndex);
|
|
1618
|
+
fraction = n.slice(decimalSepIndex + 1);
|
|
1619
|
+
} else {
|
|
1620
|
+
integer = n;
|
|
1621
|
+
}
|
|
1622
|
+
if (useGrouping && (notation !== "compact" || x >= 1e4)) {
|
|
1623
|
+
var groupSepSymbol = symbols.group;
|
|
1624
|
+
var groups = [];
|
|
1625
|
+
var integerNumberPattern = decimalNumberPattern.split(".")[0];
|
|
1626
|
+
var patternGroups = integerNumberPattern.split(",");
|
|
1627
|
+
var primaryGroupingSize = 3;
|
|
1628
|
+
var secondaryGroupingSize = 3;
|
|
1629
|
+
if (patternGroups.length > 1) {
|
|
1630
|
+
primaryGroupingSize = patternGroups[patternGroups.length - 1].length;
|
|
1631
|
+
}
|
|
1632
|
+
if (patternGroups.length > 2) {
|
|
1633
|
+
secondaryGroupingSize = patternGroups[patternGroups.length - 2].length;
|
|
1634
|
+
}
|
|
1635
|
+
var i = integer.length - primaryGroupingSize;
|
|
1636
|
+
if (i > 0) {
|
|
1637
|
+
groups.push(integer.slice(i, i + primaryGroupingSize));
|
|
1638
|
+
for (i -= secondaryGroupingSize; i > 0; i -= secondaryGroupingSize) {
|
|
1639
|
+
groups.push(integer.slice(i, i + secondaryGroupingSize));
|
|
1640
|
+
}
|
|
1641
|
+
groups.push(integer.slice(0, i + secondaryGroupingSize));
|
|
1642
|
+
} else {
|
|
1643
|
+
groups.push(integer);
|
|
1644
|
+
}
|
|
1645
|
+
while (groups.length > 0) {
|
|
1646
|
+
var integerGroup = groups.pop();
|
|
1647
|
+
result.push({ type: "integer", value: integerGroup });
|
|
1648
|
+
if (groups.length > 0) {
|
|
1649
|
+
result.push({ type: "group", value: groupSepSymbol });
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
} else {
|
|
1653
|
+
result.push({ type: "integer", value: integer });
|
|
1654
|
+
}
|
|
1655
|
+
if (fraction !== void 0) {
|
|
1656
|
+
result.push({ type: "decimal", value: symbols.decimal }, { type: "fraction", value: fraction });
|
|
1657
|
+
}
|
|
1658
|
+
if ((notation === "scientific" || notation === "engineering") && isFinite(x)) {
|
|
1659
|
+
result.push({ type: "exponentSeparator", value: symbols.exponential });
|
|
1660
|
+
if (exponent < 0) {
|
|
1661
|
+
result.push({ type: "exponentMinusSign", value: symbols.minusSign });
|
|
1662
|
+
exponent = -exponent;
|
|
1663
|
+
}
|
|
1664
|
+
var exponentResult = (0, ToRawFixed_1.ToRawFixed)(exponent, 0, 0);
|
|
1665
|
+
result.push({
|
|
1666
|
+
type: "exponentInteger",
|
|
1667
|
+
value: exponentResult.formattedString
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
return result;
|
|
326
1671
|
}
|
|
327
|
-
|
|
328
|
-
|
|
1672
|
+
function getPatternForSign(pattern, sign) {
|
|
1673
|
+
if (pattern.indexOf(";") < 0) {
|
|
1674
|
+
pattern = "".concat(pattern, ";-").concat(pattern);
|
|
1675
|
+
}
|
|
1676
|
+
var _a = pattern.split(";"), zeroPattern = _a[0], negativePattern = _a[1];
|
|
1677
|
+
switch (sign) {
|
|
1678
|
+
case 0:
|
|
1679
|
+
return zeroPattern;
|
|
1680
|
+
case -1:
|
|
1681
|
+
return negativePattern;
|
|
1682
|
+
default:
|
|
1683
|
+
return negativePattern.indexOf("-") >= 0 ? negativePattern.replace(/-/g, "+") : "+".concat(zeroPattern);
|
|
1684
|
+
}
|
|
329
1685
|
}
|
|
330
|
-
|
|
331
|
-
|
|
1686
|
+
function getCompactDisplayPattern(numberResult, pl, data, style, compactDisplay, currencyDisplay, numberingSystem) {
|
|
1687
|
+
var _a;
|
|
1688
|
+
var roundedNumber = numberResult.roundedNumber, sign = numberResult.sign, magnitude = numberResult.magnitude;
|
|
1689
|
+
var magnitudeKey = String(Math.pow(10, magnitude));
|
|
1690
|
+
var defaultNumberingSystem = data.numbers.nu[0];
|
|
1691
|
+
var pattern;
|
|
1692
|
+
if (style === "currency" && currencyDisplay !== "name") {
|
|
1693
|
+
var byNumberingSystem = data.numbers.currency;
|
|
1694
|
+
var currencyData = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
1695
|
+
var compactPluralRules = (_a = currencyData.short) === null || _a === void 0 ? void 0 : _a[magnitudeKey];
|
|
1696
|
+
if (!compactPluralRules) {
|
|
1697
|
+
return null;
|
|
1698
|
+
}
|
|
1699
|
+
pattern = selectPlural(pl, roundedNumber, compactPluralRules);
|
|
1700
|
+
} else {
|
|
1701
|
+
var byNumberingSystem = data.numbers.decimal;
|
|
1702
|
+
var byCompactDisplay = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
1703
|
+
var compactPlaralRule = byCompactDisplay[compactDisplay][magnitudeKey];
|
|
1704
|
+
if (!compactPlaralRule) {
|
|
1705
|
+
return null;
|
|
1706
|
+
}
|
|
1707
|
+
pattern = selectPlural(pl, roundedNumber, compactPlaralRule);
|
|
1708
|
+
}
|
|
1709
|
+
if (pattern === "0") {
|
|
1710
|
+
return null;
|
|
1711
|
+
}
|
|
1712
|
+
pattern = getPatternForSign(pattern, sign).replace(/([^\s;\-\+\d¤]+)/g, "{c:$1}").replace(/0+/, "0");
|
|
1713
|
+
return pattern;
|
|
332
1714
|
}
|
|
333
|
-
|
|
334
|
-
return
|
|
335
|
-
}).length) {
|
|
336
|
-
throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
|
1715
|
+
function selectPlural(pl, x, rules) {
|
|
1716
|
+
return rules[pl.select(x)] || rules.other;
|
|
337
1717
|
}
|
|
338
|
-
return value;
|
|
339
1718
|
}
|
|
340
|
-
|
|
341
|
-
}
|
|
1719
|
+
});
|
|
342
1720
|
|
|
343
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
1721
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/PartitionNumberPattern.js
|
|
1722
|
+
var require_PartitionNumberPattern = __commonJS({
|
|
1723
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/PartitionNumberPattern.js": function(exports) {
|
|
1724
|
+
"use strict";
|
|
1725
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1726
|
+
exports.PartitionNumberPattern = void 0;
|
|
1727
|
+
var tslib_1 = require_tslib();
|
|
1728
|
+
var FormatNumericToString_1 = require_FormatNumericToString();
|
|
1729
|
+
var _262_1 = require__();
|
|
1730
|
+
var ComputeExponent_1 = require_ComputeExponent();
|
|
1731
|
+
var format_to_parts_1 = (0, tslib_1.__importDefault)(require_format_to_parts());
|
|
1732
|
+
function PartitionNumberPattern(numberFormat, x, _a) {
|
|
1733
|
+
var _b;
|
|
1734
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
1735
|
+
var internalSlots = getInternalSlots2(numberFormat);
|
|
1736
|
+
var pl = internalSlots.pl, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
|
|
1737
|
+
var symbols = dataLocaleData.numbers.symbols[numberingSystem] || dataLocaleData.numbers.symbols[dataLocaleData.numbers.nu[0]];
|
|
1738
|
+
var magnitude = 0;
|
|
1739
|
+
var exponent = 0;
|
|
1740
|
+
var n;
|
|
1741
|
+
if (isNaN(x)) {
|
|
1742
|
+
n = symbols.nan;
|
|
1743
|
+
} else if (!isFinite(x)) {
|
|
1744
|
+
n = symbols.infinity;
|
|
1745
|
+
} else {
|
|
1746
|
+
if (internalSlots.style === "percent") {
|
|
1747
|
+
x *= 100;
|
|
1748
|
+
}
|
|
1749
|
+
;
|
|
1750
|
+
_b = (0, ComputeExponent_1.ComputeExponent)(numberFormat, x, {
|
|
1751
|
+
getInternalSlots: getInternalSlots2
|
|
1752
|
+
}), exponent = _b[0], magnitude = _b[1];
|
|
1753
|
+
x = exponent < 0 ? x * Math.pow(10, -exponent) : x / Math.pow(10, exponent);
|
|
1754
|
+
var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(internalSlots, x);
|
|
1755
|
+
n = formatNumberResult.formattedString;
|
|
1756
|
+
x = formatNumberResult.roundedNumber;
|
|
1757
|
+
}
|
|
1758
|
+
var sign;
|
|
1759
|
+
var signDisplay = internalSlots.signDisplay;
|
|
1760
|
+
switch (signDisplay) {
|
|
1761
|
+
case "never":
|
|
1762
|
+
sign = 0;
|
|
1763
|
+
break;
|
|
1764
|
+
case "auto":
|
|
1765
|
+
if ((0, _262_1.SameValue)(x, 0) || x > 0 || isNaN(x)) {
|
|
1766
|
+
sign = 0;
|
|
1767
|
+
} else {
|
|
1768
|
+
sign = -1;
|
|
1769
|
+
}
|
|
1770
|
+
break;
|
|
1771
|
+
case "always":
|
|
1772
|
+
if ((0, _262_1.SameValue)(x, 0) || x > 0 || isNaN(x)) {
|
|
1773
|
+
sign = 1;
|
|
1774
|
+
} else {
|
|
1775
|
+
sign = -1;
|
|
1776
|
+
}
|
|
1777
|
+
break;
|
|
1778
|
+
default:
|
|
1779
|
+
if (x === 0 || isNaN(x)) {
|
|
1780
|
+
sign = 0;
|
|
1781
|
+
} else if (x > 0) {
|
|
1782
|
+
sign = 1;
|
|
1783
|
+
} else {
|
|
1784
|
+
sign = -1;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return (0, format_to_parts_1.default)({ roundedNumber: x, formattedString: n, exponent: exponent, magnitude: magnitude, sign: sign }, internalSlots.dataLocaleData, pl, internalSlots);
|
|
1788
|
+
}
|
|
1789
|
+
exports.PartitionNumberPattern = PartitionNumberPattern;
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
360
1792
|
|
|
361
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
1793
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/FormatNumericToParts.js
|
|
1794
|
+
var require_FormatNumericToParts = __commonJS({
|
|
1795
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/FormatNumericToParts.js": function(exports) {
|
|
1796
|
+
"use strict";
|
|
1797
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1798
|
+
exports.FormatNumericToParts = void 0;
|
|
1799
|
+
var PartitionNumberPattern_1 = require_PartitionNumberPattern();
|
|
1800
|
+
var _262_1 = require__();
|
|
1801
|
+
function FormatNumericToParts(nf, x, implDetails) {
|
|
1802
|
+
var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(nf, x, implDetails);
|
|
1803
|
+
var result = (0, _262_1.ArrayCreate)(0);
|
|
1804
|
+
for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
|
|
1805
|
+
var part = parts_1[_i];
|
|
1806
|
+
result.push({
|
|
1807
|
+
type: part.type,
|
|
1808
|
+
value: part.value
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
return result;
|
|
1812
|
+
}
|
|
1813
|
+
exports.FormatNumericToParts = FormatNumericToParts;
|
|
374
1814
|
}
|
|
375
|
-
|
|
376
|
-
|
|
1815
|
+
});
|
|
1816
|
+
|
|
1817
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
1818
|
+
var require_CanonicalizeLocaleList2 = __commonJS({
|
|
1819
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js": function(exports) {
|
|
1820
|
+
"use strict";
|
|
1821
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1822
|
+
exports.CanonicalizeLocaleList = void 0;
|
|
1823
|
+
function CanonicalizeLocaleList3(locales) {
|
|
1824
|
+
return Intl.getCanonicalLocales(locales);
|
|
1825
|
+
}
|
|
1826
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList3;
|
|
377
1827
|
}
|
|
378
|
-
}
|
|
1828
|
+
});
|
|
379
1829
|
|
|
380
|
-
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
1830
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js
|
|
1831
|
+
var require_utils2 = __commonJS({
|
|
1832
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js": function(exports) {
|
|
1833
|
+
"use strict";
|
|
1834
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1835
|
+
exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
|
|
1836
|
+
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
1837
|
+
function invariant7(condition, message, Err) {
|
|
1838
|
+
if (Err === void 0) {
|
|
1839
|
+
Err = Error;
|
|
1840
|
+
}
|
|
1841
|
+
if (!condition) {
|
|
1842
|
+
throw new Err(message);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
exports.invariant = invariant7;
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
384
1848
|
|
|
385
|
-
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/
|
|
386
|
-
var
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
1849
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js
|
|
1850
|
+
var require_BestAvailableLocale = __commonJS({
|
|
1851
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js": function(exports) {
|
|
1852
|
+
"use strict";
|
|
1853
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1854
|
+
exports.BestAvailableLocale = void 0;
|
|
1855
|
+
function BestAvailableLocale(availableLocales, locale) {
|
|
1856
|
+
var candidate = locale;
|
|
1857
|
+
while (true) {
|
|
1858
|
+
if (availableLocales.has(candidate)) {
|
|
1859
|
+
return candidate;
|
|
1860
|
+
}
|
|
1861
|
+
var pos = candidate.lastIndexOf("-");
|
|
1862
|
+
if (!~pos) {
|
|
1863
|
+
return void 0;
|
|
1864
|
+
}
|
|
1865
|
+
if (pos >= 2 && candidate[pos - 2] === "-") {
|
|
1866
|
+
pos -= 2;
|
|
1867
|
+
}
|
|
1868
|
+
candidate = candidate.slice(0, pos);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
exports.BestAvailableLocale = BestAvailableLocale;
|
|
390
1872
|
}
|
|
391
|
-
|
|
392
|
-
|
|
1873
|
+
});
|
|
1874
|
+
|
|
1875
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js
|
|
1876
|
+
var require_LookupMatcher = __commonJS({
|
|
1877
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js": function(exports) {
|
|
1878
|
+
"use strict";
|
|
1879
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1880
|
+
exports.LookupMatcher = void 0;
|
|
1881
|
+
var utils_1 = require_utils2();
|
|
1882
|
+
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
1883
|
+
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
1884
|
+
var result = { locale: "" };
|
|
1885
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
1886
|
+
var locale = requestedLocales_1[_i];
|
|
1887
|
+
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
1888
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
1889
|
+
if (availableLocale) {
|
|
1890
|
+
result.locale = availableLocale;
|
|
1891
|
+
if (locale !== noExtensionLocale) {
|
|
1892
|
+
result.extension = locale.slice(noExtensionLocale.length + 1, locale.length);
|
|
1893
|
+
}
|
|
1894
|
+
return result;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
result.locale = getDefaultLocale();
|
|
1898
|
+
return result;
|
|
1899
|
+
}
|
|
1900
|
+
exports.LookupMatcher = LookupMatcher;
|
|
393
1901
|
}
|
|
394
|
-
}
|
|
1902
|
+
});
|
|
395
1903
|
|
|
396
|
-
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
1904
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js
|
|
1905
|
+
var require_BestFitMatcher = __commonJS({
|
|
1906
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js": function(exports) {
|
|
1907
|
+
"use strict";
|
|
1908
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1909
|
+
exports.BestFitMatcher = void 0;
|
|
1910
|
+
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
1911
|
+
var utils_1 = require_utils2();
|
|
1912
|
+
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
1913
|
+
var minimizedAvailableLocaleMap = {};
|
|
1914
|
+
var availableLocaleMap = {};
|
|
1915
|
+
var canonicalizedLocaleMap = {};
|
|
1916
|
+
var minimizedAvailableLocales = /* @__PURE__ */ new Set();
|
|
1917
|
+
availableLocales.forEach(function(locale2) {
|
|
1918
|
+
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|
|
1919
|
+
var canonicalizedLocale = Intl.getCanonicalLocales(locale2)[0] || locale2;
|
|
1920
|
+
minimizedAvailableLocaleMap[minimizedLocale] = locale2;
|
|
1921
|
+
availableLocaleMap[locale2] = locale2;
|
|
1922
|
+
canonicalizedLocaleMap[canonicalizedLocale] = locale2;
|
|
1923
|
+
minimizedAvailableLocales.add(minimizedLocale);
|
|
1924
|
+
minimizedAvailableLocales.add(locale2);
|
|
1925
|
+
minimizedAvailableLocales.add(canonicalizedLocale);
|
|
1926
|
+
});
|
|
1927
|
+
var foundLocale;
|
|
1928
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
1929
|
+
var l = requestedLocales_1[_i];
|
|
1930
|
+
if (foundLocale) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
var noExtensionLocale = l.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
1934
|
+
if (availableLocales.has(noExtensionLocale)) {
|
|
1935
|
+
foundLocale = noExtensionLocale;
|
|
1936
|
+
break;
|
|
1937
|
+
}
|
|
1938
|
+
if (minimizedAvailableLocales.has(noExtensionLocale)) {
|
|
1939
|
+
foundLocale = noExtensionLocale;
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
var locale = new Intl.Locale(noExtensionLocale);
|
|
1943
|
+
var maximizedRequestedLocale = locale.maximize().toString();
|
|
1944
|
+
var minimizedRequestedLocale = locale.minimize().toString();
|
|
1945
|
+
if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
|
|
1946
|
+
foundLocale = minimizedRequestedLocale;
|
|
1947
|
+
break;
|
|
1948
|
+
}
|
|
1949
|
+
foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
1950
|
+
}
|
|
1951
|
+
if (!foundLocale) {
|
|
1952
|
+
return { locale: getDefaultLocale() };
|
|
1953
|
+
}
|
|
1954
|
+
return {
|
|
1955
|
+
locale: availableLocaleMap[foundLocale] || canonicalizedLocaleMap[foundLocale] || minimizedAvailableLocaleMap[foundLocale] || foundLocale
|
|
1956
|
+
};
|
|
402
1957
|
}
|
|
403
|
-
|
|
404
|
-
|
|
1958
|
+
exports.BestFitMatcher = BestFitMatcher;
|
|
1959
|
+
}
|
|
1960
|
+
});
|
|
1961
|
+
|
|
1962
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js
|
|
1963
|
+
var require_UnicodeExtensionValue = __commonJS({
|
|
1964
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js": function(exports) {
|
|
1965
|
+
"use strict";
|
|
1966
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1967
|
+
exports.UnicodeExtensionValue = void 0;
|
|
1968
|
+
var utils_1 = require_utils2();
|
|
1969
|
+
function UnicodeExtensionValue(extension, key) {
|
|
1970
|
+
(0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
|
|
1971
|
+
var size = extension.length;
|
|
1972
|
+
var searchValue = "-".concat(key, "-");
|
|
1973
|
+
var pos = extension.indexOf(searchValue);
|
|
1974
|
+
if (pos !== -1) {
|
|
1975
|
+
var start = pos + 4;
|
|
1976
|
+
var end = start;
|
|
1977
|
+
var k = start;
|
|
1978
|
+
var done = false;
|
|
1979
|
+
while (!done) {
|
|
1980
|
+
var e = extension.indexOf("-", k);
|
|
1981
|
+
var len = void 0;
|
|
1982
|
+
if (e === -1) {
|
|
1983
|
+
len = size - k;
|
|
1984
|
+
} else {
|
|
1985
|
+
len = e - k;
|
|
1986
|
+
}
|
|
1987
|
+
if (len === 2) {
|
|
1988
|
+
done = true;
|
|
1989
|
+
} else if (e === -1) {
|
|
1990
|
+
end = size;
|
|
1991
|
+
done = true;
|
|
1992
|
+
} else {
|
|
1993
|
+
end = e;
|
|
1994
|
+
k = e + 1;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
return extension.slice(start, end);
|
|
1998
|
+
}
|
|
1999
|
+
searchValue = "-".concat(key);
|
|
2000
|
+
pos = extension.indexOf(searchValue);
|
|
2001
|
+
if (pos !== -1 && pos + 3 === size) {
|
|
2002
|
+
return "";
|
|
2003
|
+
}
|
|
405
2004
|
return void 0;
|
|
406
2005
|
}
|
|
407
|
-
|
|
408
|
-
pos -= 2;
|
|
409
|
-
}
|
|
410
|
-
candidate = candidate.slice(0, pos);
|
|
2006
|
+
exports.UnicodeExtensionValue = UnicodeExtensionValue;
|
|
411
2007
|
}
|
|
412
|
-
}
|
|
2008
|
+
});
|
|
413
2009
|
|
|
414
|
-
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
2010
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js
|
|
2011
|
+
var require_ResolveLocale = __commonJS({
|
|
2012
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js": function(exports) {
|
|
2013
|
+
"use strict";
|
|
2014
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2015
|
+
exports.ResolveLocale = void 0;
|
|
2016
|
+
var LookupMatcher_1 = require_LookupMatcher();
|
|
2017
|
+
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
2018
|
+
var utils_1 = require_utils2();
|
|
2019
|
+
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
2020
|
+
function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
2021
|
+
var matcher = options.localeMatcher;
|
|
2022
|
+
var r;
|
|
2023
|
+
if (matcher === "lookup") {
|
|
2024
|
+
r = (0, LookupMatcher_1.LookupMatcher)(availableLocales, requestedLocales, getDefaultLocale);
|
|
2025
|
+
} else {
|
|
2026
|
+
r = (0, BestFitMatcher_1.BestFitMatcher)(availableLocales, requestedLocales, getDefaultLocale);
|
|
2027
|
+
}
|
|
2028
|
+
var foundLocale = r.locale;
|
|
2029
|
+
var result = { locale: "", dataLocale: foundLocale };
|
|
2030
|
+
var supportedExtension = "-u";
|
|
2031
|
+
for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
|
|
2032
|
+
var key = relevantExtensionKeys_1[_i];
|
|
2033
|
+
(0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
|
2034
|
+
var foundLocaleData = localeData[foundLocale];
|
|
2035
|
+
(0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
|
2036
|
+
var keyLocaleData = foundLocaleData[key];
|
|
2037
|
+
(0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
|
2038
|
+
var value = keyLocaleData[0];
|
|
2039
|
+
(0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
|
2040
|
+
var supportedExtensionAddition = "";
|
|
2041
|
+
if (r.extension) {
|
|
2042
|
+
var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
|
|
2043
|
+
if (requestedValue !== void 0) {
|
|
2044
|
+
if (requestedValue !== "") {
|
|
2045
|
+
if (~keyLocaleData.indexOf(requestedValue)) {
|
|
2046
|
+
value = requestedValue;
|
|
2047
|
+
supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
|
2048
|
+
}
|
|
2049
|
+
} else if (~requestedValue.indexOf("true")) {
|
|
2050
|
+
value = "true";
|
|
2051
|
+
supportedExtensionAddition = "-".concat(key);
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
if (key in options) {
|
|
2056
|
+
var optionsValue = options[key];
|
|
2057
|
+
(0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
2058
|
+
if (~keyLocaleData.indexOf(optionsValue)) {
|
|
2059
|
+
if (optionsValue !== value) {
|
|
2060
|
+
value = optionsValue;
|
|
2061
|
+
supportedExtensionAddition = "";
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
result[key] = value;
|
|
2066
|
+
supportedExtension += supportedExtensionAddition;
|
|
2067
|
+
}
|
|
2068
|
+
if (supportedExtension.length > 2) {
|
|
2069
|
+
var privateIndex = foundLocale.indexOf("-x-");
|
|
2070
|
+
if (privateIndex === -1) {
|
|
2071
|
+
foundLocale = foundLocale + supportedExtension;
|
|
2072
|
+
} else {
|
|
2073
|
+
var preExtension = foundLocale.slice(0, privateIndex);
|
|
2074
|
+
var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
|
|
2075
|
+
foundLocale = preExtension + supportedExtension + postExtension;
|
|
2076
|
+
}
|
|
2077
|
+
foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
|
|
425
2078
|
}
|
|
2079
|
+
result.locale = foundLocale;
|
|
426
2080
|
return result;
|
|
427
2081
|
}
|
|
2082
|
+
exports.ResolveLocale = ResolveLocale2;
|
|
428
2083
|
}
|
|
429
|
-
|
|
430
|
-
return result;
|
|
431
|
-
}
|
|
2084
|
+
});
|
|
432
2085
|
|
|
433
|
-
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
if (foundLocale) {
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
|
-
var noExtensionLocale = l.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
456
|
-
if (availableLocales.has(noExtensionLocale)) {
|
|
457
|
-
foundLocale = noExtensionLocale;
|
|
458
|
-
break;
|
|
459
|
-
}
|
|
460
|
-
if (minimizedAvailableLocales.has(noExtensionLocale)) {
|
|
461
|
-
foundLocale = noExtensionLocale;
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
var locale = new Intl.Locale(noExtensionLocale);
|
|
465
|
-
var maximizedRequestedLocale = locale.maximize().toString();
|
|
466
|
-
var minimizedRequestedLocale = locale.minimize().toString();
|
|
467
|
-
if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
|
|
468
|
-
foundLocale = minimizedRequestedLocale;
|
|
469
|
-
break;
|
|
2086
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js
|
|
2087
|
+
var require_LookupSupportedLocales = __commonJS({
|
|
2088
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js": function(exports) {
|
|
2089
|
+
"use strict";
|
|
2090
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2091
|
+
exports.LookupSupportedLocales = void 0;
|
|
2092
|
+
var utils_1 = require_utils2();
|
|
2093
|
+
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
2094
|
+
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
2095
|
+
var subset = [];
|
|
2096
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
2097
|
+
var locale = requestedLocales_1[_i];
|
|
2098
|
+
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
2099
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
2100
|
+
if (availableLocale) {
|
|
2101
|
+
subset.push(availableLocale);
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
return subset;
|
|
470
2105
|
}
|
|
471
|
-
|
|
2106
|
+
exports.LookupSupportedLocales = LookupSupportedLocales;
|
|
472
2107
|
}
|
|
473
|
-
|
|
474
|
-
|
|
2108
|
+
});
|
|
2109
|
+
|
|
2110
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js
|
|
2111
|
+
var require_intl_localematcher = __commonJS({
|
|
2112
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js": function(exports) {
|
|
2113
|
+
"use strict";
|
|
2114
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2115
|
+
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
|
|
2116
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
|
|
2117
|
+
var ResolveLocale_1 = require_ResolveLocale();
|
|
2118
|
+
function match2(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
2119
|
+
var locales = availableLocales.reduce(function(all, l) {
|
|
2120
|
+
all.add(l);
|
|
2121
|
+
return all;
|
|
2122
|
+
}, /* @__PURE__ */ new Set());
|
|
2123
|
+
return (0, ResolveLocale_1.ResolveLocale)(locales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
|
|
2124
|
+
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
2125
|
+
}, [], {}, function() {
|
|
2126
|
+
return defaultLocale;
|
|
2127
|
+
}).locale;
|
|
2128
|
+
}
|
|
2129
|
+
exports.match = match2;
|
|
2130
|
+
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
2131
|
+
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
2132
|
+
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
2133
|
+
} });
|
|
2134
|
+
var ResolveLocale_2 = require_ResolveLocale();
|
|
2135
|
+
Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function() {
|
|
2136
|
+
return ResolveLocale_2.ResolveLocale;
|
|
2137
|
+
} });
|
|
475
2138
|
}
|
|
476
|
-
|
|
477
|
-
locale: availableLocaleMap[foundLocale] || canonicalizedLocaleMap[foundLocale] || minimizedAvailableLocaleMap[foundLocale] || foundLocale
|
|
478
|
-
};
|
|
479
|
-
}
|
|
2139
|
+
});
|
|
480
2140
|
|
|
481
|
-
// bazel-out/darwin-fastbuild/bin/packages/
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
var
|
|
489
|
-
var
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
var e = extension.indexOf("-", k);
|
|
494
|
-
var len = void 0;
|
|
495
|
-
if (e === -1) {
|
|
496
|
-
len = size - k;
|
|
497
|
-
} else {
|
|
498
|
-
len = e - k;
|
|
2141
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
|
|
2142
|
+
var require_SetNumberFormatUnitOptions = __commonJS({
|
|
2143
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js": function(exports) {
|
|
2144
|
+
"use strict";
|
|
2145
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2146
|
+
exports.SetNumberFormatUnitOptions = void 0;
|
|
2147
|
+
var GetOption_1 = require_GetOption();
|
|
2148
|
+
var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
|
|
2149
|
+
var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
|
|
2150
|
+
function SetNumberFormatUnitOptions(nf, options, _a) {
|
|
2151
|
+
if (options === void 0) {
|
|
2152
|
+
options = /* @__PURE__ */ Object.create(null);
|
|
499
2153
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
2154
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
2155
|
+
var internalSlots = getInternalSlots2(nf);
|
|
2156
|
+
var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
|
|
2157
|
+
internalSlots.style = style;
|
|
2158
|
+
var currency = (0, GetOption_1.GetOption)(options, "currency", "string", void 0, void 0);
|
|
2159
|
+
if (currency !== void 0 && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
|
|
2160
|
+
throw RangeError("Malformed currency code");
|
|
2161
|
+
}
|
|
2162
|
+
if (style === "currency" && currency === void 0) {
|
|
2163
|
+
throw TypeError("currency cannot be undefined");
|
|
2164
|
+
}
|
|
2165
|
+
var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
|
|
2166
|
+
var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
|
|
2167
|
+
var unit = (0, GetOption_1.GetOption)(options, "unit", "string", void 0, void 0);
|
|
2168
|
+
if (unit !== void 0 && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
|
|
2169
|
+
throw RangeError("Invalid unit argument for Intl.NumberFormat()");
|
|
2170
|
+
}
|
|
2171
|
+
if (style === "unit" && unit === void 0) {
|
|
2172
|
+
throw TypeError("unit cannot be undefined");
|
|
2173
|
+
}
|
|
2174
|
+
var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
|
|
2175
|
+
if (style === "currency") {
|
|
2176
|
+
internalSlots.currency = currency.toUpperCase();
|
|
2177
|
+
internalSlots.currencyDisplay = currencyDisplay;
|
|
2178
|
+
internalSlots.currencySign = currencySign;
|
|
2179
|
+
}
|
|
2180
|
+
if (style === "unit") {
|
|
2181
|
+
internalSlots.unit = unit;
|
|
2182
|
+
internalSlots.unitDisplay = unitDisplay;
|
|
508
2183
|
}
|
|
509
2184
|
}
|
|
510
|
-
|
|
2185
|
+
exports.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
|
|
511
2186
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
2187
|
+
});
|
|
2188
|
+
|
|
2189
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
2190
|
+
var require_SetNumberFormatDigitOptions = __commonJS({
|
|
2191
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js": function(exports) {
|
|
2192
|
+
"use strict";
|
|
2193
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2194
|
+
exports.SetNumberFormatDigitOptions = void 0;
|
|
2195
|
+
var GetNumberOption_1 = require_GetNumberOption();
|
|
2196
|
+
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
2197
|
+
function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
2198
|
+
var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
2199
|
+
var mnfd = opts.minimumFractionDigits;
|
|
2200
|
+
var mxfd = opts.maximumFractionDigits;
|
|
2201
|
+
var mnsd = opts.minimumSignificantDigits;
|
|
2202
|
+
var mxsd = opts.maximumSignificantDigits;
|
|
2203
|
+
internalSlots.minimumIntegerDigits = mnid;
|
|
2204
|
+
if (mnsd !== void 0 || mxsd !== void 0) {
|
|
2205
|
+
internalSlots.roundingType = "significantDigits";
|
|
2206
|
+
mnsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnsd, 1, 21, 1);
|
|
2207
|
+
mxsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxsd, mnsd, 21, 21);
|
|
2208
|
+
internalSlots.minimumSignificantDigits = mnsd;
|
|
2209
|
+
internalSlots.maximumSignificantDigits = mxsd;
|
|
2210
|
+
} else if (mnfd !== void 0 || mxfd !== void 0) {
|
|
2211
|
+
internalSlots.roundingType = "fractionDigits";
|
|
2212
|
+
mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 20, mnfdDefault);
|
|
2213
|
+
var mxfdActualDefault = Math.max(mnfd, mxfdDefault);
|
|
2214
|
+
mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, mnfd, 20, mxfdActualDefault);
|
|
2215
|
+
internalSlots.minimumFractionDigits = mnfd;
|
|
2216
|
+
internalSlots.maximumFractionDigits = mxfd;
|
|
2217
|
+
} else if (notation === "compact") {
|
|
2218
|
+
internalSlots.roundingType = "compactRounding";
|
|
2219
|
+
} else {
|
|
2220
|
+
internalSlots.roundingType = "fractionDigits";
|
|
2221
|
+
internalSlots.minimumFractionDigits = mnfdDefault;
|
|
2222
|
+
internalSlots.maximumFractionDigits = mxfdDefault;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
exports.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
|
|
516
2226
|
}
|
|
517
|
-
|
|
518
|
-
}
|
|
2227
|
+
});
|
|
519
2228
|
|
|
520
|
-
// bazel-out/darwin-fastbuild/bin/packages/
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
var
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
2229
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
|
|
2230
|
+
var require_InitializeNumberFormat = __commonJS({
|
|
2231
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/NumberFormat/InitializeNumberFormat.js": function(exports) {
|
|
2232
|
+
"use strict";
|
|
2233
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2234
|
+
exports.InitializeNumberFormat = void 0;
|
|
2235
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
2236
|
+
var GetOption_1 = require_GetOption();
|
|
2237
|
+
var intl_localematcher_1 = require_intl_localematcher();
|
|
2238
|
+
var SetNumberFormatUnitOptions_1 = require_SetNumberFormatUnitOptions();
|
|
2239
|
+
var CurrencyDigits_1 = require_CurrencyDigits();
|
|
2240
|
+
var SetNumberFormatDigitOptions_1 = require_SetNumberFormatDigitOptions();
|
|
2241
|
+
var utils_1 = require_utils();
|
|
2242
|
+
var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
|
|
2243
|
+
function InitializeNumberFormat(nf, locales, opts, _a) {
|
|
2244
|
+
var getInternalSlots2 = _a.getInternalSlots, localeData = _a.localeData, availableLocales = _a.availableLocales, numberingSystemNames = _a.numberingSystemNames, getDefaultLocale = _a.getDefaultLocale, currencyDigitsData = _a.currencyDigitsData;
|
|
2245
|
+
var requestedLocales = (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(locales);
|
|
2246
|
+
var options = (0, CoerceOptionsToObject_1.CoerceOptionsToObject)(opts);
|
|
2247
|
+
var opt = /* @__PURE__ */ Object.create(null);
|
|
2248
|
+
var matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
2249
|
+
opt.localeMatcher = matcher;
|
|
2250
|
+
var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", void 0, void 0);
|
|
2251
|
+
if (numberingSystem !== void 0 && numberingSystemNames.indexOf(numberingSystem) < 0) {
|
|
2252
|
+
throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
|
|
2253
|
+
}
|
|
2254
|
+
opt.nu = numberingSystem;
|
|
2255
|
+
var r = (0, intl_localematcher_1.ResolveLocale)(availableLocales, requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
|
|
2256
|
+
var dataLocaleData = localeData[r.dataLocale];
|
|
2257
|
+
(0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r.dataLocale));
|
|
2258
|
+
var internalSlots = getInternalSlots2(nf);
|
|
2259
|
+
internalSlots.locale = r.locale;
|
|
2260
|
+
internalSlots.dataLocale = r.dataLocale;
|
|
2261
|
+
internalSlots.numberingSystem = r.nu;
|
|
2262
|
+
internalSlots.dataLocaleData = dataLocaleData;
|
|
2263
|
+
(0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots: getInternalSlots2 });
|
|
2264
|
+
var style = internalSlots.style;
|
|
2265
|
+
var mnfdDefault;
|
|
2266
|
+
var mxfdDefault;
|
|
2267
|
+
if (style === "currency") {
|
|
2268
|
+
var currency = internalSlots.currency;
|
|
2269
|
+
var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData: currencyDigitsData });
|
|
2270
|
+
mnfdDefault = cDigits;
|
|
2271
|
+
mxfdDefault = cDigits;
|
|
2272
|
+
} else {
|
|
2273
|
+
mnfdDefault = 0;
|
|
2274
|
+
mxfdDefault = style === "percent" ? 0 : 3;
|
|
2275
|
+
}
|
|
2276
|
+
var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
2277
|
+
internalSlots.notation = notation;
|
|
2278
|
+
(0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
2279
|
+
var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
2280
|
+
if (notation === "compact") {
|
|
2281
|
+
internalSlots.compactDisplay = compactDisplay;
|
|
554
2282
|
}
|
|
2283
|
+
var useGrouping = (0, GetOption_1.GetOption)(options, "useGrouping", "boolean", void 0, true);
|
|
2284
|
+
internalSlots.useGrouping = useGrouping;
|
|
2285
|
+
var signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero"], "auto");
|
|
2286
|
+
internalSlots.signDisplay = signDisplay;
|
|
2287
|
+
return nf;
|
|
555
2288
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
2289
|
+
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
|
|
2293
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/PartitionPattern.js
|
|
2294
|
+
var require_PartitionPattern = __commonJS({
|
|
2295
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/PartitionPattern.js": function(exports) {
|
|
2296
|
+
"use strict";
|
|
2297
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2298
|
+
exports.PartitionPattern = void 0;
|
|
2299
|
+
var utils_1 = require_utils();
|
|
2300
|
+
function PartitionPattern3(pattern) {
|
|
2301
|
+
var result = [];
|
|
2302
|
+
var beginIndex = pattern.indexOf("{");
|
|
2303
|
+
var endIndex = 0;
|
|
2304
|
+
var nextIndex = 0;
|
|
2305
|
+
var length = pattern.length;
|
|
2306
|
+
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
2307
|
+
endIndex = pattern.indexOf("}", beginIndex);
|
|
2308
|
+
(0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
|
2309
|
+
if (beginIndex > nextIndex) {
|
|
2310
|
+
result.push({
|
|
2311
|
+
type: "literal",
|
|
2312
|
+
value: pattern.substring(nextIndex, beginIndex)
|
|
2313
|
+
});
|
|
563
2314
|
}
|
|
2315
|
+
result.push({
|
|
2316
|
+
type: pattern.substring(beginIndex + 1, endIndex),
|
|
2317
|
+
value: void 0
|
|
2318
|
+
});
|
|
2319
|
+
nextIndex = endIndex + 1;
|
|
2320
|
+
beginIndex = pattern.indexOf("{", nextIndex);
|
|
2321
|
+
}
|
|
2322
|
+
if (nextIndex < length) {
|
|
2323
|
+
result.push({
|
|
2324
|
+
type: "literal",
|
|
2325
|
+
value: pattern.substring(nextIndex, length)
|
|
2326
|
+
});
|
|
564
2327
|
}
|
|
2328
|
+
return result;
|
|
565
2329
|
}
|
|
566
|
-
|
|
567
|
-
supportedExtension += supportedExtensionAddition;
|
|
2330
|
+
exports.PartitionPattern = PartitionPattern3;
|
|
568
2331
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
2332
|
+
});
|
|
2333
|
+
|
|
2334
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/SupportedLocales.js
|
|
2335
|
+
var require_SupportedLocales = __commonJS({
|
|
2336
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/SupportedLocales.js": function(exports) {
|
|
2337
|
+
"use strict";
|
|
2338
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2339
|
+
exports.SupportedLocales = void 0;
|
|
2340
|
+
var _262_1 = require__();
|
|
2341
|
+
var GetOption_1 = require_GetOption();
|
|
2342
|
+
var intl_localematcher_1 = require_intl_localematcher();
|
|
2343
|
+
function SupportedLocales2(availableLocales, requestedLocales, options) {
|
|
2344
|
+
var matcher = "best fit";
|
|
2345
|
+
if (options !== void 0) {
|
|
2346
|
+
options = (0, _262_1.ToObject)(options);
|
|
2347
|
+
matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
2348
|
+
}
|
|
2349
|
+
if (matcher === "best fit") {
|
|
2350
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
2351
|
+
}
|
|
2352
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
577
2353
|
}
|
|
578
|
-
|
|
2354
|
+
exports.SupportedLocales = SupportedLocales2;
|
|
579
2355
|
}
|
|
580
|
-
|
|
581
|
-
return result;
|
|
582
|
-
}
|
|
2356
|
+
});
|
|
583
2357
|
|
|
584
|
-
// bazel-out/darwin-fastbuild/bin/packages/
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
|
|
592
|
-
|
|
2358
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/data.js
|
|
2359
|
+
var require_data = __commonJS({
|
|
2360
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/data.js": function(exports) {
|
|
2361
|
+
"use strict";
|
|
2362
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2363
|
+
exports.isMissingLocaleDataError = void 0;
|
|
2364
|
+
var tslib_1 = require_tslib();
|
|
2365
|
+
var MissingLocaleDataError = function(_super) {
|
|
2366
|
+
(0, tslib_1.__extends)(MissingLocaleDataError2, _super);
|
|
2367
|
+
function MissingLocaleDataError2() {
|
|
2368
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2369
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
2370
|
+
return _this;
|
|
2371
|
+
}
|
|
2372
|
+
return MissingLocaleDataError2;
|
|
2373
|
+
}(Error);
|
|
2374
|
+
function isMissingLocaleDataError(e) {
|
|
2375
|
+
return e.type === "MISSING_LOCALE_DATA";
|
|
593
2376
|
}
|
|
2377
|
+
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
594
2378
|
}
|
|
595
|
-
|
|
596
|
-
}
|
|
2379
|
+
});
|
|
597
2380
|
|
|
598
|
-
// bazel-out/darwin-fastbuild/bin/packages/
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
606
|
-
}, [], {}, function() {
|
|
607
|
-
return defaultLocale;
|
|
608
|
-
}).locale;
|
|
609
|
-
}
|
|
2381
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/relative-time.js
|
|
2382
|
+
var require_relative_time = __commonJS({
|
|
2383
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/relative-time.js": function(exports) {
|
|
2384
|
+
"use strict";
|
|
2385
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2386
|
+
}
|
|
2387
|
+
});
|
|
610
2388
|
|
|
611
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
type: "literal",
|
|
624
|
-
value: pattern.substring(nextIndex, beginIndex)
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
result.push({
|
|
628
|
-
type: pattern.substring(beginIndex + 1, endIndex),
|
|
629
|
-
value: void 0
|
|
630
|
-
});
|
|
631
|
-
nextIndex = endIndex + 1;
|
|
632
|
-
beginIndex = pattern.indexOf("{", nextIndex);
|
|
2389
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/date-time.js
|
|
2390
|
+
var require_date_time = __commonJS({
|
|
2391
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/date-time.js": function(exports) {
|
|
2392
|
+
"use strict";
|
|
2393
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2394
|
+
exports.RangePatternType = void 0;
|
|
2395
|
+
var RangePatternType3;
|
|
2396
|
+
(function(RangePatternType4) {
|
|
2397
|
+
RangePatternType4["startRange"] = "startRange";
|
|
2398
|
+
RangePatternType4["shared"] = "shared";
|
|
2399
|
+
RangePatternType4["endRange"] = "endRange";
|
|
2400
|
+
})(RangePatternType3 = exports.RangePatternType || (exports.RangePatternType = {}));
|
|
633
2401
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/list.js
|
|
2405
|
+
var require_list = __commonJS({
|
|
2406
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/list.js": function(exports) {
|
|
2407
|
+
"use strict";
|
|
2408
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
639
2409
|
}
|
|
640
|
-
|
|
641
|
-
}
|
|
2410
|
+
});
|
|
642
2411
|
|
|
643
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
2412
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/plural-rules.js
|
|
2413
|
+
var require_plural_rules = __commonJS({
|
|
2414
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/plural-rules.js": function(exports) {
|
|
2415
|
+
"use strict";
|
|
2416
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
649
2417
|
}
|
|
650
|
-
|
|
651
|
-
|
|
2418
|
+
});
|
|
2419
|
+
|
|
2420
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/number.js
|
|
2421
|
+
var require_number = __commonJS({
|
|
2422
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/number.js": function(exports) {
|
|
2423
|
+
"use strict";
|
|
2424
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
652
2425
|
}
|
|
653
|
-
|
|
654
|
-
|
|
2426
|
+
});
|
|
2427
|
+
|
|
2428
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/displaynames.js
|
|
2429
|
+
var require_displaynames = __commonJS({
|
|
2430
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/types/displaynames.js": function(exports) {
|
|
2431
|
+
"use strict";
|
|
2432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2433
|
+
}
|
|
2434
|
+
});
|
|
655
2435
|
|
|
656
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
2436
|
+
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/index.js
|
|
2437
|
+
var require_ecma402_abstract = __commonJS({
|
|
2438
|
+
"bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/index.js": function(exports) {
|
|
2439
|
+
"use strict";
|
|
2440
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2441
|
+
exports.invariant = exports.isMissingLocaleDataError = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports._formatToParts = void 0;
|
|
2442
|
+
var tslib_1 = require_tslib();
|
|
2443
|
+
(0, tslib_1.__exportStar)(require_CanonicalizeLocaleList(), exports);
|
|
2444
|
+
(0, tslib_1.__exportStar)(require_CanonicalizeTimeZoneName(), exports);
|
|
2445
|
+
(0, tslib_1.__exportStar)(require_CoerceOptionsToObject(), exports);
|
|
2446
|
+
(0, tslib_1.__exportStar)(require_GetNumberOption(), exports);
|
|
2447
|
+
(0, tslib_1.__exportStar)(require_GetOption(), exports);
|
|
2448
|
+
(0, tslib_1.__exportStar)(require_GetOptionsObject(), exports);
|
|
2449
|
+
(0, tslib_1.__exportStar)(require_IsSanctionedSimpleUnitIdentifier(), exports);
|
|
2450
|
+
(0, tslib_1.__exportStar)(require_IsValidTimeZoneName(), exports);
|
|
2451
|
+
(0, tslib_1.__exportStar)(require_IsWellFormedCurrencyCode(), exports);
|
|
2452
|
+
(0, tslib_1.__exportStar)(require_IsWellFormedUnitIdentifier(), exports);
|
|
2453
|
+
(0, tslib_1.__exportStar)(require_ComputeExponent(), exports);
|
|
2454
|
+
(0, tslib_1.__exportStar)(require_ComputeExponentForMagnitude(), exports);
|
|
2455
|
+
(0, tslib_1.__exportStar)(require_CurrencyDigits(), exports);
|
|
2456
|
+
(0, tslib_1.__exportStar)(require_FormatNumericToParts(), exports);
|
|
2457
|
+
(0, tslib_1.__exportStar)(require_FormatNumericToString(), exports);
|
|
2458
|
+
(0, tslib_1.__exportStar)(require_InitializeNumberFormat(), exports);
|
|
2459
|
+
(0, tslib_1.__exportStar)(require_PartitionNumberPattern(), exports);
|
|
2460
|
+
(0, tslib_1.__exportStar)(require_SetNumberFormatDigitOptions(), exports);
|
|
2461
|
+
(0, tslib_1.__exportStar)(require_SetNumberFormatUnitOptions(), exports);
|
|
2462
|
+
(0, tslib_1.__exportStar)(require_ToRawFixed(), exports);
|
|
2463
|
+
(0, tslib_1.__exportStar)(require_ToRawPrecision(), exports);
|
|
2464
|
+
var format_to_parts_1 = require_format_to_parts();
|
|
2465
|
+
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function() {
|
|
2466
|
+
return (0, tslib_1.__importDefault)(format_to_parts_1).default;
|
|
2467
|
+
} });
|
|
2468
|
+
(0, tslib_1.__exportStar)(require_PartitionPattern(), exports);
|
|
2469
|
+
(0, tslib_1.__exportStar)(require_SupportedLocales(), exports);
|
|
2470
|
+
var utils_1 = require_utils();
|
|
2471
|
+
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function() {
|
|
2472
|
+
return utils_1.getInternalSlot;
|
|
2473
|
+
} });
|
|
2474
|
+
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function() {
|
|
2475
|
+
return utils_1.getMultiInternalSlots;
|
|
2476
|
+
} });
|
|
2477
|
+
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function() {
|
|
2478
|
+
return utils_1.isLiteralPart;
|
|
2479
|
+
} });
|
|
2480
|
+
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function() {
|
|
2481
|
+
return utils_1.setInternalSlot;
|
|
2482
|
+
} });
|
|
2483
|
+
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function() {
|
|
2484
|
+
return utils_1.setMultiInternalSlots;
|
|
2485
|
+
} });
|
|
2486
|
+
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function() {
|
|
2487
|
+
return utils_1.getMagnitude;
|
|
2488
|
+
} });
|
|
2489
|
+
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function() {
|
|
2490
|
+
return utils_1.defineProperty;
|
|
2491
|
+
} });
|
|
2492
|
+
var data_1 = require_data();
|
|
2493
|
+
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function() {
|
|
2494
|
+
return data_1.isMissingLocaleDataError;
|
|
2495
|
+
} });
|
|
2496
|
+
(0, tslib_1.__exportStar)(require_relative_time(), exports);
|
|
2497
|
+
(0, tslib_1.__exportStar)(require_date_time(), exports);
|
|
2498
|
+
(0, tslib_1.__exportStar)(require_list(), exports);
|
|
2499
|
+
(0, tslib_1.__exportStar)(require_plural_rules(), exports);
|
|
2500
|
+
(0, tslib_1.__exportStar)(require_number(), exports);
|
|
2501
|
+
(0, tslib_1.__exportStar)(require_displaynames(), exports);
|
|
2502
|
+
var utils_2 = require_utils();
|
|
2503
|
+
Object.defineProperty(exports, "invariant", { enumerable: true, get: function() {
|
|
2504
|
+
return utils_2.invariant;
|
|
2505
|
+
} });
|
|
2506
|
+
(0, tslib_1.__exportStar)(require__(), exports);
|
|
2507
|
+
}
|
|
2508
|
+
});
|
|
2509
|
+
|
|
2510
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/core.js
|
|
2511
|
+
var import_tslib4 = __toESM(require_tslib());
|
|
2512
|
+
var import_ecma402_abstract12 = __toESM(require_ecma402_abstract());
|
|
663
2513
|
|
|
664
2514
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/get_internal_slots.js
|
|
665
2515
|
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -824,6 +2674,12 @@
|
|
|
824
2674
|
return zones;
|
|
825
2675
|
}
|
|
826
2676
|
|
|
2677
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimePattern.js
|
|
2678
|
+
var import_ecma402_abstract3 = __toESM(require_ecma402_abstract());
|
|
2679
|
+
|
|
2680
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimePattern.js
|
|
2681
|
+
var import_ecma402_abstract2 = __toESM(require_ecma402_abstract());
|
|
2682
|
+
|
|
827
2683
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/utils.js
|
|
828
2684
|
var DATE_TIME_PROPS = [
|
|
829
2685
|
"weekday",
|
|
@@ -845,6 +2701,7 @@
|
|
|
845
2701
|
var shortMorePenalty = 3;
|
|
846
2702
|
|
|
847
2703
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToLocalTime.js
|
|
2704
|
+
var import_ecma402_abstract = __toESM(require_ecma402_abstract());
|
|
848
2705
|
function getApplicableZoneData(t, timeZone, tzData) {
|
|
849
2706
|
var _a;
|
|
850
2707
|
var zoneData = tzData[timeZone];
|
|
@@ -865,23 +2722,23 @@
|
|
|
865
2722
|
}
|
|
866
2723
|
function ToLocalTime(t, calendar, timeZone, _a) {
|
|
867
2724
|
var tzData = _a.tzData;
|
|
868
|
-
invariant(Type(t) === "Number", "invalid time");
|
|
869
|
-
invariant(calendar === "gregory", "We only support Gregory calendar right now");
|
|
2725
|
+
(0, import_ecma402_abstract.invariant)((0, import_ecma402_abstract.Type)(t) === "Number", "invalid time");
|
|
2726
|
+
(0, import_ecma402_abstract.invariant)(calendar === "gregory", "We only support Gregory calendar right now");
|
|
870
2727
|
var _b = getApplicableZoneData(t, timeZone, tzData), timeZoneOffset = _b[0], inDST = _b[1];
|
|
871
2728
|
var tz = t + timeZoneOffset;
|
|
872
|
-
var year = YearFromTime(tz);
|
|
2729
|
+
var year = (0, import_ecma402_abstract.YearFromTime)(tz);
|
|
873
2730
|
return {
|
|
874
|
-
weekday: WeekDay(tz),
|
|
2731
|
+
weekday: (0, import_ecma402_abstract.WeekDay)(tz),
|
|
875
2732
|
era: year < 0 ? "BC" : "AD",
|
|
876
2733
|
year: year,
|
|
877
2734
|
relatedYear: void 0,
|
|
878
2735
|
yearName: void 0,
|
|
879
|
-
month: MonthFromTime(tz),
|
|
880
|
-
day: DateFromTime(tz),
|
|
881
|
-
hour: HourFromTime(tz),
|
|
882
|
-
minute: MinFromTime(tz),
|
|
883
|
-
second: SecFromTime(tz),
|
|
884
|
-
millisecond: msFromTime(tz),
|
|
2736
|
+
month: (0, import_ecma402_abstract.MonthFromTime)(tz),
|
|
2737
|
+
day: (0, import_ecma402_abstract.DateFromTime)(tz),
|
|
2738
|
+
hour: (0, import_ecma402_abstract.HourFromTime)(tz),
|
|
2739
|
+
minute: (0, import_ecma402_abstract.MinFromTime)(tz),
|
|
2740
|
+
second: (0, import_ecma402_abstract.SecFromTime)(tz),
|
|
2741
|
+
millisecond: (0, import_ecma402_abstract.msFromTime)(tz),
|
|
885
2742
|
inDST: inDST,
|
|
886
2743
|
timeZoneOffset: timeZoneOffset
|
|
887
2744
|
};
|
|
@@ -913,7 +2770,7 @@
|
|
|
913
2770
|
}
|
|
914
2771
|
function FormatDateTimePattern(dtf, patternParts, x, _a) {
|
|
915
2772
|
var getInternalSlots2 = _a.getInternalSlots, localeData = _a.localeData, getDefaultTimeZone = _a.getDefaultTimeZone, tzData = _a.tzData;
|
|
916
|
-
x = TimeClip(x);
|
|
2773
|
+
x = (0, import_ecma402_abstract2.TimeClip)(x);
|
|
917
2774
|
var internalSlots = getInternalSlots2(dtf);
|
|
918
2775
|
var dataLocale = internalSlots.dataLocale;
|
|
919
2776
|
var dataLocaleData = localeData[dataLocale];
|
|
@@ -1034,14 +2891,14 @@
|
|
|
1034
2891
|
|
|
1035
2892
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimePattern.js
|
|
1036
2893
|
function PartitionDateTimePattern(dtf, x, implDetails) {
|
|
1037
|
-
x = TimeClip(x);
|
|
2894
|
+
x = (0, import_ecma402_abstract3.TimeClip)(x);
|
|
1038
2895
|
if (isNaN(x)) {
|
|
1039
2896
|
throw new RangeError("invalid time");
|
|
1040
2897
|
}
|
|
1041
2898
|
var getInternalSlots2 = implDetails.getInternalSlots;
|
|
1042
2899
|
var internalSlots = getInternalSlots2(dtf);
|
|
1043
2900
|
var pattern = internalSlots.pattern;
|
|
1044
|
-
return FormatDateTimePattern(dtf, PartitionPattern(pattern), x, implDetails);
|
|
2901
|
+
return FormatDateTimePattern(dtf, (0, import_ecma402_abstract3.PartitionPattern)(pattern), x, implDetails);
|
|
1045
2902
|
}
|
|
1046
2903
|
|
|
1047
2904
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTime.js
|
|
@@ -1055,11 +2912,16 @@
|
|
|
1055
2912
|
return result;
|
|
1056
2913
|
}
|
|
1057
2914
|
|
|
2915
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/InitializeDateTimeFormat.js
|
|
2916
|
+
var import_ecma402_abstract9 = __toESM(require_ecma402_abstract());
|
|
2917
|
+
|
|
1058
2918
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BasicFormatMatcher.js
|
|
2919
|
+
var import_tslib = __toESM(require_tslib());
|
|
2920
|
+
var import_ecma402_abstract4 = __toESM(require_ecma402_abstract());
|
|
1059
2921
|
function BasicFormatMatcher(options, formats) {
|
|
1060
2922
|
var bestScore = -Infinity;
|
|
1061
2923
|
var bestFormat = formats[0];
|
|
1062
|
-
invariant(Array.isArray(formats), "formats should be a list of things");
|
|
2924
|
+
(0, import_ecma402_abstract4.invariant)(Array.isArray(formats), "formats should be a list of things");
|
|
1063
2925
|
for (var _i = 0, formats_1 = formats; _i < formats_1.length; _i++) {
|
|
1064
2926
|
var format = formats_1[_i];
|
|
1065
2927
|
var score = 0;
|
|
@@ -1097,10 +2959,16 @@
|
|
|
1097
2959
|
bestFormat = format;
|
|
1098
2960
|
}
|
|
1099
2961
|
}
|
|
1100
|
-
return __assign({}, bestFormat);
|
|
2962
|
+
return (0, import_tslib.__assign)({}, bestFormat);
|
|
1101
2963
|
}
|
|
1102
2964
|
|
|
2965
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BestFitFormatMatcher.js
|
|
2966
|
+
var import_tslib3 = __toESM(require_tslib());
|
|
2967
|
+
var import_ecma402_abstract6 = __toESM(require_ecma402_abstract());
|
|
2968
|
+
|
|
1103
2969
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/skeleton.js
|
|
2970
|
+
var import_tslib2 = __toESM(require_tslib());
|
|
2971
|
+
var import_ecma402_abstract5 = __toESM(require_ecma402_abstract());
|
|
1104
2972
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1105
2973
|
var expPatternTrimmer = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
1106
2974
|
function matchSkeletonPattern(match2, result) {
|
|
@@ -1277,8 +3145,8 @@
|
|
|
1277
3145
|
patternParts: []
|
|
1278
3146
|
};
|
|
1279
3147
|
var _a = processDateTimePattern(rawPattern_1, intervalResult), pattern_1 = _a[0], pattern12_1 = _a[1];
|
|
1280
|
-
result.rangePatterns[key] = __assign(__assign({}, intervalResult), { patternParts: splitRangePattern(pattern_1) });
|
|
1281
|
-
result.rangePatterns12[key] = __assign(__assign({}, intervalResult), { patternParts: splitRangePattern(pattern12_1) });
|
|
3148
|
+
result.rangePatterns[key] = (0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, intervalResult), { patternParts: splitRangePattern(pattern_1) });
|
|
3149
|
+
result.rangePatterns12[key] = (0, import_tslib2.__assign)((0, import_tslib2.__assign)({}, intervalResult), { patternParts: splitRangePattern(pattern12_1) });
|
|
1282
3150
|
}
|
|
1283
3151
|
}
|
|
1284
3152
|
if (intervalFormatFallback) {
|
|
@@ -1304,17 +3172,17 @@
|
|
|
1304
3172
|
switch (pattern2) {
|
|
1305
3173
|
case "{0}":
|
|
1306
3174
|
return {
|
|
1307
|
-
source: RangePatternType.startRange,
|
|
3175
|
+
source: import_ecma402_abstract5.RangePatternType.startRange,
|
|
1308
3176
|
pattern: pattern2
|
|
1309
3177
|
};
|
|
1310
3178
|
case "{1}":
|
|
1311
3179
|
return {
|
|
1312
|
-
source: RangePatternType.endRange,
|
|
3180
|
+
source: import_ecma402_abstract5.RangePatternType.endRange,
|
|
1313
3181
|
pattern: pattern2
|
|
1314
3182
|
};
|
|
1315
3183
|
default:
|
|
1316
3184
|
return {
|
|
1317
|
-
source: RangePatternType.shared,
|
|
3185
|
+
source: import_ecma402_abstract5.RangePatternType.shared,
|
|
1318
3186
|
pattern: pattern2
|
|
1319
3187
|
};
|
|
1320
3188
|
}
|
|
@@ -1336,18 +3204,18 @@
|
|
|
1336
3204
|
if (!splitIndex) {
|
|
1337
3205
|
return [
|
|
1338
3206
|
{
|
|
1339
|
-
source: RangePatternType.startRange,
|
|
3207
|
+
source: import_ecma402_abstract5.RangePatternType.startRange,
|
|
1340
3208
|
pattern: pattern
|
|
1341
3209
|
}
|
|
1342
3210
|
];
|
|
1343
3211
|
}
|
|
1344
3212
|
return [
|
|
1345
3213
|
{
|
|
1346
|
-
source: RangePatternType.startRange,
|
|
3214
|
+
source: import_ecma402_abstract5.RangePatternType.startRange,
|
|
1347
3215
|
pattern: pattern.slice(0, splitIndex)
|
|
1348
3216
|
},
|
|
1349
3217
|
{
|
|
1350
|
-
source: RangePatternType.endRange,
|
|
3218
|
+
source: import_ecma402_abstract5.RangePatternType.endRange,
|
|
1351
3219
|
pattern: pattern.slice(splitIndex)
|
|
1352
3220
|
}
|
|
1353
3221
|
];
|
|
@@ -1397,7 +3265,7 @@
|
|
|
1397
3265
|
function BestFitFormatMatcher(options, formats) {
|
|
1398
3266
|
var bestScore = -Infinity;
|
|
1399
3267
|
var bestFormat = formats[0];
|
|
1400
|
-
invariant(Array.isArray(formats), "formats should be a list of things");
|
|
3268
|
+
(0, import_ecma402_abstract6.invariant)(Array.isArray(formats), "formats should be a list of things");
|
|
1401
3269
|
for (var _i = 0, formats_1 = formats; _i < formats_1.length; _i++) {
|
|
1402
3270
|
var format = formats_1[_i];
|
|
1403
3271
|
var score = bestFitFormatMatcherScore(options, format);
|
|
@@ -1406,7 +3274,7 @@
|
|
|
1406
3274
|
bestFormat = format;
|
|
1407
3275
|
}
|
|
1408
3276
|
}
|
|
1409
|
-
var skeletonFormat = __assign({}, bestFormat);
|
|
3277
|
+
var skeletonFormat = (0, import_tslib3.__assign)({}, bestFormat);
|
|
1410
3278
|
var patternFormat = { rawPattern: bestFormat.rawPattern };
|
|
1411
3279
|
processDateTimePattern(bestFormat.rawPattern, patternFormat);
|
|
1412
3280
|
for (var prop in skeletonFormat) {
|
|
@@ -1436,14 +3304,15 @@
|
|
|
1436
3304
|
}
|
|
1437
3305
|
|
|
1438
3306
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/DateTimeStyleFormat.js
|
|
3307
|
+
var import_ecma402_abstract7 = __toESM(require_ecma402_abstract());
|
|
1439
3308
|
function DateTimeStyleFormat(dateStyle, timeStyle, dataLocaleData) {
|
|
1440
3309
|
var dateFormat, timeFormat;
|
|
1441
3310
|
if (timeStyle !== void 0) {
|
|
1442
|
-
invariant(timeStyle === "full" || timeStyle === "long" || timeStyle === "medium" || timeStyle === "short", "invalid timeStyle");
|
|
3311
|
+
(0, import_ecma402_abstract7.invariant)(timeStyle === "full" || timeStyle === "long" || timeStyle === "medium" || timeStyle === "short", "invalid timeStyle");
|
|
1443
3312
|
timeFormat = dataLocaleData.timeFormat[timeStyle];
|
|
1444
3313
|
}
|
|
1445
3314
|
if (dateStyle !== void 0) {
|
|
1446
|
-
invariant(dateStyle === "full" || dateStyle === "long" || dateStyle === "medium" || dateStyle === "short", "invalid dateStyle");
|
|
3315
|
+
(0, import_ecma402_abstract7.invariant)(dateStyle === "full" || dateStyle === "long" || dateStyle === "medium" || dateStyle === "short", "invalid dateStyle");
|
|
1447
3316
|
dateFormat = dataLocaleData.dateFormat[dateStyle];
|
|
1448
3317
|
}
|
|
1449
3318
|
if (dateStyle !== void 0 && timeStyle !== void 0) {
|
|
@@ -1470,16 +3339,17 @@
|
|
|
1470
3339
|
if (timeStyle !== void 0) {
|
|
1471
3340
|
return timeFormat;
|
|
1472
3341
|
}
|
|
1473
|
-
invariant(dateStyle !== void 0, "dateStyle should not be undefined");
|
|
3342
|
+
(0, import_ecma402_abstract7.invariant)(dateStyle !== void 0, "dateStyle should not be undefined");
|
|
1474
3343
|
return dateFormat;
|
|
1475
3344
|
}
|
|
1476
3345
|
|
|
1477
3346
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToDateTimeOptions.js
|
|
3347
|
+
var import_ecma402_abstract8 = __toESM(require_ecma402_abstract());
|
|
1478
3348
|
function ToDateTimeOptions(options, required, defaults) {
|
|
1479
3349
|
if (options === void 0) {
|
|
1480
3350
|
options = null;
|
|
1481
3351
|
} else {
|
|
1482
|
-
options = ToObject(options);
|
|
3352
|
+
options = (0, import_ecma402_abstract8.ToObject)(options);
|
|
1483
3353
|
}
|
|
1484
3354
|
options = Object.create(options);
|
|
1485
3355
|
var needDefaults = true;
|
|
@@ -1532,6 +3402,7 @@
|
|
|
1532
3402
|
}
|
|
1533
3403
|
|
|
1534
3404
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/InitializeDateTimeFormat.js
|
|
3405
|
+
var import_intl_localematcher = __toESM(require_intl_localematcher());
|
|
1535
3406
|
function isTimeRelated(opt) {
|
|
1536
3407
|
for (var _i = 0, _a = ["hour", "minute", "second"]; _i < _a.length; _i++) {
|
|
1537
3408
|
var prop = _a[_i];
|
|
@@ -1554,7 +3425,7 @@
|
|
|
1554
3425
|
hc = "h12";
|
|
1555
3426
|
}
|
|
1556
3427
|
} else {
|
|
1557
|
-
invariant(!hour12, "hour12 must not be set");
|
|
3428
|
+
(0, import_ecma402_abstract9.invariant)(!hour12, "hour12 must not be set");
|
|
1558
3429
|
if (hcDefault === "h11" || hcDefault === "h23") {
|
|
1559
3430
|
hc = "h23";
|
|
1560
3431
|
} else {
|
|
@@ -1567,29 +3438,29 @@
|
|
|
1567
3438
|
var TYPE_REGEX = /^[a-z0-9]{3,8}$/i;
|
|
1568
3439
|
function InitializeDateTimeFormat(dtf, locales, opts, _a) {
|
|
1569
3440
|
var getInternalSlots2 = _a.getInternalSlots, availableLocales = _a.availableLocales, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getDefaultTimeZone = _a.getDefaultTimeZone, relevantExtensionKeys = _a.relevantExtensionKeys, tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
1570
|
-
var requestedLocales = CanonicalizeLocaleList(locales);
|
|
3441
|
+
var requestedLocales = (0, import_ecma402_abstract9.CanonicalizeLocaleList)(locales);
|
|
1571
3442
|
var options = ToDateTimeOptions(opts, "any", "date");
|
|
1572
3443
|
var opt = /* @__PURE__ */ Object.create(null);
|
|
1573
|
-
var matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
3444
|
+
var matcher = (0, import_ecma402_abstract9.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
1574
3445
|
opt.localeMatcher = matcher;
|
|
1575
|
-
var calendar = GetOption(options, "calendar", "string", void 0, void 0);
|
|
3446
|
+
var calendar = (0, import_ecma402_abstract9.GetOption)(options, "calendar", "string", void 0, void 0);
|
|
1576
3447
|
if (calendar !== void 0 && !TYPE_REGEX.test(calendar)) {
|
|
1577
3448
|
throw new RangeError("Malformed calendar");
|
|
1578
3449
|
}
|
|
1579
3450
|
var internalSlots = getInternalSlots2(dtf);
|
|
1580
3451
|
opt.ca = calendar;
|
|
1581
|
-
var numberingSystem = GetOption(options, "numberingSystem", "string", void 0, void 0);
|
|
3452
|
+
var numberingSystem = (0, import_ecma402_abstract9.GetOption)(options, "numberingSystem", "string", void 0, void 0);
|
|
1582
3453
|
if (numberingSystem !== void 0 && !TYPE_REGEX.test(numberingSystem)) {
|
|
1583
3454
|
throw new RangeError("Malformed numbering system");
|
|
1584
3455
|
}
|
|
1585
3456
|
opt.nu = numberingSystem;
|
|
1586
|
-
var hour12 = GetOption(options, "hour12", "boolean", void 0, void 0);
|
|
1587
|
-
var hourCycle = GetOption(options, "hourCycle", "string", ["h11", "h12", "h23", "h24"], void 0);
|
|
3457
|
+
var hour12 = (0, import_ecma402_abstract9.GetOption)(options, "hour12", "boolean", void 0, void 0);
|
|
3458
|
+
var hourCycle = (0, import_ecma402_abstract9.GetOption)(options, "hourCycle", "string", ["h11", "h12", "h23", "h24"], void 0);
|
|
1588
3459
|
if (hour12 !== void 0) {
|
|
1589
3460
|
hourCycle = null;
|
|
1590
3461
|
}
|
|
1591
3462
|
opt.hc = hourCycle;
|
|
1592
|
-
var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
|
3463
|
+
var r = (0, import_intl_localematcher.ResolveLocale)(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
|
1593
3464
|
internalSlots.locale = r.locale;
|
|
1594
3465
|
calendar = r.ca;
|
|
1595
3466
|
internalSlots.calendar = calendar;
|
|
@@ -1600,35 +3471,35 @@
|
|
|
1600
3471
|
var timeZone = options.timeZone;
|
|
1601
3472
|
if (timeZone !== void 0) {
|
|
1602
3473
|
timeZone = String(timeZone);
|
|
1603
|
-
if (!IsValidTimeZoneName(timeZone, { tzData: tzData, uppercaseLinks: uppercaseLinks })) {
|
|
3474
|
+
if (!(0, import_ecma402_abstract9.IsValidTimeZoneName)(timeZone, { tzData: tzData, uppercaseLinks: uppercaseLinks })) {
|
|
1604
3475
|
throw new RangeError("Invalid timeZoneName");
|
|
1605
3476
|
}
|
|
1606
|
-
timeZone = CanonicalizeTimeZoneName(timeZone, { tzData: tzData, uppercaseLinks: uppercaseLinks });
|
|
3477
|
+
timeZone = (0, import_ecma402_abstract9.CanonicalizeTimeZoneName)(timeZone, { tzData: tzData, uppercaseLinks: uppercaseLinks });
|
|
1607
3478
|
} else {
|
|
1608
3479
|
timeZone = getDefaultTimeZone();
|
|
1609
3480
|
}
|
|
1610
3481
|
internalSlots.timeZone = timeZone;
|
|
1611
3482
|
opt = /* @__PURE__ */ Object.create(null);
|
|
1612
|
-
opt.weekday = GetOption(options, "weekday", "string", ["narrow", "short", "long"], void 0);
|
|
1613
|
-
opt.era = GetOption(options, "era", "string", ["narrow", "short", "long"], void 0);
|
|
1614
|
-
opt.year = GetOption(options, "year", "string", ["2-digit", "numeric"], void 0);
|
|
1615
|
-
opt.month = GetOption(options, "month", "string", ["2-digit", "numeric", "narrow", "short", "long"], void 0);
|
|
1616
|
-
opt.day = GetOption(options, "day", "string", ["2-digit", "numeric"], void 0);
|
|
1617
|
-
opt.hour = GetOption(options, "hour", "string", ["2-digit", "numeric"], void 0);
|
|
1618
|
-
opt.minute = GetOption(options, "minute", "string", ["2-digit", "numeric"], void 0);
|
|
1619
|
-
opt.second = GetOption(options, "second", "string", ["2-digit", "numeric"], void 0);
|
|
1620
|
-
opt.timeZoneName = GetOption(options, "timeZoneName", "string", ["short", "long"], void 0);
|
|
1621
|
-
opt.fractionalSecondDigits = GetNumberOption(options, "fractionalSecondDigits", 1, 3, void 0);
|
|
3483
|
+
opt.weekday = (0, import_ecma402_abstract9.GetOption)(options, "weekday", "string", ["narrow", "short", "long"], void 0);
|
|
3484
|
+
opt.era = (0, import_ecma402_abstract9.GetOption)(options, "era", "string", ["narrow", "short", "long"], void 0);
|
|
3485
|
+
opt.year = (0, import_ecma402_abstract9.GetOption)(options, "year", "string", ["2-digit", "numeric"], void 0);
|
|
3486
|
+
opt.month = (0, import_ecma402_abstract9.GetOption)(options, "month", "string", ["2-digit", "numeric", "narrow", "short", "long"], void 0);
|
|
3487
|
+
opt.day = (0, import_ecma402_abstract9.GetOption)(options, "day", "string", ["2-digit", "numeric"], void 0);
|
|
3488
|
+
opt.hour = (0, import_ecma402_abstract9.GetOption)(options, "hour", "string", ["2-digit", "numeric"], void 0);
|
|
3489
|
+
opt.minute = (0, import_ecma402_abstract9.GetOption)(options, "minute", "string", ["2-digit", "numeric"], void 0);
|
|
3490
|
+
opt.second = (0, import_ecma402_abstract9.GetOption)(options, "second", "string", ["2-digit", "numeric"], void 0);
|
|
3491
|
+
opt.timeZoneName = (0, import_ecma402_abstract9.GetOption)(options, "timeZoneName", "string", ["short", "long"], void 0);
|
|
3492
|
+
opt.fractionalSecondDigits = (0, import_ecma402_abstract9.GetNumberOption)(options, "fractionalSecondDigits", 1, 3, void 0);
|
|
1622
3493
|
var dataLocaleData = localeData[dataLocale];
|
|
1623
|
-
invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
|
|
3494
|
+
(0, import_ecma402_abstract9.invariant)(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
|
|
1624
3495
|
var formats = dataLocaleData.formats[calendar];
|
|
1625
3496
|
if (!formats) {
|
|
1626
3497
|
throw new RangeError('Calendar "'.concat(calendar, '" is not supported. Try setting "calendar" to 1 of the following: ').concat(Object.keys(dataLocaleData.formats).join(", ")));
|
|
1627
3498
|
}
|
|
1628
|
-
var formatMatcher = GetOption(options, "formatMatcher", "string", ["basic", "best fit"], "best fit");
|
|
1629
|
-
var dateStyle = GetOption(options, "dateStyle", "string", ["full", "long", "medium", "short"], void 0);
|
|
3499
|
+
var formatMatcher = (0, import_ecma402_abstract9.GetOption)(options, "formatMatcher", "string", ["basic", "best fit"], "best fit");
|
|
3500
|
+
var dateStyle = (0, import_ecma402_abstract9.GetOption)(options, "dateStyle", "string", ["full", "long", "medium", "short"], void 0);
|
|
1630
3501
|
internalSlots.dateStyle = dateStyle;
|
|
1631
|
-
var timeStyle = GetOption(options, "timeStyle", "string", ["full", "long", "medium", "short"], void 0);
|
|
3502
|
+
var timeStyle = (0, import_ecma402_abstract9.GetOption)(options, "timeStyle", "string", ["full", "long", "medium", "short"], void 0);
|
|
1632
3503
|
internalSlots.timeStyle = timeStyle;
|
|
1633
3504
|
var bestFormat;
|
|
1634
3505
|
if (dateStyle === void 0 && timeStyle === void 0) {
|
|
@@ -1681,9 +3552,10 @@
|
|
|
1681
3552
|
}
|
|
1682
3553
|
|
|
1683
3554
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeToParts.js
|
|
3555
|
+
var import_ecma402_abstract10 = __toESM(require_ecma402_abstract());
|
|
1684
3556
|
function FormatDateTimeToParts(dtf, x, implDetails) {
|
|
1685
3557
|
var parts = PartitionDateTimePattern(dtf, x, implDetails);
|
|
1686
|
-
var result = ArrayCreate(0);
|
|
3558
|
+
var result = (0, import_ecma402_abstract10.ArrayCreate)(0);
|
|
1687
3559
|
for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
|
|
1688
3560
|
var part = parts_1[_i];
|
|
1689
3561
|
result.push({
|
|
@@ -1695,6 +3567,7 @@
|
|
|
1695
3567
|
}
|
|
1696
3568
|
|
|
1697
3569
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimeRangePattern.js
|
|
3570
|
+
var import_ecma402_abstract11 = __toESM(require_ecma402_abstract());
|
|
1698
3571
|
var TABLE_2_FIELDS = [
|
|
1699
3572
|
"era",
|
|
1700
3573
|
"year",
|
|
@@ -1708,11 +3581,11 @@
|
|
|
1708
3581
|
"fractionalSecondDigits"
|
|
1709
3582
|
];
|
|
1710
3583
|
function PartitionDateTimeRangePattern(dtf, x, y, implDetails) {
|
|
1711
|
-
x = TimeClip(x);
|
|
3584
|
+
x = (0, import_ecma402_abstract11.TimeClip)(x);
|
|
1712
3585
|
if (isNaN(x)) {
|
|
1713
3586
|
throw new RangeError("Invalid start time");
|
|
1714
3587
|
}
|
|
1715
|
-
y = TimeClip(y);
|
|
3588
|
+
y = (0, import_ecma402_abstract11.TimeClip)(y);
|
|
1716
3589
|
if (isNaN(y)) {
|
|
1717
3590
|
throw new RangeError("Invalid end time");
|
|
1718
3591
|
}
|
|
@@ -1746,13 +3619,13 @@
|
|
|
1746
3619
|
}
|
|
1747
3620
|
var v1 = Math.floor(tm1.millisecond * Math.pow(10, fractionalSecondDigits - 3));
|
|
1748
3621
|
var v2 = Math.floor(tm2.millisecond * Math.pow(10, fractionalSecondDigits - 3));
|
|
1749
|
-
if (!SameValue(v1, v2)) {
|
|
3622
|
+
if (!(0, import_ecma402_abstract11.SameValue)(v1, v2)) {
|
|
1750
3623
|
dateFieldsPracticallyEqual = false;
|
|
1751
3624
|
}
|
|
1752
3625
|
} else {
|
|
1753
3626
|
var v1 = tm1[fieldName];
|
|
1754
3627
|
var v2 = tm2[fieldName];
|
|
1755
|
-
if (!SameValue(v1, v2)) {
|
|
3628
|
+
if (!(0, import_ecma402_abstract11.SameValue)(v1, v2)) {
|
|
1756
3629
|
dateFieldsPracticallyEqual = false;
|
|
1757
3630
|
}
|
|
1758
3631
|
}
|
|
@@ -1760,10 +3633,10 @@
|
|
|
1760
3633
|
}
|
|
1761
3634
|
}
|
|
1762
3635
|
if (dateFieldsPracticallyEqual) {
|
|
1763
|
-
var result_2 = FormatDateTimePattern(dtf, PartitionPattern(pattern), x, implDetails);
|
|
3636
|
+
var result_2 = FormatDateTimePattern(dtf, (0, import_ecma402_abstract11.PartitionPattern)(pattern), x, implDetails);
|
|
1764
3637
|
for (var _a = 0, result_1 = result_2; _a < result_1.length; _a++) {
|
|
1765
3638
|
var r = result_1[_a];
|
|
1766
|
-
r.source = RangePatternType.shared;
|
|
3639
|
+
r.source = import_ecma402_abstract11.RangePatternType.shared;
|
|
1767
3640
|
}
|
|
1768
3641
|
return result_2;
|
|
1769
3642
|
}
|
|
@@ -1781,12 +3654,12 @@
|
|
|
1781
3654
|
var rangePatternPart = _e[_d];
|
|
1782
3655
|
var source = rangePatternPart.source, pattern_1 = rangePatternPart.pattern;
|
|
1783
3656
|
var z = void 0;
|
|
1784
|
-
if (source === RangePatternType.startRange || source === RangePatternType.shared) {
|
|
3657
|
+
if (source === import_ecma402_abstract11.RangePatternType.startRange || source === import_ecma402_abstract11.RangePatternType.shared) {
|
|
1785
3658
|
z = x;
|
|
1786
3659
|
} else {
|
|
1787
3660
|
z = y;
|
|
1788
3661
|
}
|
|
1789
|
-
var patternParts = PartitionPattern(pattern_1);
|
|
3662
|
+
var patternParts = (0, import_ecma402_abstract11.PartitionPattern)(pattern_1);
|
|
1790
3663
|
var partResult = FormatDateTimePattern(dtf, patternParts, z, implDetails);
|
|
1791
3664
|
for (var _f = 0, partResult_1 = partResult; _f < partResult_1.length; _f++) {
|
|
1792
3665
|
var r = partResult_1[_f];
|
|
@@ -1850,7 +3723,7 @@
|
|
|
1850
3723
|
enumerable: false,
|
|
1851
3724
|
configurable: true,
|
|
1852
3725
|
get: function() {
|
|
1853
|
-
if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat, this)) {
|
|
3726
|
+
if (typeof this !== "object" || !(0, import_ecma402_abstract12.OrdinaryHasInstance)(DateTimeFormat, this)) {
|
|
1854
3727
|
throw TypeError("Intl.DateTimeFormat format property accessor called on incompatible receiver");
|
|
1855
3728
|
}
|
|
1856
3729
|
var internalSlots = getInternalSlots(this);
|
|
@@ -1895,7 +3768,7 @@
|
|
|
1895
3768
|
} catch (e) {
|
|
1896
3769
|
}
|
|
1897
3770
|
var DateTimeFormat = function(locales, options) {
|
|
1898
|
-
if (!this || !OrdinaryHasInstance(DateTimeFormat, this)) {
|
|
3771
|
+
if (!this || !(0, import_ecma402_abstract12.OrdinaryHasInstance)(DateTimeFormat, this)) {
|
|
1899
3772
|
return new DateTimeFormat(locales, options);
|
|
1900
3773
|
}
|
|
1901
3774
|
InitializeDateTimeFormat(this, locales, options, {
|
|
@@ -1911,16 +3784,16 @@
|
|
|
1911
3784
|
var internalSlots = getInternalSlots(this);
|
|
1912
3785
|
var dataLocale = internalSlots.dataLocale;
|
|
1913
3786
|
var dataLocaleData = DateTimeFormat.localeData[dataLocale];
|
|
1914
|
-
invariant(dataLocaleData !== void 0, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
3787
|
+
(0, import_ecma402_abstract12.invariant)(dataLocaleData !== void 0, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
1915
3788
|
};
|
|
1916
|
-
defineProperty(DateTimeFormat, "supportedLocalesOf", {
|
|
3789
|
+
(0, import_ecma402_abstract12.defineProperty)(DateTimeFormat, "supportedLocalesOf", {
|
|
1917
3790
|
value: function supportedLocalesOf(locales, options) {
|
|
1918
|
-
return SupportedLocales(DateTimeFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
3791
|
+
return (0, import_ecma402_abstract12.SupportedLocales)(DateTimeFormat.availableLocales, (0, import_ecma402_abstract12.CanonicalizeLocaleList)(locales), options);
|
|
1919
3792
|
}
|
|
1920
3793
|
});
|
|
1921
|
-
defineProperty(DateTimeFormat.prototype, "resolvedOptions", {
|
|
3794
|
+
(0, import_ecma402_abstract12.defineProperty)(DateTimeFormat.prototype, "resolvedOptions", {
|
|
1922
3795
|
value: function resolvedOptions() {
|
|
1923
|
-
if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat, this)) {
|
|
3796
|
+
if (typeof this !== "object" || !(0, import_ecma402_abstract12.OrdinaryHasInstance)(DateTimeFormat, this)) {
|
|
1924
3797
|
throw TypeError("Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver");
|
|
1925
3798
|
}
|
|
1926
3799
|
var internalSlots = getInternalSlots(this);
|
|
@@ -1946,12 +3819,12 @@
|
|
|
1946
3819
|
return ro;
|
|
1947
3820
|
}
|
|
1948
3821
|
});
|
|
1949
|
-
defineProperty(DateTimeFormat.prototype, "formatToParts", {
|
|
3822
|
+
(0, import_ecma402_abstract12.defineProperty)(DateTimeFormat.prototype, "formatToParts", {
|
|
1950
3823
|
value: function formatToParts(date) {
|
|
1951
3824
|
if (date === void 0) {
|
|
1952
3825
|
date = Date.now();
|
|
1953
3826
|
} else {
|
|
1954
|
-
date = ToNumber(date);
|
|
3827
|
+
date = (0, import_ecma402_abstract12.ToNumber)(date);
|
|
1955
3828
|
}
|
|
1956
3829
|
return FormatDateTimeToParts(this, date, {
|
|
1957
3830
|
getInternalSlots: getInternalSlots,
|
|
@@ -1961,7 +3834,7 @@
|
|
|
1961
3834
|
});
|
|
1962
3835
|
}
|
|
1963
3836
|
});
|
|
1964
|
-
defineProperty(DateTimeFormat.prototype, "formatRangeToParts", {
|
|
3837
|
+
(0, import_ecma402_abstract12.defineProperty)(DateTimeFormat.prototype, "formatRangeToParts", {
|
|
1965
3838
|
value: function formatRangeToParts(startDate, endDate) {
|
|
1966
3839
|
var dtf = this;
|
|
1967
3840
|
if (typeof dtf !== "object") {
|
|
@@ -1970,8 +3843,8 @@
|
|
|
1970
3843
|
if (startDate === void 0 || endDate === void 0) {
|
|
1971
3844
|
throw new TypeError("startDate/endDate cannot be undefined");
|
|
1972
3845
|
}
|
|
1973
|
-
var x = ToNumber(startDate);
|
|
1974
|
-
var y = ToNumber(endDate);
|
|
3846
|
+
var x = (0, import_ecma402_abstract12.ToNumber)(startDate);
|
|
3847
|
+
var y = (0, import_ecma402_abstract12.ToNumber)(endDate);
|
|
1975
3848
|
return FormatDateTimeRangeToParts(dtf, x, y, {
|
|
1976
3849
|
getInternalSlots: getInternalSlots,
|
|
1977
3850
|
localeData: DateTimeFormat.localeData,
|
|
@@ -1980,7 +3853,7 @@
|
|
|
1980
3853
|
});
|
|
1981
3854
|
}
|
|
1982
3855
|
});
|
|
1983
|
-
defineProperty(DateTimeFormat.prototype, "formatRange", {
|
|
3856
|
+
(0, import_ecma402_abstract12.defineProperty)(DateTimeFormat.prototype, "formatRange", {
|
|
1984
3857
|
value: function formatRange(startDate, endDate) {
|
|
1985
3858
|
var dtf = this;
|
|
1986
3859
|
if (typeof dtf !== "object") {
|
|
@@ -1989,8 +3862,8 @@
|
|
|
1989
3862
|
if (startDate === void 0 || endDate === void 0) {
|
|
1990
3863
|
throw new TypeError("startDate/endDate cannot be undefined");
|
|
1991
3864
|
}
|
|
1992
|
-
var x = ToNumber(startDate);
|
|
1993
|
-
var y = ToNumber(endDate);
|
|
3865
|
+
var x = (0, import_ecma402_abstract12.ToNumber)(startDate);
|
|
3866
|
+
var y = (0, import_ecma402_abstract12.ToNumber)(endDate);
|
|
1994
3867
|
return FormatDateTimeRange(dtf, x, y, {
|
|
1995
3868
|
getInternalSlots: getInternalSlots,
|
|
1996
3869
|
localeData: DateTimeFormat.localeData,
|
|
@@ -2003,13 +3876,13 @@
|
|
|
2003
3876
|
DateTimeFormat.__setDefaultTimeZone = function(timeZone) {
|
|
2004
3877
|
if (timeZone !== void 0) {
|
|
2005
3878
|
timeZone = String(timeZone);
|
|
2006
|
-
if (!IsValidTimeZoneName(timeZone, {
|
|
3879
|
+
if (!(0, import_ecma402_abstract12.IsValidTimeZoneName)(timeZone, {
|
|
2007
3880
|
tzData: DateTimeFormat.tzData,
|
|
2008
3881
|
uppercaseLinks: UPPERCASED_LINKS
|
|
2009
3882
|
})) {
|
|
2010
3883
|
throw new RangeError("Invalid timeZoneName");
|
|
2011
3884
|
}
|
|
2012
|
-
timeZone = CanonicalizeTimeZoneName(timeZone, {
|
|
3885
|
+
timeZone = (0, import_ecma402_abstract12.CanonicalizeTimeZoneName)(timeZone, {
|
|
2013
3886
|
tzData: DateTimeFormat.tzData,
|
|
2014
3887
|
uppercaseLinks: UPPERCASED_LINKS
|
|
2015
3888
|
});
|
|
@@ -2029,8 +3902,8 @@
|
|
|
2029
3902
|
data[_i] = arguments[_i];
|
|
2030
3903
|
}
|
|
2031
3904
|
var _loop_1 = function(d2, locale2) {
|
|
2032
|
-
var dateFormat = d2.dateFormat, timeFormat = d2.timeFormat, dateTimeFormat = d2.dateTimeFormat, formats = d2.formats, intervalFormats = d2.intervalFormats, rawData = __rest(d2, ["dateFormat", "timeFormat", "dateTimeFormat", "formats", "intervalFormats"]);
|
|
2033
|
-
var processedData = __assign(__assign({}, rawData), { dateFormat: {
|
|
3905
|
+
var dateFormat = d2.dateFormat, timeFormat = d2.timeFormat, dateTimeFormat = d2.dateTimeFormat, formats = d2.formats, intervalFormats = d2.intervalFormats, rawData = (0, import_tslib4.__rest)(d2, ["dateFormat", "timeFormat", "dateTimeFormat", "formats", "intervalFormats"]);
|
|
3906
|
+
var processedData = (0, import_tslib4.__assign)((0, import_tslib4.__assign)({}, rawData), { dateFormat: {
|
|
2034
3907
|
full: parseDateTimeSkeleton(dateFormat.full),
|
|
2035
3908
|
long: parseDateTimeSkeleton(dateFormat.long),
|
|
2036
3909
|
medium: parseDateTimeSkeleton(dateFormat.medium),
|
|
@@ -2097,6 +3970,12 @@
|
|
|
2097
3970
|
} catch (e) {
|
|
2098
3971
|
}
|
|
2099
3972
|
|
|
3973
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/polyfill.js
|
|
3974
|
+
var import_ecma402_abstract13 = __toESM(require_ecma402_abstract());
|
|
3975
|
+
|
|
3976
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/should-polyfill.js
|
|
3977
|
+
var import_intl_localematcher2 = __toESM(require_intl_localematcher());
|
|
3978
|
+
|
|
2100
3979
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/supported-locales.js
|
|
2101
3980
|
var supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
|
|
2102
3981
|
|
|
@@ -2142,7 +4021,7 @@
|
|
|
2142
4021
|
locale = "en";
|
|
2143
4022
|
}
|
|
2144
4023
|
if (!("DateTimeFormat" in Intl) || !("formatToParts" in Intl.DateTimeFormat.prototype) || !("formatRange" in Intl.DateTimeFormat.prototype) || hasChromeLt71Bug() || hasUnthrownDateTimeStyleBug() || !supportsDateStyle() || !supportedLocalesOf2(locale)) {
|
|
2145
|
-
return locale ? match([locale], supportedLocales, "en") : void 0;
|
|
4024
|
+
return locale ? (0, import_intl_localematcher2.match)([locale], supportedLocales, "en") : void 0;
|
|
2146
4025
|
}
|
|
2147
4026
|
}
|
|
2148
4027
|
|
|
@@ -2162,8 +4041,8 @@
|
|
|
2162
4041
|
|
|
2163
4042
|
// bazel-out/darwin-fastbuild/bin/packages/intl-datetimeformat/lib/polyfill.js
|
|
2164
4043
|
if (shouldPolyfill()) {
|
|
2165
|
-
defineProperty(Intl, "DateTimeFormat", { value: DateTimeFormat });
|
|
2166
|
-
defineProperty(Date.prototype, "toLocaleString", {
|
|
4044
|
+
(0, import_ecma402_abstract13.defineProperty)(Intl, "DateTimeFormat", { value: DateTimeFormat });
|
|
4045
|
+
(0, import_ecma402_abstract13.defineProperty)(Date.prototype, "toLocaleString", {
|
|
2167
4046
|
value: function toLocaleString2(locales, options) {
|
|
2168
4047
|
try {
|
|
2169
4048
|
return toLocaleString(this, locales, options);
|
|
@@ -2172,7 +4051,7 @@
|
|
|
2172
4051
|
}
|
|
2173
4052
|
}
|
|
2174
4053
|
});
|
|
2175
|
-
defineProperty(Date.prototype, "toLocaleDateString", {
|
|
4054
|
+
(0, import_ecma402_abstract13.defineProperty)(Date.prototype, "toLocaleDateString", {
|
|
2176
4055
|
value: function toLocaleDateString2(locales, options) {
|
|
2177
4056
|
try {
|
|
2178
4057
|
return toLocaleDateString(this, locales, options);
|
|
@@ -2181,7 +4060,7 @@
|
|
|
2181
4060
|
}
|
|
2182
4061
|
}
|
|
2183
4062
|
});
|
|
2184
|
-
defineProperty(Date.prototype, "toLocaleTimeString", {
|
|
4063
|
+
(0, import_ecma402_abstract13.defineProperty)(Date.prototype, "toLocaleTimeString", {
|
|
2185
4064
|
value: function toLocaleTimeString2(locales, options) {
|
|
2186
4065
|
try {
|
|
2187
4066
|
return toLocaleTimeString(this, locales, options);
|
|
@@ -2192,18 +4071,4 @@
|
|
|
2192
4071
|
});
|
|
2193
4072
|
}
|
|
2194
4073
|
})();
|
|
2195
|
-
/*! *****************************************************************************
|
|
2196
|
-
Copyright (c) Microsoft Corporation.
|
|
2197
|
-
|
|
2198
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2199
|
-
purpose with or without fee is hereby granted.
|
|
2200
|
-
|
|
2201
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2202
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2203
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2204
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2205
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2206
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2207
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2208
|
-
***************************************************************************** */
|
|
2209
4074
|
//# sourceMappingURL=polyfill.iife.js.map
|