intl-messageformat 10.3.3 → 10.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,501 +1,25 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
23
3
  var __publicField = (obj, key, value) => {
24
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
25
5
  return value;
26
6
  };
27
7
 
28
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js
29
- var require_tslib = __commonJS({
30
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js"(exports, module) {
31
- var __extends2;
32
- var __assign2;
33
- var __rest2;
34
- var __decorate2;
35
- var __param2;
36
- var __metadata2;
37
- var __awaiter2;
38
- var __generator2;
39
- var __exportStar2;
40
- var __values2;
41
- var __read2;
42
- var __spread2;
43
- var __spreadArrays2;
44
- var __spreadArray2;
45
- var __await2;
46
- var __asyncGenerator2;
47
- var __asyncDelegator2;
48
- var __asyncValues2;
49
- var __makeTemplateObject2;
50
- var __importStar2;
51
- var __importDefault2;
52
- var __classPrivateFieldGet2;
53
- var __classPrivateFieldSet2;
54
- var __classPrivateFieldIn2;
55
- var __createBinding2;
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
- __extends2 = 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
- __assign2 = 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
- __decorate2 = 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
- __param2 = function(paramIndex, decorator) {
128
- return function(target, key) {
129
- decorator(target, key, paramIndex);
130
- };
131
- };
132
- __metadata2 = function(metadataKey, metadataValue) {
133
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
134
- return Reflect.metadata(metadataKey, metadataValue);
135
- };
136
- __awaiter2 = 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
- __generator2 = 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
- __exportStar2 = function(m, o) {
240
- for (var p in m)
241
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
242
- __createBinding2(o, m, p);
243
- };
244
- __createBinding2 = 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
- __values2 = 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
- __read2 = 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 };
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
- __spread2 = function() {
295
- for (var ar = [], i = 0; i < arguments.length; i++)
296
- ar = ar.concat(__read2(arguments[i]));
297
- return ar;
298
- };
299
- __spreadArrays2 = 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
- __spreadArray2 = 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
- __await2 = function(v) {
319
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
320
- };
321
- __asyncGenerator2 = 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 __await2 ? 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
- __asyncDelegator2 = 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: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v;
367
- } : f;
368
- }
369
- };
370
- __asyncValues2 = 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 __values2 === "function" ? __values2(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
- __makeTemplateObject2 = 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
- __importStar2 = 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
- __createBinding2(result, mod, k);
411
- }
412
- __setModuleDefault(result, mod);
413
- return result;
414
- };
415
- __importDefault2 = function(mod) {
416
- return mod && mod.__esModule ? mod : { "default": mod };
417
- };
418
- __classPrivateFieldGet2 = 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
- __classPrivateFieldSet2 = 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
- __classPrivateFieldIn2 = 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", __extends2);
440
- exporter("__assign", __assign2);
441
- exporter("__rest", __rest2);
442
- exporter("__decorate", __decorate2);
443
- exporter("__param", __param2);
444
- exporter("__metadata", __metadata2);
445
- exporter("__awaiter", __awaiter2);
446
- exporter("__generator", __generator2);
447
- exporter("__exportStar", __exportStar2);
448
- exporter("__createBinding", __createBinding2);
449
- exporter("__values", __values2);
450
- exporter("__read", __read2);
451
- exporter("__spread", __spread2);
452
- exporter("__spreadArrays", __spreadArrays2);
453
- exporter("__spreadArray", __spreadArray2);
454
- exporter("__await", __await2);
455
- exporter("__asyncGenerator", __asyncGenerator2);
456
- exporter("__asyncDelegator", __asyncDelegator2);
457
- exporter("__asyncValues", __asyncValues2);
458
- exporter("__makeTemplateObject", __makeTemplateObject2);
459
- exporter("__importStar", __importStar2);
460
- exporter("__importDefault", __importDefault2);
461
- exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
462
- exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
463
- exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
464
- });
465
- }
466
- });
467
-
468
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
469
- var import_tslib = __toESM(require_tslib(), 1);
470
- var {
471
- __extends,
472
- __assign,
473
- __rest,
474
- __decorate,
475
- __param,
476
- __metadata,
477
- __awaiter,
478
- __generator,
479
- __exportStar,
480
- __createBinding,
481
- __values,
482
- __read,
483
- __spread,
484
- __spreadArrays,
485
- __spreadArray,
486
- __await,
487
- __asyncGenerator,
488
- __asyncDelegator,
489
- __asyncValues,
490
- __makeTemplateObject,
491
- __importStar,
492
- __importDefault,
493
- __classPrivateFieldGet,
494
- __classPrivateFieldSet,
495
- __classPrivateFieldIn
496
- } = import_tslib.default;
8
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
9
+ var __assign = function() {
10
+ __assign = Object.assign || function __assign2(t) {
11
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
12
+ s = arguments[i];
13
+ for (var p in s)
14
+ if (Object.prototype.hasOwnProperty.call(s, p))
15
+ t[p] = s[p];
16
+ }
17
+ return t;
18
+ };
19
+ return __assign.apply(this, arguments);
20
+ };
497
21
 
498
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
22
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
499
23
  var ErrorKind;
500
24
  (function(ErrorKind2) {
501
25
  ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
@@ -526,7 +50,7 @@ var ErrorKind;
526
50
  ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
527
51
  })(ErrorKind || (ErrorKind = {}));
528
52
 
529
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
53
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
530
54
  var TYPE;
