temporal-polyfill-lite 0.3.5 → 0.4.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.
@@ -27,8 +27,7 @@ function toPrimitive(e) {
27
27
  const t = e[Symbol.toPrimitive];
28
28
  if (null != t) {
29
29
  const o = Date.call.call(t, e, "string");
30
- if (!isObject(o)) return o;
31
- throwTypeError("cannot convert value to primitive");
30
+ return isObject(o) && throwTypeError("cannot convert value to primitive"), o;
32
31
  }
33
32
  return Date.prototype[Symbol.toPrimitive].call(e, "string");
34
33
  }
@@ -36,22 +35,22 @@ function toString(e) {
36
35
  return `${e}`;
37
36
  }
38
37
  function toBigInt(e) {
39
- return isObject(e) || "number" == typeof e ? BigInt.asIntN(2 ** 53 - 1, e) : BigInt(e);
38
+ return BigInt.asIntN(2 ** 53 - 1, e);
40
39
  }
41
40
  function toIntegerIfIntegral(e) {
42
- const t = Se(e);
41
+ const t = Fe(e);
43
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
44
43
  }
45
44
  function toIntegerWithTruncation(e) {
46
- const t = Se(e);
47
- return !isNaN(t) && isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
45
+ const t = Fe(e);
46
+ return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
48
47
  }
49
48
  function toPositiveIntegerWithTruncation(e) {
50
49
  const t = toIntegerWithTruncation(e);
51
50
  return t <= 0 && throwRangeError(invalidNumber(t)), t;
52
51
  }
53
52
  function getOptionsObject(e = createNullPrototypeObject()) {
54
- return isObject(e) || throwTypeError("invalid options object"), e;
53
+ return isObject(e) || throwTypeError(notObject(e)), e;
55
54
  }
56
55
  function getOption(e, t, o, n) {
57
56
  const r = e[t];
@@ -59,7 +58,7 @@ function getOption(e, t, o, n) {
59
58
  const a = toString(r);
60
59
  return o.includes(a) || throwRangeError(invalidField(t)), a;
61
60
  }
62
- function getRoundToOptionsObject(e = throwTypeError(Fe)) {
61
+ function getRoundToOptionsObject(e = throwTypeError(Oe)) {
63
62
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
64
63
  }
65
64
  function validateString(e) {
@@ -163,11 +162,11 @@ function negateTimeDuration(e) {
163
162
  return normalize(-e[0], -e[1]);
164
163
  }
165
164
  function signTimeDuration(e) {
166
- return ve(e, [0, 0]);
165
+ return we(e, [0, 0]);
167
166
  }
168
167
  function timeDurationToSubsecondsNumber(e, t, o) {
169
168
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Se(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
169
+ return e = absTimeDuration(e), n * Fe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
171
170
  }
172
171
  function roundTimeDurationByDays(e, t, o) {
173
172
  return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / i), .5) + .5 : 0), t, o), 0);
@@ -181,7 +180,7 @@ function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
181
180
  if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
182
181
  if (o === S || o === F && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
183
182
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(me);
183
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(de);
185
184
  })(e);
186
185
  const l = getPossibleEpochNanoseconds(r, s);
187
186
  for (const e of l) {
@@ -200,19 +199,19 @@ function toTemporalZonedDateTime(e, t) {
200
199
  }
201
200
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
201
  const l = prepareCalendarFields(i, e, [
203
- Ft.t,
204
- Ft.u,
205
- Ft.v,
206
- Ft.T,
207
- Ft.D,
208
- Ft.I,
209
- Ft.O,
210
- Ft.F,
211
- Ft.S,
212
- Ft.$,
213
- Ft.M,
214
- Ft.P
215
- ], [Ft.P]);
202
+ Ot.t,
203
+ Ot.u,
204
+ Ot.v,
205
+ Ot.T,
206
+ Ot.D,
207
+ Ot.I,
208
+ Ot.O,
209
+ Ot.F,
210
+ Ot.S,
211
+ Ot.$,
212
+ Ot.M,
213
+ Ot.P
214
+ ], [Ot.P]);
216
215
  o = l.timeZone, n = l.offset;
217
216
  const d = getOptionsObject(t);
218
217
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
@@ -220,7 +219,7 @@ function toTemporalZonedDateTime(e, t) {
220
219
  c = m.o, s = m.p;
221
220
  } else {
222
221
  validateString(e);
223
- const m = parseIsoDateTime(e, [Xe]);
222
+ const m = parseIsoDateTime(e, [Ge]);
224
223
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
224
  const u = getOptionsObject(t);
226
225
  r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
@@ -229,7 +228,7 @@ function toTemporalZonedDateTime(e, t) {
229
228
  return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
229
  }
231
230
  function createTemporalZonedDateTime(e, t, o, n) {
232
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Pe[e] && Pe[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
231
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
232
  }
234
233
  function createZonedDateTimeSlot(e, t, o, n) {
235
234
  return {
@@ -239,12 +238,12 @@ function createZonedDateTimeSlot(e, t, o, n) {
239
238
  W: n
240
239
  };
241
240
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, c = M) {
241
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = _, c = M) {
243
242
  const s = roundTemporalInstant(e.U, a, i, c), l = epochSeconds(s) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, s);
244
243
  return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
245
244
  }
246
245
  function addZonedDateTime(e, t, o) {
247
- if (0 === dateDurationSign(t.A)) return addInstant(e.U, t.p);
246
+ if (!dateDurationSign(t.A)) return addInstant(e.U, t.p);
248
247
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
248
  return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), g), t.p);
250
249
  }
@@ -254,18 +253,18 @@ function differenceZonedDateTime(e, t, o) {
254
253
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
254
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
256
255
  let i, c = differenceTime(r.p, a.p);
257
- for (let o = vt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), vt(c) === n); o++);
256
+ for (let o = wt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), wt(c) === n); o++);
258
257
  return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), c);
259
258
  }
260
259
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
260
  if (!isDateUnit(o)) return differenceInstant(e.U, t.U, n, r, a);
262
261
  const i = differenceZonedDateTime(e, t, o);
263
- return r === G && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
262
+ return r === _ && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
264
263
  }
265
264
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
265
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, q);
266
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
267
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, q);
269
268
  return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
270
269
  0,
271
270
  0,
@@ -288,18 +287,18 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
288
287
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
288
  return getIsoDateTimeFromOffsetNanoseconds(e.U, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
289
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Me.prototype)) {
292
- return Ee.set(t, e), t;
290
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
291
+ return ve.set(t, e), t;
293
292
  }
294
293
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
294
  return calendarIsoToDate(e.Y, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
295
  }
297
296
  function getInternalSlotForZonedDateTime(e) {
298
- return Ee.get(e);
297
+ return ve.get(e);
299
298
  }
300
299
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
300
  const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(he), t;
301
+ return t || throwTypeError(De), t;
303
302
  }
304
303
  function isZonedDateTime(e) {
305
304
  return !!getInternalSlotForZonedDateTime(e);
@@ -326,7 +325,7 @@ function clampEpochSecond(e) {
326
325
  }
327
326
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
328
327
  if ("UTC" === t) return 0;
329
- const r = clampEpochSecond(o), a = Pe[t] ||= createLruCache(5e3), i = a.C(r);
328
+ const r = clampEpochSecond(o), a = be[t] ||= createLruCache(5e3), i = a.C(r);
330
329
  if (void 0 !== i) return i;
331
330
  const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
332
331
  "year",
@@ -339,7 +338,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
339
338
  return n || a.B(r, s), s;
340
339
  }
341
340
  function getFormatterForTimeZone(e) {
342
- return be[e] ||= new Pt("en-u-hc-h23", {
341
+ return Me[e] ||= new bt("en-u-hc-h23", {
343
342
  timeZone: e,
344
343
  year: "numeric",
345
344
  month: "numeric",
@@ -390,16 +389,16 @@ function toTemporalTimeZoneIdentifier(e) {
390
389
  const t = ((e) => {
391
390
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
392
391
  const t = parseIsoDateTime(e, [
392
+ Ge,
393
393
  Xe,
394
394
  Qe,
395
395
  et,
396
396
  tt,
397
- ot,
398
- nt
397
+ ot
399
398
  ]).P, o = t.R || t.Z && "UTC" || t.N;
400
399
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
401
400
  })(e);
402
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t.G);
401
+ return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t._);
403
402
  }
404
403
  function getOffsetNanosecondsFor(e, t) {
405
404
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -421,7 +420,7 @@ function timeZoneEquals(e, t) {
421
420
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
422
421
  }
423
422
  function parseTimeZoneIdentifier(e) {
424
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { J: e });
423
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { _: parseDateTimeUtcOffset(e) / t } : { J: e });
425
424
  }
426
425
  function isOffsetTimeZoneIdentifier(e) {
427
426
  return /^[+-]/.test(e);
@@ -445,14 +444,14 @@ function combineIsoDateAndTimeRecord(e, t) {
445
444
  };
446
445
  }
447
446
  function interpretTemporalDateTimeFields(e, t, o) {
448
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ft.D], t[Ft.I], t[Ft.O], t[Ft.F], t[Ft.S], t[Ft.$], o));
447
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ot.D], t[Ot.I], t[Ot.O], t[Ot.F], t[Ot.S], t[Ot.$], o));
449
448
  }
450
449
  function toTemporalDateTime(e, t) {
451
450
  if (isObject(e)) {
452
451
  if (isPlainDateTime(e)) {
453
452
  getTemporalOverflowOption(getOptionsObject(t));
454
453
  const o = getInternalSlotOrThrowForPlainDateTime(e);
455
- return createTemporalDateTime(o._, o.Y);
454
+ return createTemporalDateTime(o.G, o.Y);
456
455
  }
457
456
  if (isZonedDateTime(e)) {
458
457
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -465,29 +464,29 @@ function toTemporalDateTime(e, t) {
465
464
  }
466
465
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
467
466
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
468
- Ft.t,
469
- Ft.u,
470
- Ft.v,
471
- Ft.T,
472
- Ft.D,
473
- Ft.I,
474
- Ft.O,
475
- Ft.F,
476
- Ft.S,
477
- Ft.$
467
+ Ot.t,
468
+ Ot.u,
469
+ Ot.v,
470
+ Ot.T,
471
+ Ot.D,
472
+ Ot.I,
473
+ Ot.O,
474
+ Ot.F,
475
+ Ot.S,
476
+ Ot.$
478
477
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
479
478
  }
480
479
  validateString(e);
481
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
480
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
482
481
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
483
482
  }
484
483
  function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
485
484
  const l = balanceTime(n, r, a, i, c, s);
486
485
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.K), l);
487
486
  }
488
- function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
489
- return Re.set(o, {
490
- _: validateIsoDateTime(e),
487
+ function createTemporalDateTime(e, t, o = Object.create(Re.prototype)) {
488
+ return Pe.set(o, {
489
+ G: validateIsoDateTime(e),
491
490
  Y: t
492
491
  }), o;
493
492
  }
@@ -503,7 +502,7 @@ function roundIsoDateTime(e, t, o, n) {
503
502
  }
504
503
  function differenceISODateTime(e, t, o, n) {
505
504
  let r = differenceTime(e.p, t.p);
506
- const a = vt(r);
505
+ const a = wt(r);
507
506
  let i = t.o;
508
507
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
509
508
  const c = largerOfTwoTemporalUnits(H, n), s = calendarDateUntil(o, e.o, i, c);
@@ -513,13 +512,13 @@ function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
513
512
  if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
514
513
  validateIsoDateTime(e), validateIsoDateTime(t);
515
514
  const c = differenceISODateTime(e, t, o, n);
516
- return a === G && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
515
+ return a === _ && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
517
516
  }
518
517
  function differenceTemporalPlainDateTime(e, t, o, n) {
519
518
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
520
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
521
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, H);
522
- return compareIsoDateTime(t._, r._) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t._, r._, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
519
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
520
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, H);
521
+ return compareIsoDateTime(t.G, r.G) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.G, r.G, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
523
522
  0,
524
523
  0,
525
524
  0,
@@ -533,21 +532,21 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
533
532
  ]));
534
533
  }
535
534
  function addDurationToDateTime(e, t, o, n) {
536
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t._.p, i.p);
537
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t._.o, adjustDateDurationRecord(i.A, c.K), a), c), t.Y);
535
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t.G.p, i.p);
536
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t.G.o, adjustDateDurationRecord(i.A, c.K), a), c), t.Y);
538
537
  }
539
538
  function validateIsoDateTime(e) {
540
539
  return ((e) => {
541
540
  const t = isoDateRecordToEpochDays(e.o);
542
541
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
543
- })(e) || throwRangeError(me), e;
542
+ })(e) || throwRangeError(de), e;
544
543
  }
545
544
  function getInternalSlotForPlainDateTime(e) {
546
- return Re.get(e);
545
+ return Pe.get(e);
547
546
  }
548
547
  function getInternalSlotOrThrowForPlainDateTime(e) {
549
548
  const t = getInternalSlotForPlainDateTime(e);
550
- return t || throwTypeError(he), t;
549
+ return t || throwTypeError(De), t;
551
550
  }
552
551
  function isPlainDateTime(e) {
553
552
  return !!getInternalSlotForPlainDateTime(e);
@@ -570,16 +569,16 @@ function differenceTime(e, t) {
570
569
  return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.$ - e.$);
571
570
  }
572
571
  function toTemporalTime(e, t) {
573
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e)._.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
572
+ if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).G.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
574
573
  validateString(e);
575
- const o = parseIsoDateTime(e, [tt]);
574
+ const o = parseIsoDateTime(e, [et]);
576
575
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
577
576
  }
578
577
  function toTimeRecordOrMidnight(e) {
579
578
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
580
579
  }
581
580
  function regulateTime(e, t, o, n, r, a, i) {
582
- return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(de), createTimeRecord(e, t, o, n, r, a));
581
+ return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(le), createTimeRecord(e, t, o, n, r, a));
583
582
  }
