intl-messageformat 10.3.3 → 10.3.5

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,13 +1,8 @@
1
1
  var IntlMessageFormat = (() => {
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
6
  var __export = (target, all) => {
12
7
  for (var name in all)
13
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -20,452 +15,8 @@ var IntlMessageFormat = (() => {
20
15
  }
21
16
  return to;
22
17
  };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
19
 
29
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js
30
- var require_tslib = __commonJS({
31
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js"(exports, module) {
32
- var __extends2;
33
- var __assign2;
34
- var __rest2;
35
- var __decorate2;
36
- var __param2;
37
- var __metadata2;
38
- var __awaiter2;
39
- var __generator2;
40
- var __exportStar2;
41
- var __values2;
42
- var __read2;
43
- var __spread2;
44
- var __spreadArrays2;
45
- var __spreadArray2;
46
- var __await2;
47
- var __asyncGenerator2;
48
- var __asyncDelegator2;
49
- var __asyncValues2;
50
- var __makeTemplateObject2;
51
- var __importStar2;
52
- var __importDefault2;
53
- var __classPrivateFieldGet2;
54
- var __classPrivateFieldSet2;
55
- var __classPrivateFieldIn2;
56
- var __createBinding2;
57
- (function(factory) {
58
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
59
- if (typeof define === "function" && define.amd) {
60
- define("tslib", ["exports"], function(exports2) {
61
- factory(createExporter(root, createExporter(exports2)));
62
- });
63
- } else if (typeof module === "object" && typeof module.exports === "object") {
64
- factory(createExporter(root, createExporter(module.exports)));
65
- } else {
66
- factory(createExporter(root));
67
- }
68
- function createExporter(exports2, previous) {
69
- if (exports2 !== root) {
70
- if (typeof Object.create === "function") {
71
- Object.defineProperty(exports2, "__esModule", { value: true });
72
- } else {
73
- exports2.__esModule = true;
74
- }
75
- }
76
- return function(id, v) {
77
- return exports2[id] = previous ? previous(id, v) : v;
78
- };
79
- }
80
- })(function(exporter) {
81
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
82
- d.__proto__ = b;
83
- } || function(d, b) {
84
- for (var p in b)
85
- if (Object.prototype.hasOwnProperty.call(b, p))
86
- d[p] = b[p];
87
- };
88
- __extends2 = function(d, b) {
89
- if (typeof b !== "function" && b !== null)
90
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
91
- extendStatics(d, b);
92
- function __() {
93
- this.constructor = d;
94
- }
95
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
96
- };
97
- __assign2 = Object.assign || function(t) {
98
- for (var s, i = 1, n = arguments.length; i < n; i++) {
99
- s = arguments[i];
100
- for (var p in s)
101
- if (Object.prototype.hasOwnProperty.call(s, p))
102
- t[p] = s[p];
103
- }
104
- return t;
105
- };
106
- __rest2 = function(s, e) {
107
- var t = {};
108
- for (var p in s)
109
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
110
- t[p] = s[p];
111
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
112
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
113
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
114
- t[p[i]] = s[p[i]];
115
- }
116
- return t;
117
- };
118
- __decorate2 = function(decorators, target, key, desc) {
119
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
120
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
121
- r = Reflect.decorate(decorators, target, key, desc);
122
- else
123
- for (var i = decorators.length - 1; i >= 0; i--)
124
- if (d = decorators[i])
125
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
126
- return c > 3 && r && Object.defineProperty(target, key, r), r;
127
- };
128
- __param2 = function(paramIndex, decorator) {
129
- return function(target, key) {
130
- decorator(target, key, paramIndex);
131
- };
132
- };
133
- __metadata2 = function(metadataKey, metadataValue) {
134
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
135
- return Reflect.metadata(metadataKey, metadataValue);
136
- };
137
- __awaiter2 = function(thisArg, _arguments, P, generator) {
138
- function adopt(value) {
139
- return value instanceof P ? value : new P(function(resolve) {
140
- resolve(value);
141
- });
142
- }
143
- return new (P || (P = Promise))(function(resolve, reject) {
144
- function fulfilled(value) {
145
- try {
146
- step(generator.next(value));
147
- } catch (e) {
148
- reject(e);
149
- }
150
- }
151
- function rejected(value) {
152
- try {
153
- step(generator["throw"](value));
154
- } catch (e) {
155
- reject(e);
156
- }
157
- }
158
- function step(result) {
159
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
160
- }
161
- step((generator = generator.apply(thisArg, _arguments || [])).next());
162
- });
163
- };
164
- __generator2 = function(thisArg, body) {
165
- var _ = { label: 0, sent: function() {
166
- if (t[0] & 1)
167
- throw t[1];
168
- return t[1];
169
- }, trys: [], ops: [] }, f, y, t, g;
170
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
171
- return this;
172
- }), g;
173
- function verb(n) {
174
- return function(v) {
175
- return step([n, v]);
176
- };
177
- }
178
- function step(op) {
179
- if (f)
180
- throw new TypeError("Generator is already executing.");
181
- while (_)
182
- try {
183
- 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)
184
- return t;
185
- if (y = 0, t)
186
- op = [op[0] & 2, t.value];
187
- switch (op[0]) {
188
- case 0:
189
- case 1:
190
- t = op;
191
- break;
192
- case 4:
193
- _.label++;
194
- return { value: op[1], done: false };
195
- case 5:
196
- _.label++;
197
- y = op[1];
198
- op = [0];
199
- continue;
200
- case 7:
201
- op = _.ops.pop();
202
- _.trys.pop();
203
- continue;
204
- default:
205
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
206
- _ = 0;
207
- continue;
208
- }
209
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
210
- _.label = op[1];
211
- break;
212
- }
213
- if (op[0] === 6 && _.label < t[1]) {
214
- _.label = t[1];
215
- t = op;
216
- break;
217
- }
218
- if (t && _.label < t[2]) {
219
- _.label = t[2];
220
- _.ops.push(op);
221
- break;
222
- }
223
- if (t[2])
224
- _.ops.pop();
225
- _.trys.pop();
226
- continue;
227
- }
228
- op = body.call(thisArg, _);
229
- } catch (e) {
230
- op = [6, e];
231
- y = 0;
232
- } finally {
233
- f = t = 0;
234
- }
235
- if (op[0] & 5)
236
- throw op[1];
237
- return { value: op[0] ? op[1] : void 0, done: true };
238
- }
239
- };
240
- __exportStar2 = function(m, o) {
241
- for (var p in m)
242
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
243
- __createBinding2(o, m, p);
244
- };
245
- __createBinding2 = Object.create ? function(o, m, k, k2) {
246
- if (k2 === void 0)
247
- k2 = k;
248
- var desc = Object.getOwnPropertyDescriptor(m, k);
249
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
250
- desc = { enumerable: true, get: function() {
251
- return m[k];
252
- } };
253
- }
254
- Object.defineProperty(o, k2, desc);
255
- } : function(o, m, k, k2) {
256
- if (k2 === void 0)
257
- k2 = k;
258
- o[k2] = m[k];
259
- };
260
- __values2 = function(o) {
261
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
262
- if (m)
263
- return m.call(o);
264
- if (o && typeof o.length === "number")
265
- return {
266
- next: function() {
267
- if (o && i >= o.length)
268
- o = void 0;
269
- return { value: o && o[i++], done: !o };
270
- }
271
- };
272
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
273
- };
274
- __read2 = function(o, n) {
275
- var m = typeof Symbol === "function" && o[Symbol.iterator];
276
- if (!m)
277
- return o;
278
- var i = m.call(o), r, ar = [], e;
279
- try {
280
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
281
- ar.push(r.value);
282
- } catch (error) {
283
- e = { error };
284
- } finally {
285
- try {
286
- if (r && !r.done && (m = i["return"]))
287
- m.call(i);
288
- } finally {
289
- if (e)
290
- throw e.error;
291
- }
292
- }
293
- return ar;
294
- };
295
- __spread2 = function() {
296
- for (var ar = [], i = 0; i < arguments.length; i++)
297
- ar = ar.concat(__read2(arguments[i]));
298
- return ar;
299
- };
300
- __spreadArrays2 = function() {
301
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
302
- s += arguments[i].length;
303
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
304
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
305
- r[k] = a[j];
306
- return r;
307
- };
308
- __spreadArray2 = function(to, from, pack) {
309
- if (pack || arguments.length === 2)
310
- for (var i = 0, l = from.length, ar; i < l; i++) {
311
- if (ar || !(i in from)) {
312
- if (!ar)
313
- ar = Array.prototype.slice.call(from, 0, i);
314
- ar[i] = from[i];
315
- }
316
- }
317
- return to.concat(ar || Array.prototype.slice.call(from));
318
- };
319
- __await2 = function(v) {
320
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
321
- };
322
- __asyncGenerator2 = function(thisArg, _arguments, generator) {
323
- if (!Symbol.asyncIterator)
324
- throw new TypeError("Symbol.asyncIterator is not defined.");
325
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
326
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
327
- return this;
328
- }, i;
329
- function verb(n) {
330
- if (g[n])
331
- i[n] = function(v) {
332
- return new Promise(function(a, b) {
333
- q.push([n, v, a, b]) > 1 || resume(n, v);
334
- });
335
- };
336
- }
337
- function resume(n, v) {
338
- try {
339
- step(g[n](v));
340
- } catch (e) {
341
- settle(q[0][3], e);
342
- }
343
- }
344
- function step(r) {
345
- r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
346
- }
347
- function fulfill(value) {
348
- resume("next", value);
349
- }
350
- function reject(value) {
351
- resume("throw", value);
352
- }
353
- function settle(f, v) {
354
- if (f(v), q.shift(), q.length)
355
- resume(q[0][0], q[0][1]);
356
- }
357
- };
358
- __asyncDelegator2 = function(o) {
359
- var i, p;
360
- return i = {}, verb("next"), verb("throw", function(e) {
361
- throw e;
362
- }), verb("return"), i[Symbol.iterator] = function() {
363
- return this;
364
- }, i;
365
- function verb(n, f) {
366
- i[n] = o[n] ? function(v) {
367
- return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v;
368
- } : f;
369
- }
370
- };
371
- __asyncValues2 = function(o) {
372
- if (!Symbol.asyncIterator)
373
- throw new TypeError("Symbol.asyncIterator is not defined.");
374
- var m = o[Symbol.asyncIterator], i;
375
- 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() {
376
- return this;
377
- }, i);
378
- function verb(n) {
379
- i[n] = o[n] && function(v) {
380
- return new Promise(function(resolve, reject) {
381
- v = o[n](v), settle(resolve, reject, v.done, v.value);
382
- });
383
- };
384
- }
385
- function settle(resolve, reject, d, v) {
386
- Promise.resolve(v).then(function(v2) {
387
- resolve({ value: v2, done: d });
388
- }, reject);
389
- }
390
- };
391
- __makeTemplateObject2 = function(cooked, raw) {
392
- if (Object.defineProperty) {
393
- Object.defineProperty(cooked, "raw", { value: raw });
394
- } else {
395
- cooked.raw = raw;
396
- }
397
- return cooked;
398
- };
399
- var __setModuleDefault = Object.create ? function(o, v) {
400
- Object.defineProperty(o, "default", { enumerable: true, value: v });
401
- } : function(o, v) {
402
- o["default"] = v;
403
- };
404
- __importStar2 = function(mod) {
405
- if (mod && mod.__esModule)
406
- return mod;
407
- var result = {};
408
- if (mod != null) {
409
- for (var k in mod)
410
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
411
- __createBinding2(result, mod, k);
412
- }
413
- __setModuleDefault(result, mod);
414
- return result;
415
- };
416
- __importDefault2 = function(mod) {
417
- return mod && mod.__esModule ? mod : { "default": mod };
418
- };
419
- __classPrivateFieldGet2 = function(receiver, state, kind, f) {
420
- if (kind === "a" && !f)
421
- throw new TypeError("Private accessor was defined without a getter");
422
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
423
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
424
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
425
- };
426
- __classPrivateFieldSet2 = function(receiver, state, value, kind, f) {
427
- if (kind === "m")
428
- throw new TypeError("Private method is not writable");
429
- if (kind === "a" && !f)
430
- throw new TypeError("Private accessor was defined without a setter");
431
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
432
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
433
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
434
- };
435
- __classPrivateFieldIn2 = function(state, receiver) {
436
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
437
- throw new TypeError("Cannot use 'in' operator on non-object");
438
- return typeof state === "function" ? receiver === state : state.has(receiver);
439
- };
440
- exporter("__extends", __extends2);
441
- exporter("__assign", __assign2);
442
- exporter("__rest", __rest2);
443
- exporter("__decorate", __decorate2);
444
- exporter("__param", __param2);
445
- exporter("__metadata", __metadata2);
446
- exporter("__awaiter", __awaiter2);
447
- exporter("__generator", __generator2);
448
- exporter("__exportStar", __exportStar2);
449
- exporter("__createBinding", __createBinding2);
450
- exporter("__values", __values2);
451
- exporter("__read", __read2);
452
- exporter("__spread", __spread2);
453
- exporter("__spreadArrays", __spreadArrays2);
454
- exporter("__spreadArray", __spreadArray2);
455
- exporter("__await", __await2);
456
- exporter("__asyncGenerator", __asyncGenerator2);
457
- exporter("__asyncDelegator", __asyncDelegator2);
458
- exporter("__asyncValues", __asyncValues2);
459
- exporter("__makeTemplateObject", __makeTemplateObject2);
460
- exporter("__importStar", __importStar2);
461
- exporter("__importDefault", __importDefault2);
462
- exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
463
- exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
464
- exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
465
- });
466
- }
467
- });
468
-
469
20
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/index.js
470
21
  var lib_exports = {};
471
22
  __export(lib_exports, {
@@ -481,35 +32,61 @@ var IntlMessageFormat = (() => {
481
32
  isFormatXMLElementFn: () => isFormatXMLElementFn
482
33
  });
483
34
 
484
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
485
- var import_tslib = __toESM(require_tslib(), 1);
486
- var {
487
- __extends,
488
- __assign,
489
- __rest,
490
- __decorate,
491
- __param,
492
- __metadata,
493
- __awaiter,
494
- __generator,
495
- __exportStar,
496
- __createBinding,
497
- __values,
498
- __read,
499
- __spread,
500
- __spreadArrays,
501
- __spreadArray,
502
- __await,
503
- __asyncGenerator,
504
- __asyncDelegator,
505
- __asyncValues,
506
- __makeTemplateObject,
507
- __importStar,
508
- __importDefault,
509
- __classPrivateFieldGet,
510
- __classPrivateFieldSet,
511
- __classPrivateFieldIn
512
- } = import_tslib.default;
35
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
36
+ var extendStatics = function(d, b) {
37
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
38
+ d2.__proto__ = b2;
39
+ } || function(d2, b2) {
40
+ for (var p in b2)
41
+ if (Object.prototype.hasOwnProperty.call(b2, p))
42
+ d2[p] = b2[p];
43
+ };
44
+ return extendStatics(d, b);
45
+ };
46
+ function __extends(d, b) {
47
+ if (typeof b !== "function" && b !== null)
48
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
49
+ extendStatics(d, b);
50
+ function __() {
51
+ this.constructor = d;
52
+ }
53
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54
+ }
55
+ var __assign = function() {
56
+ __assign = Object.assign || function __assign2(t) {
57
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
58
+ s = arguments[i];
59
+ for (var p in s)
60
+ if (Object.prototype.hasOwnProperty.call(s, p))
61
+ t[p] = s[p];
62
+ }
63
+ return t;
64
+ };
65
+ return __assign.apply(this, arguments);
66
+ };
67
+ function __rest(s, e) {
68
+ var t = {};
69
+ for (var p in s)
70
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
71
+ t[p] = s[p];
72
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
73
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
74
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
75
+ t[p[i]] = s[p[i]];
76
+ }
77
+ return t;
78
+ }
79
+ function __spreadArray(to, from, pack) {
80
+ if (pack || arguments.length === 2)
81
+ for (var i = 0, l = from.length, ar; i < l; i++) {
82
+ if (ar || !(i in from)) {
83
+ if (!ar)
84
+ ar = Array.prototype.slice.call(from, 0, i);
85
+ ar[i] = from[i];
86
+ }
87
+ }
88
+ return to.concat(ar || Array.prototype.slice.call(from));
89
+ }
513
90
 