531
55
  (function(TYPE2) {
532
56
  TYPE2[TYPE2["literal"] = 0] = "literal";
@@ -578,10 +102,10 @@ function isDateTimeSkeleton(el) {
578
102
  return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
579
103
  }
580
104
 
581
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
105
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
582
106
  var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
583
107
 
584
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
108
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
585
109
  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;
586
110
  function parseDateTimeSkeleton(skeleton) {
587
111
  var result = {};
@@ -682,10 +206,10 @@ function parseDateTimeSkeleton(skeleton) {
682
206
  return result;
683
207
  }
684
208
 
685
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
209
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
686
210
  var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
687
211
 
688
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
212
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
689
213
  function parseNumberSkeletonFromString(skeleton) {
690
214
  if (skeleton.length === 0) {
691
215
  throw new Error("Number skeleton cannot be empty");
@@ -951,7 +475,7 @@ function parseNumberSkeleton(tokens) {
951
475
  return result;
952
476
  }
953
477
 
954
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
478
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
955
479
  var timeData = {
956
480
  "AX": [
957
481
  "H"
@@ -2290,7 +1814,7 @@ var timeData = {
2290
1814
  ]
2291
1815
  };
2292
1816
 
2293
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
1817
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
2294
1818
  function getBestPattern(skeleton, locale) {
2295
1819
  var skeletonCopy = "";
2296
1820
  for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
@@ -2324,7 +1848,9 @@ function getBestPattern(skeleton, locale) {
2324
1848
  }
2325
1849
  function getDefaultHourSymbolFromLocale(locale) {
2326
1850
  var hourCycle = locale.hourCycle;
2327
- if (hourCycle === void 0 && locale.hourCycles && locale.hourCycles.length) {
1851
+ if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
1852
+ locale.hourCycles && // @ts-ignore
1853
+ locale.hourCycles.length) {
2328
1854
  hourCycle = locale.hourCycles[0];
2329
1855
  }
2330
1856
  if (hourCycle) {
@@ -2350,7 +1876,7 @@ function getDefaultHourSymbolFromLocale(locale) {
2350
1876
  return hourCycles[0];
2351
1877
  }
2352
1878
 
2353
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
1879
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
2354
1880
  var _a;
2355
1881
  var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
2356
1882
  var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
@@ -2375,57 +1901,90 @@ try {
2375
1901
  REGEX_SUPPORTS_U_AND_Y = false;
2376
1902
  }
2377
1903
  var re;
2378
- var startsWith = hasNativeStartsWith ? function startsWith2(s, search, position) {
2379
- return s.startsWith(search, position);
2380
- } : function startsWith3(s, search, position) {
2381
- return s.slice(position, position + search.length) === search;
2382
- };
2383
- var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : function fromCodePoint2() {
2384
- var codePoints = [];
2385
- for (var _i = 0; _i < arguments.length; _i++) {
2386
- codePoints[_i] = arguments[_i];
1904
+ var startsWith = hasNativeStartsWith ? (
1905
+ // Native
1906
+ function startsWith2(s, search, position) {
1907
+ return s.startsWith(search, position);
2387
1908
  }
2388
- var elements = "";
2389
- var length = codePoints.length;
2390
- var i = 0;
2391
- var code;
2392
- while (length > i) {
2393
- code = codePoints[i++];
2394
- if (code > 1114111)
2395
- throw RangeError(code + " is not a valid code point");
2396
- elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
1909
+ ) : (
1910
+ // For IE11
1911
+ function startsWith3(s, search, position) {
1912
+ return s.slice(position, position + search.length) === search;
2397
1913
  }
2398
- return elements;
2399
- };
2400
- var fromEntries = hasNativeFromEntries ? Object.fromEntries : function fromEntries2(entries) {
2401
- var obj = {};
2402
- for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2403
- var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
2404
- obj[k] = v;
1914
+ );
1915
+ var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
1916
+ // IE11
1917
+ function fromCodePoint2() {
1918
+ var codePoints = [];
1919
+ for (var _i = 0; _i < arguments.length; _i++) {
1920
+ codePoints[_i] = arguments[_i];
1921
+ }
1922
+ var elements = "";
1923
+ var length = codePoints.length;
1924
+ var i = 0;
1925
+ var code;
1926
+ while (length > i) {
1927
+ code = codePoints[i++];
1928
+ if (code > 1114111)
1929
+ throw RangeError(code + " is not a valid code point");
1930
+ elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
1931
+ }
1932
+ return elements;
2405
1933
  }
2406
- return obj;
2407
- };
2408
- var codePointAt = hasNativeCodePointAt ? function codePointAt2(s, index) {
2409
- return s.codePointAt(index);
2410
- } : function codePointAt3(s, index) {
2411
- var size = s.length;
2412
- if (index < 0 || index >= size) {
2413
- return void 0;
1934
+ );
1935
+ var fromEntries = (
1936
+ // native
1937
+ hasNativeFromEntries ? Object.fromEntries : (
1938
+ // Ponyfill
1939
+ function fromEntries2(entries) {
1940
+ var obj = {};
1941
+ for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
1942
+ var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
1943
+ obj[k] = v;
1944
+ }
1945
+ return obj;
1946
+ }
1947
+ )
1948
+ );
1949
+ var codePointAt = hasNativeCodePointAt ? (
1950
+ // Native
1951
+ function codePointAt2(s, index) {
1952
+ return s.codePointAt(index);
2414
1953
  }
2415
- var first = s.charCodeAt(index);
2416
- var second;
2417
- return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
2418
- };
2419
- var trimStart = hasTrimStart ? function trimStart2(s) {
2420
- return s.trimStart();
2421
- } : function trimStart3(s) {
2422
- return s.replace(SPACE_SEPARATOR_START_REGEX, "");
2423
- };
2424
- var trimEnd = hasTrimEnd ? function trimEnd2(s) {
2425
- return s.trimEnd();
2426
- } : function trimEnd3(s) {
2427
- return s.replace(SPACE_SEPARATOR_END_REGEX, "");
2428
- };
1954
+ ) : (
1955
+ // IE 11
1956
+ function codePointAt3(s, index) {
1957
+ var size = s.length;
1958
+ if (index < 0 || index >= size) {
1959
+ return void 0;
1960
+ }
1961
+ var first = s.charCodeAt(index);
1962
+ var second;
1963
+ return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
1964
+ }
1965
+ );
1966
+ var trimStart = hasTrimStart ? (
1967
+ // Native
1968
+ function trimStart2(s) {
1969
+ return s.trimStart();
1970
+ }
1971
+ ) : (
1972
+ // Ponyfill
1973
+ function trimStart3(s) {
1974
+ return s.replace(SPACE_SEPARATOR_START_REGEX, "");
1975
+ }
1976
+ );
1977
+ var trimEnd = hasTrimEnd ? (
1978
+ // Native
1979
+ function trimEnd2(s) {
1980
+ return s.trimEnd();
1981
+ }
1982
+ ) : (
1983
+ // Ponyfill
1984
+ function trimEnd3(s) {
1985
+ return s.replace(SPACE_SEPARATOR_END_REGEX, "");
1986
+ }
1987
+ );
2429
1988
  function RE(s, flag) {
2430
1989
  return new RegExp(s, flag);
2431
1990
  }
@@ -2453,654 +2012,659 @@ if (REGEX_SUPPORTS_U_AND_Y) {
2453
2012
  };
2454
2013
  }
2455
2014
  var IDENTIFIER_PREFIX_RE_1;
2456
- var Parser = function() {
2457
- function Parser2(message, options) {
2458
- if (options === void 0) {
2459
- options = {};
2460
- }
2461
- this.message = message;
2462
- this.position = { offset: 0, line: 1, column: 1 };
2463
- this.ignoreTag = !!options.ignoreTag;
2464
- this.locale = options.locale;
2465
- this.requiresOtherClause = !!options.requiresOtherClause;
2466
- this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2467
- }
2468
- Parser2.prototype.parse = function() {
2469
- if (this.offset() !== 0) {
2470
- throw Error("parser can only be used once");
2471
- }
2472
- return this.parseMessage(0, "", false);
2473
- };
2474
- Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2475
- var elements = [];
2476
- while (!this.isEOF()) {
2477
- var char = this.char();
2478
- if (char === 123) {
2479
- var result = this.parseArgument(nestingLevel, expectingCloseTag);
2480
- if (result.err) {
2481
- return result;
2482
- }
2483
- elements.push(result.val);
2484
- } else if (char === 125 && nestingLevel > 0) {
2485
- break;
2486
- } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
2487
- var position = this.clonePosition();
2488
- this.bump();
2489
- elements.push({
2490
- type: TYPE.pound,
2491
- location: createLocation(position, this.clonePosition())
2492
- });
2493
- } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
2494
- if (expectingCloseTag) {
2015
+ var Parser = (
2016
+ /** @class */
2017
+ function() {
2018
+ function Parser2(message, options) {
2019
+ if (options === void 0) {
2020
+ options = {};
2021
+ }
2022
+ this.message = message;
2023
+ this.position = { offset: 0, line: 1, column: 1 };
2024
+ this.ignoreTag = !!options.ignoreTag;
2025
+ this.locale = options.locale;
2026
+ this.requiresOtherClause = !!options.requiresOtherClause;
2027
+ this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2028
+ }
2029
+ Parser2.prototype.parse = function() {
2030
+ if (this.offset() !== 0) {
2031
+ throw Error("parser can only be used once");
2032
+ }
2033
+ return this.parseMessage(0, "", false);
2034
+ };
2035
+ Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2036
+ var elements = [];
2037
+ while (!this.isEOF()) {
2038
+ var char = this.char();
2039
+ if (char === 123) {
2040
+ var result = this.parseArgument(nestingLevel, expectingCloseTag);
2041
+ if (result.err) {
2042
+ return result;
2043
+ }
2044
+ elements.push(result.val);
2045
+ } else if (char === 125 && nestingLevel > 0) {
2495
2046
  break;
2047
+ } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
2048
+ var position = this.clonePosition();
2049
+ this.bump();
2050
+ elements.push({
2051
+ type: TYPE.pound,
2052
+ location: createLocation(position, this.clonePosition())
2053
+ });
2054
+ } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
2055
+ if (expectingCloseTag) {
2056
+ break;
2057
+ } else {
2058
+ return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
2059
+ }
2060
+ } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
2061
+ var result = this.parseTag(nestingLevel, parentArgType);
2062
+ if (result.err) {
2063
+ return result;
2064
+ }
2065
+ elements.push(result.val);
2496
2066
  } else {
2497
- return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
2498
- }
2499
- } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
2500
- var result = this.parseTag(nestingLevel, parentArgType);
2501
- if (result.err) {
2502
- return result;
2503
- }
2504
- elements.push(result.val);
2505
- } else {
2506
- var result = this.parseLiteral(nestingLevel, parentArgType);
2507
- if (result.err) {
2508
- return result;
2067
+ var result = this.parseLiteral(nestingLevel, parentArgType);
2068
+ if (result.err) {
2069
+ return result;
2070
+ }
2071
+ elements.push(result.val);
2509
2072
  }
2510
- elements.push(result.val);
2511
2073
  }
2512
- }
2513
- return { val: elements, err: null };
2514
- };
2515
- Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2516
- var startPosition = this.clonePosition();
2517
- this.bump();
2518
- var tagName = this.parseTagName();
2519
- this.bumpSpace();
2520
- if (this.bumpIf("/>")) {
2521
- return {
2522
- val: {
2523
- type: TYPE.literal,
2524
- value: "<".concat(tagName, "/>"),
2525
- location: createLocation(startPosition, this.clonePosition())
2526
- },
2527
- err: null
2528
- };
2529
- } else if (this.bumpIf(">")) {
2530
- var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
2531
- if (childrenResult.err) {
2532
- return childrenResult;
2533
- }
2534
- var children = childrenResult.val;
2535
- var endTagStartPosition = this.clonePosition();
2536
- if (this.bumpIf("</")) {
2537
- if (this.isEOF() || !_isAlpha(this.char())) {
2538
- return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2539
- }
2540
- var closingTagNameStartPosition = this.clonePosition();
2541
- var closingTagName = this.parseTagName();
2542
- if (tagName !== closingTagName) {
2543
- return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));
2544
- }
2545
- this.bumpSpace();
2546
- if (!this.bumpIf(">")) {
2547
- return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2548
- }
2074
+ return { val: elements, err: null };
2075
+ };
2076
+ Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2077
+ var startPosition = this.clonePosition();
2078
+ this.bump();
2079
+ var tagName = this.parseTagName();
2080
+ this.bumpSpace();
2081
+ if (this.bumpIf("/>")) {
2549
2082
  return {
2550
2083
  val: {
2551
- type: TYPE.tag,
2552
- value: tagName,
2553
- children,
2084
+ type: TYPE.literal,
2085
+ value: "<".concat(tagName, "/>"),
2554
2086
  location: createLocation(startPosition, this.clonePosition())
2555
2087
  },
2556
2088
  err: null
2557
2089
  };
2090
+ } else if (this.bumpIf(">")) {
2091
+ var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
2092
+ if (childrenResult.err) {
2093
+ return childrenResult;
2094
+ }
2095
+ var children = childrenResult.val;
2096
+ var endTagStartPosition = this.clonePosition();
2097
+ if (this.bumpIf("</")) {
2098
+ if (this.isEOF() || !_isAlpha(this.char())) {
2099
+ return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2100
+ }
2101
+ var closingTagNameStartPosition = this.clonePosition();
2102
+ var closingTagName = this.parseTagName();
2103
+ if (tagName !== closingTagName) {
2104
+ return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));
2105
+ }
2106
+ this.bumpSpace();
2107
+ if (!this.bumpIf(">")) {
2108
+ return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2109
+ }
2110
+ return {
2111
+ val: {
2112
+ type: TYPE.tag,
2113
+ value: tagName,
2114
+ children,
2115
+ location: createLocation(startPosition, this.clonePosition())
2116
+ },
2117
+ err: null
2118
+ };
2119
+ } else {
2120
+ return this.error(ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));
2121
+ }
2558
2122
  } else {
2559
- return this.error(ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));
2123
+ return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2560
2124
  }
2561
- } else {
2562
- return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2563
- }
2564
- };
2565
- Parser2.prototype.parseTagName = function() {
2566
- var startOffset = this.offset();
2567
- this.bump();
2568
- while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
2125
+ };
2126
+ Parser2.prototype.parseTagName = function() {
2127
+ var startOffset = this.offset();
2569
2128
  this.bump();
2570
- }
2571
- return this.message.slice(startOffset, this.offset());
2572
- };
2573
- Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2574
- var start = this.clonePosition();
2575
- var value = "";
2576
- while (true) {
2577
- var parseQuoteResult = this.tryParseQuote(parentArgType);
2578
- if (parseQuoteResult) {
2579
- value += parseQuoteResult;
2580
- continue;
2581
- }
2582
- var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
2583
- if (parseUnquotedResult) {
2584
- value += parseUnquotedResult;
2585
- continue;
2129
+ while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
2130
+ this.bump();
2586
2131
  }
2587
- var parseLeftAngleResult = this.tryParseLeftAngleBracket();
2588
- if (parseLeftAngleResult) {
2589
- value += parseLeftAngleResult;
2590
- continue;
2132
+ return this.message.slice(startOffset, this.offset());
2133
+ };
2134
+ Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2135
+ var start = this.clonePosition();
2136
+ var value = "";
2137
+ while (true) {
2138
+ var parseQuoteResult = this.tryParseQuote(parentArgType);
2139
+ if (parseQuoteResult) {
2140
+ value += parseQuoteResult;
2141
+ continue;
2142
+ }
2143
+ var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
2144
+ if (parseUnquotedResult) {
2145
+ value += parseUnquotedResult;
2146
+ continue;
2147
+ }
2148
+ var parseLeftAngleResult = this.tryParseLeftAngleBracket();
2149
+ if (parseLeftAngleResult) {
2150
+ value += parseLeftAngleResult;
2151
+ continue;
2152
+ }
2153
+ break;
2591
2154
  }
2592
- break;
2593
- }
2594
- var location = createLocation(start, this.clonePosition());
2595
- return {
2596
- val: { type: TYPE.literal, value, location },
2597
- err: null
2155
+ var location = createLocation(start, this.clonePosition());
2156
+ return {
2157
+ val: { type: TYPE.literal, value, location },
2158
+ err: null
2159
+ };
2598
2160
  };