584
583
  function isValidTime(e, t, o, n, r, a) {
585
584
  return isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999);
@@ -595,23 +594,23 @@ function balanceTime(e, t, o, n, r, a) {
595
594
  K: divFloor(e, 24)
596
595
  };
597
596
  }
598
- function createTemporalTime(e, t = Object.create($e.prototype)) {
599
- return Ze.set(t, e), t;
597
+ function createTemporalTime(e, t = Object.create(Ze.prototype)) {
598
+ return Ne.set(t, e), t;
600
599
  }
601
600
  function toTemporalTimeRecord(e, t = !1) {
602
601
  let o = !1;
603
602
  const n = [
604
- Ft.D,
605
- Ft.S,
606
- Ft.F,
607
- Ft.I,
608
- Ft.$,
609
- Ft.O
603
+ Ot.D,
604
+ Ot.S,
605
+ Ot.F,
606
+ Ot.I,
607
+ Ot.$,
608
+ Ot.O
610
609
  ].map((n) => {
611
610
  const r = e[n];
612
611
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
613
612
  });
614
- return o || throwTypeError(Ie), [
613
+ return o || throwTypeError(fe), [
615
614
  0,
616
615
  3,
617
616
  5,
@@ -635,18 +634,18 @@ function roundTime(e, n, r, a) {
635
634
  return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
636
635
  }
637
636
  function differenceTemporalPlainTime(e, t, o, n) {
638
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, q);
637
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, q);
639
638
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.V, a.H, a.q)), a.L), e));
640
639
  }
641
640
  function addDurationToTime(e, t, o) {
642
641
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
643
642
  }
644
643
  function getInternalSlotOrThrowForPlainTime(e) {
645
- const t = Ze.get(e);
646
- return t || throwTypeError(he), t;
644
+ const t = Ne.get(e);
645
+ return t || throwTypeError(De), t;
647
646
  }
648
647
  function isPlainTime(e) {
649
- return Ze.has(e);
648
+ return Ne.has(e);
650
649
  }
