temporal-polyfill-lite 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 1.0.2 (2026-11-15)
9
+
10
+ ### Changed
11
+
12
+ - Preserve the names of class expressions for Temporal and Intl classes during the build process, instead of setting the names manually ([#53](https://github.com/fabon-f/temporal-polyfill-lite/pull/53)).
13
+ - This is not a breaking change for most users, but it may affect a small number of users who minify the polyfill and depend on the `name` property of Temporal classes or `Intl.DurationFormat`.
14
+
15
+ ### Fixed
16
+
17
+ - Fall back to UTC when the system time zone cannot be retrieved ([#55](https://github.com/fabon-f/temporal-polyfill-lite/pull/55)).
18
+
8
19
  ## 1.0.1 (2026-11-09)
9
20
 
10
21
  ### Changed
@@ -1 +1 @@
1
- export { r as Intl, t as Temporal, i as toTemporalInstant } from "./src-BZzXXJ4p.js";
1
+ export { r as Intl, t as Temporal, i as toTemporalInstant } from "./src-JimFtBws.js";
@@ -4,5 +4,5 @@ function install(s) {
4
4
  function setSystemTimeZoneIdCacheTtl(t) {
5
5
  s(t);
6
6
  }
7
- import { a as t, i as a, n as s, r as e, t as l } from "./src-BZzXXJ4p.js";
7
+ import { a as t, i as a, n as s, r as e, t as l } from "./src-JimFtBws.js";
8
8
  export { install, setSystemTimeZoneIdCacheTtl };
@@ -19,9 +19,6 @@ function defineStringTag(e, t) {
19
19
  configurable: !0
20
20
  });
21
21
  }
22
- function renameFunction(e, t) {
23
- Object.defineProperty(e, "name", { value: t });
24
- }
25
22
  function getNameFromUnit(e) {
26
23
  return v[e];
27
24
  }
@@ -350,7 +347,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
350
347
  return n || a.B(r, s), s;
351
348
  }
352
349
  function getFormatterForTimeZone(e) {
353
- return Re[e] ||= new Zt("en-u-hc-h23", {
350
+ return Re[e] ||= Zt("en-u-hc-h23", {
354
351
  timeZone: e,
355
352
  year: "numeric",
356
353
  month: "numeric",
@@ -604,8 +601,8 @@ function balanceTime(e, t, o, n, r, a) {
604
601
  X: divFloor(e, 24)
605
602
  };
606
603
  }
607
- function createTemporalTime(e, t = Object.create(Ye.prototype)) {
608
- return Ce.set(t, e), t;
604
+ function createTemporalTime(e, t = Object.create(Ce.prototype)) {
605
+ return Ye.set(t, e), t;
609
606
  }
610
607
  function toTemporalTimeRecord(e, t = !1) {
611
608
  const o = [
@@ -647,10 +644,10 @@ function addDurationToTime(e, t, o) {
647
644
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
648
645
  }
649
646
  function getInternalSlotOrThrowForPlainTime(e) {
650
- return getInternalSlotOrThrow(Ce, e);
647
+ return getInternalSlotOrThrow(Ye, e);
651
648
  }
652
649
  function isPlainTime(e) {
653
- return Ce.has(e);
650
+ return Ye.has(e);
654
651
  }
655
652
  function optionalChain(e) {
656
653
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -927,7 +924,7 @@ function calendarDateForPlainDate(e) {
927
924
  return calendarIsoToDate(t.Y, t.o);
928
925
  }
929
926
  function formatToParts(e, t) {
930
- return (pt[e] ||= new Zt("en", {
927
+ return (pt[e] ||= Zt("en", {
931
928
  year: "numeric",
932
929
  month: "numeric",
933
930
  day: "numeric",
@@ -1027,7 +1024,7 @@ function epochDaysToDate$6(e, t) {
1027
1024
  };
1028
1025
  }
1029
1026
  function epoch$1(e) {
1030
- return "coptic" === e ? -615924 : "ethioaa" === e ? -2725608 : -716733;
1027
+ return "coptic" === e ? -615924 : "ethiopic" === e ? -716733 : -2725608;
1031
1028
  }
1032
1029
  function mathematicalInLeapYear$2(e) {
1033
1030
  return +!((e + 1) % 4);
@@ -1075,13 +1072,13 @@ function isLeapYear$1(e) {
1075
1072
  return modFloor(11 * (e + 4), 30) < 11;
1076
1073
  }
1077
1074
  function daysInMonth$2(e, t) {
1078
- return 12 === t ? isLeapYear$1(e) ? 30 : 29 : 29 + t % 2;
1075
+ return 12 === t && isLeapYear$1(e) ? 30 : 29 + t % 2;
1079
1076
  }
1080
1077
  function calendarIntegersToEpochDays$2(e, t, o, n) {
1081
- return epoch(e) + 354 * (t - 1) + divFloor(11 * (t + 3), 30) - 1 + Math.ceil(29.5 * (o - 1)) + n - 1;
1078
+ return epoch(e) + 354 * (t - 1) + divFloor(11 * (t + 3), 30) + Math.ceil(29.5 * (o - 1)) + n - 2;
1082
1079
  }
1083
1080
  function epochDaysToDate$2(e, t) {
1084
- const o = divFloor(30 * (t - epoch(e) - 5315), 10631) + 16;
1081
+ const o = divFloor(30 * (t - epoch(e)) + 15, 10631) + 1;
1085
1082
  let n = 12;
1086
1083
  for (; calendarIntegersToEpochDays$2(e, o, n, 1) > t; n--);
1087
1084
  return {
@@ -1109,7 +1106,7 @@ function getYearMonthDay(e) {
1109
1106
  }
1110
1107
  function getFirstDayOfMonth(e, t) {
1111
1108
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
1112
- return isWithin(12 * e + t, 15540, 19260) ? n + 14 - getYearMonthDay(n + 14).T + 1 : n;
1109
+ return isWithin(e, 1300, 1600) ? n + 6 - getYearMonthDay(n + 5).T : n;
1113
1110
  }
1114
1111
  function calendarIntegersToEpochDays$1(e, t, o) {
1115
1112
  return getFirstDayOfMonth(e, t) + o - 1;
@@ -1203,7 +1200,7 @@ function calendarDateUntil(e, t, o, n) {
1203
1200
  return createDateDurationRecord(m, u, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, h.t, h.u, constrainDay(e, h.t, h.u, a.T, _))));
1204
1201
  }
1205
1202
  function calendarDateToIso(e, t, o) {
1206
- const n = t[wt.t], r = t[wt.u], a = mapUnlessUndefined(t[wt.v], parseMonthCode), i = t[wt.T];
1203
+ const n = t[wt.t], r = t[wt.u], a = t[wt.v], i = t[wt.T];
1207
1204
  if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[wt.t], e[wt.u], e[wt.T], t))({
1208
1205
  ...t,
1209
1206
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
@@ -1264,27 +1261,27 @@ function nonIsoCalendarIsoToDate(e, t) {
1264
1261
  Te: !!mathematicalInLeapYear$2(o)
1265
1262
  };
1266
1263
  })(e, o) : "indian" === e ? ((e) => {
1267
- const t = epochDaysToIsoDate(e), o = firstDayOfYear(t.t - 78) <= e ? t.t - 78 : t.t - 79, n = mathematicalInLeapYear$1(o);
1268
- let r = 12;
1269
- for (; calendarIntegersToEpochDays$3(o, r, 1) > e; r--);
1264
+ const t = epochDaysToIsoDate(e).t, o = firstDayOfYear(t - 78) <= e ? t - 78 : t - 79;
1265
+ let n = 12;
1266
+ for (; calendarIntegersToEpochDays$3(o, n, 1) > e; n--);
1270
1267
  return {
1271
1268
  ne: "shaka",
1272
1269
  re: o,
1273
1270
  t: o,
1274
- u: r,
1275
- v: createMonthCode(r),
1276
- T: e - calendarIntegersToEpochDays$3(o, r, 1) + 1,
1277
- ae: isoDayOfWeek(t),
1271
+ u: n,
1272
+ v: createMonthCode(n),
1273
+ T: e - calendarIntegersToEpochDays$3(o, n, 1) + 1,
1274
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1278
1275
  ie: e - firstDayOfYear(o) + 1,
1279
1276
  ce: {
1280
1277
  se: void 0,
1281
1278
  t: void 0
1282
1279
  },
1283
1280
  le: 7,
1284
- de: daysInMonth$3(o, r),
1285
- me: 365 + n,
1281
+ de: daysInMonth$3(o, n),
1282
+ me: 365 + mathematicalInLeapYear$1(o),
1286
1283
  ue: 12,
1287
- Te: !!n
1284
+ Te: !!mathematicalInLeapYear$1(o)
1288
1285
  };
1289
1286
  })(o) : "persian" === e ? ((e) => ({
1290
1287
  ne: "ap",
@@ -1317,55 +1314,52 @@ function nonIsoCalendarIsoToDate(e, t) {
1317
1314
  return daysInMonth(t.t, t.u);
1318
1315
  },
1319
1316
  get me() {
1320
- return isLeapYear(getDate(e).t) ? 366 : 365;
1317
+ return +isLeapYear(getDate(e).t) + 365;
1321
1318
  },
1322
1319
  ue: 12,
1323
1320
  get Te() {
1324
1321
  return isLeapYear(getDate(e).t);
1325
1322
  }
1326
- }))(o) : isChineseDangi(e) ? epochDaysToDate$6(e, o) : "islamic-umalqura" === e ? ((e) => {
1327
- const t = epochDaysToDate$2("islamic-civil", e);
1328
- return e < -33600 || e > 76200 ? t : {
1329
- ne: "ah",
1330
- get re() {
1331
- return getYearMonthDay(e).t;
1332
- },
1333
- get t() {
1334
- return getYearMonthDay(e).t;
1335
- },
1336
- get u() {
1337
- return getYearMonthDay(e).u;
1338
- },
1339
- get v() {
1340
- return createMonthCode(getYearMonthDay(e).u);
1341
- },
1342
- get T() {
1343
- return getYearMonthDay(e).T;
1344
- },
1345
- ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1346
- get ie() {
1347
- return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1348
- },
1349
- ce: {
1350
- se: void 0,
1351
- t: void 0
1352
- },
1353
- le: 7,
1354
- get de() {
1355
- const t = getYearMonthDay(e);
1356
- return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
1357
- },
1358
- get me() {
1359
- const t = getYearMonthDay(e).t;
1360
- return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1);
1361
- },
1362
- ue: 12,
1363
- get Te() {
1364
- const t = getYearMonthDay(e).t;
1365
- return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1) > 354;
1366
- }
1367
- };
1368
- })(o) : "hebrew" === e ? ((e) => {
1323
+ }))(o) : isChineseDangi(e) ? epochDaysToDate$6(e, o) : "islamic-umalqura" === e ? ((e) => isWithin(e, -32e3, 75e3) ? {
1324
+ ne: "ah",
1325
+ get re() {
1326
+ return getYearMonthDay(e).t;
1327
+ },
1328
+ get t() {
1329
+ return getYearMonthDay(e).t;
1330
+ },
1331
+ get u() {
1332
+ return getYearMonthDay(e).u;
1333
+ },
1334
+ get v() {
1335
+ return createMonthCode(getYearMonthDay(e).u);
1336
+ },
1337
+ get T() {
1338
+ return getYearMonthDay(e).T;
1339
+ },
1340
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1341
+ get ie() {
1342
+ return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1343
+ },
1344
+ ce: {
1345
+ se: void 0,
1346
+ t: void 0
1347
+ },
1348
+ le: 7,
1349
+ get de() {
1350
+ const t = getYearMonthDay(e);
1351
+ return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
1352
+ },
1353
+ get me() {
1354
+ const t = getYearMonthDay(e).t;
1355
+ return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1);
1356
+ },
1357
+ ue: 12,
1358
+ get Te() {
1359
+ const t = getYearMonthDay(e).t;
1360
+ return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1) > 354;
1361
+ }
1362
+ } : epochDaysToDate$2("islamic-civil", e))(o) : "hebrew" === e ? ((e) => {
1369
1363
  const t = epochDaysToIsoDate(e);
1370
1364
  let o = divFloor(e + 2092590, 365.2468222) + 2;
1371
1365
  for (; calendarIntegersToEpochDays$4(o, 1, 1) > e; o--);
@@ -1400,11 +1394,8 @@ function canonicalizeEraInCalendar(e, t) {
1400
1394
  return yt[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1401
1395
  }
1402
1396
  function constrainMonthCode(e, t, o, n) {
1403
- if (isChineseDangi(e)) {
1404
- const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1405
- return o !== r && "reject" === n ? throwRangeError(b) : r;
1406
- }
1407
- return "hebrew" === e && o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
1397
+ const r = isChineseDangi(e) ? ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o) : "hebrew" === e && o[1] && !isLeapYear$2(t) ? [6, !1] : o;
1398
+ return o !== r && "reject" === n && throwRangeError(b), r;
1408
1399
  }
1409
1400
  function monthCodeToOrdinal(e, t, o) {
1410
1401
  return "hebrew" === e ? ((e, t) => t[0] + +(isLeapYear$2(e) && t[0] + +t[1] >= 6))(t, o) : isChineseDangi(e) ? ((e, t, o) => o[1] || ordinalMonthToMonthCode(e, t, o[0]) !== createMonthCode(...o) ? o[0] + 1 : o[0])(e, t, o) : o[0];
@@ -1433,14 +1424,13 @@ function constrainMonth(e, t, o, n) {
1433
1424
  return r !== o && "reject" === n && throwRangeError(b), r;
1434
1425
  }
1435
1426
  function balanceNonIsoYearMonth(e, t, o) {
1436
- if ("hebrew" === e) return ((e, t) => {
1427
+ return "hebrew" === e ? ((e, t) => {
1437
1428
  const o = monthNumber(e, 1) + t - 1, n = Math.floor((19 * (o - 1) + 17) / 235) + 1;
1438
1429
  return {
1439
1430
  t: n,
1440
1431
  u: o - monthNumber(n, 1) + 1
1441
1432
  };
1442
- })(t, o);
1443
- if (isChineseDangi(e)) return ((e, t, o) => {
1433
+ })(t, o) : isChineseDangi(e) ? ((e, t, o) => {
1444
1434
  if (isWithin(o, 1, 12)) return {
1445
1435
  t,
1446
1436
  u: o
@@ -1456,11 +1446,9 @@ function balanceNonIsoYearMonth(e, t, o) {
1456
1446
  t: i.t,
1457
1447
  u: i.u
1458
1448
  };
1459
- })(e, t, o);
1460
- const n = isCopticOrEthiopic(e) ? 13 : 12;
1461
- return {
1462
- t: t + divFloor(o - 1, n),
1463
- u: modFloor(o - 1, n) + 1
1449
+ })(e, t, o) : {
1450
+ t: t + divFloor(o - 1, +isCopticOrEthiopic(e) + 12),
1451
+ u: modFloor(o - 1, +isCopticOrEthiopic(e) + 12) + 1
1464
1452
  };
1465
1453
  }
1466
1454
  function parseMonthCode(e) {
@@ -1527,16 +1515,16 @@ function calendarMonthDayFromFields(e, t, o) {
1527
1515
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1528
1516
  }, o, "iso8601" === e);
1529
1517
  const n = t[wt.t];
1530
- let r = t[wt.u], a = mapUnlessUndefined(t[wt.v], parseMonthCode), i = t[wt.T];
1518
+ let r = t[wt.u], a = t[wt.v], i = t[wt.T];
1531
1519
  return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
1532
1520
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1533
1521
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1534
1522
  return o !== r && "reject" === n ? throwRangeError(b) : r;
1535
1523
  }
1536
- return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, isCopticOrEthiopic(e) ? 3 : 2, t[0], o, n);
1524
+ return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, +isCopticOrEthiopic(e) + 2, t[0], o, n);
1537
1525
  })(e, a, i, o), isChineseDangi(e) ? epochDaysToIsoDate(((e, t, o, n, r) => {
1538
- o && (1 === t || 12 === t || 30 === n && (2 === t || isWithin(t, 8, 11))) && ("reject" === r && throwRangeError(b), o = !1);
1539
- const a = ((e, t, o, n) => !o && n < 30 ? 30 * t + n > 356 ? 1971 : 1972 : o ? [
1526
+ o && (1 === t || 12 === t || 30 === n && !isWithin(t, 3, 7)) && ("reject" === r && throwRangeError(b), o = !1);
1527
+ const a = ((e, t, o, n) => o ? [
1540
1528
  1947,
1541
1529
  30 === n ? 1955 : 1966,
1542
1530
  30 === n ? 1944 : 1963,
@@ -1547,7 +1535,7 @@ function calendarMonthDayFromFields(e, t, o) {
1547
1535
  2014,
1548
1536
  1984,
1549
1537
  2033
1550
- ][t - 2] : [
1538
+ ][t - 2] : n < 30 ? 30 * t + n > 356 ? 1971 : 1972 : [
1551
1539
  1970,
1552
1540
  1972,
1553
1541
  "chinese" === e ? 1966 : 1968,
@@ -1562,12 +1550,9 @@ function calendarMonthDayFromFields(e, t, o) {
1562
1550
  1971
1563
1551
  ][t - 1])(e, t, o, n);
1564
1552
  return calendarIntegersToEpochDays$6(e, a, o || 1971 === a ? t + 1 : t, n);
1565
- })(e, a[0], a[1], i, o)) : isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : epochDaysToIsoDate("indian" === e ? ((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i) : "persian" === e ? ((e, t) => calendarIntegersToEpochDays(31 * e + t < 321 ? 1351 : 1350, e, t))(a[0], i) : "islamic-umalqura" === e ? ((e, t) => {
1566
- for (let o = 1392;; o--) if (constrainDay$2(o, e, t) === t) {
1567
- const n = calendarIntegersToEpochDays$1(o, e, t);
1568
- if (n <= 1095) return n;
1569
- }
1570
- })(a[0], i) : "hebrew" === e ? ((e, t, o) => t ? calendarIntegersToEpochDays$4(5730, 6, o) : calendarIntegersToEpochDays$4((2 !== e && 3 !== e || 30 !== o) && 30 * e + o < 147 ? 5733 : 5732, e, o))(a[0], a[1], i) : ((e, t, o) => calendarIntegersToEpochDays$2(e, 12 === t && 30 === o ? 1390 : +(30 * t + o <= 356 - +("islamic-civil" === e)) + 1391, t, o))(e, a[0], i));
1553
+ })(e, a[0], a[1], i, o)) : isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : epochDaysToIsoDate("indian" === e ? ((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i) : "persian" === e ? ((e, t) => calendarIntegersToEpochDays(+(31 * e + t < 321) + 1350, e, t))(a[0], i) : "islamic-umalqura" === e ? ((e, t) => {
1554
+ for (let o = +(30 * e + t < 356) + 1391;; o--) if (constrainDay$2(o, e, t) === t) return calendarIntegersToEpochDays$1(o, e, t);
1555
+ })(a[0], i) : "hebrew" === e ? ((e, t, o) => t ? calendarIntegersToEpochDays$4(5730, 6, o) : calendarIntegersToEpochDays$4((2 !== e && 3 !== e || 30 !== o) && 30 * e + o < 147 ? 5733 : 5732, e, o))(a[0], a[1], i) : ((e, t, o) => calendarIntegersToEpochDays$2(e, 12 === t && 30 === o ? 1390 : +(30 * t + o < 357 - ("islamic-civil" === e)) + 1391, t, o))(e, a[0], i));
1571
1556
  })(e, t, o);
1572
1557
  }
1573
1558
  function formatCalendarAnnotation(e, t) {
@@ -1625,29 +1610,19 @@ function calendarExtraFields(e, t) {
1625
1610
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1626
1611
  }
1627
1612
  function isoResolveFields(e, t) {
1628
- t !== q && void 0 === e[wt.t] && throwTypeError(missingField(wt.t)), t !== H && void 0 === e[wt.T] && throwTypeError(missingField(wt.T)), void 0 === e[wt.v] && void 0 === e[wt.u] && throwTypeError(missingField("month, monthCode"));
1629
- const o = mapUnlessUndefined(e[wt.v], parseMonthCode);
1630
- o && ((o[0] > 12 || o[1] || void 0 !== e[wt.u] && o[0] !== e[wt.u]) && throwRangeError(C), e[wt.u] = o[0]);
1613
+ const o = e[wt.v];
1614
+ t !== q && void 0 === e[wt.t] && throwTypeError(missingField(wt.t)), t !== H && void 0 === e[wt.T] && throwTypeError(missingField(wt.T)), void 0 === o && void 0 === e[wt.u] && throwTypeError(missingField("month, monthCode")), o && ((o[0] > 12 || o[1] || void 0 !== e[wt.u] && o[0] !== e[wt.u]) && throwRangeError(Y), e[wt.u] = o[0]);
1631
1615
  }
1632
1616
  function calendarResolveFields(e, t, o = z) {
1633
1617
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = z) {
1634
1618
  const n = t[wt.ne], r = t[wt.re], a = t[wt.t], i = t[wt.v], c = t[wt.u], s = t[wt.T];
1635
- if (o === q && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1636
- const o = ((e, t, o) => {
1637
- const n = yt[e].get(canonicalizeEraInCalendar(e, t));
1638
- return !1 === n ? 1 - o : n + o - 1;
1639
- })(e, canonicalizeEraInCalendar(e, n), r);
1640
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[wt.t] = o;
1641
- }
1642
- if (t[wt.ne] = t[wt.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1619
+ if (o === q && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r && (t[wt.t] = ((e, t, o) => {
1620
+ const n = yt[e].get(canonicalizeEraInCalendar(e, t));
1621
+ return !1 === n ? 1 - o : n + o - 1;
1622
+ })(e, canonicalizeEraInCalendar(e, n), r), void 0 !== a && a !== t[wt.t] && throwRangeError("mismatch of `year`, `era` and `eraYear`")), t[wt.ne] = t[wt.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1643
1623
  else if (i) {
1644
- const o = parseMonthCode(i);
1645
- ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, o) || throwRangeError(invalidMonthCode(i));
1646
- const n = t[wt.t];
1647
- if (void 0 !== n) {
1648
- const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, _));
1649
- void 0 !== c && c !== r && throwRangeError(C), t[wt.u] = r;
1650
- }
1624
+ const o = t[wt.t];
1625
+ ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, i) || throwRangeError(invalidMonthCode(createMonthCode(...i))), void 0 !== o && (t[wt.u] = monthCodeToOrdinal(e, o, constrainMonthCode(e, o, i, _)), void 0 !== c && c !== t[wt.u] && throwRangeError(Y));
1651
1626
  }
1652
1627
  })(e, t, o);
1653
1628
  }
@@ -2072,7 +2047,7 @@ function isoDateToFields(e, t, o) {
2072
2047
  const n = calendarIsoToDate(e, t);
2073
2048
  return createNullPrototypeObject({
2074
2049
  [wt.t]: o === q ? void 0 : n.t,
2075
- [wt.v]: n.v,
2050
+ [wt.v]: parseMonthCode(n.v),
2076
2051
  [wt.T]: o === H ? void 0 : n.T
2077
2052
  });
2078
2053
  }
@@ -2123,19 +2098,19 @@ function dateStyleToMonthStyle(e) {
2123
2098
  }
2124
2099
  function amendOptionsForPlainDate(e) {
2125
2100
  const t = createNullPrototypeObject(e);
2126
- return hasAnyOptions(e, Ct) || (hasAnyOptions(e, Yt) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Yt, "timeZoneName"]), t.timeZone = "UTC", t;
2101
+ return hasAnyOptions(e, Yt) || (hasAnyOptions(e, Ct) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Ct, "timeZoneName"]), t.timeZone = "UTC", t;
2127
2102
  }
2128
2103
  function amendOptionsForPlainTime(e) {
2129
2104
  const t = createNullPrototypeObject(e);
2130
- return hasAnyOptions(e, Yt) || (hasAnyOptions(e, Ct) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2131
- ...Ct,
2105
+ return hasAnyOptions(e, Ct) || (hasAnyOptions(e, Yt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2106
+ ...Yt,
2132
2107
  "era",
2133
2108
  "timeZoneName"
2134
2109
  ]), t.timeZone = "UTC", t;
2135
2110
  }
2136
2111
  function amendOptionsForPlainDateTime(e) {
2137
2112
  const t = createNullPrototypeObject(e);
2138
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Ct, ...Yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2113
+ return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Yt, ...Ct]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2139
2114
  }
2140
2115
  function amendOptionsForPlainYearMonth(e) {
2141
2116
  const t = createNullPrototypeObject(e);
@@ -2143,8 +2118,8 @@ function amendOptionsForPlainYearMonth(e) {
2143
2118
  "year",
2144
2119
  "month",
2145
2120
  "dateStyle"
2146
- ]) || (hasAnyOptions(e, [...Ct, ...Yt]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2147
- ...Yt,
2121
+ ]) || (hasAnyOptions(e, [...Yt, ...Ct]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2122
+ ...Ct,
2148
2123
  "day",
2149
2124
  "weekday",
2150
2125
  "timeZoneName"
@@ -2156,8 +2131,8 @@ function amendOptionsForPlainMonthDay(e) {
2156
2131
  "month",
2157
2132
  "day",
2158
2133
  "dateStyle"
2159
- ]) || (hasAnyOptions(e, [...Ct, ...Yt]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2160
- ...Yt,
2134
+ ]) || (hasAnyOptions(e, [...Yt, ...Ct]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2135
+ ...Ct,
2161
2136
  "era",
2162
2137
  "year",
2163
2138
  "weekday",
@@ -2166,7 +2141,7 @@ function amendOptionsForPlainMonthDay(e) {
2166
2141
  }
2167
2142
  function amendOptionsForInstant(e) {
2168
2143
  const t = createNullPrototypeObject(e);
2169
- return hasAnyOptions(e, [...Ct, ...Yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2144
+ return hasAnyOptions(e, [...Yt, ...Ct]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2170
2145
  }
2171
2146
  function hasAnyOptions(e, t) {
2172
2147
  return t.some((t) => void 0 !== e[t]);
@@ -2174,15 +2149,15 @@ function hasAnyOptions(e, t) {
2174
2149
  function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
2175
2150
  null === t && throwTypeError(N);
2176
2151
  const r = createNullPrototypeObject();
2177
- let a = new Zt(e, new Proxy({}, { get(e, o) {
2152
+ let a = Zt(e, new Proxy({}, { get(e, o) {
2178
2153
  const a = t[o];
2179
2154
  return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
2180
2155
  } }));
2181
2156
  return (o === z && r.timeStyle || o === V && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
2182
- ...Ct,
2183
2157
  ...Yt,
2158
+ ...Ct,
2184
2159
  "timeZoneName"
2185
- ]) || (r.timeZoneName = "short", a = new Zt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2160
+ ]) || (r.timeZoneName = "short", a = Zt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2186
2161
  Re: a,
2187
2162
  Ne: r,
2188
2163
  Ze: a.resolvedOptions().locale
@@ -2204,7 +2179,7 @@ function toDateTimeFormattable(e) {
2204
2179
  }
2205
2180
  function handleDateTimeValue(e, t) {
2206
2181
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2207
- return isPlainTime(t) ? [e.Ye ||= new Zt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Zt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Zt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Zt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Zt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Zt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
2182
+ return isPlainTime(t) ? [e.Ye ||= Zt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= Zt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= Zt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= Zt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= Zt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= Zt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(C), [e.Re, t]);
2208
2183
  }
2209
2184
  function DateTimeFormat(e, t) {
2210
2185
  return new Ut(e, t);
@@ -2259,7 +2234,7 @@ function clampEpochNanoseconds(e) {
2259
2234
  return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2260
2235
  }
2261
2236
  function systemTimeZoneIdentifier() {
2262
- return Ht && qt + Ht > Date.now() && xt ? xt : (qt = Date.now(), xt = new Zt().resolvedOptions().timeZone);
2237
+ return Ht && qt + Ht > Date.now() && xt ? xt : (qt = Date.now(), xt = Zt().resolvedOptions().timeZone || "UTC");
2263
2238
  }
2264
2239
  function setSystemTimeZoneIdCacheTtl(e) {
2265
2240
  Ht = e, e || (xt = void 0, qt = -1 / 0);
@@ -2289,8 +2264,8 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
2289
2264
  1e6,
2290
2265
  1e3,
2291
2266
  1
2292
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", P = "out-of-bounds date", R = "out-of-bounds duration", N = "invalid formatting options", Z = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, $ = "invalid `largestUnit` and `smallestUnit` options", C = "mismatch of `month` and `monthCode`", Y = "value is not formattable", notObject = (e) => `not object: ${e}`, U = "empty fields", j = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, L = /* @__PURE__ */ new WeakMap();
2293
- var k = class {
2267
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", P = "out-of-bounds date", R = "out-of-bounds duration", N = "invalid formatting options", Z = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, $ = "invalid `largestUnit` and `smallestUnit` options", Y = "mismatch of `month` and `monthCode`", C = "value is not formattable", notObject = (e) => `not object: ${e}`, U = "empty fields", j = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, L = /* @__PURE__ */ new WeakMap();
2268
+ var k = class DurationFormat {
2294
2269
  static supportedLocalesOf(e, t = void 0) {
2295
2270
  return A.supportedLocalesOf(e, t);
2296
2271
  }
@@ -2307,9 +2282,9 @@ var k = class {
2307
2282
  return getInternalSlotOrThrowForDurationFormat(this).Ae.resolvedOptions();
2308
2283
  }
2309
2284
  };
2310
- defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
2285
+ defineStringTag(k.prototype, "Intl.DurationFormat");
2311
2286
  const z = Symbol(), V = Symbol(), x = Symbol(), H = Symbol(), q = Symbol(), B = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", ce = "trunc", se = "halfCeil", le = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", he = "never", pe = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = [0, 0], Ee = compareEpochNanoseconds, Me = /* @__PURE__ */ new WeakMap();
2312
- var be = class {
2287
+ var be = class ZonedDateTime {
2313
2288
  constructor(e, t, o = "iso8601") {
2314
2289
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2315
2290
  validateString(t);
@@ -2515,9 +2490,9 @@ var be = class {
2515
2490
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2516
2491
  }
2517
2492
  };
2518
- defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
2493
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime");
2519
2494
  const Pe = globalThis.Temporal, Re = createNullPrototypeObject(), Ne = createNullPrototypeObject(), Ze = /* @__PURE__ */ new WeakMap();
2520
- var $e = class {
2495
+ var $e = class PlainDateTime {
2521
2496
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2522
2497
  const d = [
2523
2498
  e,
@@ -2679,9 +2654,9 @@ var $e = class {
2679
2654
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2680
2655
  }
2681
2656
  };
2682
- defineStringTag($e.prototype, "Temporal.PlainDateTime"), renameFunction($e, "PlainDateTime");
2683
- const Ce = /* @__PURE__ */ new WeakMap();
2684
- var Ye = class {
2657
+ defineStringTag($e.prototype, "Temporal.PlainDateTime");
2658
+ const Ye = /* @__PURE__ */ new WeakMap();
2659
+ var Ce = class PlainTime {
2685
2660
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2686
2661
  createTemporalTime(createTimeRecord(...[
2687
2662
  e,
@@ -2762,7 +2737,7 @@ var Ye = class {
2762
2737
  throwTypeError(j);
2763
2738
  }
2764
2739
  };
2765
- defineStringTag(Ye.prototype, "Temporal.PlainTime"), renameFunction(Ye, "PlainTime");
2740
+ defineStringTag(Ce.prototype, "Temporal.PlainTime");
2766
2741
  const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31", Ae = "[01]\\d|2[0-3]", Le = "[0-5]\\d", ke = `(?<a>${Ue})(?<x>-?)(?<b>${je})\\k<x>(?<c>${We})`, ze = optionalChain([
2767
2742
  `(?<d>${Ae})`,
2768
2743
  `(?<y>:?)(?<e>${Le})`,
@@ -2782,7 +2757,7 @@ const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31
2782
2757
  `[ tT]${ze}`,
2783
2758
  Be
2784
2759
  ])}${_e}${Ke}`), tt = createRegExp(`${xe}(?:${_e})?${Ke}`), ot = createRegExp(`${ke}[ tT]${ze}(?:${Be})(?:${_e})?${Ke}`), nt = createRegExp(`(${ke}[ tT]|[tT]?)${ze}(?<h>${Ve})?(?:${_e})?${Ke}`), rt = createRegExp(`(${xe}|${qe})(?:${_e})?${Ke}`), at = createRegExp(`(${xe}|${He})(?:${_e})?${Ke}`), it = [createRegExp(`${qe}(${_e})?(${Ge})*`), createRegExp(`${He}(${_e})?(${Ge})*`)], ct = createRegExp(Je), st = createRegExp(Xe), lt = createRegExp(Ve), dt = /* @__PURE__ */ new WeakMap();
2785
- var mt = class {
2760
+ var mt = class PlainMonthDay {
2786
2761
  constructor(e, t, o = "iso8601", n = 1972) {
2787
2762
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2788
2763
  validateString(o);
@@ -2833,9 +2808,9 @@ var mt = class {
2833
2808
  return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [wt.t], [])), _), t.Y);
2834
2809
  }
2835
2810
  };
2836
- defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
2811
+ defineStringTag(mt.prototype, "Temporal.PlainMonthDay");
2837
2812
  const ut = /* @__PURE__ */ new WeakMap();
2838
- var Tt = class {
2813
+ var Tt = class PlainYearMonth {
2839
2814
  constructor(e, t, o = "iso8601", n = 1) {
2840
2815
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2841
2816
  validateString(o);
@@ -2921,9 +2896,9 @@ var Tt = class {
2921
2896
  return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [wt.T], [])), _), t.Y);
2922
2897
  }
2923
2898
  };
2924
- defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
2899
+ defineStringTag(Tt.prototype, "Temporal.PlainYearMonth");
2925
2900
  const Dt = /* @__PURE__ */ new WeakMap();
2926
- var ht = class {
2901
+ var ht = class PlainDate {
2927
2902
  constructor(e, t, o, n = "iso8601") {
2928
2903
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2929
2904
  validateString(n);
@@ -3048,7 +3023,7 @@ var ht = class {
3048
3023
  throwTypeError(j);
3049
3024
  }
3050
3025
  };
3051
- defineStringTag(ht.prototype, "Temporal.PlainDate"), renameFunction(ht, "PlainDate");
3026
+ defineStringTag(ht.prototype, "Temporal.PlainDate");
3052
3027
  const pt = createNullPrototypeObject(), gt = {
3053
3028
  chinese: createLruCache(2e3),
3054
3029
  dangi: createLruCache(2e3)
@@ -3115,7 +3090,7 @@ const pt = createNullPrototypeObject(), gt = {
3115
3090
  [wt.re]: [toIntegerWithTruncation],
3116
3091
  [wt.t]: [toIntegerWithTruncation],
3117
3092
  [wt.u]: [toPositiveIntegerWithTruncation],
3118
- [wt.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3093
+ [wt.v]: [(e) => parseMonthCode(e)],
3119
3094
  [wt.T]: [toPositiveIntegerWithTruncation],
3120
3095
  [wt.D]: [toIntegerWithTruncation, 0],
3121
3096
  [wt.I]: [toIntegerWithTruncation, 0],
@@ -3129,7 +3104,7 @@ const pt = createNullPrototypeObject(), gt = {
3129
3104
  }],
3130
3105
  [wt.P]: [toTemporalTimeZoneIdentifier]
3131
3106
  }, Mt = /* @__PURE__ */ new WeakMap(), bt = signTimeDuration;
3132
- var Pt = class {
3107
+ var Pt = class Duration {
3133
3108
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3134
3109
  createTemporalDuration(createTemporalDurationSlot([
3135
3110
  e,
@@ -3251,7 +3226,7 @@ var Pt = class {
3251
3226
  throwTypeError(j);
3252
3227
  }
3253
3228
  };
3254
- defineStringTag(Pt.prototype, "Temporal.Duration"), renameFunction(Pt, "Duration");
3229
+ defineStringTag(Pt.prototype, "Temporal.Duration");
3255
3230
  const Rt = {
3256
3231
  [re]: Math.ceil,
3257
3232
  [ae]: Math.floor,
@@ -3272,13 +3247,13 @@ const Rt = {
3272
3247
  [de]: roundHalfCeil,
3273
3248
  [me]: roundHalfFloor,
3274
3249
  [ue]: roundHalfEven
3275
- }, Zt = globalThis.Intl.DateTimeFormat, $t = /* @__PURE__ */ new WeakMap(), Ct = [
3250
+ }, Zt = globalThis.Intl.DateTimeFormat, $t = /* @__PURE__ */ new WeakMap(), Yt = [
3276
3251
  "year",
3277
3252
  "month",
3278
3253
  "day",
3279
3254
  "weekday",
3280
3255
  "dateStyle"
3281
- ], Yt = [
3256
+ ], Ct = [
3282
3257
  "hour",
3283
3258
  "minute",
3284
3259
  "second",
@@ -3302,14 +3277,14 @@ var Ut = class {
3302
3277
  })(getInternalSlotOrThrowForDateTimeFormat(this), e);
3303
3278
  }
3304
3279
  formatRange(e, t) {
3305
- return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3280
+ return void 0 !== e && void 0 !== t || throwTypeError(C), ((e, t, o) => {
3306
3281
  validateSameTemporalType(t, o);
3307
3282
  const [n, r] = handleDateTimeValue(e, t);
3308
3283
  return n.formatRange(r, handleDateTimeValue(e, o)[1]);
3309
3284
  })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
3310
3285
  }
3311
3286
  formatRangeToParts(e, t) {
3312
- return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3287
+ return void 0 !== e && void 0 !== t || throwTypeError(C), ((e, t, o) => {
3313
3288
  validateSameTemporalType(t, o);
3314
3289
  const [n, r] = handleDateTimeValue(e, t);
3315
3290
  return n.formatRangeToParts(r, handleDateTimeValue(e, o)[1]);
@@ -3324,7 +3299,7 @@ jt.prototype.value = Wt;
3324
3299
  for (const e of ["formatRange", "formatRangeToParts"]) Zt.prototype[e] || delete Wt[e];
3325
3300
  Object.defineProperties(DateTimeFormat, jt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3326
3301
  const At = /* @__PURE__ */ new WeakMap();
3327
- var Lt = class {
3302
+ var Lt = class Instant {
3328
3303
  constructor(e) {
3329
3304
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3330
3305
  }
@@ -3384,7 +3359,7 @@ var Lt = class {
3384
3359
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3385
3360
  }
3386
3361
  };
3387
- defineStringTag(Lt.prototype, "Temporal.Instant"), renameFunction(Lt, "Instant");
3362
+ defineStringTag(Lt.prototype, "Temporal.Instant");
3388
3363
  const kt = { toTemporalInstant() {
3389
3364
  const e = Date.prototype.valueOf.call(this);
3390
3365
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
@@ -3404,7 +3379,7 @@ const Jt = {
3404
3379
  Instant: Lt,
3405
3380
  PlainDateTime: $e,
3406
3381
  PlainDate: ht,
3407
- PlainTime: Ye,
3382
+ PlainTime: Ce,
3408
3383
  PlainYearMonth: Tt,
3409
3384
  PlainMonthDay: mt,
3410
3385
  Duration: Pt,
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Intl, t as Temporal, i as toTemporalInstant } from "./src-BWXhKwwe.js";
1
+ export { r as Intl, t as Temporal, i as toTemporalInstant } from "./src-DIR5AiIq.js";
package/dist/shim.js CHANGED
@@ -4,5 +4,5 @@ function install(s) {
4
4
  function setSystemTimeZoneIdCacheTtl(t) {
5
5
  s(t);
6
6
  }
7
- import { a as t, i as a, n as s, r as e, t as l } from "./src-BWXhKwwe.js";
7
+ import { a as t, i as a, n as s, r as e, t as l } from "./src-DIR5AiIq.js";
8
8
  export { install, setSystemTimeZoneIdCacheTtl };
@@ -19,9 +19,6 @@ function defineStringTag(e, t) {
19
19
  configurable: !0
20
20
  });
21
21
  }
22
- function renameFunction(e, t) {
23
- Object.defineProperty(e, "name", { value: t });
24
- }
25
22
  function getNameFromUnit(e) {
26
23
  return y[e];
27
24
  }
@@ -349,7 +346,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
349
346
  return n || a.q(r, c), c;
350
347
  }
351
348
  function getFormatterForTimeZone(e) {
352
- return Ze[e] ||= new vt("en-u-hc-h23", {
349
+ return Ze[e] ||= vt("en-u-hc-h23", {
353
350
  timeZone: e,
354
351
  year: "numeric",
355
352
  month: "numeric",
@@ -1080,18 +1077,13 @@ function calendarExtraFields(e, t) {
1080
1077
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1081
1078
  }
1082
1079
  function isoResolveFields(e, t) {
1083
- t !== B && void 0 === e[ht.t] && throwTypeError(missingField(ht.t)), t !== x && void 0 === e[ht.T] && throwTypeError(missingField(ht.T)), void 0 === e[ht.P] && void 0 === e[ht.u] && throwTypeError(missingField("month, monthCode"));
1084
- const o = mapUnlessUndefined(e[ht.P], parseMonthCode);
1085
- o && ((o[0] > 12 || o[1] || void 0 !== e[ht.u] && o[0] !== e[ht.u]) && throwRangeError(j), e[ht.u] = o[0]);
1080
+ const o = e[ht.P];
1081
+ t !== B && void 0 === e[ht.t] && throwTypeError(missingField(ht.t)), t !== x && void 0 === e[ht.T] && throwTypeError(missingField(ht.T)), void 0 === o && void 0 === e[ht.u] && throwTypeError(missingField("month, monthCode")), o && ((o[0] > 12 || o[1] || void 0 !== e[ht.u] && o[0] !== e[ht.u]) && throwRangeError(j), e[ht.u] = o[0]);
1086
1082
  }
1087
1083
  function calendarResolveFields(e, t, o = V) {
1088
1084
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = V) {
1089
1085
  const n = t[ht.ne], r = t[ht.re], a = t[ht.t], i = t[ht.P], l = t[ht.u], c = t[ht.T];
1090
- if (o === B && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== x && void 0 === c && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1091
- const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1092
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[ht.t] = e;
1093
- }
1094
- t[ht.ne] = t[ht.re] = void 0, isoResolveFields(t, o);
1086
+ o === B && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== x && void 0 === c && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r && (t[ht.t] = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r), void 0 !== a && a !== t[ht.t] && throwRangeError("mismatch of `year`, `era` and `eraYear`")), t[ht.ne] = t[ht.re] = void 0, isoResolveFields(t, o);
1095
1087
  })(0, t, o);
1096
1088
  }
1097
1089
  function createEmptyCalendarFieldsRecord() {
@@ -1515,7 +1507,7 @@ function isoDateToFields(e, t, o) {
1515
1507
  const n = calendarIsoToDate(e, t);
1516
1508
  return createNullPrototypeObject({
1517
1509
  [ht.t]: o === B ? void 0 : n.t,
1518
- [ht.P]: n.P,
1510
+ [ht.P]: parseMonthCode(n.P),
1519
1511
  [ht.T]: o === x ? void 0 : n.T
1520
1512
  });
1521
1513
  }
@@ -1617,7 +1609,7 @@ function hasAnyOptions(e, t) {
1617
1609
  function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
1618
1610
  null === t && throwTypeError(N);
1619
1611
  const r = createNullPrototypeObject();
1620
- let a = new vt(e, new Proxy({}, { get(e, o) {
1612
+ let a = vt(e, new Proxy({}, { get(e, o) {
1621
1613
  const a = t[o];
1622
1614
  return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
1623
1615
  } }));
@@ -1625,7 +1617,7 @@ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
1625
1617
  ...Pt,
1626
1618
  ...Et,
1627
1619
  "timeZoneName"
1628
- ]) || (r.timeZoneName = "short", a = new vt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
1620
+ ]) || (r.timeZoneName = "short", a = vt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
1629
1621
  Ze: a,
1630
1622
  $e: r,
1631
1623
  Ne: a.resolvedOptions().locale
@@ -1647,7 +1639,7 @@ function toDateTimeFormattable(e) {
1647
1639
  }
1648
1640
  function handleDateTimeValue(e, t) {
1649
1641
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1650
- return isPlainTime(t) ? [e.Me ||= new vt(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(M), [e.Ue ||= new vt(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(M), [e.je ||= new vt(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(M), [e.Ce ||= new vt(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(M), [e.Ye ||= new vt(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new vt(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError($), [e.Ze, t]);
1642
+ return isPlainTime(t) ? [e.Me ||= vt(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(M), [e.Ue ||= vt(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(M), [e.je ||= vt(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(M), [e.Ce ||= vt(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(M), [e.Ye ||= vt(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= vt(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError($), [e.Ze, t]);
1651
1643
  }
1652
1644
  function DateTimeFormat(e, t) {
1653
1645
  return new bt(e, t);
@@ -1702,7 +1694,7 @@ function clampEpochNanoseconds(e) {
1702
1694
  return compareEpochNanoseconds(e, ve) > 0 ? ve : compareEpochNanoseconds(e, we) < 0 ? we : e;
1703
1695
  }
1704
1696
  function systemTimeZoneIdentifier() {
1705
- return Yt && Wt + Yt > Date.now() && Ct ? Ct : (Wt = Date.now(), Ct = new vt().resolvedOptions().timeZone);
1697
+ return Yt && Wt + Yt > Date.now() && Ct ? Ct : (Wt = Date.now(), Ct = vt().resolvedOptions().timeZone || "UTC");
1706
1698
  }
1707
1699
  function setSystemTimeZoneIdCacheTtl(e) {
1708
1700
  Yt = e, e || (Ct = void 0, Wt = -1 / 0);
@@ -1733,7 +1725,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
1733
1725
  1e3,
1734
1726
  1
1735
1727
  ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", R = "out-of-bounds date", Z = "out-of-bounds duration", N = "invalid formatting options", M = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, U = "invalid `largestUnit` and `smallestUnit` options", j = "mismatch of `month` and `monthCode`", $ = "value is not formattable", notObject = (e) => `not object: ${e}`, C = "empty fields", Y = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, z = /* @__PURE__ */ new WeakMap();
1736
- var k = class {
1728
+ var k = class DurationFormat {
1737
1729
  static supportedLocalesOf(e, t = void 0) {
1738
1730
  return A.supportedLocalesOf(e, t);
1739
1731
  }
@@ -1750,9 +1742,9 @@ var k = class {
1750
1742
  return getInternalSlotOrThrowForDurationFormat(this).Ae.resolvedOptions();
1751
1743
  }
1752
1744
  };
1753
- defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
1745
+ defineStringTag(k.prototype, "Intl.DurationFormat");
1754
1746
  const V = Symbol(), L = Symbol(), H = Symbol(), x = Symbol(), B = Symbol(), q = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", le = "trunc", ce = "halfCeil", se = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", pe = "never", he = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], Pe = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
1755
- var be = class {
1747
+ var be = class ZonedDateTime {
1756
1748
  constructor(e, t, o = "iso8601") {
1757
1749
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1758
1750
  validateString(t);
@@ -1958,9 +1950,9 @@ var be = class {
1958
1950
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.U);
1959
1951
  }
1960
1952
  };
1961
- defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
1953
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime");
1962
1954
  const Re = globalThis.Temporal, Ze = createNullPrototypeObject(), Ne = createNullPrototypeObject(), Me = /* @__PURE__ */ new WeakMap();
1963
- var Ue = class {
1955
+ var Ue = class PlainDateTime {
1964
1956
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = "iso8601") {
1965
1957
  const d = [
1966
1958
  e,
@@ -2122,9 +2114,9 @@ var Ue = class {
2122
2114
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2123
2115
  }
2124
2116
  };
2125
- defineStringTag(Ue.prototype, "Temporal.PlainDateTime"), renameFunction(Ue, "PlainDateTime");
2117
+ defineStringTag(Ue.prototype, "Temporal.PlainDateTime");
2126
2118
  const je = /* @__PURE__ */ new WeakMap();
2127
- var $e = class {
2119
+ var $e = class PlainTime {
2128
2120
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2129
2121
  createTemporalTime(createTimeRecord(...[
2130
2122
  e,
@@ -2205,7 +2197,7 @@ var $e = class {
2205
2197
  throwTypeError(Y);
2206
2198
  }
2207
2199
  };
2208
- defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2200
+ defineStringTag($e.prototype, "Temporal.PlainTime");
2209
2201
  const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31", Ae = "[01]\\d|2[0-3]", ze = "[0-5]\\d", ke = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${We})`, Ve = optionalChain([
2210
2202
  `(?<d>${Ae})`,
2211
2203
  `(?<y>:?)(?<e>${ze})`,
@@ -2225,7 +2217,7 @@ const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31
2225
2217
  `[ tT]${Ve}`,
2226
2218
  qe
2227
2219
  ])}${_e}${Ke}`), tt = createRegExp(`${He}(?:${_e})?${Ke}`), ot = createRegExp(`${ke}[ tT]${Ve}(?:${qe})(?:${_e})?${Ke}`), nt = createRegExp(`(${ke}[ tT]|[tT]?)${Ve}(?<h>${Le})?(?:${_e})?${Ke}`), rt = createRegExp(`(${He}|${Be})(?:${_e})?${Ke}`), at = createRegExp(`(${He}|${xe})(?:${_e})?${Ke}`), it = [createRegExp(`${Be}(${_e})?(${Ge})*`), createRegExp(`${xe}(${_e})?(${Ge})*`)], lt = createRegExp(Je), ct = createRegExp(Xe), st = createRegExp(Le), dt = /* @__PURE__ */ new WeakMap();
2228
- var mt = class {
2220
+ var mt = class PlainMonthDay {
2229
2221
  constructor(e, t, o = "iso8601", n = 1972) {
2230
2222
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2231
2223
  validateString(o);
@@ -2276,9 +2268,9 @@ var mt = class {
2276
2268
  return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, B), prepareCalendarFields(t.U, e, [ht.t], [])), _), t.U);
2277
2269
  }
2278
2270
  };
2279
- defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
2271
+ defineStringTag(mt.prototype, "Temporal.PlainMonthDay");
2280
2272
  const ut = /* @__PURE__ */ new WeakMap();
2281
- var Tt = class {
2273
+ var Tt = class PlainYearMonth {
2282
2274
  constructor(e, t, o = "iso8601", n = 1) {
2283
2275
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2284
2276
  validateString(o);
@@ -2364,9 +2356,9 @@ var Tt = class {
2364
2356
  return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, x), prepareCalendarFields(t.U, e, [ht.T], [])), _), t.U);
2365
2357
  }
2366
2358
  };
2367
- defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
2359
+ defineStringTag(Tt.prototype, "Temporal.PlainYearMonth");
2368
2360
  const Dt = /* @__PURE__ */ new WeakMap();
2369
- var pt = class {
2361
+ var pt = class PlainDate {
2370
2362
  constructor(e, t, o, n = "iso8601") {
2371
2363
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2372
2364
  validateString(n);
@@ -2491,7 +2483,7 @@ var pt = class {
2491
2483
  throwTypeError(Y);
2492
2484
  }
2493
2485
  };
2494
- defineStringTag(pt.prototype, "Temporal.PlainDate"), renameFunction(pt, "PlainDate");
2486
+ defineStringTag(pt.prototype, "Temporal.PlainDate");
2495
2487
  const ht = {
2496
2488
  ne: "era",
2497
2489
  re: "eraYear",
@@ -2527,7 +2519,7 @@ const ht = {
2527
2519
  [ht.re]: [toIntegerWithTruncation],
2528
2520
  [ht.t]: [toIntegerWithTruncation],
2529
2521
  [ht.u]: [toPositiveIntegerWithTruncation],
2530
- [ht.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2522
+ [ht.P]: [(e) => parseMonthCode(e)],
2531
2523
  [ht.T]: [toPositiveIntegerWithTruncation],
2532
2524
  [ht.D]: [toIntegerWithTruncation, 0],
2533
2525
  [ht.I]: [toIntegerWithTruncation, 0],
@@ -2541,7 +2533,7 @@ const ht = {
2541
2533
  }],
2542
2534
  [ht.Z]: [toTemporalTimeZoneIdentifier]
2543
2535
  }, It = /* @__PURE__ */ new WeakMap(), Ot = signTimeDuration;
2544
- var Ft = class {
2536
+ var Ft = class Duration {
2545
2537
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
2546
2538
  createTemporalDuration(createTemporalDurationSlot([
2547
2539
  e,
@@ -2663,7 +2655,7 @@ var Ft = class {
2663
2655
  throwTypeError(Y);
2664
2656
  }
2665
2657
  };
2666
- defineStringTag(Ft.prototype, "Temporal.Duration"), renameFunction(Ft, "Duration");
2658
+ defineStringTag(Ft.prototype, "Temporal.Duration");
2667
2659
  const St = {
2668
2660
  [re]: Math.ceil,
2669
2661
  [ae]: Math.floor,
@@ -2736,7 +2728,7 @@ Rt.prototype.value = Zt;
2736
2728
  for (const e of ["formatRange", "formatRangeToParts"]) vt.prototype[e] || delete Zt[e];
2737
2729
  Object.defineProperties(DateTimeFormat, Rt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2738
2730
  const Nt = /* @__PURE__ */ new WeakMap();
2739
- var Mt = class {
2731
+ var Mt = class Instant {
2740
2732
  constructor(e) {
2741
2733
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
2742
2734
  }
@@ -2796,7 +2788,7 @@ var Mt = class {
2796
2788
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
2797
2789
  }
2798
2790
  };
2799
- defineStringTag(Mt.prototype, "Temporal.Instant"), renameFunction(Mt, "Instant");
2791
+ defineStringTag(Mt.prototype, "Temporal.Instant");
2800
2792
  const Ut = { toTemporalInstant() {
2801
2793
  const e = Date.prototype.valueOf.call(this);
2802
2794
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "temporal-polyfill-lite",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "description": "Lightweight Temporal polyfill",
6
6
  "keywords": [
7
7
  "Temporal"