2599
- };
2600
- Parser2.prototype.tryParseLeftAngleBracket = function() {
2601
- if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || !_isAlphaOrSlash(this.peek() || 0))) {
2602
- this.bump();
2603
- return "<";
2604
- }
2605
- return null;
2606
- };
2607
- Parser2.prototype.tryParseQuote = function(parentArgType) {
2608
- if (this.isEOF() || this.char() !== 39) {
2609
- return null;
2610
- }
2611
- switch (this.peek()) {
2612
- case 39:
2613
- this.bump();
2161
+ Parser2.prototype.tryParseLeftAngleBracket = function() {
2162
+ if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2163
+ !_isAlphaOrSlash(this.peek() || 0))) {
2614
2164
  this.bump();
2615
- return "'";
2616
- case 123:
2617
- case 60:
2618
- case 62:
2619
- case 125:
2620
- break;
2621
- case 35:
2622
- if (parentArgType === "plural" || parentArgType === "selectordinal") {
2623
- break;
2624
- }
2625
- return null;
2626
- default:
2165
+ return "<";
2166
+ }
2167
+ return null;
2168
+ };
2169
+ Parser2.prototype.tryParseQuote = function(parentArgType) {
2170
+ if (this.isEOF() || this.char() !== 39) {
2627
2171
  return null;
2628
- }
2629
- this.bump();
2630
- var codePoints = [this.char()];
2631
- this.bump();
2632
- while (!this.isEOF()) {
2633
- var ch = this.char();
2634
- if (ch === 39) {
2635
- if (this.peek() === 39) {
2636
- codePoints.push(39);
2172
+ }
2173
+ switch (this.peek()) {
2174
+ case 39:
2637
2175
  this.bump();
2638
- } else {
2639
2176
  this.bump();
2177
+ return "'";
2178
+ case 123:
2179
+ case 60:
2180
+ case 62:
2181
+ case 125:
2640
2182
  break;
2641
- }
2642
- } else {
2643
- codePoints.push(ch);
2183
+ case 35:
2184
+ if (parentArgType === "plural" || parentArgType === "selectordinal") {
2185
+ break;
2186
+ }
2187
+ return null;
2188
+ default:
2189
+ return null;
2644
2190
  }
2645
2191
  this.bump();
2646
- }
2647
- return fromCodePoint.apply(void 0, codePoints);
2648
- };
2649
- Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2650
- if (this.isEOF()) {
2651
- return null;
2652
- }
2653
- var ch = this.char();
2654
- if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
2655
- return null;
2656
- } else {
2657
- this.bump();
2658
- return fromCodePoint(ch);
2659
- }
2660
- };
2661
- Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2662
- var openingBracePosition = this.clonePosition();
2663
- this.bump();
2664
- this.bumpSpace();
2665
- if (this.isEOF()) {
2666
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2667
- }
2668
- if (this.char() === 125) {
2192
+ var codePoints = [this.char()];
2669
2193
  this.bump();
2670
- return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2671
- }
2672
- var value = this.parseIdentifierIfPossible().value;
2673
- if (!value) {
2674
- return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2675
- }
2676
- this.bumpSpace();
2677
- if (this.isEOF()) {
2678
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2679
- }
2680
- switch (this.char()) {
2681
- case 125: {
2194
+ while (!this.isEOF()) {
2195
+ var ch = this.char();
2196
+ if (ch === 39) {
2197
+ if (this.peek() === 39) {
2198
+ codePoints.push(39);
2199
+ this.bump();
2200
+ } else {
2201
+ this.bump();
2202
+ break;
2203
+ }
2204
+ } else {
2205
+ codePoints.push(ch);
2206
+ }
2682
2207
  this.bump();
2683
- return {
2684
- val: {
2685
- type: TYPE.argument,
2686
- value,
2687
- location: createLocation(openingBracePosition, this.clonePosition())
2688
- },
2689
- err: null
2690
- };
2691
2208
  }
2692
- case 44: {
2209
+ return fromCodePoint.apply(void 0, codePoints);
2210
+ };
2211
+ Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2212
+ if (this.isEOF()) {
2213
+ return null;
2214
+ }
2215
+ var ch = this.char();
2216
+ if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
2217
+ return null;
2218
+ } else {
2693
2219
  this.bump();
2694
- this.bumpSpace();
2695
- if (this.isEOF()) {
2696
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2697
- }
2698
- return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
2220
+ return fromCodePoint(ch);
2699
2221
  }
2700
- default:
2222
+ };
2223
+ Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2224
+ var openingBracePosition = this.clonePosition();
2225
+ this.bump();
2226
+ this.bumpSpace();
2227
+ if (this.isEOF()) {
2228
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2229
+ }
2230
+ if (this.char() === 125) {
2231
+ this.bump();
2232
+ return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2233
+ }
2234
+ var value = this.parseIdentifierIfPossible().value;
2235
+ if (!value) {
2701
2236
  return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2702
- }
2703
- };
2704
- Parser2.prototype.parseIdentifierIfPossible = function() {
2705
- var startingPosition = this.clonePosition();
2706
- var startOffset = this.offset();
2707
- var value = matchIdentifierAtIndex(this.message, startOffset);
2708
- var endOffset = startOffset + value.length;
2709
- this.bumpTo(endOffset);
2710
- var endPosition = this.clonePosition();
2711
- var location = createLocation(startingPosition, endPosition);
2712
- return { value, location };
2713
- };
2714
- Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2715
- var _a2;
2716
- var typeStartPosition = this.clonePosition();
2717
- var argType = this.parseIdentifierIfPossible().value;
2718
- var typeEndPosition = this.clonePosition();
2719
- switch (argType) {
2720
- case "":
2721
- return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2722
- case "number":
2723
- case "date":
2724
- case "time": {
2725
- this.bumpSpace();
2726
- var styleAndLocation = null;
2727
- if (this.bumpIf(",")) {
2237
+ }
2238
+ this.bumpSpace();
2239
+ if (this.isEOF()) {
2240
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2241
+ }
2242
+ switch (this.char()) {
2243
+ case 125: {
2244
+ this.bump();
2245
+ return {
2246
+ val: {
2247
+ type: TYPE.argument,
2248
+ // value does not include the opening and closing braces.
2249
+ value,
2250
+ location: createLocation(openingBracePosition, this.clonePosition())
2251
+ },
2252
+ err: null
2253
+ };
2254
+ }
2255
+ case 44: {
2256
+ this.bump();
2728
2257
  this.bumpSpace();
2729
- var styleStartPosition = this.clonePosition();
2730
- var result = this.parseSimpleArgStyleIfPossible();
2731
- if (result.err) {
2732
- return result;
2258
+ if (this.isEOF()) {
2259
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2733
2260
  }
2734
- var style = trimEnd(result.val);
2735
- if (style.length === 0) {
2736
- return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));
2737
- }
2738
- var styleLocation = createLocation(styleStartPosition, this.clonePosition());
2739
- styleAndLocation = { style, styleLocation };
2261
+ return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
2740
2262
  }
2741
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2742
- if (argCloseResult.err) {
2743
- return argCloseResult;
2744
- }
2745
- var location_1 = createLocation(openingBracePosition, this.clonePosition());
2746
- if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
2747
- var skeleton = trimStart(styleAndLocation.style.slice(2));
2748
- if (argType === "number") {
2749
- var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
2263
+ default:
2264
+ return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2265
+ }
2266
+ };
2267
+ Parser2.prototype.parseIdentifierIfPossible = function() {
2268
+ var startingPosition = this.clonePosition();
2269
+ var startOffset = this.offset();
2270
+ var value = matchIdentifierAtIndex(this.message, startOffset);
2271
+ var endOffset = startOffset + value.length;
2272
+ this.bumpTo(endOffset);
2273
+ var endPosition = this.clonePosition();
2274
+ var location = createLocation(startingPosition, endPosition);
2275
+ return { value, location };
2276
+ };
2277
+ Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2278
+ var _a2;
2279
+ var typeStartPosition = this.clonePosition();
2280
+ var argType = this.parseIdentifierIfPossible().value;
2281
+ var typeEndPosition = this.clonePosition();
2282
+ switch (argType) {
2283
+ case "":
2284
+ return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2285
+ case "number":
2286
+ case "date":
2287
+ case "time": {
2288
+ this.bumpSpace();
2289
+ var styleAndLocation = null;
2290
+ if (this.bumpIf(",")) {
2291
+ this.bumpSpace();
2292
+ var styleStartPosition = this.clonePosition();
2293
+ var result = this.parseSimpleArgStyleIfPossible();
2750
2294
  if (result.err) {
2751
2295
  return result;
2752
2296
  }
2753
- return {
2754
- val: { type: TYPE.number, value, location: location_1, style: result.val },
2755
- err: null
2756
- };
2757
- } else {
2758
- if (skeleton.length === 0) {
2759
- return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
2760
- }
2761
- var dateTimePattern = skeleton;
2762
- if (this.locale) {
2763
- dateTimePattern = getBestPattern(skeleton, this.locale);
2297
+ var style = trimEnd(result.val);
2298
+ if (style.length === 0) {
2299
+ return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));
2764
2300
  }
2765
- var style = {
2766
- type: SKELETON_TYPE.dateTime,
2767
- pattern: dateTimePattern,
2768
- location: styleAndLocation.styleLocation,
2769
- parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
2770
- };
2771
- var type = argType === "date" ? TYPE.date : TYPE.time;
2772
- return {
2773
- val: { type, value, location: location_1, style },
2774
- err: null
2775
- };
2301
+ var styleLocation = createLocation(styleStartPosition, this.clonePosition());
2302
+ styleAndLocation = { style, styleLocation };
2776
2303
  }
2777
- }
2778
- return {
2779
- val: {
2780
- type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2781
- value,
2782
- location: location_1,
2783
- style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2784
- },
2785
- err: null
2786
- };
2787
- }
2788
- case "plural":
2789
- case "selectordinal":
2790
- case "select": {
2791
- var typeEndPosition_1 = this.clonePosition();
2792
- this.bumpSpace();
2793
- if (!this.bumpIf(",")) {
2794
- return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));
2795
- }
2796
- this.bumpSpace();
2797
- var identifierAndLocation = this.parseIdentifierIfPossible();
2798
- var pluralOffset = 0;
2799
- if (argType !== "select" && identifierAndLocation.value === "offset") {
2800
- if (!this.bumpIf(":")) {
2801
- return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));
2304
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2305
+ if (argCloseResult.err) {
2306
+ return argCloseResult;
2802
2307
  }
