temporal-polyfill-lite 0.4.2 → 0.4.3

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.
@@ -26,7 +26,7 @@ function getNameFromUnit(e) {
26
26
  return y[e];
27
27
  }
28
28
  function nanosecondsForTimeUnit(e) {
29
- return P[e - 3];
29
+ return E[e - 3];
30
30
  }
31
31
  function mapUnlessUndefined(e, t) {
32
32
  return void 0 === e ? void 0 : t(e);
@@ -49,7 +49,7 @@ function getInternalSlotOrThrowForDurationFormat(e) {
49
49
  }
50
50
  function durationRecordToDurationLikeObject(e) {
51
51
  const t = createNullPrototypeObject();
52
- return E.map((o, n) => {
52
+ return P.map((o, n) => {
53
53
  t[o] = e[n];
54
54
  }), t;
55
55
  }
@@ -85,7 +85,7 @@ function getOptionsObject(e = createNullPrototypeObject()) {
85
85
  }
86
86
  function getOption(e, t, o, n) {
87
87
  const r = e[t];
88
- if (void 0 === r) return n === B && throwRangeError(missingField(t)), n;
88
+ if (void 0 === r) return n === q && throwRangeError(missingField(t)), n;
89
89
  const a = toString(r);
90
90
  return o.includes(a) || throwRangeError(invalidField(t)), a;
91
91
  }
@@ -176,7 +176,7 @@ function negateTimeDuration(e) {
176
176
  return normalize(-e[0], -e[1]);
177
177
  }
178
178
  function signTimeDuration(e) {
179
- return Ee(e, ye);
179
+ return Pe(e, ye);
180
180
  }
181
181
  function timeDurationToSubsecondsNumber(e, t, o) {
182
182
  const n = signTimeDuration(e);
@@ -194,7 +194,7 @@ function interpretISODateTimeOffset(e, t, o, n, r, a, i, l) {
194
194
  if (o === ne || o === te && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
195
195
  if (o === oe || o === te && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(c.o.t, c.o.u, c.o.T, c.p.D, c.p.I, c.p.O, c.p.F, c.p.S, c.p.v - n)));
196
196
  ((e) => {
197
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(b);
197
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(R);
198
198
  })(e);
199
199
  const s = getPossibleEpochNanoseconds(r, c);
200
200
  for (const e of s) {
@@ -213,19 +213,19 @@ function toTemporalZonedDateTime(e, t) {
213
213
  }
214
214
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
215
215
  const s = prepareCalendarFields(i, e, [
216
- pt.t,
217
- pt.u,
218
- pt.P,
219
- pt.T,
220
- pt.D,
221
- pt.I,
222
- pt.O,
223
- pt.F,
224
- pt.S,
225
- pt.v,
226
- pt.R,
227
- pt.Z
228
- ], [pt.Z]);
216
+ ht.t,
217
+ ht.u,
218
+ ht.P,
219
+ ht.T,
220
+ ht.D,
221
+ ht.I,
222
+ ht.O,
223
+ ht.F,
224
+ ht.S,
225
+ ht.v,
226
+ ht.R,
227
+ ht.Z
228
+ ], [ht.Z]);
229
229
  o = s.timeZone, n = s.offset;
230
230
  const d = getOptionsObject(t);
231
231
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
@@ -233,7 +233,7 @@ function toTemporalZonedDateTime(e, t) {
233
233
  l = m.o, c = m.p;
234
234
  } else {
235
235
  validateString(e);
236
- const m = parseIsoDateTime(e, [Qe]);
236
+ const m = parseIsoDateTime(e, [et]);
237
237
  o = toTemporalTimeZoneIdentifier(m.Z.$), n = m.Z.N, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
238
238
  const u = getOptionsObject(t);
239
239
  r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, X), getTemporalOverflowOption(u), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
@@ -242,7 +242,7 @@ function toTemporalZonedDateTime(e, t) {
242
242
  return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === te ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
243
243
  }
244
244
  function createTemporalZonedDateTime(e, t, o, n) {
245
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Ze[e] && Ze[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
245
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Ne[e] && Ne[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
246
246
  }
247
247
  function createZonedDateTimeSlot(e, t, o, n) {
248
248
  return {
@@ -267,7 +267,7 @@ function differenceZonedDateTime(e, t, o) {
267
267
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
268
268
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.Y, e.Y));
269
269
  let i, l = differenceTime(r.p, a.p);
270
- for (let o = It(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, G)), It(l) === n); o++);
270
+ for (let o = Ot(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, G)), Ot(l) === n); o++);
271
271
  return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, d)), l);
272
272
  }
273
273
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
@@ -279,7 +279,7 @@ function differenceTemporalZonedDateTime(e, t, o, n) {
279
279
  const r = toTemporalZonedDateTime(o);
280
280
  calendarEquals(t.U, r.U) || throwRangeError(M);
281
281
  const a = getDifferenceSettings(e, getOptionsObject(n), H, [], D, m);
282
- return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.L, a.H, a.q), m), e)) : createTemporalDuration(createTemporalDurationSlot([
282
+ return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.L, a.H, a.B), m), e)) : createTemporalDuration(createTemporalDurationSlot([
283
283
  0,
284
284
  0,
285
285
  0,
@@ -290,7 +290,7 @@ function differenceTemporalZonedDateTime(e, t, o, n) {
290
290
  0,
291
291
  0,
292
292
  0
293
- ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.q), a.V), e));
293
+ ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.B), a.V), e));
294
294
  }
295
295
  function addDurationToZonedDateTime(e, t, o, n) {
296
296
  return createTemporalZonedDateTime(addZonedDateTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Z, t.U);
@@ -301,17 +301,17 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
301
301
  function getIsoDateTimeForZonedDateTimeSlot(e) {
302
302
  return getIsoDateTimeFromOffsetNanoseconds(e.Y, getOffsetNanosecondsForZonedDateTimeSlot(e));
303
303
  }
304
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Re.prototype)) {
305
- return Pe.set(t, e), t;
304
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(be.prototype)) {
305
+ return Ee.set(t, e), t;
306
306
  }
307
307
  function calendarIsoToDateForZonedDateTimeSlot(e) {
308
308
  return calendarIsoToDate(e.U, getIsoDateTimeForZonedDateTimeSlot(e).o);
309
309
  }
310
310
  function getInternalSlotForZonedDateTime(e) {
311
- return Pe.get(e);
311
+ return Ee.get(e);
312
312
  }
313
313
  function getInternalSlotOrThrowForZonedDateTime(e) {
314
- return getInternalSlotOrThrow(Pe, e);
314
+ return getInternalSlotOrThrow(Ee, e);
315
315
  }
316
316
  function isZonedDateTime(e) {
317
317
  return !!getInternalSlotForZonedDateTime(e);
@@ -320,20 +320,20 @@ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, l = 0) {
320
320
  return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, l);
321
321
  }
322
322
  function clampEpochSecond(e) {
323
- return clamp(e, -1e10, Infinity);
323
+ return clamp(e, -1e10, 1 / 0);
324
324
  }
325
325
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
326
326
  if ("UTC" === t) return 0;
327
- const r = clampEpochSecond(o), a = Ze[t] ||= (function() {
327
+ const r = clampEpochSecond(o), a = Ne[t] ||= (function() {
328
328
  const e = /* @__PURE__ */ new Map();
329
329
  return {
330
330
  C(t) {
331
331
  const o = e.get(t);
332
332
  if (void 0 !== o) return e.delete(t), e.set(t, o), o;
333
333
  },
334
- B: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
334
+ q: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
335
335
  J(e, t) {
336
- return this.C(e) ?? this.B(e, t());
336
+ return this.C(e) ?? this.q(e, t());
337
337
  }
338
338
  };
339
339
  })(), i = a.C(r);
@@ -346,10 +346,10 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
346
346
  "minute",
347
347
  "second"
348
348
  ].map((e) => toIntegerIfIntegral(l.find((t) => t.type === e).value))) - 1e3 * r) * e;
349
- return n || a.B(r, c), c;
349
+ return n || a.q(r, c), c;
350
350
  }
351
351
  function getFormatterForTimeZone(e) {
352
- return be[e] ||= new wt("en-u-hc-h23", {
352
+ return Ze[e] ||= new vt("en-u-hc-h23", {
353
353
  timeZone: e,
354
354
  year: "numeric",
355
355
  month: "numeric",
@@ -400,12 +400,12 @@ function toTemporalTimeZoneIdentifier(e) {
400
400
  const t = ((e) => {
401
401
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
402
402
  const t = parseIsoDateTime(e, [
403
- Qe,
404
403
  et,
405
404
  tt,
406
405
  ot,
407
406
  nt,
408
- rt
407
+ rt,
408
+ at
409
409
  ]).Z, o = t.$ || t.M && "UTC" || t.N;
410
410
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
411
411
  })(e);
@@ -428,7 +428,7 @@ function getStartOfDay(e, t) {
428
428
  return getPossibleEpochNanoseconds(e, o)[0] || createEpochNanosecondsFromEpochSeconds(bisectOffsetTransition(e, ...getNamedTimeZoneEpochCandidates(e, o).map(epochSeconds)));
429
429
  }
430
430
  function timeZoneEquals(e, t) {
431
- return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
431
+ return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && (Re ? new Re.ZonedDateTime(BigInt(0), e).equals(new Re.ZonedDateTime(BigInt(0), t)) : getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone);
432
432
  }
433
433
  function parseTimeZoneIdentifier(e) {
434
434
  return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
@@ -455,7 +455,7 @@ function combineIsoDateAndTimeRecord(e, t) {
455
455
  };
456
456
  }
457
457
  function interpretTemporalDateTimeFields(e, t, o) {
458
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[pt.D], t[pt.I], t[pt.O], t[pt.F], t[pt.S], t[pt.v], o));
458
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[ht.D], t[ht.I], t[ht.O], t[ht.F], t[ht.S], t[ht.v], o));
459
459
  }
460
460
  function toTemporalDateTime(e, t) {
461
461
  if (isObject(e)) {
@@ -475,28 +475,28 @@ function toTemporalDateTime(e, t) {
475
475
  }
476
476
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
477
477
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
478
- pt.t,
479
- pt.u,
480
- pt.P,
481
- pt.T,
482
- pt.D,
483
- pt.I,
484
- pt.O,
485
- pt.F,
486
- pt.S,
487
- pt.v
478
+ ht.t,
479
+ ht.u,
480
+ ht.P,
481
+ ht.T,
482
+ ht.D,
483
+ ht.I,
484
+ ht.O,
485
+ ht.F,
486
+ ht.S,
487
+ ht.v
488
488
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
489
489
  }
490
490
  validateString(e);
491
- const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.U || "iso8601");
491
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
492
492
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
493
493
  }
494
494
  function balanceIsoDateTime(e, t, o, n, r, a, i, l, c) {
495
495
  const s = balanceTime(n, r, a, i, l, c);
496
496
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.X), s);
497
497
  }