651
650
  function optionalChain(e) {
652
651
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -658,39 +657,34 @@ function createRegExp(e) {
658
657
  return RegExp(`^(?:${e})$`);
659
658
  }
660
659
  function isAmbiguousTemporalTimeString(e) {
661
- return rt.some((t) => {
660
+ return nt.some((t) => {
662
661
  const o = e.match(t);
663
662
  return o && isSemanticallyValid(o.groups);
664
663
  });
665
664
  }
666
665
  function isTimeZoneIdentifier(e) {
667
- return at.test(e);
668
- }
669
- function parseAnnotationsAndGetCalendar(e) {
670
- let t, o = !1;
671
- for (const n of e.matchAll(Ke)) {
672
- const e = !!n[1];
673
- "u-ca" === n[2] ? t ? (e || o) && throwRangeError(le) : (t = n[3], e && (o = !0)) : e && throwRangeError(le);
674
- }
675
- return t;
676
- }
677
- function getTimeRecordFromMatchedGroups(e) {
678
- const t = (e.g || "").padEnd(9, "0");
679
- return createTimeRecord(Se(e.d || 0), Se(e.e || 0), clamp(Se(e.f || 0), 0, 59), Se(t.slice(0, 3)), Se(t.slice(3, 6)), Se(t.slice(6)));
666
+ return rt.test(e);
680
667
  }
681
668
  function isSemanticallyValid(e) {
682
- return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
669
+ return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Fe(e.a), Fe(e.b), Fe(e.c))) && (!e.n || isValidIsoDate(1972, Fe(e.m), Fe(e.n)));
683
670
  }
684
671
  function parseIsoDateTime(e, t) {
685
672
  for (const o of t) {
686
673
  const t = e.match(o);
687
- if (!t || !isSemanticallyValid(t.groups) || o === tt && isAmbiguousTemporalTimeString(e)) continue;
688
- const n = t.groups, r = parseAnnotationsAndGetCalendar(n.k || "");
689
- return n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(le), {
690
- t: mapUnlessUndefined(n.a || n.l, Se),
691
- u: Se(n.b || n.m || 1),
692
- T: Se(n.c || n.n || 1),
693
- p: n.d ? getTimeRecordFromMatchedGroups(n) : void 0,
674
+ if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
675
+ const n = t.groups;
676
+ let r;
677
+ if (n.k) {
678
+ let t = !1;
679
+ for (const [, o, a, i] of n.k.matchAll(Ke)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
680
+ }
681
+ n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
682
+ const a = (n.g || "").padEnd(9, "0");
683
+ return {
684
+ t: mapUnlessUndefined(n.a || n.l, Fe),
685
+ u: Fe(n.b || n.m || 1),
686
+ T: Fe(n.c || n.n || 1),
687
+ p: n.d ? createTimeRecord(Fe(n.d || 0), Fe(n.e || 0), clamp(Fe(n.f || 0), 0, 59), Fe(a.slice(0, 3)), Fe(a.slice(3, 6)), Fe(a.slice(6))) : void 0,
694
688
  P: {
695
689
  Z: !!n.i,
696
690
  N: n.h,
@@ -699,14 +693,14 @@ function parseIsoDateTime(e, t) {
699
693
  Y: r
700
694
  };
701
695
  }
702
- throwRangeError(le);
696
+ throwRangeError(parseError(e));
703
697
  }
704
698
  function parseDateTimeUtcOffset(e) {
705
- const o = e.match(ct);
706
- return o || throwRangeError(le), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
699
+ const o = e.match(it);
700
+ return o || throwRangeError(parseError(e)), Fe(`${o[1]}1`) * (36e11 * Fe(o[2]) + Fe(o[4] || "") * t + 1e9 * Fe(o[5] || "") + Fe((o[6] || "").padEnd(9, "0")) + 0);
707
701
  }
708
702
  function hasUtcOffsetSubMinuteParts(e) {
709
- return !!e.match(ct)[5];
703
+ return !!e.match(it)[5];
710
704
  }
711
705
  function toTemporalMonthDay(e, t) {
712
706
  if (isObject(e)) {
@@ -714,18 +708,18 @@ function toTemporalMonthDay(e, t) {
714
708
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
715
709
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
716
710
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
717
- Ft.t,
718
- Ft.u,
719
- Ft.v,
720
- Ft.T
711
+ Ot.t,
712
+ Ot.u,
713
+ Ot.v,
714
+ Ot.T
721
715
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
722
716
  }
723
717
  validateString(e);
724
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
718
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
725
719
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), u), h), n);
726
720
  }
727
- function createTemporalMonthDay(e, t, o = Object.create(lt.prototype)) {
728
- return st.set(o, {
721
+ function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
722
+ return ct.set(o, {
729
723
  o: validateIsoDate(e),
730
724
  Y: t
731
725
  }), o;
@@ -734,11 +728,11 @@ function temporalMonthDayToString(e, t) {
734
728
  return `${t === C || t === U || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
735
729
  }
736
730
  function getInternalSlotForPlainMonthDay(e) {
737
- return st.get(e);
731
+ return ct.get(e);
738
732
  }
739
733
  function getInternalSlotOrThrowForPlainMonthDay(e) {
740
734
  const t = getInternalSlotForPlainMonthDay(e);
741
- return t || throwTypeError(he), t;
735
+ return t || throwTypeError(De), t;
742
736
  }
743
737
  function isPlainMonthDay(e) {
744
738
  return !!getInternalSlotForPlainMonthDay(e);
@@ -749,13 +743,13 @@ function toTemporalYearMonth(e, t) {
749
743
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
750
744
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
751
745
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
752
- Ft.t,
753
- Ft.u,
754
- Ft.v
746
+ Ot.t,
747
+ Ot.u,
748
+ Ot.v
755
749
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
756
750
  }
757
751
  validateString(e);
758
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
752
+ const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
759
753
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), h), n);
760
754
  }
761
755
  function balanceIsoYearMonth(e, t) {
@@ -764,8 +758,8 @@ function balanceIsoYearMonth(e, t) {
764
758
  u: modFloor(t - 1, 12) + 1
765
759
  };
766
760
  }
767
- function createTemporalYearMonth(e, t, o = Object.create(mt.prototype)) {
768
- return dt.set(o, {
761
+ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
762
+ return lt.set(o, {
769
763
  o: validateIsoYearMonth(e),
770
764
  Y: t
771
765
  }), o;
@@ -775,7 +769,7 @@ function temporalYearMonthToString(e, t) {
775
769
  }
776
770
  function differenceTemporalPlainYearMonth(e, t, o, n) {
777
771
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
778
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
772
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
779
773
  const a = getDifferenceSettings(e, getOptionsObject(n), s, [x, H], V, z);
780
774
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
781
775
  0,
@@ -791,10 +785,10 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
791
785
  ]));
792
786
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
793
787
  ...isoDateToFields(t.Y, t.o, m),
794
- [Ft.T]: 1
788
+ [Ot.T]: 1
795
789
  }), h), c = calendarDateFromFields(t.Y, createNullPrototypeObject({
796
790
  ...isoDateToFields(t.Y, r.o, m),
797
- [Ft.T]: 1
791
+ [Ot.T]: 1
798
792
  }), h);
799
793
  let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, c, a.L), 0, 0), createTimeDurationFromSeconds(0));
800
794
  if (a.H !== V || 1 !== a.V) {
@@ -807,18 +801,18 @@ function addDurationToYearMonth(e, t, o, n) {
807
801
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
808
802
  return (r.A.X || r.A.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
809
803
  ...isoDateToFields(t.Y, t.o, m),
810
- [Ft.T]: 1
804
+ [Ot.T]: 1
811
805
  }), h), r.A, a), m), a), t.Y);
812
806
  }
813
807
  function validateIsoYearMonth(e) {
814
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(me), e;
808
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(de), e;
815
809
  }
816
810
  function getInternalSlotForPlainYearMonth(e) {
817
- return dt.get(e);
811
+ return lt.get(e);
818
812
  }
819
813
  function getInternalSlotOrThrowForPlainYearMonth(e) {
820
814
  const t = getInternalSlotForPlainYearMonth(e);
821
- return t || throwTypeError(he), t;
815
+ return t || throwTypeError(De), t;
822
816
  }
823
817
  function isPlainYearMonth(e) {
824
818
  return !!getInternalSlotForPlainYearMonth(e);
@@ -830,8 +824,8 @@ function createIsoDateRecord(e, t, o) {
830
824
  T: o
831
825
  };
832
826
  }
833
- function createTemporalDate(e, t, o = Object.create(Tt.prototype)) {
834
- return ut.set(o, {
827
+ function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
828
+ return mt.set(o, {
835
829
  o: validateIsoDate(e),
836
830
  Y: t
837
831
  }), o;
@@ -851,22 +845,22 @@ function toTemporalDate(e, t) {
851
845
  if (isPlainDateTime(e)) {
852
846
  getTemporalOverflowOption(getOptionsObject(t));
853
847
  const o = getInternalSlotOrThrowForPlainDateTime(e);
854
- return createTemporalDate(o._.o, o.Y);
848
+ return createTemporalDate(o.G.o, o.Y);
855
849
  }
856
850
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
857
851
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
858
- Ft.t,
859
- Ft.u,
860
- Ft.v,
861
- Ft.T
852
+ Ot.t,
853
+ Ot.u,
854
+ Ot.v,
855
+ Ot.T
862
856
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
863
857
  }
864
858
  validateString(e);
865
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
859
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
866
860
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
867
861
  }
868
862
  function regulateIsoDate(e, t, o, n) {
869
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(me), createIsoDateRecord(e, t, o));
863
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(le), createIsoDateRecord(e, t, o));
870
864
  }
871
865
  function isValidIsoDate(e, t, o) {
872
866
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -885,7 +879,7 @@ function compareIsoDate(e, t) {
885
879
  }
886
880
  function differenceTemporalPlainDate(e, t, o, n) {
887
881
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
888
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
882
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
889
883
  const a = getDifferenceSettings(e, getOptionsObject(n), s, [], H, H);
890
884
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
891
885
  0,
@@ -913,11 +907,11 @@ function addDurationToDate(e, t, o, n) {
913
907
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
914
908
  }
915
909
  function getInternalSlotForPlainDate(e) {
916
- return ut.get(e);
910
+ return mt.get(e);
917
911
  }
918
912
  function getInternalSlotOrThrowForPlainDate(e) {
919
913
  const t = getInternalSlotForPlainDate(e);
920
- return t || throwTypeError(he), t;
914
+ return t || throwTypeError(De), t;
921
915
  }
922
916
  function isPlainDate(e) {
923
917
  return !!getInternalSlotForPlainDate(e);
@@ -926,7 +920,7 @@ function validateIsoDate(e) {
926
920
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
927
921
  }
928
922
  function formatToParts(e, t) {
929
- return (Dt[e] ||= new Pt("en", {
923
+ return (Tt[e] ||= new bt("en", {
930
924
  year: "numeric",
931
925
  month: "numeric",
932
926
  day: "numeric",
@@ -947,7 +941,7 @@ function extractYearMonthDay(e, t) {
947
941
  };
948
942
  }
949
943
  function yearMonthDay(e, t) {
950
- const o = pt[e].C(t);
944
+ const o = ht[e].C(t);
951
945
  if (o) return o;
952
946
  const n = ((e, t) => {
953
947
  const o = formatToParts(e, t), n = [
@@ -961,17 +955,17 @@ function yearMonthDay(e, t) {
961
955
  T: toIntegerIfIntegral(n[2])
962
956
  };
963
957
  })(e, t);
964
- return pt[e].B(t, n), n;
958
+ return ht[e].B(t, n), n;
965
959
  }
966
960
  function getNewYear(e, t) {
967
- let o = ht[e].C(t);
961
+ let o = Dt[e].C(t);
968
962
  if (o) return o;
969
963
  let n = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), r = yearMonthDay(e, n);
970
964
  for (let o = 0; "M01" !== r.v; o++) {
971
965
  if (o > 20) throw new Error("unexpected calendar error");
972
966
  n += r.t < t ? 31 - r.T : -r.T, r = yearMonthDay(e, n);
973
967
  }
974
- return ht[e].B(t, n - r.T + 1), n - r.T + 1;
968
+ return Dt[e].B(t, n - r.T + 1), n - r.T + 1;
975
969
  }
976
970
  function ordinalMonthToMonthCode(e, t, o) {
977
971
  return yearMonthDay(e, getNewYear(e, t) + 30 * (o - 1)).v;
@@ -980,7 +974,7 @@ function calendarIntegersToEpochDays$6(e, t, o, n) {
980
974
  const r = getNewYear(e, t) + 30 * (o - 1);
981
975
  return r - yearMonthDay(e, r).T + n;
982
976
  }
983
- function daysInMonth$5(e, t, o) {
977
+ function daysInMonth$6(e, t, o) {
984
978
  return calendarIntegersToEpochDays$6(e, t, o + 1, 1) - calendarIntegersToEpochDays$6(e, t, o, 1);
985
979
  }
986
980
  function monthsInYear(e, t) {
@@ -1015,7 +1009,7 @@ function epochDaysToDate$6(e, t) {
1015
1009
  se: 7,
1016
1010
  get le() {
1017
1011
  const o = yearMonthDay(e, t);
1018
- return daysInMonth$5(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1012
+ return daysInMonth$6(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1019
1013
  },
1020
1014
  get de() {
1021
1015
  const o = yearMonthDay(e, t).t;
@@ -1035,7 +1029,7 @@ function epoch$1(e) {
1035
1029
  function mathematicalInLeapYear$2(e) {
1036
1030
  return +!((e + 1) % 4);
1037
1031
  }
1038
- function daysInMonth$4(e, t) {
1032
+ function daysInMonth$5(e, t) {
1039
1033
  return 13 === t ? 5 + mathematicalInLeapYear$2(e) : 30;
1040
1034
  }
1041
1035
  function calendarIntegersToEpochDays$5(e, t, o, n) {
@@ -1056,7 +1050,7 @@ function calendarIntegersToEpochDays$4(e, t, o) {
1056
1050
  const n = (newYearEpochDays(e + 1) - newYearEpochDays(e)) % 30 - 24;
1057
1051
  return newYearEpochDays(e) + (isLeapYear$2(e) ? Math.round(29.53 * (t - 1) + .35) : Math.ceil(29.5 * (t - 1))) + (1 === n && t >= 3 ? 1 : -1 === n && t >= 4 ? -1 : 0) + o - 1;
1058
1052
  }
1059
- function daysInMonth$3(e, t) {
1053
+ function daysInMonth$4(e, t) {
1060
1054
  return calendarIntegersToEpochDays$4(e, t + 1, 1) - calendarIntegersToEpochDays$4(e, t, 1);
1061
1055
  }
1062
1056
  function mathematicalInLeapYear$1(e) {
@@ -1065,7 +1059,7 @@ function mathematicalInLeapYear$1(e) {
1065
1059
  function firstDayOfYear(e) {
1066
1060
  return isoDateToEpochDays(e + 78, 2, 22 - mathematicalInLeapYear$1(e));
1067
1061
  }
1068
- function daysInMonth$2(e, t) {
1062
+ function daysInMonth$3(e, t) {
1069
1063
  return t > 6 || 1 === t && !mathematicalInLeapYear$1(e) ? 30 : 31;
1070
1064
  }
1071
1065
  function calendarIntegersToEpochDays$3(e, t, o) {
@@ -1077,7 +1071,7 @@ function epoch(e) {
1077
1071
  function isLeapYear$1(e) {
1078
1072
  return modFloor(11 * (e + 4), 30) < 11;
1079
1073
  }
1080
- function daysInMonth$1(e, t) {
1074
+ function daysInMonth$2(e, t) {
1081
1075
  return 12 === t ? isLeapYear$1(e) ? 30 : 29 : 29 + t % 2;
1082
1076
  }
1083
1077
  function calendarIntegersToEpochDays$2(e, t, o, n) {
@@ -1101,17 +1095,17 @@ function epochDaysToDate$2(e, t) {
1101
1095
  t: void 0
1102
1096
  },
1103
1097
  se: 7,
1104
- le: daysInMonth$1(o, n),
1098
+ le: daysInMonth$2(o, n),
1105
1099
  de: +isLeapYear$1(o) + 354,
1106
1100
  me: 12,
1107
1101
  ue: isLeapYear$1(o)
1108
1102
  };
1109
1103
  }
1110
1104
  function getYearMonthDay(e) {
1111
- const t = gt.C(e);
1105
+ const t = pt.C(e);
1112
1106
  if (t) return t;
1113
1107
  const o = extractYearMonthDay("islamic-umalqura", e);
1114
- return gt.B(e, o), o;
1108
+ return pt.B(e, o), o;
1115
1109
  }
1116
1110
  function getFirstDayOfMonth(e, t) {
1117
1111
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1124,10 +1118,10 @@ function constrainDay$2(e, t, o) {
1124
1118
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1125
1119
  }
1126
1120
  function startOfYear(e) {
1127
- const t = ft.C(e);
1121
+ const t = gt.C(e);
1128
1122
  if (t) return t;
1129
1123
  const o = isoDateToEpochDays(e + 621, 4, 1), n = extractYearMonthDay("persian", o), r = o - dayOfYearFromMonthDay(n.u, n.T) + 1;
1130
- return ft.B(e, r), r;
1124
+ return gt.B(e, r), r;
1131
1125
  }
1132
1126
  function dayOfYearFromMonthDay(e, t) {
1133
1127
  return 30 * (e - 1) + t + clamp(e - 1, 0, 6);
@@ -1153,8 +1147,11 @@ function getDate(e) {
1153
1147
  ae: e - n + 1
1154
1148
  };
1155
1149
  }
1150
+ function daysInMonth(e, t) {
1151
+ return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1152
+ }
1156
1153
  function canonicalizeCalendar(e) {
1157
- return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ot[e] ? e : throwRangeError(((e) => `calendar not supported in this polyfill: ${e}`)(e));
1154
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : It[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1158
1155
  }
1159
1156
  function calendarDateAdd(e, t, o, n) {
1160
1157
  if (isIsoLikeCalendar(e) || !o.ee && !o.te) return ((e, t, o) => {
@@ -1206,8 +1203,8 @@ function calendarDateUntil(e, t, o, n) {
1206
1203
  return createDateDurationRecord(s, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1207
1204
  }
1208
1205
  function calendarDateToIso(e, t, o) {
1209
- const n = t[Ft.t], r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1210
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ft.t], e[Ft.u], e[Ft.T], t))({
1206
+ const n = t[Ot.t], r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1207
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ot.t], e[Ot.u], e[Ot.T], t))({
1211
1208
  ...t,
1212
1209
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1213
1210
  }, o);
@@ -1216,40 +1213,36 @@ function calendarDateToIso(e, t, o) {
1216
1213
  return calendarIntegersToIso(e, n, c, constrainDay(e, n, c, i, o));
1217
1214
  }
1218
1215
  function nonIsoCalendarIsoToDate(e, t) {
1219
- const o = isoDateRecordToEpochDays(t);
1220
- if (isIsoLikeCalendar(e)) {
1221
- const n = {
1222
- ...isoCalendarIsoToDate(t),
1223
- ie: {
1224
- t: void 0,
1225
- ce: void 0
1226
- }
1227
- };
1228
- if ("japanese" === e) {
1229
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ot[e].get(r);
1230
- return {
1231
- oe: r,
1232
- ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1233
- ...n
1234
- };
1216
+ const o = isoDateRecordToEpochDays(t), n = {
1217
+ ...isoCalendarIsoToDate(t),
1218
+ ie: {
1219
+ t: void 0,
1220
+ ce: void 0
1235
1221
  }
1236
- return "gregory" === e ? {
1237
- oe: t.t > 0 ? "ce" : "bce",
1238
- ne: t.t > 0 ? t.t : 1 - t.t,
1222
+ };
1223
+ if ("japanese" === e) {
1224
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = It[e].get(r);
1225
+ return {
1226
+ oe: r,
1227
+ ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1239
1228
  ...n
1240
- } : "buddhist" === e ? {
1241
- oe: "be",
1242
- ne: t.t + 543,
1243
- ...n,
1244
- t: t.t + 543
1245
- } : {
1246
- oe: t.t >= 1912 ? "roc" : "broc",
1247
- ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1248
- ...n,
1249
- t: t.t - 1911
1250
1229
  };
1251
1230
  }
1252
- return isCopticOrEthiopic(e) ? ((e, t) => {
1231
+ return "gregory" === e ? {
1232
+ oe: t.t > 0 ? "ce" : "bce",
1233
+ ne: t.t > 0 ? t.t : 1 - t.t,
1234
+ ...n
1235
+ } : "buddhist" === e ? {
1236
+ oe: "be",
1237
+ ne: t.t + 543,
1238
+ ...n,
1239
+ t: t.t + 543
1240
+ } : "roc" === e ? {
1241
+ oe: t.t >= 1912 ? "roc" : "broc",
1242
+ ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1243
+ ...n,
1244
+ t: t.t - 1911
1245
+ } : isCopticOrEthiopic(e) ? ((e, t) => {
1253
1246
  const o = divFloor(t - epoch$1(e) + 365, 365.25) - 1, n = t - calendarIntegersToEpochDays$5(e, o, 1, 1) + 1, r = divFloor(n - 1, 30) + 1;
1254
1247
  return {
1255
1248
  oe: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
@@ -1265,7 +1258,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1265
1258
  t: void 0
1266
1259
  },
1267
1260
  se: 7,
1268
- le: daysInMonth$4(o, r),
1261
+ le: daysInMonth$5(o, r),
1269
1262
  de: mathematicalInLeapYear$2(o) + 365,
1270
1263
  me: 13,
1271
1264
  ue: !!mathematicalInLeapYear$2(o)
@@ -1288,7 +1281,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1288
1281
  t: void 0
1289
1282
  },
1290
1283
  se: 7,
1291
- le: daysInMonth$2(o, r),
1284
+ le: daysInMonth$3(o, r),
1292
1285
  de: 365 + n,
1293
1286
  me: 12,
1294
1287
  ue: !!n
@@ -1321,7 +1314,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1321
1314
  se: 7,
1322
1315
  get le() {
1323
1316
  const t = getDate(e);
1324
- return t.u <= 6 ? 31 : 12 !== t.u || isLeapYear(t.t) ? 30 : 29;
1317
+ return daysInMonth(t.t, t.u);
1325
1318
  },
1326
1319
  get de() {
1327
1320
  return isLeapYear(getDate(e).t) ? 366 : 365;
@@ -1392,7 +1385,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1392
1385
  t: void 0
1393
1386
  },
1394
1387
  se: 7,
1395
- le: daysInMonth$3(o, n),
1388
+ le: daysInMonth$4(o, n),
1396
1389
  de: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1397
1390
  me: isLeapYear$2(o) ? 13 : 12,
1398
1391
  ue: isLeapYear$2(o)
@@ -1400,17 +1393,17 @@ function nonIsoCalendarIsoToDate(e, t) {
1400
1393
  })(o) : epochDaysToDate$2(e, o);
1401
1394
  }
1402
1395
  function calendarSupportsEra(e) {
1403
- return !!Ot[e].size;
1396
+ return !!It[e].size;
1404
1397
  }
1405
1398
  function canonicalizeEraInCalendar(e, t) {
1406
1399
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1407
- return Ot[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1400
+ return It[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1408
1401
  }
1409
1402
  function constrainMonthCode(e, t, o, n) {
1410
- if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(me) : [6, !1] : o;
1403
+ if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(le) : [6, !1] : o;
1411
1404
  if (isChineseDangi(e)) {
1412
1405
  const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1413
- return o !== r && "reject" === n ? throwRangeError(me) : r;
1406
+ return o !== r && "reject" === n ? throwRangeError(le) : r;
1414
1407
  }
1415
1408
  return o;
1416
1409
  }
@@ -1433,12 +1426,12 @@ function isChineseDangi(e) {
1433
1426
  return "chinese" === e || "dangi" === e;
1434
1427
  }
1435
1428
  function constrainDay(e, t, o, n, r) {
1436
- const a = "persian" === e ? ((e, t, o) => t <= 6 ? clamp(o, 1, 31) : 12 !== t ? clamp(o, 1, 30) : o < 30 ? o : clamp(o, 1, isLeapYear(e) ? 30 : 29))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$5(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$4(t, o) : "indian" === e ? daysInMonth$2(t, o) : "hebrew" === e ? daysInMonth$3(t, o) : daysInMonth$1(t, o));
1437
- return n !== a && "reject" === r ? throwRangeError(me) : a;
1429
+ const a = "persian" === e ? ((e, t, o) => o < 30 ? o : clamp(o, 1, daysInMonth(e, t)))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$6(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$5(t, o) : "indian" === e ? daysInMonth$3(t, o) : "hebrew" === e ? daysInMonth$4(t, o) : daysInMonth$2(t, o));
1430
+ return n !== a && "reject" === r ? throwRangeError(le) : a;
1438
1431
  }
1439
1432
  function constrainMonth(e, t, o, n) {
1440
1433
  const r = isChineseDangi(e) ? ((e, t, o) => isWithin(o, 1, 12) ? o : clamp(o, 1, monthsInYear(e, t)))(e, t, o) : clamp(o, 1, "hebrew" === e && isLeapYear$2(t) || isCopticOrEthiopic(e) ? 13 : 12);
1441
- return r !== o && "reject" === n && throwRangeError(me), r;
1434
+ return r !== o && "reject" === n && throwRangeError(le), r;
1442
1435
  }
1443
1436
  function balanceNonIsoYearMonth(e, t, o) {
1444
1437
  if ("hebrew" === e) return ((e, t) => {
@@ -1475,7 +1468,7 @@ function parseMonthCode(e) {
1475
1468
  const t = toPrimitive(e);
1476
1469
  validateString(t);
1477
1470
  const o = t.match(/M(\d\d)(L?)/);
1478
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
1471
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Fe(o[1]), !!o[2]];
1479
1472
  }
1480
1473
  function createMonthCode(e, t = !1) {
1481
1474
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -1486,16 +1479,16 @@ function prepareCalendarFields(e, t, o, n) {
1486
1479
  let a = !1;
1487
1480
  for (const e of o) {
1488
1481
  const o = t[e];
1489
- void 0 !== o ? (a = !0, r[e] = yt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = yt[e][1]);
1482
+ void 0 !== o ? (a = !0, r[e] = St[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = St[e][1]);
1490
1483
  }
1491
- return n || a || throwTypeError(Ie), r;
1484
+ return n || a || throwTypeError(fe), r;
1492
1485
  }
1493
1486
  function calendarMergeFields(e, t, o) {
1494
1487
  const n = ((e, t) => {
1495
1488
  const o = [];
1496
- return void 0 !== t[Ft.u] && o.push(Ft.v), void 0 !== t[Ft.v] && o.push(Ft.u), !calendarSupportsEra(e) || void 0 === t[Ft.oe] && void 0 === t[Ft.ne] && void 0 === t[Ft.t] || o.push(Ft.oe, Ft.ne, Ft.t), !((e) => "japanese" === e)(e) || void 0 === t[Ft.T] && void 0 === t[Ft.u] && void 0 === t[Ft.v] || o.push(Ft.oe, Ft.ne), o;
1489
+ return void 0 !== t[Ot.u] && o.push(Ot.v), void 0 !== t[Ot.v] && o.push(Ot.u), !calendarSupportsEra(e) || void 0 === t[Ot.oe] && void 0 === t[Ot.ne] && void 0 === t[Ot.t] || o.push(Ot.oe, Ot.ne, Ot.t), !((e) => "japanese" === e)(e) || void 0 === t[Ot.T] && void 0 === t[Ot.u] && void 0 === t[Ot.v] || o.push(Ot.oe, Ot.ne), o;
1497
1490
  })(e, o), r = createEmptyCalendarFieldsRecord();
1498
- for (const e of St) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1491
+ for (const e of Ft) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1499
1492
  return r;
1500
1493
  }
1501
1494
  function toTemporalCalendarIdentifier(e) {
@@ -1503,15 +1496,15 @@ function toTemporalCalendarIdentifier(e) {
1503
1496
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1504
1497
  try {
1505
1498
  return parseIsoDateTime(e, [
1499
+ Ge,
1506
1500
  Xe,
1507
1501
  Qe,
1508
1502
  et,
1509
1503
  tt,
1510
- ot,
1511
- nt
1504
+ ot
1512
1505
  ]).Y || "iso8601";
1513
1506
  } catch {
1514
- return it.test(e) || throwRangeError(le), e;
1507
+ return at.test(e) || throwRangeError(parseError(e)), e;
1515
1508
  }
1516
1509
  })(e)));
1517
1510
  }
@@ -1528,29 +1521,21 @@ function calendarYearMonthFromFields(e, t, o) {
1528
1521
  function calendarMonthDayFromFields(e, t, o) {
1529
1522
  return calendarResolveFields(e, t, u), (function(e, t, o) {
1530
1523
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1531
- const n = regulateIsoDate(e[Ft.t] ?? 1972, e[Ft.u], e[Ft.T], t);
1524
+ const n = regulateIsoDate(e[Ot.t] ?? 1972, e[Ot.u], e[Ot.T], t);
1532
1525
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1533
1526
  })({
1534
1527
  ...t,
1535
1528
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1536
1529
  }, o, "iso8601" === e);
1537
- const n = t[Ft.t];
1538
- let r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1530
+ const n = t[Ot.t];
1531
+ let r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1539
1532
  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) => {
1540
- if (isChineseDangi(e)) {
1541
- const e = clamp(o, 1, 30);
1542
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1533
+ if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1534
+ const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1535
+ return o !== r && "reject" === n ? throwRangeError(le) : r;
1543
1536
  }
1544
- if ("islamic-umalqura" === e) {
1545
- const e = clamp(o, 1, 30);
1546
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1547
- }
1548
- if ("persian" === e) {
1549
- const e = clamp(o, 1, t[0] <= 6 ? 31 : 30);
1550
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1551
- }
1552
- return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : isCopticOrEthiopic(e) ? constrainDay(e, 3, t[0], o, n) : constrainDay(e, 2, t[0], o, n);
1553
- })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(me), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1537
+ 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);
1538
+ })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(le), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1554
1539
  if (12 === e && 30 === t) {
1555
1540
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
1556
1541
  }
@@ -1572,7 +1557,18 @@ function calendarMonthDayFromFields(e, t, o) {
1572
1557
  const t = calendarIntegersToEpochDays$6(e, 30 === n ? 1969 : 1972, 11, n);
1573
1558
  return t <= 1095 ? t : calendarIntegersToEpochDays$6(e, 1971, 12, n);
1574
1559
  }
1575
- return calendarIntegersToEpochDays$6(e, ((e, t, o, n) => 12 === t ? 1971 : !o && (n < 30 || 2 === t || 5 === t || 7 === t || 9 === t || 10 === t) ? 1972 : o ? 2 === t ? 1947 : 3 === t ? 30 === n ? 1955 : 1966 : 4 === t ? 30 === n ? 1944 : 1963 : 5 === t ? 30 === n ? 1952 : 1971 : 6 === t ? 30 === n ? 1941 : 1960 : 7 === t ? 30 === n ? 1938 : 1968 : 8 === t ? 1957 : 9 === t ? 2014 : 10 === t ? 1984 : 2033 : 1 === t || 4 === t ? 1970 : 3 === t ? "chinese" === e ? 1966 : 1968 : 1971)(e, t, o, n), r, n);
1560
+ return calendarIntegersToEpochDays$6(e, ((e, t, o, n) => 12 === t ? 1971 : !o && (n < 30 || 2 === t || 5 === t || 7 === t || 9 === t || 10 === t) ? 1972 : o ? [
1561
+ 1947,
1562
+ 30 === n ? 1955 : 1966,
1563
+ 30 === n ? 1944 : 1963,
1564
+ 30 === n ? 1952 : 1971,
1565
+ 30 === n ? 1941 : 1960,
1566
+ 30 === n ? 1938 : 1968,
1567
+ 1957,
1568
+ 2014,
1569
+ 1984,
1570
+ 2033
1571
+ ][t - 2] : 1 === t || 4 === t ? 1970 : 3 === t ? "chinese" === e ? 1966 : 1968 : 1971)(e, t, o, n), r, n);
1576
1572
  })(e, a[0], a[1], i)) : epochDaysToIsoDate(((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));
1577
1573
  })(e, t, o);
1578
1574
  }
@@ -1631,30 +1627,30 @@ function calendarExtraFields(e, t) {
1631
1627
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1632
1628
  }
1633
1629
  function isoResolveFields(e, t) {
1634
- t !== u && void 0 === e[Ft.t] && throwTypeError(missingField(Ft.t)), t !== m && void 0 === e[Ft.T] && throwTypeError(missingField(Ft.T)), void 0 === e[Ft.v] && void 0 === e[Ft.u] && throwTypeError(missingField("month, monthCode"));
1635
- const o = mapUnlessUndefined(e[Ft.v], parseMonthCode);
1636
- o && ((o[0] > 12 || o[1] || void 0 !== e[Ft.u] && o[0] !== e[Ft.u]) && throwRangeError(ge), e[Ft.u] = o[0]);
1630
+ t !== u && void 0 === e[Ot.t] && throwTypeError(missingField(Ot.t)), t !== m && void 0 === e[Ot.T] && throwTypeError(missingField(Ot.T)), void 0 === e[Ot.v] && void 0 === e[Ot.u] && throwTypeError(missingField("month, monthCode"));
1631
+ const o = mapUnlessUndefined(e[Ot.v], parseMonthCode);
1632
+ o && ((o[0] > 12 || o[1] || void 0 !== e[Ot.u] && o[0] !== e[Ot.u]) && throwRangeError(pe), e[Ot.u] = o[0]);
1637
1633
  }
1638
1634
  function calendarResolveFields(e, t, o = s) {
1639
1635
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = s) {
1640
- const n = t[Ft.oe], r = t[Ft.ne];
1641
- let a = t[Ft.t];
1642
- const i = t[Ft.v], c = t[Ft.u], l = t[Ft.T];
1636
+ const n = t[Ot.oe], r = t[Ot.ne];
1637
+ let a = t[Ot.t];
1638
+ const i = t[Ot.v], c = t[Ot.u], l = t[Ot.T];
1643
1639
  if (o === u && 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 !== m && void 0 === l && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1644
1640
  const o = ((e, t, o) => {
1645
- const n = canonicalizeEraInCalendar(e, t), r = Ot[e].get(n);
1641
+ const n = canonicalizeEraInCalendar(e, t), r = It[e].get(n);
1646
1642
  return !1 === r ? 1 - o : r + o - 1;
1647
1643
  })(e, canonicalizeEraInCalendar(e, n), r);
1648
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ft.t] = o;
1644
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ot.t] = o;
1649
1645
  }
1650
- if (t[Ft.oe] = t[Ft.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1646
+ if (t[Ot.oe] = t[Ot.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1651
1647
  else if (i) {
1652
1648
  const o = parseMonthCode(i);
1653
1649
  ((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));
1654
- const n = t[Ft.t];
1650
+ const n = t[Ot.t];
1655
1651
  if (void 0 !== n) {
1656
1652
  const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, h));
1657
- void 0 !== c && c !== r && throwRangeError(ge), t[Ft.u] = r;
1653
+ void 0 !== c && c !== r && throwRangeError(pe), t[Ot.u] = r;
1658
1654
  }
1659
1655
  }
1660
1656
  })(e, t, o);
@@ -1666,7 +1662,7 @@ function zeroDateDuration() {
1666
1662
  return createDateDurationRecord(0, 0, 0, 0);
1667
1663
  }
1668
1664
  function toInternalDurationRecord(e) {
1669
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[K], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1665
+ return combineDateAndTimeDuration(createDateDurationRecord(e[K], e[G], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1670
1666
  }
1671
1667
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1672
1668
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1699,9 +1695,9 @@ function combineDateAndTimeDuration(e, t) {
1699
1695
  };
1700
1696
  }
1701
1697
  function toTemporalDuration(e) {
1702
- return t = e, wt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1698
+ return t = e, yt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1703
1699
  const t = (e = asciiLowerCase(e)).match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/);
1704
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(le);
1700
+ t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1705
1701
  const o = balanceTime(0, 0, 0, 0, 0, 3600 * toIntegerWithTruncation((t[7] || "").padEnd(9, "0")) + 60 * toIntegerWithTruncation((t[9] || "").padEnd(9, "0")) + toIntegerWithTruncation((t[11] || "").padEnd(9, "0")));
1706
1702
  return applySignToDurationSlot(createTemporalDurationSlot([
1707
1703
  toIntegerWithTruncation(t[2] || ""),
@@ -1719,19 +1715,19 @@ function toTemporalDuration(e) {
1719
1715
  var t;
1720
1716
  }
1721
1717
  function durationSign(e) {
1722
- return sign(e.find((e) => 0 !== e) || 0);
1718
+ return sign(e.find((e) => e) || 0);
1723
1719
  }
1724
1720
  function dateDurationSign(e) {
1725
1721
  return sign(e.ee || e.te || e.X || e.K);
1726
1722
  }
1727
1723
  function internalDurationSign(e) {
1728
- return dateDurationSign(e.A) || vt(e.p);
1724
+ return dateDurationSign(e.A) || wt(e.p);
1729
1725
  }
1730
1726
  function validateDuration(...e) {
1731
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[_]) < 2 ** 32 && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(ue), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1727
+ e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[G]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(me), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1732
1728
  }
1733
1729
  function defaultTemporalLargestUnit(e) {
1734
- return (e.findIndex((e) => 0 !== e) + 10) % 10;
1730
+ return (e.findIndex((e) => e) + 10) % 10;
1735
1731
  }
1736
1732
  function toTemporalPartialDurationRecord(e) {
1737
1733
  isObject(e) || throwTypeError(notObject(e));
@@ -1747,7 +1743,7 @@ function toTemporalPartialDurationRecord(e) {
1747
1743
  2,
1748
1744
  0
1749
1745
  ].map((t) => mapUnlessUndefined(e[ce[t]], toIntegerIfIntegral));
1750
- return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1746
+ return t.every((e) => void 0 === e) && throwTypeError(fe), [
1751
1747
  9,
1752
1748
  5,
1753
1749
  8,
@@ -1763,8 +1759,8 @@ function toTemporalPartialDurationRecord(e) {
1763
1759
  function createTemporalDurationSlot(e) {
1764
1760
  return validateDuration(...e), e;
1765
1761
  }
1766
- function createTemporalDuration(e, t = Object.create(Et.prototype)) {
1767
- return wt.set(t, e), t;
1762
+ function createTemporalDuration(e, t = Object.create(vt.prototype)) {
1763
+ return yt.set(t, e), t;
1768
1764
  }
1769
1765
  function timeDurationFromComponents(e, t, o, n, c, s) {
1770
1766
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = c, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = s, normalize(Math.round((l - l % i) / i), l % i)));
@@ -1797,11 +1793,10 @@ function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1797
1793
  const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), h);
1798
1794
  l = roundNumberToIncrement(t.A.X + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.K), x).X, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1799
1795
  } else l = roundNumberToIncrement(t.A.K, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1800
- if (0 === l) T = o;
1801
- else {
1796
+ if (dateDurationSign(m)) {
1802
1797
  const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, h), n.p);
1803
1798
  T = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1804
- }
1799
+ } else T = o;
1805
1800
  const D = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, h), n.p);
1806
1801
  return {
1807
1802
  he: l,
@@ -1817,7 +1812,7 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1817
1812
  compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1818
1813
  const u = differenceEpochNanoseconds(m.pe, n), T = differenceEpochNanoseconds(m.pe, m.ge);
1819
1814
  let D = m.fe, h = m.pe;
1820
- return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1815
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? we(e, t) ? we(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1821
1816
  Oe: {
1822
1817
  Fe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1823
1818
  Se: h,
@@ -1832,7 +1827,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1832
1827
  let p = roundTimeDurationToIncrement(t.p, a * D, c);
1833
1828
  const f = addTimeDuration(p, negateTimeDuration(T));
1834
1829
  let I, O = !1, F = 0;
1835
- return vt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, c), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1830
+ return wt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, c), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1836
1831
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + F), p),
1837
1832
  Se: I,
1838
1833
  ye: O
@@ -1842,7 +1837,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1842
1837
  return {
1843
1838
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1844
1839
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1845
- ye: sign(s - i[0]) === vt(i)
1840
+ ye: sign(s - i[0]) === wt(i)
1846
1841
  };
1847
1842
  })(e, o, i, c, s, l);
1848
1843
  return m.ye && s !== x ? ((e, t, o, n, r, a, i, c) => {
@@ -1850,9 +1845,9 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1850
1845
  const s = i;
1851
1846
  let l;
1852
1847
  for (let i = c - 1; i >= s; i--) if (i !== X || s === X) {
1853
- l = i === _ ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === K ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1848
+ l = i === K ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === G ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1854
1849
  const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1855
- if (vt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1850
+ if (wt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1856
1851
  t = combineDateAndTimeDuration(l, createTimeDurationFromSeconds(0));
1857
1852
  }
1858
1853
  return t;
@@ -1869,7 +1864,7 @@ function temporalDurationToString(e, t) {
1869
1864
  "D",
1870
1865
  "H",
1871
1866
  "M"
1872
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${vt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1867
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${wt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1873
1868
  return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1874
1869
  }
1875
1870
  function addDurations(e, t, o) {
@@ -1877,14 +1872,14 @@ function addDurations(e, t, o) {
1877
1872
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1878
1873
  }
1879
1874
  function getInternalSlotOrThrowForDuration(e) {
1880
- const t = wt.get(e);
1881
- return t || throwTypeError(he), t;
1875
+ const t = yt.get(e);
1876
+ return t || throwTypeError(De), t;
1882
1877
  }
1883
1878
  function applySignToDurationSlot(e, t) {
1884
1879
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1885
1880
  }
1886
1881
  function validateTimeDurationRange(e) {
1887
- return ((e) => ve(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(ue), e;
1882
+ return ((e) => we(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(me), e;
1888
1883
  }
1889
1884
  function balanceTimeDuration(e, t) {
1890
1885
  const o = clamp(t, 3, 9);
@@ -1965,15 +1960,14 @@ function getTemporalShowCalendarNameOption(e) {
1965
1960
  ], $);
1966
1961
  }
1967
1962
  function validateTemporalRoundingIncrement(e, t, o) {
1968
- (e > (o ? t : t - 1) || t % e !== 0) && throwRangeError(invalidField("roundingIncrement"));
1963
+ (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
1969
1964
  }
1970
1965
  function getTemporalFractionalSecondDigitsOption(e) {
1971
1966
  const t = "fractionalSecondDigits", o = e[t];
1972
- if (void 0 === o) return;
1973
- if ("number" != typeof o) return void ("auto" !== toString(o) && throwRangeError(invalidField(t)));
1974
- !isNaN(o) && isFinite(o) || throwRangeError(invalidField(t));
1975
- const n = Math.floor(o);
1976
- return isWithin(n, 0, 9) || throwRangeError(invalidField(t)), n;
1967
+ if (void 0 !== o) {
1968
+ if ("number" == typeof o) return isWithin(Math.floor(o), 0, 9) || throwRangeError(invalidField(t)), 0 | o;
1969
+ "auto" !== toString(o) && throwRangeError(invalidField(t));
1970
+ }
1977
1971
  }
1978
1972
  function toSecondsStringPrecisionRecord(e, t) {
1979
1973
  return e ? {
@@ -2007,26 +2001,26 @@ function getTemporalRelativeToOption(e) {
2007
2001
  if (isZonedDateTime(t)) return createNullPrototypeObject({ Me: getInternalSlotOrThrowForZonedDateTime(t) });
2008
2002
  if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
2009
2003
  const e = getInternalSlotForPlainDateTime(t);
2010
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.Y)) });
2004
+ if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.G.o, e.Y)) });
2011
2005
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2012
2006
  const c = prepareCalendarFields(r, t, [
2013
- Ft.t,
2014
- Ft.u,
2015
- Ft.v,
2016
- Ft.T,
2017
- Ft.D,
2018
- Ft.I,
2019
- Ft.O,
2020
- Ft.F,
2021
- Ft.S,
2022
- Ft.$,
2023
- Ft.M,
2024
- Ft.P
2007
+ Ot.t,
2008
+ Ot.u,
2009
+ Ot.v,
2010
+ Ot.T,
2011
+ Ot.D,
2012
+ Ot.I,
2013
+ Ot.O,
2014
+ Ot.F,
2015
+ Ot.S,
2016
+ Ot.$,
2017
+ Ot.M,
2018
+ Ot.P
2025
2019
  ], []), l = interpretTemporalDateTimeFields(r, c, h);
2026
2020
  a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? F : y;
2027
2021
  } else {
2028
2022
  validateString(t);
2029
- const e = parseIsoDateTime(t, [Xe, Qe]);
2023
+ const e = parseIsoDateTime(t, [Ge, Xe]);
2030
2024
  n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? S : n ? F : y, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2031
2025
  }
2032
2026
  return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, c), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
@@ -2052,13 +2046,13 @@ function validatePartialTemporalObject(e) {
2052
2046
  }
2053
2047
  function formatFractionalSeconds(e, t) {
2054
2048
  const o = toZeroPaddedDecimalString(e, 9);
2055
- return void 0 === t ? 0 === e ? "" : `.${o.replace(/0*$/, "")}` : 0 === t ? "" : `.${o.slice(0, t)}`;
2049
+ return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
2056
2050
  }
2057
2051
  function formatTimeString(e, t, o, n, r) {
2058
2052
  return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2059
2053
  }
2060
2054
  function roundNumberToIncrement(e, t, o) {
2061
- return Mt[o](e / t) * t;
2055
+ return Et[o](e / t) * t;
2062
2056
  }
2063
2057
  function getRoundingModeOption(e, t) {
2064
2058
  return getOption(e, "roundingMode", [
@@ -2080,15 +2074,15 @@ function getRoundingIncrementOption(e) {
2080
2074
  function isoDateToFields(e, t, o) {
2081
2075
  const n = calendarIsoToDate(e, t);
2082
2076
  return createNullPrototypeObject({
2083
- [Ft.t]: o === u ? void 0 : n.t,
2084
- [Ft.v]: n.v,
2085
- [Ft.T]: o === m ? void 0 : n.T
2077
+ [Ot.t]: o === u ? void 0 : n.t,
2078
+ [Ot.v]: n.v,
2079
+ [Ot.T]: o === m ? void 0 : n.T
2086
2080
  });
2087
2081
  }
2088
2082
  function getDifferenceSettings(e, t, o, n, r, a) {
2089
2083
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2090
2084
  const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2091
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2085
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(he), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2092
2086
  H: l,
2093
2087
  L: i,
2094
2088
  q: -1 === e ? negateRoundingMode(s) : s,
@@ -2109,17 +2103,17 @@ function epochDaysToIsoDate(e) {
2109
2103
  function isoDateTimeToFields(e, t) {
2110
2104
  return createNullPrototypeObject({
2111
2105
  ...isoDateToFields(e, t.o, s),
2112
- [Ft.D]: t.p.D,
2113
- [Ft.I]: t.p.I,
2114
- [Ft.O]: t.p.O,
2115
- [Ft.F]: t.p.F,
2116
- [Ft.S]: t.p.S,
2117
- [Ft.$]: t.p.$
2106
+ [Ot.D]: t.p.D,
2107
+ [Ot.I]: t.p.I,
2108
+ [Ot.O]: t.p.O,
2109
+ [Ot.F]: t.p.F,
2110
+ [Ot.S]: t.p.S,
2111
+ [Ot.$]: t.p.$
2118
2112
  });
2119
2113
  }
2120
2114
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2121
- const t = Rt.get(e);
2122
- return t || throwTypeError(he), t;
2115
+ const t = Pt.get(e);
2116
+ return t || throwTypeError(De), t;
2123
2117
  }
2124
2118
  function formatDateTime(e, t) {
2125
2119
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -2133,19 +2127,19 @@ function dateStyleToMonthStyle(e) {
2133
2127
  }
2134
2128
  function amendOptionsForPlainDate(e) {
2135
2129
  const t = createNullPrototypeObject(e);
2136
- return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Zt) && throwTypeError(Te), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Zt, "timeZoneName"]), t.timeZone = "UTC", t;
2130
+ return hasAnyOptions(e, Rt) || (hasAnyOptions(e, Nt) && throwTypeError(ue), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Nt, "timeZoneName"]), t.timeZone = "UTC", t;
2137
2131
  }
2138
2132
  function amendOptionsForPlainTime(e) {
2139
2133
  const t = createNullPrototypeObject(e);
2140
- return hasAnyOptions(e, Zt) || (hasAnyOptions(e, Nt) && throwTypeError(Te), 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, [
2141
- ...Nt,
2134
+ return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Rt) && throwTypeError(ue), 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, [
2135
+ ...Rt,
2142
2136
  "era",
2143
2137
  "timeZoneName"
2144
2138
  ]), t.timeZone = "UTC", t;
2145
2139
  }
2146
2140
  function amendOptionsForPlainDateTime(e) {
2147
2141
  const t = createNullPrototypeObject(e);
2148
- 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, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2142
+ 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, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2149
2143
  }
2150
2144
  function amendOptionsForPlainYearMonth(e) {
2151
2145
  const t = createNullPrototypeObject(e);
@@ -2153,8 +2147,8 @@ function amendOptionsForPlainYearMonth(e) {
2153
2147
  "year",
2154
2148
  "month",
2155
2149
  "dateStyle"
2156
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2157
- ...Zt,
2150
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2151
+ ...Nt,
2158
2152
  "day",
2159
2153
  "weekday",
2160
2154
  "timeZoneName"
@@ -2166,8 +2160,8 @@ function amendOptionsForPlainMonthDay(e) {
2166
2160
  "month",
2167
2161
  "day",
2168
2162
  "dateStyle"
2169
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2170
- ...Zt,
2163
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2164
+ ...Nt,
2171
2165
  "era",
2172
2166
  "year",
2173
2167
  "weekday",
@@ -2176,23 +2170,23 @@ function amendOptionsForPlainMonthDay(e) {
2176
2170
  }
2177
2171
  function amendOptionsForInstant(e) {
2178
2172
  const t = createNullPrototypeObject(e);
2179
- return hasAnyOptions(e, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2173
+ return hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2180
2174
  }
2181
2175
  function hasAnyOptions(e, t) {
2182
2176
  return t.some((t) => void 0 !== e[t]);
2183
2177
  }
2184
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Ct.prototype)) {
2185
- null === t && throwTypeError(Te);
2178
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create($t.prototype)) {
2179
+ null === t && throwTypeError(ue);
2186
2180
  const a = createNullPrototypeObject();
2187
- let i = new Pt(e, new Proxy(Object(t), { get(e, t) {
2188
- const o = e[t];
2189
- return "timeZone" === t && void 0 !== n ? (void 0 !== o && throwTypeError("disallowed field: timeZone"), a[t] = n) : void 0 === o ? o : a[t] = "hour12" === t ? ((e) => !!e)(o) : "fractionalSecondDigits" === t ? Se(o) : toString(o);
2181
+ let i = new bt(e, new Proxy({}, { get(e, o) {
2182
+ const r = t[o];
2183
+ return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Fe(r) : toString(r);
2190
2184
  } }));
2191
- return (o === s && a.timeStyle || o === l && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2185
+ return (o === s && a.timeStyle || o === l && a.dateStyle) && throwTypeError(ue), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2186
+ ...Rt,
2192
2187
  ...Nt,
2193
- ...Zt,
2194
2188
  "timeZoneName"
2195
- ]) || (a.timeZoneName = "short", i = new Pt(i.resolvedOptions().locale, a)), Rt.set(r, createNullPrototypeObject({
2189
+ ]) || (a.timeZoneName = "short", i = new bt(i.resolvedOptions().locale, a)), Pt.set(r, createNullPrototypeObject({
2196
2190
  Pe: i,
2197
2191
  Re: a,
2198
2192
  Ne: i.resolvedOptions().locale
@@ -2210,14 +2204,14 @@ function validateSameTemporalType(e, t) {
2210
2204
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
2211
2205
  }
2212
2206
  function toDateTimeFormattable(e) {
2213
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
2207
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Fe(e);
2214
2208
  }
2215
2209
  function handleDateTimeValue(e, t) {
2216
2210
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2217
- return isPlainTime(t) ? [e.Ze ||= new Pt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(De), [e.Ye ||= new Pt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(De), [e.Ce ||= new Pt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n._))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(De), [e.Ue ||= new Pt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(De), [e.je ||= new Pt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new Pt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(fe), [e.Pe, t]);
2211
+ return isPlainTime(t) ? [e.Ze ||= new bt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(Te), [e.Ye ||= new bt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(Te), [e.Ce ||= new bt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n.G))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(Te), [e.Ue ||= new bt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(Te), [e.je ||= new bt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new bt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(ge), [e.Pe, t]);
2218
2212
  }
2219
2213
  function DateTimeFormat(e, t) {
2220
- return new Ct(e, t);
2214
+ return new $t(e, t);
2221
2215
  }
2222
2216
  function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2223
2217
  return Ut.set(t, { U: e }), t;
@@ -2229,7 +2223,7 @@ function toTemporalInstant$1(e) {
2229
2223
  e = toPrimitive(e);
2230
2224
  }
2231
2225
  validateString(e);
2232
- const t = parseIsoDateTime(e, [et]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2226
+ const t = parseIsoDateTime(e, [Qe]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2233
2227
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.$ - o))));
2234
2228
  }
2235
2229
  function addInstant(e, t) {
@@ -2240,7 +2234,7 @@ function differenceInstant(e, t, o, n, r) {
2240
2234
  }
2241
2235
  function roundTemporalInstant(e, t, o, n) {
2242
2236
  return (function(e, t, o) {
2243
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => bt[o](e / t) * t)(e[1], t, o));
2237
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Mt[o](e / t) * t)(e[1], t, o));
2244
2238
  })(e, t * nanosecondsForTimeUnit(o), n);
2245
2239
  }
2246
2240
  function temporalInstantToString(e, t, o) {
@@ -2248,7 +2242,7 @@ function temporalInstantToString(e, t, o) {
2248
2242
  return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, Y)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2249
2243
  }
2250
2244
  function differenceTemporalInstant(e, t, o, n) {
2251
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, J);
2245
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, J);
2252
2246
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.U, r.U, a.V, a.H, a.q), a.L), e));
2253
2247
  }
2254
2248
  function addDurationToInstant(e, t, o) {
@@ -2256,23 +2250,23 @@ function addDurationToInstant(e, t, o) {
2256
2250
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.U, toInternalDurationRecordWith24HourDays(n).p));
2257
2251
  }
2258
2252
  function validateEpochNanoseconds(e) {
2259
- return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(me), e;
2253
+ return ((e) => compareEpochNanoseconds(Se, e) * compareEpochNanoseconds(ye, e) <= 0)(e) || throwRangeError(de), e;
2260
2254
  }
2261
2255
  function getInternalSlotForInstant(e) {
2262
2256
  return Ut.get(e);
2263
2257
  }
2264
2258
  function getInternalSlotOrThrowForInstant(e) {
2265
2259
  const t = getInternalSlotForInstant(e);
2266
- return t || throwTypeError(he), t;
2260
+ return t || throwTypeError(De), t;
2267
2261
  }
2268
2262
  function isInstant(e) {
2269
2263
  return Ut.has(e);
2270
2264
  }
2271
2265
  function clampEpochNanoseconds(e) {
2272
- return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2266
+ return compareEpochNanoseconds(e, ye) > 0 ? ye : compareEpochNanoseconds(e, Se) < 0 ? Se : e;
2273
2267
  }
2274
2268
  function systemTimeZoneIdentifier() {
2275
- return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new Pt().resolvedOptions().timeZone);
2269
+ return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new bt().resolvedOptions().timeZone);
2276
2270
  }
2277
2271
  function setSystemTimeZoneIdCacheTtl(e) {
2278
2272
  zt = e, e || (kt = void 0, Vt = -Infinity);
@@ -2283,7 +2277,7 @@ function systemUtcEpochNanoseconds() {
2283
2277
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2284
2278
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2285
2279
  }
2286
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, c = 146097, s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 5, J = 6, G = 9, _ = 0, K = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
2280
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, c = 146097, s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 5, J = 6, _ = 9, K = 0, G = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
2287
2281
  "year",
2288
2282
  "month",
2289
2283
  "week",
@@ -2302,12 +2296,12 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2302
2296
  1e6,
2303
2297
  1e3,
2304
2298
  1
2305
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, le = "parse error", de = "invalid date / time", me = "out-of-bounds date", ue = "out-of-bounds duration", Te = "invalid formatting options", De = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, he = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, pe = "invalid `largestUnit` and `smallestUnit` options", ge = "mismatch of `month` and `monthCode`", fe = "value is not formattable", notObject = (e) => `not object: ${e}`, Ie = "empty fields", Oe = "can't convert Temporal classes to number", Fe = "argument is undefined", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
2306
- var Me = class {
2299
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, le = "invalid date / time", de = "out-of-bounds date", me = "out-of-bounds duration", ue = "invalid formatting options", Te = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, De = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, he = "invalid `largestUnit` and `smallestUnit` options", pe = "mismatch of `month` and `monthCode`", ge = "value is not formattable", notObject = (e) => `not object: ${e}`, fe = "empty fields", Ie = "can't convert Temporal classes to number", Oe = "argument is undefined", Fe = Math.max, Se = createEpochNanosecondsFromEpochMilliseconds(-864e13), ye = createEpochNanosecondsFromEpochMilliseconds(864e13), we = compareEpochNanoseconds, ve = /* @__PURE__ */ new WeakMap();
2300
+ var Ee = class {
2307
2301
  constructor(e, t, o = "iso8601") {
2308
2302
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2309
2303
  validateString(t);
2310
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r.G);
2304
+ const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r._);
2311
2305
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
2312
2306
  }
2313
2307
  static from(e, t = void 0) {
@@ -2406,21 +2400,21 @@ var Me = class {
2406
2400
  validatePartialTemporalObject(e);
2407
2401
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2408
2402
  ...isoDateTimeToFields(o.Y, r),
2409
- [Ft.M]: formatUtcOffsetNanoseconds(n)
2403
+ [Ot.M]: formatUtcOffsetNanoseconds(n)
2410
2404
  }), prepareCalendarFields(o.Y, e, [
2411
- Ft.t,
2412
- Ft.u,
2413
- Ft.v,
2414
- Ft.T,
2415
- Ft.D,
2416
- Ft.I,
2417
- Ft.O,
2418
- Ft.F,
2419
- Ft.S,
2420
- Ft.$,
2421
- Ft.M
2405
+ Ot.t,
2406
+ Ot.u,
2407
+ Ot.v,
2408
+ Ot.T,
2409
+ Ot.D,
2410
+ Ot.I,
2411
+ Ot.O,
2412
+ Ot.F,
2413
+ Ot.S,
2414
+ Ot.$,
2415
+ Ot.M
2422
2416
  ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2423
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ft.M]), o.P, c, s, !0), o.P, o.Y);
2417
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ot.M]), o.P, c, s, !0), o.P, o.Y);
2424
2418
  }
2425
2419
  withPlainTime(e = void 0) {
2426
2420
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -2448,11 +2442,11 @@ var Me = class {
2448
2442
  }
2449
2443
  round(e) {
2450
2444
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2451
- if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === G && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2445
+ if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === _ && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2452
2446
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
2453
2447
  if (a === H) {
2454
2448
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2455
- return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2449
+ return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.U) ? addNanosecondsToEpochSeconds(o, -1) : t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2456
2450
  }
2457
2451
  const c = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
2458
2452
  return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, F, s, t.P, g, I, !0), t.P, t.Y);
@@ -2473,13 +2467,13 @@ var Me = class {
2473
2467
  }
2474
2468
  toLocaleString(e = void 0, t = void 0) {
2475
2469
  const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2476
- return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(De), formatDateTime(n, createTemporalInstant(o.U));
2470
+ return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(Te), formatDateTime(n, createTemporalInstant(o.U));
2477
2471
  }
2478
2472
  toJSON() {
2479
2473
  return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, $, A, j);
2480
2474
  }
2481
2475
  valueOf() {
2482
- throwTypeError(Oe);
2476
+ throwTypeError(Ie);
2483
2477
  }
2484
2478
  startOfDay() {
2485
2479
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2487,7 +2481,7 @@ var Me = class {
2487
2481
  }
2488
2482
  getTimeZoneTransition(e) {
2489
2483
  const t = getInternalSlotOrThrowForZonedDateTime(this);
2490
- void 0 === e && throwTypeError(Fe);
2484
+ void 0 === e && throwTypeError(Oe);
2491
2485
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], T), n = ((e, t, o) => {
2492
2486
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2493
2487
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
@@ -2510,9 +2504,9 @@ var Me = class {
2510
2504
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2511
2505
  }
2512
2506
  };
2513
- defineStringTag(Me.prototype, "Temporal.ZonedDateTime"), renameFunction(Me, "ZonedDateTime");
2514
- const be = createNullPrototypeObject(), Pe = createNullPrototypeObject(), Re = /* @__PURE__ */ new WeakMap();
2515
- var Ne = class {
2507
+ defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
2508
+ const Me = createNullPrototypeObject(), be = createNullPrototypeObject(), Pe = /* @__PURE__ */ new WeakMap();
2509
+ var Re = class {
2516
2510
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2517
2511
  const d = [
2518
2512
  e,
@@ -2528,118 +2522,118 @@ var Ne = class {
2528
2522
  ].map(toIntegerWithTruncation);
2529
2523
  validateString(l);
2530
2524
  const u = canonicalizeCalendar(l);
2531
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(de), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2525
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(le), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2532
2526
  }
2533
2527
  static from(e, t = void 0) {
2534
2528
  return toTemporalDateTime(e, t);
2535
2529
  }
2536
2530
  static compare(e, t) {
2537
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e))._, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t))._);
2531
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).G, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).G);
2538
2532
  }
2539
2533
  get calendarId() {
2540
2534
  return getInternalSlotOrThrowForPlainDateTime(this).Y;
2541
2535
  }
2542
2536
  get era() {
2543
2537
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2544
- return calendarIsoToDate(e.Y, e._.o).oe;
2538
+ return calendarIsoToDate(e.Y, e.G.o).oe;
2545
2539
  }
2546
2540
  get eraYear() {
2547
2541
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2548
- return calendarIsoToDate(e.Y, e._.o).ne;
2542
+ return calendarIsoToDate(e.Y, e.G.o).ne;
2549
2543
  }
2550
2544
  get year() {
2551
2545
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2552
- return calendarIsoToDate(e.Y, e._.o).t;
2546
+ return calendarIsoToDate(e.Y, e.G.o).t;
2553
2547
  }
2554
2548
  get month() {
2555
2549
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2556
- return calendarIsoToDate(e.Y, e._.o).u;
2550
+ return calendarIsoToDate(e.Y, e.G.o).u;
2557
2551
  }
2558
2552
  get monthCode() {
2559
2553
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2560
- return calendarIsoToDate(e.Y, e._.o).v;
2554
+ return calendarIsoToDate(e.Y, e.G.o).v;
2561
2555
  }
2562
2556
  get day() {
2563
2557
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2564
- return calendarIsoToDate(e.Y, e._.o).T;
2558
+ return calendarIsoToDate(e.Y, e.G.o).T;
2565
2559
  }
2566
2560
  get hour() {
2567
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.D;
2561
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.D;
2568
2562
  }
2569
2563
  get minute() {
2570
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.I;
2564
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.I;
2571
2565
  }
2572
2566
  get second() {
2573
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.O;
2567
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.O;
2574
2568
  }
2575
2569
  get millisecond() {
2576
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.F;
2570
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.F;
2577
2571
  }
2578
2572
  get microsecond() {
2579
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.S;
2573
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.S;
2580
2574
  }
2581
2575
  get nanosecond() {
2582
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.$;
2576
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.$;
2583
2577
  }
2584
2578
  get dayOfWeek() {
2585
2579
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2586
- return calendarIsoToDate(e.Y, e._.o).re;
2580
+ return calendarIsoToDate(e.Y, e.G.o).re;
2587
2581
  }
2588
2582
  get dayOfYear() {
2589
2583
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2590
- return calendarIsoToDate(e.Y, e._.o).ae;
2584
+ return calendarIsoToDate(e.Y, e.G.o).ae;
2591
2585
  }
2592
2586
  get weekOfYear() {
2593
2587
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2594
- return calendarIsoToDate(e.Y, e._.o).ie.ce;
2588
+ return calendarIsoToDate(e.Y, e.G.o).ie.ce;
2595
2589
  }
2596
2590
  get yearOfWeek() {
2597
2591
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2598
- return calendarIsoToDate(e.Y, e._.o).ie.t;
2592
+ return calendarIsoToDate(e.Y, e.G.o).ie.t;
2599
2593
  }
2600
2594
  get daysInWeek() {
2601
2595
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2602
- return calendarIsoToDate(e.Y, e._.o).se;
2596
+ return calendarIsoToDate(e.Y, e.G.o).se;
2603
2597
  }
2604
2598
  get daysInMonth() {
2605
2599
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2606
- return calendarIsoToDate(e.Y, e._.o).le;
2600
+ return calendarIsoToDate(e.Y, e.G.o).le;
2607
2601
  }
2608
2602
  get daysInYear() {
2609
2603
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2610
- return calendarIsoToDate(e.Y, e._.o).de;
2604
+ return calendarIsoToDate(e.Y, e.G.o).de;
2611
2605
  }
2612
2606
  get monthsInYear() {
2613
2607
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2614
- return calendarIsoToDate(e.Y, e._.o).me;
2608
+ return calendarIsoToDate(e.Y, e.G.o).me;
2615
2609
  }
2616
2610
  get inLeapYear() {
2617
2611
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2618
- return calendarIsoToDate(e.Y, e._.o).ue;
2612
+ return calendarIsoToDate(e.Y, e.G.o).ue;
2619
2613
  }
2620
2614
  with(e, t = void 0) {
2621
2615
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2622
2616
  validatePartialTemporalObject(e);
2623
- const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o._), prepareCalendarFields(o.Y, e, [
2624
- Ft.t,
2625
- Ft.u,
2626
- Ft.v,
2627
- Ft.T,
2628
- Ft.D,
2629
- Ft.I,
2630
- Ft.O,
2631
- Ft.F,
2632
- Ft.S,
2633
- Ft.$
2617
+ const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.G), prepareCalendarFields(o.Y, e, [
2618
+ Ot.t,
2619
+ Ot.u,
2620
+ Ot.v,
2621
+ Ot.T,
2622
+ Ot.D,
2623
+ Ot.I,
2624
+ Ot.O,
2625
+ Ot.F,
2626
+ Ot.S,
2627
+ Ot.$
2634
2628
  ]));
2635
2629
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2636
2630
  }
2637
2631
  withPlainTime(e = void 0) {
2638
2632
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2639
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t._.o, toTimeRecordOrMidnight(e)), t.Y);
2633
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.G.o, toTimeRecordOrMidnight(e)), t.Y);
2640
2634
  }
2641
2635
  withCalendar(e) {
2642
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this)._, toTemporalCalendarIdentifier(e));
2636
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).G, toTemporalCalendarIdentifier(e));
2643
2637
  }
2644
2638
  add(e, t = void 0) {
2645
2639
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2655,43 +2649,43 @@ var Ne = class {
2655
2649
  }
2656
2650
  round(e) {
2657
2651
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2658
- return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t._, n, a, r), t.Y);
2652
+ return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t.G, n, a, r), t.Y);
2659
2653
  }
2660
2654
  equals(e) {
2661
2655
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2662
- return !compareIsoDateTime(t._, o._) && calendarEquals(t.Y, o.Y);
2656
+ return !compareIsoDateTime(t.G, o.G) && calendarEquals(t.Y, o.Y);
2663
2657
  }
2664
2658
  toString(e = void 0) {
2665
2659
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, M), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2666
2660
  validateTemporalUnitValue(i, l), i === q && throwRangeError(invalidField("smallestUnit"));
2667
2661
  const c = toSecondsStringPrecisionRecord(i, r);
2668
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, c.ve, c.Ee, a)), t.Y, c.$e, n);
2662
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.G, c.ve, c.Ee, a)), t.Y, c.$e, n);
2669
2663
  }
2670
2664
  toLocaleString(e = void 0, t = void 0) {
2671
2665
  return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2672
2666
  }
2673
2667
  toJSON() {
2674
2668
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2675
- return isoDateTimeToString(e._, e.Y, void 0, $);
2669
+ return isoDateTimeToString(e.G, e.Y, void 0, $);
2676
2670
  }
2677
2671
  valueOf() {
2678
- throwTypeError(Oe);
2672
+ throwTypeError(Ie);
2679
2673
  }
2680
2674
  toZonedDateTime(e, t = void 0) {
2681
2675
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2682
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o._, r), n, o.Y);
2676
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.G, r), n, o.Y);
2683
2677
  }
2684
2678
  toPlainDate() {
2685
2679
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2686
- return createTemporalDate(e._.o, e.Y);
2680
+ return createTemporalDate(e.G.o, e.Y);
2687
2681
  }
2688
2682
  toPlainTime() {
2689
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this)._.p);
2683
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).G.p);
2690
2684
  }
2691
2685
  };
2692
- defineStringTag(Ne.prototype, "Temporal.PlainDateTime"), renameFunction(Ne, "PlainDateTime");
2693
- const Ze = /* @__PURE__ */ new WeakMap();
2694
- var $e = class {
2686
+ defineStringTag(Re.prototype, "Temporal.PlainDateTime"), renameFunction(Re, "PlainDateTime");
2687
+ const Ne = /* @__PURE__ */ new WeakMap();
2688
+ var Ze = class {
2695
2689
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2696
2690
  const i = [
2697
2691
  e,
@@ -2701,7 +2695,7 @@ var $e = class {
2701
2695
  r,
2702
2696
  a
2703
2697
  ].map(toIntegerWithTruncation);
2704
- isValidTime(...i) || throwRangeError(de), createTemporalTime(createTimeRecord(...i), this);
2698
+ isValidTime(...i) || throwRangeError(le), createTemporalTime(createTimeRecord(...i), this);
2705
2699
  }
2706
2700
  static from(e, t = void 0) {
2707
2701
  return createTemporalTime(toTemporalTime(e, t));
@@ -2770,35 +2764,35 @@ var $e = class {
2770
2764
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2771
2765
  }
2772
2766
  valueOf() {
2773
- throwTypeError(Oe);
2767
+ throwTypeError(Ie);
2774
2768
  }
2775
2769
  };
2776
- defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2777
- const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", Ue = "0[1-9]|[12]\\d|30|31", je = "[01]\\d|2[0-3]", We = "[0-5]\\d", Ae = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${Ue})`, Le = optionalChain([
2778
- `(?<d>${je})`,
2779
- `(?<y>:?)(?<e>${We})`,
2770
+ defineStringTag(Ze.prototype, "Temporal.PlainTime"), renameFunction(Ze, "PlainTime");
2771
+ const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", Ue = "[01]\\d|2[0-3]", je = "[0-5]\\d", We = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, Ae = optionalChain([
2772
+ `(?<d>${Ue})`,
2773
+ `(?<y>:?)(?<e>${je})`,
2780
2774
  "\\k<y>(?<f>[0-5]\\d|60)",
2781
2775
  "[.,](?<g>\\d{1,9})"
2782
- ]), ke = optionalChain([
2783
- `([+-])(${je})`,
2784
- `(?<z>:?)(${We})`,
2785
- `\\k<z>(${We})`,
2776
+ ]), Le = optionalChain([
2777
+ `([+-])(${Ue})`,
2778
+ `(?<z>:?)(${je})`,
2779
+ `\\k<z>(${je})`,
2786
2780
  "[.,](\\d{1,9})"
2787
- ]), ze = optionalChain([
2788
- Ae,
2789
- `[ tT]${Le}`,
2790
- `(?<h>${ke})`
2791
- ]), Ve = `(?<l>${Ce})-?(?<m>${Ye})`, xe = `(?:--)?(?<m>${Ye})-?(?<n>${Ue})`, He = `(?<h>${ke})|(?<i>[zZ])`, qe = `([+-])(${je})(?::?(${We}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Be = `\\[!?(?<j>${qe})\\]`, Je = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Je})\\]`, _e = `(?<k>(${Ge})*)`, Ke = RegExp(Ge, "g"), Xe = createRegExp(`${optionalChain([
2792
- Ae,
2793
- `[ tT]${Le}`,
2794
- He
2795
- ])}${Be}${_e}`), Qe = createRegExp(`${ze}(?:${Be})?${_e}`), et = createRegExp(`${Ae}[ tT]${Le}(?:${He})(?:${Be})?${_e}`), tt = createRegExp(`(${Ae}[ tT]|[tT]?)${Le}(?<h>${ke})?(?:${Be})?${_e}`), ot = createRegExp(`(${ze}|${xe})(?:${Be})?${_e}`), nt = createRegExp(`(${ze}|${Ve})(?:${Be})?${_e}`), rt = [createRegExp(`${xe}(${Be})?(${Ge})*`), createRegExp(`${Ve}(${Be})?(${Ge})*`)], at = createRegExp(qe), it = createRegExp(Je), ct = createRegExp(ke), st = /* @__PURE__ */ new WeakMap();
2796
- var lt = class {
2781
+ ]), ke = optionalChain([
2782
+ We,
2783
+ `[ tT]${Ae}`,
2784
+ `(?<h>${Le})`
2785
+ ]), ze = `(?<l>${$e})-?(?<m>${Ce})`, Ve = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, xe = `(?<h>${Le})|(?<i>[zZ])`, He = `([+-])(${Ue})(?::?(${je}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${He})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Ke = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2786
+ We,
2787
+ `[ tT]${Ae}`,
2788
+ xe
2789
+ ])}${qe}${_e}`), Xe = createRegExp(`${ke}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${Le})?(?:${qe})?${_e}`), tt = createRegExp(`(${ke}|${Ve})(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${ze})(?:${qe})?${_e}`), nt = [createRegExp(`${Ve}(${qe})?(${Je})*`), createRegExp(`${ze}(${qe})?(${Je})*`)], rt = createRegExp(He), at = createRegExp(Be), it = createRegExp(Le), ct = /* @__PURE__ */ new WeakMap();
2790
+ var st = class {
2797
2791
  constructor(e, t, o = "iso8601", n = 1972) {
2798
2792
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2799
2793
  validateString(o);
2800
2794
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2801
- isValidIsoDate(c, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2795
+ isValidIsoDate(c, r, a) || throwRangeError(le), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2802
2796
  }
2803
2797
  static from(e, t = void 0) {
2804
2798
  return toTemporalMonthDay(e, t);
@@ -2817,15 +2811,15 @@ var lt = class {
2817
2811
  with(e, t = void 0) {
2818
2812
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2819
2813
  return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, u), prepareCalendarFields(o.Y, e, [
2820
- Ft.t,
2821
- Ft.u,
2822
- Ft.v,
2823
- Ft.T
2814
+ Ot.t,
2815
+ Ot.u,
2816
+ Ot.v,
2817
+ Ot.T
2824
2818
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2825
2819
  }
2826
2820
  equals(e) {
2827
2821
  const t = getInternalSlotOrThrowForPlainMonthDay(this), o = getInternalSlotOrThrowForPlainMonthDay(toTemporalMonthDay(e));
2828
- return 0 === compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2822
+ return !compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2829
2823
  }
2830
2824
  toString(e = void 0) {
2831
2825
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2837,21 +2831,21 @@ var lt = class {
2837
2831
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), $);
2838
2832
  }
2839
2833
  valueOf() {
2840
- throwTypeError(Oe);
2834
+ throwTypeError(Ie);
2841
2835
  }
2842
2836
  toPlainDate(e) {
2843
2837
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2844
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ft.t], [])), h), t.Y);
2838
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ot.t], [])), h), t.Y);
2845
2839
  }