2803
- this.bumpSpace();
2804
- var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2805
- if (result.err) {
2806
- return result;
2308
+ var location_1 = createLocation(openingBracePosition, this.clonePosition());
2309
+ if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
2310
+ var skeleton = trimStart(styleAndLocation.style.slice(2));
2311
+ if (argType === "number") {
2312
+ var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
2313
+ if (result.err) {
2314
+ return result;
2315
+ }
2316
+ return {
2317
+ val: { type: TYPE.number, value, location: location_1, style: result.val },
2318
+ err: null
2319
+ };
2320
+ } else {
2321
+ if (skeleton.length === 0) {
2322
+ return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
2323
+ }
2324
+ var dateTimePattern = skeleton;
2325
+ if (this.locale) {
2326
+ dateTimePattern = getBestPattern(skeleton, this.locale);
2327
+ }
2328
+ var style = {
2329
+ type: SKELETON_TYPE.dateTime,
2330
+ pattern: dateTimePattern,
2331
+ location: styleAndLocation.styleLocation,
2332
+ parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
2333
+ };
2334
+ var type = argType === "date" ? TYPE.date : TYPE.time;
2335
+ return {
2336
+ val: { type, value, location: location_1, style },
2337
+ err: null
2338
+ };
2339
+ }
2807
2340
  }