514
91
  // ../../../../../../../../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
515
92
  var ErrorKind;
@@ -969,747 +546,875 @@ var IntlMessageFormat = (() => {
969
546
 
970
547
  // ../../../../../../../../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
971
548
  var timeData = {
972
- "AX": [
973
- "H"
974
- ],
975
- "BQ": [
976
- "H"
977
- ],
978
- "CP": [
979
- "H"
980
- ],
981
- "CZ": [
982
- "H"
983
- ],
984
- "DK": [
985
- "H"
986
- ],
987
- "FI": [
988
- "H"
989
- ],
990
- "ID": [
991
- "H"
992
- ],
993
- "IS": [
994
- "H"
995
- ],
996
- "ML": [
997
- "H"
998
- ],
999
- "NE": [
1000
- "H"
1001
- ],
1002
- "RU": [
1003
- "H"
1004
- ],
1005
- "SE": [
1006
- "H"
549
+ "001": [
550
+ "H",
551
+ "h"
1007
552
  ],
1008
- "SJ": [
1009
- "H"
553
+ "AC": [
554
+ "H",
555
+ "h",
556
+ "hb",
557
+ "hB"
1010
558
  ],
1011
- "SK": [
1012
- "H"
559
+ "AD": [
560
+ "H",
561
+ "hB"
1013
562
  ],
1014
- "AS": [
563
+ "AE": [
1015
564
  "h",
565
+ "hB",
566
+ "hb",
1016
567
  "H"
1017
568
  ],
1018
- "BT": [
1019
- "h",
1020
- "H"
569
+ "AF": [
570
+ "H",
571
+ "hb",
572
+ "hB",
573
+ "h"
1021
574
  ],
1022
- "DJ": [
575
+ "AG": [
1023
576
  "h",
1024
- "H"
577
+ "hb",
578
+ "H",
579
+ "hB"
1025
580
  ],
1026
- "ER": [
581
+ "AI": [
582
+ "H",
1027
583
  "h",
1028
- "H"
584
+ "hb",
585
+ "hB"
1029
586
  ],
1030
- "GH": [
587
+ "AL": [
1031
588
  "h",
1032
- "H"
589
+ "H",
590
+ "hB"
1033
591
  ],
1034
- "IN": [
1035
- "h",
1036
- "H"
592
+ "AM": [
593
+ "H",
594
+ "hB"
1037
595
  ],
1038
- "LS": [
1039
- "h",
1040
- "H"
596
+ "AO": [
597
+ "H",
598
+ "hB"
1041
599
  ],
1042
- "PG": [
600
+ "AR": [
601
+ "H",
1043
602
  "h",
1044
- "H"
603
+ "hB",
604
+ "hb"
1045
605
  ],
1046
- "PW": [
606
+ "AS": [
1047
607
  "h",
1048
608
  "H"
1049
609
  ],
1050
- "SO": [
1051
- "h",
1052
- "H"
610
+ "AT": [
611
+ "H",
612
+ "hB"
1053
613
  ],
1054
- "TO": [
614
+ "AU": [
1055
615
  "h",
1056
- "H"
616
+ "hb",
617
+ "H",
618
+ "hB"
1057
619
  ],
1058
- "VU": [
1059
- "h",
1060
- "H"
620
+ "AW": [
621
+ "H",
622
+ "hB"
1061
623
  ],
1062
- "WS": [
1063
- "h",
624
+ "AX": [
1064
625
  "H"
1065
626
  ],
1066
- "001": [
627
+ "AZ": [
1067
628
  "H",
629
+ "hB",
1068
630
  "h"
1069
631
  ],
1070
- "AL": [
1071
- "h",
632
+ "BA": [
1072
633
  "H",
1073
- "hB"
634
+ "hB",
635
+ "h"
1074
636
  ],
1075
- "TD": [
637
+ "BB": [
1076
638
  "h",
639
+ "hb",
1077
640
  "H",
1078
641
  "hB"
1079
642
  ],
1080
- "ca-ES": [
1081
- "H",
643
+ "BD": [
1082
644
  "h",
1083
- "hB"
645
+ "hB",
646
+ "H"
1084
647
  ],
1085
- "CF": [
648
+ "BE": [
1086
649
  "H",
1087
- "h",
1088
650
  "hB"
1089
651
  ],
1090
- "CM": [
652
+ "BF": [
1091
653
  "H",
1092
- "h",
1093
654
  "hB"
1094
655
  ],
1095
- "fr-CA": [
656
+ "BG": [
1096
657
  "H",
658
+ "hB",
659
+ "h"
660
+ ],
661
+ "BH": [
1097
662
  "h",
1098
- "hB"
663
+ "hB",
664
+ "hb",
665
+ "H"
1099
666
  ],
1100
- "gl-ES": [
667
+ "BJ": [
1101
668
  "H",
1102
- "h",
1103
669
  "hB"
1104
670
  ],
1105
- "it-CH": [
671
+ "BL": [
1106
672
  "H",
1107
- "h",
1108
673
  "hB"
1109
674
  ],
1110
- "it-IT": [
1111
- "H",
675
+ "BM": [
1112
676
  "h",
677
+ "hb",
678
+ "H",
1113
679
  "hB"
1114
680
  ],
1115
- "LU": [
1116
- "H",
681
+ "BN": [
682
+ "hb",
683
+ "hB",
1117
684
  "h",
1118
- "hB"
685
+ "H"
1119
686
  ],
1120
- "NP": [
687
+ "BO": [
1121
688
  "H",
689
+ "hB",
1122
690
  "h",
1123
- "hB"
691
+ "hb"
1124
692
  ],
1125
- "PF": [
1126
- "H",
1127
- "h",
1128
- "hB"
693
+ "BQ": [
694
+ "H"
1129
695
  ],
1130
- "SC": [
696
+ "BR": [
1131
697
  "H",
1132
- "h",
1133
698
  "hB"
1134
699
  ],
1135
- "SM": [
1136
- "H",
700
+ "BS": [
1137
701
  "h",
702
+ "hb",
703
+ "H",
1138
704
  "hB"
1139
705
  ],
1140
- "SN": [
1141
- "H",
706
+ "BT": [
1142
707
  "h",
1143
- "hB"
708
+ "H"
1144
709
  ],
1145
- "TF": [
710
+ "BW": [
1146
711
  "H",
1147
712
  "h",
713
+ "hb",
1148
714
  "hB"
1149
715
  ],
1150
- "VA": [
716
+ "BZ": [
1151
717
  "H",
1152
718
  "h",
719
+ "hb",
1153
720
  "hB"
1154
721
  ],
1155
- "CY": [
722
+ "CA": [
1156
723
  "h",
1157
- "H",
1158
724
  "hb",
725
+ "H",
1159
726
  "hB"
1160
727
  ],
1161
- "GR": [
1162
- "h",
728
+ "CC": [
1163
729
  "H",
730
+ "h",
1164
731
  "hb",
1165
732
  "hB"
1166
733
  ],
1167
- "CO": [
1168
- "h",
1169
- "H",
734
+ "CD": [
1170
735
  "hB",
1171
- "hb"
736
+ "H"
1172
737
  ],
1173
- "DO": [
738
+ "CF": [
739
+ "H",
1174
740
  "h",
741
+ "hB"
742
+ ],
743
+ "CG": [
1175
744
  "H",
1176
- "hB",
1177
- "hb"
745
+ "hB"
1178
746
  ],
1179
- "KP": [
1180
- "h",
747
+ "CH": [
1181
748
  "H",
1182
749
  "hB",
1183
- "hb"
750
+ "h"
1184
751
  ],
1185
- "KR": [
752
+ "CI": [
753
+ "H",
754
+ "hB"
755
+ ],
756
+ "CK": [
757
+ "H",
1186
758
  "h",
759
+ "hb",
760
+ "hB"
761
+ ],
762
+ "CL": [
1187
763
  "H",
764
+ "h",
1188
765
  "hB",
1189
766
  "hb"
1190
767
  ],
1191
- "NA": [
768
+ "CM": [
769
+ "H",
1192
770
  "h",
771
+ "hB"
772
+ ],
773
+ "CN": [
1193
774
  "H",
1194
775
  "hB",
1195
- "hb"
776
+ "hb",
777
+ "h"
1196
778
  ],
1197
- "PA": [
779
+ "CO": [
1198
780
  "h",
1199
781
  "H",
1200
782
  "hB",
1201
783
  "hb"
1202
784
  ],
1203
- "PR": [
1204
- "h",
785
+ "CP": [
786
+ "H"
787
+ ],
788
+ "CR": [
1205
789
  "H",
790
+ "h",
1206
791
  "hB",
1207
792
  "hb"
1208
793
  ],
1209
- "VE": [
1210
- "h",
794
+ "CU": [
1211
795
  "H",
796
+ "h",
1212
797
  "hB",
1213
798
  "hb"
1214
799
  ],
1215
- "AC": [
800
+ "CV": [
1216
801
  "H",
1217
- "h",
1218
- "hb",
1219
802
  "hB"
1220
803
  ],
1221
- "AI": [
804
+ "CX": [
1222
805
  "H",
1223
806
  "h",
1224
807
  "hb",
1225
808
  "hB"
1226
809
  ],
1227
- "BW": [
1228
- "H",
810
+ "CY": [
1229
811
  "h",
812
+ "H",
1230
813
  "hb",
1231
814
  "hB"
1232
815
  ],
1233
- "BZ": [
816
+ "CZ": [
817
+ "H"
818
+ ],
819
+ "DE": [
1234
820
  "H",
1235
- "h",
1236
- "hb",
1237
821
  "hB"
1238
822
  ],
1239
- "CC": [
823
+ "DG": [
1240
824
  "H",
1241
825
  "h",
1242
826
  "hb",
1243
827
  "hB"
1244
828
  ],
1245
- "CK": [
1246
- "H",
829
+ "DJ": [
1247
830
  "h",
1248
- "hb",
1249
- "hB"
831
+ "H"
1250
832
  ],
1251
- "CX": [
1252
- "H",
833
+ "DK": [
834
+ "H"
835
+ ],
836
+ "DM": [
1253
837
  "h",
1254
838
  "hb",
839
+ "H",
1255
840
  "hB"
1256
841
  ],
1257
- "DG": [
842
+ "DO": [
843
+ "h",
1258
844
  "H",
845
+ "hB",
846
+ "hb"
847
+ ],
848
+ "DZ": [
1259
849
  "h",
850
+ "hB",
1260
851
  "hb",
1261
- "hB"
852
+ "H"
1262
853
  ],
1263
- "FK": [
854
+ "EA": [
1264
855
  "H",
1265
856
  "h",
1266
- "hb",
1267
- "hB"
857
+ "hB",
858
+ "hb"
1268
859
  ],
1269
- "GB": [
860
+ "EC": [
1270
861
  "H",
862
+ "hB",
1271
863
  "h",
1272
- "hb",
1273
- "hB"
864
+ "hb"
1274
865
  ],
1275
- "GG": [
866
+ "EE": [
1276
867
  "H",
1277
- "h",
1278
- "hb",
1279
868
  "hB"
1280
869
  ],
1281
- "GI": [
1282
- "H",
870
+ "EG": [
1283
871
  "h",
872
+ "hB",
1284
873
  "hb",
1285
- "hB"
874
+ "H"
1286
875
  ],
1287
- "IE": [
1288
- "H",
876
+ "EH": [
1289
877
  "h",
878
+ "hB",
1290
879
  "hb",
1291
- "hB"
880
+ "H"
1292
881
  ],
1293
- "IM": [
1294
- "H",
882
+ "ER": [
1295
883
  "h",
1296
- "hb",
1297
- "hB"
884
+ "H"
1298
885
  ],
1299
- "IO": [
886
+ "ES": [
1300
887
  "H",
888
+ "hB",
1301
889
  "h",
890
+ "hb"
891
+ ],
892
+ "ET": [
893
+ "hB",
1302
894
  "hb",
1303
- "hB"
895
+ "h",
896
+ "H"
1304
897
  ],
1305
- "JE": [
1306
- "H",
898
+ "FI": [
899
+ "H"
900
+ ],
901
+ "FJ": [
1307
902
  "h",
1308
903
  "hb",
904
+ "H",
1309
905
  "hB"
1310
906
  ],
1311
- "LT": [
907
+ "FK": [
1312
908
  "H",
1313
909
  "h",
1314
910
  "hb",
1315
911
  "hB"
1316
912
  ],
1317
- "MK": [
1318
- "H",
913
+ "FM": [
1319
914
  "h",
1320
915
  "hb",
916
+ "H",
1321
917
  "hB"
1322
918
  ],
1323
- "MN": [
919
+ "FR": [
1324
920
  "H",
1325
- "h",
1326
- "hb",
1327
921
  "hB"
1328
922
  ],
1329
- "MS": [
923
+ "GA": [
1330
924
  "H",
1331
- "h",
1332
- "hb",
1333
925
  "hB"
1334
926
  ],
1335
- "NF": [
927
+ "GB": [
1336
928
  "H",
1337
929
  "h",
1338
930
  "hb",
1339
931
  "hB"
1340
932
  ],
1341
- "NG": [
1342
- "H",
933
+ "GD": [
1343
934
  "h",
1344
935
  "hb",
936
+ "H",
1345
937
  "hB"
1346
938
  ],
1347
- "NR": [
939
+ "GE": [
1348
940
  "H",
1349
- "h",
1350
- "hb",
1351
- "hB"
941
+ "hB",
942
+ "h"
1352
943
  ],
1353
- "NU": [
944
+ "GF": [
1354
945
  "H",
1355
- "h",
1356
- "hb",
1357
946
  "hB"
1358
947
  ],
1359
- "PN": [
948
+ "GG": [
1360
949
  "H",
1361
950
  "h",
1362
951
  "hb",
1363
952
  "hB"
1364
953
  ],
1365
- "SH": [
954
+ "GH": [
955
+ "h",
956
+ "H"
957
+ ],
958
+ "GI": [
1366
959
  "H",
1367
960
  "h",
1368
961
  "hb",
1369
962
  "hB"
1370
963
  ],
1371
- "SX": [
1372
- "H",
964
+ "GM": [
1373
965
  "h",
1374
966
  "hb",
967
+ "H",
1375
968
  "hB"
1376
969
  ],
1377
- "TA": [
970
+ "GN": [
1378
971
  "H",
1379
- "h",
1380
- "hb",
1381
972
  "hB"
1382
973
  ],
1383
- "ZA": [
974
+ "GP": [
1384
975
  "H",
1385
- "h",
1386
- "hb",
1387
976
  "hB"
1388
977
  ],
1389
- "af-ZA": [
978
+ "GQ": [
1390
979
  "H",
1391
- "h",
1392
980
  "hB",
981
+ "h",
1393
982
  "hb"
1394
983
  ],
1395
- "AR": [
984
+ "GR": [
985
+ "h",
986
+ "H",
987
+ "hb",
988
+ "hB"
989
+ ],
990
+ "GT": [
1396
991
  "H",
1397
992
  "h",
1398
993
  "hB",
1399
994
  "hb"
1400
995
  ],
1401
- "CL": [
1402
- "H",
996
+ "GU": [
1403
997
  "h",
1404
- "hB",
1405
- "hb"
998
+ "hb",
999
+ "H",
1000
+ "hB"
1406
1001
  ],
1407
- "CR": [
1002
+ "GW": [
1408
1003
  "H",
1409
- "h",
1410
- "hB",
1411
- "hb"
1004
+ "hB"
1412
1005
  ],
1413
- "CU": [
1006
+ "GY": [
1007
+ "h",
1008
+ "hb",
1414
1009
  "H",
1010
+ "hB"
1011
+ ],
1012
+ "HK": [
1415
1013
  "h",
1416
1014
  "hB",
1417
- "hb"
1015
+ "hb",
1016
+ "H"
1418
1017
  ],
1419
- "EA": [
1018
+ "HN": [
1420
1019
  "H",
1421
1020
  "h",
1422
1021
  "hB",
1423
1022
  "hb"
1424
1023
  ],
1425
- "es-BO": [
1024
+ "HR": [
1426
1025
  "H",
1427
- "h",
1428
- "hB",
1429
- "hb"
1026
+ "hB"
1430
1027
  ],
1431
- "es-BR": [
1028
+ "IC": [
1432
1029
  "H",
1433
1030
  "h",
1434
1031
  "hB",
1435
1032
  "hb"
1436
1033
  ],
1437
- "es-EC": [
1034
+ "ID": [
1035
+ "H"
1036
+ ],
1037
+ "IE": [
1438
1038
  "H",
1439
1039
  "h",
1440
- "hB",
1441
- "hb"
1040
+ "hb",
1041
+ "hB"
1442
1042
  ],
1443
- "es-ES": [
1043
+ "IL": [
1444
1044
  "H",
1445
- "h",
1446
- "hB",
1447
- "hb"
1045
+ "hB"
1448
1046
  ],
1449
- "es-GQ": [
1047
+ "IM": [
1450
1048
  "H",
1451
1049
  "h",
1452
- "hB",
1453
- "hb"
1050
+ "hb",
1051
+ "hB"
1454
1052
  ],
1455
- "es-PE": [
1456
- "H",
1053
+ "IN": [
1457
1054
  "h",
1458
- "hB",
1459
- "hb"
1055
+ "H"
1460
1056
  ],
1461
- "GT": [
1057
+ "IO": [
1462
1058
  "H",
1463
1059
  "h",
1464
- "hB",
1465
- "hb"
1060
+ "hb",
1061
+ "hB"
1466
1062
  ],
1467
- "HN": [
1468
- "H",
1063
+ "IQ": [
1469
1064
  "h",
1470
1065
  "hB",
1471
- "hb"
1066
+ "hb",
1067
+ "H"
1472
1068
  ],
1473
- "IC": [
1474
- "H",
1475
- "h",
1069
+ "IR": [
1476
1070
  "hB",
1477
- "hb"
1071
+ "H"
1478
1072
  ],
1479
- "KG": [
1073
+ "IS": [
1074
+ "H"
1075
+ ],
1076
+ "IT": [
1480
1077
  "H",
1481
- "h",
1482
- "hB",
1483
- "hb"
1078
+ "hB"
1484
1079
  ],
1485
- "KM": [
1080
+ "JE": [
1486
1081
  "H",
1487
1082
  "h",
1488
- "hB",
1489
- "hb"
1083
+ "hb",
1084
+ "hB"
1490
1085
  ],
1491
- "LK": [
1086
+ "JM": [
1087
+ "h",
1088
+ "hb",
1492
1089
  "H",
1090
+ "hB"
1091
+ ],
1092
+ "JO": [
1493
1093
  "h",
1494
1094
  "hB",
1495
- "hb"
1095
+ "hb",
1096
+ "H"
1496
1097
  ],
1497
- "MA": [
1098
+ "JP": [
1498
1099
  "H",
1499
1100
  "h",
1101
+ "K"
1102
+ ],
1103
+ "KE": [
1500
1104
  "hB",
1501
- "hb"
1105
+ "hb",
1106
+ "H",
1107
+ "h"
1502
1108
  ],
1503
- "MX": [
1109
+ "KG": [
1504
1110
  "H",
1505
1111
  "h",
1506
1112
  "hB",
1507
1113
  "hb"
1508
1114
  ],
1509
- "NI": [
1510
- "H",
1511
- "h",
1115
+ "KH": [
1512
1116
  "hB",
1117
+ "h",
1118
+ "H",
1513
1119
  "hb"
1514
1120
  ],
1515
- "PY": [
1121
+ "KI": [
1122
+ "h",
1123
+ "hb",
1124
+ "H",
1125
+ "hB"
1126
+ ],
1127
+ "KM": [
1516
1128
  "H",
1517
1129
  "h",
1518
1130
  "hB",
1519
1131
  "hb"
1520
1132
  ],
1521
- "SV": [
1133
+ "KN": [
1134
+ "h",
1135
+ "hb",
1522
1136
  "H",
1137
+ "hB"
1138
+ ],
1139
+ "KP": [
1523
1140
  "h",
1141
+ "H",
1524
1142
  "hB",
1525
1143
  "hb"
1526
1144
  ],
1527
- "UY": [
1528
- "H",
1145
+ "KR": [
1529
1146
  "h",
1147
+ "H",
1530
1148
  "hB",
1531
1149
  "hb"
1532
1150
  ],
1533
- "JP": [
1534
- "H",
1151
+ "KW": [
1535
1152
  "h",
1536
- "K"
1153
+ "hB",
1154
+ "hb",
1155
+ "H"
1537
1156
  ],
1538
- "AD": [
1157
+ "KY": [
1158
+ "h",
1159
+ "hb",
1539
1160
  "H",
1540
1161
  "hB"
1541
1162
  ],
1542
- "AM": [
1163
+ "KZ": [
1543
1164
  "H",
1544
1165
  "hB"
1545
1166
  ],
1546
- "AO": [
1167
+ "LA": [
1547
1168
  "H",
1548
- "hB"
1169
+ "hb",
1170
+ "hB",
1171
+ "h"
1549
1172
  ],
1550
- "AT": [
1551
- "H",
1552
- "hB"
1173
+ "LB": [
1174
+ "h",
1175
+ "hB",
1176
+ "hb",
1177
+ "H"
1553
1178
  ],
1554
- "AW": [
1179
+ "LC": [
1180
+ "h",
1181
+ "hb",
1555
1182
  "H",
1556
1183
  "hB"
1557
1184
  ],
1558
- "BE": [
1185
+ "LI": [
1559
1186
  "H",
1560
- "hB"
1187
+ "hB",
1188
+ "h"
1561
1189
  ],
1562
- "BF": [
1190
+ "LK": [
1563
1191
  "H",
1564
- "hB"
1192
+ "h",
1193
+ "hB",
1194
+ "hb"
1565
1195
  ],
1566
- "BJ": [
1196
+ "LR": [
1197
+ "h",
1198
+ "hb",
1567
1199
  "H",
1568
1200
  "hB"
1569
1201
  ],
1570
- "BL": [
1571
- "H",
1572
- "hB"
1202
+ "LS": [
1203
+ "h",
1204
+ "H"
1573
1205
  ],
1574
- "BR": [
1206
+ "LT": [
1575
1207
  "H",
1208
+ "h",
1209
+ "hb",
1576
1210
  "hB"
1577
1211
  ],
1578
- "CG": [
1212
+ "LU": [
1579
1213
  "H",
1214
+ "h",
1580
1215
  "hB"
1581
1216
  ],
1582
- "CI": [
1217
+ "LV": [
1583
1218
  "H",
1584
- "hB"
1219
+ "hB",
1220
+ "hb",
1221
+ "h"
1585
1222
  ],
1586
- "CV": [
1587
- "H",
1588
- "hB"
1223
+ "LY": [
1224
+ "h",
1225
+ "hB",
1226
+ "hb",
1227
+ "H"
1589
1228
  ],
1590
- "DE": [
1229
+ "MA": [
1591
1230
  "H",
1592
- "hB"
1231
+ "h",
1232
+ "hB",
1233
+ "hb"
1593
1234
  ],
1594
- "EE": [
1235
+ "MC": [
1595
1236
  "H",
1596
1237
  "hB"
1597
1238
  ],
1598
- "FR": [
1239
+ "MD": [
1599
1240
  "H",
1600
1241
  "hB"
1601
1242
  ],
1602
- "GA": [
1243
+ "ME": [
1603
1244
  "H",
1604
- "hB"
1245
+ "hB",
1246
+ "h"
1605
1247
  ],
1606
- "GF": [
1248
+ "MF": [
1607
1249
  "H",
1608
1250
  "hB"
1609
1251
  ],
1610
- "GN": [
1252
+ "MH": [
1253
+ "h",
1254
+ "hb",
1611
1255
  "H",
1612
1256
  "hB"
1613
1257
  ],
1614
- "GP": [
1258
+ "MK": [
1615
1259
  "H",
1260
+ "h",
1261
+ "hb",
1616
1262
  "hB"
1617
1263
  ],
1618
- "GW": [
1619
- "H",
1620
- "hB"
1264
+ "ML": [
1265
+ "H"
1621
1266
  ],
1622
- "HR": [
1267
+ "MM": [
1268
+ "hB",
1269
+ "hb",
1623
1270
  "H",
1624
- "hB"
1271
+ "h"
1625
1272
  ],
1626
- "IL": [
1273
+ "MN": [
1627
1274
  "H",
1275
+ "h",
1276
+ "hb",
1628
1277
  "hB"
1629
1278
  ],
1630
- "IT": [
1631
- "H",
1632
- "hB"
1279
+ "MO": [
1280
+ "h",
1281
+ "hB",
1282
+ "hb",
1283
+ "H"
1633
1284
  ],
1634
- "KZ": [
1285
+ "MP": [
1286
+ "h",
1287
+ "hb",
1635
1288
  "H",
1636
1289
  "hB"
1637
1290
  ],
1638
- "MC": [
1291
+ "MQ": [
1639
1292
  "H",
1640
1293
  "hB"
1641
1294
  ],
1642
- "MD": [
1295
+ "MR": [
1296
+ "h",
1297
+ "hB",
1298
+ "hb",
1299
+ "H"
1300
+ ],
1301
+ "MS": [
1643
1302
  "H",
1303
+ "h",
1304
+ "hb",
1644
1305
  "hB"
1645
1306
  ],
1646
- "MF": [
1307
+ "MW": [
1308
+ "h",
1309
+ "hb",
1647
1310
  "H",
1648
1311
  "hB"
1649
1312
  ],
1650
- "MQ": [
1313
+ "MX": [
1651
1314
  "H",
1652
- "hB"
1315
+ "h",
1316
+ "hB",
1317
+ "hb"
1318
+ ],
1319
+ "MY": [
1320
+ "hb",
1321
+ "hB",
1322
+ "h",
1323
+ "H"
1653
1324
  ],
1654
1325
  "MZ": [
1655
1326
  "H",
1656
1327
  "hB"
1657
1328
  ],
1658
- "NC": [
1329
+ "NA": [
1330
+ "h",
1659
1331
  "H",
1660
- "hB"
1332
+ "hB",
1333
+ "hb"
1661
1334
  ],
1662
- "NL": [
1335
+ "NC": [
1663
1336
  "H",
1664
1337
  "hB"
1665
1338
  ],
1666
- "PM": [
1339
+ "NE": [
1340
+ "H"
1341
+ ],
1342
+ "NF": [
1667
1343
  "H",
1344
+ "h",
1345
+ "hb",
1668
1346
  "hB"
1669
1347
  ],
1670
- "PT": [
1348
+ "NG": [
1671
1349
  "H",
1350
+ "h",
1351
+ "hb",
1672
1352
  "hB"
1673
1353
  ],
1674
- "RE": [
1354
+ "NI": [
1675
1355
  "H",
1676
- "hB"
1356
+ "h",
1357
+ "hB",
1358
+ "hb"
1677
1359
  ],
1678
- "RO": [
1360
+ "NL": [
1679
1361
  "H",
1680
1362
  "hB"
1681
1363
  ],
1682
- "SI": [
1364
+ "NP": [
1683
1365
  "H",
1366
+ "h",
1684
1367
  "hB"
1685
1368
  ],
1686
- "SR": [
1369
+ "NR": [
1687
1370
  "H",
1371
+ "h",
1372
+ "hb",
1688
1373
  "hB"
1689
1374
  ],
1690
- "ST": [
1375
+ "NU": [
1691
1376
  "H",
1377
+ "h",
1378
+ "hb",
1692
1379
  "hB"
1693
1380
  ],
1694
- "TG": [
1381
+ "NZ": [
1382
+ "h",
1383
+ "hb",
1695
1384
  "H",
1696
1385
  "hB"
1697
1386
  ],
1698
- "TR": [
1387
+ "OM": [
1388
+ "h",
1389
+ "hB",
1390
+ "hb",
1391
+ "H"
1392
+ ],
1393
+ "PA": [
1394
+ "h",
1699
1395
  "H",
1700
- "hB"
1396
+ "hB",
1397
+ "hb"
1701
1398
  ],
1702
- "WF": [
1399
+ "PE": [
1703
1400
  "H",
1704
- "hB"
1401
+ "hB",
1402
+ "h",
1403
+ "hb"
1705
1404
  ],
1706
- "YT": [
1405
+ "PF": [
1707
1406
  "H",
1407
+ "h",
1708
1408
  "hB"
1709
1409
  ],
1710
- "BD": [
1410
+ "PG": [
1411
+ "h",
1412
+ "H"
1413
+ ],
1414
+ "PH": [
1711
1415
  "h",
1712
1416
  "hB",
1417
+ "hb",
1713
1418
  "H"
1714
1419
  ],
1715
1420
  "PK": [
@@ -1717,238 +1422,213 @@ var IntlMessageFormat = (() => {
1717
1422
  "hB",
1718
1423
  "H"
1719
1424
  ],
1720
- "AZ": [
1425
+ "PM": [
1721
1426
  "H",
1722
- "hB",
1723
- "h"
1427
+ "hB"
1724
1428
  ],
1725
- "BA": [
1429
+ "PN": [
1726
1430
  "H",
1727
- "hB",
1728
- "h"
1431
+ "h",
1432
+ "hb",
1433
+ "hB"
1729
1434
  ],
1730
- "BG": [
1435
+ "PR": [
1436
+ "h",
1731
1437
  "H",
1732
1438
  "hB",
1733
- "h"
1439
+ "hb"
1734
1440
  ],
1735
- "CH": [
1736
- "H",
1441
+ "PS": [
1442
+ "h",
1737
1443
  "hB",
1738
- "h"
1444
+ "hb",
1445
+ "H"
1739
1446
  ],
1740
- "GE": [
1447
+ "PT": [
1741
1448
  "H",
1742
- "hB",
1743
- "h"
1449
+ "hB"
1744
1450
  ],
1745
- "LI": [
1746
- "H",
1747
- "hB",
1748
- "h"
1451
+ "PW": [
1452
+ "h",
1453
+ "H"
1749
1454
  ],
1750
- "ME": [
1455
+ "PY": [
1751
1456
  "H",
1457
+ "h",
1752
1458
  "hB",
1753
- "h"
1459
+ "hb"
1754
1460
  ],
1755
- "RS": [
1756
- "H",
1461
+ "QA": [
1462
+ "h",
1757
1463
  "hB",
1758
- "h"
1464
+ "hb",
1465
+ "H"
1759
1466
  ],
1760
- "UA": [
1467
+ "RE": [
1761
1468
  "H",
1762
- "hB",
1763
- "h"
1469
+ "hB"
1764
1470
  ],
1765
- "UZ": [
1471
+ "RO": [
1766
1472
  "H",
1767
- "hB",
1768
- "h"
1473
+ "hB"
1769
1474
  ],
1770
- "XK": [
1475
+ "RS": [
1771
1476
  "H",
1772
1477
  "hB",
1773
1478
  "h"
1774
1479
  ],
1775
- "AG": [
1480
+ "RU": [
1481
+ "H"
1482
+ ],
1483
+ "SA": [
1776
1484
  "h",
1485
+ "hB",
1777
1486
  "hb",
1778
- "H",
1779
- "hB"
1487
+ "H"
1780
1488
  ],
1781
- "AU": [
1489
+ "SB": [
1782
1490
  "h",
1783
1491
  "hb",
1784
1492
  "H",
1785
1493
  "hB"
1786
1494
  ],
1787
- "BB": [
1788
- "h",
1789
- "hb",
1495
+ "SC": [
1790
1496
  "H",
1497
+ "h",
1791
1498
  "hB"
1792
1499
  ],
1793
- "BM": [
1500
+ "SD": [
1794
1501
  "h",
1502
+ "hB",
1795
1503
  "hb",
1796
- "H",
1797
- "hB"
1504
+ "H"
1798
1505
  ],
1799
- "BS": [
1506
+ "SE": [
1507
+ "H"
1508
+ ],
1509
+ "SG": [
1800
1510
  "h",
1801
1511
  "hb",
1802
1512
  "H",
1803
1513
  "hB"
1804
1514
  ],
1805
- "CA": [
1515
+ "SH": [
1516
+ "H",
1806
1517
  "h",
1807
1518
  "hb",
1808
- "H",
1809
1519
  "hB"
1810
1520
  ],
1811
- "DM": [
1812
- "h",
1813
- "hb",
1521
+ "SI": [
1814
1522
  "H",
1815
1523
  "hB"
1816
1524
  ],
1817
- "en-001": [
1525
+ "SJ": [
1526
+ "H"
1527
+ ],
1528
+ "SK": [
1529
+ "H"
1530
+ ],
1531
+ "SL": [
1818
1532
  "h",
1819
1533
  "hb",
1820
1534
  "H",
1821
1535
  "hB"
1822
1536
  ],
1823
- "FJ": [
1824
- "h",
1825
- "hb",
1537
+ "SM": [
1826
1538
  "H",
1539
+ "h",
1827
1540
  "hB"
1828
1541
  ],
1829
- "FM": [
1830
- "h",
1831
- "hb",
1542
+ "SN": [
1832
1543
  "H",
1544
+ "h",
1833
1545
  "hB"
1834
1546
  ],
1835
- "GD": [
1547
+ "SO": [
1836
1548
  "h",
1837
- "hb",
1549
+ "H"
1550
+ ],
1551
+ "SR": [
1838
1552
  "H",
1839
1553
  "hB"
1840
1554
  ],
1841
- "GM": [
1555
+ "SS": [
1842
1556
  "h",
1843
1557
  "hb",
1844
1558
  "H",
1845
1559
  "hB"
1846
1560
  ],
1847
- "GU": [
1848
- "h",
1849
- "hb",
1561
+ "ST": [
1850
1562
  "H",
1851
1563
  "hB"
1852
1564
  ],
1853
- "GY": [
1565
+ "SV": [
1566
+ "H",
1854
1567
  "h",
1855
- "hb",
1568
+ "hB",
1569
+ "hb"
1570
+ ],
1571
+ "SX": [
1856
1572
  "H",
1573
+ "h",
1574
+ "hb",
1857
1575
  "hB"
1858
1576
  ],
1859
- "JM": [
1577
+ "SY": [
1860
1578
  "h",
1579
+ "hB",
1861
1580
  "hb",
1862
- "H",
1863
- "hB"
1581
+ "H"
1864
1582
  ],
1865
- "KI": [
1583
+ "SZ": [
1866
1584
  "h",
1867
1585
  "hb",
1868
1586
  "H",
1869
1587
  "hB"
1870
1588
  ],
1871
- "KN": [
1589
+ "TA": [
1590
+ "H",
1872
1591
  "h",
1873
1592
  "hb",
1874
- "H",
1875
1593
  "hB"
1876
1594
  ],
1877
- "KY": [
1595
+ "TC": [
1878
1596
  "h",
1879
1597
  "hb",
1880
1598
  "H",
1881
1599
  "hB"
1882
1600
  ],
1883
- "LC": [
1884
- "h",
1885
- "hb",
1886
- "H",
1887
- "hB"
1888
- ],
1889
- "LR": [
1890
- "h",
1891
- "hb",
1892
- "H",
1893
- "hB"
1894
- ],
1895
- "MH": [
1896
- "h",
1897
- "hb",
1898
- "H",
1899
- "hB"
1900
- ],
1901
- "MP": [
1601
+ "TD": [
1902
1602
  "h",
1903
- "hb",
1904
1603
  "H",
1905
1604
  "hB"
1906
1605
  ],
1907
- "MW": [
1908
- "h",
1909
- "hb",
1606
+ "TF": [
1910
1607
  "H",
1911
- "hB"
1912
- ],
1913
- "NZ": [
1914
1608
  "h",
1915
- "hb",
1916
- "H",
1917
1609
  "hB"
1918
1610
  ],
1919
- "SB": [
1920
- "h",
1921
- "hb",
1611
+ "TG": [
1922
1612
  "H",
1923
1613
  "hB"
1924
1614
  ],
1925
- "SG": [
1926
- "h",
1927
- "hb",
1615
+ "TL": [
1928
1616
  "H",
1929
- "hB"
1930
- ],
1931
- "SL": [
1932
- "h",
1617
+ "hB",
1933
1618
  "hb",
1934
- "H",
1935
- "hB"
1619
+ "h"
1936
1620
  ],
1937
- "SS": [
1621
+ "TN": [
1938
1622
  "h",
1623
+ "hB",
1939
1624
  "hb",
1940
- "H",
1941
- "hB"
1625
+ "H"
1942
1626
  ],
1943
- "SZ": [
1627
+ "TO": [
1944
1628
  "h",
1945
- "hb",
1946
- "H",
1947
- "hB"
1629
+ "H"
1948
1630
  ],
1949
- "TC": [
1950
- "h",
1951
- "hb",
1631
+ "TR": [
1952
1632
  "H",
1953
1633
  "hB"
1954
1634
  ],
@@ -1958,307 +1638,217 @@ var IntlMessageFormat = (() => {
1958
1638
  "H",
1959
1639
  "hB"
1960
1640
  ],
1961
- "UM": [
1962
- "h",
1641
+ "TW": [
1642
+ "hB",
1963
1643
  "hb",
1964
- "H",
1965
- "hB"
1966
- ],
1967
- "US": [
1968
1644
  "h",
1645
+ "H"
1646
+ ],
1647
+ "TZ": [
1648
+ "hB",
1969
1649
  "hb",
1970
1650
  "H",
1971
- "hB"
1651
+ "h"
1972
1652
  ],
1973
- "VC": [
1974
- "h",
1975
- "hb",
1653
+ "UA": [
1976
1654
  "H",
1977
- "hB"
1655
+ "hB",
1656
+ "h"
1978
1657
  ],
1979
- "VG": [
1980
- "h",
1658
+ "UG": [
1659
+ "hB",
1981
1660
  "hb",
1982
1661
  "H",
1983
- "hB"
1662
+ "h"
1984
1663
  ],
1985
- "VI": [
1664
+ "UM": [
1986
1665
  "h",
1987
1666
  "hb",
1988
1667
  "H",
1989
1668
  "hB"
1990
1669
  ],
1991
- "ZM": [
1670
+ "US": [
1992
1671
  "h",
1993
1672
  "hb",
1994
1673
  "H",
1995
1674
  "hB"
1996
1675
  ],
1997
- "BO": [
1998
- "H",
1999
- "hB",
2000
- "h",
2001
- "hb"
2002
- ],
2003
- "EC": [
1676
+ "UY": [
2004
1677
  "H",
2005
- "hB",
2006
1678
  "h",
2007
- "hb"
2008
- ],
2009
- "ES": [
2010
- "H",
2011
1679
  "hB",
2012
- "h",
2013
1680
  "hb"
2014
1681
  ],
2015
- "GQ": [
1682
+ "UZ": [
2016
1683
  "H",
2017
1684
  "hB",
2018
- "h",
2019
- "hb"
1685
+ "h"
2020
1686
  ],
2021
- "PE": [
1687
+ "VA": [
2022
1688
  "H",
2023
- "hB",
2024
- "h",
2025
- "hb"
2026
- ],
2027
- "AE": [
2028
1689
  "h",
2029
- "hB",
2030
- "hb",
2031
- "H"
2032
- ],
2033
- "ar-001": [
2034
- "h",
2035
- "hB",
2036
- "hb",
2037
- "H"
2038
- ],
2039
- "BH": [
2040
- "h",
2041
- "hB",
2042
- "hb",
2043
- "H"
2044
- ],
2045
- "DZ": [
2046
- "h",
2047
- "hB",
2048
- "hb",
2049
- "H"
2050
- ],
2051
- "EG": [
2052
- "h",
2053
- "hB",
2054
- "hb",
2055
- "H"
2056
- ],
2057
- "EH": [
2058
- "h",
2059
- "hB",
2060
- "hb",
2061
- "H"
2062
- ],
2063
- "HK": [
2064
- "h",
2065
- "hB",
2066
- "hb",
2067
- "H"
1690
+ "hB"
2068
1691
  ],
2069
- "IQ": [
1692
+ "VC": [
2070
1693
  "h",
2071
- "hB",
2072
1694
  "hb",
2073
- "H"
1695
+ "H",
1696
+ "hB"
2074
1697
  ],
2075
- "JO": [
1698
+ "VE": [
2076
1699
  "h",
1700
+ "H",
2077
1701
  "hB",
2078
- "hb",
2079
- "H"
1702
+ "hb"
2080
1703
  ],
2081
- "KW": [
1704
+ "VG": [
2082
1705
  "h",
2083
- "hB",
2084
1706
  "hb",
2085
- "H"
1707
+ "H",
1708
+ "hB"
2086
1709
  ],
2087
- "LB": [
1710
+ "VI": [
2088
1711
  "h",
2089
- "hB",
2090
1712
  "hb",
2091
- "H"
1713
+ "H",
1714
+ "hB"
2092
1715
  ],
2093
- "LY": [
1716
+ "VU": [
2094
1717
  "h",
2095
- "hB",
2096
- "hb",
2097
1718
  "H"
2098
1719
  ],
2099
- "MO": [
2100
- "h",
2101
- "hB",
2102
- "hb",
2103
- "H"
1720
+ "WF": [
1721
+ "H",
1722
+ "hB"
2104
1723
  ],
2105
- "MR": [
1724
+ "WS": [
2106
1725
  "h",
2107
- "hB",
2108
- "hb",
2109
1726
  "H"
2110
1727
  ],
2111
- "OM": [
2112
- "h",
1728
+ "XK": [
1729
+ "H",
2113
1730
  "hB",
2114
- "hb",
2115
- "H"
1731
+ "h"
2116
1732
  ],
2117
- "PH": [
1733
+ "YE": [
2118
1734
  "h",
2119
1735
  "hB",
2120
1736
  "hb",
2121
1737
  "H"
2122
1738
  ],
2123
- "PS": [
2124
- "h",
2125
- "hB",
2126
- "hb",
2127
- "H"
1739
+ "YT": [
1740
+ "H",
1741
+ "hB"
2128
1742
  ],
2129
- "QA": [
1743
+ "ZA": [
1744
+ "H",
2130
1745
  "h",
2131
- "hB",
2132
1746
  "hb",
2133
- "H"
1747
+ "hB"
2134
1748
  ],
2135
- "SA": [
1749
+ "ZM": [
2136
1750
  "h",
2137
- "hB",
2138
1751
  "hb",
2139
- "H"
1752
+ "H",
1753
+ "hB"
2140
1754
  ],
2141
- "SD": [
1755
+ "af-ZA": [
1756
+ "H",
2142
1757
  "h",
2143
1758
  "hB",
2144
- "hb",
2145
- "H"
1759
+ "hb"
2146
1760
  ],
2147
- "SY": [
1761
+ "ar-001": [
2148
1762
  "h",
2149
1763
  "hB",
2150
1764
  "hb",
2151
1765
  "H"
2152
1766
  ],
2153
- "TN": [
1767
+ "ca-ES": [
1768
+ "H",
2154
1769
  "h",
2155
- "hB",
2156
- "hb",
2157
- "H"
1770
+ "hB"
2158
1771
  ],
2159
- "YE": [
1772
+ "en-001": [
2160
1773
  "h",
2161
- "hB",
2162
1774
  "hb",
2163
- "H"
2164
- ],
2165
- "AF": [
2166
1775
  "H",
2167
- "hb",
2168
- "hB",
2169
- "h"
1776
+ "hB"
2170
1777
  ],
2171
- "LA": [
1778
+ "es-BO": [
2172
1779
  "H",
2173
- "hb",
1780
+ "h",
2174
1781
  "hB",
2175
- "h"
1782
+ "hb"
2176
1783
  ],
2177
- "CN": [
1784
+ "es-BR": [
2178
1785
  "H",
1786
+ "h",
2179
1787
  "hB",
2180
- "hb",
2181
- "h"
1788
+ "hb"
2182
1789
  ],
2183
- "LV": [
1790
+ "es-EC": [
2184
1791
  "H",
1792
+ "h",
2185
1793
  "hB",
2186
- "hb",
2187
- "h"
1794
+ "hb"
2188
1795
  ],
2189
- "TL": [
1796
+ "es-ES": [
2190
1797
  "H",
1798
+ "h",
2191
1799
  "hB",
2192
- "hb",
2193
- "h"
1800
+ "hb"
2194
1801
  ],
2195
- "zu-ZA": [
1802
+ "es-GQ": [
2196
1803
  "H",
2197
- "hB",
2198
- "hb",
2199
- "h"
2200
- ],
2201
- "CD": [
2202
- "hB",
2203
- "H"
2204
- ],
2205
- "IR": [
2206
- "hB",
2207
- "H"
2208
- ],
2209
- "hi-IN": [
2210
- "hB",
2211
1804
  "h",
2212
- "H"
2213
- ],
2214
- "kn-IN": [
2215
1805
  "hB",
2216
- "h",
2217
- "H"
1806
+ "hb"
2218
1807
  ],
2219
- "ml-IN": [
2220
- "hB",
1808
+ "es-PE": [
1809
+ "H",
2221
1810
  "h",
2222
- "H"
2223
- ],
2224
- "te-IN": [
2225
1811
  "hB",
2226
- "h",
2227
- "H"
1812
+ "hb"
2228
1813
  ],
2229
- "KH": [
2230
- "hB",
1814
+ "fr-CA": [
1815
+ "H",
2231
1816
  "h",
1817
+ "hB"
1818
+ ],
1819
+ "gl-ES": [
2232
1820
  "H",
2233
- "hb"
1821
+ "h",
1822
+ "hB"
2234
1823
  ],
2235
- "ta-IN": [
1824
+ "gu-IN": [
2236
1825
  "hB",
2237
- "h",
2238
1826
  "hb",
1827
+ "h",
2239
1828
  "H"
2240
1829
  ],
2241
- "BN": [
2242
- "hb",
1830
+ "hi-IN": [
2243
1831
  "hB",
2244
1832
  "h",
2245
1833
  "H"
2246
1834
  ],
2247
- "MY": [
2248
- "hb",
2249
- "hB",
1835
+ "it-CH": [
1836
+ "H",
2250
1837
  "h",
2251
- "H"
1838
+ "hB"
2252
1839
  ],
2253
- "ET": [
1840
+ "it-IT": [
1841
+ "H",
1842
+ "h",
1843
+ "hB"
1844
+ ],
1845
+ "kn-IN": [
2254
1846
  "hB",
2255
- "hb",
2256
1847
  "h",
2257
1848
  "H"
2258
1849
  ],
2259
- "gu-IN": [
1850
+ "ml-IN": [
2260
1851
  "hB",
2261
- "hb",
2262
1852
  "h",
2263
1853
  "H"
2264
1854
  ],
@@ -2274,34 +1864,21 @@ var IntlMessageFormat = (() => {
2274
1864
  "h",
2275
1865
  "H"
2276
1866
  ],
2277
- "TW": [
1867
+ "ta-IN": [
2278
1868
  "hB",
2279
- "hb",
2280
1869
  "h",
2281
- "H"
2282
- ],
2283
- "KE": [
2284
- "hB",
2285
1870
  "hb",
2286
- "H",
2287
- "h"
1871
+ "H"
2288
1872
  ],
2289
- "MM": [
1873
+ "te-IN": [
2290
1874
  "hB",
2291
- "hb",
2292
- "H",
2293
- "h"
1875
+ "h",
1876
+ "H"
2294
1877
  ],
2295
- "TZ": [
2296
- "hB",
2297
- "hb",
1878
+ "zu-ZA": [
2298
1879
  "H",
2299
- "h"
2300
- ],
2301
- "UG": [
2302
1880
  "hB",
2303
1881
  "hb",
2304
- "H",
2305
1882
  "h"
2306
1883
  ]
2307
1884
  };
@@ -2340,7 +1917,9 @@ var IntlMessageFormat = (() => {
2340
1917
  }
2341
1918
  function getDefaultHourSymbolFromLocale(locale) {
2342
1919
  var hourCycle = locale.hourCycle;
2343
- if (hourCycle === void 0 && locale.hourCycles && locale.hourCycles.length) {
1920
+ if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
1921
+ locale.hourCycles && // @ts-ignore
1922
+ locale.hourCycles.length) {
2344
1923
  hourCycle = locale.hourCycles[0];
2345
1924
  }
2346
1925
  if (hourCycle) {
@@ -2391,57 +1970,90 @@ var IntlMessageFormat = (() => {
2391
1970
  REGEX_SUPPORTS_U_AND_Y = false;
2392
1971
  }
2393
1972
  var re;
2394
- var startsWith = hasNativeStartsWith ? function startsWith2(s, search, position) {
2395
- return s.startsWith(search, position);
2396
- } : function startsWith3(s, search, position) {
2397
- return s.slice(position, position + search.length) === search;
2398
- };
2399
- var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : function fromCodePoint2() {
2400
- var codePoints = [];
2401
- for (var _i = 0; _i < arguments.length; _i++) {
2402
- codePoints[_i] = arguments[_i];
1973
+ var startsWith = hasNativeStartsWith ? (
1974
+ // Native
1975
+ function startsWith2(s, search, position) {
1976
+ return s.startsWith(search, position);
2403
1977
  }
2404
- var elements = "";
2405
- var length = codePoints.length;
2406
- var i = 0;
2407
- var code;
2408
- while (length > i) {
2409
- code = codePoints[i++];
2410
- if (code > 1114111)
2411
- throw RangeError(code + " is not a valid code point");
2412
- elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
1978
+ ) : (
1979
+ // For IE11
1980
+ function startsWith3(s, search, position) {
1981
+ return s.slice(position, position + search.length) === search;
2413
1982
  }
2414
- return elements;
2415
- };
2416
- var fromEntries = hasNativeFromEntries ? Object.fromEntries : function fromEntries2(entries) {
2417
- var obj = {};
2418
- for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2419
- var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
2420
- obj[k] = v;
1983
+ );
1984
+ var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
1985
+ // IE11
1986
+ function fromCodePoint2() {
1987
+ var codePoints = [];
1988
+ for (var _i = 0; _i < arguments.length; _i++) {
1989
+ codePoints[_i] = arguments[_i];
1990
+ }
1991
+ var elements = "";
1992
+ var length = codePoints.length;
1993
+ var i = 0;
1994
+ var code;
1995
+ while (length > i) {
1996
+ code = codePoints[i++];
1997
+ if (code > 1114111)
1998
+ throw RangeError(code + " is not a valid code point");
1999
+ elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
2000
+ }
2001
+ return elements;
2421
2002
  }
2422
- return obj;
2423
- };
2424
- var codePointAt = hasNativeCodePointAt ? function codePointAt2(s, index) {
2425
- return s.codePointAt(index);
2426
- } : function codePointAt3(s, index) {
2427
- var size = s.length;
2428
- if (index < 0 || index >= size) {
2429
- return void 0;
2003
+ );
2004
+ var fromEntries = (
2005
+ // native
2006
+ hasNativeFromEntries ? Object.fromEntries : (
2007
+ // Ponyfill
2008
+ function fromEntries2(entries) {
2009
+ var obj = {};
2010
+ for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2011
+ var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
2012
+ obj[k] = v;
2013
+ }
2014
+ return obj;
2015
+ }
2016
+ )
2017
+ );
2018
+ var codePointAt = hasNativeCodePointAt ? (
2019
+ // Native
2020
+ function codePointAt2(s, index) {
2021
+ return s.codePointAt(index);
2430
2022
  }
2431
- var first = s.charCodeAt(index);
2432
- var second;
2433
- return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
2434
- };
2435
- var trimStart = hasTrimStart ? function trimStart2(s) {
2436
- return s.trimStart();
2437
- } : function trimStart3(s) {
2438
- return s.replace(SPACE_SEPARATOR_START_REGEX, "");
2439
- };
2440
- var trimEnd = hasTrimEnd ? function trimEnd2(s) {
2441
- return s.trimEnd();
2442
- } : function trimEnd3(s) {
2443
- return s.replace(SPACE_SEPARATOR_END_REGEX, "");
2444
- };
2023
+ ) : (
2024
+ // IE 11
2025
+ function codePointAt3(s, index) {
2026
+ var size = s.length;
2027
+ if (index < 0 || index >= size) {
2028
+ return void 0;
2029
+ }
2030
+ var first = s.charCodeAt(index);
2031
+ var second;
2032
+ return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
2033
+ }
2034
+ );
2035
+ var trimStart = hasTrimStart ? (
2036
+ // Native
2037
+ function trimStart2(s) {
2038
+ return s.trimStart();
2039
+ }
2040
+ ) : (
2041
+ // Ponyfill
2042
+ function trimStart3(s) {
2043
+ return s.replace(SPACE_SEPARATOR_START_REGEX, "");
2044
+ }
2045
+ );
2046
+ var trimEnd = hasTrimEnd ? (
2047
+ // Native
2048
+ function trimEnd2(s) {
2049
+ return s.trimEnd();
2050
+ }
2051
+ ) : (
2052
+ // Ponyfill
2053
+ function trimEnd3(s) {
2054
+ return s.replace(SPACE_SEPARATOR_END_REGEX, "");
2055
+ }
2056
+ );
2445
2057
  function RE(s, flag) {
2446
2058
  return new RegExp(s, flag);
2447
2059
  }
@@ -2469,654 +2081,659 @@ var IntlMessageFormat = (() => {
2469
2081
  };
2470
2082
  }
2471
2083
  var IDENTIFIER_PREFIX_RE_1;
2472
- var Parser = function() {
2473
- function Parser2(message, options) {
2474
- if (options === void 0) {
2475
- options = {};
2476
- }
2477
- this.message = message;
2478
- this.position = { offset: 0, line: 1, column: 1 };
2479
- this.ignoreTag = !!options.ignoreTag;
2480
- this.locale = options.locale;
2481
- this.requiresOtherClause = !!options.requiresOtherClause;
2482
- this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2483
- }
2484
- Parser2.prototype.parse = function() {
2485
- if (this.offset() !== 0) {
2486
- throw Error("parser can only be used once");
2487
- }
2488
- return this.parseMessage(0, "", false);
2489
- };
2490
- Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2491
- var elements = [];
2492
- while (!this.isEOF()) {
2493
- var char = this.char();
2494
- if (char === 123) {
2495
- var result = this.parseArgument(nestingLevel, expectingCloseTag);
2496
- if (result.err) {
2497
- return result;
2498
- }
2499
- elements.push(result.val);
2500
- } else if (char === 125 && nestingLevel > 0) {
2501
- break;
2502
- } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
2503
- var position = this.clonePosition();
2504
- this.bump();
2505
- elements.push({
2506
- type: TYPE.pound,
2507
- location: createLocation(position, this.clonePosition())
2508
- });
2509
- } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
2510
- if (expectingCloseTag) {
2084
+ var Parser = (
2085
+ /** @class */
2086
+ function() {
2087
+ function Parser2(message, options) {
2088
+ if (options === void 0) {
2089
+ options = {};
2090
+ }
2091
+ this.message = message;
2092
+ this.position = { offset: 0, line: 1, column: 1 };
2093
+ this.ignoreTag = !!options.ignoreTag;
2094
+ this.locale = options.locale;
2095
+ this.requiresOtherClause = !!options.requiresOtherClause;
2096
+ this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2097
+ }
2098
+ Parser2.prototype.parse = function() {
2099
+ if (this.offset() !== 0) {
2100
+ throw Error("parser can only be used once");
2101
+ }
2102
+ return this.parseMessage(0, "", false);
2103
+ };
2104
+ Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2105
+ var elements = [];
2106
+ while (!this.isEOF()) {
2107
+ var char = this.char();
2108
+ if (char === 123) {
2109
+ var result = this.parseArgument(nestingLevel, expectingCloseTag);
2110
+ if (result.err) {
2111
+ return result;
2112
+ }
2113
+ elements.push(result.val);
2114
+ } else if (char === 125 && nestingLevel > 0) {
2511
2115
  break;
2116
+ } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
2117
+ var position = this.clonePosition();
2118
+ this.bump();
2119
+ elements.push({
2120
+ type: TYPE.pound,
2121
+ location: createLocation(position, this.clonePosition())
2122
+ });
2123
+ } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
2124
+ if (expectingCloseTag) {
2125
+ break;
2126
+ } else {
2127
+ return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
2128
+ }
2129
+ } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
2130
+ var result = this.parseTag(nestingLevel, parentArgType);
2131
+ if (result.err) {
2132
+ return result;
2133
+ }
2134
+ elements.push(result.val);
2512
2135
  } else {
2513
- return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
2514
- }
2515
- } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
2516
- var result = this.parseTag(nestingLevel, parentArgType);
2517
- if (result.err) {
2518
- return result;
2519
- }
2520
- elements.push(result.val);
2521
- } else {
2522
- var result = this.parseLiteral(nestingLevel, parentArgType);
2523
- if (result.err) {
2524
- return result;
2136
+ var result = this.parseLiteral(nestingLevel, parentArgType);
2137
+ if (result.err) {
2138
+ return result;
2139
+ }
2140
+ elements.push(result.val);
2525
2141
  }
2526
- elements.push(result.val);
2527
2142
  }
2528
- }
2529
- return { val: elements, err: null };
2530
- };
2531
- Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2532
- var startPosition = this.clonePosition();
2533
- this.bump();
2534
- var tagName = this.parseTagName();
2535
- this.bumpSpace();
2536
- if (this.bumpIf("/>")) {
2537
- return {
2538
- val: {
2539
- type: TYPE.literal,
2540
- value: "<".concat(tagName, "/>"),
2541
- location: createLocation(startPosition, this.clonePosition())
2542
- },
2543
- err: null
2544
- };
2545
- } else if (this.bumpIf(">")) {
2546
- var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
2547
- if (childrenResult.err) {
2548
- return childrenResult;
2549
- }
2550
- var children = childrenResult.val;
2551
- var endTagStartPosition = this.clonePosition();
2552
- if (this.bumpIf("</")) {
2553
- if (this.isEOF() || !_isAlpha(this.char())) {
2554
- return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2555
- }
2556
- var closingTagNameStartPosition = this.clonePosition();
2557
- var closingTagName = this.parseTagName();
2558
- if (tagName !== closingTagName) {
2559
- return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));
2560
- }
2561
- this.bumpSpace();
2562
- if (!this.bumpIf(">")) {
2563
- return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2564
- }
2143
+ return { val: elements, err: null };
2144
+ };
2145
+ Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2146
+ var startPosition = this.clonePosition();
2147
+ this.bump();
2148
+ var tagName = this.parseTagName();
2149
+ this.bumpSpace();
2150
+ if (this.bumpIf("/>")) {
2565
2151
  return {
2566
2152
  val: {
2567
- type: TYPE.tag,
2568
- value: tagName,
2569
- children,
2153
+ type: TYPE.literal,
2154
+ value: "<".concat(tagName, "/>"),
2570
2155
  location: createLocation(startPosition, this.clonePosition())
2571
2156
  },
2572
2157
  err: null
2573
2158
  };
2159
+ } else if (this.bumpIf(">")) {
2160
+ var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
2161
+ if (childrenResult.err) {
2162
+ return childrenResult;
2163
+ }
2164
+ var children = childrenResult.val;
2165
+ var endTagStartPosition = this.clonePosition();
2166
+ if (this.bumpIf("</")) {
2167
+ if (this.isEOF() || !_isAlpha(this.char())) {
2168
+ return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2169
+ }
2170
+ var closingTagNameStartPosition = this.clonePosition();
2171
+ var closingTagName = this.parseTagName();
2172
+ if (tagName !== closingTagName) {
2173
+ return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));
2174
+ }
2175
+ this.bumpSpace();
2176
+ if (!this.bumpIf(">")) {
2177
+ return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
2178
+ }
2179
+ return {
2180
+ val: {
2181
+ type: TYPE.tag,
2182
+ value: tagName,
2183
+ children,
2184
+ location: createLocation(startPosition, this.clonePosition())
2185
+ },
2186
+ err: null
2187
+ };
2188
+ } else {
2189
+ return this.error(ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));
2190
+ }
2574
2191
  } else {
2575
- return this.error(ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));
2192
+ return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2576
2193
  }
2577
- } else {
2578
- return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2579
- }
2580
- };
2581
- Parser2.prototype.parseTagName = function() {
2582
- var startOffset = this.offset();
2583
- this.bump();
2584
- while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
2194
+ };
2195
+ Parser2.prototype.parseTagName = function() {
2196
+ var startOffset = this.offset();
2585
2197
  this.bump();
2586
- }
2587
- return this.message.slice(startOffset, this.offset());
2588
- };
2589
- Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2590
- var start = this.clonePosition();
2591
- var value = "";
2592
- while (true) {
2593
- var parseQuoteResult = this.tryParseQuote(parentArgType);
2594
- if (parseQuoteResult) {
2595
- value += parseQuoteResult;
2596
- continue;
2597
- }
2598
- var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
2599
- if (parseUnquotedResult) {
2600
- value += parseUnquotedResult;
2601
- continue;
2198
+ while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
2199
+ this.bump();
2602
2200
  }
2603
- var parseLeftAngleResult = this.tryParseLeftAngleBracket();
2604
- if (parseLeftAngleResult) {
2605
- value += parseLeftAngleResult;
2606
- continue;
2201
+ return this.message.slice(startOffset, this.offset());
2202
+ };
2203
+ Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2204
+ var start = this.clonePosition();
2205
+ var value = "";
2206
+ while (true) {
2207
+ var parseQuoteResult = this.tryParseQuote(parentArgType);
2208
+ if (parseQuoteResult) {
2209
+ value += parseQuoteResult;
2210
+ continue;
2211
+ }
2212
+ var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
2213
+ if (parseUnquotedResult) {
2214
+ value += parseUnquotedResult;
2215
+ continue;
2216
+ }
2217
+ var parseLeftAngleResult = this.tryParseLeftAngleBracket();
2218
+ if (parseLeftAngleResult) {
2219
+ value += parseLeftAngleResult;
2220
+ continue;
2221
+ }
2222
+ break;
2607
2223
  }
2608
- break;
2609
- }
2610
- var location = createLocation(start, this.clonePosition());
2611
- return {
2612
- val: { type: TYPE.literal, value, location },
2613
- err: null
2224
+ var location = createLocation(start, this.clonePosition());
2225
+ return {
2226
+ val: { type: TYPE.literal, value, location },
2227
+ err: null
2228
+ };
2614
2229
  };
2615
- };
2616
- Parser2.prototype.tryParseLeftAngleBracket = function() {
2617
- if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || !_isAlphaOrSlash(this.peek() || 0))) {
2618
- this.bump();
2619
- return "<";
2620
- }
2621
- return null;
2622
- };
2623
- Parser2.prototype.tryParseQuote = function(parentArgType) {
2624
- if (this.isEOF() || this.char() !== 39) {
2625
- return null;
2626
- }
2627
- switch (this.peek()) {
2628
- case 39:
2230
+ Parser2.prototype.tryParseLeftAngleBracket = function() {
2231
+ if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2232
+ !_isAlphaOrSlash(this.peek() || 0))) {
2629
2233
  this.bump();
2630
- this.bump();
2631
- return "'";
2632
- case 123:
2633
- case 60:
2634
- case 62:
2635
- case 125:
2636
- break;
2637
- case 35:
2638
- if (parentArgType === "plural" || parentArgType === "selectordinal") {
2639
- break;
2640
- }
2641
- return null;
2642
- default:
2234
+ return "<";
2235
+ }
2236
+ return null;
2237
+ };
2238
+ Parser2.prototype.tryParseQuote = function(parentArgType) {
2239
+ if (this.isEOF() || this.char() !== 39) {
2643
2240
  return null;
2644
- }
2645
- this.bump();
2646
- var codePoints = [this.char()];
2647
- this.bump();
2648
- while (!this.isEOF()) {
2649
- var ch = this.char();
2650
- if (ch === 39) {
2651
- if (this.peek() === 39) {
2652
- codePoints.push(39);
2241
+ }
2242
+ switch (this.peek()) {
2243
+ case 39:
2653
2244
  this.bump();
2654
- } else {
2655
2245
  this.bump();
2246
+ return "'";
2247
+ case 123:
2248
+ case 60:
2249
+ case 62:
2250
+ case 125:
2656
2251
  break;
2657
- }
2658
- } else {
2659
- codePoints.push(ch);
2252
+ case 35:
2253
+ if (parentArgType === "plural" || parentArgType === "selectordinal") {
2254
+ break;
2255
+ }
2256
+ return null;
2257
+ default:
2258
+ return null;
2660
2259
  }
2661
2260
  this.bump();
2662
- }
2663
- return fromCodePoint.apply(void 0, codePoints);
2664
- };
2665
- Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2666
- if (this.isEOF()) {
2667
- return null;
2668
- }
2669
- var ch = this.char();
2670
- if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
2671
- return null;
2672
- } else {
2673
- this.bump();
2674
- return fromCodePoint(ch);
2675
- }
2676
- };
2677
- Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2678
- var openingBracePosition = this.clonePosition();
2679
- this.bump();
2680
- this.bumpSpace();
2681
- if (this.isEOF()) {
2682
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2683
- }
2684
- if (this.char() === 125) {
2261
+ var codePoints = [this.char()];
2685
2262
  this.bump();
2686
- return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2687
- }
2688
- var value = this.parseIdentifierIfPossible().value;
2689
- if (!value) {
2690
- return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2691
- }
2692
- this.bumpSpace();
2693
- if (this.isEOF()) {
2694
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2695
- }
2696
- switch (this.char()) {
2697
- case 125: {
2263
+ while (!this.isEOF()) {
2264
+ var ch = this.char();
2265
+ if (ch === 39) {
2266
+ if (this.peek() === 39) {
2267
+ codePoints.push(39);
2268
+ this.bump();
2269
+ } else {
2270
+ this.bump();
2271
+ break;
2272
+ }
2273
+ } else {
2274
+ codePoints.push(ch);
2275
+ }
2698
2276
  this.bump();
2699
- return {
2700
- val: {
2701
- type: TYPE.argument,
2702
- value,
2703
- location: createLocation(openingBracePosition, this.clonePosition())
2704
- },
2705
- err: null
2706
- };
2707
2277
  }
2708
- case 44: {
2278
+ return fromCodePoint.apply(void 0, codePoints);
2279
+ };
2280
+ Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2281
+ if (this.isEOF()) {
2282
+ return null;
2283
+ }
2284
+ var ch = this.char();
2285
+ if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
2286
+ return null;
2287
+ } else {
2288
+ this.bump();
2289
+ return fromCodePoint(ch);
2290
+ }
2291
+ };
2292
+ Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2293
+ var openingBracePosition = this.clonePosition();
2294
+ this.bump();
2295
+ this.bumpSpace();
2296
+ if (this.isEOF()) {
2297
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2298
+ }
2299
+ if (this.char() === 125) {
2709
2300
  this.bump();
2710
- this.bumpSpace();
2711
- if (this.isEOF()) {
2712
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2713
- }
2714
- return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
2301
+ return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2715
2302
  }
2716
- default:
2303
+ var value = this.parseIdentifierIfPossible().value;
2304
+ if (!value) {
2717
2305
  return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2718
- }
2719
- };
2720
- Parser2.prototype.parseIdentifierIfPossible = function() {
2721
- var startingPosition = this.clonePosition();
2722
- var startOffset = this.offset();
2723
- var value = matchIdentifierAtIndex(this.message, startOffset);
2724
- var endOffset = startOffset + value.length;
2725
- this.bumpTo(endOffset);
2726
- var endPosition = this.clonePosition();
2727
- var location = createLocation(startingPosition, endPosition);
2728
- return { value, location };
2729
- };
2730
- Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2731
- var _a2;
2732
- var typeStartPosition = this.clonePosition();
2733
- var argType = this.parseIdentifierIfPossible().value;
2734
- var typeEndPosition = this.clonePosition();
2735
- switch (argType) {
2736
- case "":
2737
- return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2738
- case "number":
2739
- case "date":
2740
- case "time": {
2741
- this.bumpSpace();
2742
- var styleAndLocation = null;
2743
- if (this.bumpIf(",")) {
2744
- this.bumpSpace();
2745
- var styleStartPosition = this.clonePosition();
2746
- var result = this.parseSimpleArgStyleIfPossible();
2747
- if (result.err) {
2748
- return result;
2749
- }
2750
- var style = trimEnd(result.val);
2751
- if (style.length === 0) {
2752
- return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));
2753
- }
2754
- var styleLocation = createLocation(styleStartPosition, this.clonePosition());
2755
- styleAndLocation = { style, styleLocation };
2756
- }
2757
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2758
- if (argCloseResult.err) {
2759
- return argCloseResult;
2760
- }
2761
- var location_1 = createLocation(openingBracePosition, this.clonePosition());
2762
- if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
2763
- var skeleton = trimStart(styleAndLocation.style.slice(2));
2764
- if (argType === "number") {
2765
- var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
2766
- if (result.err) {
2767
- return result;
2768
- }
2769
- return {
2770
- val: { type: TYPE.number, value, location: location_1, style: result.val },
2771
- err: null
2772
- };
2773
- } else {
2774
- if (skeleton.length === 0) {
2775
- return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
2776
- }
2777
- var dateTimePattern = skeleton;
2778
- if (this.locale) {
2779
- dateTimePattern = getBestPattern(skeleton, this.locale);
2780
- }
2781
- var style = {
2782
- type: SKELETON_TYPE.dateTime,
2783
- pattern: dateTimePattern,
2784
- location: styleAndLocation.styleLocation,
2785
- parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
2786
- };
2787
- var type = argType === "date" ? TYPE.date : TYPE.time;
2788
- return {
2789
- val: { type, value, location: location_1, style },
2790
- err: null
2791
- };
2792
- }
2793
- }
2794
- return {
2795
- val: {
2796
- type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2797
- value,
2798
- location: location_1,
2799
- style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2800
- },
2801
- err: null
2802
- };
2803
- }
2804
- case "plural":
2805
- case "selectordinal":
2806
- case "select": {
2807
- var typeEndPosition_1 = this.clonePosition();
2808
- this.bumpSpace();
2809
- if (!this.bumpIf(",")) {
2810
- return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));
2811
- }
2812
- this.bumpSpace();
2813
- var identifierAndLocation = this.parseIdentifierIfPossible();
2814
- var pluralOffset = 0;
2815
- if (argType !== "select" && identifierAndLocation.value === "offset") {
2816
- if (!this.bumpIf(":")) {
2817
- return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));
2818
- }
2819
- this.bumpSpace();
2820
- var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2821
- if (result.err) {
2822
- return result;
2823
- }
2824
- this.bumpSpace();
2825
- identifierAndLocation = this.parseIdentifierIfPossible();
2826
- pluralOffset = result.val;
2827
- }
2828
- var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
2829
- if (optionsResult.err) {
2830
- return optionsResult;
2831
- }
2832
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2833
- if (argCloseResult.err) {
2834
- return argCloseResult;
2835
- }
2836
- var location_2 = createLocation(openingBracePosition, this.clonePosition());
2837
- if (argType === "select") {
2306
+ }
2307
+ this.bumpSpace();
2308
+ if (this.isEOF()) {
2309
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2310
+ }
2311
+ switch (this.char()) {
2312
+ case 125: {
2313
+ this.bump();
2838
2314
  return {
2839
2315
  val: {
2840
- type: TYPE.select,
2316
+ type: TYPE.argument,
2317
+ // value does not include the opening and closing braces.
2841
2318
  value,
2842
- options: fromEntries(optionsResult.val),
2843
- location: location_2
2319
+ location: createLocation(openingBracePosition, this.clonePosition())
2844
2320
  },
2845
2321
  err: null
2846
2322
  };
2847
- } else {
2323
+ }
2324
+ case 44: {
2325
+ this.bump();
2326
+ this.bumpSpace();
2327
+ if (this.isEOF()) {
2328
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2329
+ }
2330
+ return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
2331
+ }
2332
+ default:
2333
+ return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2334
+ }
2335
+ };
2336
+ Parser2.prototype.parseIdentifierIfPossible = function() {
2337
+ var startingPosition = this.clonePosition();
2338
+ var startOffset = this.offset();
2339
+ var value = matchIdentifierAtIndex(this.message, startOffset);
2340
+ var endOffset = startOffset + value.length;
2341
+ this.bumpTo(endOffset);
2342
+ var endPosition = this.clonePosition();
2343
+ var location = createLocation(startingPosition, endPosition);
2344
+ return { value, location };
2345
+ };
2346
+ Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2347
+ var _a2;
2348
+ var typeStartPosition = this.clonePosition();
2349
+ var argType = this.parseIdentifierIfPossible().value;
2350
+ var typeEndPosition = this.clonePosition();
2351
+ switch (argType) {
2352
+ case "":
2353
+ return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2354
+ case "number":
2355
+ case "date":
2356
+ case "time": {
2357
+ this.bumpSpace();
2358
+ var styleAndLocation = null;
2359
+ if (this.bumpIf(",")) {
2360
+ this.bumpSpace();
2361
+ var styleStartPosition = this.clonePosition();
2362
+ var result = this.parseSimpleArgStyleIfPossible();
2363
+ if (result.err) {
2364
+ return result;
2365
+ }
2366
+ var style = trimEnd(result.val);
2367
+ if (style.length === 0) {
2368
+ return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));
2369
+ }
2370
+ var styleLocation = createLocation(styleStartPosition, this.clonePosition());
2371
+ styleAndLocation = { style, styleLocation };
2372
+ }
2373
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2374
+ if (argCloseResult.err) {
2375
+ return argCloseResult;
2376
+ }
2377
+ var location_1 = createLocation(openingBracePosition, this.clonePosition());
2378
+ if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
2379
+ var skeleton = trimStart(styleAndLocation.style.slice(2));
2380
+ if (argType === "number") {
2381
+ var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
2382
+ if (result.err) {
2383
+ return result;
2384
+ }
2385
+ return {
2386
+ val: { type: TYPE.number, value, location: location_1, style: result.val },
2387
+ err: null
2388
+ };
2389
+ } else {
2390
+ if (skeleton.length === 0) {
2391
+ return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
2392
+ }
2393
+ var dateTimePattern = skeleton;
2394
+ if (this.locale) {
2395
+ dateTimePattern = getBestPattern(skeleton, this.locale);
2396
+ }
2397
+ var style = {
2398
+ type: SKELETON_TYPE.dateTime,
2399
+ pattern: dateTimePattern,
2400
+ location: styleAndLocation.styleLocation,
2401
+ parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
2402
+ };
2403
+ var type = argType === "date" ? TYPE.date : TYPE.time;
2404
+ return {
2405
+ val: { type, value, location: location_1, style },
2406
+ err: null
2407
+ };
2408
+ }
2409
+ }
2848
2410
  return {
2849
2411
  val: {
2850
- type: TYPE.plural,
2412
+ type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2851
2413
  value,
2852
- options: fromEntries(optionsResult.val),
2853
- offset: pluralOffset,
2854
- pluralType: argType === "plural" ? "cardinal" : "ordinal",
2855
- location: location_2
2414
+ location: location_1,
2415
+ style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2856
2416
  },
2857
2417
  err: null
2858
2418
  };
2859
2419
  }
2860
- }
2861
- default:
2862
- return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2863
- }
2864
- };
2865
- Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2866
- if (this.isEOF() || this.char() !== 125) {
2867
- return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2868
- }
2869
- this.bump();
2870
- return { val: true, err: null };
2871
- };
2872
- Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2873
- var nestedBraces = 0;
2874
- var startPosition = this.clonePosition();
2875
- while (!this.isEOF()) {
2876
- var ch = this.char();
2877
- switch (ch) {
2878
- case 39: {
2879
- this.bump();
2880
- var apostrophePosition = this.clonePosition();
2881
- if (!this.bumpUntil("'")) {
2882
- return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));
2420
+ case "plural":
2421
+ case "selectordinal":
2422
+ case "select": {
2423
+ var typeEndPosition_1 = this.clonePosition();
2424
+ this.bumpSpace();
2425
+ if (!this.bumpIf(",")) {
2426
+ return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));
2883
2427
  }
2884
- this.bump();
2885
- break;
2886
- }
2887
- case 123: {
2888
- nestedBraces += 1;
2889
- this.bump();
2890
- break;
2891
- }
2892
- case 125: {
2893
- if (nestedBraces > 0) {
2894
- nestedBraces -= 1;
2428
+ this.bumpSpace();
2429
+ var identifierAndLocation = this.parseIdentifierIfPossible();
2430
+ var pluralOffset = 0;
2431
+ if (argType !== "select" && identifierAndLocation.value === "offset") {
2432
+ if (!this.bumpIf(":")) {
2433
+ return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));
2434
+ }
2435
+ this.bumpSpace();
2436
+ var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2437
+ if (result.err) {
2438
+ return result;
2439
+ }
2440
+ this.bumpSpace();
2441
+ identifierAndLocation = this.parseIdentifierIfPossible();
2442
+ pluralOffset = result.val;
2443
+ }
2444
+ var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
2445
+ if (optionsResult.err) {
2446
+ return optionsResult;
2447
+ }
2448
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2449
+ if (argCloseResult.err) {
2450
+ return argCloseResult;
2451
+ }
2452
+ var location_2 = createLocation(openingBracePosition, this.clonePosition());
2453
+ if (argType === "select") {
2454
+ return {
2455
+ val: {
2456
+ type: TYPE.select,
2457
+ value,
2458
+ options: fromEntries(optionsResult.val),
2459
+ location: location_2
2460
+ },
2461
+ err: null
2462
+ };
2895
2463
  } else {
2896
2464
  return {
2897
- val: this.message.slice(startPosition.offset, this.offset()),
2465
+ val: {
2466
+ type: TYPE.plural,
2467
+ value,
2468
+ options: fromEntries(optionsResult.val),
2469
+ offset: pluralOffset,
2470
+ pluralType: argType === "plural" ? "cardinal" : "ordinal",
2471
+ location: location_2
2472
+ },
2898
2473
  err: null
2899
2474
  };
2900
2475
  }
2901
- break;
2902
2476
  }
2903
2477
  default:
2904
- this.bump();
2905
- break;
2478
+ return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2906
2479
  }
2907
- }
2908
- return {
2909
- val: this.message.slice(startPosition.offset, this.offset()),
2910
- err: null
2911
2480
  };
2912
- };
2913
- Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2914
- var tokens = [];
2915
- try {
2916
- tokens = parseNumberSkeletonFromString(skeleton);
2917
- } catch (e) {
2918
- return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location);
2919
- }
2920
- return {
2921
- val: {
2922
- type: SKELETON_TYPE.number,
2923
- tokens,
2924
- location,
2925
- parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens) : {}
2926
- },
2927
- err: null
2481
+ Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2482
+ if (this.isEOF() || this.char() !== 125) {
2483
+ return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2484
+ }
2485
+ this.bump();
2486
+ return { val: true, err: null };
2928
2487
  };
2929
- };
2930
- Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2931
- var _a2;
2932
- var hasOtherClause = false;
2933
- var options = [];
2934
- var parsedSelectors = /* @__PURE__ */ new Set();
2935
- var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
2936
- while (true) {
2937
- if (selector.length === 0) {
2938
- var startPosition = this.clonePosition();
2939
- if (parentArgType !== "select" && this.bumpIf("=")) {
2940
- var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
2941
- if (result.err) {
2942
- return result;
2488
+ Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2489
+ var nestedBraces = 0;
2490
+ var startPosition = this.clonePosition();
2491
+ while (!this.isEOF()) {
2492
+ var ch = this.char();
2493
+ switch (ch) {
2494
+ case 39: {
2495
+ this.bump();
2496
+ var apostrophePosition = this.clonePosition();
2497
+ if (!this.bumpUntil("'")) {
2498
+ return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));
2499
+ }
2500
+ this.bump();
2501
+ break;
2502
+ }
2503
+ case 123: {
2504
+ nestedBraces += 1;
2505
+ this.bump();
2506
+ break;
2507
+ }
2508
+ case 125: {
2509
+ if (nestedBraces > 0) {
2510
+ nestedBraces -= 1;
2511
+ } else {
2512
+ return {
2513
+ val: this.message.slice(startPosition.offset, this.offset()),
2514
+ err: null
2515
+ };
2516
+ }
2517
+ break;
2518
+ }
2519
+ default:
2520
+ this.bump();
2521
+ break;
2522
+ }
2523
+ }
2524
+ return {
2525
+ val: this.message.slice(startPosition.offset, this.offset()),
2526
+ err: null
2527
+ };
2528
+ };
2529
+ Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2530
+ var tokens = [];
2531
+ try {
2532
+ tokens = parseNumberSkeletonFromString(skeleton);
2533
+ } catch (e) {
2534
+ return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location);
2535
+ }
2536
+ return {
2537
+ val: {
2538
+ type: SKELETON_TYPE.number,
2539
+ tokens,
2540
+ location,
2541
+ parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens) : {}
2542
+ },
2543
+ err: null
2544
+ };
2545
+ };
2546
+ Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2547
+ var _a2;
2548
+ var hasOtherClause = false;
2549
+ var options = [];
2550
+ var parsedSelectors = /* @__PURE__ */ new Set();
2551
+ var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
2552
+ while (true) {
2553
+ if (selector.length === 0) {
2554
+ var startPosition = this.clonePosition();
2555
+ if (parentArgType !== "select" && this.bumpIf("=")) {
2556
+ var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
2557
+ if (result.err) {
2558
+ return result;
2559
+ }
2560
+ selectorLocation = createLocation(startPosition, this.clonePosition());
2561
+ selector = this.message.slice(startPosition.offset, this.offset());
2562
+ } else {
2563
+ break;
2564
+ }
2565
+ }
2566
+ if (parsedSelectors.has(selector)) {
2567
+ return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
2568
+ }
2569
+ if (selector === "other") {
2570
+ hasOtherClause = true;
2571
+ }
2572
+ this.bumpSpace();
2573
+ var openingBracePosition = this.clonePosition();
2574
+ if (!this.bumpIf("{")) {
2575
+ return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));
2576
+ }
2577
+ var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
2578
+ if (fragmentResult.err) {
2579
+ return fragmentResult;
2580
+ }
2581
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2582
+ if (argCloseResult.err) {
2583
+ return argCloseResult;
2584
+ }
2585
+ options.push([
2586
+ selector,
2587
+ {
2588
+ value: fragmentResult.val,
2589
+ location: createLocation(openingBracePosition, this.clonePosition())
2943
2590
  }
2944
- selectorLocation = createLocation(startPosition, this.clonePosition());
2945
- selector = this.message.slice(startPosition.offset, this.offset());
2591
+ ]);
2592
+ parsedSelectors.add(selector);
2593
+ this.bumpSpace();
2594
+ _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
2595
+ }
2596
+ if (options.length === 0) {
2597
+ return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
2598
+ }
2599
+ if (this.requiresOtherClause && !hasOtherClause) {
2600
+ return this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));
2601
+ }
2602
+ return { val: options, err: null };
2603
+ };
2604
+ Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2605
+ var sign = 1;
2606
+ var startingPosition = this.clonePosition();
2607
+ if (this.bumpIf("+")) {
2608
+ } else if (this.bumpIf("-")) {
2609
+ sign = -1;
2610
+ }
2611
+ var hasDigits = false;
2612
+ var decimal = 0;
2613
+ while (!this.isEOF()) {
2614
+ var ch = this.char();
2615
+ if (ch >= 48 && ch <= 57) {
2616
+ hasDigits = true;
2617
+ decimal = decimal * 10 + (ch - 48);
2618
+ this.bump();
2946
2619
  } else {
2947
2620
  break;
2948
2621
  }
2949
2622
  }
2950
- if (parsedSelectors.has(selector)) {
2951
- return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
2623
+ var location = createLocation(startingPosition, this.clonePosition());
2624
+ if (!hasDigits) {
2625
+ return this.error(expectNumberError, location);
2952
2626
  }
2953
- if (selector === "other") {
2954
- hasOtherClause = true;
2627
+ decimal *= sign;
2628
+ if (!isSafeInteger(decimal)) {
2629
+ return this.error(invalidNumberError, location);
2955
2630
  }
2956
- this.bumpSpace();
2957
- var openingBracePosition = this.clonePosition();
2958
- if (!this.bumpIf("{")) {
2959
- return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));
2960
- }
2961
- var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
2962
- if (fragmentResult.err) {
2963
- return fragmentResult;
2964
- }
2965
- var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
2966
- if (argCloseResult.err) {
2967
- return argCloseResult;
2968
- }
2969
- options.push([
2970
- selector,
2971
- {
2972
- value: fragmentResult.val,
2973
- location: createLocation(openingBracePosition, this.clonePosition())
2631
+ return { val: decimal, err: null };
2632
+ };
2633
+ Parser2.prototype.offset = function() {
2634
+ return this.position.offset;
2635
+ };
2636
+ Parser2.prototype.isEOF = function() {
2637
+ return this.offset() === this.message.length;
2638
+ };
2639
+ Parser2.prototype.clonePosition = function() {
2640
+ return {
2641
+ offset: this.position.offset,
2642
+ line: this.position.line,
2643
+ column: this.position.column
2644
+ };
2645
+ };
2646
+ Parser2.prototype.char = function() {
2647
+ var offset = this.position.offset;
2648
+ if (offset >= this.message.length) {
2649
+ throw Error("out of bound");
2650
+ }
2651
+ var code = codePointAt(this.message, offset);
2652
+ if (code === void 0) {
2653
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
2654
+ }
2655
+ return code;
2656
+ };
2657
+ Parser2.prototype.error = function(kind, location) {
2658
+ return {
2659
+ val: null,
2660
+ err: {
2661
+ kind,
2662
+ message: this.message,
2663
+ location
2974
2664
  }
2975
- ]);
2976
- parsedSelectors.add(selector);
2977
- this.bumpSpace();
2978
- _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
2979
- }
2980
- if (options.length === 0) {
2981
- return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
2982
- }
2983
- if (this.requiresOtherClause && !hasOtherClause) {
2984
- return this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));
2985
- }
2986
- return { val: options, err: null };
2987
- };
2988
- Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2989
- var sign = 1;
2990
- var startingPosition = this.clonePosition();
2991
- if (this.bumpIf("+")) {
2992
- } else if (this.bumpIf("-")) {
2993
- sign = -1;
2994
- }
2995
- var hasDigits = false;
2996
- var decimal = 0;
2997
- while (!this.isEOF()) {
2998
- var ch = this.char();
2999
- if (ch >= 48 && ch <= 57) {
3000
- hasDigits = true;
3001
- decimal = decimal * 10 + (ch - 48);
3002
- this.bump();
2665
+ };
2666
+ };
2667
+ Parser2.prototype.bump = function() {
2668
+ if (this.isEOF()) {
2669
+ return;
2670
+ }
2671
+ var code = this.char();
2672
+ if (code === 10) {
2673
+ this.position.line += 1;
2674
+ this.position.column = 1;
2675
+ this.position.offset += 1;
3003
2676
  } else {
3004
- break;
2677
+ this.position.column += 1;
2678
+ this.position.offset += code < 65536 ? 1 : 2;
3005
2679
  }
3006
- }
3007
- var location = createLocation(startingPosition, this.clonePosition());
3008
- if (!hasDigits) {
3009
- return this.error(expectNumberError, location);
3010
- }
3011
- decimal *= sign;
3012
- if (!isSafeInteger(decimal)) {
3013
- return this.error(invalidNumberError, location);
3014
- }
3015
- return { val: decimal, err: null };
3016
- };
3017
- Parser2.prototype.offset = function() {
3018
- return this.position.offset;
3019
- };
3020
- Parser2.prototype.isEOF = function() {
3021
- return this.offset() === this.message.length;
3022
- };
3023
- Parser2.prototype.clonePosition = function() {
3024
- return {
3025
- offset: this.position.offset,
3026
- line: this.position.line,
3027
- column: this.position.column
3028
2680
  };
3029
- };
3030
- Parser2.prototype.char = function() {
3031
- var offset = this.position.offset;
3032
- if (offset >= this.message.length) {
3033
- throw Error("out of bound");
3034
- }
3035
- var code = codePointAt(this.message, offset);
3036
- if (code === void 0) {
3037
- throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
3038
- }
3039
- return code;
3040
- };
3041
- Parser2.prototype.error = function(kind, location) {
3042
- return {
3043
- val: null,
3044
- err: {
3045
- kind,
3046
- message: this.message,
3047
- location
2681
+ Parser2.prototype.bumpIf = function(prefix) {
2682
+ if (startsWith(this.message, prefix, this.offset())) {
2683
+ for (var i = 0; i < prefix.length; i++) {
2684
+ this.bump();
2685
+ }
2686
+ return true;
3048
2687
  }
2688
+ return false;
3049
2689
  };
3050
- };
3051
- Parser2.prototype.bump = function() {
3052
- if (this.isEOF()) {
3053
- return;
3054
- }
3055
- var code = this.char();
3056
- if (code === 10) {
3057
- this.position.line += 1;
3058
- this.position.column = 1;
3059
- this.position.offset += 1;
3060
- } else {
3061
- this.position.column += 1;
3062
- this.position.offset += code < 65536 ? 1 : 2;
3063
- }
3064
- };
3065
- Parser2.prototype.bumpIf = function(prefix) {
3066
- if (startsWith(this.message, prefix, this.offset())) {
3067
- for (var i = 0; i < prefix.length; i++) {
3068
- this.bump();
2690
+ Parser2.prototype.bumpUntil = function(pattern) {
2691
+ var currentOffset = this.offset();
2692
+ var index = this.message.indexOf(pattern, currentOffset);
2693
+ if (index >= 0) {
2694
+ this.bumpTo(index);
2695
+ return true;
2696
+ } else {
2697
+ this.bumpTo(this.message.length);
2698
+ return false;
3069
2699
  }
3070
- return true;
3071
- }
3072
- return false;
3073
- };
3074
- Parser2.prototype.bumpUntil = function(pattern) {
3075
- var currentOffset = this.offset();
3076
- var index = this.message.indexOf(pattern, currentOffset);
3077
- if (index >= 0) {
3078
- this.bumpTo(index);
3079
- return true;
3080
- } else {
3081
- this.bumpTo(this.message.length);
3082
- return false;
3083
- }
3084
- };
3085
- Parser2.prototype.bumpTo = function(targetOffset) {
3086
- if (this.offset() > targetOffset) {
3087
- throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3088
- }
3089
- targetOffset = Math.min(targetOffset, this.message.length);
3090
- while (true) {
3091
- var offset = this.offset();
3092
- if (offset === targetOffset) {
3093
- break;
2700
+ };
2701
+ Parser2.prototype.bumpTo = function(targetOffset) {
2702
+ if (this.offset() > targetOffset) {
2703
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3094
2704
  }
3095
- if (offset > targetOffset) {
3096
- throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2705
+ targetOffset = Math.min(targetOffset, this.message.length);
2706
+ while (true) {
2707
+ var offset = this.offset();
2708
+ if (offset === targetOffset) {
2709
+ break;
2710
+ }
2711
+ if (offset > targetOffset) {
2712
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2713
+ }
2714
+ this.bump();
2715
+ if (this.isEOF()) {
2716
+ break;
2717
+ }
3097
2718
  }
3098
- this.bump();
2719
+ };
2720
+ Parser2.prototype.bumpSpace = function() {
2721
+ while (!this.isEOF() && _isWhiteSpace(this.char())) {
2722
+ this.bump();
2723
+ }
2724
+ };
2725
+ Parser2.prototype.peek = function() {
3099
2726
  if (this.isEOF()) {
3100
- break;
2727
+ return null;
3101
2728
  }
3102
- }
3103
- };
3104
- Parser2.prototype.bumpSpace = function() {
3105
- while (!this.isEOF() && _isWhiteSpace(this.char())) {
3106
- this.bump();
3107
- }
3108
- };
3109
- Parser2.prototype.peek = function() {
3110
- if (this.isEOF()) {
3111
- return null;
3112
- }
3113
- var code = this.char();
3114
- var offset = this.offset();
3115
- var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
3116
- return nextCode !== null && nextCode !== void 0 ? nextCode : null;
3117
- };
3118
- return Parser2;
3119
- }();
2729
+ var code = this.char();
2730
+ var offset = this.offset();
2731
+ var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
2732
+ return nextCode !== null && nextCode !== void 0 ? nextCode : null;
2733
+ };
2734
+ return Parser2;
2735
+ }()
2736
+ );
3120
2737
  function _isAlpha(codepoint) {
3121
2738
  return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
3122
2739
  }
@@ -3243,40 +2860,52 @@ var IntlMessageFormat = (() => {
3243
2860
  ErrorCode2["INVALID_VALUE"] = "INVALID_VALUE";
3244
2861
  ErrorCode2["MISSING_INTL_API"] = "MISSING_INTL_API";
3245
2862
  })(ErrorCode || (ErrorCode = {}));
3246
- var FormatError = function(_super) {
3247
- __extends(FormatError2, _super);
3248
- function FormatError2(msg, code, originalMessage) {
3249
- var _this = _super.call(this, msg) || this;
3250
- _this.code = code;
3251
- _this.originalMessage = originalMessage;
3252
- return _this;
3253
- }
3254
- FormatError2.prototype.toString = function() {
3255
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3256
- };
3257
- return FormatError2;
3258
- }(Error);
3259
- var InvalidValueError = function(_super) {
3260
- __extends(InvalidValueError2, _super);
3261
- function InvalidValueError2(variableId, value, options, originalMessage) {
3262
- return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
3263
- }
3264
- return InvalidValueError2;
3265
- }(FormatError);
3266
- var InvalidValueTypeError = function(_super) {
3267
- __extends(InvalidValueTypeError2, _super);
3268
- function InvalidValueTypeError2(value, type, originalMessage) {
3269
- return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
3270
- }
3271
- return InvalidValueTypeError2;
3272
- }(FormatError);
3273
- var MissingValueError = function(_super) {
3274
- __extends(MissingValueError2, _super);
3275
- function MissingValueError2(variableId, originalMessage) {
3276
- return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
3277
- }
3278
- return MissingValueError2;
3279
- }(FormatError);
2863
+ var FormatError = (
2864
+ /** @class */
2865
+ function(_super) {
2866
+ __extends(FormatError2, _super);
2867
+ function FormatError2(msg, code, originalMessage) {
2868
+ var _this = _super.call(this, msg) || this;
2869
+ _this.code = code;
2870
+ _this.originalMessage = originalMessage;
2871
+ return _this;
2872
+ }
2873
+ FormatError2.prototype.toString = function() {
2874
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2875
+ };
2876
+ return FormatError2;
2877
+ }(Error)
2878
+ );
2879
+ var InvalidValueError = (
2880
+ /** @class */
2881
+ function(_super) {
2882
+ __extends(InvalidValueError2, _super);
2883
+ function InvalidValueError2(variableId, value, options, originalMessage) {
2884
+ return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
2885
+ }
2886
+ return InvalidValueError2;
2887
+ }(FormatError)
2888
+ );
2889
+ var InvalidValueTypeError = (
2890
+ /** @class */
2891
+ function(_super) {
2892
+ __extends(InvalidValueTypeError2, _super);
2893
+ function InvalidValueTypeError2(value, type, originalMessage) {
2894
+ return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
2895
+ }
2896
+ return InvalidValueTypeError2;
2897
+ }(FormatError)
2898
+ );
2899
+ var MissingValueError = (
2900
+ /** @class */
2901
+ function(_super) {
2902
+ __extends(MissingValueError2, _super);
2903
+ function MissingValueError2(variableId, originalMessage) {
2904
+ return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
2905
+ }
2906
+ return MissingValueError2;
2907
+ }(FormatError)
2908
+ );
3280
2909
 
3281
2910
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/src/formatters.js
3282
2911
  var PART_TYPE;
@@ -3495,148 +3124,151 @@ var IntlMessageFormat = (() => {
3495
3124
  })
3496
3125
  };
3497
3126
  }
3498
- var IntlMessageFormat = function() {
3499
- function IntlMessageFormat2(message, locales, overrideFormats, opts) {
3500
- if (locales === void 0) {
3501
- locales = IntlMessageFormat2.defaultLocale;
3502
- }
3503
- var _this = this;
3504
- this.formatterCache = {
3505
- number: {},
3506
- dateTime: {},
3507
- pluralRules: {}
3508
- };
3509
- this.format = function(values) {
3510
- var parts = _this.formatToParts(values);
3511
- if (parts.length === 1) {
3512
- return parts[0].value;
3513
- }
3514
- var result = parts.reduce(function(all, part) {
3515
- if (!all.length || part.type !== PART_TYPE.literal || typeof all[all.length - 1] !== "string") {
3516
- all.push(part.value);
3517
- } else {
3518
- all[all.length - 1] += part.value;
3519
- }
3520
- return all;
3521
- }, []);
3522
- if (result.length <= 1) {
3523
- return result[0] || "";
3127
+ var IntlMessageFormat = (
3128
+ /** @class */
3129
+ function() {
3130
+ function IntlMessageFormat2(message, locales, overrideFormats, opts) {
3131
+ if (locales === void 0) {
3132
+ locales = IntlMessageFormat2.defaultLocale;
3524
3133
  }
3525
- return result;
3526
- };
3527
- this.formatToParts = function(values) {
3528
- return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
3529
- };
3530
- this.resolvedOptions = function() {
3531
- var _a3;
3532
- return {
3533
- locale: ((_a3 = _this.resolvedLocale) === null || _a3 === void 0 ? void 0 : _a3.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3134
+ var _this = this;
3135
+ this.formatterCache = {
3136
+ number: {},
3137
+ dateTime: {},
3138
+ pluralRules: {}
3534
3139
  };
3535
- };
3536
- this.getAst = function() {
3537
- return _this.ast;
3538
- };
3539
- this.locales = locales;
3540
- this.resolvedLocale = IntlMessageFormat2.resolveLocale(locales);
3541
- if (typeof message === "string") {
3542
- this.message = message;
3543
- if (!IntlMessageFormat2.__parse) {
3544
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3140
+ this.format = function(values) {
3141
+ var parts = _this.formatToParts(values);
3142
+ if (parts.length === 1) {
3143
+ return parts[0].value;
3144
+ }
3145
+ var result = parts.reduce(function(all, part) {
3146
+ if (!all.length || part.type !== PART_TYPE.literal || typeof all[all.length - 1] !== "string") {
3147
+ all.push(part.value);
3148
+ } else {
3149
+ all[all.length - 1] += part.value;
3150
+ }
3151
+ return all;
3152
+ }, []);
3153
+ if (result.length <= 1) {
3154
+ return result[0] || "";
3155
+ }
3156
+ return result;
3157
+ };
3158
+ this.formatToParts = function(values) {
3159
+ return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
3160
+ };
3161
+ this.resolvedOptions = function() {
3162
+ var _a3;
3163
+ return {
3164
+ locale: ((_a3 = _this.resolvedLocale) === null || _a3 === void 0 ? void 0 : _a3.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3165
+ };
3166
+ };
3167
+ this.getAst = function() {
3168
+ return _this.ast;
3169
+ };
3170
+ this.locales = locales;
3171
+ this.resolvedLocale = IntlMessageFormat2.resolveLocale(locales);
3172
+ if (typeof message === "string") {
3173
+ this.message = message;
3174
+ if (!IntlMessageFormat2.__parse) {
3175
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3176
+ }
3177
+ var _a2 = opts || {}, formatters = _a2.formatters, parseOpts = __rest(_a2, ["formatters"]);
3178
+ this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
3179
+ } else {
3180
+ this.ast = message;
3545
3181
  }
3546
- var _a2 = opts || {}, formatters = _a2.formatters, parseOpts = __rest(_a2, ["formatters"]);
3547
- this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
3548
- } else {
3549
- this.ast = message;
3550
- }
3551
- if (!Array.isArray(this.ast)) {
3552
- throw new TypeError("A message must be provided as a String or AST.");
3553
- }
3554
- this.formats = mergeConfigs(IntlMessageFormat2.formats, overrideFormats);
3555
- this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache);
3556
- }
3557
- Object.defineProperty(IntlMessageFormat2, "defaultLocale", {
3558
- get: function() {
3559
- if (!IntlMessageFormat2.memoizedDefaultLocale) {
3560
- IntlMessageFormat2.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale;
3561
- }
3562
- return IntlMessageFormat2.memoizedDefaultLocale;
3563
- },
3564
- enumerable: false,
3565
- configurable: true
3566
- });
3567
- IntlMessageFormat2.memoizedDefaultLocale = null;
3568
- IntlMessageFormat2.resolveLocale = function(locales) {
3569
- if (typeof Intl.Locale === "undefined") {
3570
- return;
3571
- }
3572
- var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);
3573
- if (supportedLocales.length > 0) {
3574
- return new Intl.Locale(supportedLocales[0]);
3182
+ if (!Array.isArray(this.ast)) {
3183
+ throw new TypeError("A message must be provided as a String or AST.");
3184
+ }
3185
+ this.formats = mergeConfigs(IntlMessageFormat2.formats, overrideFormats);
3186
+ this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache);
3575
3187
  }
3576
- return new Intl.Locale(typeof locales === "string" ? locales : locales[0]);
3577
- };
3578
- IntlMessageFormat2.__parse = parse;
3579
- IntlMessageFormat2.formats = {
3580
- number: {
3581
- integer: {
3582
- maximumFractionDigits: 0
3583
- },
3584
- currency: {
3585
- style: "currency"
3586
- },
3587
- percent: {
3588
- style: "percent"
3589
- }
3590
- },
3591
- date: {
3592
- short: {
3593
- month: "numeric",
3594
- day: "numeric",
3595
- year: "2-digit"
3596
- },
3597
- medium: {
3598
- month: "short",
3599
- day: "numeric",
3600
- year: "numeric"
3601
- },
3602
- long: {
3603
- month: "long",
3604
- day: "numeric",
3605
- year: "numeric"
3606
- },
3607
- full: {
3608
- weekday: "long",
3609
- month: "long",
3610
- day: "numeric",
3611
- year: "numeric"
3612
- }
3613
- },
3614
- time: {
3615
- short: {
3616
- hour: "numeric",
3617
- minute: "numeric"
3188
+ Object.defineProperty(IntlMessageFormat2, "defaultLocale", {
3189
+ get: function() {
3190
+ if (!IntlMessageFormat2.memoizedDefaultLocale) {
3191
+ IntlMessageFormat2.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale;
3192
+ }
3193
+ return IntlMessageFormat2.memoizedDefaultLocale;
3618
3194
  },
3619
- medium: {
3620
- hour: "numeric",
3621
- minute: "numeric",
3622
- second: "numeric"
3195
+ enumerable: false,
3196
+ configurable: true
3197
+ });
3198
+ IntlMessageFormat2.memoizedDefaultLocale = null;
3199
+ IntlMessageFormat2.resolveLocale = function(locales) {
3200
+ if (typeof Intl.Locale === "undefined") {
3201
+ return;
3202
+ }
3203
+ var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);
3204
+ if (supportedLocales.length > 0) {
3205
+ return new Intl.Locale(supportedLocales[0]);
3206
+ }
3207
+ return new Intl.Locale(typeof locales === "string" ? locales : locales[0]);
3208
+ };
3209
+ IntlMessageFormat2.__parse = parse;
3210
+ IntlMessageFormat2.formats = {
3211
+ number: {
3212
+ integer: {
3213
+ maximumFractionDigits: 0
3214
+ },
3215
+ currency: {
3216
+ style: "currency"
3217
+ },
3218
+ percent: {
3219
+ style: "percent"
3220
+ }
3623
3221
  },
3624
- long: {
3625
- hour: "numeric",
3626
- minute: "numeric",
3627
- second: "numeric",
3628
- timeZoneName: "short"
3222
+ date: {
3223
+ short: {
3224
+ month: "numeric",
3225
+ day: "numeric",
3226
+ year: "2-digit"
3227
+ },
3228
+ medium: {
3229
+ month: "short",
3230
+ day: "numeric",
3231
+ year: "numeric"
3232
+ },
3233
+ long: {
3234
+ month: "long",
3235
+ day: "numeric",
3236
+ year: "numeric"
3237
+ },
3238
+ full: {
3239
+ weekday: "long",
3240
+ month: "long",
3241
+ day: "numeric",
3242
+ year: "numeric"
3243
+ }
3629
3244
  },
3630
- full: {
3631
- hour: "numeric",
3632
- minute: "numeric",
3633
- second: "numeric",
3634
- timeZoneName: "short"
3245
+ time: {
3246
+ short: {
3247
+ hour: "numeric",
3248
+ minute: "numeric"
3249
+ },
3250
+ medium: {
3251
+ hour: "numeric",
3252
+ minute: "numeric",
3253
+ second: "numeric"
3254
+ },
3255
+ long: {
3256
+ hour: "numeric",
3257
+ minute: "numeric",
3258
+ second: "numeric",
3259
+ timeZoneName: "short"
3260
+ },
3261
+ full: {
3262
+ hour: "numeric",
3263
+ minute: "numeric",
3264
+ second: "numeric",
3265
+ timeZoneName: "short"
3266
+ }
3635
3267
  }
3636
- }
3637
- };
3638
- return IntlMessageFormat2;
3639
- }();
3268
+ };
3269
+ return IntlMessageFormat2;
3270
+ }()
3271
+ );
3640
3272
 
3641
3273
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/index.js
3642
3274
  var lib_default = IntlMessageFormat;