2846
2840
  };
2847
- defineStringTag(lt.prototype, "Temporal.PlainMonthDay"), renameFunction(lt, "PlainMonthDay");
2848
- const dt = /* @__PURE__ */ new WeakMap();
2849
- var mt = class {
2841
+ defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2842
+ const lt = /* @__PURE__ */ new WeakMap();
2843
+ var dt = class {
2850
2844
  constructor(e, t, o = "iso8601", n = 1) {
2851
2845
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2852
2846
  validateString(o);
2853
2847
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2854
- isValidIsoDate(r, a, c) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2848
+ isValidIsoDate(r, a, c) || throwRangeError(le), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2855
2849
  }
2856
2850
  static from(e, t = void 0) {
2857
2851
  return toTemporalYearMonth(e, t);
@@ -2902,9 +2896,9 @@ var mt = class {
2902
2896
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2903
2897
  validatePartialTemporalObject(e);
2904
2898
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2905
- Ft.t,
2906
- Ft.u,
2907
- Ft.v
2899
+ Ot.t,
2900
+ Ot.u,
2901
+ Ot.v
2908
2902
  ]));
2909
2903
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2910
2904
  }
@@ -2922,7 +2916,7 @@ var mt = class {
2922
2916
  }
2923
2917
  equals(e) {
2924
2918
  const t = getInternalSlotOrThrowForPlainYearMonth(this), o = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(e));