2808
- this.bumpSpace();
2809
- identifierAndLocation = this.parseIdentifierIfPossible();
2810
- pluralOffset = result.val;
2811
- }
2812
- var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
2813
- if (optionsResult.err) {
2814
- return optionsResult;
2815
- }
2816
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2817
- if (argCloseResult.err) {
2818
- return argCloseResult;
2819
- }
2820
- var location_2 = createLocation(openingBracePosition, this.clonePosition());
2821
- if (argType === "select") {
2822
2341
  return {
2823
2342
  val: {
2824
- type: TYPE.select,
2343
+ type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2825
2344
  value,
2826
- options: fromEntries(optionsResult.val),
2827
- location: location_2
2828
- },
2829
- err: null
2830
- };
2831
- } else {
2832
- return {
2833
- val: {
2834
- type: TYPE.plural,
2835
- value,
2836
- options: fromEntries(optionsResult.val),
2837
- offset: pluralOffset,
2838
- pluralType: argType === "plural" ? "cardinal" : "ordinal",
2839
- location: location_2
2345
+ location: location_1,
2346
+ style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2840
2347
  },
2841
2348
  err: null
2842
2349
  };
2843
2350
  }
2844
- }
2845
- default:
2846
- return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2847
- }
2848
- };
2849
- Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2850
- if (this.isEOF() || this.char() !== 125) {
2851
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2852
- }
2853
- this.bump();
2854
- return { val: true, err: null };
2855
- };
2856
- Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2857
- var nestedBraces = 0;
2858
- var startPosition = this.clonePosition();
2859
- while (!this.isEOF()) {
2860
- var ch = this.char();
2861
- switch (ch) {
2862
- case 39: {
2863
- this.bump();
2864
- var apostrophePosition = this.clonePosition();
2865
- if (!this.bumpUntil("'")) {
2866
- return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));
2351
+ case "plural":
2352
+ case "selectordinal":
2353
+ case "select": {
2354
+ var typeEndPosition_1 = this.clonePosition();
2355
+ this.bumpSpace();
2356
+ if (!this.bumpIf(",")) {
2357
+ return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));
2867
2358
  }
2868
- this.bump();
2869
- break;
2870
- }
2871
- case 123: {
2872
- nestedBraces += 1;
2873
- this.bump();
2874
- break;
2875
- }
2876
- case 125: {
2877
- if (nestedBraces > 0) {
2878
- nestedBraces -= 1;
2359
+ this.bumpSpace();
2360
+ var identifierAndLocation = this.parseIdentifierIfPossible();
2361
+ var pluralOffset = 0;
2362
+ if (argType !== "select" && identifierAndLocation.value === "offset") {
2363
+ if (!this.bumpIf(":")) {
2364
+ return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));
2365
+ }
2366
+ this.bumpSpace();
2367
+ var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2368
+ if (result.err) {
2369
+ return result;
2370
+ }
2371
+ this.bumpSpace();
2372
+ identifierAndLocation = this.parseIdentifierIfPossible();
2373
+ pluralOffset = result.val;
2374
+ }
2375
+ var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
2376
+ if (optionsResult.err) {
2377
+ return optionsResult;
2378
+ }
2379
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2380
+ if (argCloseResult.err) {
2381
+ return argCloseResult;
2382
+ }
2383
+ var location_2 = createLocation(openingBracePosition, this.clonePosition());
2384
+ if (argType === "select") {
2385
+ return {
2386
+ val: {
2387
+ type: TYPE.select,
2388
+ value,
2389
+ options: fromEntries(optionsResult.val),
2390
+ location: location_2
2391
+ },
2392
+ err: null
2393
+ };
2879
2394
  } else {
2880
2395
  return {
2881
- val: this.message.slice(startPosition.offset, this.offset()),
2396
+ val: {
2397
+ type: TYPE.plural,
2398
+ value,
2399
+ options: fromEntries(optionsResult.val),
2400
+ offset: pluralOffset,
2401
+ pluralType: argType === "plural" ? "cardinal" : "ordinal",
2402
+ location: location_2
2403
+ },
2882
2404
  err: null
2883
2405
  };
2884
2406
  }