498
- function createTemporalDateTime(e, t, o = Object.create(Me.prototype)) {
499
- return Ne.set(o, {
498
+ function createTemporalDateTime(e, t, o = Object.create(Ue.prototype)) {
499
+ return Me.set(o, {
500
500
  K: validateIsoDateTime(e),
501
501
  U: t
502
502
  }), o;
@@ -513,7 +513,7 @@ function roundIsoDateTime(e, t, o, n) {
513
513
  }
514
514
  function differenceISODateTime(e, t, o, n) {
515
515
  let r = differenceTime(e.p, t.p);
516
- const a = It(r);
516
+ const a = Ot(r);
517
517
  let i = t.o;
518
518
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
519
519
  const l = largerOfTwoTemporalUnits(d, n), c = calendarDateUntil(o, e.o, i, l);
@@ -529,7 +529,7 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
529
529
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
530
530
  calendarEquals(t.U, r.U) || throwRangeError(M);
531
531
  const a = getDifferenceSettings(e, getOptionsObject(n), H, [], D, d);
532
- return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.U, a.V, a.L, a.H, a.q), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
532
+ return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.U, a.V, a.L, a.H, a.B), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
533
533
  0,
534
534
  0,
535
535
  0,
@@ -550,13 +550,13 @@ function validateIsoDateTime(e) {
550
550
  return ((e) => {
551
551
  const t = isoDateRecordToEpochDays(e.o);
552
552
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
553
- })(e) || throwRangeError(b), e;
553
+ })(e) || throwRangeError(R), e;
554
554
  }
555
555
  function getInternalSlotForPlainDateTime(e) {
556
- return Ne.get(e);
556
+ return Me.get(e);
557
557
  }
558
558
  function getInternalSlotOrThrowForPlainDateTime(e) {
559
- return getInternalSlotOrThrow(Ne, e);
559
+ return getInternalSlotOrThrow(Me, e);
560
560
  }
561
561
  function isPlainDateTime(e) {
562
562
  return !!getInternalSlotForPlainDateTime(e);
@@ -566,7 +566,7 @@ function calendarDateForPlainDateTime(e) {
566
566
  return calendarIsoToDate(t.U, t.K.o);
567
567
  }
568
568
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
569
- return {
569
+ return ((e, t, o, n, r, a) => isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999))(e, t, o, n, r, a) || throwRangeError(b), {
570
570
  D: e,
571
571
  I: t,
572
572
  O: o,
@@ -585,17 +585,14 @@ function differenceTime(e, t) {
585
585
  function toTemporalTime(e, t) {
586
586
  if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).K.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
587
587
  validateString(e);
588
- const o = parseIsoDateTime(e, [ot]);
588
+ const o = parseIsoDateTime(e, [nt]);
589
589
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
590
590
  }
591
591
  function toTimeRecordOrMidnight(e) {
592
592
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
593
593
  }
594
594
  function regulateTime(e, t, o, n, r, a, i) {
595
- 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(R), createTimeRecord(e, t, o, n, r, a));
596
- }
597
- function isValidTime(e, t, o, n, r, a) {
598
- 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
+ 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)) : createTimeRecord(e, t, o, n, r, a);
599
596
  }
600
597
  function balanceTime(e, t, o, n, r, a) {
601
598
  return r += divFloor(a, 1e3), n += divFloor(r, 1e3), o += divFloor(n, 1e3), t += divFloor(o, 60), {
@@ -608,18 +605,18 @@ function balanceTime(e, t, o, n, r, a) {
608
605
  X: divFloor(e, 24)
609
606
  };
610
607
  }
611
- function createTemporalTime(e, t = Object.create(je.prototype)) {
612
- return Ue.set(t, e), t;
608
+ function createTemporalTime(e, t = Object.create($e.prototype)) {
609
+ return je.set(t, e), t;
613
610
  }
614
611
  function toTemporalTimeRecord(e, t = !1) {
615
612
  let o = !1;
616
613
  const n = [
617
- pt.D,
618
- pt.S,
619
- pt.F,
620
- pt.I,
621
- pt.v,
622
- pt.O
614
+ ht.D,
615
+ ht.S,
616
+ ht.F,
617
+ ht.I,
618
+ ht.v,
619
+ ht.O
623
620
  ].map((n) => {
624
621
  const r = e[n];
625
622
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
@@ -649,16 +646,16 @@ function roundTime(e, n, r, a) {
649
646
  }
650
647
  function differenceTemporalPlainTime(e, t, o, n) {
651
648
  const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), L, [], D, m);
652
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.L, a.H, a.q)), a.V), e));
649
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.L, a.H, a.B)), a.V), e));
653
650
  }
654
651
  function addDurationToTime(e, t, o) {
655
652
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
656
653
  }
657
654
  function getInternalSlotOrThrowForPlainTime(e) {
658
- return getInternalSlotOrThrow(Ue, e);
655
+ return getInternalSlotOrThrow(je, e);
659
656
  }
660
657
  function isPlainTime(e) {
661
- return Ue.has(e);
658
+ return je.has(e);
662
659
  }
663
660
  function optionalChain(e) {
664
661
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -670,10 +667,10 @@ function createRegExp(e) {
670
667
  return RegExp(`^(?:${e})$`);
671
668
  }
672
669
  function isAmbiguousTemporalTimeString(e) {
673
- return at.some((t) => isSemanticallyValid(e.match(t)?.groups));
670
+ return it.some((t) => isSemanticallyValid(e.match(t)?.groups));
674
671
  }
675
672
  function isTimeZoneIdentifier(e) {
676
- return it.test(e);
673
+ return lt.test(e);
677
674
  }
678
675
  function isSemanticallyValid(e) {
679
676
  return !!e && "-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)));
@@ -681,12 +678,12 @@ function isSemanticallyValid(e) {
681
678
  function parseIsoDateTime(e, t) {
682
679
  for (const o of t) {
683
680
  const t = e.match(o);
684
- if (!t || !isSemanticallyValid(t.groups) || o === ot && isAmbiguousTemporalTimeString(e)) continue;
681
+ if (!t || !isSemanticallyValid(t.groups) || o === nt && isAmbiguousTemporalTimeString(e)) continue;
685
682
  const n = t.groups;
686
683
  let r;
687
684
  if (n.k) {
688
685
  let t = !1;
689
- 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));
686
+ for (const [, o, a, i] of n.k.matchAll(Qe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
690
687
  }
691
688
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
692
689
  const a = (n.g || "").padEnd(9, "0");
@@ -706,11 +703,11 @@ function parseIsoDateTime(e, t) {
706
703
  throwRangeError(parseError(e));
707
704
  }
708
705
  function parseDateTimeUtcOffset(e) {
709
- const o = e.match(ct);
706
+ const o = e.match(st);
710
707
  return o || throwRangeError(parseError(e)), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
711
708
  }
712
709
  function hasUtcOffsetSubMinuteParts(e) {
713
- return !!e.match(ct)[5];
710
+ return !!e.match(st)[5];
714
711
  }
715
712
  function toTemporalMonthDay(e, t) {
716
713
  if (isObject(e)) {
@@ -718,18 +715,18 @@ function toTemporalMonthDay(e, t) {
718
715
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.U);
719
716
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
720
717
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
721
- pt.t,
722
- pt.u,
723
- pt.P,
724
- pt.T
718
+ ht.t,
719
+ ht.u,
720
+ ht.P,
721
+ ht.T
725
722
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
726
723
  }
727
724
  validateString(e);
728
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.U || "iso8601");
729
- 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)), q), _), n);
725
+ const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.U || "iso8601");
726
+ 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)), B), _), n);
730
727
  }
