@formatjs/intl-datetimeformat 6.12.6 → 6.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/polyfill.iife.js CHANGED
@@ -1,66 +1,43 @@
1
1
  (() => {
2
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
3
- var extendStatics = function(d, b) {
4
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
5
- d2.__proto__ = b2;
6
- } || function(d2, b2) {
7
- for (var p in b2)
8
- if (Object.prototype.hasOwnProperty.call(b2, p))
9
- d2[p] = b2[p];
10
- };
11
- return extendStatics(d, b);
12
- };
13
- function __extends(d, b) {
14
- if (typeof b !== "function" && b !== null)
15
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
- extendStatics(d, b);
17
- function __() {
18
- this.constructor = d;
19
- }
20
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21
- }
22
- var __assign = function() {
23
- __assign = Object.assign || function __assign2(t) {
24
- for (var s, i = 1, n = arguments.length; i < n; i++) {
25
- s = arguments[i];
26
- for (var p in s)
27
- if (Object.prototype.hasOwnProperty.call(s, p))
28
- t[p] = s[p];
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __pow = Math.pow;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
29
18
  }
30
- return t;
31
- };
32
- return __assign.apply(this, arguments);
19
+ return a;
33
20
  };
34
- function __rest(s, e) {
35
- var t = {};
36
- for (var p in s)
37
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38
- t[p] = s[p];
39
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
40
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
41
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
42
- t[p[i]] = s[p[i]];
43
- }
44
- return t;
45
- }
46
- function __spreadArray(to, from, pack) {
47
- if (pack || arguments.length === 2)
48
- for (var i = 0, l = from.length, ar; i < l; i++) {
49
- if (ar || !(i in from)) {
50
- if (!ar)
51
- ar = Array.prototype.slice.call(from, 0, i);
52
- ar[i] = from[i];
53
- }
21
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
54
31
  }
55
- return to.concat(ar || Array.prototype.slice.call(from));
56
- }
32
+ return target;
33
+ };
57
34
 
58
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
35
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
59
36
  function CanonicalizeLocaleList(locales) {
60
37
  return Intl.getCanonicalLocales(locales);
61
38
  }
62
39
 
63
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeTimeZoneName.js
40
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeTimeZoneName.js
64
41
  function CanonicalizeTimeZoneName(tz, _a) {
65
42
  var zoneNames = _a.zoneNames, uppercaseLinks = _a.uppercaseLinks;
66
43
  var uppercasedTz = tz.toUpperCase();
@@ -75,7 +52,7 @@
75
52
  return ianaTimeZone;
76
53
  }
77
54
 