2885
- break;
2886
2407
  }
2887
2408
  default:
2888
- this.bump();
2889
- break;
2409
+ return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2890
2410
  }
2891
- }
2892
- return {
2893
- val: this.message.slice(startPosition.offset, this.offset()),
2894
- err: null
2895
2411
  };
2896
- };
2897
- Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2898
- var tokens = [];
2899
- try {
2900
- tokens = parseNumberSkeletonFromString(skeleton);
2901
- } catch (e) {
2902
- return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location);
2903
- }
2904
- return {
2905
- val: {
2906
- type: SKELETON_TYPE.number,
2907
- tokens,
2908
- location,
2909
- parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens) : {}
2910
- },
2911
- err: null
2412
+ Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2413
+ if (this.isEOF() || this.char() !== 125) {
2414
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2415
+ }
2416
+ this.bump();
2417
+ return { val: true, err: null };
2912
2418
  };
2913
- };
2914
- Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2915
- var _a2;
2916
- var hasOtherClause = false;
2917
- var options = [];
2918
- var parsedSelectors = /* @__PURE__ */ new Set();
2919
- var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
2920
- while (true) {
2921
- if (selector.length === 0) {
2922
- var startPosition = this.clonePosition();
2923
- if (parentArgType !== "select" && this.bumpIf("=")) {
2924
- var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
2925
- if (result.err) {
2926
- return result;
2419
+ Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2420
+ var nestedBraces = 0;
2421
+ var startPosition = this.clonePosition();
2422
+ while (!this.isEOF()) {
2423
+ var ch = this.char();
2424
+ switch (ch) {
2425
+ case 39: {
2426
+ this.bump();
2427
+ var apostrophePosition = this.clonePosition();
2428
+ if (!this.bumpUntil("'")) {
2429
+ return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));
2430
+ }
2431
+ this.bump();
2432
+ break;
2433
+ }
2434
+ case 123: {
2435
+ nestedBraces += 1;
2436
+ this.bump();
2437
+ break;
2438
+ }
2439
+ case 125: {
2440
+ if (nestedBraces > 0) {
2441
+ nestedBraces -= 1;
2442
+ } else {
2443
+ return {
2444
+ val: this.message.slice(startPosition.offset, this.offset()),
2445
+ err: null
2446
+ };
2447
+ }
2448
+ break;
2927
2449
  }
2928
- selectorLocation = createLocation(startPosition, this.clonePosition());
2929
- selector = this.message.slice(startPosition.offset, this.offset());
2450
+ default:
2451
+ this.bump();
2452
+ break;
2453
+ }
2454
+ }
2455
+ return {
2456
+ val: this.message.slice(startPosition.offset, this.offset()),
2457
+ err: null
2458
+ };
2459
+ };
2460
+ Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2461
+ var tokens = [];
2462
+ try {
2463
+ tokens = parseNumberSkeletonFromString(skeleton);
2464
+ } catch (e) {
2465
+ return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location);
2466
+ }
2467
+ return {
2468
+ val: {
2469
+ type: SKELETON_TYPE.number,
2470
+ tokens,
2471
+ location,
2472
+ parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens) : {}
2473
+ },
2474
+ err: null
2475
+ };
2476
+ };
2477
+ Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2478
+ var _a2;
2479
+ var hasOtherClause = false;
2480
+ var options = [];
2481
+ var parsedSelectors = /* @__PURE__ */ new Set();
2482
+ var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
2483
+ while (true) {
2484
+ if (selector.length === 0) {
2485
+ var startPosition = this.clonePosition();
2486
+ if (parentArgType !== "select" && this.bumpIf("=")) {
2487
+ var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
2488
+ if (result.err) {
2489
+ return result;
2490
+ }
2491
+ selectorLocation = createLocation(startPosition, this.clonePosition());
2492
+ selector = this.message.slice(startPosition.offset, this.offset());
2493
+ } else {
2494
+ break;
2495
+ }
2496
+ }
2497
+ if (parsedSelectors.has(selector)) {
2498
+ return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
2499
+ }
2500
+ if (selector === "other") {
2501
+ hasOtherClause = true;
2502
+ }
2503
+ this.bumpSpace();
2504
+ var openingBracePosition = this.clonePosition();
2505
+ if (!this.bumpIf("{")) {
2506
+ return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));
2507
+ }
2508
+ var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
2509
+ if (fragmentResult.err) {
2510
+ return fragmentResult;
2511
+ }
2512
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2513
+ if (argCloseResult.err) {
2514
+ return argCloseResult;
2515
+ }
2516
+ options.push([
2517
+ selector,
2518
+ {
2519
+ value: fragmentResult.val,
2520
+ location: createLocation(openingBracePosition, this.clonePosition())
2521
+ }
2522
+ ]);
2523
+ parsedSelectors.add(selector);
2524
+ this.bumpSpace();
2525
+ _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
2526
+ }
2527
+ if (options.length === 0) {
2528
+ return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
2529
+ }
2530
+ if (this.requiresOtherClause && !hasOtherClause) {
2531
+ return this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));
2532
+ }
2533
+ return { val: options, err: null };
2534
+ };
2535
+ Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2536
+ var sign = 1;
2537
+ var startingPosition = this.clonePosition();
2538
+ if (this.bumpIf("+")) {
2539
+ } else if (this.bumpIf("-")) {
2540
+ sign = -1;
2541
+ }
2542
+ var hasDigits = false;
2543
+ var decimal = 0;
2544
+ while (!this.isEOF()) {
2545
+ var ch = this.char();
2546
+ if (ch >= 48 && ch <= 57) {
2547
+ hasDigits = true;
2548
+ decimal = decimal * 10 + (ch - 48);
2549
+ this.bump();
2930
2550
  } else {
2931
2551
  break;
2932
2552
  }
2933
2553
  }