2925
- return 0 === compareIsoDate(t.o, o.o) && t.Y === o.Y;
2919
+ return !compareIsoDate(t.o, o.o) && t.Y === o.Y;
2926
2920
  }
2927
2921
  toString(e = void 0) {
2928
2922
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2934,21 +2928,21 @@ var mt = class {
2934
2928
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), $);
2935
2929
  }
2936
2930
  valueOf() {
2937
- throwTypeError(Oe);
2931
+ throwTypeError(Ie);
2938
2932
  }
2939
2933
  toPlainDate(e) {
2940
2934
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2941
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ft.T], [])), h), t.Y);
2935
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ot.T], [])), h), t.Y);
2942
2936
  }
2943
2937
  };
2944
- defineStringTag(mt.prototype, "Temporal.PlainYearMonth"), renameFunction(mt, "PlainYearMonth");
2945
- const ut = /* @__PURE__ */ new WeakMap();
2946
- var Tt = class {
2938
+ defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2939
+ const mt = /* @__PURE__ */ new WeakMap();
2940
+ var ut = class {
2947
2941
  constructor(e, t, o, n = "iso8601") {
2948
2942
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2949
2943
  validateString(n);
2950
2944
  const c = canonicalizeCalendar(n);
2951
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2945
+ isValidIsoDate(r, a, i) || throwRangeError(le), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2952
2946
  }
2953
2947
  static from(e, t = void 0) {
2954
2948
  return toTemporalDate(e, t);
@@ -3037,10 +3031,10 @@ var Tt = class {
3037
3031
  const o = getInternalSlotOrThrowForPlainDate(this);
3038
3032
  validatePartialTemporalObject(e);
3039
3033
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, s), prepareCalendarFields(o.Y, e, [
3040
- Ft.t,
3041
- Ft.u,
3042
- Ft.v,
3043
- Ft.T
3034
+ Ot.t,
3035
+ Ot.u,
3036
+ Ot.v,
3037
+ Ot.T
3044
3038
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3045
3039
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3046
3040
  }
@@ -3080,17 +3074,17 @@ var Tt = class {
3080
3074
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), $);
3081
3075
  }
3082
3076
  valueOf() {
3083
- throwTypeError(Oe);
3077
+ throwTypeError(Ie);
3084
3078
  }
3085
3079
  };
3086
- defineStringTag(Tt.prototype, "Temporal.PlainDate"), renameFunction(Tt, "PlainDate");
3087
- const Dt = createNullPrototypeObject(), ht = {
3080
+ defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
3081
+ const Tt = createNullPrototypeObject(), Dt = {
3088
3082
  chinese: createLruCache(2e3),
3089
3083
  dangi: createLruCache(2e3)
3090
- }, pt = {
3084
+ }, ht = {
3091
3085
  chinese: createLruCache(1e4),
3092
3086
  dangi: createLruCache(1e4)
3093
- }, gt = createLruCache(5e3), ft = createLruCache(1e3), It = new Map([["ah", 1], ["bh", !1]]), Ot = createNullPrototypeObject({
3087
+ }, pt = createLruCache(5e3), gt = createLruCache(1e3), ft = new Map([["ah", 1], ["bh", !1]]), It = createNullPrototypeObject({
3094
3088
  iso8601: /* @__PURE__ */ new Map(),
3095
3089
  buddhist: new Map([["be", 1]]),
3096
3090
  chinese: /* @__PURE__ */ new Map(),
@@ -3101,9 +3095,9 @@ const Dt = createNullPrototypeObject(), ht = {
3101
3095
  gregory: new Map([["ce", 1], ["bce", !1]]),
3102
3096
  hebrew: new Map([["am", 1]]),
3103
3097
  indian: new Map([["shaka", 1]]),
3104
- "islamic-civil": It,
3105
- "islamic-tbla": It,
3106
- "islamic-umalqura": It,
3098
+ "islamic-civil": ft,
3099
+ "islamic-tbla": ft,
3100
+ "islamic-umalqura": ft,
3107
3101
  japanese: new Map([
3108
3102
  ["reiwa", 2019],
3109
3103
  ["heisei", 1989],
@@ -3115,7 +3109,7 @@ const Dt = createNullPrototypeObject(), ht = {
3115
3109
  ]),
3116
3110
  persian: new Map([["ap", 1]]),
3117
3111
  roc: new Map([["roc", 1], ["broc", !1]])
3118
- }), Ft = {
3112
+ }), Ot = {
3119
3113
  oe: "era",
3120
3114
  ne: "eraYear",
3121
3115
  t: "year",
@@ -3130,41 +3124,41 @@ const Dt = createNullPrototypeObject(), ht = {
3130
3124
  $: "nanosecond",
3131
3125
  M: "offset",
3132
3126
  P: "timeZone"
3133
- }, St = [
3134
- Ft.oe,
3135
- Ft.ne,
3136
- Ft.t,
3137
- Ft.u,
3138
- Ft.v,
3139
- Ft.T,
3140
- Ft.D,
3141
- Ft.I,
3142
- Ft.O,
3143
- Ft.F,
3144
- Ft.S,
3145
- Ft.$,
3146
- Ft.M,
3147
- Ft.P
3148
- ], yt = {
3149
- [Ft.oe]: [toString],
3150
- [Ft.ne]: [toIntegerWithTruncation],
3151
- [Ft.t]: [toIntegerWithTruncation],
3152
- [Ft.u]: [toPositiveIntegerWithTruncation],
3153
- [Ft.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3154
- [Ft.T]: [toPositiveIntegerWithTruncation],
3155
- [Ft.D]: [toIntegerWithTruncation, 0],
3156
- [Ft.I]: [toIntegerWithTruncation, 0],
3157
- [Ft.O]: [toIntegerWithTruncation, 0],
3158
- [Ft.F]: [toIntegerWithTruncation, 0],
3159
- [Ft.S]: [toIntegerWithTruncation, 0],
3160
- [Ft.$]: [toIntegerWithTruncation, 0],
3161
- [Ft.M]: [(e) => {
3127
+ }, Ft = [
3128
+ Ot.oe,
3129
+ Ot.ne,
3130
+ Ot.t,
3131
+ Ot.u,
3132
+ Ot.v,
3133
+ Ot.T,
3134
+ Ot.D,
3135
+ Ot.I,
3136
+ Ot.O,
3137
+ Ot.F,
3138
+ Ot.S,
3139
+ Ot.$,
3140
+ Ot.M,
3141
+ Ot.P
3142
+ ], St = {
3143
+ [Ot.oe]: [toString],
3144
+ [Ot.ne]: [toIntegerWithTruncation],
3145
+ [Ot.t]: [toIntegerWithTruncation],
3146
+ [Ot.u]: [toPositiveIntegerWithTruncation],
3147
+ [Ot.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3148
+ [Ot.T]: [toPositiveIntegerWithTruncation],
3149
+ [Ot.D]: [toIntegerWithTruncation, 0],
3150
+ [Ot.I]: [toIntegerWithTruncation, 0],
3151
+ [Ot.O]: [toIntegerWithTruncation, 0],
3152
+ [Ot.F]: [toIntegerWithTruncation, 0],
3153
+ [Ot.S]: [toIntegerWithTruncation, 0],
3154
+ [Ot.$]: [toIntegerWithTruncation, 0],
3155
+ [Ot.M]: [(e) => {
3162
3156
  const t = toPrimitive(e);
3163
3157
  return validateString(t), parseDateTimeUtcOffset(t), t;
3164
3158
  }],
3165
- [Ft.P]: [toTemporalTimeZoneIdentifier]
3166
- }, wt = /* @__PURE__ */ new WeakMap(), vt = signTimeDuration;
3167
- var Et = class {
3159
+ [Ot.P]: [toTemporalTimeZoneIdentifier]
3160
+ }, yt = /* @__PURE__ */ new WeakMap(), wt = signTimeDuration;
3161
+ var vt = class {
3168
3162
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3169
3163
  createTemporalDuration(createTemporalDurationSlot([
3170
3164
  e,
@@ -3187,13 +3181,13 @@ var Et = class {
3187
3181
  if (n.every((e, t) => r[t] === e)) return 0;
3188
3182
  const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3189
3183
  let d, m;
3190
- return a.Me && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, s, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3184
+ return a.Me && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, s, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), we(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3191
3185
  }
3192
3186
  get years() {
3193
- return getInternalSlotOrThrowForDuration(this)[_];
3187
+ return getInternalSlotOrThrowForDuration(this)[K];
3194
3188
  }
3195
3189
  get months() {
3196
- return getInternalSlotOrThrowForDuration(this)[K];
3190
+ return getInternalSlotOrThrowForDuration(this)[G];
3197
3191
  }
3198
3192
  get weeks() {
3199
3193
  return getInternalSlotOrThrowForDuration(this)[X];
@@ -3223,7 +3217,7 @@ var Et = class {
3223
3217
  return durationSign(getInternalSlotOrThrowForDuration(this));
3224
3218
  }
3225
3219
  get blank() {
3226
- return 0 === durationSign(getInternalSlotOrThrowForDuration(this));
3220
+ return !durationSign(getInternalSlotOrThrowForDuration(this));
3227
3221
  }
3228
3222
  with(e) {
3229
3223
  const t = getInternalSlotOrThrowForDuration(this);
@@ -3248,9 +3242,9 @@ var Et = class {
3248
3242
  let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3249
3243
  validateTemporalUnitValue(c, d);
3250
3244
  const s = void 0 !== c;
3251
- c ??= G;
3245
+ c ??= _;
3252
3246
  const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, c), u = void 0 !== n;
3253
- if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(pe), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(pe), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, c, i), isDateUnit(n) ? q : n));
3247
+ if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(he), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(he), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, c, i), isDateUnit(n) ? q : n));
3254
3248
  if (r.be) {
3255
3249
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3256
3250
  return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, c, i), n));
@@ -3261,7 +3255,7 @@ var Et = class {
3261
3255
  }
3262
3256
  total(e) {
3263
3257
  const t = getInternalSlotOrThrowForDuration(this);
3264
- void 0 === e && throwTypeError(Fe);
3258
+ void 0 === e && throwTypeError(Oe);
3265
3259
  const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", T);
3266
3260
  if (validateTemporalUnitValue(r, d), n.Me) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.Me, createZonedDateTimeSlot(addZonedDateTime(n.Me, toInternalDurationRecord(t), h), n.Me.P, n.Me.Y), r);
3267
3261
  if (n.be) {
@@ -3274,7 +3268,7 @@ var Et = class {
3274
3268
  const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3275
3269
  validateTemporalUnitValue(a, l), a !== q && a !== B || throwRangeError(disallowedUnit(a));
3276
3270
  const i = toSecondsStringPrecisionRecord(a, n);
3277
- if (i.Ee === G && 1 === i.ve) return temporalDurationToString(t, i.$e);
3271
+ if (i.Ee === _ && 1 === i.ve) return temporalDurationToString(t, i.$e);
3278
3272
  const c = toInternalDurationRecord(t);
3279
3273
  return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.ve, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3280
3274
  }
@@ -3288,11 +3282,11 @@ var Et = class {
3288
3282
  }), new Intl.DurationFormat(e, t).format(n);
3289
3283
  }
3290
3284
  valueOf() {
3291
- throwTypeError(Oe);
3285
+ throwTypeError(Ie);
3292
3286
  }
3293
3287
  };
3294
- defineStringTag(Et.prototype, "Temporal.Duration"), renameFunction(Et, "Duration");
3295
- const Mt = {
3288
+ defineStringTag(vt.prototype, "Temporal.Duration"), renameFunction(vt, "Duration");
3289
+ const Et = {
3296
3290
  [w]: Math.ceil,
3297
3291
  [v]: Math.floor,
3298
3292
  [E]: roundExpand,
@@ -3302,7 +3296,7 @@ const Mt = {
3302
3296
  [R]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3303
3297
  [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3304
3298
  [Z]: roundHalfEven
3305
- }, bt = {
3299
+ }, Mt = {
3306
3300
  [w]: Math.ceil,
3307
3301
  [v]: Math.floor,
3308
3302
  [E]: Math.ceil,
@@ -3312,13 +3306,13 @@ const Mt = {
3312
3306
  [R]: roundHalfCeil,
3313
3307
  [N]: roundHalfFloor,
3314
3308
  [Z]: roundHalfEven
3315
- }, Pt = globalThis.Intl.DateTimeFormat, Rt = /* @__PURE__ */ new WeakMap(), Nt = [
3309
+ }, bt = globalThis.Intl.DateTimeFormat, Pt = /* @__PURE__ */ new WeakMap(), Rt = [
3316
3310
  "year",
3317
3311
  "month",
3318
3312
  "day",
3319
3313
  "weekday",
3320
3314
  "dateStyle"
3321
- ], Zt = [
3315
+ ], Nt = [
3322
3316
  "hour",
3323
3317
  "minute",
3324
3318
  "second",
@@ -3326,16 +3320,16 @@ const Mt = {
3326
3320
  "dayPeriod",
3327
3321
  "timeStyle"
3328
3322
  ];
3329
- var $t = class {
3323
+ var Zt = class {
3330
3324
  Ae(e) {
3331
3325
  return formatDateTime(this, e);
3332
3326
  }
3333
- }, Ct = class {
3327
+ }, $t = class {
3334
3328
  constructor(e, t) {
3335
3329
  createDateTimeFormat(e, t, d, void 0, this);
3336
3330
  }
3337
3331
  get format() {
3338
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= $t.prototype.Ae.bind(this), "name", { value: "" });
3332
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= Zt.prototype.Ae.bind(this), "name", { value: "" });
3339
3333
  }
3340
3334
  formatToParts(e) {
3341
3335
  return ((e, t) => {
@@ -3344,7 +3338,7 @@ var $t = class {
3344
3338
  })(this, e);
3345
3339
  }
3346
3340
  formatRange(e, t) {
3347
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3341
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3348
3342
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3349
3343
  validateSameTemporalType(t, o);
3350
3344
  const [r, a] = handleDateTimeValue(n, t);
@@ -3352,7 +3346,7 @@ var $t = class {
3352
3346
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3353
3347
  }
3354
3348
  formatRangeToParts(e, t) {
3355
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3349
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3356
3350
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3357
3351
  validateSameTemporalType(t, o);
3358
3352
  const [r, a] = handleDateTimeValue(n, t);
@@ -3363,8 +3357,10 @@ var $t = class {
3363
3357
  return getInternalSlotOrThrowForDateTimeFormat(this).Pe.resolvedOptions();
3364
3358
  }
3365
3359
  };
3366
- const Yt = Object.getOwnPropertyDescriptors(Intl.DateTimeFormat);
3367
- Yt.prototype.value = Ct.prototype, Object.defineProperties(DateTimeFormat, Yt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3360
+ const Ct = Object.getOwnPropertyDescriptors(bt), Yt = $t.prototype;
3361
+ Ct.prototype.value = Yt;
3362
+ for (const e of ["formatRange", "formatRangeToParts"]) bt.prototype[e] || delete Yt[e];
3363
+ Object.defineProperties(DateTimeFormat, Ct), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3368
3364
  const Ut = /* @__PURE__ */ new WeakMap();
3369
3365
  var jt = class {
3370
3366
  constructor(e) {
@@ -3420,7 +3416,7 @@ var jt = class {
3420
3416
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).U);
3421
3417
  }
3422
3418
  valueOf() {
3423
- throwTypeError(Oe);
3419
+ throwTypeError(Ie);
3424
3420
  }
3425
3421
  toZonedDateTimeISO(e) {
3426
3422
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
@@ -3430,7 +3426,7 @@ defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant")
3430
3426
  const Wt = class {
3431
3427
  toTemporalInstant() {
3432
3428
  const e = Date.prototype.valueOf.call(this);
3433
- return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3429
+ return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3434
3430
  }
3435
3431
  }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3436
3432
  At.DateTimeFormat.value = DateTimeFormat;
@@ -3448,13 +3444,13 @@ const xt = {
3448
3444
  defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3449
3445
  const Ht = {
3450
3446
  Instant: jt,
3451
- PlainDateTime: Ne,
3452
- PlainDate: Tt,
3453
- PlainTime: $e,
3454
- PlainYearMonth: mt,
3455
- PlainMonthDay: lt,
3456
- Duration: Et,
3457
- ZonedDateTime: Me,
3447
+ PlainDateTime: Re,
3448
+ PlainDate: ut,
3449
+ PlainTime: Ze,
3450
+ PlainYearMonth: dt,
3451
+ PlainMonthDay: st,
3452
+ Duration: vt,
3453
+ ZonedDateTime: Ee,
3458
3454
  Now: xt
3459
3455
  };
3460
3456
  defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);