78
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
55
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
79
56
  function ToString(o) {
80
57
  if (typeof o === "symbol") {
81
58
  throw TypeError("Cannot convert a Symbol value to a string");
@@ -326,7 +303,7 @@
326
303
  return mod(t, MS_PER_SECOND);
327
304
  }
328
305
 
329
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
306
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
330
307
  function DefaultNumberOption(inputVal, min, max, fallback) {
331
308
  if (inputVal === void 0) {
332
309
  return fallback;
@@ -338,13 +315,13 @@
338
315
  return Math.floor(val);
339
316
  }
340
317
 
341
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
318
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
342
319
  function GetNumberOption(options, property, minimum, maximum, fallback) {
343
320
  var val = options[property];
344
321
  return DefaultNumberOption(val, minimum, maximum, fallback);
345
322
  }
346
323
 
347
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
324
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
348
325
  function GetOption(opts, prop, type, values, fallback) {
349
326
  if (typeof opts !== "object") {
350
327
  throw new TypeError("Options must be an object");
@@ -370,7 +347,7 @@
370
347
  return fallback;
371
348
  }
372
349
 
373
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
350
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
374
351
  var SANCTIONED_UNITS = [
375
352
  "angle-degree",
376
353
  "area-acre",
@@ -421,7 +398,7 @@
421
398
  }
422
399
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
423
400
 
424
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsValidTimeZoneName.js
401
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsValidTimeZoneName.js
425
402
  function IsValidTimeZoneName(tz, _a) {
426
403
  var zoneNamesFromData = _a.zoneNamesFromData, uppercaseLinks = _a.uppercaseLinks;
427
404
  var uppercasedTz = tz.toUpperCase();
@@ -439,7 +416,106 @@
439
416
  return zoneNames.has(uppercasedTz) || linkNames.has(uppercasedTz);
440
417
  }
441
418
 
442
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
419
+ // node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
420
+ var extendStatics = function(d, b) {
421
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
422
+ d2.__proto__ = b2;
423
+ } || function(d2, b2) {
424
+ for (var p in b2)
425
+ if (Object.prototype.hasOwnProperty.call(b2, p))
426
+ d2[p] = b2[p];
427
+ };
428
+ return extendStatics(d, b);
429
+ };
430
+ function __extends(d, b) {
431
+ if (typeof b !== "function" && b !== null)
432
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
433
+ extendStatics(d, b);
434
+ function __() {
435
+ this.constructor = d;
436
+ }
437
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
438
+ }
439
+ function __spreadArray(to, from, pack) {
440
+ if (pack || arguments.length === 2)
441
+ for (var i = 0, l = from.length, ar; i < l; i++) {
442
+ if (ar || !(i in from)) {
443
+ if (!ar)
444
+ ar = Array.prototype.slice.call(from, 0, i);
445
+ ar[i] = from[i];
446
+ }
447
+ }
448
+ return to.concat(ar || Array.prototype.slice.call(from));
449
+ }
450
+
451
+ // node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
452
+ function memoize(fn, options) {
453
+ var cache = options && options.cache ? options.cache : cacheDefault;
454
+ var serializer = options && options.serializer ? options.serializer : serializerDefault;
455
+ var strategy = options && options.strategy ? options.strategy : strategyDefault;
456
+ return strategy(fn, {
457
+ cache,
458
+ serializer
459
+ });
460
+ }
461
+ function isPrimitive(value) {
462
+ return value == null || typeof value === "number" || typeof value === "boolean";
463
+ }
464
+ function monadic(fn, cache, serializer, arg) {
465
+ var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
466
+ var computedValue = cache.get(cacheKey);
467
+ if (typeof computedValue === "undefined") {
468
+ computedValue = fn.call(this, arg);
469
+ cache.set(cacheKey, computedValue);
470
+ }
471
+ return computedValue;
472
+ }
473
+ function variadic(fn, cache, serializer) {
474
+ var args = Array.prototype.slice.call(arguments, 3);
475
+ var cacheKey = serializer(args);
476
+ var computedValue = cache.get(cacheKey);
477
+ if (typeof computedValue === "undefined") {
478
+ computedValue = fn.apply(this, args);
479
+ cache.set(cacheKey, computedValue);
480
+ }
481
+ return computedValue;
482
+ }
483
+ function assemble(fn, context, strategy, cache, serialize) {
484
+ return strategy.bind(context, fn, cache, serialize);
485
+ }
486
+ function strategyDefault(fn, options) {
487
+ var strategy = fn.length === 1 ? monadic : variadic;
488
+ return assemble(fn, this, strategy, options.cache.create(), options.serializer);
489
+ }
490
+ function strategyVariadic(fn, options) {
491
+ return assemble(fn, this, variadic, options.cache.create(), options.serializer);
492
+ }
493
+ function strategyMonadic(fn, options) {
494
+ return assemble(fn, this, monadic, options.cache.create(), options.serializer);
495
+ }
496
+ var serializerDefault = function() {
497
+ return JSON.stringify(arguments);
498
+ };
499
+ function ObjectWithoutPrototypeCache() {
500
+ this.cache = /* @__PURE__ */ Object.create(null);
501
+ }
502
+ ObjectWithoutPrototypeCache.prototype.get = function(key) {
503
+ return this.cache[key];
504
+ };
505
+ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
506
+ this.cache[key] = value;
507
+ };
508
+ var cacheDefault = {
509
+ create: function create() {
510
+ return new ObjectWithoutPrototypeCache();
511
+ }
512
+ };
513
+ var strategies = {
514
+ variadic: strategyVariadic,
515
+ monadic: strategyMonadic
516
+ };
517
+
518
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
443
519
  function defineProperty(target, name, _a) {
444
520
  var value = _a.value;
445
521
  Object.defineProperty(target, name, {
@@ -457,20 +533,70 @@
457
533
  throw new Err(message);
458
534
  }
459
535
  }
536
+ var createMemoizedNumberFormat = memoize(function() {
537
+ var _a;
538
+ var args = [];
539
+ for (var _i = 0; _i < arguments.length; _i++) {
540
+ args[_i] = arguments[_i];
541
+ }
542
+ return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
543
+ }, {
544
+ strategy: strategies.variadic
545
+ });
546
+ var createMemoizedDateTimeFormat = memoize(function() {
547
+ var _a;
548
+ var args = [];
549
+ for (var _i = 0; _i < arguments.length; _i++) {
550
+ args[_i] = arguments[_i];
551
+ }
552
+ return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
553
+ }, {
554
+ strategy: strategies.variadic
555
+ });
556
+ var createMemoizedPluralRules = memoize(function() {
557
+ var _a;
558
+ var args = [];
559
+ for (var _i = 0; _i < arguments.length; _i++) {
560
+ args[_i] = arguments[_i];
561
+ }
562
+ return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
563
+ }, {
564
+ strategy: strategies.variadic
565
+ });
566
+ var createMemoizedLocale = memoize(function() {
567
+ var _a;
568
+ var args = [];
569
+ for (var _i = 0; _i < arguments.length; _i++) {
570
+ args[_i] = arguments[_i];
571
+ }
572
+ return new ((_a = Intl.Locale).bind.apply(_a, __spreadArray([void 0], args, false)))();
573
+ }, {
574
+ strategy: strategies.variadic
575
+ });
576
+ var createMemoizedListFormat = memoize(function() {
577
+ var _a;
578
+ var args = [];
579
+ for (var _i = 0; _i < arguments.length; _i++) {
580
+ args[_i] = arguments[_i];
581
+ }
582
+ return new ((_a = Intl.ListFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
583
+ }, {
584
+ strategy: strategies.variadic
585
+ });
460
586
 
461
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
587
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
462
588
  var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
463
589
 
464
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
590
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
465
591
  var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
466
592
  var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
467
593
 
468
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
594
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
469
595
  function CanonicalizeLocaleList2(locales) {
470
596
  return Intl.getCanonicalLocales(locales);
471
597
  }
472
598
 
473
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
599
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
474
600
  var data = {
475
601
  supplemental: {
476
602
  languageMatching: {
@@ -3092,7 +3218,7 @@
3092
3218
  }
3093
3219
  };
3094
3220
 
3095
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
3221
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
3096
3222
  var regions = {
3097
3223
  "001": [
3098
3224
  "001",
@@ -4427,7 +4553,7 @@
4427
4553
  ]
4428
4554
  };
4429
4555
 
4430
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4556
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4431
4557
  var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
4432
4558
  function invariant2(condition, message, Err) {
4433
4559
  if (Err === void 0) {
@@ -4581,7 +4707,7 @@
4581
4707
  return result;
4582
4708
  }
4583
4709
 
4584
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4710
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4585
4711
  function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4586
4712
  var foundLocale;
4587
4713
  var extension;
@@ -4606,7 +4732,7 @@
4606
4732
  };
4607
4733
  }
4608
4734
 
4609
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4735
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4610
4736
  function BestAvailableLocale(availableLocales, locale) {
4611
4737
  var candidate = locale;
4612
4738
  while (true) {
@@ -4624,7 +4750,7 @@
4624
4750
  }
4625
4751
  }
4626
4752
 
4627
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4753
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4628
4754
  function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4629
4755
  var result = { locale: "" };
4630
4756
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4643,7 +4769,7 @@
4643
4769
  return result;
4644
4770
  }
4645
4771
 
4646
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4772
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4647
4773
  function UnicodeExtensionValue(extension, key) {
4648
4774
  invariant2(key.length === 2, "key must have 2 elements");
4649
4775
  var size = extension.length;
@@ -4682,7 +4808,7 @@
4682
4808
  return void 0;
4683
4809
  }
4684
4810
 
4685
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4811
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4686
4812
  function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
4687
4813
  var matcher = options.localeMatcher;
4688
4814
  var r;
@@ -4746,7 +4872,7 @@
4746
4872
  return result;
4747
4873
  }
4748
4874
 
4749
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4875
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4750
4876
  function LookupSupportedLocales(availableLocales, requestedLocales) {
4751
4877
  var subset = [];
4752
4878
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4760,7 +4886,7 @@
4760
4886
  return subset;
4761
4887
  }
4762
4888
 
4763
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4889
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4764
4890
  function match(requestedLocales, availableLocales, defaultLocale, opts) {
4765
4891
  return ResolveLocale(availableLocales, CanonicalizeLocaleList2(requestedLocales), {
4766
4892
  localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
@@ -4769,7 +4895,7 @@
4769
4895
  }).locale;
4770
4896
  }
4771
4897
 
4772
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/PartitionPattern.js
4898
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/PartitionPattern.js
4773
4899
  function PartitionPattern(pattern) {
4774
4900
  var result = [];
4775
4901
  var beginIndex = pattern.indexOf("{");
@@ -4801,7 +4927,7 @@
4801
4927
  return result;
4802
4928
  }
4803
4929
 
4804
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4930
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4805
4931
  function SupportedLocales(availableLocales, requestedLocales, options) {
4806
4932
  var matcher = "best fit";
4807
4933
  if (options !== void 0) {
@@ -4814,7 +4940,7 @@
4814
4940
  return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
4815
4941
  }
4816
4942
 
4817
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4943
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4818
4944
  var MissingLocaleDataError = (
4819
4945
  /** @class */
4820
4946
  function(_super) {
@@ -4828,7 +4954,7 @@
4828
4954
  }(Error)
4829
4955
  );
4830
4956
 
4831
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4957
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4832
4958
  var RangePatternType;
4833
4959
  (function(RangePatternType2) {
4834
4960
  RangePatternType2["startRange"] = "startRange";
@@ -4836,55 +4962,33 @@
4836
4962
  RangePatternType2["endRange"] = "endRange";
4837
4963
  })(RangePatternType || (RangePatternType = {}));
4838
4964
 
4839
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/utils.js
4840
- var DATE_TIME_PROPS = [
4841
- "weekday",
4842
- "era",
4843
- "year",
4844
- "month",
4845
- "day",
4846
- "dayPeriod",
4847
- "hour",
4848
- "minute",
4849
- "second",
4850
- "fractionalSecondDigits",
4851
- "timeZoneName"
4852
- ];
4853
- var removalPenalty = 120;
4854
- var additionPenalty = 20;
4855
- var differentNumericTypePenalty = 15;
4856
- var longLessPenalty = 8;
4857
- var longMorePenalty = 6;
4858
- var shortLessPenalty = 6;
4859
- var shortMorePenalty = 3;
4860
- var offsetPenalty = 1;
4861
-
4862
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToLocalTime.js
4965
+ // packages/intl-datetimeformat/src/abstract/ToLocalTime.ts
4863
4966
  function getApplicableZoneData(t, timeZone, tzData) {
4864
- var _a;
4865
- var zoneData = tzData[timeZone];
4967
+ const zoneData = tzData[timeZone];
4866
4968
  if (!zoneData) {
4867
4969
  return [0, false];
4868
4970
  }
4869
- var i = 0;
4870
- var offset = 0;
4871
- var dst = false;
4971
+ let i = 0;
4972
+ let offset = 0;
4973
+ let dst = false;
4872
4974
  for (; i <= zoneData.length; i++) {
4873
4975
  if (i === zoneData.length || zoneData[i][0] * 1e3 > t) {
4874
4976
  ;
4875
- _a = zoneData[i - 1], offset = _a[2], dst = _a[3];
4977
+ [, , offset, dst] = zoneData[i - 1];
4876
4978
  break;
4877
4979
  }
4878
4980
  }
4879
4981
  return [offset * 1e3, dst];
4880
4982
  }
4881
- function ToLocalTime(t, calendar, timeZone, _a) {
4882
- var tzData = _a.tzData;
4983
+ function ToLocalTime(t, calendar, timeZone, { tzData }) {
4883
4984
  invariant(Type(t) === "Number", "invalid time");
4884
- invariant(calendar === "gregory", "We only support Gregory calendar right now");
4885
- var _b = getApplicableZoneData(t, timeZone, tzData), timeZoneOffset = _b[0], inDST = _b[1];
4886
- var tz = t + timeZoneOffset;
4887
- var year = YearFromTime(tz);
4985
+ invariant(
4986
+ calendar === "gregory",
4987
+ "We only support Gregory calendar right now"
4988
+ );
4989
+ const [timeZoneOffset, inDST] = getApplicableZoneData(t, timeZone, tzData);
4990
+ const tz = t + timeZoneOffset;
4991
+ const year = YearFromTime(tz);
4888
4992
  return {
4889
4993
  weekday: WeekDay(tz),
4890
4994
  era: year < 0 ? "BC" : "AD",
@@ -4903,20 +5007,43 @@
4903
5007
  };
4904
5008
  }
4905
5009
 
4906
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimePattern.js
5010
+ // packages/intl-datetimeformat/src/abstract/utils.ts
5011
+ var DATE_TIME_PROPS = [
5012
+ "weekday",
5013
+ "era",
5014
+ "year",
5015
+ "month",
5016
+ "day",
5017
+ "dayPeriod",
5018
+ "hour",
5019
+ "minute",
5020
+ "second",
5021
+ "fractionalSecondDigits",
5022
+ "timeZoneName"
5023
+ ];
5024
+ var removalPenalty = 120;
5025
+ var additionPenalty = 20;
5026
+ var differentNumericTypePenalty = 15;
5027
+ var longLessPenalty = 8;
5028
+ var longMorePenalty = 6;
5029
+ var shortLessPenalty = 6;
5030
+ var shortMorePenalty = 3;
5031
+ var offsetPenalty = 1;
5032
+
5033
+ // packages/intl-datetimeformat/src/abstract/FormatDateTimePattern.ts
4907
5034
  function pad(n) {
4908
5035
  if (n < 10) {
4909
- return "0".concat(n);
5036
+ return `0${n}`;
4910
5037
  }
4911
5038
  return String(n);
4912
5039
  }
4913
5040
  function offsetToGmtString(gmtFormat, hourFormat, offsetInMs, style) {
4914
- var offsetInMinutes = Math.floor(offsetInMs / 6e4);
4915
- var mins = Math.abs(offsetInMinutes) % 60;
4916
- var hours = Math.floor(Math.abs(offsetInMinutes) / 60);
4917
- var _a = hourFormat.split(";"), positivePattern = _a[0], negativePattern = _a[1];
4918
- var offsetStr = "";
4919
- var pattern = offsetInMs < 0 ? negativePattern : positivePattern;
5041
+ const offsetInMinutes = Math.floor(offsetInMs / 6e4);
5042
+ const mins = Math.abs(offsetInMinutes) % 60;
5043
+ const hours = Math.floor(Math.abs(offsetInMinutes) / 60);
5044
+ const [positivePattern, negativePattern] = hourFormat.split(";");
5045
+ let offsetStr = "";
5046
+ let pattern = offsetInMs < 0 ? negativePattern : positivePattern;
4920
5047
  if (style === "long") {
4921
5048
  offsetStr = pattern.replace("HH", pad(hours)).replace("H", String(hours)).replace("mm", pad(mins)).replace("m", String(mins));
4922
5049
  } else if (mins || hours) {
@@ -4927,77 +5054,87 @@
4927
5054
  }
4928
5055
  return gmtFormat.replace("{0}", offsetStr);
4929
5056
  }
4930
- function FormatDateTimePattern(dtf, patternParts, x, _a) {
4931
- var getInternalSlots2 = _a.getInternalSlots, localeData = _a.localeData, getDefaultTimeZone = _a.getDefaultTimeZone, tzData = _a.tzData;
5057
+ function FormatDateTimePattern(dtf, patternParts, x, {
5058
+ getInternalSlots: getInternalSlots2,
5059
+ localeData,
5060
+ getDefaultTimeZone,
5061
+ tzData
5062
+ }) {
4932
5063
  x = TimeClip(x);
4933
- var internalSlots = getInternalSlots2(dtf);
4934
- var dataLocale = internalSlots.dataLocale;
4935
- var dataLocaleData = localeData[dataLocale];
4936
- var locale = internalSlots.locale;
4937
- var nfOptions = /* @__PURE__ */ Object.create(null);
5064
+ const internalSlots = getInternalSlots2(dtf);
5065
+ const dataLocale = internalSlots.dataLocale;
5066
+ const dataLocaleData = localeData[dataLocale];
5067
+ const locale = internalSlots.locale;
5068
+ const nfOptions = /* @__PURE__ */ Object.create(null);
4938
5069
  nfOptions.useGrouping = false;
4939
- var nf = new Intl.NumberFormat(locale, nfOptions);
4940
- var nf2Options = /* @__PURE__ */ Object.create(null);
5070
+ const nf = createMemoizedNumberFormat(locale, nfOptions);
5071
+ const nf2Options = /* @__PURE__ */ Object.create(null);
4941
5072
  nf2Options.minimumIntegerDigits = 2;
4942
5073
  nf2Options.useGrouping = false;
4943
- var nf2 = new Intl.NumberFormat(locale, nf2Options);
4944
- var fractionalSecondDigits = internalSlots.fractionalSecondDigits;
4945
- var nf3;
5074
+ const nf2 = createMemoizedNumberFormat(locale, nf2Options);
5075
+ const fractionalSecondDigits = internalSlots.fractionalSecondDigits;
5076
+ let nf3;
4946
5077
  if (fractionalSecondDigits !== void 0) {
4947
- var nf3Options = /* @__PURE__ */ Object.create(null);
5078
+ const nf3Options = /* @__PURE__ */ Object.create(null);
4948
5079
  nf3Options.minimumIntegerDigits = fractionalSecondDigits;
4949
5080
  nf3Options.useGrouping = false;
4950
- nf3 = new Intl.NumberFormat(locale, nf3Options);
5081
+ nf3 = createMemoizedNumberFormat(locale, nf3Options);
4951
5082
  }
4952
- var tm = ToLocalTime(
5083
+ const tm = ToLocalTime(
4953
5084
  x,
4954
5085
  // @ts-ignore
4955
5086
  internalSlots.calendar,
4956
5087
  internalSlots.timeZone,
4957
5088
  { tzData }
4958
5089
  );
4959
- var result = [];
4960
- for (var _i = 0, patternParts_1 = patternParts; _i < patternParts_1.length; _i++) {
4961
- var patternPart = patternParts_1[_i];
4962
- var p = patternPart.type;
5090
+ const result = [];
5091
+ for (const patternPart of patternParts) {
5092
+ const p = patternPart.type;
4963
5093
  if (p === "literal") {
4964
5094
  result.push({
4965
5095
  type: "literal",
4966
5096
  value: patternPart.value
4967
5097
  });
4968
5098
  } else if (p === "fractionalSecondDigits") {
4969
- var v = Math.floor(tm.millisecond * Math.pow(10, (fractionalSecondDigits || 0) - 3));
5099
+ const v = Math.floor(
5100
+ tm.millisecond * __pow(10, (fractionalSecondDigits || 0) - 3)
5101
+ );
4970
5102
  result.push({
4971
5103
  type: "fractionalSecond",
4972
5104
  value: nf3.format(v)
4973
5105
  });
4974
5106
  } else if (p === "dayPeriod") {
4975
- var f = internalSlots.dayPeriod;
4976
- var fv = tm[f];
5107
+ const f = internalSlots.dayPeriod;
5108
+ const fv = tm[f];
4977
5109
  result.push({ type: p, value: fv });
4978
5110
  } else if (p === "timeZoneName") {
4979
- var f = internalSlots.timeZoneName;
4980
- var fv = void 0;
4981
- var timeZoneName = dataLocaleData.timeZoneName, gmtFormat = dataLocaleData.gmtFormat, hourFormat = dataLocaleData.hourFormat;
4982
- var timeZone = internalSlots.timeZone || getDefaultTimeZone();
4983
- var timeZoneData = timeZoneName[timeZone];
5111
+ const f = internalSlots.timeZoneName;
5112
+ let fv;
5113
+ const { timeZoneName, gmtFormat, hourFormat } = dataLocaleData;
5114
+ const timeZone = internalSlots.timeZone || getDefaultTimeZone();
5115
+ const timeZoneData = timeZoneName[timeZone];
4984
5116
  if (timeZoneData && timeZoneData[f]) {
4985
5117
  fv = timeZoneData[f][+tm.inDST];
4986
5118
  } else {
4987
- fv = offsetToGmtString(gmtFormat, hourFormat, tm.timeZoneOffset, f);
5119
+ fv = offsetToGmtString(
5120
+ gmtFormat,
5121
+ hourFormat,
5122
+ tm.timeZoneOffset,
5123
+ f
5124
+ );
4988
5125
  }
4989
5126
  result.push({ type: p, value: fv });
4990
5127
  } else if (DATE_TIME_PROPS.indexOf(p) > -1) {
4991
- var fv = "";
4992
- var f = internalSlots[p];
4993
- var v = tm[p];
5128
+ let fv = "";
5129
+ const f = internalSlots[p];
5130
+ let v = tm[p];
4994
5131
  if (p === "year" && v <= 0) {
4995
5132
  v = 1 - v;
4996
5133
  }
4997
5134
  if (p === "month") {
4998
5135
  v++;
4999
5136
  }
5000
- var hourCycle = internalSlots.hourCycle;
5137
+ const hourCycle = internalSlots.hourCycle;
5001
5138
  if (p === "hour" && (hourCycle === "h11" || hourCycle === "h12")) {
5002
5139
  v = v % 12;
5003
5140
  if (v === 0 && hourCycle === "h12") {
@@ -5030,8 +5167,8 @@
5030
5167
  value: fv
5031
5168
  });
5032
5169
  } else if (p === "ampm") {
5033
- var v = tm.hour;
5034
- var fv = void 0;
5170
+ const v = tm.hour;
5171
+ let fv;
5035
5172
  if (v > 11) {
5036
5173
  fv = dataLocaleData.pm;
5037
5174
  } else {
@@ -5042,16 +5179,16 @@
5042
5179
  value: fv
5043
5180
  });
5044
5181
  } else if (p === "relatedYear") {
5045
- var v = tm.relatedYear;
5046
- var fv = nf.format(v);
5182
+ const v = tm.relatedYear;
5183
+ const fv = nf.format(v);
5047
5184
  result.push({
5048
5185
  // @ts-ignore TODO: Fix TS type
5049
5186
  type: "relatedYear",
5050
5187
  value: fv
5051
5188
  });
5052
5189
  } else if (p === "yearName") {
5053
- var v = tm.yearName;
5054
- var fv = nf.format(v);
5190
+ const v = tm.yearName;
5191
+ const fv = nf.format(v);
5055
5192
  result.push({
5056
5193
  // @ts-ignore TODO: Fix TS type
5057
5194
  type: "yearName",
@@ -5062,30 +5199,34 @@
5062
5199
  return result;
5063
5200
  }
5064
5201
 
5065
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimePattern.js
5202
+ // packages/intl-datetimeformat/src/abstract/PartitionDateTimePattern.ts
5066
5203
  function PartitionDateTimePattern(dtf, x, implDetails) {
5067
5204
  x = TimeClip(x);
5068
5205
  if (isNaN(x)) {
5069
5206
  throw new RangeError("invalid time");
5070
5207
  }
5071
- var getInternalSlots2 = implDetails.getInternalSlots;
5072
- var internalSlots = getInternalSlots2(dtf);
5073
- var pattern = internalSlots.pattern;
5074
- return FormatDateTimePattern(dtf, PartitionPattern(pattern), x, implDetails);
5208
+ const { getInternalSlots: getInternalSlots2 } = implDetails;
5209
+ const internalSlots = getInternalSlots2(dtf);
5210
+ const { pattern } = internalSlots;
5211
+ return FormatDateTimePattern(
5212
+ dtf,
5213
+ PartitionPattern(pattern),
5214
+ x,
5215
+ implDetails
5216
+ );
5075
5217
  }
5076
5218
 
5077
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTime.js
5219
+ // packages/intl-datetimeformat/src/abstract/FormatDateTime.ts
5078
5220
  function FormatDateTime(dtf, x, implDetails) {
5079
- var parts = PartitionDateTimePattern(dtf, x, implDetails);
5080
- var result = "";
5081
- for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5082
- var part = parts_1[_i];
5221
+ const parts = PartitionDateTimePattern(dtf, x, implDetails);
5222
+ let result = "";
5223
+ for (const part of parts) {
5083
5224
  result += part.value;
5084
5225
  }
5085
5226
  return result;
5086
5227
  }
5087
5228
 
5088
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimeRangePattern.js
5229
+ // packages/intl-datetimeformat/src/abstract/PartitionDateTimeRangePattern.ts
5089
5230
  var TABLE_2_FIELDS = [
5090
5231
  "era",
5091
5232
  "year",
@@ -5107,54 +5248,57 @@
5107
5248
  if (isNaN(y)) {
5108
5249
  throw new RangeError("Invalid end time");
5109
5250
  }
5110
- var getInternalSlots2 = implDetails.getInternalSlots, tzData = implDetails.tzData;
5111
- var internalSlots = getInternalSlots2(dtf);
5112
- var tm1 = ToLocalTime(
5251
+ const { getInternalSlots: getInternalSlots2, tzData } = implDetails;
5252
+ const internalSlots = getInternalSlots2(dtf);
5253
+ const tm1 = ToLocalTime(
5113
5254
  x,
5114
5255
  // @ts-ignore
5115
5256
  internalSlots.calendar,
5116
5257
  internalSlots.timeZone,
5117
5258
  { tzData }
5118
5259
  );
5119
- var tm2 = ToLocalTime(
5260
+ const tm2 = ToLocalTime(
5120
5261
  y,
5121
5262
  // @ts-ignore
5122
5263
  internalSlots.calendar,
5123
5264
  internalSlots.timeZone,
5124
5265
  { tzData }
5125
5266
  );
5126
- var pattern = internalSlots.pattern, rangePatterns = internalSlots.rangePatterns;
5127
- var rangePattern;
5128
- var dateFieldsPracticallyEqual = true;
5129
- var patternContainsLargerDateField = false;
5130
- for (var _i = 0, TABLE_2_FIELDS_1 = TABLE_2_FIELDS; _i < TABLE_2_FIELDS_1.length; _i++) {
5131
- var fieldName = TABLE_2_FIELDS_1[_i];
5267
+ const { pattern, rangePatterns } = internalSlots;
5268
+ let rangePattern;
5269
+ let dateFieldsPracticallyEqual = true;
5270
+ let patternContainsLargerDateField = false;
5271
+ for (const fieldName of TABLE_2_FIELDS) {
5132
5272
  if (dateFieldsPracticallyEqual && !patternContainsLargerDateField) {
5133
- var rp = fieldName in rangePatterns ? rangePatterns[fieldName] : void 0;
5273
+ let rp = fieldName in rangePatterns ? rangePatterns[fieldName] : void 0;
5134
5274
  if (rangePattern !== void 0 && rp === void 0) {
5135
5275
  patternContainsLargerDateField = true;
5136
5276
  } else {
5137
5277
  rangePattern = rp;
5138
5278
  if (fieldName === "ampm") {
5139
- var v1 = tm1.hour;
5140
- var v2 = tm2.hour;
5279
+ let v1 = tm1.hour;
5280
+ let v2 = tm2.hour;
5141
5281
  if (v1 > 11 && v2 < 11 || v1 < 11 && v2 > 11) {
5142
5282
  dateFieldsPracticallyEqual = false;
5143
5283
  }
5144
5284
  } else if (fieldName === "dayPeriod") {
5145
5285
  } else if (fieldName === "fractionalSecondDigits") {
5146
- var fractionalSecondDigits = internalSlots.fractionalSecondDigits;
5286
+ let fractionalSecondDigits = internalSlots.fractionalSecondDigits;
5147
5287
  if (fractionalSecondDigits === void 0) {
5148
5288
  fractionalSecondDigits = 3;
5149
5289
  }
5150
- var v1 = Math.floor(tm1.millisecond * Math.pow(10, fractionalSecondDigits - 3));
5151
- var v2 = Math.floor(tm2.millisecond * Math.pow(10, fractionalSecondDigits - 3));
5290
+ let v1 = Math.floor(
5291
+ tm1.millisecond * __pow(10, fractionalSecondDigits - 3)
5292
+ );
5293
+ let v2 = Math.floor(
5294
+ tm2.millisecond * __pow(10, fractionalSecondDigits - 3)
5295
+ );
5152
5296
  if (!SameValue(v1, v2)) {
5153
5297
  dateFieldsPracticallyEqual = false;
5154
5298
  }
5155
5299
  } else {
5156
- var v1 = tm1[fieldName];
5157
- var v2 = tm2[fieldName];
5300
+ let v1 = tm1[fieldName];
5301
+ let v2 = tm2[fieldName];
5158
5302
  if (!SameValue(v1, v2)) {
5159
5303
  dateFieldsPracticallyEqual = false;
5160
5304
  }
@@ -5163,36 +5307,37 @@
5163
5307
  }
5164
5308
  }
5165
5309
  if (dateFieldsPracticallyEqual) {
5166
- var result_2 = FormatDateTimePattern(dtf, PartitionPattern(pattern), x, implDetails);
5167
- for (var _a = 0, result_1 = result_2; _a < result_1.length; _a++) {
5168
- var r = result_1[_a];
5310
+ let result2 = FormatDateTimePattern(
5311
+ dtf,
5312
+ PartitionPattern(pattern),
5313
+ x,
5314
+ implDetails
5315
+ );
5316
+ for (const r of result2) {
5169
5317
  r.source = RangePatternType.shared;
5170
5318
  }
5171
- return result_2;
5319
+ return result2;
5172
5320
  }
5173
- var result = [];
5321
+ let result = [];
5174
5322
  if (rangePattern === void 0) {
5175
5323
  rangePattern = rangePatterns.default;
5176
- for (var _b = 0, _c = rangePattern.patternParts; _b < _c.length; _b++) {
5177
- var patternPart = _c[_b];
5324
+ for (const patternPart of rangePattern.patternParts) {
5178
5325
  if (patternPart.pattern === "{0}" || patternPart.pattern === "{1}") {
5179
5326
  patternPart.pattern = pattern;
5180
5327
  }
5181
5328
  }
5182
5329
  }
5183
- for (var _d = 0, _e = rangePattern.patternParts; _d < _e.length; _d++) {
5184
- var rangePatternPart = _e[_d];
5185
- var source = rangePatternPart.source, pattern_1 = rangePatternPart.pattern;
5186
- var z = void 0;
5330
+ for (const rangePatternPart of rangePattern.patternParts) {
5331
+ const { source, pattern: pattern2 } = rangePatternPart;
5332
+ let z;
5187
5333
  if (source === RangePatternType.startRange || source === RangePatternType.shared) {
5188
5334
  z = x;
5189
5335
  } else {
5190
5336
  z = y;
5191
5337
  }
5192
- var patternParts = PartitionPattern(pattern_1);
5193
- var partResult = FormatDateTimePattern(dtf, patternParts, z, implDetails);
5194
- for (var _f = 0, partResult_1 = partResult; _f < partResult_1.length; _f++) {
5195
- var r = partResult_1[_f];
5338
+ const patternParts = PartitionPattern(pattern2);
5339
+ let partResult = FormatDateTimePattern(dtf, patternParts, z, implDetails);
5340
+ for (const r of partResult) {
5196
5341
  r.source = source;
5197
5342
  }
5198
5343
  result = result.concat(partResult);
@@ -5200,23 +5345,21 @@
5200
5345
  return result;
5201
5346
  }
5202
5347
 
5203
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeRange.js
5348
+ // packages/intl-datetimeformat/src/abstract/FormatDateTimeRange.ts
5204
5349
  function FormatDateTimeRange(dtf, x, y, implDetails) {
5205
- var parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
5206
- var result = "";
5207
- for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5208
- var part = parts_1[_i];
5350
+ const parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
5351
+ let result = "";
5352
+ for (const part of parts) {
5209
5353
  result += part.value;
5210
5354
  }
5211
5355
  return result;
5212
5356
  }
5213
5357
 
5214
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeRangeToParts.js
5358
+ // packages/intl-datetimeformat/src/abstract/FormatDateTimeRangeToParts.ts
5215
5359
  function FormatDateTimeRangeToParts(dtf, x, y, implDetails) {
5216
- var parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
5217
- var result = new Array(0);
5218
- for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5219
- var part = parts_1[_i];
5360
+ const parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
5361
+ const result = new Array(0);
5362
+ for (const part of parts) {
5220
5363
  result.push({
5221
5364
  type: part.type,
5222
5365
  value: part.value,
@@ -5226,12 +5369,11 @@
5226
5369
  return result;
5227
5370
  }
5228
5371
 
5229
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeToParts.js
5372
+ // packages/intl-datetimeformat/src/abstract/FormatDateTimeToParts.ts
5230
5373
  function FormatDateTimeToParts(dtf, x, implDetails) {
5231
- var parts = PartitionDateTimePattern(dtf, x, implDetails);
5232
- var result = ArrayCreate(0);
5233
- for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5234
- var part = parts_1[_i];
5374
+ const parts = PartitionDateTimePattern(dtf, x, implDetails);
5375
+ const result = ArrayCreate(0);
5376
+ for (const part of parts) {
5235
5377
  result.push({
5236
5378
  type: part.type,
5237
5379
  value: part.value
@@ -5240,18 +5382,16 @@
5240
5382
  return result;
5241
5383
  }
5242
5384
 
5243
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BasicFormatMatcher.js
5385
+ // packages/intl-datetimeformat/src/abstract/BasicFormatMatcher.ts
5244
5386
  function BasicFormatMatcher(options, formats) {
5245
- var bestScore = -Infinity;
5246
- var bestFormat = formats[0];
5387
+ let bestScore = -Infinity;
5388
+ let bestFormat = formats[0];
5247
5389
  invariant(Array.isArray(formats), "formats should be a list of things");
5248
- for (var _i = 0, formats_1 = formats; _i < formats_1.length; _i++) {
5249
- var format = formats_1[_i];
5250
- var score = 0;
5251
- for (var _a = 0, DATE_TIME_PROPS_1 = DATE_TIME_PROPS; _a < DATE_TIME_PROPS_1.length; _a++) {
5252
- var prop = DATE_TIME_PROPS_1[_a];
5253
- var optionsProp = options[prop];
5254
- var formatProp = format[prop];
5390
+ for (const format of formats) {
5391
+ let score = 0;
5392
+ for (const prop of DATE_TIME_PROPS) {
5393
+ const optionsProp = options[prop];
5394
+ const formatProp = format[prop];
5255
5395
  if (optionsProp === void 0 && formatProp !== void 0) {
5256
5396
  score -= additionPenalty;
5257
5397
  } else if (optionsProp !== void 0 && formatProp === void 0) {
@@ -5289,15 +5429,18 @@
5289
5429
  score -= removalPenalty;
5290
5430
  }
5291
5431
  } else if (optionsProp !== formatProp) {
5292
- var values = void 0;
5432
+ let values;
5293
5433
  if (prop === "fractionalSecondDigits") {
5294
5434
  values = [1, 2, 3];
5295
5435
  } else {
5296
5436
  values = ["2-digit", "numeric", "narrow", "short", "long"];
5297
5437
  }
5298
- var optionsPropIndex = values.indexOf(optionsProp);
5299
- var formatPropIndex = values.indexOf(formatProp);
5300
- var delta = Math.max(-2, Math.min(formatPropIndex - optionsPropIndex, 2));
5438
+ const optionsPropIndex = values.indexOf(optionsProp);
5439
+ const formatPropIndex = values.indexOf(formatProp);
5440
+ const delta = Math.max(
5441
+ -2,
5442
+ Math.min(formatPropIndex - optionsPropIndex, 2)
5443
+ );
5301
5444
  if (delta === 2) {
5302
5445
  score -= longMorePenalty;
5303
5446
  } else if (delta === 1) {
@@ -5314,14 +5457,14 @@
5314
5457
  bestFormat = format;
5315
5458
  }
5316
5459
  }
5317
- return __assign({}, bestFormat);
5460
+ return __spreadValues({}, bestFormat);
5318
5461
  }
5319
5462
 
5320
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/skeleton.js
5463
+ // packages/intl-datetimeformat/src/abstract/skeleton.ts
5321
5464
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
5322
5465
  var expPatternTrimmer = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
5323
5466
  function matchSkeletonPattern(match2, result) {
5324
- var len = match2.length;
5467
+ const len = match2.length;
5325
5468
  switch (match2[0]) {
5326
5469
  case "G":
5327
5470
  result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
@@ -5396,7 +5539,9 @@
5396
5539
  case "j":
5397
5540
  case "J":
5398
5541
  case "C":
5399
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
5542
+ throw new RangeError(
5543
+ "`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead"
5544
+ );
5400
5545
  case "m":
5401
5546
  result.minute = ["numeric", "2-digit"][len - 1];
5402
5547
  return "{minute}";
@@ -5457,15 +5602,13 @@
5457
5602
  }
5458
5603
  }
5459
5604
  function processDateTimePattern(pattern, result) {
5460
- var literals = [];
5461
- var pattern12 = pattern.replace(/'{2}/g, "{apostrophe}").replace(/'(.*?)'/g, function(_, literal) {
5605
+ const literals = [];
5606
+ let pattern12 = pattern.replace(/'{2}/g, "{apostrophe}").replace(/'(.*?)'/g, (_, literal) => {
5462
5607
  literals.push(literal);
5463
- return "$$".concat(literals.length - 1, "$$");
5464
- }).replace(DATE_TIME_REGEX, function(m) {
5465
- return matchSkeletonPattern(m, result || {});
5466
- });
5608
+ return `$$${literals.length - 1}$$`;
5609
+ }).replace(DATE_TIME_REGEX, (m) => matchSkeletonPattern(m, result || {}));
5467
5610
  if (literals.length) {
5468
- pattern12 = pattern12.replace(/\$\$(\d+)\$\$/g, function(_, i) {
5611
+ pattern12 = pattern12.replace(/\$\$(\d+)\$\$/g, (_, i) => {
5469
5612
  return literals[+i];
5470
5613
  }).replace(/\{apostrophe\}/g, "'");
5471
5614
  }
@@ -5474,11 +5617,8 @@
5474
5617
  pattern12
5475
5618
  ];
5476
5619
  }
5477
- function parseDateTimeSkeleton(skeleton, rawPattern, rangePatterns, intervalFormatFallback) {
5478
- if (rawPattern === void 0) {
5479
- rawPattern = skeleton;
5480
- }
5481
- var result = {
5620
+ function parseDateTimeSkeleton(skeleton, rawPattern = skeleton, rangePatterns, intervalFormatFallback) {
5621
+ const result = {
5482
5622
  pattern: "",
5483
5623
  pattern12: "",
5484
5624
  skeleton,
@@ -5487,19 +5627,26 @@
5487
5627
  rangePatterns12: {}
5488
5628
  };
5489
5629
  if (rangePatterns) {
5490
- for (var k in rangePatterns) {
5491
- var key = skeletonTokenToTable2(k);
5492
- var rawPattern_1 = rangePatterns[k];
5493
- var intervalResult = {
5630
+ for (const k in rangePatterns) {
5631
+ const key = skeletonTokenToTable2(k);
5632
+ const rawPattern2 = rangePatterns[k];
5633
+ const intervalResult = {
5494
5634
  patternParts: []
5495
5635
  };
5496
- var _a = processDateTimePattern(rawPattern_1, intervalResult), pattern_1 = _a[0], pattern12_1 = _a[1];
5497
- result.rangePatterns[key] = __assign(__assign({}, intervalResult), { patternParts: splitRangePattern(pattern_1) });
5498
- result.rangePatterns12[key] = __assign(__assign({}, intervalResult), { patternParts: splitRangePattern(pattern12_1) });
5636
+ const [pattern2, pattern122] = processDateTimePattern(
5637
+ rawPattern2,
5638
+ intervalResult
5639
+ );
5640
+ result.rangePatterns[key] = __spreadProps(__spreadValues({}, intervalResult), {
5641
+ patternParts: splitRangePattern(pattern2)
5642
+ });
5643
+ result.rangePatterns12[key] = __spreadProps(__spreadValues({}, intervalResult), {
5644
+ patternParts: splitRangePattern(pattern122)
5645
+ });
5499
5646
  }
5500
5647
  }
5501
5648
  if (intervalFormatFallback) {
5502
- var patternParts = splitFallbackRangePattern(intervalFormatFallback);
5649
+ const patternParts = splitFallbackRangePattern(intervalFormatFallback);
5503
5650
  result.rangePatterns.default = {
5504
5651
  patternParts
5505
5652
  };
@@ -5507,17 +5654,15 @@
5507
5654
  patternParts
5508
5655
  };
5509
5656
  }
5510
- skeleton.replace(DATE_TIME_REGEX, function(m) {
5511
- return matchSkeletonPattern(m, result);
5512
- });
5513
- var _b = processDateTimePattern(rawPattern), pattern = _b[0], pattern12 = _b[1];
5657
+ skeleton.replace(DATE_TIME_REGEX, (m) => matchSkeletonPattern(m, result));
5658
+ const [pattern, pattern12] = processDateTimePattern(rawPattern);
5514
5659
  result.pattern = pattern;
5515
5660
  result.pattern12 = pattern12;
5516
5661
  return result;
5517
5662
  }
5518
5663
  function splitFallbackRangePattern(pattern) {
5519
- var parts = pattern.split(/(\{[0|1]\})/g).filter(Boolean);
5520
- return parts.map(function(pattern2) {
5664
+ const parts = pattern.split(/(\{[0|1]\})/g).filter(Boolean);
5665
+ return parts.map((pattern2) => {
5521
5666
  switch (pattern2) {
5522
5667
  case "{0}":
5523
5668
  return {
@@ -5538,10 +5683,10 @@
5538
5683
  });
5539
5684
  }
5540
5685
  function splitRangePattern(pattern) {
5541
- var PART_REGEX = /\{(.*?)\}/g;
5542
- var parts = {};
5543
- var match2;
5544
- var splitIndex = 0;
5686
+ const PART_REGEX = /\{(.*?)\}/g;
5687
+ const parts = {};
5688
+ let match2;
5689
+ let splitIndex = 0;
5545
5690
  while (match2 = PART_REGEX.exec(pattern)) {
5546
5691
  if (!(match2[0] in parts)) {
5547
5692
  parts[match2[0]] = match2.index;
@@ -5570,21 +5715,20 @@
5570
5715
  ];
5571
5716
  }
5572
5717
 
5573
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BestFitFormatMatcher.js
5718
+ // packages/intl-datetimeformat/src/abstract/BestFitFormatMatcher.ts
5574
5719
  function isNumericType(t) {
5575
5720
  return t === "numeric" || t === "2-digit";
5576
5721
  }
5577
5722
  function bestFitFormatMatcherScore(options, format) {
5578
- var score = 0;
5723
+ let score = 0;
5579
5724
  if (options.hour12 && !format.hour12) {
5580
5725
  score -= removalPenalty;
5581
5726
  } else if (!options.hour12 && format.hour12) {
5582
5727
  score -= additionPenalty;
5583
5728
  }
5584
- for (var _i = 0, DATE_TIME_PROPS_1 = DATE_TIME_PROPS; _i < DATE_TIME_PROPS_1.length; _i++) {
5585
- var prop = DATE_TIME_PROPS_1[_i];
5586
- var optionsProp = options[prop];
5587
- var formatProp = format[prop];
5729
+ for (const prop of DATE_TIME_PROPS) {
5730
+ const optionsProp = options[prop];
5731
+ const formatProp = format[prop];
5588
5732
  if (optionsProp === void 0 && formatProp !== void 0) {
5589
5733
  score -= additionPenalty;
5590
5734
  } else if (optionsProp !== void 0 && formatProp === void 0) {
@@ -5593,10 +5737,13 @@
5593
5737
  if (isNumericType(optionsProp) !== isNumericType(formatProp)) {
5594
5738
  score -= differentNumericTypePenalty;
5595
5739
  } else {
5596
- var values = ["2-digit", "numeric", "narrow", "short", "long"];
5597
- var optionsPropIndex = values.indexOf(optionsProp);
5598
- var formatPropIndex = values.indexOf(formatProp);
5599
- var delta = Math.max(-2, Math.min(formatPropIndex - optionsPropIndex, 2));
5740
+ const values = ["2-digit", "numeric", "narrow", "short", "long"];
5741
+ const optionsPropIndex = values.indexOf(optionsProp);
5742
+ const formatPropIndex = values.indexOf(formatProp);
5743
+ const delta = Math.max(
5744
+ -2,
5745
+ Math.min(formatPropIndex - optionsPropIndex, 2)
5746
+ );
5600
5747
  if (delta === 2) {
5601
5748
  score -= longMorePenalty;
5602
5749
  } else if (delta === 1) {
@@ -5612,24 +5759,23 @@
5612
5759
  return score;
5613
5760
  }
5614
5761
  function BestFitFormatMatcher(options, formats) {
5615
- var bestScore = -Infinity;
5616
- var bestFormat = formats[0];
5762
+ let bestScore = -Infinity;
5763
+ let bestFormat = formats[0];
5617
5764
  invariant(Array.isArray(formats), "formats should be a list of things");
5618
- for (var _i = 0, formats_1 = formats; _i < formats_1.length; _i++) {
5619
- var format = formats_1[_i];
5620
- var score = bestFitFormatMatcherScore(options, format);
5765
+ for (const format of formats) {
5766
+ const score = bestFitFormatMatcherScore(options, format);
5621
5767
  if (score > bestScore) {
5622
5768
  bestScore = score;
5623
5769
  bestFormat = format;
5624
5770
  }
5625
5771
  }
5626
- var skeletonFormat = __assign({}, bestFormat);
5627
- var patternFormat = { rawPattern: bestFormat.rawPattern };
5772
+ const skeletonFormat = __spreadValues({}, bestFormat);
5773
+ const patternFormat = { rawPattern: bestFormat.rawPattern };
5628
5774
  processDateTimePattern(bestFormat.rawPattern, patternFormat);
5629
- for (var prop in skeletonFormat) {
5630
- var skeletonValue = skeletonFormat[prop];
5631
- var patternValue = patternFormat[prop];
5632
- var requestedValue = options[prop];
5775
+ for (const prop in skeletonFormat) {
5776
+ const skeletonValue = skeletonFormat[prop];
5777
+ const patternValue = patternFormat[prop];
5778
+ const requestedValue = options[prop];
5633
5779
  if (prop === "minute" || prop === "second") {
5634
5780
  continue;
5635
5781
  }
@@ -5652,34 +5798,40 @@
5652
5798
  return patternFormat;
5653
5799
  }
5654
5800
 
5655
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/DateTimeStyleFormat.js
5801
+ // packages/intl-datetimeformat/src/abstract/DateTimeStyleFormat.ts
5656
5802
  function DateTimeStyleFormat(dateStyle, timeStyle, dataLocaleData) {
5657
- var dateFormat, timeFormat;
5803
+ let dateFormat, timeFormat;
5658
5804
  if (timeStyle !== void 0) {
5659
- invariant(timeStyle === "full" || timeStyle === "long" || timeStyle === "medium" || timeStyle === "short", "invalid timeStyle");
5805
+ invariant(
5806
+ timeStyle === "full" || timeStyle === "long" || timeStyle === "medium" || timeStyle === "short",
5807
+ "invalid timeStyle"
5808
+ );
5660
5809
  timeFormat = dataLocaleData.timeFormat[timeStyle];
5661
5810
  }
5662
5811
  if (dateStyle !== void 0) {
5663
- invariant(dateStyle === "full" || dateStyle === "long" || dateStyle === "medium" || dateStyle === "short", "invalid dateStyle");
5812
+ invariant(
5813
+ dateStyle === "full" || dateStyle === "long" || dateStyle === "medium" || dateStyle === "short",
5814
+ "invalid dateStyle"
5815
+ );
5664
5816
  dateFormat = dataLocaleData.dateFormat[dateStyle];
5665
5817
  }
5666
5818
  if (dateStyle !== void 0 && timeStyle !== void 0) {
5667
- var format = {};
5668
- for (var field in dateFormat) {
5819
+ const format = {};
5820
+ for (const field in dateFormat) {
5669
5821
  if (field !== "pattern") {
5670
5822
  format[field] = dateFormat[field];
5671
5823
  }
5672
5824
  }
5673
- for (var field in timeFormat) {
5825
+ for (const field in timeFormat) {
5674
5826
  if (field !== "pattern" && field !== "pattern12") {
5675
5827
  format[field] = timeFormat[field];
5676
5828
  }
5677
5829
  }
5678
- var connector = dataLocaleData.dateTimeFormat[dateStyle];
5679
- var pattern = connector.replace("{0}", timeFormat.pattern).replace("{1}", dateFormat.pattern);
5830
+ const connector = dataLocaleData.dateTimeFormat[dateStyle];
5831
+ const pattern = connector.replace("{0}", timeFormat.pattern).replace("{1}", dateFormat.pattern);
5680
5832
  format.pattern = pattern;
5681
5833
  if ("pattern12" in timeFormat) {
5682
- var pattern12 = connector.replace("{0}", timeFormat.pattern12).replace("{1}", dateFormat.pattern);
5834
+ const pattern12 = connector.replace("{0}", timeFormat.pattern12).replace("{1}", dateFormat.pattern);
5683
5835
  format.pattern12 = pattern12;
5684
5836
  }
5685
5837
  return format;
@@ -5691,7 +5843,7 @@
5691
5843
  return dateFormat;
5692
5844
  }
5693
5845
 
5694
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToDateTimeOptions.js
5846
+ // packages/intl-datetimeformat/src/abstract/ToDateTimeOptions.ts
5695
5847
  function ToDateTimeOptions(options, required, defaults) {
5696
5848
  if (options === void 0) {
5697
5849
  options = null;
@@ -5699,26 +5851,24 @@
5699
5851
  options = ToObject(options);
5700
5852
  }
5701
5853
  options = Object.create(options);
5702
- var needDefaults = true;
5854
+ let needDefaults = true;
5703
5855
  if (required === "date" || required === "any") {
5704
- for (var _i = 0, _a = ["weekday", "year", "month", "day"]; _i < _a.length; _i++) {
5705
- var prop = _a[_i];
5706
- var value = options[prop];
5856
+ for (const prop of ["weekday", "year", "month", "day"]) {
5857
+ const value = options[prop];
5707
5858
  if (value !== void 0) {
5708
5859
  needDefaults = false;
5709
5860
  }
5710
5861
  }
5711
5862
  }
5712
5863
  if (required === "time" || required === "any") {
5713
- for (var _b = 0, _c = [
5864
+ for (const prop of [
5714
5865
  "dayPeriod",
5715
5866
  "hour",
5716
5867
  "minute",
5717
5868
  "second",
5718
5869
  "fractionalSecondDigits"
5719
- ]; _b < _c.length; _b++) {
5720
- var prop = _c[_b];
5721
- var value = options[prop];
5870
+ ]) {
5871
+ const value = options[prop];
5722
5872
  if (value !== void 0) {
5723
5873
  needDefaults = false;
5724
5874
  }
@@ -5728,31 +5878,32 @@
5728
5878
  needDefaults = false;
5729
5879
  }
5730
5880
  if (required === "date" && options.timeStyle) {
5731
- throw new TypeError("Intl.DateTimeFormat date was required but timeStyle was included");
5881
+ throw new TypeError(
5882
+ "Intl.DateTimeFormat date was required but timeStyle was included"
5883
+ );
5732
5884
  }
5733
5885
  if (required === "time" && options.dateStyle) {
5734
- throw new TypeError("Intl.DateTimeFormat time was required but dateStyle was included");
5886
+ throw new TypeError(
5887
+ "Intl.DateTimeFormat time was required but dateStyle was included"
5888
+ );
5735
5889
  }
5736
5890
  if (needDefaults && (defaults === "date" || defaults === "all")) {
5737
- for (var _d = 0, _e = ["year", "month", "day"]; _d < _e.length; _d++) {
5738
- var prop = _e[_d];
5891
+ for (const prop of ["year", "month", "day"]) {
5739
5892
  options[prop] = "numeric";
5740
5893
  }
5741
5894
  }
5742
5895
  if (needDefaults && (defaults === "time" || defaults === "all")) {
5743
- for (var _f = 0, _g = ["hour", "minute", "second"]; _f < _g.length; _f++) {
5744
- var prop = _g[_f];
5896
+ for (const prop of ["hour", "minute", "second"]) {
5745
5897
  options[prop] = "numeric";
5746
5898
  }
5747
5899
  }
5748
5900
  return options;
5749
5901
  }
5750
5902
 
5751
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/InitializeDateTimeFormat.js
5903
+ // packages/intl-datetimeformat/src/abstract/InitializeDateTimeFormat.ts
5752
5904
  function isTimeRelated(opt) {
5753
- for (var _i = 0, _a = ["hour", "minute", "second"]; _i < _a.length; _i++) {
5754
- var prop = _a[_i];
5755
- var value = opt[prop];
5905
+ for (const prop of ["hour", "minute", "second"]) {
5906
+ const value = opt[prop];
5756
5907
  if (value !== void 0) {
5757
5908
  return true;
5758
5909
  }
@@ -5782,39 +5933,72 @@
5782
5933
  return hc;
5783
5934
  }
5784
5935
  var TYPE_REGEX = /^[a-z0-9]{3,8}$/i;
5785
- function InitializeDateTimeFormat(dtf, locales, opts, _a) {
5786
- var getInternalSlots2 = _a.getInternalSlots, availableLocales = _a.availableLocales, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getDefaultTimeZone = _a.getDefaultTimeZone, relevantExtensionKeys = _a.relevantExtensionKeys, tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
5787
- var requestedLocales = CanonicalizeLocaleList(locales);
5788
- var options = ToDateTimeOptions(opts, "any", "date");
5789
- var opt = /* @__PURE__ */ Object.create(null);
5790
- var matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
5936
+ function InitializeDateTimeFormat(dtf, locales, opts, {
5937
+ getInternalSlots: getInternalSlots2,
5938
+ availableLocales,
5939
+ localeData,
5940
+ getDefaultLocale,
5941
+ getDefaultTimeZone,
5942
+ relevantExtensionKeys,
5943
+ tzData,
5944
+ uppercaseLinks
5945
+ }) {
5946
+ const requestedLocales = CanonicalizeLocaleList(locales);
5947
+ const options = ToDateTimeOptions(opts, "any", "date");
5948
+ let opt = /* @__PURE__ */ Object.create(null);
5949
+ let matcher = GetOption(
5950
+ options,
5951
+ "localeMatcher",
5952
+ "string",
5953
+ ["lookup", "best fit"],
5954
+ "best fit"
5955
+ );
5791
5956
  opt.localeMatcher = matcher;
5792
- var calendar = GetOption(options, "calendar", "string", void 0, void 0);
5957
+ let calendar = GetOption(options, "calendar", "string", void 0, void 0);
5793
5958
  if (calendar !== void 0 && !TYPE_REGEX.test(calendar)) {
5794
5959
  throw new RangeError("Malformed calendar");
5795
5960
  }
5796
- var internalSlots = getInternalSlots2(dtf);
5961
+ const internalSlots = getInternalSlots2(dtf);
5797
5962
  opt.ca = calendar;
5798
- var numberingSystem = GetOption(options, "numberingSystem", "string", void 0, void 0);
5963
+ const numberingSystem = GetOption(
5964
+ options,
5965
+ "numberingSystem",
5966
+ "string",
5967
+ void 0,
5968
+ void 0
5969
+ );
5799
5970
  if (numberingSystem !== void 0 && !TYPE_REGEX.test(numberingSystem)) {
5800
5971
  throw new RangeError("Malformed numbering system");
5801
5972
  }
5802
5973
  opt.nu = numberingSystem;
5803
- var hour12 = GetOption(options, "hour12", "boolean", void 0, void 0);
5804
- var hourCycle = GetOption(options, "hourCycle", "string", ["h11", "h12", "h23", "h24"], void 0);
5974
+ const hour12 = GetOption(options, "hour12", "boolean", void 0, void 0);
5975
+ let hourCycle = GetOption(
5976
+ options,
5977
+ "hourCycle",
5978
+ "string",
5979
+ ["h11", "h12", "h23", "h24"],
5980
+ void 0
5981
+ );
5805
5982
  if (hour12 !== void 0) {
5806
5983
  hourCycle = null;
5807
5984
  }
5808
5985
  opt.hc = hourCycle;
5809
- var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
5986
+ const r = ResolveLocale(
5987
+ availableLocales,
5988
+ requestedLocales,
5989
+ opt,
5990
+ relevantExtensionKeys,
5991
+ localeData,
5992
+ getDefaultLocale
5993
+ );
5810
5994
  internalSlots.locale = r.locale;
5811
5995
  calendar = r.ca;
5812
5996
  internalSlots.calendar = calendar;
5813
5997
  internalSlots.hourCycle = r.hc;
5814
5998
  internalSlots.numberingSystem = r.nu;
5815
- var dataLocale = r.dataLocale;
5999
+ const { dataLocale } = r;
5816
6000
  internalSlots.dataLocale = dataLocale;
5817
- var timeZone = options.timeZone;
6001
+ let { timeZone } = options;
5818
6002
  if (timeZone !== void 0) {
5819
6003
  timeZone = String(timeZone);
5820
6004
  if (!IsValidTimeZoneName(timeZone, {
@@ -5832,66 +6016,157 @@
5832
6016
  }
5833
6017
  internalSlots.timeZone = timeZone;
5834
6018
  opt = /* @__PURE__ */ Object.create(null);
5835
- opt.weekday = GetOption(options, "weekday", "string", ["narrow", "short", "long"], void 0);
5836
- opt.era = GetOption(options, "era", "string", ["narrow", "short", "long"], void 0);
5837
- opt.year = GetOption(options, "year", "string", ["2-digit", "numeric"], void 0);
5838
- opt.month = GetOption(options, "month", "string", ["2-digit", "numeric", "narrow", "short", "long"], void 0);
5839
- opt.day = GetOption(options, "day", "string", ["2-digit", "numeric"], void 0);
5840
- opt.hour = GetOption(options, "hour", "string", ["2-digit", "numeric"], void 0);
5841
- opt.minute = GetOption(options, "minute", "string", ["2-digit", "numeric"], void 0);
5842
- opt.second = GetOption(options, "second", "string", ["2-digit", "numeric"], void 0);
5843
- opt.timeZoneName = GetOption(options, "timeZoneName", "string", [
5844
- "long",
5845
- "short",
5846
- "longOffset",
5847
- "shortOffset",
5848
- "longGeneric",
5849
- "shortGeneric"
5850
- ], void 0);
5851
- opt.fractionalSecondDigits = GetNumberOption(options, "fractionalSecondDigits", 1, 3, void 0);
5852
- var dataLocaleData = localeData[dataLocale];
5853
- invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
5854
- var formats = dataLocaleData.formats[calendar];
6019
+ opt.weekday = GetOption(
6020
+ options,
6021
+ "weekday",
6022
+ "string",
6023
+ ["narrow", "short", "long"],
6024
+ void 0
6025
+ );
6026
+ opt.era = GetOption(
6027
+ options,
6028
+ "era",
6029
+ "string",
6030
+ ["narrow", "short", "long"],
6031
+ void 0
6032
+ );
6033
+ opt.year = GetOption(
6034
+ options,
6035
+ "year",
6036
+ "string",
6037
+ ["2-digit", "numeric"],
6038
+ void 0
6039
+ );
6040
+ opt.month = GetOption(
6041
+ options,
6042
+ "month",
6043
+ "string",
6044
+ ["2-digit", "numeric", "narrow", "short", "long"],
6045
+ void 0
6046
+ );
6047
+ opt.day = GetOption(
6048
+ options,
6049
+ "day",
6050
+ "string",
6051
+ ["2-digit", "numeric"],
6052
+ void 0
6053
+ );
6054
+ opt.hour = GetOption(
6055
+ options,
6056
+ "hour",
6057
+ "string",
6058
+ ["2-digit", "numeric"],
6059
+ void 0
6060
+ );
6061
+ opt.minute = GetOption(
6062
+ options,
6063
+ "minute",
6064
+ "string",
6065
+ ["2-digit", "numeric"],
6066
+ void 0
6067
+ );
6068
+ opt.second = GetOption(
6069
+ options,
6070
+ "second",
6071
+ "string",
6072
+ ["2-digit", "numeric"],
6073
+ void 0
6074
+ );
6075
+ opt.timeZoneName = GetOption(
6076
+ options,
6077
+ "timeZoneName",
6078
+ "string",
6079
+ [
6080
+ "long",
6081
+ "short",
6082
+ "longOffset",
6083
+ "shortOffset",
6084
+ "longGeneric",
6085
+ "shortGeneric"
6086
+ ],
6087
+ void 0
6088
+ );
6089
+ opt.fractionalSecondDigits = GetNumberOption(
6090
+ options,
6091
+ "fractionalSecondDigits",
6092
+ 1,
6093
+ 3,
6094
+ void 0
6095
+ );
6096
+ const dataLocaleData = localeData[dataLocale];
6097
+ invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`);
6098
+ const formats = dataLocaleData.formats[calendar];
5855
6099
  if (!formats) {
5856
- throw new RangeError('Calendar "'.concat(calendar, '" is not supported. Try setting "calendar" to 1 of the following: ').concat(Object.keys(dataLocaleData.formats).join(", ")));
5857
- }
5858
- var formatMatcher = GetOption(options, "formatMatcher", "string", ["basic", "best fit"], "best fit");
5859
- var dateStyle = GetOption(options, "dateStyle", "string", ["full", "long", "medium", "short"], void 0);
6100
+ throw new RangeError(
6101
+ `Calendar "${calendar}" is not supported. Try setting "calendar" to 1 of the following: ${Object.keys(
6102
+ dataLocaleData.formats
6103
+ ).join(", ")}`
6104
+ );
6105
+ }
6106
+ const formatMatcher = GetOption(
6107
+ options,
6108
+ "formatMatcher",
6109
+ "string",
6110
+ ["basic", "best fit"],
6111
+ "best fit"
6112
+ );
6113
+ const dateStyle = GetOption(
6114
+ options,
6115
+ "dateStyle",
6116
+ "string",
6117
+ ["full", "long", "medium", "short"],
6118
+ void 0
6119
+ );
5860
6120
  internalSlots.dateStyle = dateStyle;
5861
- var timeStyle = GetOption(options, "timeStyle", "string", ["full", "long", "medium", "short"], void 0);
6121
+ const timeStyle = GetOption(
6122
+ options,
6123
+ "timeStyle",
6124
+ "string",
6125
+ ["full", "long", "medium", "short"],
6126
+ void 0
6127
+ );
5862
6128
  internalSlots.timeStyle = timeStyle;
5863
- var bestFormat;
6129
+ let bestFormat;
5864
6130
  if (dateStyle === void 0 && timeStyle === void 0) {
5865
6131
  if (formatMatcher === "basic") {
5866
6132
  bestFormat = BasicFormatMatcher(opt, formats);
5867
6133
  } else {
5868
6134
  if (isTimeRelated(opt)) {
5869
- var hc = resolveHourCycle(internalSlots.hourCycle, dataLocaleData.hourCycle, hour12);
6135
+ const hc = resolveHourCycle(
6136
+ internalSlots.hourCycle,
6137
+ dataLocaleData.hourCycle,
6138
+ hour12
6139
+ );
5870
6140
  opt.hour12 = hc === "h11" || hc === "h12";
5871
6141
  }
5872
6142
  bestFormat = BestFitFormatMatcher(opt, formats);
5873
6143
  }
5874
6144
  } else {
5875
- for (var _i = 0, DATE_TIME_PROPS_1 = DATE_TIME_PROPS; _i < DATE_TIME_PROPS_1.length; _i++) {
5876
- var prop = DATE_TIME_PROPS_1[_i];
5877
- var p = opt[prop];
6145
+ for (const prop of DATE_TIME_PROPS) {
6146
+ const p = opt[prop];
5878
6147
  if (p !== void 0) {
5879
- throw new TypeError("Intl.DateTimeFormat can't set option ".concat(prop, " when ").concat(dateStyle ? "dateStyle" : "timeStyle", " is used"));
6148
+ throw new TypeError(
6149
+ `Intl.DateTimeFormat can't set option ${prop} when ${dateStyle ? "dateStyle" : "timeStyle"} is used`
6150
+ );
5880
6151
  }
5881
6152
  }
5882
6153
  bestFormat = DateTimeStyleFormat(dateStyle, timeStyle, dataLocaleData);
5883
6154
  }
5884
6155
  internalSlots.format = bestFormat;
5885
- for (var prop in opt) {
5886
- var p = bestFormat[prop];
6156
+ for (const prop in opt) {
6157
+ const p = bestFormat[prop];
5887
6158
  if (p !== void 0) {
5888
6159
  internalSlots[prop] = p;
5889
6160
  }
5890
6161
  }
5891
- var pattern;
5892
- var rangePatterns;
6162
+ let pattern;
6163
+ let rangePatterns;
5893
6164
  if (internalSlots.hour !== void 0) {
5894
- var hc = resolveHourCycle(internalSlots.hourCycle, dataLocaleData.hourCycle, hour12);
6165
+ const hc = resolveHourCycle(
6166
+ internalSlots.hourCycle,
6167
+ dataLocaleData.hourCycle,
6168
+ hour12
6169
+ );
5895
6170
  internalSlots.hourCycle = hc;
5896
6171
  if (hc === "h11" || hc === "h12") {
5897
6172
  pattern = bestFormat.pattern12;
@@ -5910,7 +6185,7 @@
5910
6185
  return dtf;
5911
6186
  }
5912
6187
 
5913
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/data/links.js
6188
+ // packages/intl-datetimeformat/src/data/links.ts
5914
6189
  var links_default = {
5915
6190
  "Africa/Accra": "Africa/Abidjan",
5916
6191
  "Africa/Addis_Ababa": "Africa/Nairobi",
@@ -6005,6 +6280,7 @@
6005
6280
  "Asia/Bahrain": "Asia/Qatar",
6006
6281
  "Asia/Brunei": "Asia/Kuching",
6007
6282
  "Asia/Calcutta": "Asia/Kolkata",
6283
+ "Asia/Choibalsan": "Asia/Ulaanbaatar",
6008
6284
  "Asia/Chongqing": "Asia/Shanghai",
6009
6285
  "Asia/Chungking": "Asia/Shanghai",
6010
6286
  "Asia/Dacca": "Asia/Dhaka",
@@ -6044,6 +6320,8 @@
6044
6320
  "Brazil/DeNoronha": "America/Noronha",
6045
6321
  "Brazil/East": "America/Sao_Paulo",
6046
6322
  "Brazil/West": "America/Manaus",
6323
+ "CET": "Europe/Brussels",
6324
+ "CST6CDT": "America/Chicago",
6047
6325
  "Canada/Atlantic": "America/Halifax",
6048
6326
  "Canada/Central": "America/Winnipeg",
6049
6327
  "Canada/Eastern": "America/Toronto",
@@ -6055,6 +6333,9 @@
6055
6333
  "Chile/Continental": "America/Santiago",
6056
6334
  "Chile/EasterIsland": "Pacific/Easter",
6057
6335
  "Cuba": "America/Havana",
6336
+ "EET": "Europe/Athens",
6337
+ "EST": "America/Panama",
6338
+ "EST5EDT": "America/New_York",
6058
6339
  "Egypt": "Africa/Cairo",
6059
6340
  "Eire": "Europe/Dublin",
6060
6341
  "Etc/GMT+0": "Etc/GMT",
@@ -6096,6 +6377,7 @@
6096
6377
  "GMT-0": "Etc/GMT",
6097
6378
  "GMT0": "Etc/GMT",
6098
6379
  "Greenwich": "Etc/GMT",
6380
+ "HST": "Pacific/Honolulu",
6099
6381
  "Hongkong": "Asia/Hong_Kong",
6100
6382
  "Iceland": "Africa/Abidjan",
6101
6383
  "Indian/Antananarivo": "Africa/Nairobi",
@@ -6112,6 +6394,9 @@
6112
6394
  "Japan": "Asia/Tokyo",
6113
6395
  "Kwajalein": "Pacific/Kwajalein",
6114
6396
  "Libya": "Africa/Tripoli",
6397
+ "MET": "Europe/Brussels",
6398
+ "MST": "America/Phoenix",
6399
+ "MST7MDT": "America/Denver",
6115
6400
  "Mexico/BajaNorte": "America/Tijuana",
6116
6401
  "Mexico/BajaSur": "America/Mazatlan",
6117
6402
  "Mexico/General": "America/Mexico_City",
@@ -6119,6 +6404,7 @@
6119
6404
  "NZ-CHAT": "Pacific/Chatham",
6120
6405
  "Navajo": "America/Denver",
6121
6406
  "PRC": "Asia/Shanghai",
6407
+ "PST8PDT": "America/Los_Angeles",
6122
6408
  "Pacific/Chuuk": "Pacific/Port_Moresby",
6123
6409
  "Pacific/Enderbury": "Pacific/Kanton",
6124
6410
  "Pacific/Funafuti": "Pacific/Tarawa",
@@ -6155,13 +6441,14 @@
6155
6441
  "UTC": "Etc/UTC",
6156
6442
  "Universal": "Etc/UTC",
6157
6443
  "W-SU": "Europe/Moscow",
6444
+ "WET": "Europe/Lisbon",
6158
6445
  "Zulu": "Etc/UTC"
6159
6446
  };
6160
6447
 
6161
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/get_internal_slots.js
6448
+ // packages/intl-datetimeformat/src/get_internal_slots.ts
6162
6449
  var internalSlotMap = /* @__PURE__ */ new WeakMap();
6163
6450
  function getInternalSlots(x) {
6164
- var internalSlots = internalSlotMap.get(x);
6451
+ let internalSlots = internalSlotMap.get(x);
6165
6452
  if (!internalSlots) {
6166
6453
  internalSlots = /* @__PURE__ */ Object.create(null);
6167
6454
  internalSlotMap.set(x, internalSlots);
@@ -6169,37 +6456,32 @@
6169
6456
  return internalSlots;
6170
6457
  }
6171
6458
 
6172
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/packer.js
6459
+ // packages/intl-datetimeformat/src/packer.ts
6173
6460
  function unpack(data2) {
6174
- var abbrvs = data2.abbrvs.split("|");
6175
- var offsets = data2.offsets.split("|").map(function(n) {
6176
- return parseInt(n, 36);
6177
- });
6178
- var packedZones = data2.zones;
6179
- var zones = {};
6180
- for (var _i = 0, packedZones_1 = packedZones; _i < packedZones_1.length; _i++) {
6181
- var d = packedZones_1[_i];
6182
- var _a = d.split("|"), zone = _a[0], zoneData = _a.slice(1);
6183
- zones[zone] = zoneData.map(function(z) {
6184
- return z.split(",");
6185
- }).map(function(_a2) {
6186
- var ts = _a2[0], abbrvIndex = _a2[1], offsetIndex = _a2[2], dst = _a2[3];
6187
- return [
6188
- ts === "" ? -Infinity : parseInt(ts, 36),
6189
- abbrvs[+abbrvIndex],
6190
- offsets[+offsetIndex],
6191
- dst === "1"
6192
- ];
6193
- });
6461
+ const abbrvs = data2.abbrvs.split("|");
6462
+ const offsets = data2.offsets.split("|").map((n) => parseInt(n, 36));
6463
+ const packedZones = data2.zones;
6464
+ const zones = {};
6465
+ for (const d of packedZones) {
6466
+ const [zone, ...zoneData] = d.split("|");
6467
+ zones[zone] = zoneData.map((z) => z.split(",")).map(([ts, abbrvIndex, offsetIndex, dst]) => [
6468
+ ts === "" ? -Infinity : parseInt(ts, 36),
6469
+ abbrvs[+abbrvIndex],
6470
+ offsets[+offsetIndex],
6471
+ dst === "1"
6472
+ ]);
6194
6473
  }
6195
6474
  return zones;
6196
6475
  }
6197
6476
 
6198
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/core.js
6199
- var UPPERCASED_LINKS = Object.keys(links_default).reduce(function(all, l) {
6200
- all[l.toUpperCase()] = links_default[l];
6201
- return all;
6202
- }, {});
6477
+ // packages/intl-datetimeformat/src/core.ts
6478
+ var UPPERCASED_LINKS = Object.keys(links_default).reduce(
6479
+ (all, l) => {
6480
+ all[l.toUpperCase()] = links_default[l];
6481
+ return all;
6482
+ },
6483
+ {}
6484
+ );
6203
6485
  var RESOLVED_OPTIONS_KEYS = [
6204
6486
  "locale",
6205
6487
  "calendar",
@@ -6221,16 +6503,18 @@
6221
6503
  var formatDescriptor = {
6222
6504
  enumerable: false,
6223
6505
  configurable: true,
6224
- get: function() {
6225
- if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat, this)) {
6226
- throw TypeError("Intl.DateTimeFormat format property accessor called on incompatible receiver");
6506
+ get() {
6507
+ if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat4, this)) {
6508
+ throw TypeError(
6509
+ "Intl.DateTimeFormat format property accessor called on incompatible receiver"
6510
+ );
6227
6511
  }
6228
- var internalSlots = getInternalSlots(this);
6229
- var dtf = this;
6230
- var boundFormat = internalSlots.boundFormat;
6512
+ const internalSlots = getInternalSlots(this);
6513
+ const dtf = this;
6514
+ let boundFormat = internalSlots.boundFormat;
6231
6515
  if (boundFormat === void 0) {
6232
- boundFormat = function(date) {
6233
- var x;
6516
+ boundFormat = (date) => {
6517
+ let x;
6234
6518
  if (date === void 0) {
6235
6519
  x = Date.now();
6236
6520
  } else {
@@ -6238,9 +6522,9 @@
6238
6522
  }
6239
6523
  return FormatDateTime(dtf, x, {
6240
6524
  getInternalSlots,
6241
- localeData: DateTimeFormat.localeData,
6242
- tzData: DateTimeFormat.tzData,
6243
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone
6525
+ localeData: DateTimeFormat4.localeData,
6526
+ tzData: DateTimeFormat4.tzData,
6527
+ getDefaultTimeZone: DateTimeFormat4.getDefaultTimeZone
6244
6528
  });
6245
6529
  };
6246
6530
  try {
@@ -6266,42 +6550,50 @@
6266
6550
  });
6267
6551
  } catch (e) {
6268
6552
  }
6269
- var DateTimeFormat = function(locales, options) {
6270
- if (!this || !OrdinaryHasInstance(DateTimeFormat, this)) {
6271
- return new DateTimeFormat(locales, options);
6553
+ var DateTimeFormat4 = function(locales, options) {
6554
+ if (!this || !OrdinaryHasInstance(DateTimeFormat4, this)) {
6555
+ return new DateTimeFormat4(locales, options);
6272
6556
  }
6273
6557
  InitializeDateTimeFormat(this, locales, options, {
6274
- tzData: DateTimeFormat.tzData,
6558
+ tzData: DateTimeFormat4.tzData,
6275
6559
  uppercaseLinks: UPPERCASED_LINKS,
6276
- availableLocales: DateTimeFormat.availableLocales,
6277
- relevantExtensionKeys: DateTimeFormat.relevantExtensionKeys,
6278
- getDefaultLocale: DateTimeFormat.getDefaultLocale,
6279
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
6560
+ availableLocales: DateTimeFormat4.availableLocales,
6561
+ relevantExtensionKeys: DateTimeFormat4.relevantExtensionKeys,
6562
+ getDefaultLocale: DateTimeFormat4.getDefaultLocale,
6563
+ getDefaultTimeZone: DateTimeFormat4.getDefaultTimeZone,
6280
6564
  getInternalSlots,
6281
- localeData: DateTimeFormat.localeData
6565
+ localeData: DateTimeFormat4.localeData
6282
6566
  });
6283
- var internalSlots = getInternalSlots(this);
6284
- var dataLocale = internalSlots.dataLocale;
6285
- var dataLocaleData = DateTimeFormat.localeData[dataLocale];
6286
- invariant(dataLocaleData !== void 0, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
6567
+ const internalSlots = getInternalSlots(this);
6568
+ const dataLocale = internalSlots.dataLocale;
6569
+ const dataLocaleData = DateTimeFormat4.localeData[dataLocale];
6570
+ invariant(
6571
+ dataLocaleData !== void 0,
6572
+ `Cannot load locale-dependent data for ${dataLocale}.`
6573
+ );
6287
6574
  };
6288
- defineProperty(DateTimeFormat, "supportedLocalesOf", {
6575
+ defineProperty(DateTimeFormat4, "supportedLocalesOf", {
6289
6576
  value: function supportedLocalesOf(locales, options) {
6290
- return SupportedLocales(DateTimeFormat.availableLocales, CanonicalizeLocaleList(locales), options);
6577
+ return SupportedLocales(
6578
+ DateTimeFormat4.availableLocales,
6579
+ CanonicalizeLocaleList(locales),
6580
+ options
6581
+ );
6291
6582
  }
6292
6583
  });
6293
- defineProperty(DateTimeFormat.prototype, "resolvedOptions", {
6584
+ defineProperty(DateTimeFormat4.prototype, "resolvedOptions", {
6294
6585
  value: function resolvedOptions() {
6295
- if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat, this)) {
6296
- throw TypeError("Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver");
6586
+ if (typeof this !== "object" || !OrdinaryHasInstance(DateTimeFormat4, this)) {
6587
+ throw TypeError(
6588
+ "Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver"
6589
+ );
6297
6590
  }
6298
- var internalSlots = getInternalSlots(this);
6299
- var ro = {};
6300
- for (var _i = 0, RESOLVED_OPTIONS_KEYS_1 = RESOLVED_OPTIONS_KEYS; _i < RESOLVED_OPTIONS_KEYS_1.length; _i++) {
6301
- var key = RESOLVED_OPTIONS_KEYS_1[_i];
6302
- var value = internalSlots[key];
6591
+ const internalSlots = getInternalSlots(this);
6592
+ const ro = {};
6593
+ for (const key of RESOLVED_OPTIONS_KEYS) {
6594
+ let value = internalSlots[key];
6303
6595
  if (key === "hourCycle") {
6304
- var hour12 = value === "h11" || value === "h12" ? true : value === "h23" || value === "h24" ? false : void 0;
6596
+ const hour12 = value === "h11" || value === "h12" ? true : value === "h23" || value === "h24" ? false : void 0;
6305
6597
  if (hour12 !== void 0) {
6306
6598
  ro.hour12 = hour12;
6307
6599
  }
@@ -6318,7 +6610,7 @@
6318
6610
  return ro;
6319
6611
  }
6320
6612
  });
6321
- defineProperty(DateTimeFormat.prototype, "formatToParts", {
6613
+ defineProperty(DateTimeFormat4.prototype, "formatToParts", {
6322
6614
  value: function formatToParts2(date) {
6323
6615
  if (date === void 0) {
6324
6616
  date = Date.now();
@@ -6327,140 +6619,149 @@
6327
6619
  }
6328
6620
  return FormatDateTimeToParts(this, date, {
6329
6621
  getInternalSlots,
6330
- localeData: DateTimeFormat.localeData,
6331
- tzData: DateTimeFormat.tzData,
6332
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone
6622
+ localeData: DateTimeFormat4.localeData,
6623
+ tzData: DateTimeFormat4.tzData,
6624
+ getDefaultTimeZone: DateTimeFormat4.getDefaultTimeZone
6333
6625
  });
6334
6626
  }
6335
6627
  });
6336
- defineProperty(DateTimeFormat.prototype, "formatRangeToParts", {
6628
+ defineProperty(DateTimeFormat4.prototype, "formatRangeToParts", {
6337
6629
  value: function formatRangeToParts(startDate, endDate) {
6338
- var dtf = this;
6630
+ const dtf = this;
6339
6631
  if (typeof dtf !== "object") {
6340
6632
  throw new TypeError();
6341
6633
  }
6342
6634
  if (startDate === void 0 || endDate === void 0) {
6343
6635
  throw new TypeError("startDate/endDate cannot be undefined");
6344
6636
  }
6345
- var x = ToNumber(startDate);
6346
- var y = ToNumber(endDate);
6637
+ const x = ToNumber(startDate);
6638
+ const y = ToNumber(endDate);
6347
6639
  return FormatDateTimeRangeToParts(dtf, x, y, {
6348
6640
  getInternalSlots,
6349
- localeData: DateTimeFormat.localeData,
6350
- tzData: DateTimeFormat.tzData,
6351
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone
6641
+ localeData: DateTimeFormat4.localeData,
6642
+ tzData: DateTimeFormat4.tzData,
6643
+ getDefaultTimeZone: DateTimeFormat4.getDefaultTimeZone
6352
6644
  });
6353
6645
  }
6354
6646
  });
6355
- defineProperty(DateTimeFormat.prototype, "formatRange", {
6647
+ defineProperty(DateTimeFormat4.prototype, "formatRange", {
6356
6648
  value: function formatRange(startDate, endDate) {
6357
- var dtf = this;
6649
+ const dtf = this;
6358
6650
  if (typeof dtf !== "object") {
6359
6651
  throw new TypeError();
6360
6652
  }
6361
6653
  if (startDate === void 0 || endDate === void 0) {
6362
6654
  throw new TypeError("startDate/endDate cannot be undefined");
6363
6655
  }
6364
- var x = ToNumber(startDate);
6365
- var y = ToNumber(endDate);
6656
+ const x = ToNumber(startDate);
6657
+ const y = ToNumber(endDate);
6366
6658
  return FormatDateTimeRange(dtf, x, y, {
6367
6659
  getInternalSlots,
6368
- localeData: DateTimeFormat.localeData,
6369
- tzData: DateTimeFormat.tzData,
6370
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone
6660
+ localeData: DateTimeFormat4.localeData,
6661
+ tzData: DateTimeFormat4.tzData,
6662
+ getDefaultTimeZone: DateTimeFormat4.getDefaultTimeZone
6371
6663
  });
6372
6664
  }
6373
6665
  });
6374
6666
  var DEFAULT_TIMEZONE = "UTC";
6375
- DateTimeFormat.__setDefaultTimeZone = function(timeZone) {
6667
+ DateTimeFormat4.__setDefaultTimeZone = (timeZone) => {
6376
6668
  if (timeZone !== void 0) {
6377
6669
  timeZone = String(timeZone);
6378
6670
  if (!IsValidTimeZoneName(timeZone, {
6379
- zoneNamesFromData: Object.keys(DateTimeFormat.tzData),
6671
+ zoneNamesFromData: Object.keys(DateTimeFormat4.tzData),
6380
6672
  uppercaseLinks: UPPERCASED_LINKS
6381
6673
  })) {
6382
6674
  throw new RangeError("Invalid timeZoneName");
6383
6675
  }
6384
6676
  timeZone = CanonicalizeTimeZoneName(timeZone, {
6385
- zoneNames: Object.keys(DateTimeFormat.tzData),
6677
+ zoneNames: Object.keys(DateTimeFormat4.tzData),
6386
6678
  uppercaseLinks: UPPERCASED_LINKS
6387
6679
  });
6388
6680
  } else {
6389
6681
  timeZone = DEFAULT_TIMEZONE;
6390
6682
  }
6391
- DateTimeFormat.__defaultTimeZone = timeZone;
6392
- };
6393
- DateTimeFormat.relevantExtensionKeys = ["nu", "ca", "hc"];
6394
- DateTimeFormat.__defaultTimeZone = DEFAULT_TIMEZONE;
6395
- DateTimeFormat.getDefaultTimeZone = function() {
6396
- return DateTimeFormat.__defaultTimeZone;
6683
+ DateTimeFormat4.__defaultTimeZone = timeZone;
6397
6684
  };
6398
- DateTimeFormat.__addLocaleData = function __addLocaleData() {
6399
- var data2 = [];
6400
- for (var _i = 0; _i < arguments.length; _i++) {
6401
- data2[_i] = arguments[_i];
6402
- }
6403
- var _loop_1 = function(d2, locale2) {
6404
- var dateFormat = d2.dateFormat, timeFormat = d2.timeFormat, dateTimeFormat = d2.dateTimeFormat, formats = d2.formats, intervalFormats = d2.intervalFormats, rawData = __rest(d2, ["dateFormat", "timeFormat", "dateTimeFormat", "formats", "intervalFormats"]);
6405
- var processedData = __assign(__assign({}, rawData), { dateFormat: {
6406
- full: parseDateTimeSkeleton(dateFormat.full),
6407
- long: parseDateTimeSkeleton(dateFormat.long),
6408
- medium: parseDateTimeSkeleton(dateFormat.medium),
6409
- short: parseDateTimeSkeleton(dateFormat.short)
6410
- }, timeFormat: {
6411
- full: parseDateTimeSkeleton(timeFormat.full),
6412
- long: parseDateTimeSkeleton(timeFormat.long),
6413
- medium: parseDateTimeSkeleton(timeFormat.medium),
6414
- short: parseDateTimeSkeleton(timeFormat.short)
6415
- }, dateTimeFormat: {
6416
- full: parseDateTimeSkeleton(dateTimeFormat.full).pattern,
6417
- long: parseDateTimeSkeleton(dateTimeFormat.long).pattern,
6418
- medium: parseDateTimeSkeleton(dateTimeFormat.medium).pattern,
6419
- short: parseDateTimeSkeleton(dateTimeFormat.short).pattern
6420
- }, formats: {} });
6421
- var _loop_2 = function(calendar2) {
6422
- processedData.formats[calendar2] = Object.keys(formats[calendar2]).map(function(skeleton) {
6423
- return parseDateTimeSkeleton(skeleton, formats[calendar2][skeleton], intervalFormats[skeleton], intervalFormats.intervalFormatFallback);
6424
- });
6425
- };
6426
- for (var calendar in formats) {
6427
- _loop_2(calendar);
6685
+ DateTimeFormat4.relevantExtensionKeys = ["nu", "ca", "hc"];
6686
+ DateTimeFormat4.__defaultTimeZone = DEFAULT_TIMEZONE;
6687
+ DateTimeFormat4.getDefaultTimeZone = () => DateTimeFormat4.__defaultTimeZone;
6688
+ DateTimeFormat4.__addLocaleData = function __addLocaleData(...data2) {
6689
+ for (const { data: d, locale } of data2) {
6690
+ const _a = d, {
6691
+ dateFormat,
6692
+ timeFormat,
6693
+ dateTimeFormat,
6694
+ formats,
6695
+ intervalFormats
6696
+ } = _a, rawData = __objRest(_a, [
6697
+ "dateFormat",
6698
+ "timeFormat",
6699
+ "dateTimeFormat",
6700
+ "formats",
6701
+ "intervalFormats"
6702
+ ]);
6703
+ const processedData = __spreadProps(__spreadValues({}, rawData), {
6704
+ dateFormat: {
6705
+ full: parseDateTimeSkeleton(dateFormat.full),
6706
+ long: parseDateTimeSkeleton(dateFormat.long),
6707
+ medium: parseDateTimeSkeleton(dateFormat.medium),
6708
+ short: parseDateTimeSkeleton(dateFormat.short)
6709
+ },
6710
+ timeFormat: {
6711
+ full: parseDateTimeSkeleton(timeFormat.full),
6712
+ long: parseDateTimeSkeleton(timeFormat.long),
6713
+ medium: parseDateTimeSkeleton(timeFormat.medium),
6714
+ short: parseDateTimeSkeleton(timeFormat.short)
6715
+ },
6716
+ dateTimeFormat: {
6717
+ full: parseDateTimeSkeleton(dateTimeFormat.full).pattern,
6718
+ long: parseDateTimeSkeleton(dateTimeFormat.long).pattern,
6719
+ medium: parseDateTimeSkeleton(dateTimeFormat.medium).pattern,
6720
+ short: parseDateTimeSkeleton(dateTimeFormat.short).pattern
6721
+ },
6722
+ formats: {}
6723
+ });
6724
+ for (const calendar in formats) {
6725
+ processedData.formats[calendar] = Object.keys(formats[calendar]).map(
6726
+ (skeleton) => parseDateTimeSkeleton(
6727
+ skeleton,
6728
+ formats[calendar][skeleton],
6729
+ intervalFormats[skeleton],
6730
+ intervalFormats.intervalFormatFallback
6731
+ )
6732
+ );
6428
6733
  }
6429
- var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
6430
- DateTimeFormat.localeData[locale2] = DateTimeFormat.localeData[minimizedLocale] = processedData;
6431
- DateTimeFormat.availableLocales.add(locale2);
6432
- DateTimeFormat.availableLocales.add(minimizedLocale);
6433
- if (!DateTimeFormat.__defaultLocale) {
6434
- DateTimeFormat.__defaultLocale = minimizedLocale;
6734
+ const minimizedLocale = new Intl.Locale(locale).minimize().toString();
6735
+ DateTimeFormat4.localeData[locale] = DateTimeFormat4.localeData[minimizedLocale] = processedData;
6736
+ DateTimeFormat4.availableLocales.add(locale);
6737
+ DateTimeFormat4.availableLocales.add(minimizedLocale);
6738
+ if (!DateTimeFormat4.__defaultLocale) {
6739
+ DateTimeFormat4.__defaultLocale = minimizedLocale;
6435
6740
  }
6436
- };
6437
- for (var _a = 0, data_1 = data2; _a < data_1.length; _a++) {
6438
- var _b = data_1[_a], d = _b.data, locale = _b.locale;
6439
- _loop_1(d, locale);
6440
6741
  }
6441
6742
  };
6442
- Object.defineProperty(DateTimeFormat.prototype, "format", formatDescriptor);
6443
- DateTimeFormat.__defaultLocale = "";
6444
- DateTimeFormat.localeData = {};
6445
- DateTimeFormat.availableLocales = /* @__PURE__ */ new Set();
6446
- DateTimeFormat.getDefaultLocale = function() {
6447
- return DateTimeFormat.__defaultLocale;
6743
+ Object.defineProperty(DateTimeFormat4.prototype, "format", formatDescriptor);
6744
+ DateTimeFormat4.__defaultLocale = "";
6745
+ DateTimeFormat4.localeData = {};
6746
+ DateTimeFormat4.availableLocales = /* @__PURE__ */ new Set();
6747
+ DateTimeFormat4.getDefaultLocale = () => {
6748
+ return DateTimeFormat4.__defaultLocale;
6448
6749
  };
6449
- DateTimeFormat.polyfilled = true;
6450
- DateTimeFormat.tzData = {};
6451
- DateTimeFormat.__addTZData = function(d) {
6452
- DateTimeFormat.tzData = unpack(d);
6750
+ DateTimeFormat4.polyfilled = true;
6751
+ DateTimeFormat4.tzData = {};
6752
+ DateTimeFormat4.__addTZData = function(d) {
6753
+ DateTimeFormat4.tzData = unpack(d);
6453
6754
  };
6454
6755
  try {
6455
6756
  if (typeof Symbol !== "undefined") {
6456
- Object.defineProperty(DateTimeFormat.prototype, Symbol.toStringTag, {
6757
+ Object.defineProperty(DateTimeFormat4.prototype, Symbol.toStringTag, {
6457
6758
  value: "Intl.DateTimeFormat",
6458
6759
  writable: false,
6459
6760
  enumerable: false,
6460
6761
  configurable: true
6461
6762
  });
6462
6763
  }
6463
- Object.defineProperty(DateTimeFormat.prototype.constructor, "length", {
6764
+ Object.defineProperty(DateTimeFormat4.prototype.constructor, "length", {
6464
6765
  value: 1,
6465
6766
  writable: false,
6466
6767
  enumerable: false,
@@ -6469,10 +6770,10 @@
6469
6770
  } catch (e) {
6470
6771
  }
6471
6772
 
6472
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/supported-locales.generated.js
6773
+ // packages/intl-datetimeformat/supported-locales.generated.ts
6473
6774
  var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
6474
6775
 
6475
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/should-polyfill.js
6776
+ // packages/intl-datetimeformat/should-polyfill.ts
6476
6777
  function supportsDateStyle() {
6477
6778
  try {
6478
6779
  return !!new Intl.DateTimeFormat(void 0, {
@@ -6506,35 +6807,38 @@
6506
6807
  if (!locale) {
6507
6808
  return true;
6508
6809
  }
6509
- var locales = Array.isArray(locale) ? locale : [locale];
6810
+ const locales = Array.isArray(locale) ? locale : [locale];
6510
6811
  return Intl.DateTimeFormat.supportedLocalesOf(locales).length === locales.length;
6511
6812
  }
6512
- function shouldPolyfill(locale) {
6513
- if (locale === void 0) {
6514
- locale = "en";
6515
- }
6813
+ function shouldPolyfill(locale = "en") {
6516
6814
  if (!("DateTimeFormat" in Intl) || !("formatToParts" in Intl.DateTimeFormat.prototype) || !("formatRange" in Intl.DateTimeFormat.prototype) || hasChromeLt71Bug() || hasUnthrownDateTimeStyleBug() || !supportsDateStyle() || !supportedLocalesOf2(locale)) {
6517
6815
  return locale ? match([locale], supportedLocales, "en") : void 0;
6518
6816
  }
6519
6817
  }
6520
6818
 
6521
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/to_locale_string.js
6819
+ // packages/intl-datetimeformat/src/to_locale_string.ts
6522
6820
  function toLocaleString(x, locales, options) {
6523
- var dtf = new DateTimeFormat(locales, options);
6821
+ const dtf = new DateTimeFormat4(locales, options);
6524
6822
  return dtf.format(x);
6525
6823
  }
6526
6824
  function toLocaleDateString(x, locales, options) {
6527
- var dtf = new DateTimeFormat(locales, ToDateTimeOptions(options, "date", "date"));
6825
+ const dtf = new DateTimeFormat4(
6826
+ locales,
6827
+ ToDateTimeOptions(options, "date", "date")
6828
+ );
6528
6829
  return dtf.format(x);
6529
6830
  }
6530
6831
  function toLocaleTimeString(x, locales, options) {
6531
- var dtf = new DateTimeFormat(locales, ToDateTimeOptions(options, "time", "time"));
6832
+ const dtf = new DateTimeFormat4(
6833
+ locales,
6834
+ ToDateTimeOptions(options, "time", "time")
6835
+ );
6532
6836
  return dtf.format(x);
6533
6837
  }
6534
6838
 
6535
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/polyfill.js
6839
+ // packages/intl-datetimeformat/polyfill.ts
6536
6840
  if (shouldPolyfill()) {
6537
- defineProperty(Intl, "DateTimeFormat", { value: DateTimeFormat });
6841
+ defineProperty(Intl, "DateTimeFormat", { value: DateTimeFormat4 });
6538
6842
  defineProperty(Date.prototype, "toLocaleString", {
6539
6843
  value: function toLocaleString2(locales, options) {
6540
6844
  try {