2934
- if (parsedSelectors.has(selector)) {
2935
- return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
2554
+ var location = createLocation(startingPosition, this.clonePosition());
2555
+ if (!hasDigits) {
2556
+ return this.error(expectNumberError, location);
2936
2557
  }
2937
- if (selector === "other") {
2938
- hasOtherClause = true;
2558
+ decimal *= sign;
2559
+ if (!isSafeInteger(decimal)) {
2560
+ return this.error(invalidNumberError, location);
2939
2561
  }
2940
- this.bumpSpace();
2941
- var openingBracePosition = this.clonePosition();
2942
- if (!this.bumpIf("{")) {
2943
- return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));
2944
- }
2945
- var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
2946
- if (fragmentResult.err) {
2947
- return fragmentResult;
2562
+ return { val: decimal, err: null };
2563
+ };
2564
+ Parser2.prototype.offset = function() {
2565
+ return this.position.offset;
2566
+ };
2567
+ Parser2.prototype.isEOF = function() {
2568
+ return this.offset() === this.message.length;
2569
+ };
2570
+ Parser2.prototype.clonePosition = function() {
2571
+ return {
2572
+ offset: this.position.offset,
2573
+ line: this.position.line,
2574
+ column: this.position.column
2575
+ };
2576
+ };
2577
+ Parser2.prototype.char = function() {
2578
+ var offset = this.position.offset;
2579
+ if (offset >= this.message.length) {
2580
+ throw Error("out of bound");
2948
2581
  }
2949
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2950
- if (argCloseResult.err) {
2951
- return argCloseResult;
2582
+ var code = codePointAt(this.message, offset);
2583
+ if (code === void 0) {
2584
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
2952
2585
  }
2953
- options.push([
2954
- selector,
2955
- {
2956
- value: fragmentResult.val,
2957
- location: createLocation(openingBracePosition, this.clonePosition())
2586
+ return code;
2587
+ };
2588
+ Parser2.prototype.error = function(kind, location) {
2589
+ return {
2590
+ val: null,
2591
+ err: {
2592
+ kind,
2593
+ message: this.message,
2594
+ location
2958
2595
  }
2959
- ]);
2960
- parsedSelectors.add(selector);
2961
- this.bumpSpace();
2962
- _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
2963
- }
2964
- if (options.length === 0) {
2965
- return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
2966
- }
2967
- if (this.requiresOtherClause && !hasOtherClause) {
2968
- return this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));
2969
- }
2970
- return { val: options, err: null };
2971
- };
2972
- Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2973
- var sign = 1;
2974
- var startingPosition = this.clonePosition();
2975
- if (this.bumpIf("+")) {
2976
- } else if (this.bumpIf("-")) {
2977
- sign = -1;
2978
- }
2979
- var hasDigits = false;
2980
- var decimal = 0;
2981
- while (!this.isEOF()) {
2982
- var ch = this.char();
2983
- if (ch >= 48 && ch <= 57) {
2984
- hasDigits = true;
2985
- decimal = decimal * 10 + (ch - 48);
2986
- this.bump();
2596
+ };
2597
+ };
2598
+ Parser2.prototype.bump = function() {
2599
+ if (this.isEOF()) {
2600
+ return;
2601
+ }
2602
+ var code = this.char();
2603
+ if (code === 10) {
2604
+ this.position.line += 1;
2605
+ this.position.column = 1;
2606
+ this.position.offset += 1;
2987
2607
  } else {
2988
- break;
2608
+ this.position.column += 1;
2609
+ this.position.offset += code < 65536 ? 1 : 2;
2989
2610
  }
2990
- }
2991
- var location = createLocation(startingPosition, this.clonePosition());
2992
- if (!hasDigits) {
2993
- return this.error(expectNumberError, location);
2994
- }
2995
- decimal *= sign;
2996
- if (!isSafeInteger(decimal)) {
2997
- return this.error(invalidNumberError, location);
2998
- }
2999
- return { val: decimal, err: null };
3000
- };
3001
- Parser2.prototype.offset = function() {
3002
- return this.position.offset;
3003
- };
3004
- Parser2.prototype.isEOF = function() {
3005
- return this.offset() === this.message.length;
3006
- };
3007
- Parser2.prototype.clonePosition = function() {
3008
- return {
3009
- offset: this.position.offset,
3010
- line: this.position.line,
3011
- column: this.position.column
3012
2611
  };
3013
- };
3014
- Parser2.prototype.char = function() {
3015
- var offset = this.position.offset;
3016
- if (offset >= this.message.length) {
3017
- throw Error("out of bound");
3018
- }
3019
- var code = codePointAt(this.message, offset);
3020
- if (code === void 0) {
3021
- throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
3022
- }
3023
- return code;
3024
- };
3025
- Parser2.prototype.error = function(kind, location) {
3026
- return {
3027
- val: null,
3028
- err: {
3029
- kind,
3030
- message: this.message,
3031
- location
2612
+ Parser2.prototype.bumpIf = function(prefix) {
2613
+ if (startsWith(this.message, prefix, this.offset())) {
2614
+ for (var i = 0; i < prefix.length; i++) {
2615
+ this.bump();
2616
+ }
2617
+ return true;
3032
2618
  }
2619
+ return false;
3033
2620
  };
3034
- };
3035
- Parser2.prototype.bump = function() {
3036
- if (this.isEOF()) {
3037
- return;
3038
- }
3039
- var code = this.char();
3040
- if (code === 10) {
3041
- this.position.line += 1;
3042
- this.position.column = 1;
3043
- this.position.offset += 1;
3044
- } else {
3045
- this.position.column += 1;
3046
- this.position.offset += code < 65536 ? 1 : 2;
3047
- }
3048
- };
3049
- Parser2.prototype.bumpIf = function(prefix) {
3050
- if (startsWith(this.message, prefix, this.offset())) {
3051
- for (var i = 0; i < prefix.length; i++) {
3052
- this.bump();
2621
+ Parser2.prototype.bumpUntil = function(pattern) {
2622
+ var currentOffset = this.offset();
2623
+ var index = this.message.indexOf(pattern, currentOffset);
2624
+ if (index >= 0) {
2625
+ this.bumpTo(index);
2626
+ return true;
2627
+ } else {
2628
+ this.bumpTo(this.message.length);
2629
+ return false;
3053
2630
  }
3054
- return true;
3055
- }
3056
- return false;
3057
- };
3058
- Parser2.prototype.bumpUntil = function(pattern) {
3059
- var currentOffset = this.offset();
3060
- var index = this.message.indexOf(pattern, currentOffset);
3061
- if (index >= 0) {
3062
- this.bumpTo(index);
3063
- return true;
3064
- } else {
3065
- this.bumpTo(this.message.length);
3066
- return false;
3067
- }
3068
- };
3069
- Parser2.prototype.bumpTo = function(targetOffset) {
3070
- if (this.offset() > targetOffset) {
3071
- throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3072
- }
3073
- targetOffset = Math.min(targetOffset, this.message.length);
3074
- while (true) {
3075
- var offset = this.offset();
3076
- if (offset === targetOffset) {
3077
- break;
2631
+ };
2632
+ Parser2.prototype.bumpTo = function(targetOffset) {
2633
+ if (this.offset() > targetOffset) {
2634
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3078
2635
  }
3079
- if (offset > targetOffset) {
3080
- throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2636
+ targetOffset = Math.min(targetOffset, this.message.length);
2637
+ while (true) {
2638
+ var offset = this.offset();
2639
+ if (offset === targetOffset) {
2640
+ break;
2641
+ }
2642
+ if (offset > targetOffset) {
2643
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2644
+ }
2645
+ this.bump();
2646
+ if (this.isEOF()) {
2647
+ break;
2648
+ }
3081
2649
  }
3082
- this.bump();
2650
+ };
2651
+ Parser2.prototype.bumpSpace = function() {
2652
+ while (!this.isEOF() && _isWhiteSpace(this.char())) {
2653
+ this.bump();
2654
+ }
2655
+ };
2656
+ Parser2.prototype.peek = function() {
3083
2657
  if (this.isEOF()) {
3084
- break;
2658
+ return null;
3085
2659
  }
3086
- }
3087
- };
3088
- Parser2.prototype.bumpSpace = function() {
3089
- while (!this.isEOF() && _isWhiteSpace(this.char())) {
3090
- this.bump();
3091
- }
3092
- };
3093
- Parser2.prototype.peek = function() {
3094
- if (this.isEOF()) {
3095
- return null;
3096
- }
3097
- var code = this.char();
3098
- var offset = this.offset();
3099
- var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
3100
- return nextCode !== null && nextCode !== void 0 ? nextCode : null;
3101
- };
3102
- return Parser2;
3103
- }();
2660
+ var code = this.char();
2661
+ var offset = this.offset();
2662
+ var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
2663
+ return nextCode !== null && nextCode !== void 0 ? nextCode : null;
2664
+ };
2665
+ return Parser2;
2666
+ }()
2667
+ );
3104
2668
  function _isAlpha(codepoint) {
3105
2669
  return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
3106
2670
  }
@@ -3117,7 +2681,7 @@ function _isPatternSyntax(c) {
3117
2681
  return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
3118
2682
  }
3119
2683
 
3120
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
2684
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
3121
2685
  function pruneLocation(els) {
3122
2686
  els.forEach(function(el) {
3123
2687
  delete el.location;
@@ -3153,7 +2717,7 @@ function parse(message, opts) {
3153
2717
  return result.val;
3154
2718
  }
3155
2719
 
3156
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
2720
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
3157
2721
  function memoize(fn, options) {
3158
2722
  var cache = options && options.cache ? options.cache : cacheDefault;
3159
2723
  var serializer = options && options.serializer ? options.serializer : serializerDefault;
@@ -3220,7 +2784,7 @@ var strategies = {
3220
2784
  monadic: strategyMonadic
3221
2785
  };
3222
2786
 
3223
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/error.js
2787
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/error.js
3224
2788
  var ErrorCode;
3225
2789
  (function(ErrorCode2) {
3226
2790
  ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
@@ -3229,6 +2793,13 @@ var ErrorCode;
3229
2793
  })(ErrorCode || (ErrorCode = {}));
3230
2794
  var FormatError = class extends Error {
3231
2795
  code;
2796
+ /**
2797
+ * Original message we're trying to format
2798
+ * `undefined` if we're only dealing w/ AST
2799
+ *
2800
+ * @type {(string | undefined)}
2801
+ * @memberof FormatError
2802
+ */
3232
2803
  originalMessage;
3233
2804
  constructor(msg, code, originalMessage) {
3234
2805
  super(msg);
@@ -3255,7 +2826,7 @@ var MissingValueError = class extends FormatError {
3255
2826
  }
3256
2827
  };
3257
2828
 
3258
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/formatters.js
2829
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/formatters.js
3259
2830
  var PART_TYPE;
3260
2831
  (function(PART_TYPE2) {
3261
2832
  PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
@@ -3394,7 +2965,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3394
2965
  return mergeLiteral(result);
3395
2966
  }
3396
2967
 
3397
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/core.js
2968
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/core.js
3398
2969
  function mergeConfig(c1, c2) {
3399
2970
  if (!c2) {
3400
2971
  return c1;
@@ -3531,6 +3102,9 @@ __publicField(IntlMessageFormat, "resolveLocale", (locales) => {
3531
3102
  return new Intl.Locale(typeof locales === "string" ? locales : locales[0]);
3532
3103
  });
3533
3104
  __publicField(IntlMessageFormat, "__parse", parse);
3105
+ // Default format options used as the prototype of the `formats` provided to the
3106
+ // constructor. These are used when constructing the internal Intl.NumberFormat
3107
+ // and Intl.DateTimeFormat instances.
3534
3108
  __publicField(IntlMessageFormat, "formats", {
3535
3109
  number: {
3536
3110
  integer: {
@@ -3591,7 +3165,7 @@ __publicField(IntlMessageFormat, "formats", {
3591
3165
  }
3592
3166
  });
3593
3167
 
3594
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/index.js
3168
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib_esnext/index.js
3595
3169
  var lib_esnext_default = IntlMessageFormat;
3596
3170
  export {
3597
3171
  ErrorCode,