731
- function createTemporalMonthDay(e, t, o = Object.create(dt.prototype)) {
732
- return st.set(o, {
728
+ function createTemporalMonthDay(e, t, o = Object.create(mt.prototype)) {
729
+ return dt.set(o, {
733
730
  o: validateIsoDate(e),
734
731
  U: t
735
732
  }), o;
@@ -738,10 +735,10 @@ function temporalMonthDayToString(e, t) {
738
735
  return `${t === De || t === he || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
739
736
  }
740
737
  function getInternalSlotForPlainMonthDay(e) {
741
- return st.get(e);
738
+ return dt.get(e);
742
739
  }
743
740
  function getInternalSlotOrThrowForPlainMonthDay(e) {
744
- return getInternalSlotOrThrow(st, e);
741
+ return getInternalSlotOrThrow(dt, e);
745
742
  }
746
743
  function isPlainMonthDay(e) {
747
744
  return !!getInternalSlotForPlainMonthDay(e);
@@ -752,13 +749,13 @@ function toTemporalYearMonth(e, t) {
752
749
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.U);
753
750
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
754
751
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
755
- pt.t,
756
- pt.u,
757
- pt.P
752
+ ht.t,
753
+ ht.u,
754
+ ht.P
758
755
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
759
756
  }
760
757
  validateString(e);
761
- const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.U || "iso8601");
758
+ const o = parseIsoDateTime(e, [at]), n = canonicalizeCalendar(o.U || "iso8601");
762
759
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), x), _), n);
763
760
  }
764
761
  function balanceIsoYearMonth(e, t) {
@@ -767,8 +764,8 @@ function balanceIsoYearMonth(e, t) {
767
764
  u: modFloor(t - 1, 12) + 1
768
765
  };
769
766
  }
770
- function createTemporalYearMonth(e, t, o = Object.create(ut.prototype)) {
771
- return mt.set(o, {
767
+ function createTemporalYearMonth(e, t, o = Object.create(Tt.prototype)) {
768
+ return ut.set(o, {
772
769
  o: validateIsoYearMonth(e),
773
770
  U: t
774
771
  }), o;
@@ -794,15 +791,15 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
794
791
  ]));
795
792
  const i = calendarDateFromFields(t.U, createNullPrototypeObject({
796
793
  ...isoDateToFields(t.U, t.o, x),
797
- [pt.T]: 1
794
+ [ht.T]: 1
798
795
  }), _), m = calendarDateFromFields(t.U, createNullPrototypeObject({
799
796
  ...isoDateToFields(t.U, r.o, x),
800
- [pt.T]: 1
797
+ [ht.T]: 1
801
798
  }), _);
802
799
  let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, m, a.V), 0, 0), ye);
803
800
  if (a.H !== c || 1 !== a.L) {
804
801
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
805
- u = roundRelativeDuration(u, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(m, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.q);
802
+ u = roundRelativeDuration(u, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(m, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.B);
806
803
  }
807
804
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(u, d), e));
808
805
  }
@@ -810,17 +807,17 @@ function addDurationToYearMonth(e, t, o, n) {
810
807
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
811
808
  return (r.A.ee || r.A.X || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.U, isoDateToFields(t.U, calendarDateAdd(t.U, calendarDateFromFields(t.U, createNullPrototypeObject({
812
809
  ...isoDateToFields(t.U, t.o, x),
813
- [pt.T]: 1
810
+ [ht.T]: 1
814
811
  }), _), r.A, a), x), a), t.U);
815
812
  }
816
813
  function validateIsoYearMonth(e) {
817
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(b), e;
814
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(R), e;
818
815
  }
819
816
  function getInternalSlotForPlainYearMonth(e) {
820
- return mt.get(e);
817
+ return ut.get(e);
821
818
  }
822
819
  function getInternalSlotOrThrowForPlainYearMonth(e) {
823
- return getInternalSlotOrThrow(mt, e);
820
+ return getInternalSlotOrThrow(ut, e);
824
821
  }
825
822
  function isPlainYearMonth(e) {
826
823
  return !!getInternalSlotForPlainYearMonth(e);
@@ -830,14 +827,14 @@ function calendarDateForPlainYearMonth(e) {
830
827
  return calendarIsoToDate(t.U, t.o);
831
828
  }
832
829
  function createIsoDateRecord(e, t, o) {
833
- return {
830
+ return isValidIsoDate(e, t, o) || throwRangeError(b), {
834
831
  t: e,
835
832
  u: t,
836
833
  T: o
837
834
  };
838
835
  }
839
- function createTemporalDate(e, t, o = Object.create(Dt.prototype)) {
840
- return Tt.set(o, {
836
+ function createTemporalDate(e, t, o = Object.create(pt.prototype)) {
837
+ return Dt.set(o, {
841
838
  o: validateIsoDate(e),
842
839
  U: t
843
840
  }), o;
@@ -861,18 +858,18 @@ function toTemporalDate(e, t) {
861
858
  }
862
859
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
863
860
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
864
- pt.t,
865
- pt.u,
866
- pt.P,
867
- pt.T
861
+ ht.t,
862
+ ht.u,
863
+ ht.P,
864
+ ht.T
868
865
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
869
866
  }
870
867
  validateString(e);
871
- const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.U || "iso8601");
868
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
872
869
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
873
870
  }
874
871
  function regulateIsoDate(e, t, o, n) {
875
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(R), createIsoDateRecord(e, t, o));
872
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : createIsoDateRecord(e, t, o);
876
873
  }
877
874
  function isValidIsoDate(e, t, o) {
878
875
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -908,7 +905,7 @@ function differenceTemporalPlainDate(e, t, o, n) {
908
905
  let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), ye);
909
906
  if (a.H !== d || 1 !== a.L) {
910
907
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
911
- i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.q);
908
+ i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.B);
912
909
  }
913
910
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, d), e));
914
911
  }
@@ -919,10 +916,10 @@ function addDurationToDate(e, t, o, n) {
919
916
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.U);
920
917
  }
921
918
  function getInternalSlotForPlainDate(e) {
922
- return Tt.get(e);
919
+ return Dt.get(e);
923
920
  }
924
921
  function getInternalSlotOrThrowForPlainDate(e) {
925
- return getInternalSlotOrThrow(Tt, e);
922
+ return getInternalSlotOrThrow(Dt, e);
926
923
  }
927
924
  function isPlainDate(e) {
928
925
  return !!getInternalSlotForPlainDate(e);
@@ -956,7 +953,7 @@ function calendarDateUntil(e, t, o, n) {
956
953
  })(t, o, n);
957
954
  }
958
955
  function calendarDateToIso(e, t, o) {
959
- return ((e, t) => regulateIsoDate(e[pt.t], e[pt.u], e[pt.T], t))(t, o);
956
+ return ((e, t) => regulateIsoDate(e[ht.t], e[ht.u], e[ht.T], t))(t, o);
960
957
  }
961
958
  function calendarSupportsEra(e) {
962
959
  return "gregory" === e;
@@ -979,16 +976,16 @@ function prepareCalendarFields(e, t, o, n) {
979
976
  let a = !1;
980
977
  for (const e of o) {
981
978
  const o = t[e];
982
- void 0 !== o ? (a = !0, r[e] = gt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = gt[e][1]);
979
+ void 0 !== o ? (a = !0, r[e] = ft[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = ft[e][1]);
983
980
  }
984
981
  return n || a || throwTypeError(C), r;
985
982
  }
986
983
  function calendarMergeFields(e, t, o) {
987
984
  const n = ((e, t) => {
988
985
  const o = [];
989
- return void 0 !== t[pt.u] && o.push(pt.P), void 0 !== t[pt.P] && o.push(pt.u), !calendarSupportsEra(e) || void 0 === t[pt.ne] && void 0 === t[pt.re] && void 0 === t[pt.t] || o.push(pt.ne, pt.re, pt.t), o;
986
+ return void 0 !== t[ht.u] && o.push(ht.P), void 0 !== t[ht.P] && o.push(ht.u), !calendarSupportsEra(e) || void 0 === t[ht.ne] && void 0 === t[ht.re] && void 0 === t[ht.t] || o.push(ht.ne, ht.re, ht.t), o;
990
987
  })(e, o), r = createEmptyCalendarFieldsRecord();
991
- for (const e of ht) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
988
+ for (const e of gt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
992
989
  return r;
993
990
  }
994
991
  function toTemporalCalendarIdentifier(e) {
@@ -996,15 +993,15 @@ function toTemporalCalendarIdentifier(e) {
996
993
  return t ? t.U : (validateString(e), canonicalizeCalendar(((e) => {
997
994
  try {
998
995
  return parseIsoDateTime(e, [
999
- Qe,
1000
996
  et,
1001
997
  tt,
1002
998
  ot,
1003
999
  nt,
1004
- rt
1000
+ rt,
1001
+ at
1005
1002
  ]).U || "iso8601";
1006
1003
  } catch {
1007
- return lt.test(e) || throwRangeError(parseError(e)), e;
1004
+ return ct.test(e) || throwRangeError(parseError(e)), e;
1008
1005
  }
1009
1006
  })(e)));
1010
1007
  }
@@ -1019,9 +1016,9 @@ function calendarYearMonthFromFields(e, t, o) {
1019
1016
  return t.day = 1, calendarResolveFields(e, t, x), validateIsoYearMonth(calendarDateToIso(0, t, o));
1020
1017
  }
1021
1018
  function calendarMonthDayFromFields(e, t, o) {
1022
- return calendarResolveFields(e, t, q), (function(e, t, o) {
1019
+ return calendarResolveFields(e, t, B), (function(e, t, o) {
1023
1020
  return ((e, t, o) => {
1024
- const n = regulateIsoDate(e[pt.t] ?? 1972, e[pt.u], e[pt.T], t);
1021
+ const n = regulateIsoDate(e[ht.t] ?? 1972, e[ht.u], e[ht.T], t);
1025
1022
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1026
1023
  })(t, o, "iso8601" === e);
1027
1024
  })(e, t, o);
@@ -1089,20 +1086,20 @@ function calendarExtraFields(e, t) {
1089
1086
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1090
1087
  }
1091
1088
  function isoResolveFields(e, t) {
1092
- t !== q && void 0 === e[pt.t] && throwTypeError(missingField(pt.t)), t !== x && void 0 === e[pt.T] && throwTypeError(missingField(pt.T)), void 0 === e[pt.P] && void 0 === e[pt.u] && throwTypeError(missingField("month, monthCode"));
1093
- const o = mapUnlessUndefined(e[pt.P], parseMonthCode);
1094
- o && ((o[0] > 12 || o[1] || void 0 !== e[pt.u] && o[0] !== e[pt.u]) && throwRangeError(j), e[pt.u] = o[0]);
1089
+ t !== B && void 0 === e[ht.t] && throwTypeError(missingField(ht.t)), t !== x && void 0 === e[ht.T] && throwTypeError(missingField(ht.T)), void 0 === e[ht.P] && void 0 === e[ht.u] && throwTypeError(missingField("month, monthCode"));
1090
+ const o = mapUnlessUndefined(e[ht.P], parseMonthCode);
1091
+ o && ((o[0] > 12 || o[1] || void 0 !== e[ht.u] && o[0] !== e[ht.u]) && throwRangeError(j), e[ht.u] = o[0]);
1095
1092
  }
1096
1093
  function calendarResolveFields(e, t, o = V) {
1097
1094
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = V) {
1098
- const n = t[pt.ne], r = t[pt.re];
1099
- let a = t[pt.t];
1100
- const i = t[pt.P], l = t[pt.u], c = t[pt.T];
1101
- if (o === q && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== x && void 0 === c && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1095
+ const n = t[ht.ne], r = t[ht.re];
1096
+ let a = t[ht.t];
1097
+ const i = t[ht.P], l = t[ht.u], c = t[ht.T];
1098
+ if (o === B && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== x && void 0 === c && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1102
1099
  const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1103
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[pt.t] = e;
1100
+ void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[ht.t] = e;
1104
1101
  }
1105
- t[pt.ne] = t[pt.re] = void 0, isoResolveFields(t, o);
1102
+ t[ht.ne] = t[ht.re] = void 0, isoResolveFields(t, o);
1106
1103
  })(0, t, o);
1107
1104
  }
1108
1105
  function createEmptyCalendarFieldsRecord() {
@@ -1145,7 +1142,7 @@ function combineDateAndTimeDuration(e, t) {
1145
1142
  };
1146
1143
  }
1147
1144
  function toTemporalDuration(e) {
1148
- return t = e, ft.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1145
+ return It.get(e) || (isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1149
1146
  const t = 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)?)?$/i);
1150
1147
  t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
1151
1148
  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")));
@@ -1161,8 +1158,7 @@ function toTemporalDuration(e) {
1161
1158
  o.S,
1162
1159
  o.v
1163
1160
  ]), toIntegerWithTruncation(`${t[1]}1`));
1164
- })(e));
1165
- var t;
1161
+ })(e)));
1166
1162
  }
1167
1163
  function durationSign(e) {
1168
1164
  return sign(e.find((e) => e) || 0);
@@ -1171,7 +1167,7 @@ function dateDurationSign(e) {
1171
1167
  return sign(e.te || e.oe || e.ee || e.X);
1172
1168
  }
1173
1169
  function internalDurationSign(e) {
1174
- return dateDurationSign(e.A) || It(e.p);
1170
+ return dateDurationSign(e.A) || Ot(e.p);
1175
1171
  }
1176
1172
  function validateDuration(...e) {
1177
1173
  e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
@@ -1196,7 +1192,7 @@ function toTemporalPartialDurationRecord(e) {
1196
1192
  6,
1197
1193
  2,
1198
1194
  0
1199
- ].map((t) => mapUnlessUndefined(e[E[t]], toIntegerIfIntegral));
1195
+ ].map((t) => mapUnlessUndefined(e[P[t]], toIntegerIfIntegral));
1200
1196
  return t.some((e) => void 0 !== e) || throwTypeError(C), [
1201
1197
  9,
1202
1198
  5,
@@ -1213,8 +1209,8 @@ function toTemporalPartialDurationRecord(e) {
1213
1209
  function createTemporalDurationSlot(e) {
1214
1210
  return validateDuration(...e), e;
1215
1211
  }
1216
- function createTemporalDuration(e, t = Object.create(Ot.prototype)) {
1217
- return ft.set(t, e), t;
1212
+ function createTemporalDuration(e, t = Object.create(Ft.prototype)) {
1213
+ return It.set(t, e), t;
1218
1214
  }
1219
1215
  function timeDurationFromComponents(e, t, o, n, r, a) {
1220
1216
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
@@ -1265,7 +1261,7 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1265
1261
  compareEpochNanoseconds(m.he, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1266
1262
  const u = differenceEpochNanoseconds(m.he, n), T = differenceEpochNanoseconds(m.he, m.ge);
1267
1263
  let D = m.fe, p = m.he;
1268
- return roundNumberToIncrement(m.De + ((e, t, o) => signTimeDuration(e) ? Ee(e, t) ? Ee(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * l * e, l, s) === m.pe && (d = !0, D = m.Ie, p = m.ge), {
1264
+ return roundNumberToIncrement(m.De + ((e, t, o) => signTimeDuration(e) ? Pe(e, t) ? Pe(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * l * e, l, s) === m.pe && (d = !0, D = m.Ie, p = m.ge), {
1269
1265
  Oe: {
1270
1266
  Fe: combineDateAndTimeDuration(D, ye),
1271
1267
  Se: p,
@@ -1280,7 +1276,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, l, c, m) {
1280
1276
  let p = roundTimeDurationToIncrement(t.p, a * D, l);
1281
1277
  const h = addTimeDuration(p, negateTimeDuration(T));
1282
1278
  let g = !1, f = 0;
1283
- return It(h) !== -e && (g = !0, f = e, p = roundTimeDurationToIncrement(h, a * D, l)), {
1279
+ return Ot(h) !== -e && (g = !0, f = e, p = roundTimeDurationToIncrement(h, a * D, l)), {
1284
1280
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), p),
1285
1281
  Se: addTimeDurationToEpochNanoseconds(u, p),
1286
1282
  we: g
@@ -1290,7 +1286,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, l, c, m) {
1290
1286
  return {
1291
1287
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? c : 0), isDateUnit(o) ? addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0)) : l),
1292
1288
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(l, negateTimeDuration(i))),
1293
- we: sign(c - i[0]) === It(i)
1289
+ we: sign(c - i[0]) === Ot(i)
1294
1290
  };
1295
1291
  })(e, o, i, l, c, m);
1296
1292
  return T.we && c !== s ? ((e, t, o, n, r, a, i, l) => {
@@ -1299,8 +1295,8 @@ function roundRelativeDuration(e, t, o, n, r, a, i, l, c, m) {
1299
1295
  let d;
1300
1296
  for (let a = l - 1; a >= c; a--) if (a !== g || i === s) {
1301
1297
  d = a === p ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : a === h ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1302
- const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, d, _), n.p);
1303
- if (It(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1298
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, d, _), n.p), l = r ? getEpochNanosecondsFor(r, i, G) : getUtcEpochNanoseconds(i);
1299
+ if (Ot(differenceEpochNanoseconds(l, o)) === -e) break;
1304
1300
  t = combineDateAndTimeDuration(d, ye);
1305
1301
  }
1306
1302
  return t;
@@ -1317,7 +1313,7 @@ function temporalDurationToString(e, t) {
1317
1313
  "D",
1318
1314
  "H",
1319
1315
  "M"
1320
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), p = `${u}${D}${It(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1316
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), p = `${u}${D}${Ot(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1321
1317
  return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${p && `T${p}`}`;
1322
1318
  }
1323
1319
  function addDurations(e, t, o) {
@@ -1325,13 +1321,13 @@ function addDurations(e, t, o) {
1325
1321
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1326
1322
  }
1327
1323
  function getInternalSlotOrThrowForDuration(e) {
1328
- return getInternalSlotOrThrow(ft, e);
1324
+ return getInternalSlotOrThrow(It, e);
1329
1325
  }
1330
1326
  function applySignToDurationSlot(e, t) {
1331
1327
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1332
1328
  }
1333
1329
  function validateTimeDurationRange(e) {
1334
- return ((e) => Ee(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(Z), e;
1330
+ return ((e) => Pe(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(Z), e;
1335
1331
  }
1336
1332
  function balanceTimeDuration(e, t) {
1337
1333
  const o = clamp(t, 3, 9);
@@ -1344,7 +1340,7 @@ function balanceTimeDuration(e, t) {
1344
1340
  0,
1345
1341
  0
1346
1342
  ].slice(0, o - f),
1347
- o > F ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), P[o - f] / 1e9),
1343
+ o > F ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), E[o - f] / 1e9),
1348
1344
  ...[
1349
1345
  0,
1350
1346
  1,
@@ -1352,7 +1348,7 @@ function balanceTimeDuration(e, t) {
1352
1348
  3,
1353
1349
  4,
1354
1350
  5
1355
- ].map((t) => divTrunc(e[1], P[t + 1]) % (P[t] / P[t + 1]) + 0).slice(o - f)
1351
+ ].map((t) => divTrunc(e[1], E[t + 1]) % (E[t] / E[t + 1]) + 0).slice(o - f)
1356
1352
  ];
1357
1353
  var r;
1358
1354
  }
@@ -1435,7 +1431,7 @@ function toSecondsStringPrecisionRecord(e, t) {
1435
1431
  function getTemporalUnitValuedOption(e, t, o) {
1436
1432
  return mapUnlessUndefined(getOption(e, t, [
1437
1433
  ...y,
1438
- ...E,
1434
+ ...P,
1439
1435
  "auto"
1440
1436
  ], o), (e) => {
1441
1437
  return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), y.indexOf(t));
@@ -1450,32 +1446,32 @@ function getTemporalRelativeToOption(e) {
1450
1446
  if (void 0 === t) return createNullPrototypeObject();
1451
1447
  let o, n, r, a, i, l = !0, c = te;
1452
1448
  if (isObject(t)) {
1453
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForZonedDateTime(t) });
1454
- if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
1449
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForZonedDateTime(t) });
1450
+ if (isPlainDate(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(t) });
1455
1451
  const e = getInternalSlotForPlainDateTime(t);
1456
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1452
+ if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1457
1453
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
1458
1454
  const l = prepareCalendarFields(r, t, [
1459
- pt.t,
1460
- pt.u,
1461
- pt.P,
1462
- pt.T,
1463
- pt.D,
1464
- pt.I,
1465
- pt.O,
1466
- pt.F,
1467
- pt.S,
1468
- pt.v,
1469
- pt.R,
1470
- pt.Z
1455
+ ht.t,
1456
+ ht.u,
1457
+ ht.P,
1458
+ ht.T,
1459
+ ht.D,
1460
+ ht.I,
1461
+ ht.O,
1462
+ ht.F,
1463
+ ht.S,
1464
+ ht.v,
1465
+ ht.R,
1466
+ ht.Z
1471
1467
  ], []), s = interpretTemporalDateTimeFields(r, l, _);
1472
1468
  a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? te : ne;
1473
1469
  } else {
1474
1470
  validateString(t);
1475
- const e = parseIsoDateTime(t, [Qe, et]);
1471
+ const e = parseIsoDateTime(t, [et, tt]);
1476
1472
  n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? oe : n ? te : ne, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
1477
1473
  }
1478
- return createNullPrototypeObject(o ? { Re: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, l), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1474
+ return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, l), o, r)) } : { Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1479
1475
  }
1480
1476
  function largerOfTwoTemporalUnits(e, t) {
1481
1477
  return e < t ? e : t;
@@ -1504,7 +1500,7 @@ function formatTimeString(e, t, o, n, r) {
1504
1500
  return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1505
1501
  }
1506
1502
  function roundNumberToIncrement(e, t, o) {
1507
- return Ft[o](e / t) * t;
1503
+ return St[o](e / t) * t;
1508
1504
  }
1509
1505
  function getRoundingModeOption(e, t) {
1510
1506
  return getOption(e, "roundingMode", [
@@ -1526,18 +1522,18 @@ function getRoundingIncrementOption(e) {
1526
1522
  function isoDateToFields(e, t, o) {
1527
1523
  const n = calendarIsoToDate(e, t);
1528
1524
  return createNullPrototypeObject({
1529
- [pt.t]: o === q ? void 0 : n.t,
1530
- [pt.P]: n.P,
1531
- [pt.T]: o === x ? void 0 : n.T
1525
+ [ht.t]: o === B ? void 0 : n.t,
1526
+ [ht.P]: n.P,
1527
+ [ht.T]: o === x ? void 0 : n.T
1532
1528
  });
1533
1529
  }
1534
1530
  function getDifferenceSettings(e, t, o, n, r, a) {
1535
- let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
1536
- const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, le), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1531
+ let i = getTemporalUnitValuedOption(t, "largestUnit") ?? "auto";
1532
+ const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, le), s = getTemporalUnitValuedOption(t, "smallestUnit") ?? r;
1537
1533
  return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(U), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1538
1534
  H: s,
1539
1535
  V: i,
1540
- q: -1 === e ? negateRoundingMode(c) : c,
1536
+ B: -1 === e ? negateRoundingMode(c) : c,
1541
1537
  L: l
1542
1538
  };
1543
1539
  }
@@ -1555,16 +1551,16 @@ function epochDaysToIsoDate(e) {
1555
1551
  function isoDateTimeToFields(e, t) {
1556
1552
  return createNullPrototypeObject({
1557
1553
  ...isoDateToFields(e, t.o, V),
1558
- [pt.D]: t.p.D,
1559
- [pt.I]: t.p.I,
1560
- [pt.O]: t.p.O,
1561
- [pt.F]: t.p.F,
1562
- [pt.S]: t.p.S,
1563
- [pt.v]: t.p.v
1554
+ [ht.D]: t.p.D,
1555
+ [ht.I]: t.p.I,
1556
+ [ht.O]: t.p.O,
1557
+ [ht.F]: t.p.F,
1558
+ [ht.S]: t.p.S,
1559
+ [ht.v]: t.p.v
1564
1560
  });
1565
1561
  }
1566
1562
  function getInternalSlotOrThrowForDateTimeFormat(e) {
1567
- return getInternalSlotOrThrow(vt, e);
1563
+ return getInternalSlotOrThrow(yt, e);
1568
1564
  }
1569
1565
  function formatDateTime(e, t) {
1570
1566
  const [o, n] = handleDateTimeValue(e, t);
@@ -1578,19 +1574,19 @@ function dateStyleToMonthStyle(e) {
1578
1574
  }
1579
1575
  function amendOptionsForPlainDate(e) {
1580
1576
  const t = createNullPrototypeObject(e);
1581
- return hasAnyOptions(e, yt) || (hasAnyOptions(e, Et) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Et, "timeZoneName"]), t.timeZone = "UTC", t;
1577
+ return hasAnyOptions(e, Pt) || (hasAnyOptions(e, Et) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Et, "timeZoneName"]), t.timeZone = "UTC", t;
1582
1578
  }
1583
1579
  function amendOptionsForPlainTime(e) {
1584
1580
  const t = createNullPrototypeObject(e);
1585
- return hasAnyOptions(e, Et) || (hasAnyOptions(e, yt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1586
- ...yt,
1581
+ return hasAnyOptions(e, Et) || (hasAnyOptions(e, Pt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1582
+ ...Pt,
1587
1583
  "era",
1588
1584
  "timeZoneName"
1589
1585
  ]), t.timeZone = "UTC", t;
1590
1586
  }
1591
1587
  function amendOptionsForPlainDateTime(e) {
1592
1588
  const t = createNullPrototypeObject(e);
1593
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...yt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1589
+ 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, [...Pt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1594
1590
  }
1595
1591
  function amendOptionsForPlainYearMonth(e) {
1596
1592
  const t = createNullPrototypeObject(e);
@@ -1598,7 +1594,7 @@ function amendOptionsForPlainYearMonth(e) {
1598
1594
  "year",
1599
1595
  "month",
1600
1596
  "dateStyle"
1601
- ]) || (hasAnyOptions(e, [...yt, ...Et]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1597
+ ]) || (hasAnyOptions(e, [...Pt, ...Et]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1602
1598
  ...Et,
1603
1599
  "day",
1604
1600
  "weekday",
@@ -1611,7 +1607,7 @@ function amendOptionsForPlainMonthDay(e) {
1611
1607
  "month",
1612
1608
  "day",
1613
1609
  "dateStyle"
1614
- ]) || (hasAnyOptions(e, [...yt, ...Et]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1610
+ ]) || (hasAnyOptions(e, [...Pt, ...Et]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1615
1611
  ...Et,
1616
1612
  "era",
1617
1613
  "year",
@@ -1621,7 +1617,7 @@ function amendOptionsForPlainMonthDay(e) {
1621
1617
  }
1622
1618
  function amendOptionsForInstant(e) {
1623
1619
  const t = createNullPrototypeObject(e);
1624
- return hasAnyOptions(e, [...yt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1620
+ return hasAnyOptions(e, [...Pt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1625
1621
  }
1626
1622
  function hasAnyOptions(e, t) {
1627
1623
  return t.some((t) => void 0 !== e[t]);
@@ -1629,15 +1625,15 @@ function hasAnyOptions(e, t) {
1629
1625
  function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
1630
1626
  null === t && throwTypeError(N);
1631
1627
  const r = createNullPrototypeObject();
1632
- let a = new wt(e, new Proxy({}, { get(e, o) {
1628
+ let a = new vt(e, new Proxy({}, { get(e, o) {
1633
1629
  const a = t[o];
1634
1630
  return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
1635
1631
  } }));
1636
1632
  return (o === V && r.timeStyle || o === L && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
1637
- ...yt,
1633
+ ...Pt,
1638
1634
  ...Et,
1639
1635
  "timeZoneName"
1640
- ]) || (r.timeZoneName = "short", a = new wt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
1636
+ ]) || (r.timeZoneName = "short", a = new vt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
1641
1637
  Ze: a,
1642
1638
  $e: r,
1643
1639
  Ne: a.resolvedOptions().locale
@@ -1659,23 +1655,23 @@ function toDateTimeFormattable(e) {
1659
1655
  }
1660
1656
  function handleDateTimeValue(e, t) {
1661
1657
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1662
- return isPlainTime(t) ? [e.Me ||= new wt(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(M), [e.Ue ||= new wt(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(M), [e.je ||= new wt(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(M), [e.Ce ||= new wt(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(M), [e.Ye ||= new wt(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new wt(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError($), [e.Ze, t]);
1658
+ return isPlainTime(t) ? [e.Me ||= new vt(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(M), [e.Ue ||= new vt(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(M), [e.je ||= new vt(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(M), [e.Ce ||= new vt(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(M), [e.Ye ||= new vt(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new vt(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError($), [e.Ze, t]);
1663
1659
  }
1664
1660
  function DateTimeFormat(e, t) {
1665
1661
  return new Rt(e, t);
1666
1662
  }
1667
- function createTemporalInstant(e, t = Object.create(Mt.prototype)) {
1668
- return Nt.set(t, { Y: e }), t;
1663
+ function createTemporalInstant(e, t = Object.create(Ut.prototype)) {
1664
+ return Mt.set(t, { Y: e }), t;
1669
1665
  }
1670
1666
  function toTemporalInstant$1(e) {
1671
1667
  if (isObject(e)) {
1672
- const o = (t = e, Nt.get(t) || getInternalSlotForZonedDateTime(e));
1668
+ const o = (t = e, Mt.get(t) || getInternalSlotForZonedDateTime(e));
1673
1669
  if (o) return createTemporalInstant(o.Y);
1674
1670
  e = toPrimitive(e);
1675
1671
  }
1676
1672
  var t;
1677
1673
  validateString(e);
1678
- const o = parseIsoDateTime(e, [tt]), n = o.Z.M ? 0 : parseDateTimeUtcOffset(o.Z.N), r = o.p;
1674
+ const o = parseIsoDateTime(e, [ot]), n = o.Z.M ? 0 : parseDateTimeUtcOffset(o.Z.N), r = o.p;
1679
1675
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(o.t, o.u, o.T, r.D, r.I, r.O, r.F, r.S, r.v - n))));
1680
1676
  }
1681
1677
  function addInstant(e, t) {
@@ -1686,7 +1682,7 @@ function differenceInstant(e, t, o, n, r) {
1686
1682
  }
1687
1683
  function roundTemporalInstant(e, t, o, n) {
1688
1684
  return (function(e, t, o) {
1689
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => St[o](e / t) * t)(e[1], t, o));
1685
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => wt[o](e / t) * t)(e[1], t, o));
1690
1686
  })(e, t * nanosecondsForTimeUnit(o), n);
1691
1687
  }
1692
1688
  function temporalInstantToString(e, t, o) {
@@ -1695,29 +1691,29 @@ function temporalInstantToString(e, t, o) {
1695
1691
  }
1696
1692
  function differenceTemporalInstant(e, t, o, n) {
1697
1693
  const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), L, [], D, T);
1698
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.q), a.V), e));
1694
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.B), a.V), e));
1699
1695
  }
1700
1696
  function addDurationToInstant(e, t, o) {
1701
1697
  const n = applySignToDurationSlot(toTemporalDuration(o), e);
1702
1698
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.Y, toInternalDurationRecordWith24HourDays(n).p));
1703
1699
  }
1704
1700
  function validateEpochNanoseconds(e) {
1705
- return ((e) => compareEpochNanoseconds(we, e) * compareEpochNanoseconds(ve, e) <= 0)(e) || throwRangeError(b), e;
1701
+ return ((e) => compareEpochNanoseconds(we, e) * compareEpochNanoseconds(ve, e) <= 0)(e) || throwRangeError(R), e;
1706
1702
  }
1707
1703
  function getInternalSlotOrThrowForInstant(e) {
1708
- return getInternalSlotOrThrow(Nt, e);
1704
+ return getInternalSlotOrThrow(Mt, e);
1709
1705
  }
1710
1706
  function isInstant(e) {
1711
- return Nt.has(e);
1707
+ return Mt.has(e);
1712
1708
  }
1713
1709
  function clampEpochNanoseconds(e) {
1714
1710
  return compareEpochNanoseconds(e, ve) > 0 ? ve : compareEpochNanoseconds(e, we) < 0 ? we : e;
1715
1711
  }
1716
1712
  function systemTimeZoneIdentifier() {
1717
- return Yt && Wt + Yt > Date.now() && Ct ? Ct : (Wt = Date.now(), Ct = new wt().resolvedOptions().timeZone);
1713
+ return Wt && At + Wt > Date.now() && Yt ? Yt : (At = Date.now(), Yt = new vt().resolvedOptions().timeZone);
1718
1714
  }
1719
1715
  function setSystemTimeZoneIdCacheTtl(e) {
1720
- Yt = e, e || (Ct = void 0, Wt = -Infinity);
1716
+ Wt = e, e || (Yt = void 0, At = -1 / 0);
1721
1717
  }
1722
1718
  function systemUtcEpochNanoseconds() {
1723
1719
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -1736,7 +1732,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
1736
1732
  "millisecond",
1737
1733
  "microsecond",
1738
1734
  "nanosecond"
1739
- ], E = y.map((e) => `${e}s`), P = [
1735
+ ], P = y.map((e) => `${e}s`), E = [
1740
1736
  a,
1741
1737
  o,
1742
1738
  t,
@@ -1744,7 +1740,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
1744
1740
  1e6,
1745
1741
  1e3,
1746
1742
  1
1747
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, R = "invalid date / time", b = "out-of-bounds date", Z = "out-of-bounds duration", N = "invalid formatting options", M = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, U = "invalid `largestUnit` and `smallestUnit` options", j = "mismatch of `month` and `monthCode`", $ = "value is not formattable", notObject = (e) => `not object: ${e}`, C = "empty fields", Y = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, z = /* @__PURE__ */ new WeakMap();
1743
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", R = "out-of-bounds date", Z = "out-of-bounds duration", N = "invalid formatting options", M = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, U = "invalid `largestUnit` and `smallestUnit` options", j = "mismatch of `month` and `monthCode`", $ = "value is not formattable", notObject = (e) => `not object: ${e}`, C = "empty fields", Y = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, z = /* @__PURE__ */ new WeakMap();
1748
1744
  var k = class {
1749
1745
  static supportedLocalesOf(e, t = void 0) {
1750
1746
  return A.supportedLocalesOf(e, t);
@@ -1763,8 +1759,8 @@ var k = class {
1763
1759
  }
1764
1760
  };
1765
1761
  defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
1766
- const V = Symbol(), L = Symbol(), H = Symbol(), x = Symbol(), q = Symbol(), B = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", le = "trunc", ce = "halfCeil", se = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", pe = "never", he = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], Ee = compareEpochNanoseconds, Pe = /* @__PURE__ */ new WeakMap();
1767
- var Re = class {
1762
+ const V = Symbol(), L = Symbol(), H = Symbol(), x = Symbol(), B = Symbol(), q = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", le = "trunc", ce = "halfCeil", se = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", pe = "never", he = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], Pe = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
1763
+ var be = class {
1768
1764
  constructor(e, t, o = "iso8601") {
1769
1765
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1770
1766
  validateString(t);
@@ -1867,21 +1863,21 @@ var Re = class {
1867
1863
  validatePartialTemporalObject(e);
1868
1864
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.U, createNullPrototypeObject({
1869
1865
  ...isoDateTimeToFields(o.U, r),
1870
- [pt.R]: formatUtcOffsetNanoseconds(n)
1866
+ [ht.R]: formatUtcOffsetNanoseconds(n)
1871
1867
  }), prepareCalendarFields(o.U, e, [
1872
- pt.t,
1873
- pt.u,
1874
- pt.P,
1875
- pt.T,
1876
- pt.D,
1877
- pt.I,
1878
- pt.O,
1879
- pt.F,
1880
- pt.S,
1881
- pt.v,
1882
- pt.R
1868
+ ht.t,
1869
+ ht.u,
1870
+ ht.P,
1871
+ ht.T,
1872
+ ht.D,
1873
+ ht.I,
1874
+ ht.O,
1875
+ ht.F,
1876
+ ht.S,
1877
+ ht.v,
1878
+ ht.R
1883
1879
  ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, Q), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1884
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[pt.R]), o.Z, l, c, !0), o.Z, o.U);
1880
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[ht.R]), o.Z, l, c, !0), o.Z, o.U);
1885
1881
  }
1886
1882
  withPlainTime(e = void 0) {
1887
1883
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -1908,7 +1904,7 @@ var Re = class {
1908
1904
  return differenceTemporalZonedDateTime(-1, getInternalSlotOrThrowForZonedDateTime(this), e, t);
1909
1905
  }
1910
1906
  round(e) {
1911
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
1907
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
1912
1908
  if (validateTemporalUnitValue(a, L, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), a === D && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1913
1909
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
1914
1910
  if (a === d) {
@@ -1923,7 +1919,7 @@ var Re = class {
1923
1919
  return !compareEpochNanoseconds(t.Y, o.Y) && timeZoneEquals(t.Z, o.Z) && calendarEquals(t.U, o.U);
1924
1920
  }
1925
1921
  toString(e = void 0) {
1926
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, le), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
1922
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, le), l = getTemporalUnitValuedOption(o, "smallestUnit"), c = ((e) => getOption(e, "timeZoneName", [
1927
1923
  Ie,
1928
1924
  Oe,
1929
1925
  Fe
@@ -1949,9 +1945,9 @@ var Re = class {
1949
1945
  getTimeZoneTransition(e) {
1950
1946
  const t = getInternalSlotOrThrowForZonedDateTime(this);
1951
1947
  void 0 === e && throwTypeError(W);
1952
- const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], B), n = ((e, t, o) => {
1948
+ const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], q), n = ((e, t, o) => {
1953
1949
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
1954
- const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
1950
+ const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, 1 / 0);
1955
1951
  return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a > r ? a + 31536e3 : r, o);
1956
1952
  })(t.Z, t.Y, "next" === o ? 1 : -1);
1957
1953
  return null === n ? null : createTemporalZonedDateTime(n, t.Z, t.U);
@@ -1971,9 +1967,9 @@ var Re = class {
1971
1967
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.U);
1972
1968
  }
1973
1969
  };
1974
- defineStringTag(Re.prototype, "Temporal.ZonedDateTime"), renameFunction(Re, "ZonedDateTime");
1975
- const be = createNullPrototypeObject(), Ze = createNullPrototypeObject(), Ne = /* @__PURE__ */ new WeakMap();
1976
- var Me = class {
1970
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
1971
+ const Re = globalThis.Temporal, Ze = createNullPrototypeObject(), Ne = createNullPrototypeObject(), Me = /* @__PURE__ */ new WeakMap();
1972
+ var Ue = class {
1977
1973
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = "iso8601") {
1978
1974
  const d = [
1979
1975
  e,
@@ -1989,7 +1985,7 @@ var Me = class {
1989
1985
  ].map(toIntegerWithTruncation);
1990
1986
  validateString(s);
1991
1987
  const u = canonicalizeCalendar(s);
1992
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(R), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1988
+ createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1993
1989
  }
1994
1990
  static from(e, t = void 0) {
1995
1991
  return toTemporalDateTime(e, t);
@@ -2067,16 +2063,16 @@ var Me = class {
2067
2063
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2068
2064
  validatePartialTemporalObject(e);
2069
2065
  const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o.K), prepareCalendarFields(o.U, e, [
2070
- pt.t,
2071
- pt.u,
2072
- pt.P,
2073
- pt.T,
2074
- pt.D,
2075
- pt.I,
2076
- pt.O,
2077
- pt.F,
2078
- pt.S,
2079
- pt.v
2066
+ ht.t,
2067
+ ht.u,
2068
+ ht.P,
2069
+ ht.T,
2070
+ ht.D,
2071
+ ht.I,
2072
+ ht.O,
2073
+ ht.F,
2074
+ ht.S,
2075
+ ht.v
2080
2076
  ]));
2081
2077
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2082
2078
  }
@@ -2100,7 +2096,7 @@ var Me = class {
2100
2096
  return differenceTemporalPlainDateTime(-1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
2101
2097
  }
2102
2098
  round(e) {
2103
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2099
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
2104
2100
  return validateTemporalUnitValue(a, L, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.U);
2105
2101
  }
2106
2102
  equals(e) {
@@ -2108,7 +2104,7 @@ var Me = class {
2108
2104
  return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.U, o.U);
2109
2105
  }
2110
2106
  toString(e = void 0) {
2111
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, le), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2107
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, le), i = getTemporalUnitValuedOption(o, "smallestUnit");
2112
2108
  validateTemporalUnitValue(i, L), i === m && throwRangeError(invalidField("smallestUnit"));
2113
2109
  const l = toSecondsStringPrecisionRecord(i, r);
2114
2110
  return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, l.Pe, l.Ee, a)), t.U, l.ye, n);
@@ -2135,19 +2131,18 @@ var Me = class {
2135
2131
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2136
2132
  }
2137
2133
  };
2138
- defineStringTag(Me.prototype, "Temporal.PlainDateTime"), renameFunction(Me, "PlainDateTime");
2139
- const Ue = /* @__PURE__ */ new WeakMap();
2140
- var je = class {
2134
+ defineStringTag(Ue.prototype, "Temporal.PlainDateTime"), renameFunction(Ue, "PlainDateTime");
2135
+ const je = /* @__PURE__ */ new WeakMap();
2136
+ var $e = class {
2141
2137
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2142
- const i = [
2138
+ createTemporalTime(createTimeRecord(...[
2143
2139
  e,
2144
2140
  t,
2145
2141
  o,
2146
2142
  n,
2147
2143
  r,
2148
2144
  a
2149
- ].map(toIntegerWithTruncation);
2150
- isValidTime(...i) || throwRangeError(R), createTemporalTime(createTimeRecord(...i), this);
2145
+ ].map(toIntegerWithTruncation)), this);
2151
2146
  }
2152
2147
  static from(e, t = void 0) {
2153
2148
  return createTemporalTime(toTemporalTime(e, t));
@@ -2197,14 +2192,14 @@ var je = class {
2197
2192
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2198
2193
  }
2199
2194
  round(e) {
2200
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2195
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
2201
2196
  return validateTemporalUnitValue(a, L), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2202
2197
  }
2203
2198
  equals(e) {
2204
2199
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2205
2200
  }
2206
2201
  toString(e = void 0) {
2207
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2202
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit");
2208
2203
  validateTemporalUnitValue(a, L), a === m && throwRangeError(invalidField("smallestUnit"));
2209
2204
  const i = toSecondsStringPrecisionRecord(a, n);
2210
2205
  return timeRecordToString(roundTime(t, i.Pe, i.Ee, r), i.ye);
@@ -2219,32 +2214,32 @@ var je = class {
2219
2214
  throwTypeError(Y);
2220
2215
  }
2221
2216
  };
2222
- defineStringTag(je.prototype, "Temporal.PlainTime"), renameFunction(je, "PlainTime");
2223
- const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", We = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", ze = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, ke = optionalChain([
2224
- `(?<d>${We})`,
2225
- `(?<y>:?)(?<e>${Ae})`,
2217
+ defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2218
+ const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31", Ae = "[01]\\d|2[0-3]", ze = "[0-5]\\d", ke = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${We})`, Ve = optionalChain([
2219
+ `(?<d>${Ae})`,
2220
+ `(?<y>:?)(?<e>${ze})`,
2226
2221
  "\\k<y>(?<f>[0-5]\\d|60)",
2227
2222
  "[.,](?<g>\\d{1,9})"
2228
- ]), Ve = optionalChain([
2229
- `([+-])(${We})`,
2230
- `(?<z>:?)(${Ae})`,
2231
- `\\k<z>(${Ae})`,
2232
- "[.,](\\d{1,9})"
2233
2223
  ]), Le = optionalChain([
2234
- ze,
2235
- `[ tT]${ke}`,
2236
- `(?<h>${Ve})`
2237
- ]), He = `(?<l>${$e})-?(?<m>${Ce})`, xe = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, qe = `(?<h>${Ve})|(?<i>[zZ])`, Be = `([+-])(${We})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Je = `\\[!?(?<j>${Be})\\]`, _e = join("[a-zA-Z\\d]+", "-"), Xe = `\\[(!)?([a-z_][a-z\\d_-]*)=(${_e})\\]`, Ge = `(?<k>(${Xe})*)`, Ke = RegExp(Xe, "g"), Qe = createRegExp(`${optionalChain([
2238
- ze,
2239
- `[ tT]${ke}`,
2224
+ `([+-])(${Ae})`,
2225
+ `(?<z>:?)(${ze})`,
2226
+ `\\k<z>(${ze})`,
2227
+ "[.,](\\d{1,9})"
2228
+ ]), He = optionalChain([
2229
+ ke,
2230
+ `[ tT]${Ve}`,
2231
+ `(?<h>${Le})`
2232
+ ]), xe = `(?<l>${Ce})-?(?<m>${Ye})`, Be = `(?:--)?(?<m>${Ye})-?(?<n>${We})`, qe = `(?<h>${Le})|(?<i>[zZ])`, Je = `([+-])(${Ae})(?::?(${ze}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, _e = `\\[!?(?<j>${Je})\\]`, Xe = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Xe})\\]`, Ke = `(?<k>(${Ge})*)`, Qe = RegExp(Ge, "g"), et = createRegExp(`${optionalChain([
2233
+ ke,
2234
+ `[ tT]${Ve}`,
2240
2235
  qe
2241
- ])}${Je}${Ge}`), et = createRegExp(`${Le}(?:${Je})?${Ge}`), tt = createRegExp(`${ze}[ tT]${ke}(?:${qe})(?:${Je})?${Ge}`), ot = createRegExp(`(${ze}[ tT]|[tT]?)${ke}(?<h>${Ve})?(?:${Je})?${Ge}`), nt = createRegExp(`(${Le}|${xe})(?:${Je})?${Ge}`), rt = createRegExp(`(${Le}|${He})(?:${Je})?${Ge}`), at = [createRegExp(`${xe}(${Je})?(${Xe})*`), createRegExp(`${He}(${Je})?(${Xe})*`)], it = createRegExp(Be), lt = createRegExp(_e), ct = createRegExp(Ve), st = /* @__PURE__ */ new WeakMap();
2242
- var dt = class {
2236
+ ])}${_e}${Ke}`), tt = createRegExp(`${He}(?:${_e})?${Ke}`), ot = createRegExp(`${ke}[ tT]${Ve}(?:${qe})(?:${_e})?${Ke}`), nt = createRegExp(`(${ke}[ tT]|[tT]?)${Ve}(?<h>${Le})?(?:${_e})?${Ke}`), rt = createRegExp(`(${He}|${Be})(?:${_e})?${Ke}`), at = createRegExp(`(${He}|${xe})(?:${_e})?${Ke}`), it = [createRegExp(`${Be}(${_e})?(${Ge})*`), createRegExp(`${xe}(${_e})?(${Ge})*`)], lt = createRegExp(Je), ct = createRegExp(Xe), st = createRegExp(Le), dt = /* @__PURE__ */ new WeakMap();
2237
+ var mt = class {
2243
2238
  constructor(e, t, o = "iso8601", n = 1972) {
2244
2239
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2245
2240
  validateString(o);
2246
- const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2247
- isValidIsoDate(l, r, a) || throwRangeError(R), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2241
+ const i = canonicalizeCalendar(o);
2242
+ createTemporalMonthDay(createIsoDateRecord(toIntegerWithTruncation(n), r, a), i, this);
2248
2243
  }
2249
2244
  static from(e, t = void 0) {
2250
2245
  return toTemporalMonthDay(e, t);
@@ -2262,11 +2257,11 @@ var dt = class {
2262
2257
  }
2263
2258
  with(e, t = void 0) {
2264
2259
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2265
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, q), prepareCalendarFields(o.U, e, [
2266
- pt.t,
2267
- pt.u,
2268
- pt.P,
2269
- pt.T
2260
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, B), prepareCalendarFields(o.U, e, [
2261
+ ht.t,
2262
+ ht.u,
2263
+ ht.P,
2264
+ ht.T
2270
2265
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.U);
2271
2266
  }
2272
2267
  equals(e) {
@@ -2287,17 +2282,17 @@ var dt = class {
2287
2282
  }
2288
2283
  toPlainDate(e) {
2289
2284
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2290
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, q), prepareCalendarFields(t.U, e, [pt.t], [])), _), t.U);
2285
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, B), prepareCalendarFields(t.U, e, [ht.t], [])), _), t.U);
2291
2286
  }
2292
2287
  };
2293
- defineStringTag(dt.prototype, "Temporal.PlainMonthDay"), renameFunction(dt, "PlainMonthDay");
2294
- const mt = /* @__PURE__ */ new WeakMap();
2295
- var ut = class {
2288
+ defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
2289
+ const ut = /* @__PURE__ */ new WeakMap();
2290
+ var Tt = class {
2296
2291
  constructor(e, t, o = "iso8601", n = 1) {
2297
2292
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2298
2293
  validateString(o);
2299
- const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2300
- isValidIsoDate(r, a, l) || throwRangeError(R), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2294
+ const i = canonicalizeCalendar(o);
2295
+ createTemporalYearMonth(createIsoDateRecord(r, a, toIntegerWithTruncation(n)), i, this);
2301
2296
  }
2302
2297
  static from(e, t = void 0) {
2303
2298
  return toTemporalYearMonth(e, t);
@@ -2339,9 +2334,9 @@ var ut = class {
2339
2334
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2340
2335
  validatePartialTemporalObject(e);
2341
2336
  const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, x), prepareCalendarFields(o.U, e, [
2342
- pt.t,
2343
- pt.u,
2344
- pt.P
2337
+ ht.t,
2338
+ ht.u,
2339
+ ht.P
2345
2340
  ]));
2346
2341
  return createTemporalYearMonth(calendarYearMonthFromFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2347
2342
  }
@@ -2375,17 +2370,17 @@ var ut = class {
2375
2370
  }
2376
2371
  toPlainDate(e) {
2377
2372
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2378
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, x), prepareCalendarFields(t.U, e, [pt.T], [])), _), t.U);
2373
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, x), prepareCalendarFields(t.U, e, [ht.T], [])), _), t.U);
2379
2374
  }
2380
2375
  };
2381
- defineStringTag(ut.prototype, "Temporal.PlainYearMonth"), renameFunction(ut, "PlainYearMonth");
2382
- const Tt = /* @__PURE__ */ new WeakMap();
2383
- var Dt = class {
2376
+ defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
2377
+ const Dt = /* @__PURE__ */ new WeakMap();
2378
+ var pt = class {
2384
2379
  constructor(e, t, o, n = "iso8601") {
2385
2380
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2386
2381
  validateString(n);
2387
2382
  const l = canonicalizeCalendar(n);
2388
- isValidIsoDate(r, a, i) || throwRangeError(R), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2383
+ createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2389
2384
  }
2390
2385
  static from(e, t = void 0) {
2391
2386
  return toTemporalDate(e, t);
@@ -2459,10 +2454,10 @@ var Dt = class {
2459
2454
  const o = getInternalSlotOrThrowForPlainDate(this);
2460
2455
  validatePartialTemporalObject(e);
2461
2456
  const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, V), prepareCalendarFields(o.U, e, [
2462
- pt.t,
2463
- pt.u,
2464
- pt.P,
2465
- pt.T
2457
+ ht.t,
2458
+ ht.u,
2459
+ ht.P,
2460
+ ht.T
2466
2461
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
2467
2462
  return createTemporalDate(calendarDateFromFields(o.U, n, r), o.U);
2468
2463
  }
@@ -2505,8 +2500,8 @@ var Dt = class {
2505
2500
  throwTypeError(Y);
2506
2501
  }
2507
2502
  };
2508
- defineStringTag(Dt.prototype, "Temporal.PlainDate"), renameFunction(Dt, "PlainDate");
2509
- const pt = {
2503
+ defineStringTag(pt.prototype, "Temporal.PlainDate"), renameFunction(pt, "PlainDate");
2504
+ const ht = {
2510
2505
  ne: "era",
2511
2506
  re: "eraYear",
2512
2507
  t: "year",
@@ -2521,41 +2516,41 @@ const pt = {
2521
2516
  v: "nanosecond",
2522
2517
  R: "offset",
2523
2518
  Z: "timeZone"
2524
- }, ht = [
2525
- pt.ne,
2526
- pt.re,
2527
- pt.t,
2528
- pt.u,
2529
- pt.P,
2530
- pt.T,
2531
- pt.D,
2532
- pt.I,
2533
- pt.O,
2534
- pt.F,
2535
- pt.S,
2536
- pt.v,
2537
- pt.R,
2538
- pt.Z
2539
- ], gt = {
2540
- [pt.ne]: [toString],
2541
- [pt.re]: [toIntegerWithTruncation],
2542
- [pt.t]: [toIntegerWithTruncation],
2543
- [pt.u]: [toPositiveIntegerWithTruncation],
2544
- [pt.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2545
- [pt.T]: [toPositiveIntegerWithTruncation],
2546
- [pt.D]: [toIntegerWithTruncation, 0],
2547
- [pt.I]: [toIntegerWithTruncation, 0],
2548
- [pt.O]: [toIntegerWithTruncation, 0],
2549
- [pt.F]: [toIntegerWithTruncation, 0],
2550
- [pt.S]: [toIntegerWithTruncation, 0],
2551
- [pt.v]: [toIntegerWithTruncation, 0],
2552
- [pt.R]: [(e) => {
2519
+ }, gt = [
2520
+ ht.ne,
2521
+ ht.re,
2522
+ ht.t,
2523
+ ht.u,
2524
+ ht.P,
2525
+ ht.T,
2526
+ ht.D,
2527
+ ht.I,
2528
+ ht.O,
2529
+ ht.F,
2530
+ ht.S,
2531
+ ht.v,
2532
+ ht.R,
2533
+ ht.Z
2534
+ ], ft = {
2535
+ [ht.ne]: [toString],
2536
+ [ht.re]: [toIntegerWithTruncation],
2537
+ [ht.t]: [toIntegerWithTruncation],
2538
+ [ht.u]: [toPositiveIntegerWithTruncation],
2539
+ [ht.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2540
+ [ht.T]: [toPositiveIntegerWithTruncation],
2541
+ [ht.D]: [toIntegerWithTruncation, 0],
2542
+ [ht.I]: [toIntegerWithTruncation, 0],
2543
+ [ht.O]: [toIntegerWithTruncation, 0],
2544
+ [ht.F]: [toIntegerWithTruncation, 0],
2545
+ [ht.S]: [toIntegerWithTruncation, 0],
2546
+ [ht.v]: [toIntegerWithTruncation, 0],
2547
+ [ht.R]: [(e) => {
2553
2548
  const t = toPrimitive(e);
2554
2549
  return validateString(t), parseDateTimeUtcOffset(t), t;
2555
2550
  }],
2556
- [pt.Z]: [toTemporalTimeZoneIdentifier]
2557
- }, ft = /* @__PURE__ */ new WeakMap(), It = signTimeDuration;
2558
- var Ot = class {
2551
+ [ht.Z]: [toTemporalTimeZoneIdentifier]
2552
+ }, It = /* @__PURE__ */ new WeakMap(), Ot = signTimeDuration;
2553
+ var Ft = class {
2559
2554
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
2560
2555
  createTemporalDuration(createTemporalDurationSlot([
2561
2556
  e,
@@ -2578,7 +2573,7 @@ var Ot = class {
2578
2573
  if (!n.some((e, t) => r[t] !== e)) return 0;
2579
2574
  const i = defaultTemporalLargestUnit(n), l = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), s = toInternalDurationRecord(r);
2580
2575
  let d, m;
2581
- return a.Re && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Re, c, _), addZonedDateTime(a.Re, s, _)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.be), m = dateDurationDays(s.A, a.be)) : (d = n[f], m = r[f]), Ee(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2576
+ return a.be && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.be, c, _), addZonedDateTime(a.be, s, _)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.Re), m = dateDurationDays(s.A, a.Re)) : (d = n[f], m = r[f]), Pe(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2582
2577
  }
2583
2578
  get years() {
2584
2579
  return getInternalSlotOrThrowForDuration(this)[p];
@@ -2634,35 +2629,33 @@ var Ot = class {
2634
2629
  }
2635
2630
  round(e) {
2636
2631
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
2637
- let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
2632
+ let n = getTemporalUnitValuedOption(o, "largestUnit");
2638
2633
  const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, de);
2639
- let l = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2634
+ let l = getTemporalUnitValuedOption(o, "smallestUnit");
2640
2635
  validateTemporalUnitValue(l, H);
2641
- const c = void 0 !== l;
2642
- l ??= D;
2643
- const s = defaultTemporalLargestUnit(t), u = largerOfTwoTemporalUnits(s, l), T = void 0 !== n;
2644
- if (void 0 !== n && "auto" !== n || (n = u), (!c && !T || n > l) && throwRangeError(U), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(U), r.Re) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Re, createZonedDateTimeSlot(addZonedDateTime(r.Re, toInternalDurationRecord(t), _), r.Re.Z, r.Re.U), n, a, l, i), isDateUnit(n) ? m : n));
2645
- if (r.be) {
2636
+ const c = defaultTemporalLargestUnit(t), s = void 0 === l && void 0 === n;
2637
+ if (l ??= D, void 0 !== n && "auto" !== n || (n = largerOfTwoTemporalUnits(c, l)), (s || n > l) && throwRangeError(U), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(U), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.Z, r.be.U), n, a, l, i), isDateUnit(n) ? m : n));
2638
+ if (r.Re) {
2646
2639
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2647
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.U, r.be.o, adjustDateDurationRecord(e.A, o.X), _), o), r.be.U, n, a, l, i), n));
2640
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.A, o.X), _), o), r.Re.U, n, a, l, i), n));
2648
2641
  }
2649
- (isCalendarUnit(s) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2650
- const p = toInternalDurationRecordWith24HourDays(t);
2651
- return createTemporalDuration(temporalDurationFromInternal(l === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(p.p, a, i)[0]), ye) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(p.p, a, l, i)), n));
2642
+ (isCalendarUnit(c) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2643
+ const u = toInternalDurationRecordWith24HourDays(t);
2644
+ return createTemporalDuration(temporalDurationFromInternal(l === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(u.p, a, i)[0]), ye) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(u.p, a, l, i)), n));
2652
2645
  }
2653
2646
  total(e) {
2654
2647
  const t = getInternalSlotOrThrowForDuration(this);
2655
2648
  void 0 === e && throwTypeError(W);
2656
- const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", B);
2657
- if (validateTemporalUnitValue(r, H), n.Re) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.Re, createZonedDateTimeSlot(addZonedDateTime(n.Re, toInternalDurationRecord(t), _), n.Re.Z, n.Re.U), r);
2658
- if (n.be) {
2649
+ const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", q);
2650
+ if (validateTemporalUnitValue(r, H), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), _), n.be.Z, n.be.U), r);
2651
+ if (n.Re) {
2659
2652
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2660
- return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.be.U, n.be.o, adjustDateDurationRecord(e.A, o.X), _), o), n.be.U, r);
2653
+ return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Re.U, n.Re.o, adjustDateDurationRecord(e.A, o.X), _), o), n.Re.U, r);
2661
2654
  }
2662
2655
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
2663
2656
  }
2664
2657
  toString(e = void 0) {
2665
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2658
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit");
2666
2659
  validateTemporalUnitValue(a, L), a !== m && a !== u || throwRangeError(disallowedUnit(a));
2667
2660
  const i = toSecondsStringPrecisionRecord(a, n);
2668
2661
  if (i.Ee === D && 1 === i.Pe) return temporalDurationToString(t, i.ye);
@@ -2679,8 +2672,8 @@ var Ot = class {
2679
2672
  throwTypeError(Y);
2680
2673
  }
2681
2674
  };
2682
- defineStringTag(Ot.prototype, "Temporal.Duration"), renameFunction(Ot, "Duration");
2683
- const Ft = {
2675
+ defineStringTag(Ft.prototype, "Temporal.Duration"), renameFunction(Ft, "Duration");
2676
+ const St = {
2684
2677
  [re]: Math.ceil,
2685
2678
  [ae]: Math.floor,
2686
2679
  [ie]: roundExpand,
@@ -2690,7 +2683,7 @@ const Ft = {
2690
2683
  [de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2691
2684
  [me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2692
2685
  [ue]: roundHalfEven
2693
- }, St = {
2686
+ }, wt = {
2694
2687
  [re]: Math.ceil,
2695
2688
  [ae]: Math.floor,
2696
2689
  [ie]: Math.ceil,
@@ -2700,7 +2693,7 @@ const Ft = {
2700
2693
  [de]: roundHalfCeil,
2701
2694
  [me]: roundHalfFloor,
2702
2695
  [ue]: roundHalfEven
2703
- }, wt = globalThis.Intl.DateTimeFormat, vt = /* @__PURE__ */ new WeakMap(), yt = [
2696
+ }, vt = globalThis.Intl.DateTimeFormat, yt = /* @__PURE__ */ new WeakMap(), Pt = [
2704
2697
  "year",
2705
2698
  "month",
2706
2699
  "day",
@@ -2714,16 +2707,16 @@ const Ft = {
2714
2707
  "dayPeriod",
2715
2708
  "timeStyle"
2716
2709
  ];
2717
- var Pt = class {
2710
+ var bt = class {
2718
2711
  ke(e) {
2719
2712
  return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
2720
2713
  }
2721
2714
  }, Rt = class {
2722
2715
  constructor(e, t) {
2723
- vt.set(this, createDateTimeFormat(e, t, H, void 0));
2716
+ yt.set(this, createDateTimeFormat(e, t, H, void 0));
2724
2717
  }
2725
2718
  get format() {
2726
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= Pt.prototype.ke.bind(this), "name", { value: "" });
2719
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= bt.prototype.ke.bind(this), "name", { value: "" });
2727
2720
  }
2728
2721
  formatToParts(e) {
2729
2722
  return ((e, t) => {
@@ -2749,12 +2742,12 @@ var Pt = class {
2749
2742
  return getInternalSlotOrThrowForDateTimeFormat(this).Ze.resolvedOptions();
2750
2743
  }
2751
2744
  };
2752
- const bt = Object.getOwnPropertyDescriptors(wt), Zt = Rt.prototype;
2753
- bt.prototype.value = Zt;
2754
- for (const e of ["formatRange", "formatRangeToParts"]) wt.prototype[e] || delete Zt[e];
2755
- Object.defineProperties(DateTimeFormat, bt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2756
- const Nt = /* @__PURE__ */ new WeakMap();
2757
- var Mt = class {
2745
+ const Zt = Object.getOwnPropertyDescriptors(vt), Nt = Rt.prototype;
2746
+ Zt.prototype.value = Nt;
2747
+ for (const e of ["formatRange", "formatRangeToParts"]) vt.prototype[e] || delete Nt[e];
2748
+ Object.defineProperties(DateTimeFormat, Zt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2749
+ const Mt = /* @__PURE__ */ new WeakMap();
2750
+ var Ut = class {
2758
2751
  constructor(e) {
2759
2752
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
2760
2753
  }
@@ -2789,14 +2782,14 @@ var Mt = class {
2789
2782
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
2790
2783
  }
2791
2784
  round(e) {
2792
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), i = getTemporalUnitValuedOption(o, "smallestUnit", B);
2785
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), i = getTemporalUnitValuedOption(o, "smallestUnit", q);
2793
2786
  return validateTemporalUnitValue(i, L), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, i, r));
2794
2787
  }
2795
2788
  equals(e) {
2796
2789
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).Y, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).Y);
2797
2790
  }
2798
2791
  toString(e = void 0) {
2799
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2792
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit"), i = o.timeZone;
2800
2793
  validateTemporalUnitValue(a, L), a === m && throwRangeError(invalidField("smallestUnit"));
2801
2794
  const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
2802
2795
  return temporalInstantToString(roundTemporalInstant(t.Y, c.Pe, c.Ee, r), l, c.ye);
@@ -2814,16 +2807,16 @@ var Mt = class {
2814
2807
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
2815
2808
  }
2816
2809
  };
2817
- defineStringTag(Mt.prototype, "Temporal.Instant"), renameFunction(Mt, "Instant");
2818
- const Ut = class {
2810
+ defineStringTag(Ut.prototype, "Temporal.Instant"), renameFunction(Ut, "Instant");
2811
+ const jt = class {
2819
2812
  toTemporalInstant() {
2820
2813
  const e = Date.prototype.valueOf.call(this);
2821
2814
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2822
2815
  }
2823
- }.prototype.toTemporalInstant, jt = {}, $t = Object.getOwnPropertyDescriptors(globalThis.Intl);
2824
- $t.DateTimeFormat.value = DateTimeFormat, $t.DurationFormat && ($t.DurationFormat.value = k), Object.defineProperties(jt, $t);
2825
- let Ct, Yt = 0, Wt = -Infinity;
2826
- const At = {
2816
+ }.prototype.toTemporalInstant, $t = {}, Ct = Object.getOwnPropertyDescriptors(globalThis.Intl);
2817
+ Ct.DateTimeFormat.value = DateTimeFormat, Ct.DurationFormat && (Ct.DurationFormat.value = k), Object.defineProperties($t, Ct);
2818
+ let Yt, Wt = 0, At = -1 / 0;
2819
+ const zt = {
2827
2820
  timeZoneId: () => systemTimeZoneIdentifier(),
2828
2821
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
2829
2822
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -2831,17 +2824,17 @@ const At = {
2831
2824
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
2832
2825
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
2833
2826
  };
2834
- defineStringTag(At, "Temporal.Now"), makePropertiesNonEnumerable(At);
2835
- const zt = {
2836
- Instant: Mt,
2837
- PlainDateTime: Me,
2838
- PlainDate: Dt,
2839
- PlainTime: je,
2840
- PlainYearMonth: ut,
2841
- PlainMonthDay: dt,
2842
- Duration: Ot,
2843
- ZonedDateTime: Re,
2844
- Now: At
2827
+ defineStringTag(zt, "Temporal.Now"), makePropertiesNonEnumerable(zt);
2828
+ const kt = {
2829
+ Instant: Ut,
2830
+ PlainDateTime: Ue,
2831
+ PlainDate: pt,
2832
+ PlainTime: $e,
2833
+ PlainYearMonth: Tt,
2834
+ PlainMonthDay: mt,
2835
+ Duration: Ft,
2836
+ ZonedDateTime: be,
2837
+ Now: zt
2845
2838
  };
2846
- defineStringTag(zt, "Temporal"), makePropertiesNonEnumerable(zt);
2847
- export { defineNonEnumerableProperty as a, Ut as i, setSystemTimeZoneIdCacheTtl as n, jt as r, zt as t };
2839
+ defineStringTag(kt, "Temporal"), makePropertiesNonEnumerable(kt);
2840
+ export { defineNonEnumerableProperty as a, jt as i, setSystemTimeZoneIdCacheTtl as n, $t as r, kt as t };