temporal-polyfill-lite 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  function getNameFromUnit(e) {
2
- return ie[e];
2
+ return ae[e];
3
3
  }
4
4
  function nanosecondsForTimeUnit(e) {
5
- return ce[e - 3];
5
+ return le[e - 3];
6
6
  }
7
7
  function isObject(e) {
8
8
  return ("object" == typeof e || "function" == typeof e) && null !== e;
@@ -38,11 +38,11 @@ function toBigInt(e) {
38
38
  return BigInt.asIntN(2 ** 53 - 1, e);
39
39
  }
40
40
  function toIntegerIfIntegral(e) {
41
- const t = Se(e);
41
+ const t = Oe(e);
42
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
43
43
  }
44
44
  function toIntegerWithTruncation(e) {
45
- const t = Se(e);
45
+ const t = Oe(e);
46
46
  return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
47
47
  }
48
48
  function toPositiveIntegerWithTruncation(e) {
@@ -58,7 +58,7 @@ function getOption(e, t, o, n) {
58
58
  const a = toString(r);
59
59
  return o.includes(a) || throwRangeError(invalidField(t)), a;
60
60
  }
61
- function getRoundToOptionsObject(e = throwTypeError(Oe)) {
61
+ function getRoundToOptionsObject(e = throwTypeError(Ie)) {
62
62
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
63
63
  }
64
64
  function validateString(e) {
@@ -104,10 +104,10 @@ function renameFunction(e, t) {
104
104
  Object.defineProperty(e, "name", { value: t });
105
105
  }
106
106
  function normalizeEpochNanoseconds(e, t) {
107
- return [e + divFloor(t, i), modFloor(t, i)];
107
+ return [e + divFloor(t, a), modFloor(t, a)];
108
108
  }
109
109
  function createEpochNanosecondsFromBigInt(e) {
110
- return normalizeEpochNanoseconds(Number(e / BigInt(i)), Number(e % BigInt(i)));
110
+ return normalizeEpochNanoseconds(Number(e / BigInt(a)), Number(e % BigInt(a)));
111
111
  }
112
112
  function createEpochNanosecondsFromEpochMilliseconds(e) {
113
113
  return normalizeEpochNanoseconds(divFloor(e, r), 1e6 * modFloor(e, r));
@@ -116,7 +116,7 @@ function createEpochNanosecondsFromEpochSeconds(e) {
116
116
  return createEpochNanosecondsFromEpochMilliseconds(1e3 * e);
117
117
  }
118
118
  function convertEpochNanosecondsToBigInt(e) {
119
- return BigInt(e[0]) * BigInt(i) + BigInt(e[1]);
119
+ return BigInt(e[0]) * BigInt(a) + BigInt(e[1]);
120
120
  }
121
121
  function compareEpochNanoseconds(e, t) {
122
122
  return compare(e[0], t[0]) || compare(e[1], t[1]);
@@ -147,40 +147,41 @@ function toZeroPaddedDecimalString(e, t) {
147
147
  }
148
148
  function normalize(e, t) {
149
149
  const [o, n] = normalizeEpochNanoseconds(e, t);
150
- return o < 0 && n > 0 ? [o + 1, n - i] : [o, n];
150
+ return o < 0 && n > 0 ? [o + 1, n - a] : [o, n];
151
151
  }
152
- function createTimeDurationFromSeconds(e) {
153
- return normalize(divTrunc(e, n), e % n * 1e9);
152
+ function createTimeDurationFromUnit(e, t) {
153
+ const o = a / t;
154
+ return normalize(Math.round((e - e % o) / o), e % o * t);
154
155
  }
155
156
  function addTimeDuration(e, t) {
156
157
  return normalize(e[0] + t[0], e[1] + t[1]);
157
158
  }
158
159
  function absTimeDuration(e) {
159
- return normalize(Math.abs(e[0]), Math.abs(e[1]));
160
+ return e.map(Math.abs);
160
161
  }
161
162
  function negateTimeDuration(e) {
162
163
  return normalize(-e[0], -e[1]);
163
164
  }
164
165
  function signTimeDuration(e) {
165
- return ve(e, [0, 0]);
166
+ return ve(e, we);
166
167
  }
167
168
  function timeDurationToSubsecondsNumber(e, t, o) {
168
169
  const n = signTimeDuration(e);
169
- return e = absTimeDuration(e), n * Se(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
170
+ return e = absTimeDuration(e), n * Oe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
170
171
  }
171
172
  function roundTimeDurationByDays(e, t, o) {
172
- return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / i), .5) + .5 : 0), t, o), 0);
173
+ return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
173
174
  }
174
175
  function divideTimeDurationToFloatingPoint(e, t) {
175
- return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
176
+ return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : a / t * e[0] + e[1] / t;
176
177
  }
177
178
  function interpretISODateTimeOffset(e, t, o, n, r, a, i, l) {
178
179
  if (!t) return getStartOfDay(r, e);
179
180
  const c = combineIsoDateAndTimeRecord(e, t);
180
- if (o === w || o === S && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
181
- if (o === F || o === S && "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.S, c.p.F, c.p.v - n)));
181
+ if (o === S || o === O && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
+ if (o === F || o === O && "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)));
182
183
  ((e) => {
183
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(de);
184
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(se);
184
185
  })(e);
185
186
  const s = getPossibleEpochNanoseconds(r, c);
186
187
  for (const e of s) {
@@ -195,37 +196,37 @@ function toTemporalZonedDateTime(e, t) {
195
196
  if (isObject(e)) {
196
197
  if (isZonedDateTime(e)) {
197
198
  const o = getOptionsObject(t);
198
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, h), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
199
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, p), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
199
200
  }
200
201
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
201
202
  const s = prepareCalendarFields(i, e, [
202
- ut.t,
203
- ut.u,
204
- ut.P,
205
- ut.T,
206
- ut.D,
207
- ut.I,
208
- ut.O,
209
- ut.S,
210
- ut.F,
211
- ut.v,
212
- ut.R,
213
- ut.Z
214
- ], [ut.Z]);
203
+ Tt.t,
204
+ Tt.u,
205
+ Tt.P,
206
+ Tt.T,
207
+ Tt.D,
208
+ Tt.I,
209
+ Tt.O,
210
+ Tt.F,
211
+ Tt.S,
212
+ Tt.v,
213
+ Tt.R,
214
+ Tt.Z
215
+ ], [Tt.Z]);
215
216
  o = s.timeZone, n = s.offset;
216
217
  const d = getOptionsObject(t);
217
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, h);
218
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
218
219
  const m = interpretTemporalDateTimeFields(i, s, getTemporalOverflowOption(d));
219
220
  l = m.o, c = m.p;
220
221
  } else {
221
222
  validateString(e);
222
223
  const m = parseIsoDateTime(e, [Ge]);
223
224
  o = toTemporalTimeZoneIdentifier(m.Z.$), n = m.Z.N, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
224
- const T = getOptionsObject(t);
225
- r = getTemporalDisambiguationOption(T), a = getTemporalOffsetOption(T, h), getTemporalOverflowOption(T), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
225
+ const u = getOptionsObject(t);
226
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
226
227
  }
227
- const m = s ? F : n ? S : w;
228
- return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === S ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
228
+ const m = s ? F : n ? O : S;
229
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === O ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
229
230
  }
230
231
  function createTemporalZonedDateTime(e, t, o, n) {
231
232
  return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
@@ -238,34 +239,34 @@ function createZonedDateTimeSlot(e, t, o, n) {
238
239
  W: n
239
240
  };
240
241
  }
241
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = _, l = P) {
242
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = J, l = E) {
242
243
  const c = roundTemporalInstant(e.Y, a, i, l), s = epochSeconds(c) === epochSeconds(e.Y) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.Z, c);
243
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, $)}${r === W ? "" : formatDateTimeUtcOffsetRounded(s)}${n === z ? "" : `[${n === V ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
244
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, j)}${r === Y ? "" : formatDateTimeUtcOffsetRounded(s)}${n === A ? "" : `[${n === z ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
244
245
  }
245
246
  function addZonedDateTime(e, t, o) {
246
247
  if (!dateDurationSign(t.A)) return addInstant(e.Y, t.p);
247
248
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
248
- return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), g), t.p);
249
+ return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), h), t.p);
249
250
  }
250
251
  function differenceZonedDateTime(e, t, o) {
251
252
  const n = compareEpochNanoseconds(e.Y, t.Y);
252
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
253
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), we);
253
254
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
254
255
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.Y, e.Y));
255
256
  let i, l = differenceTime(r.p, a.p);
256
- for (let o = gt(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)), gt(l) === n); o++);
257
- return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, L)), l);
257
+ for (let o = gt(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, h)), gt(l) === n); o++);
258
+ return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, x)), l);
258
259
  }
259
260
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
260
261
  if (!isDateUnit(o)) return differenceInstant(e.Y, t.Y, n, r, a);
261
262
  const i = differenceZonedDateTime(e, t, o);
262
- return r === _ && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
263
+ return r === J && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
263
264
  }
264
265
  function differenceTemporalZonedDateTime(e, t, o, n) {
265
266
  const r = toTemporalZonedDateTime(o);
266
267
  calendarEquals(t.U, r.U) || throwRangeError(ue);
267
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, q);
268
- 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.H, a.L, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
268
+ const a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, L);
269
+ 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.H, a.L, a.q), L), e)) : createTemporalDuration(createTemporalDurationSlot([
269
270
  0,
270
271
  0,
271
272
  0,
@@ -298,7 +299,7 @@ function getInternalSlotForZonedDateTime(e) {
298
299
  }
299
300
  function getInternalSlotOrThrowForZonedDateTime(e) {
300
301
  const t = getInternalSlotForZonedDateTime(e);
301
- return t || throwTypeError(De), t;
302
+ return t || throwTypeError(Te), t;
302
303
  }
303
304
  function isZonedDateTime(e) {
304
305
  return !!getInternalSlotForZonedDateTime(e);
@@ -311,17 +312,16 @@ function clampEpochSecond(e) {
311
312
  }
312
313
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
313
314
  if ("UTC" === t) return 0;
314
- const r = clampEpochSecond(o), a = Re[t] ||= (() => {
315
+ const r = clampEpochSecond(o), a = Re[t] ||= (function() {
315
316
  const e = /* @__PURE__ */ new Map();
316
317
  return {
317
318
  C(t) {
318
- if (e.has(t)) {
319
- const o = e.get(t);
320
- return e.delete(t), e.set(t, o), o;
321
- }
319
+ const o = e.get(t);
320
+ if (void 0 !== o) return e.delete(t), e.set(t, o), o;
322
321
  },
323
- B(t, o) {
324
- e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o);
322
+ B: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
323
+ J(e, t) {
324
+ return this.C(e) ?? this.B(e, t());
325
325
  }
326
326
  };
327
327
  })(), i = a.C(r);
@@ -337,7 +337,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
337
337
  return n || a.B(r, c), c;
338
338
  }
339
339
  function getFormatterForTimeZone(e) {
340
- return Pe[e] ||= new St("en-u-hc-h23", {
340
+ return Pe[e] ||= new Ft("en-u-hc-h23", {
341
341
  timeZone: e,
342
342
  year: "numeric",
343
343
  month: "numeric",
@@ -377,10 +377,10 @@ function formatOffsetTimeZoneIdentifier(e) {
377
377
  }
378
378
  function formatUtcOffsetNanoseconds(e) {
379
379
  const n = Math.abs(e);
380
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : D)}`;
380
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : T)}`;
381
381
  }
382
382
  function formatDateTimeUtcOffsetRounded(e) {
383
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, Z) / t);
383
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, b) / t);
384
384
  }
385
385
  function toTemporalTimeZoneIdentifier(e) {
386
386
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).Z;
@@ -389,7 +389,7 @@ function toTemporalTimeZoneIdentifier(e) {
389
389
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
390
390
  const t = parseIsoDateTime(e, [
391
391
  Ge,
392
- Xe,
392
+ Ke,
393
393
  Qe,
394
394
  et,
395
395
  tt,
@@ -397,7 +397,7 @@ function toTemporalTimeZoneIdentifier(e) {
397
397
  ]).Z, o = t.$ || t.M && "UTC" || t.N;
398
398
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
399
399
  })(e);
400
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t._);
400
+ return t._ ? getAvailableNamedTimeZoneIdentifier(t._) : formatOffsetTimeZoneIdentifier(t.G);
401
401
  }
402
402
  function getOffsetNanosecondsFor(e, t) {
403
403
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -406,10 +406,10 @@ function getEpochNanosecondsFor(e, t, o) {
406
406
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
407
407
  }
408
408
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
409
- return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === f)]);
409
+ return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === g)]);
410
410
  }
411
411
  function getPossibleEpochNanoseconds(e, t) {
412
- return isOffsetTimeZoneIdentifier(e) ? [validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.o.t, t.o.u, t.o.T, t.p.D, t.p.I, t.p.O, t.p.S, t.p.F, t.p.v - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
412
+ return isOffsetTimeZoneIdentifier(e) ? [validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.o.t, t.o.u, t.o.T, t.p.D, t.p.I, t.p.O, t.p.F, t.p.S, t.p.v - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
413
413
  }
414
414
  function getStartOfDay(e, t) {
415
415
  const o = combineIsoDateAndTimeRecord(t, midnightTimeRecord());
@@ -419,7 +419,7 @@ function timeZoneEquals(e, t) {
419
419
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
420
420
  }
421
421
  function parseTimeZoneIdentifier(e) {
422
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { _: parseDateTimeUtcOffset(e) / t } : { J: e });
422
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
423
423
  }
424
424
  function isOffsetTimeZoneIdentifier(e) {
425
425
  return /^[+-]/.test(e);
@@ -443,14 +443,14 @@ function combineIsoDateAndTimeRecord(e, t) {
443
443
  };
444
444
  }
445
445
  function interpretTemporalDateTimeFields(e, t, o) {
446
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[ut.D], t[ut.I], t[ut.O], t[ut.S], t[ut.F], t[ut.v], o));
446
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Tt.D], t[Tt.I], t[Tt.O], t[Tt.F], t[Tt.S], t[Tt.v], o));
447
447
  }
448
448
  function toTemporalDateTime(e, t) {
449
449
  if (isObject(e)) {
450
450
  if (isPlainDateTime(e)) {
451
451
  getTemporalOverflowOption(getOptionsObject(t));
452
452
  const o = getInternalSlotOrThrowForPlainDateTime(e);
453
- return createTemporalDateTime(o.G, o.U);
453
+ return createTemporalDateTime(o.K, o.U);
454
454
  }
455
455
  if (isZonedDateTime(e)) {
456
456
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -463,61 +463,61 @@ function toTemporalDateTime(e, t) {
463
463
  }
464
464
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
465
465
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
466
- ut.t,
467
- ut.u,
468
- ut.P,
469
- ut.T,
470
- ut.D,
471
- ut.I,
472
- ut.O,
473
- ut.S,
474
- ut.F,
475
- ut.v
466
+ Tt.t,
467
+ Tt.u,
468
+ Tt.P,
469
+ Tt.T,
470
+ Tt.D,
471
+ Tt.I,
472
+ Tt.O,
473
+ Tt.F,
474
+ Tt.S,
475
+ Tt.v
476
476
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
477
477
  }
478
478
  validateString(e);
479
- const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.U || "iso8601");
479
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
480
480
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
481
481
  }
482
482
  function balanceIsoDateTime(e, t, o, n, r, a, i, l, c) {
483
483
  const s = balanceTime(n, r, a, i, l, c);
484
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.K), s);
484
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.X), s);
485
485
  }
486
486
  function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
487
487
  return be.set(o, {
488
- G: validateIsoDateTime(e),
488
+ K: validateIsoDateTime(e),
489
489
  U: t
490
490
  }), o;
491
491
  }
492
492
  function isoDateTimeToString(e, t, o, n) {
493
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}T${formatTimeString(e.p.D, e.p.I, e.p.O, 1e6 * e.p.S + 1e3 * e.p.F + e.p.v, o)}${formatCalendarAnnotation(t, n)}`;
493
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}T${formatTimeString(e.p.D, e.p.I, e.p.O, 1e6 * e.p.F + 1e3 * e.p.S + e.p.v, o)}${formatCalendarAnnotation(t, n)}`;
494
494
  }
495
495
  function compareIsoDateTime(e, t) {
496
496
  return compareIsoDate(e.o, t.o) || compareTimeRecord(e.p, t.p);
497
497
  }
498
498
  function roundIsoDateTime(e, t, o, n) {
499
499
  const r = roundTime(e.p, t, o, n);
500
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.K), r);
500
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.X), r);
501
501
  }
502
502
  function differenceISODateTime(e, t, o, n) {
503
503
  let r = differenceTime(e.p, t.p);
504
504
  const a = gt(r);
505
505
  let i = t.o;
506
506
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
507
- const l = largerOfTwoTemporalUnits(L, n), c = calendarDateUntil(o, e.o, i, l);
508
- return n !== l && (r = add24HourDaysToTimeDuration(r, c.K), c.K = 0), combineDateAndTimeDuration(c, r);
507
+ const l = largerOfTwoTemporalUnits(x, n), c = calendarDateUntil(o, e.o, i, l);
508
+ return n !== l && (r = add24HourDaysToTimeDuration(r, c.X), c.X = 0), combineDateAndTimeDuration(c, r);
509
509
  }
510
510
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
511
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
511
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), we);
512
512
  validateIsoDateTime(e), validateIsoDateTime(t);
513
513
  const l = differenceISODateTime(e, t, o, n);
514
- return a === _ && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
514
+ return a === J && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
515
515
  }
516
516
  function differenceTemporalPlainDateTime(e, t, o, n) {
517
517
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
518
518
  calendarEquals(t.U, r.U) || throwRangeError(ue);
519
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, L);
520
- return compareIsoDateTime(t.G, r.G) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.G, r.G, t.U, a.V, a.H, a.L, a.q), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
519
+ const a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, x);
520
+ return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.U, a.V, a.H, a.L, a.q), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
521
521
  0,
522
522
  0,
523
523
  0,
@@ -531,44 +531,48 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
531
531
  ]));
532
532
  }
533
533
  function addDurationToDateTime(e, t, o, n) {
534
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t.G.p, i.p);
535
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t.G.o, adjustDateDurationRecord(i.A, l.K), a), l), t.U);
534
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t.K.p, i.p);
535
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t.K.o, adjustDateDurationRecord(i.A, l.X), a), l), t.U);
536
536
  }
537
537
  function validateIsoDateTime(e) {
538
538
  return ((e) => {
539
539
  const t = isoDateRecordToEpochDays(e.o);
540
540
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
541
- })(e) || throwRangeError(de), e;
541
+ })(e) || throwRangeError(se), e;
542
542
  }
543
543
  function getInternalSlotForPlainDateTime(e) {
544
544
  return be.get(e);
545
545
  }
546
546
  function getInternalSlotOrThrowForPlainDateTime(e) {
547
547
  const t = getInternalSlotForPlainDateTime(e);
548
- return t || throwTypeError(De), t;
548
+ return t || throwTypeError(Te), t;
549
549
  }
550
550
  function isPlainDateTime(e) {
551
551
  return !!getInternalSlotForPlainDateTime(e);
552
552
  }
553
+ function calendarDateForPlainDateTime(e) {
554
+ const t = getInternalSlotOrThrowForPlainDateTime(e);
555
+ return calendarIsoToDate(t.U, t.K.o);
556
+ }
553
557
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
554
558
  return {
555
559
  D: e,
556
560
  I: t,
557
561
  O: o,
558
- S: n,
559
- F: r,
562
+ F: n,
563
+ S: r,
560
564
  v: a,
561
- K: i
565
+ X: i
562
566
  };
563
567
  }
564
568
  function midnightTimeRecord() {
565
569
  return createTimeRecord(0, 0, 0, 0, 0, 0);
566
570
  }
567
571
  function differenceTime(e, t) {
568
- return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.S - e.S, t.F - e.F, t.v - e.v);
572
+ return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.v - e.v);
569
573
  }
570
574
  function toTemporalTime(e, t) {
571
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).G.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
575
+ 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)));
572
576
  validateString(e);
573
577
  const o = parseIsoDateTime(e, [et]);
574
578
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
@@ -577,7 +581,7 @@ function toTimeRecordOrMidnight(e) {
577
581
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
578
582
  }
579
583
  function regulateTime(e, t, o, n, r, a, i) {
580
- 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(se), createTimeRecord(e, t, o, n, r, a));
584
+ 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(ce), createTimeRecord(e, t, o, n, r, a));
581
585
  }
582
586
  function isValidTime(e, t, o, n, r, a) {
583
587
  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);
@@ -587,10 +591,10 @@ function balanceTime(e, t, o, n, r, a) {
587
591
  D: modFloor(e += divFloor(t, 60), 24),
588
592
  I: modFloor(t, 60),
589
593
  O: modFloor(o, 60),
590
- S: modFloor(n, 1e3),
591
- F: modFloor(r, 1e3),
594
+ F: modFloor(n, 1e3),
595
+ S: modFloor(r, 1e3),
592
596
  v: modFloor(a, 1e3),
593
- K: divFloor(e, 24)
597
+ X: divFloor(e, 24)
594
598
  };
595
599
  }
596
600
  function createTemporalTime(e, t = Object.create(Me.prototype)) {
@@ -599,17 +603,17 @@ function createTemporalTime(e, t = Object.create(Me.prototype)) {
599
603
  function toTemporalTimeRecord(e, t = !1) {
600
604
  let o = !1;
601
605
  const n = [
602
- ut.D,
603
- ut.F,
604
- ut.S,
605
- ut.I,
606
- ut.v,
607
- ut.O
606
+ Tt.D,
607
+ Tt.S,
608
+ Tt.F,
609
+ Tt.I,
610
+ Tt.v,
611
+ Tt.O
608
612
  ].map((n) => {
609
613
  const r = e[n];
610
614
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
611
615
  });
612
- return o || throwTypeError(fe), [
616
+ return o || throwTypeError(ge), [
613
617
  0,
614
618
  3,
615
619
  5,
@@ -619,21 +623,21 @@ function toTemporalTimeRecord(e, t = !1) {
619
623
  ].map((e) => n[e]);
620
624
  }
621
625
  function timeRecordToString(e, t) {
622
- return formatTimeString(e.D, e.I, e.O, 1e6 * e.S + 1e3 * e.F + e.v, t);
626
+ return formatTimeString(e.D, e.I, e.O, 1e6 * e.F + 1e3 * e.S + e.v, t);
623
627
  }
624
628
  function compareTimeRecord(e, t) {
625
- return compare(e.D, t.D) || compare(e.I, t.I) || compare(e.O, t.O) || compare(e.S, t.S) || compare(e.F, t.F) || compare(e.v, t.v);
629
+ return compare(e.D, t.D) || compare(e.I, t.I) || compare(e.O, t.O) || compare(e.F, t.F) || compare(e.S, t.S) || compare(e.v, t.v);
626
630
  }
627
631
  function addTime(e, t) {
628
- const o = t, n = balanceTime(e.D, e.I, e.O, e.S, e.F, e.v + o[1]);
629
- return n.K += o[0], n;
632
+ const o = t, n = balanceTime(e.D, e.I, e.O, e.F, e.S, e.v + o[1]);
633
+ return n.X += o[0], n;
630
634
  }
631
635
  function roundTime(e, n, r, a) {
632
- const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), l = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.S + 1e3 * e.F + e.v;
636
+ const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), l = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.v;
633
637
  return balanceTime(0, 0, 0, 0, 0, divFloor(l, i) * i + roundNumberToIncrement(modFloor(l, i), n * nanosecondsForTimeUnit(r), a));
634
638
  }
635
639
  function differenceTemporalPlainTime(e, t, o, n) {
636
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], _, q);
640
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), c, [], J, L);
637
641
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.H, a.L, a.q)), a.V), e));
638
642
  }
639
643
  function addDurationToTime(e, t, o) {
@@ -641,7 +645,7 @@ function addDurationToTime(e, t, o) {
641
645
  }
642
646
  function getInternalSlotOrThrowForPlainTime(e) {
643
647
  const t = Ne.get(e);
644
- return t || throwTypeError(De), t;
648
+ return t || throwTypeError(Te), t;
645
649
  }
646
650
  function isPlainTime(e) {
647
651
  return Ne.has(e);
@@ -656,16 +660,13 @@ function createRegExp(e) {
656
660
  return RegExp(`^(?:${e})$`);
657
661
  }
658
662
  function isAmbiguousTemporalTimeString(e) {
659
- return nt.some((t) => {
660
- const o = e.match(t);
661
- return o && isSemanticallyValid(o.groups);
662
- });
663
+ return nt.some((t) => isSemanticallyValid(e.match(t)?.groups));
663
664
  }
664
665
  function isTimeZoneIdentifier(e) {
665
666
  return rt.test(e);
666
667
  }
667
668
  function isSemanticallyValid(e) {
668
- return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
669
+ return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Oe(e.a), Oe(e.b), Oe(e.c))) && (!e.n || isValidIsoDate(1972, Oe(e.m), Oe(e.n)));
669
670
  }
670
671
  function parseIsoDateTime(e, t) {
671
672
  for (const o of t) {
@@ -675,15 +676,15 @@ function parseIsoDateTime(e, t) {
675
676
  let r;
676
677
  if (n.k) {
677
678
  let t = !1;
678
- 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));
679
+ for (const [, o, a, i] of n.k.matchAll(Xe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
679
680
  }
680
681
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
681
682
  const a = (n.g || "").padEnd(9, "0");
682
683
  return {
683
- t: mapUnlessUndefined(n.a || n.l, Se),
684
- u: Se(n.b || n.m || 1),
685
- T: Se(n.c || n.n || 1),
686
- p: n.d ? createTimeRecord(Se(n.d || 0), Se(n.e || 0), clamp(Se(n.f || 0), 0, 59), Se(a.slice(0, 3)), Se(a.slice(3, 6)), Se(a.slice(6))) : void 0,
684
+ t: mapUnlessUndefined(n.a || n.l, Oe),
685
+ u: Oe(n.b || n.m || 1),
686
+ T: Oe(n.c || n.n || 1),
687
+ p: n.d ? createTimeRecord(Oe(n.d || 0), Oe(n.e || 0), clamp(Oe(n.f || 0), 0, 59), Oe(a.slice(0, 3)), Oe(a.slice(3, 6)), Oe(a.slice(6))) : void 0,
687
688
  Z: {
688
689
  M: !!n.i,
689
690
  N: n.h,
@@ -696,7 +697,7 @@ function parseIsoDateTime(e, t) {
696
697
  }
697
698
  function parseDateTimeUtcOffset(e) {
698
699
  const o = e.match(it);
699
- 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);
700
+ return o || throwRangeError(parseError(e)), Oe(`${o[1]}1`) * (36e11 * Oe(o[2]) + Oe(o[4] || "") * t + 1e9 * Oe(o[5] || "") + Oe((o[6] || "").padEnd(9, "0")) + 0);
700
701
  }
701
702
  function hasUtcOffsetSubMinuteParts(e) {
702
703
  return !!e.match(it)[5];
@@ -707,15 +708,15 @@ function toTemporalMonthDay(e, t) {
707
708
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.U);
708
709
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
709
710
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
710
- ut.t,
711
- ut.u,
712
- ut.P,
713
- ut.T
711
+ Tt.t,
712
+ Tt.u,
713
+ Tt.P,
714
+ Tt.T
714
715
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
715
716
  }
716
717
  validateString(e);
717
718
  const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
718
- 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)), T), p), n);
719
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), m), D), n);
719
720
  }
720
721
  function createTemporalMonthDay(e, t, o = Object.create(ct.prototype)) {
721
722
  return lt.set(o, {
@@ -724,14 +725,14 @@ function createTemporalMonthDay(e, t, o = Object.create(ct.prototype)) {
724
725
  }), o;
725
726
  }
726
727
  function temporalMonthDayToString(e, t) {
727
- return `${t === j || t === C || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
728
+ return `${t === U || t === $ || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
728
729
  }
729
730
  function getInternalSlotForPlainMonthDay(e) {
730
731
  return lt.get(e);
731
732
  }
732
733
  function getInternalSlotOrThrowForPlainMonthDay(e) {
733
734
  const t = getInternalSlotForPlainMonthDay(e);
734
- return t || throwTypeError(De), t;
735
+ return t || throwTypeError(Te), t;
735
736
  }
736
737
  function isPlainMonthDay(e) {
737
738
  return !!getInternalSlotForPlainMonthDay(e);
@@ -742,14 +743,14 @@ function toTemporalYearMonth(e, t) {
742
743
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.U);
743
744
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
744
745
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
745
- ut.t,
746
- ut.u,
747
- ut.P
746
+ Tt.t,
747
+ Tt.u,
748
+ Tt.P
748
749
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
749
750
  }
750
751
  validateString(e);
751
752
  const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.U || "iso8601");
752
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), p), n);
753
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), d), D), n);
753
754
  }
754
755
  function balanceIsoYearMonth(e, t) {
755
756
  return {
@@ -764,12 +765,12 @@ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
764
765
  }), o;
765
766
  }
766
767
  function temporalYearMonthToString(e, t) {
767
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === j || t === C || "iso8601" !== e.U ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.U, t)}`;
768
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === U || t === $ || "iso8601" !== e.U ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.U, t)}`;
768
769
  }
769
770
  function differenceTemporalPlainYearMonth(e, t, o, n) {
770
771
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
771
772
  calendarEquals(t.U, r.U) || throwRangeError(ue);
772
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, L], H, k);
773
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [H, x], k, V);
773
774
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
774
775
  0,
775
776
  0,
@@ -783,39 +784,43 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
783
784
  0
784
785
  ]));
785
786
  const i = calendarDateFromFields(t.U, createNullPrototypeObject({
786
- ...isoDateToFields(t.U, t.o, m),
787
- [ut.T]: 1
788
- }), p), l = calendarDateFromFields(t.U, createNullPrototypeObject({
789
- ...isoDateToFields(t.U, r.o, m),
790
- [ut.T]: 1
791
- }), p);
792
- let s = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, l, a.V), 0, 0), createTimeDurationFromSeconds(0));
793
- if (a.L !== H || 1 !== a.H) {
787
+ ...isoDateToFields(t.U, t.o, d),
788
+ [Tt.T]: 1
789
+ }), D), c = calendarDateFromFields(t.U, createNullPrototypeObject({
790
+ ...isoDateToFields(t.U, r.o, d),
791
+ [Tt.T]: 1
792
+ }), D);
793
+ let s = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, c, a.V), 0, 0), we);
794
+ if (a.L !== k || 1 !== a.H) {
794
795
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
795
- s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(l, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
796
+ s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
796
797
  }
797
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, L), e));
798
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, x), e));
798
799
  }
799
800
  function addDurationToYearMonth(e, t, o, n) {
800
801
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
801
- return (r.A.X || r.A.K || 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({
802
- ...isoDateToFields(t.U, t.o, m),
803
- [ut.T]: 1
804
- }), p), r.A, a), m), a), t.U);
802
+ 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({
803
+ ...isoDateToFields(t.U, t.o, d),
804
+ [Tt.T]: 1
805
+ }), D), r.A, a), d), a), t.U);
805
806
  }
806
807
  function validateIsoYearMonth(e) {
807
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(de), e;
808
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(se), e;
808
809
  }
809
810
  function getInternalSlotForPlainYearMonth(e) {
810
811
  return st.get(e);
811
812
  }
812
813
  function getInternalSlotOrThrowForPlainYearMonth(e) {
813
814
  const t = getInternalSlotForPlainYearMonth(e);
814
- return t || throwTypeError(De), t;
815
+ return t || throwTypeError(Te), t;
815
816
  }
816
817
  function isPlainYearMonth(e) {
817
818
  return !!getInternalSlotForPlainYearMonth(e);
818
819
  }
820
+ function calendarDateForPlainYearMonth(e) {
821
+ const t = getInternalSlotOrThrowForPlainYearMonth(e);
822
+ return calendarIsoToDate(t.U, t.o);
823
+ }
819
824
  function createIsoDateRecord(e, t, o) {
820
825
  return {
821
826
  t: e,
@@ -823,7 +828,7 @@ function createIsoDateRecord(e, t, o) {
823
828
  T: o
824
829
  };
825
830
  }
826
- function createTemporalDate(e, t, o = Object.create(Tt.prototype)) {
831
+ function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
827
832
  return mt.set(o, {
828
833
  o: validateIsoDate(e),
829
834
  U: t
@@ -844,22 +849,22 @@ function toTemporalDate(e, t) {
844
849
  if (isPlainDateTime(e)) {
845
850
  getTemporalOverflowOption(getOptionsObject(t));
846
851
  const o = getInternalSlotOrThrowForPlainDateTime(e);
847
- return createTemporalDate(o.G.o, o.U);
852
+ return createTemporalDate(o.K.o, o.U);
848
853
  }
849
854
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
850
855
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
851
- ut.t,
852
- ut.u,
853
- ut.P,
854
- ut.T
856
+ Tt.t,
857
+ Tt.u,
858
+ Tt.P,
859
+ Tt.T
855
860
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
856
861
  }
857
862
  validateString(e);
858
- const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.U || "iso8601");
863
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
859
864
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
860
865
  }
861
866
  function regulateIsoDate(e, t, o, n) {
862
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(se), createIsoDateRecord(e, t, o));
867
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(ce), createIsoDateRecord(e, t, o));
863
868
  }
864
869
  function isValidIsoDate(e, t, o) {
865
870
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -879,7 +884,7 @@ function compareIsoDate(e, t) {
879
884
  function differenceTemporalPlainDate(e, t, o, n) {
880
885
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
881
886
  calendarEquals(t.U, r.U) || throwRangeError(ue);
882
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [], L, L);
887
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [], x, x);
883
888
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
884
889
  0,
885
890
  0,
@@ -892,17 +897,17 @@ function differenceTemporalPlainDate(e, t, o, n) {
892
897
  0,
893
898
  0
894
899
  ]));
895
- let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), createTimeDurationFromSeconds(0));
896
- if (a.L !== L || 1 !== a.H) {
900
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), we);
901
+ if (a.L !== x || 1 !== a.H) {
897
902
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
898
903
  i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
899
904
  }
900
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, L), e));
905
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, x), e));
901
906
  }
902
907
  function addDurationToDate(e, t, o, n) {
903
908
  return createTemporalDate(calendarDateAdd(t.U, t.o, ((e) => {
904
909
  const t = toInternalDurationRecordWith24HourDays(e);
905
- return createDateDurationRecord(t.A.ee, t.A.te, t.A.X, t.p[0]);
910
+ return createDateDurationRecord(t.A.te, t.A.oe, t.A.ee, t.p[0]);
906
911
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.U);
907
912
  }
908
913
  function getInternalSlotForPlainDate(e) {
@@ -910,7 +915,7 @@ function getInternalSlotForPlainDate(e) {
910
915
  }
911
916
  function getInternalSlotOrThrowForPlainDate(e) {
912
917
  const t = getInternalSlotForPlainDate(e);
913
- return t || throwTypeError(De), t;
918
+ return t || throwTypeError(Te), t;
914
919
  }
915
920
  function isPlainDate(e) {
916
921
  return !!getInternalSlotForPlainDate(e);
@@ -918,29 +923,33 @@ function isPlainDate(e) {
918
923
  function validateIsoDate(e) {
919
924
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
920
925
  }
926
+ function calendarDateForPlainDate(e) {
927
+ const t = getInternalSlotOrThrowForPlainDate(e);
928
+ return calendarIsoToDate(t.U, t.o);
929
+ }
921
930
  function canonicalizeCalendar(e) {
922
931
  return "iso8601" !== (e = asciiLowerCase(e)) && "gregory" !== e && throwRangeError(((e) => `unsupported calendar: ${e}`)(e)), e;
923
932
  }
924
933
  function calendarDateAdd(e, t, o, n) {
925
934
  return ((e, t, o) => {
926
- const n = balanceIsoYearMonth(e.t + t.ee, e.u + t.te);
927
- return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.X + t.K));
935
+ const n = balanceIsoYearMonth(e.t + t.te, e.u + t.oe);
936
+ return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.ee + t.X));
928
937
  })(t, o, n);
929
938
  }
930
939
  function calendarDateUntil(e, t, o, n) {
931
940
  return ((e, t, o) => {
932
941
  const n = compareIsoDate(t, e);
933
942
  if (!n) return zeroDateDuration();
934
- if (o === x || o === L) {
943
+ if (o === H || o === x) {
935
944
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
936
- return o === x ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
945
+ return o === H ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
937
946
  }
938
- const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, p));
939
- return o === k ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
947
+ const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, D));
948
+ return o === V ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
940
949
  })(t, o, n);
941
950
  }
942
951
  function calendarDateToIso(e, t, o) {
943
- return ((e, t) => regulateIsoDate(e[ut.t], e[ut.u], e[ut.T], t))(t, o);
952
+ return ((e, t) => regulateIsoDate(e[Tt.t], e[Tt.u], e[Tt.T], t))(t, o);
944
953
  }
945
954
  function calendarSupportsEra(e) {
946
955
  return "gregory" === e;
@@ -952,7 +961,7 @@ function parseMonthCode(e) {
952
961
  const t = toPrimitive(e);
953
962
  validateString(t);
954
963
  const o = t.match(/M(\d\d)(L?)/);
955
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
964
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Oe(o[1]), !!o[2]];
956
965
  }
957
966
  function createMonthCode(e, t = !1) {
958
967
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -965,12 +974,12 @@ function prepareCalendarFields(e, t, o, n) {
965
974
  const o = t[e];
966
975
  void 0 !== o ? (a = !0, r[e] = pt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = pt[e][1]);
967
976
  }
968
- return n || a || throwTypeError(fe), r;
977
+ return n || a || throwTypeError(ge), r;
969
978
  }
970
979
  function calendarMergeFields(e, t, o) {
971
980
  const n = ((e, t) => {
972
981
  const o = [];
973
- return void 0 !== t[ut.u] && o.push(ut.P), void 0 !== t[ut.P] && o.push(ut.u), !calendarSupportsEra(e) || void 0 === t[ut.oe] && void 0 === t[ut.ne] && void 0 === t[ut.t] || o.push(ut.oe, ut.ne, ut.t), o;
982
+ return void 0 !== t[Tt.u] && o.push(Tt.P), void 0 !== t[Tt.P] && o.push(Tt.u), !calendarSupportsEra(e) || void 0 === t[Tt.ne] && void 0 === t[Tt.re] && void 0 === t[Tt.t] || o.push(Tt.ne, Tt.re, Tt.t), o;
974
983
  })(e, o), r = createEmptyCalendarFieldsRecord();
975
984
  for (const e of Dt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
976
985
  return r;
@@ -981,7 +990,7 @@ function toTemporalCalendarIdentifier(e) {
981
990
  try {
982
991
  return parseIsoDateTime(e, [
983
992
  Ge,
984
- Xe,
993
+ Ke,
985
994
  Qe,
986
995
  et,
987
996
  tt,
@@ -1000,18 +1009,18 @@ function calendarDateFromFields(e, t, o) {
1000
1009
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(0, t, o));
1001
1010
  }
1002
1011
  function calendarYearMonthFromFields(e, t, o) {
1003
- return t.day = 1, calendarResolveFields(e, t, m), validateIsoYearMonth(calendarDateToIso(0, t, o));
1012
+ return t.day = 1, calendarResolveFields(e, t, d), validateIsoYearMonth(calendarDateToIso(0, t, o));
1004
1013
  }
1005
1014
  function calendarMonthDayFromFields(e, t, o) {
1006
- return calendarResolveFields(e, t, T), (function(e, t, o) {
1015
+ return calendarResolveFields(e, t, m), (function(e, t, o) {
1007
1016
  return ((e, t, o) => {
1008
- const n = regulateIsoDate(e[ut.t] ?? 1972, e[ut.u], e[ut.T], t);
1017
+ const n = regulateIsoDate(e[Tt.t] ?? 1972, e[Tt.u], e[Tt.T], t);
1009
1018
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1010
1019
  })(t, o, "iso8601" === e);
1011
1020
  })(e, t, o);
1012
1021
  }
1013
1022
  function formatCalendarAnnotation(e, t) {
1014
- return t === $ || t === U && "iso8601" === e ? "" : `[${t === C ? "!" : ""}u-ca=${e}]`;
1023
+ return t === j || t === M && "iso8601" === e ? "" : `[${t === $ ? "!" : ""}u-ca=${e}]`;
1015
1024
  }
1016
1025
  function calendarEquals(e, t) {
1017
1026
  return e === t;
@@ -1026,13 +1035,13 @@ function isoWeekOfYear(e) {
1026
1035
  const t = e.t, o = divFloor(isoDayOfYear(e) + 10 - isoDayOfWeek(e), 7);
1027
1036
  return o < 1 ? {
1028
1037
  t: t - 1,
1029
- re: isoWeeksInYear(t - 1)
1038
+ ae: isoWeeksInYear(t - 1)
1030
1039
  } : o > isoWeeksInYear(t) ? {
1031
1040
  t: t + 1,
1032
- re: 1
1041
+ ae: 1
1033
1042
  } : {
1034
1043
  t,
1035
- re: o
1044
+ ae: o
1036
1045
  };
1037
1046
  }
1038
1047
  function isoDayOfYear(e) {
@@ -1047,25 +1056,25 @@ function isoCalendarIsoToDate(e) {
1047
1056
  u: e.u,
1048
1057
  P: createMonthCode(e.u),
1049
1058
  T: e.T,
1050
- ae: isoDayOfWeek(e),
1051
- ie: isoDayOfYear(e),
1052
- le: isoWeekOfYear(e),
1053
- ce: 7,
1054
- se: isoDaysInMonth(e.t, e.u),
1055
- de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1056
- me: 12,
1057
- ue: !!mathematicalInLeapYear(e.t)
1059
+ ie: isoDayOfWeek(e),
1060
+ le: isoDayOfYear(e),
1061
+ ce: isoWeekOfYear(e),
1062
+ se: 7,
1063
+ de: isoDaysInMonth(e.t, e.u),
1064
+ me: (t = e.t, 365 + mathematicalInLeapYear(t)),
1065
+ ue: 12,
1066
+ Te: !!mathematicalInLeapYear(e.t)
1058
1067
  };
1059
1068
  var t;
1060
1069
  }
1061
1070
  function calendarIsoToDate(e, t) {
1062
1071
  return "iso8601" === e ? isoCalendarIsoToDate(t) : ((e, t) => ({
1063
- oe: t.t > 0 ? "ce" : "bce",
1064
- ne: t.t > 0 ? t.t : 1 - t.t,
1072
+ ne: t.t > 0 ? "ce" : "bce",
1073
+ re: t.t > 0 ? t.t : 1 - t.t,
1065
1074
  ...isoCalendarIsoToDate(t),
1066
- le: {
1075
+ ce: {
1067
1076
  t: void 0,
1068
- re: void 0
1077
+ ae: void 0
1069
1078
  }
1070
1079
  }))(0, t);
1071
1080
  }
@@ -1073,20 +1082,20 @@ function calendarExtraFields(e, t) {
1073
1082
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1074
1083
  }
1075
1084
  function isoResolveFields(e, t) {
1076
- t !== T && void 0 === e[ut.t] && throwTypeError(missingField(ut.t)), t !== m && void 0 === e[ut.T] && throwTypeError(missingField(ut.T)), void 0 === e[ut.P] && void 0 === e[ut.u] && throwTypeError(missingField("month, monthCode"));
1077
- const o = mapUnlessUndefined(e[ut.P], parseMonthCode);
1078
- o && ((o[0] > 12 || o[1] || void 0 !== e[ut.u] && o[0] !== e[ut.u]) && throwRangeError(he), e[ut.u] = o[0]);
1079
- }
1080
- function calendarResolveFields(e, t, o = c) {
1081
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1082
- const n = t[ut.oe], r = t[ut.ne];
1083
- let a = t[ut.t];
1084
- const i = t[ut.P], l = t[ut.u], s = t[ut.T];
1085
- if (o === T && 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 !== m && void 0 === s && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1085
+ t !== m && void 0 === e[Tt.t] && throwTypeError(missingField(Tt.t)), t !== d && void 0 === e[Tt.T] && throwTypeError(missingField(Tt.T)), void 0 === e[Tt.P] && void 0 === e[Tt.u] && throwTypeError(missingField("month, monthCode"));
1086
+ const o = mapUnlessUndefined(e[Tt.P], parseMonthCode);
1087
+ o && ((o[0] > 12 || o[1] || void 0 !== e[Tt.u] && o[0] !== e[Tt.u]) && throwRangeError(pe), e[Tt.u] = o[0]);
1088
+ }
1089
+ function calendarResolveFields(e, t, o = l) {
1090
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = l) {
1091
+ const n = t[Tt.ne], r = t[Tt.re];
1092
+ let a = t[Tt.t];
1093
+ const i = t[Tt.P], c = t[Tt.u], s = t[Tt.T];
1094
+ if (o === m && void 0 !== i && void 0 === c || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== d && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1086
1095
  const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1087
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[ut.t] = e;
1096
+ void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Tt.t] = e;
1088
1097
  }
1089
- t[ut.oe] = t[ut.ne] = void 0, isoResolveFields(t, o);
1098
+ t[Tt.ne] = t[Tt.re] = void 0, isoResolveFields(t, o);
1090
1099
  })(0, t, o);
1091
1100
  }
1092
1101
  function createEmptyCalendarFieldsRecord() {
@@ -1096,7 +1105,7 @@ function zeroDateDuration() {
1096
1105
  return createDateDurationRecord(0, 0, 0, 0);
1097
1106
  }
1098
1107
  function toInternalDurationRecord(e) {
1099
- return combineDateAndTimeDuration(createDateDurationRecord(e[K], e[G], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1108
+ return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[X], e[G], e[K]), timeDurationFromComponents(e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1100
1109
  }
1101
1110
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1102
1111
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1104,23 +1113,23 @@ function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1104
1113
  function temporalDurationFromInternal(e, t) {
1105
1114
  const [o, ...n] = balanceTimeDuration(e.p, t);
1106
1115
  return createTemporalDurationSlot([
1107
- e.A.ee,
1108
1116
  e.A.te,
1109
- e.A.X,
1110
- e.A.K + o,
1117
+ e.A.oe,
1118
+ e.A.ee,
1119
+ e.A.X + o,
1111
1120
  ...n
1112
1121
  ]);
1113
1122
  }
1114
1123
  function createDateDurationRecord(e, t, o, n) {
1115
1124
  return validateDuration(e, t, o, n, 0, 0, 0, 0, 0, 0), {
1116
- ee: e,
1117
- te: t,
1118
- X: o,
1119
- K: n
1125
+ te: e,
1126
+ oe: t,
1127
+ ee: o,
1128
+ X: n
1120
1129
  };
1121
1130
  }
1122
- function adjustDateDurationRecord(e, t, o = e.X, n = e.te) {
1123
- return createDateDurationRecord(e.ee, n, o, t);
1131
+ function adjustDateDurationRecord(e, t, o = e.ee, n = e.oe) {
1132
+ return createDateDurationRecord(e.te, n, o, t);
1124
1133
  }
1125
1134
  function combineDateAndTimeDuration(e, t) {
1126
1135
  return {
@@ -1141,8 +1150,8 @@ function toTemporalDuration(e) {
1141
1150
  toIntegerWithTruncation(t[6] || ""),
1142
1151
  toIntegerWithTruncation(t[8] || "") + o.I,
1143
1152
  toIntegerWithTruncation(t[10] || "") + o.O,
1144
- o.S,
1145
1153
  o.F,
1154
+ o.S,
1146
1155
  o.v
1147
1156
  ]), toIntegerWithTruncation(`${t[1]}1`));
1148
1157
  })(e));
@@ -1152,13 +1161,17 @@ function durationSign(e) {
1152
1161
  return sign(e.find((e) => e) || 0);
1153
1162
  }
1154
1163
  function dateDurationSign(e) {
1155
- return sign(e.ee || e.te || e.X || e.K);
1164
+ return sign(e.te || e.oe || e.ee || e.X);
1156
1165
  }
1157
1166
  function internalDurationSign(e) {
1158
1167
  return dateDurationSign(e.A) || gt(e.p);
1159
1168
  }
1160
1169
  function validateDuration(...e) {
1161
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[G]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(me), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1170
+ e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
1171
+ e[_],
1172
+ e[X],
1173
+ e[G]
1174
+ ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(de), validateTimeDurationRange(timeDurationFromComponents(24 * e[K] + e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1162
1175
  }
1163
1176
  function defaultTemporalLargestUnit(e) {
1164
1177
  return (e.findIndex((e) => e) + 10) % 10;
@@ -1176,8 +1189,8 @@ function toTemporalPartialDurationRecord(e) {
1176
1189
  6,
1177
1190
  2,
1178
1191
  0
1179
- ].map((t) => mapUnlessUndefined(e[le[t]], toIntegerIfIntegral));
1180
- return t.every((e) => void 0 === e) && throwTypeError(fe), [
1192
+ ].map((t) => mapUnlessUndefined(e[ie[t]], toIntegerIfIntegral));
1193
+ return t.some((e) => void 0 !== e) || throwTypeError(ge), [
1181
1194
  9,
1182
1195
  5,
1183
1196
  8,
@@ -1196,9 +1209,8 @@ function createTemporalDurationSlot(e) {
1196
1209
  function createTemporalDuration(e, t = Object.create(ft.prototype)) {
1197
1210
  return ht.set(t, e), t;
1198
1211
  }
1199
- function timeDurationFromComponents(e, t, o, n, l, c) {
1200
- return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = l, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (s = c, normalize(Math.round((s - s % i) / i), s % i)));
1201
- var s, d, m;
1212
+ function timeDurationFromComponents(e, t, o, n, r, a) {
1213
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
1202
1214
  }
1203
1215
  function add24HourDaysToTimeDuration(e, t) {
1204
1216
  return validateTimeDurationRange(((e, t) => normalize(e[0] + t, e[1]))(e, t));
@@ -1207,11 +1219,11 @@ function timeDurationFromEpochNanosecondsDifference(e, t) {
1207
1219
  return differenceEpochNanoseconds(t, e);
1208
1220
  }
1209
1221
  function roundTimeDurationToIncrement(e, t, o) {
1210
- return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * i, t, o)))(e, t, o));
1222
+ return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * a, t, o)))(e, t, o));
1211
1223
  }
1212
1224
  function dateDurationDays(e, t) {
1213
1225
  const o = adjustDateDurationRecord(e, 0);
1214
- return dateDurationSign(e) ? e.K + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, p)) - isoDateRecordToEpochDays(t.o) : e.K;
1226
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, D)) - isoDateRecordToEpochDays(t.o) : e.X;
1215
1227
  }
1216
1228
  function roundTimeDuration(e, t, o, n) {
1217
1229
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1220,85 +1232,85 @@ function totalTimeDuration(e, t) {
1220
1232
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1221
1233
  }
1222
1234
  function computeNudgeWindow(e, t, o, n, r, a, i, l, c) {
1223
- let s, d, m, T, u;
1224
- if (l === k) s = roundNumberToIncrement(t.A.ee, i, P) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), T = createDateDurationRecord(d, 0, 0, 0);
1225
- else if (l === H) s = roundNumberToIncrement(t.A.te, i, P) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, 0, s), T = adjustDateDurationRecord(t.A, 0, 0, d);
1226
- else if (l === x) {
1227
- const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.A, 0, 0), p);
1228
- s = roundNumberToIncrement(t.A.X + calendarDateUntil(0, o, addDaysToIsoDate(o, t.A.K), x).X, i, P), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, s), T = adjustDateDurationRecord(t.A, 0, d);
1229
- } else s = roundNumberToIncrement(t.A.K, i, P), d = s + i * e, m = adjustDateDurationRecord(t.A, s), T = adjustDateDurationRecord(t.A, d);
1235
+ let s, d, m, u, T;
1236
+ if (l === V) s = roundNumberToIncrement(t.A.te, i, E) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1237
+ else if (l === k) s = roundNumberToIncrement(t.A.oe, i, E) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, 0, s), u = adjustDateDurationRecord(t.A, 0, 0, d);
1238
+ else if (l === H) {
1239
+ const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.A, 0, 0), D);
1240
+ s = roundNumberToIncrement(t.A.ee + calendarDateUntil(0, o, addDaysToIsoDate(o, t.A.X), H).ee, i, E), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, s), u = adjustDateDurationRecord(t.A, 0, d);
1241
+ } else s = roundNumberToIncrement(t.A.X, i, E), d = s + i * e, m = adjustDateDurationRecord(t.A, s), u = adjustDateDurationRecord(t.A, d);
1230
1242
  if (dateDurationSign(m)) {
1231
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, m, p), n.p);
1232
- u = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1233
- } else u = o;
1234
- const D = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, T, p), n.p);
1243
+ const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, m, D), n.p);
1244
+ T = r ? getEpochNanosecondsFor(r, e, h) : getUtcEpochNanoseconds(e);
1245
+ } else T = o;
1246
+ const p = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, u, D), n.p);
1235
1247
  return {
1236
- Te: s,
1237
- De: d,
1238
- pe: u,
1239
- he: r ? getEpochNanosecondsFor(r, D, g) : getUtcEpochNanoseconds(D),
1240
- ge: m,
1241
- fe: T
1248
+ De: s,
1249
+ pe: d,
1250
+ he: T,
1251
+ ge: r ? getEpochNanosecondsFor(r, p, h) : getUtcEpochNanoseconds(p),
1252
+ fe: m,
1253
+ Ie: u
1242
1254
  };
1243
1255
  }
1244
1256
  function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1245
1257
  let d = !1, m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !1);
1246
- compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.he, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1247
- const T = differenceEpochNanoseconds(m.pe, n), u = differenceEpochNanoseconds(m.pe, m.he);
1248
- let D = m.ge, p = m.pe;
1249
- return roundNumberToIncrement(m.Te + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(T, u, e) * l * e, l, s) === m.De && (d = !0, D = m.fe, p = m.he), {
1250
- Ie: {
1251
- Oe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1258
+ compareEpochNanoseconds(m.he, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1259
+ const u = differenceEpochNanoseconds(m.he, n), T = differenceEpochNanoseconds(m.he, m.ge);
1260
+ let D = m.fe, p = m.he;
1261
+ return roundNumberToIncrement(m.De + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(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), {
1262
+ Oe: {
1263
+ Fe: combineDateAndTimeDuration(D, we),
1252
1264
  Se: p,
1253
- Fe: d
1265
+ we: d
1254
1266
  },
1255
- we: m.Te + divideTimeDurationToFloatingPoint(T, 1e9) / divideTimeDurationToFloatingPoint(u, 1e9) * l * e
1267
+ ve: m.De + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * l * e
1256
1268
  };
1257
1269
  }
1258
1270
  function roundRelativeDuration(e, t, o, n, r, a, i, l, c, s) {
1259
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === L ? nudgeToCalendarUnit(d, e, t, o, n, r, 0, l, c, s).Ie : r ? ((e, t, o, n, r, a, i, l) => {
1260
- const c = calendarDateAdd(0, o.o, t.A, p), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, g), T = getEpochNanosecondsFor(n, d, g), u = timeDurationFromEpochNanosecondsDifference(T, m), D = nanosecondsForTimeUnit(i);
1261
- let h = roundTimeDurationToIncrement(t.p, a * D, l);
1262
- const f = addTimeDuration(h, negateTimeDuration(u));
1263
- let I, O = !1, S = 0;
1264
- return gt(f) !== -e ? (O = !0, S = e, h = roundTimeDurationToIncrement(f, a * D, l), I = addTimeDurationToEpochNanoseconds(T, h)) : I = addTimeDurationToEpochNanoseconds(T, h), {
1265
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + S), h),
1271
+ const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === x ? nudgeToCalendarUnit(d, e, t, o, n, r, 0, l, c, s).Oe : r ? ((e, t, o, n, r, a, i, l) => {
1272
+ const c = calendarDateAdd(0, o.o, t.A, D), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, h), u = getEpochNanosecondsFor(n, d, h), T = timeDurationFromEpochNanosecondsDifference(u, m), p = nanosecondsForTimeUnit(i);
1273
+ let g = roundTimeDurationToIncrement(t.p, a * p, l);
1274
+ const f = addTimeDuration(g, negateTimeDuration(T));
1275
+ let I, O = !1, F = 0;
1276
+ return gt(f) !== -e ? (O = !0, F = e, g = roundTimeDurationToIncrement(f, a * p, l), I = addTimeDurationToEpochNanoseconds(u, g)) : I = addTimeDurationToEpochNanoseconds(u, g), {
1277
+ Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + F), g),
1266
1278
  Se: I,
1267
- Fe: O
1279
+ we: O
1268
1280
  };
1269
1281
  })(d, e, n, r, 0, l, c, s) : (function(e, t, o, n, r, a) {
1270
- const i = add24HourDaysToTimeDuration(e.p, e.A.K), l = r === L ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
1282
+ const i = add24HourDaysToTimeDuration(e.p, e.A.X), l = r === x ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
1271
1283
  return {
1272
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, s), d),
1284
+ Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, s), d),
1273
1285
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(l, negateTimeDuration(i))),
1274
- Fe: sign(c - i[0]) === gt(i)
1286
+ we: sign(c - i[0]) === gt(i)
1275
1287
  };
1276
1288
  })(e, o, i, l, c, s);
1277
- return m.Fe && c !== x ? ((e, t, o, n, r, a, i, l) => {
1289
+ return m.we && c !== H ? ((e, t, o, n, r, a, i, l) => {
1278
1290
  if (l === i) return t;
1279
1291
  const c = i;
1280
1292
  let s;
1281
- for (let a = l - 1; a >= c; a--) if (a !== X || c === X) {
1282
- s = a === K ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : a === G ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1283
- const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, s, p), n.p);
1293
+ for (let a = l - 1; a >= c; a--) if (a !== G || c === G) {
1294
+ s = a === _ ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : a === X ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1295
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, s, D), n.p);
1284
1296
  if (gt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1285
- t = combineDateAndTimeDuration(s, createTimeDurationFromSeconds(0));
1297
+ t = combineDateAndTimeDuration(s, we);
1286
1298
  }
1287
1299
  return t;
1288
- })(d, m.Oe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, L)) : m.Oe;
1300
+ })(d, m.Fe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, x)) : m.Fe;
1289
1301
  }
1290
1302
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1291
- return isCalendarUnit(i) || r && i === L ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, P).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.K), i);
1303
+ return isCalendarUnit(i) || r && i === x ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, E).ve : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1292
1304
  }
1293
1305
  function temporalDurationToString(e, t) {
1294
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, l] = balanceTimeDuration(n, J), [c, s, d, m, T, u] = [
1306
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[te], e[oe], e[ne], e[re]), [, , , r, a, i, l] = balanceTimeDuration(n, B), [c, s, d, m, u, T] = [
1295
1307
  "Y",
1296
1308
  "M",
1297
1309
  "W",
1298
1310
  "D",
1299
1311
  "H",
1300
1312
  "M"
1301
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${T}${u}${gt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1313
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${gt(n) || defaultTemporalLargestUnit(e) >= B || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1302
1314
  return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${D && `T${D}`}`;
1303
1315
  }
1304
1316
  function addDurations(e, t, o) {
@@ -1307,13 +1319,13 @@ function addDurations(e, t, o) {
1307
1319
  }
1308
1320
  function getInternalSlotOrThrowForDuration(e) {
1309
1321
  const t = ht.get(e);
1310
- return t || throwTypeError(De), t;
1322
+ return t || throwTypeError(Te), t;
1311
1323
  }
1312
1324
  function applySignToDurationSlot(e, t) {
1313
1325
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1314
1326
  }
1315
1327
  function validateTimeDurationRange(e) {
1316
- return ((e) => ve(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(me), e;
1328
+ return ((e) => ve(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(de), e;
1317
1329
  }
1318
1330
  function balanceTimeDuration(e, t) {
1319
1331
  const o = clamp(t, 3, 9);
@@ -1325,8 +1337,8 @@ function balanceTimeDuration(e, t) {
1325
1337
  0,
1326
1338
  0,
1327
1339
  0
1328
- ].slice(0, o - Q),
1329
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - Q] / 1e9),
1340
+ ].slice(0, o - K),
1341
+ o > te ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), le[o - K] / 1e9),
1330
1342
  ...[
1331
1343
  0,
1332
1344
  1,
@@ -1334,7 +1346,7 @@ function balanceTimeDuration(e, t) {
1334
1346
  3,
1335
1347
  4,
1336
1348
  5
1337
- ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - Q)
1349
+ ].map((t) => divTrunc(e[1], le[t + 1]) % (le[t] / le[t + 1]) + 0).slice(o - K)
1338
1350
  ];
1339
1351
  var r;
1340
1352
  }
@@ -1355,7 +1367,7 @@ function roundHalfEven(e) {
1355
1367
  }
1356
1368
  function isoDateToEpochDays(e, t, o) {
1357
1369
  const n = balanceIsoYearMonth(e, t + 1);
1358
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * l + o;
1370
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * i + o;
1359
1371
  }
1360
1372
  function isoDateRecordToEpochDays(e) {
1361
1373
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1364,34 +1376,34 @@ function mathematicalInLeapYear(e) {
1364
1376
  return +!(e % (e % 25 ? 4 : 16));
1365
1377
  }
1366
1378
  function getTemporalOverflowOption(e) {
1367
- return getOption(e, "overflow", [p, h], p);
1379
+ return getOption(e, "overflow", [D, p], D);
1368
1380
  }
1369
1381
  function getTemporalDisambiguationOption(e) {
1370
1382
  return getOption(e, "disambiguation", [
1371
- g,
1383
+ h,
1372
1384
  "earlier",
1373
- f,
1385
+ g,
1374
1386
  "reject"
1375
- ], g);
1387
+ ], h);
1376
1388
  }
1377
1389
  function negateRoundingMode(e) {
1378
- return "ceil" === e ? y : "floor" === e ? v : "halfCeil" === e ? b : "halfFloor" === e ? R : e;
1390
+ return "ceil" === e ? v : "floor" === e ? w : "halfCeil" === e ? R : "halfFloor" === e ? P : e;
1379
1391
  }
1380
1392
  function getTemporalOffsetOption(e, t) {
1381
1393
  return getOption(e, "offset", [
1382
- I,
1394
+ f,
1383
1395
  "use",
1384
1396
  "ignore",
1385
- O
1397
+ I
1386
1398
  ], t);
1387
1399
  }
1388
1400
  function getTemporalShowCalendarNameOption(e) {
1389
1401
  return getOption(e, "calendarName", [
1402
+ M,
1390
1403
  U,
1391
1404
  j,
1392
- $,
1393
- C
1394
- ], U);
1405
+ $
1406
+ ], M);
1395
1407
  }
1396
1408
  function validateTemporalRoundingIncrement(e, t, o) {
1397
1409
  (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
@@ -1405,68 +1417,68 @@ function getTemporalFractionalSecondDigitsOption(e) {
1405
1417
  }
1406
1418
  function toSecondsStringPrecisionRecord(e, t) {
1407
1419
  return e ? {
1408
- ve: e === B ? D : 3 * (e - 6),
1409
- ye: e,
1410
- Ee: 1
1420
+ ye: e === q ? T : 3 * (e - 6),
1421
+ Ee: e,
1422
+ Pe: 1
1411
1423
  } : {
1412
- ve: t,
1413
- ye: divFloor((t ?? 9) - 1, 3) + 7,
1414
- Ee: 10 ** ((9 - (t ?? 9)) % 3)
1424
+ ye: t,
1425
+ Ee: divFloor((t ?? 9) - 1, 3) + 7,
1426
+ Pe: 10 ** ((9 - (t ?? 9)) % 3)
1415
1427
  };
1416
1428
  }
1417
1429
  function getTemporalUnitValuedOption(e, t, o) {
1418
1430
  return mapUnlessUndefined(getOption(e, t, [
1431
+ ...ae,
1419
1432
  ...ie,
1420
- ...le,
1421
1433
  "auto"
1422
1434
  ], o), (e) => {
1423
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
1435
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ae.indexOf(t));
1424
1436
  var t;
1425
1437
  });
1426
1438
  }
1427
1439
  function validateTemporalUnitValue(e, t, o = []) {
1428
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= L && t === s || e > L && t === c) && throwRangeError(disallowedUnit(e)));
1440
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= x && t === c || e > x && t === l) && throwRangeError(disallowedUnit(e)));
1429
1441
  }
1430
1442
  function getTemporalRelativeToOption(e) {
1431
1443
  const t = e.relativeTo;
1432
1444
  if (void 0 === t) return createNullPrototypeObject();
1433
- let o, n, r, a, i, l = !0, c = S;
1445
+ let o, n, r, a, i, l = !0, c = O;
1434
1446
  if (isObject(t)) {
1435
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForZonedDateTime(t) });
1436
- if (isPlainDate(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(t) });
1447
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForZonedDateTime(t) });
1448
+ if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
1437
1449
  const e = getInternalSlotForPlainDateTime(t);
1438
- if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.G.o, e.U)) });
1450
+ if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1439
1451
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
1440
1452
  const l = prepareCalendarFields(r, t, [
1441
- ut.t,
1442
- ut.u,
1443
- ut.P,
1444
- ut.T,
1445
- ut.D,
1446
- ut.I,
1447
- ut.O,
1448
- ut.S,
1449
- ut.F,
1450
- ut.v,
1451
- ut.R,
1452
- ut.Z
1453
- ], []), s = interpretTemporalDateTimeFields(r, l, p);
1454
- a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? S : w;
1453
+ Tt.t,
1454
+ Tt.u,
1455
+ Tt.P,
1456
+ Tt.T,
1457
+ Tt.D,
1458
+ Tt.I,
1459
+ Tt.O,
1460
+ Tt.F,
1461
+ Tt.S,
1462
+ Tt.v,
1463
+ Tt.R,
1464
+ Tt.Z
1465
+ ], []), s = interpretTemporalDateTimeFields(r, l, D);
1466
+ a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? O : S;
1455
1467
  } else {
1456
1468
  validateString(t);
1457
- const e = parseIsoDateTime(t, [Ge, Xe]);
1458
- n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? F : n ? S : w, 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;
1469
+ const e = parseIsoDateTime(t, [Ge, Ke]);
1470
+ n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? F : n ? O : S, 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;
1459
1471
  }
1460
- return createNullPrototypeObject(o ? { Pe: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === S ? parseDateTimeUtcOffset(n) : 0, o, g, O, l), o, r)) } : { Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1472
+ return createNullPrototypeObject(o ? { Re: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === O ? parseDateTimeUtcOffset(n) : 0, o, h, I, l), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1461
1473
  }
1462
1474
  function largerOfTwoTemporalUnits(e, t) {
1463
1475
  return e < t ? e : t;
1464
1476
  }
1465
1477
  function isCalendarUnit(e) {
1466
- return e < L;
1478
+ return e < x;
1467
1479
  }
1468
1480
  function isDateUnit(e) {
1469
- return e <= L;
1481
+ return e <= x;
1470
1482
  }
1471
1483
  function maximumTemporalDurationRoundingIncrement(e) {
1472
1484
  return [
@@ -1483,13 +1495,14 @@ function formatFractionalSeconds(e, t) {
1483
1495
  return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
1484
1496
  }
1485
1497
  function formatTimeString(e, t, o, n, r) {
1486
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1498
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === T ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1487
1499
  }
1488
1500
  function roundNumberToIncrement(e, t, o) {
1489
1501
  return It[o](e / t) * t;
1490
1502
  }
1491
1503
  function getRoundingModeOption(e, t) {
1492
1504
  return getOption(e, "roundingMode", [
1505
+ w,
1493
1506
  v,
1494
1507
  y,
1495
1508
  E,
@@ -1497,26 +1510,25 @@ function getRoundingModeOption(e, t) {
1497
1510
  R,
1498
1511
  b,
1499
1512
  Z,
1500
- N,
1501
- M
1513
+ N
1502
1514
  ], t);
1503
1515
  }
1504
1516
  function getRoundingIncrementOption(e) {
1505
1517
  const t = "roundingIncrement", o = mapUnlessUndefined(e[t], toIntegerWithTruncation) ?? 1;
1506
- return (o < 1 || o > 1e9) && throwRangeError(invalidField(t)), o;
1518
+ return isWithin(o, 1, 1e9) || throwRangeError(invalidField(t)), o;
1507
1519
  }
1508
1520
  function isoDateToFields(e, t, o) {
1509
1521
  const n = calendarIsoToDate(e, t);
1510
1522
  return createNullPrototypeObject({
1511
- [ut.t]: o === T ? void 0 : n.t,
1512
- [ut.P]: n.P,
1513
- [ut.T]: o === m ? void 0 : n.T
1523
+ [Tt.t]: o === m ? void 0 : n.t,
1524
+ [Tt.P]: n.P,
1525
+ [Tt.T]: o === d ? void 0 : n.T
1514
1526
  });
1515
1527
  }
1516
1528
  function getDifferenceSettings(e, t, o, n, r, a) {
1517
1529
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
1518
- const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, P), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1519
- 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(pe), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1530
+ const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, E), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1531
+ 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(De), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1520
1532
  L: s,
1521
1533
  V: i,
1522
1534
  q: -1 === e ? negateRoundingMode(c) : c,
@@ -1524,30 +1536,30 @@ function getDifferenceSettings(e, t, o, n, r, a) {
1524
1536
  };
1525
1537
  }
1526
1538
  function getUtcEpochNanoseconds(e) {
1527
- return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.S)), 1e3 * e.p.F + e.p.v);
1539
+ return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.F)), 1e3 * e.p.S + e.p.v);
1528
1540
  }
1529
1541
  function epochDaysToIsoDate(e) {
1530
- const t = new Date(modFloor(e, l) * r);
1542
+ const t = new Date(modFloor(e, i) * r);
1531
1543
  return {
1532
- t: t.getUTCFullYear() + 400 * divFloor(e, l),
1544
+ t: t.getUTCFullYear() + 400 * divFloor(e, i),
1533
1545
  u: t.getUTCMonth() + 1,
1534
1546
  T: t.getUTCDate()
1535
1547
  };
1536
1548
  }
1537
1549
  function isoDateTimeToFields(e, t) {
1538
1550
  return createNullPrototypeObject({
1539
- ...isoDateToFields(e, t.o, c),
1540
- [ut.D]: t.p.D,
1541
- [ut.I]: t.p.I,
1542
- [ut.O]: t.p.O,
1543
- [ut.S]: t.p.S,
1544
- [ut.F]: t.p.F,
1545
- [ut.v]: t.p.v
1551
+ ...isoDateToFields(e, t.o, l),
1552
+ [Tt.D]: t.p.D,
1553
+ [Tt.I]: t.p.I,
1554
+ [Tt.O]: t.p.O,
1555
+ [Tt.F]: t.p.F,
1556
+ [Tt.S]: t.p.S,
1557
+ [Tt.v]: t.p.v
1546
1558
  });
1547
1559
  }
1548
1560
  function getInternalSlotOrThrowForDateTimeFormat(e) {
1549
- const t = Ft.get(e);
1550
- return t || throwTypeError(De), t;
1561
+ const t = St.get(e);
1562
+ return t || throwTypeError(Te), t;
1551
1563
  }
1552
1564
  function formatDateTime(e, t) {
1553
1565
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -1561,11 +1573,11 @@ function dateStyleToMonthStyle(e) {
1561
1573
  }
1562
1574
  function amendOptionsForPlainDate(e) {
1563
1575
  const t = createNullPrototypeObject(e);
1564
- return hasAnyOptions(e, wt) || (hasAnyOptions(e, vt) && throwTypeError(Te), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...vt, "timeZoneName"]), t.timeZone = "UTC", t;
1576
+ return hasAnyOptions(e, wt) || (hasAnyOptions(e, vt) && throwTypeError(me), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...vt, "timeZoneName"]), t.timeZone = "UTC", t;
1565
1577
  }
1566
1578
  function amendOptionsForPlainTime(e) {
1567
1579
  const t = createNullPrototypeObject(e);
1568
- return hasAnyOptions(e, vt) || (hasAnyOptions(e, wt) && throwTypeError(Te), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1580
+ return hasAnyOptions(e, vt) || (hasAnyOptions(e, wt) && throwTypeError(me), 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, [
1569
1581
  ...wt,
1570
1582
  "era",
1571
1583
  "timeZoneName"
@@ -1581,7 +1593,7 @@ function amendOptionsForPlainYearMonth(e) {
1581
1593
  "year",
1582
1594
  "month",
1583
1595
  "dateStyle"
1584
- ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(Te), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1596
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1585
1597
  ...vt,
1586
1598
  "day",
1587
1599
  "weekday",
@@ -1594,7 +1606,7 @@ function amendOptionsForPlainMonthDay(e) {
1594
1606
  "month",
1595
1607
  "day",
1596
1608
  "dateStyle"
1597
- ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(Te), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1609
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1598
1610
  ...vt,
1599
1611
  "era",
1600
1612
  "year",
@@ -1610,20 +1622,20 @@ function hasAnyOptions(e, t) {
1610
1622
  return t.some((t) => void 0 !== e[t]);
1611
1623
  }
1612
1624
  function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Et.prototype)) {
1613
- null === t && throwTypeError(Te);
1625
+ null === t && throwTypeError(me);
1614
1626
  const a = createNullPrototypeObject();
1615
- let i = new St(e, new Proxy({}, { get(e, o) {
1627
+ let i = new Ft(e, new Proxy({}, { get(e, o) {
1616
1628
  const r = t[o];
1617
- return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Se(r) : toString(r);
1629
+ return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Oe(r) : toString(r);
1618
1630
  } }));
1619
- return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1631
+ return (o === l && a.timeStyle || o === c && a.dateStyle) && throwTypeError(me), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1620
1632
  ...wt,
1621
1633
  ...vt,
1622
1634
  "timeZoneName"
1623
- ]) || (a.timeZoneName = "short", i = new St(i.resolvedOptions().locale, a)), Ft.set(r, createNullPrototypeObject({
1624
- be: i,
1625
- Ze: a,
1626
- $e: i.resolvedOptions().locale
1635
+ ]) || (a.timeZoneName = "short", i = new Ft(i.resolvedOptions().locale, a)), St.set(r, createNullPrototypeObject({
1636
+ Ze: i,
1637
+ $e: a,
1638
+ Ne: i.resolvedOptions().locale
1627
1639
  })), r;
1628
1640
  }
1629
1641
  function validateSameTemporalType(e, t) {
@@ -1638,11 +1650,11 @@ function validateSameTemporalType(e, t) {
1638
1650
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
1639
1651
  }
1640
1652
  function toDateTimeFormattable(e) {
1641
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
1653
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Oe(e);
1642
1654
  }
1643
1655
  function handleDateTimeValue(e, t) {
1644
1656
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1645
- return isPlainTime(t) ? [e.Ne ||= new St(e.$e, amendOptionsForPlainTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.Ze.calendar && "iso8601" !== o.U && throwRangeError(ue), [e.Me ||= new St(e.$e, amendOptionsForPlainDate(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.Ze.calendar && "iso8601" !== n.U && throwRangeError(ue), [e.Ue ||= new St(e.$e, amendOptionsForPlainDateTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(n.G))]) : r ? (r.U !== e.Ze.calendar && throwRangeError(ue), [e.je ||= new St(e.$e, amendOptionsForPlainYearMonth(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.Ze.calendar && throwRangeError(ue), [e.Ce ||= new St(e.$e, amendOptionsForPlainMonthDay(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ye ||= new St(e.$e, amendOptionsForInstant(e.Ze)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(ge), [e.be, t]);
1657
+ return isPlainTime(t) ? [e.Me ||= new Ft(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(ue), [e.Ue ||= new Ft(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(ue), [e.je ||= new Ft(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(ue), [e.Ce ||= new Ft(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(ue), [e.Ye ||= new Ft(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new Ft(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(he), [e.Ze, t]);
1646
1658
  }
1647
1659
  function DateTimeFormat(e, t) {
1648
1660
  return new Et(e, t);
@@ -1658,7 +1670,7 @@ function toTemporalInstant$1(e) {
1658
1670
  }
1659
1671
  validateString(e);
1660
1672
  const t = parseIsoDateTime(e, [Qe]), o = t.Z.M ? 0 : parseDateTimeUtcOffset(t.Z.N), n = t.p;
1661
- return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.S, n.F, n.v - o))));
1673
+ return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.v - o))));
1662
1674
  }
1663
1675
  function addInstant(e, t) {
1664
1676
  return validateEpochNanoseconds(addTimeDurationToEpochNanoseconds(e, t));
@@ -1673,10 +1685,10 @@ function roundTemporalInstant(e, t, o, n) {
1673
1685
  }
1674
1686
  function temporalInstantToString(e, t, o) {
1675
1687
  const n = getOffsetNanosecondsFor(t || "UTC", e);
1676
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, $)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1688
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, j)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1677
1689
  }
1678
1690
  function differenceTemporalInstant(e, t, o, n) {
1679
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], _, J);
1691
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), c, [], J, B);
1680
1692
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
1681
1693
  }
1682
1694
  function addDurationToInstant(e, t, o) {
@@ -1684,23 +1696,23 @@ function addDurationToInstant(e, t, o) {
1684
1696
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.Y, toInternalDurationRecordWith24HourDays(n).p));
1685
1697
  }
1686
1698
  function validateEpochNanoseconds(e) {
1687
- return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(de), e;
1699
+ return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(Se, e) <= 0)(e) || throwRangeError(se), e;
1688
1700
  }
1689
1701
  function getInternalSlotForInstant(e) {
1690
1702
  return bt.get(e);
1691
1703
  }
1692
1704
  function getInternalSlotOrThrowForInstant(e) {
1693
1705
  const t = getInternalSlotForInstant(e);
1694
- return t || throwTypeError(De), t;
1706
+ return t || throwTypeError(Te), t;
1695
1707
  }
1696
1708
  function isInstant(e) {
1697
1709
  return bt.has(e);
1698
1710
  }
1699
1711
  function clampEpochNanoseconds(e) {
1700
- return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
1712
+ return compareEpochNanoseconds(e, Se) > 0 ? Se : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
1701
1713
  }
1702
1714
  function systemTimeZoneIdentifier() {
1703
- return $t && Ct + $t > Date.now() && jt ? jt : (Ct = Date.now(), jt = new St().resolvedOptions().timeZone);
1715
+ return $t && Ct + $t > Date.now() && jt ? jt : (Ct = Date.now(), jt = new Ft().resolvedOptions().timeZone);
1704
1716
  }
1705
1717
  function setSystemTimeZoneIdCacheTtl(e) {
1706
1718
  $t = e, e || (jt = void 0, Ct = -Infinity);
@@ -1711,7 +1723,7 @@ function systemUtcEpochNanoseconds() {
1711
1723
  function systemDateTime(e = systemTimeZoneIdentifier()) {
1712
1724
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
1713
1725
  }
1714
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, l = 146097, c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), T = Symbol(), u = Symbol(), D = Symbol(), p = "constrain", h = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", S = Symbol(), F = Symbol(), w = Symbol(), v = "ceil", y = "floor", E = "expand", P = "trunc", R = "halfCeil", b = "halfFloor", Z = "halfExpand", N = "halfTrunc", M = "halfEven", U = "auto", j = "always", $ = "never", C = "critical", Y = "auto", W = "never", A = "auto", z = "never", V = "critical", k = 0, H = 1, x = 2, L = 3, q = 4, B = 5, J = 6, _ = 9, K = 0, G = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
1726
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, l = Symbol(), c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = "constrain", p = "reject", h = "compatible", g = "later", f = "prefer", I = "reject", O = Symbol(), F = Symbol(), S = Symbol(), w = "ceil", v = "floor", y = "expand", E = "trunc", P = "halfCeil", R = "halfFloor", b = "halfExpand", Z = "halfTrunc", N = "halfEven", M = "auto", U = "always", j = "never", $ = "critical", C = "auto", Y = "never", W = "auto", A = "never", z = "critical", V = 0, k = 1, H = 2, x = 3, L = 4, q = 5, B = 6, J = 9, _ = 0, X = 1, G = 2, K = 3, Q = 4, ee = 5, te = 6, oe = 7, ne = 8, re = 9, ae = [
1715
1727
  "year",
1716
1728
  "month",
1717
1729
  "week",
@@ -1722,20 +1734,20 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
1722
1734
  "millisecond",
1723
1735
  "microsecond",
1724
1736
  "nanosecond"
1725
- ], le = ie.map((e) => `${e}s`), ce = [
1726
- i,
1737
+ ], ie = ae.map((e) => `${e}s`), le = [
1738
+ a,
1727
1739
  o,
1728
1740
  t,
1729
1741
  1e9,
1730
1742
  1e6,
1731
1743
  1e3,
1732
1744
  1
1733
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, se = "invalid date / time", de = "out-of-bounds date", me = "out-of-bounds duration", Te = "invalid formatting options", ue = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, De = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, pe = "invalid `largestUnit` and `smallestUnit` options", he = "mismatch of `month` and `monthCode`", ge = "value is not formattable", notObject = (e) => `not object: ${e}`, fe = "empty fields", Ie = "can't convert Temporal classes to number", Oe = "argument is undefined", Se = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = compareEpochNanoseconds, ye = /* @__PURE__ */ new WeakMap();
1745
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, ce = "invalid date / time", se = "out-of-bounds date", de = "out-of-bounds duration", me = "invalid formatting options", ue = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, Te = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, De = "invalid `largestUnit` and `smallestUnit` options", pe = "mismatch of `month` and `monthCode`", he = "value is not formattable", notObject = (e) => `not object: ${e}`, ge = "empty fields", fe = "can't convert Temporal classes to number", Ie = "argument is undefined", Oe = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), Se = createEpochNanosecondsFromEpochMilliseconds(864e13), we = [0, 0], ve = compareEpochNanoseconds, ye = /* @__PURE__ */ new WeakMap();
1734
1746
  var Ee = class {
1735
1747
  constructor(e, t, o = "iso8601") {
1736
1748
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1737
1749
  validateString(t);
1738
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r._);
1750
+ const r = parseTimeZoneIdentifier(t), a = r._ ? getAvailableNamedTimeZoneIdentifier(r._) : formatOffsetTimeZoneIdentifier(r.G);
1739
1751
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
1740
1752
  }
1741
1753
  static from(e, t = void 0) {
@@ -1751,10 +1763,10 @@ var Ee = class {
1751
1763
  return getInternalSlotOrThrowForZonedDateTime(this).Z;
1752
1764
  }
1753
1765
  get era() {
1754
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).oe;
1766
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
1755
1767
  }
1756
1768
  get eraYear() {
1757
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
1769
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
1758
1770
  }
1759
1771
  get year() {
1760
1772
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).t;
@@ -1778,10 +1790,10 @@ var Ee = class {
1778
1790
  return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.O;
1779
1791
  }
1780
1792
  get millisecond() {
1781
- return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.S;
1793
+ return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.F;
1782
1794
  }
1783
1795
  get microsecond() {
1784
- return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.F;
1796
+ return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.S;
1785
1797
  }
1786
1798
  get nanosecond() {
1787
1799
  return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.v;
@@ -1793,35 +1805,35 @@ var Ee = class {
1793
1805
  return convertEpochNanosecondsToBigInt(getInternalSlotOrThrowForZonedDateTime(this).Y);
1794
1806
  }
1795
1807
  get dayOfWeek() {
1796
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
1808
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
1797
1809
  }
1798
1810
  get dayOfYear() {
1799
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
1811
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
1800
1812
  }
1801
1813
  get weekOfYear() {
1802
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le.re;
1814
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.ae;
1803
1815
  }
1804
1816
  get yearOfWeek() {
1805
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le.t;
1817
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.t;
1806
1818
  }
1807
1819
  get hoursInDay() {
1808
1820
  const e = getInternalSlotOrThrowForZonedDateTime(this), t = getIsoDateTimeForZonedDateTimeSlot(e).o;
1809
1821
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.Z, t), getStartOfDay(e.Z, addDaysToIsoDate(t, 1))), -9) / o;
1810
1822
  }
1811
1823
  get daysInWeek() {
1812
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce;
1824
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
1813
1825
  }
1814
1826
  get daysInMonth() {
1815
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
1827
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
1816
1828
  }
1817
1829
  get daysInYear() {
1818
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
1830
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
1819
1831
  }
1820
1832
  get monthsInYear() {
1821
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
1833
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
1822
1834
  }
1823
1835
  get inLeapYear() {
1824
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
1836
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).Te;
1825
1837
  }
1826
1838
  get offsetNanoseconds() {
1827
1839
  return getOffsetNanosecondsForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this));
@@ -1834,25 +1846,25 @@ var Ee = class {
1834
1846
  validatePartialTemporalObject(e);
1835
1847
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.U, createNullPrototypeObject({
1836
1848
  ...isoDateTimeToFields(o.U, r),
1837
- [ut.R]: formatUtcOffsetNanoseconds(n)
1849
+ [Tt.R]: formatUtcOffsetNanoseconds(n)
1838
1850
  }), prepareCalendarFields(o.U, e, [
1839
- ut.t,
1840
- ut.u,
1841
- ut.P,
1842
- ut.T,
1843
- ut.D,
1844
- ut.I,
1845
- ut.O,
1846
- ut.S,
1847
- ut.F,
1848
- ut.v,
1849
- ut.R
1850
- ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, I), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1851
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, S, parseDateTimeUtcOffset(a[ut.R]), o.Z, l, c, !0), o.Z, o.U);
1851
+ Tt.t,
1852
+ Tt.u,
1853
+ Tt.P,
1854
+ Tt.T,
1855
+ Tt.D,
1856
+ Tt.I,
1857
+ Tt.O,
1858
+ Tt.F,
1859
+ Tt.S,
1860
+ Tt.v,
1861
+ Tt.R
1862
+ ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, f), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1863
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, O, parseDateTimeUtcOffset(a[Tt.R]), o.Z, l, c, !0), o.Z, o.U);
1852
1864
  }
1853
1865
  withPlainTime(e = void 0) {
1854
1866
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
1855
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), g), t.Z, t.U);
1867
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), h), t.Z, t.U);
1856
1868
  }
1857
1869
  withTimeZone(e) {
1858
1870
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1876,38 +1888,38 @@ var Ee = class {
1876
1888
  }
1877
1889
  round(e) {
1878
1890
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
1879
- if (validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), a === _ && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1891
+ if (validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), a === J && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1880
1892
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
1881
- if (a === L) {
1893
+ if (a === x) {
1882
1894
  const e = getStartOfDay(t.Z, i.o), o = getStartOfDay(t.Z, addDaysToIsoDate(i.o, 1));
1883
1895
  return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.Y) ? addNanosecondsToEpochSeconds(o, -1) : t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1884
1896
  }
1885
- const l = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
1886
- return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, S, c, t.Z, g, I, !0), t.Z, t.U);
1897
+ const l = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
1898
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, O, s, t.Z, h, f, !0), t.Z, t.U);
1887
1899
  }
1888
1900
  equals(e) {
1889
1901
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
1890
1902
  return !compareEpochNanoseconds(t.Y, o.Y) && timeZoneEquals(t.Z, o.Z) && calendarEquals(t.U, o.U);
1891
1903
  }
1892
1904
  toString(e = void 0) {
1893
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [Y, W], Y))(o), i = getRoundingModeOption(o, P), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
1905
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [C, Y], C))(o), i = getRoundingModeOption(o, E), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
1906
+ W,
1894
1907
  A,
1895
- z,
1896
- V
1897
- ], A))(o);
1898
- validateTemporalUnitValue(l, s), l === q && throwRangeError(invalidField("smallestUnit"));
1908
+ z
1909
+ ], W))(o);
1910
+ validateTemporalUnitValue(l, c), l === L && throwRangeError(invalidField("smallestUnit"));
1899
1911
  const d = toSecondsStringPrecisionRecord(l, r);
1900
- return temporalZonedDateTimeToString(t, d.ve, n, c, a, d.Ee, d.ye, i);
1912
+ return temporalZonedDateTimeToString(t, d.ye, n, s, a, d.Pe, d.Ee, i);
1901
1913
  }
1902
1914
  toLocaleString(e = void 0, t = void 0) {
1903
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.Z), r = getInternalSlotOrThrowForDateTimeFormat(n);
1904
- return "iso8601" === o.U || calendarEquals(o.U, r.Ze.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.Y));
1915
+ const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, s, o.Z), r = getInternalSlotOrThrowForDateTimeFormat(n);
1916
+ return "iso8601" === o.U || calendarEquals(o.U, r.$e.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.Y));
1905
1917
  }
1906
1918
  toJSON() {
1907
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, U, A, Y);
1919
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, M, W, C);
1908
1920
  }
1909
1921
  valueOf() {
1910
- throwTypeError(Ie);
1922
+ throwTypeError(fe);
1911
1923
  }
1912
1924
  startOfDay() {
1913
1925
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1915,7 +1927,7 @@ var Ee = class {
1915
1927
  }
1916
1928
  getTimeZoneTransition(e) {
1917
1929
  const t = getInternalSlotOrThrowForZonedDateTime(this);
1918
- void 0 === e && throwTypeError(Oe);
1930
+ void 0 === e && throwTypeError(Ie);
1919
1931
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
1920
1932
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
1921
1933
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
@@ -1955,119 +1967,104 @@ var Ze = class {
1955
1967
  c
1956
1968
  ].map(toIntegerWithTruncation);
1957
1969
  validateString(s);
1958
- const T = canonicalizeCalendar(s);
1959
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(se), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), T, this);
1970
+ const u = canonicalizeCalendar(s);
1971
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(ce), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1960
1972
  }
1961
1973
  static from(e, t = void 0) {
1962
1974
  return toTemporalDateTime(e, t);
1963
1975
  }
1964
1976
  static compare(e, t) {
1965
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).G, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).G);
1977
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).K, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).K);
1966
1978
  }
1967
1979
  get calendarId() {
1968
1980
  return getInternalSlotOrThrowForPlainDateTime(this).U;
1969
1981
  }
1970
1982
  get era() {
1971
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1972
- return calendarIsoToDate(e.U, e.G.o).oe;
1983
+ return calendarDateForPlainDateTime(this).ne;
1973
1984
  }
1974
1985
  get eraYear() {
1975
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1976
- return calendarIsoToDate(e.U, e.G.o).ne;
1986
+ return calendarDateForPlainDateTime(this).re;
1977
1987
  }
1978
1988
  get year() {
1979
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1980
- return calendarIsoToDate(e.U, e.G.o).t;
1989
+ return calendarDateForPlainDateTime(this).t;
1981
1990
  }
1982
1991
  get month() {
1983
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1984
- return calendarIsoToDate(e.U, e.G.o).u;
1992
+ return calendarDateForPlainDateTime(this).u;
1985
1993
  }
1986
1994
  get monthCode() {
1987
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1988
- return calendarIsoToDate(e.U, e.G.o).P;
1995
+ return calendarDateForPlainDateTime(this).P;
1989
1996
  }
1990
1997
  get day() {
1991
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1992
- return calendarIsoToDate(e.U, e.G.o).T;
1998
+ return calendarDateForPlainDateTime(this).T;
1993
1999
  }
1994
2000
  get hour() {
1995
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.D;
2001
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.D;
1996
2002
  }
1997
2003
  get minute() {
1998
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.I;
2004
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.I;
1999
2005
  }
2000
2006
  get second() {
2001
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.O;
2007
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.O;
2002
2008
  }
2003
2009
  get millisecond() {
2004
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.S;
2010
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.F;
2005
2011
  }
2006
2012
  get microsecond() {
2007
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.F;
2013
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.S;
2008
2014
  }
2009
2015
  get nanosecond() {
2010
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.v;
2016
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.v;
2011
2017
  }
2012
2018
  get dayOfWeek() {
2013
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2014
- return calendarIsoToDate(e.U, e.G.o).ae;
2019
+ return calendarDateForPlainDateTime(this).ie;
2015
2020
  }
2016
2021
  get dayOfYear() {
2017
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2018
- return calendarIsoToDate(e.U, e.G.o).ie;
2022
+ return calendarDateForPlainDateTime(this).le;
2019
2023
  }
2020
2024
  get weekOfYear() {
2021
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2022
- return calendarIsoToDate(e.U, e.G.o).le.re;
2025
+ return calendarDateForPlainDateTime(this).ce.ae;
2023
2026
  }
2024
2027
  get yearOfWeek() {
2025
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2026
- return calendarIsoToDate(e.U, e.G.o).le.t;
2028
+ return calendarDateForPlainDateTime(this).ce.t;
2027
2029
  }
2028
2030
  get daysInWeek() {
2029
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2030
- return calendarIsoToDate(e.U, e.G.o).ce;
2031
+ return calendarDateForPlainDateTime(this).se;
2031
2032
  }
2032
2033
  get daysInMonth() {
2033
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2034
- return calendarIsoToDate(e.U, e.G.o).se;
2034
+ return calendarDateForPlainDateTime(this).de;
2035
2035
  }
2036
2036
  get daysInYear() {
2037
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2038
- return calendarIsoToDate(e.U, e.G.o).de;
2037
+ return calendarDateForPlainDateTime(this).me;
2039
2038
  }
2040
2039
  get monthsInYear() {
2041
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2042
- return calendarIsoToDate(e.U, e.G.o).me;
2040
+ return calendarDateForPlainDateTime(this).ue;
2043
2041
  }
2044
2042
  get inLeapYear() {
2045
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2046
- return calendarIsoToDate(e.U, e.G.o).ue;
2043
+ return calendarDateForPlainDateTime(this).Te;
2047
2044
  }
2048
2045
  with(e, t = void 0) {
2049
2046
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2050
2047
  validatePartialTemporalObject(e);
2051
- const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o.G), prepareCalendarFields(o.U, e, [
2052
- ut.t,
2053
- ut.u,
2054
- ut.P,
2055
- ut.T,
2056
- ut.D,
2057
- ut.I,
2058
- ut.O,
2059
- ut.S,
2060
- ut.F,
2061
- ut.v
2048
+ const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o.K), prepareCalendarFields(o.U, e, [
2049
+ Tt.t,
2050
+ Tt.u,
2051
+ Tt.P,
2052
+ Tt.T,
2053
+ Tt.D,
2054
+ Tt.I,
2055
+ Tt.O,
2056
+ Tt.F,
2057
+ Tt.S,
2058
+ Tt.v
2062
2059
  ]));
2063
2060
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2064
2061
  }
2065
2062
  withPlainTime(e = void 0) {
2066
2063
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2067
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t.G.o, toTimeRecordOrMidnight(e)), t.U);
2064
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.K.o, toTimeRecordOrMidnight(e)), t.U);
2068
2065
  }
2069
2066
  withCalendar(e) {
2070
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).G, toTemporalCalendarIdentifier(e));
2067
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).K, toTemporalCalendarIdentifier(e));
2071
2068
  }
2072
2069
  add(e, t = void 0) {
2073
2070
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2083,38 +2080,38 @@ var Ze = class {
2083
2080
  }
2084
2081
  round(e) {
2085
2082
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2086
- return validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), createTemporalDateTime(roundIsoDateTime(t.G, n, a, r), t.U);
2083
+ return validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.U);
2087
2084
  }
2088
2085
  equals(e) {
2089
2086
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2090
- return !compareIsoDateTime(t.G, o.G) && calendarEquals(t.U, o.U);
2087
+ return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.U, o.U);
2091
2088
  }
2092
2089
  toString(e = void 0) {
2093
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, P), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2094
- validateTemporalUnitValue(i, s), i === q && throwRangeError(invalidField("smallestUnit"));
2090
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, E), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2091
+ validateTemporalUnitValue(i, c), i === L && throwRangeError(invalidField("smallestUnit"));
2095
2092
  const l = toSecondsStringPrecisionRecord(i, r);
2096
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.G, l.Ee, l.ye, a)), t.U, l.ve, n);
2093
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, l.Pe, l.Ee, a)), t.U, l.ye, n);
2097
2094
  }
2098
2095
  toLocaleString(e = void 0, t = void 0) {
2099
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2096
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2100
2097
  }
2101
2098
  toJSON() {
2102
2099
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2103
- return isoDateTimeToString(e.G, e.U, void 0, U);
2100
+ return isoDateTimeToString(e.K, e.U, void 0, M);
2104
2101
  }
2105
2102
  valueOf() {
2106
- throwTypeError(Ie);
2103
+ throwTypeError(fe);
2107
2104
  }
2108
2105
  toZonedDateTime(e, t = void 0) {
2109
2106
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2110
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.G, r), n, o.U);
2107
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.K, r), n, o.U);
2111
2108
  }
2112
2109
  toPlainDate() {
2113
2110
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2114
- return createTemporalDate(e.G.o, e.U);
2111
+ return createTemporalDate(e.K.o, e.U);
2115
2112
  }
2116
2113
  toPlainTime() {
2117
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).G.p);
2114
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2118
2115
  }
2119
2116
  };
2120
2117
  defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
@@ -2129,7 +2126,7 @@ var Me = class {
2129
2126
  r,
2130
2127
  a
2131
2128
  ].map(toIntegerWithTruncation);
2132
- isValidTime(...i) || throwRangeError(se), createTemporalTime(createTimeRecord(...i), this);
2129
+ isValidTime(...i) || throwRangeError(ce), createTemporalTime(createTimeRecord(...i), this);
2133
2130
  }
2134
2131
  static from(e, t = void 0) {
2135
2132
  return createTemporalTime(toTemporalTime(e, t));
@@ -2147,10 +2144,10 @@ var Me = class {
2147
2144
  return getInternalSlotOrThrowForPlainTime(this).O;
2148
2145
  }
2149
2146
  get millisecond() {
2150
- return getInternalSlotOrThrowForPlainTime(this).S;
2147
+ return getInternalSlotOrThrowForPlainTime(this).F;
2151
2148
  }
2152
2149
  get microsecond() {
2153
- return getInternalSlotOrThrowForPlainTime(this).F;
2150
+ return getInternalSlotOrThrowForPlainTime(this).S;
2154
2151
  }
2155
2152
  get nanosecond() {
2156
2153
  return getInternalSlotOrThrowForPlainTime(this).v;
@@ -2167,8 +2164,8 @@ var Me = class {
2167
2164
  o.D,
2168
2165
  o.I,
2169
2166
  o.O,
2170
- o.S,
2171
2167
  o.F,
2168
+ o.S,
2172
2169
  o.v
2173
2170
  ]), getTemporalOverflowOption(getOptionsObject(t))));
2174
2171
  }
@@ -2179,26 +2176,26 @@ var Me = class {
2179
2176
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2180
2177
  }
2181
2178
  round(e) {
2182
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, Z), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2183
- return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2179
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, b), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2180
+ return validateTemporalUnitValue(a, c), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2184
2181
  }
2185
2182
  equals(e) {
2186
2183
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2187
2184
  }
2188
2185
  toString(e = void 0) {
2189
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2190
- validateTemporalUnitValue(a, s), a === q && throwRangeError(invalidField("smallestUnit"));
2186
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2187
+ validateTemporalUnitValue(a, c), a === L && throwRangeError(invalidField("smallestUnit"));
2191
2188
  const i = toSecondsStringPrecisionRecord(a, n);
2192
- return timeRecordToString(roundTime(t, i.Ee, i.ye, r), i.ve);
2189
+ return timeRecordToString(roundTime(t, i.Pe, i.Ee, r), i.ye);
2193
2190
  }
2194
2191
  toLocaleString(e = void 0, t = void 0) {
2195
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2192
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2196
2193
  }
2197
2194
  toJSON() {
2198
2195
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2199
2196
  }
2200
2197
  valueOf() {
2201
- throwTypeError(Ie);
2198
+ throwTypeError(fe);
2202
2199
  }
2203
2200
  };
2204
2201
  defineStringTag(Me.prototype, "Temporal.PlainTime"), renameFunction(Me, "PlainTime");
@@ -2216,17 +2213,17 @@ const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", $e = "0[1-9]|[12]\\d|30|31
2216
2213
  We,
2217
2214
  `[ tT]${Ae}`,
2218
2215
  `(?<h>${ze})`
2219
- ]), ke = `(?<l>${Ue})-?(?<m>${je})`, He = `(?:--)?(?<m>${je})-?(?<n>${$e})`, xe = `(?<h>${ze})|(?<i>[zZ])`, Le = `([+-])(${Ce})(?::?(${Ye}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Le})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Ke = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2216
+ ]), ke = `(?<l>${Ue})-?(?<m>${je})`, He = `(?:--)?(?<m>${je})-?(?<n>${$e})`, xe = `(?<h>${ze})|(?<i>[zZ])`, Le = `([+-])(${Ce})(?::?(${Ye}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Le})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Xe = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2220
2217
  We,
2221
2218
  `[ tT]${Ae}`,
2222
2219
  xe
2223
- ])}${qe}${_e}`), Xe = createRegExp(`${Ve}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${ze})?(?:${qe})?${_e}`), tt = createRegExp(`(${Ve}|${He})(?:${qe})?${_e}`), ot = createRegExp(`(${Ve}|${ke})(?:${qe})?${_e}`), nt = [createRegExp(`${He}(${qe})?(${Je})*`), createRegExp(`${ke}(${qe})?(${Je})*`)], rt = createRegExp(Le), at = createRegExp(Be), it = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2220
+ ])}${qe}${_e}`), Ke = createRegExp(`${Ve}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${ze})?(?:${qe})?${_e}`), tt = createRegExp(`(${Ve}|${He})(?:${qe})?${_e}`), ot = createRegExp(`(${Ve}|${ke})(?:${qe})?${_e}`), nt = [createRegExp(`${He}(${qe})?(${Je})*`), createRegExp(`${ke}(${qe})?(${Je})*`)], rt = createRegExp(Le), at = createRegExp(Be), it = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2224
2221
  var ct = class {
2225
2222
  constructor(e, t, o = "iso8601", n = 1972) {
2226
2223
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2227
2224
  validateString(o);
2228
2225
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2229
- isValidIsoDate(l, r, a) || throwRangeError(se), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2226
+ isValidIsoDate(l, r, a) || throwRangeError(ce), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2230
2227
  }
2231
2228
  static from(e, t = void 0) {
2232
2229
  return toTemporalMonthDay(e, t);
@@ -2244,11 +2241,11 @@ var ct = class {
2244
2241
  }
2245
2242
  with(e, t = void 0) {
2246
2243
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2247
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, T), prepareCalendarFields(o.U, e, [
2248
- ut.t,
2249
- ut.u,
2250
- ut.P,
2251
- ut.T
2244
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, m), prepareCalendarFields(o.U, e, [
2245
+ Tt.t,
2246
+ Tt.u,
2247
+ Tt.P,
2248
+ Tt.T
2252
2249
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.U);
2253
2250
  }
2254
2251
  equals(e) {
@@ -2259,17 +2256,17 @@ var ct = class {
2259
2256
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2260
2257
  }
2261
2258
  toLocaleString(e = void 0, t = void 0) {
2262
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2259
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2263
2260
  }
2264
2261
  toJSON() {
2265
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), U);
2262
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), M);
2266
2263
  }
2267
2264
  valueOf() {
2268
- throwTypeError(Ie);
2265
+ throwTypeError(fe);
2269
2266
  }
2270
2267
  toPlainDate(e) {
2271
2268
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2272
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, T), prepareCalendarFields(t.U, e, [ut.t], [])), p), t.U);
2269
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [Tt.t], [])), D), t.U);
2273
2270
  }
2274
2271
  };
2275
2272
  defineStringTag(ct.prototype, "Temporal.PlainMonthDay"), renameFunction(ct, "PlainMonthDay");
@@ -2279,7 +2276,7 @@ var dt = class {
2279
2276
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2280
2277
  validateString(o);
2281
2278
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2282
- isValidIsoDate(r, a, l) || throwRangeError(se), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2279
+ isValidIsoDate(r, a, l) || throwRangeError(ce), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2283
2280
  }
2284
2281
  static from(e, t = void 0) {
2285
2282
  return toTemporalYearMonth(e, t);
@@ -2291,48 +2288,39 @@ var dt = class {
2291
2288
  return getInternalSlotOrThrowForPlainYearMonth(this).U;
2292
2289
  }
2293
2290
  get era() {
2294
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2295
- return calendarIsoToDate(e.U, e.o).oe;
2291
+ return calendarDateForPlainYearMonth(this).ne;
2296
2292
  }
2297
2293
  get eraYear() {
2298
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2299
- return calendarIsoToDate(e.U, e.o).ne;
2294
+ return calendarDateForPlainYearMonth(this).re;
2300
2295
  }
2301
2296
  get year() {
2302
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2303
- return calendarIsoToDate(e.U, e.o).t;
2297
+ return calendarDateForPlainYearMonth(this).t;
2304
2298
  }
2305
2299
  get month() {
2306
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2307
- return calendarIsoToDate(e.U, e.o).u;
2300
+ return calendarDateForPlainYearMonth(this).u;
2308
2301
  }
2309
2302
  get monthCode() {
2310
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2311
- return calendarIsoToDate(e.U, e.o).P;
2303
+ return calendarDateForPlainYearMonth(this).P;
2312
2304
  }
2313
2305
  get daysInYear() {
2314
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2315
- return calendarIsoToDate(e.U, e.o).de;
2306
+ return calendarDateForPlainYearMonth(this).me;
2316
2307
  }
2317
2308
  get daysInMonth() {
2318
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2319
- return calendarIsoToDate(e.U, e.o).se;
2309
+ return calendarDateForPlainYearMonth(this).de;
2320
2310
  }
2321
2311
  get monthsInYear() {
2322
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2323
- return calendarIsoToDate(e.U, e.o).me;
2312
+ return calendarDateForPlainYearMonth(this).ue;
2324
2313
  }
2325
2314
  get inLeapYear() {
2326
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2327
- return calendarIsoToDate(e.U, e.o).ue;
2315
+ return calendarDateForPlainYearMonth(this).Te;
2328
2316
  }
2329
2317
  with(e, t = void 0) {
2330
2318
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2331
2319
  validatePartialTemporalObject(e);
2332
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, m), prepareCalendarFields(o.U, e, [
2333
- ut.t,
2334
- ut.u,
2335
- ut.P
2320
+ const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, d), prepareCalendarFields(o.U, e, [
2321
+ Tt.t,
2322
+ Tt.u,
2323
+ Tt.P
2336
2324
  ]));
2337
2325
  return createTemporalYearMonth(calendarYearMonthFromFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2338
2326
  }
@@ -2356,27 +2344,27 @@ var dt = class {
2356
2344
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2357
2345
  }
2358
2346
  toLocaleString(e = void 0, t = void 0) {
2359
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2347
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2360
2348
  }
2361
2349
  toJSON() {
2362
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), U);
2350
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), M);
2363
2351
  }
2364
2352
  valueOf() {
2365
- throwTypeError(Ie);
2353
+ throwTypeError(fe);
2366
2354
  }
2367
2355
  toPlainDate(e) {
2368
2356
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2369
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [ut.T], [])), p), t.U);
2357
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, d), prepareCalendarFields(t.U, e, [Tt.T], [])), D), t.U);
2370
2358
  }
2371
2359
  };
2372
2360
  defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2373
2361
  const mt = /* @__PURE__ */ new WeakMap();
2374
- var Tt = class {
2362
+ var ut = class {
2375
2363
  constructor(e, t, o, n = "iso8601") {
2376
2364
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2377
2365
  validateString(n);
2378
2366
  const l = canonicalizeCalendar(n);
2379
- isValidIsoDate(r, a, i) || throwRangeError(se), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2367
+ isValidIsoDate(r, a, i) || throwRangeError(ce), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2380
2368
  }
2381
2369
  static from(e, t = void 0) {
2382
2370
  return toTemporalDate(e, t);
@@ -2388,72 +2376,57 @@ var Tt = class {
2388
2376
  return getInternalSlotOrThrowForPlainDate(this).U;
2389
2377
  }
2390
2378
  get era() {
2391
- const e = getInternalSlotOrThrowForPlainDate(this);
2392
- return calendarIsoToDate(e.U, e.o).oe;
2379
+ return calendarDateForPlainDate(this).ne;
2393
2380
  }
2394
2381
  get eraYear() {
2395
- const e = getInternalSlotOrThrowForPlainDate(this);
2396
- return calendarIsoToDate(e.U, e.o).ne;
2382
+ return calendarDateForPlainDate(this).re;
2397
2383
  }
2398
2384
  get year() {
2399
- const e = getInternalSlotOrThrowForPlainDate(this);
2400
- return calendarIsoToDate(e.U, e.o).t;
2385
+ return calendarDateForPlainDate(this).t;
2401
2386
  }
2402
2387
  get month() {
2403
- const e = getInternalSlotOrThrowForPlainDate(this);
2404
- return calendarIsoToDate(e.U, e.o).u;
2388
+ return calendarDateForPlainDate(this).u;
2405
2389
  }
2406
2390
  get monthCode() {
2407
- const e = getInternalSlotOrThrowForPlainDate(this);
2408
- return calendarIsoToDate(e.U, e.o).P;
2391
+ return calendarDateForPlainDate(this).P;
2409
2392
  }
2410
2393
  get day() {
2411
- const e = getInternalSlotOrThrowForPlainDate(this);
2412
- return calendarIsoToDate(e.U, e.o).T;
2394
+ return calendarDateForPlainDate(this).T;
2413
2395
  }
2414
2396
  get dayOfWeek() {
2415
- const e = getInternalSlotOrThrowForPlainDate(this);
2416
- return calendarIsoToDate(e.U, e.o).ae;
2397
+ return calendarDateForPlainDate(this).ie;
2417
2398
  }
2418
2399
  get dayOfYear() {
2419
- const e = getInternalSlotOrThrowForPlainDate(this);
2420
- return calendarIsoToDate(e.U, e.o).ie;
2400
+ return calendarDateForPlainDate(this).le;
2421
2401
  }
2422
2402
  get weekOfYear() {
2423
- const e = getInternalSlotOrThrowForPlainDate(this);
2424
- return calendarIsoToDate(e.U, e.o).le.re;
2403
+ return calendarDateForPlainDate(this).ce.ae;
2425
2404
  }
2426
2405
  get yearOfWeek() {
2427
- const e = getInternalSlotOrThrowForPlainDate(this);
2428
- return calendarIsoToDate(e.U, e.o).le.t;
2406
+ return calendarDateForPlainDate(this).ce.t;
2429
2407
  }
2430
2408
  get daysInWeek() {
2431
- const e = getInternalSlotOrThrowForPlainDate(this);
2432
- return calendarIsoToDate(e.U, e.o).ce;
2409
+ return calendarDateForPlainDate(this).se;
2433
2410
  }
2434
2411
  get daysInMonth() {
2435
- const e = getInternalSlotOrThrowForPlainDate(this);
2436
- return calendarIsoToDate(e.U, e.o).se;
2412
+ return calendarDateForPlainDate(this).de;
2437
2413
  }
2438
2414
  get daysInYear() {
2439
- const e = getInternalSlotOrThrowForPlainDate(this);
2440
- return calendarIsoToDate(e.U, e.o).de;
2415
+ return calendarDateForPlainDate(this).me;
2441
2416
  }
2442
2417
  get monthsInYear() {
2443
- const e = getInternalSlotOrThrowForPlainDate(this);
2444
- return calendarIsoToDate(e.U, e.o).me;
2418
+ return calendarDateForPlainDate(this).ue;
2445
2419
  }
2446
2420
  get inLeapYear() {
2447
- const e = getInternalSlotOrThrowForPlainDate(this);
2448
- return calendarIsoToDate(e.U, e.o).ue;
2421
+ return calendarDateForPlainDate(this).Te;
2449
2422
  }
2450
2423
  toPlainYearMonth() {
2451
2424
  const e = getInternalSlotOrThrowForPlainDate(this);
2452
- return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, c), p), e.U);
2425
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2453
2426
  }
2454
2427
  toPlainMonthDay() {
2455
2428
  const e = getInternalSlotOrThrowForPlainDate(this);
2456
- return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, c), p), e.U);
2429
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2457
2430
  }
2458
2431
  add(e, t = void 0) {
2459
2432
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -2464,11 +2437,11 @@ var Tt = class {
2464
2437
  with(e, t = void 0) {
2465
2438
  const o = getInternalSlotOrThrowForPlainDate(this);
2466
2439
  validatePartialTemporalObject(e);
2467
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, c), prepareCalendarFields(o.U, e, [
2468
- ut.t,
2469
- ut.u,
2470
- ut.P,
2471
- ut.T
2440
+ const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, l), prepareCalendarFields(o.U, e, [
2441
+ Tt.t,
2442
+ Tt.u,
2443
+ Tt.P,
2444
+ Tt.T
2472
2445
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
2473
2446
  return createTemporalDate(calendarDateFromFields(o.U, n, r), o.U);
2474
2447
  }
@@ -2496,25 +2469,25 @@ var Tt = class {
2496
2469
  const t = e.timeZone;
2497
2470
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
2498
2471
  } else n = toTemporalTimeZoneIdentifier(e);
2499
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), g), n, t.U);
2472
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), h), n, t.U);
2500
2473
  }
2501
2474
  toString(e = void 0) {
2502
2475
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2503
2476
  }
2504
2477
  toLocaleString(e = void 0, t = void 0) {
2505
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2478
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2506
2479
  }
2507
2480
  toJSON() {
2508
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), U);
2481
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), M);
2509
2482
  }
2510
2483
  valueOf() {
2511
- throwTypeError(Ie);
2484
+ throwTypeError(fe);
2512
2485
  }
2513
2486
  };
2514
- defineStringTag(Tt.prototype, "Temporal.PlainDate"), renameFunction(Tt, "PlainDate");
2515
- const ut = {
2516
- oe: "era",
2517
- ne: "eraYear",
2487
+ defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
2488
+ const Tt = {
2489
+ ne: "era",
2490
+ re: "eraYear",
2518
2491
  t: "year",
2519
2492
  u: "month",
2520
2493
  P: "monthCode",
@@ -2522,44 +2495,44 @@ const ut = {
2522
2495
  D: "hour",
2523
2496
  I: "minute",
2524
2497
  O: "second",
2525
- S: "millisecond",
2526
- F: "microsecond",
2498
+ F: "millisecond",
2499
+ S: "microsecond",
2527
2500
  v: "nanosecond",
2528
2501
  R: "offset",
2529
2502
  Z: "timeZone"
2530
2503
  }, Dt = [
2531
- ut.oe,
2532
- ut.ne,
2533
- ut.t,
2534
- ut.u,
2535
- ut.P,
2536
- ut.T,
2537
- ut.D,
2538
- ut.I,
2539
- ut.O,
2540
- ut.S,
2541
- ut.F,
2542
- ut.v,
2543
- ut.R,
2544
- ut.Z
2504
+ Tt.ne,
2505
+ Tt.re,
2506
+ Tt.t,
2507
+ Tt.u,
2508
+ Tt.P,
2509
+ Tt.T,
2510
+ Tt.D,
2511
+ Tt.I,
2512
+ Tt.O,
2513
+ Tt.F,
2514
+ Tt.S,
2515
+ Tt.v,
2516
+ Tt.R,
2517
+ Tt.Z
2545
2518
  ], pt = {
2546
- [ut.oe]: [toString],
2547
- [ut.ne]: [toIntegerWithTruncation],
2548
- [ut.t]: [toIntegerWithTruncation],
2549
- [ut.u]: [toPositiveIntegerWithTruncation],
2550
- [ut.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2551
- [ut.T]: [toPositiveIntegerWithTruncation],
2552
- [ut.D]: [toIntegerWithTruncation, 0],
2553
- [ut.I]: [toIntegerWithTruncation, 0],
2554
- [ut.O]: [toIntegerWithTruncation, 0],
2555
- [ut.S]: [toIntegerWithTruncation, 0],
2556
- [ut.F]: [toIntegerWithTruncation, 0],
2557
- [ut.v]: [toIntegerWithTruncation, 0],
2558
- [ut.R]: [(e) => {
2519
+ [Tt.ne]: [toString],
2520
+ [Tt.re]: [toIntegerWithTruncation],
2521
+ [Tt.t]: [toIntegerWithTruncation],
2522
+ [Tt.u]: [toPositiveIntegerWithTruncation],
2523
+ [Tt.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2524
+ [Tt.T]: [toPositiveIntegerWithTruncation],
2525
+ [Tt.D]: [toIntegerWithTruncation, 0],
2526
+ [Tt.I]: [toIntegerWithTruncation, 0],
2527
+ [Tt.O]: [toIntegerWithTruncation, 0],
2528
+ [Tt.F]: [toIntegerWithTruncation, 0],
2529
+ [Tt.S]: [toIntegerWithTruncation, 0],
2530
+ [Tt.v]: [toIntegerWithTruncation, 0],
2531
+ [Tt.R]: [(e) => {
2559
2532
  const t = toPrimitive(e);
2560
2533
  return validateString(t), parseDateTimeUtcOffset(t), t;
2561
2534
  }],
2562
- [ut.Z]: [toTemporalTimeZoneIdentifier]
2535
+ [Tt.Z]: [toTemporalTimeZoneIdentifier]
2563
2536
  }, ht = /* @__PURE__ */ new WeakMap(), gt = signTimeDuration;
2564
2537
  var ft = class {
2565
2538
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
@@ -2581,40 +2554,40 @@ var ft = class {
2581
2554
  }
2582
2555
  static compare(e, t, o = void 0) {
2583
2556
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
2584
- if (n.every((e, t) => r[t] === e)) return 0;
2557
+ if (!n.some((e, t) => r[t] !== e)) return 0;
2585
2558
  const i = defaultTemporalLargestUnit(n), l = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), s = toInternalDurationRecord(r);
2586
2559
  let d, m;
2587
- return a.Pe && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Pe, c, p), addZonedDateTime(a.Pe, s, p)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.Re), m = dateDurationDays(s.A, a.Re)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2560
+ return a.Re && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Re, c, D), addZonedDateTime(a.Re, s, D)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.be), m = dateDurationDays(s.A, a.be)) : (d = n[K], m = r[K]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2588
2561
  }
2589
2562
  get years() {
2590
- return getInternalSlotOrThrowForDuration(this)[K];
2563
+ return getInternalSlotOrThrowForDuration(this)[_];
2591
2564
  }
2592
2565
  get months() {
2593
- return getInternalSlotOrThrowForDuration(this)[G];
2566
+ return getInternalSlotOrThrowForDuration(this)[X];
2594
2567
  }
2595
2568
  get weeks() {
2596
- return getInternalSlotOrThrowForDuration(this)[X];
2569
+ return getInternalSlotOrThrowForDuration(this)[G];
2597
2570
  }
2598
2571
  get days() {
2599
- return getInternalSlotOrThrowForDuration(this)[Q];
2572
+ return getInternalSlotOrThrowForDuration(this)[K];
2600
2573
  }
2601
2574
  get hours() {
2602
- return getInternalSlotOrThrowForDuration(this)[ee];
2575
+ return getInternalSlotOrThrowForDuration(this)[Q];
2603
2576
  }
2604
2577
  get minutes() {
2605
- return getInternalSlotOrThrowForDuration(this)[te];
2578
+ return getInternalSlotOrThrowForDuration(this)[ee];
2606
2579
  }
2607
2580
  get seconds() {
2608
- return getInternalSlotOrThrowForDuration(this)[oe];
2581
+ return getInternalSlotOrThrowForDuration(this)[te];
2609
2582
  }
2610
2583
  get milliseconds() {
2611
- return getInternalSlotOrThrowForDuration(this)[ne];
2584
+ return getInternalSlotOrThrowForDuration(this)[oe];
2612
2585
  }
2613
2586
  get microseconds() {
2614
- return getInternalSlotOrThrowForDuration(this)[re];
2587
+ return getInternalSlotOrThrowForDuration(this)[ne];
2615
2588
  }
2616
2589
  get nanoseconds() {
2617
- return getInternalSlotOrThrowForDuration(this)[ae];
2590
+ return getInternalSlotOrThrowForDuration(this)[re];
2618
2591
  }
2619
2592
  get sign() {
2620
2593
  return durationSign(getInternalSlotOrThrowForDuration(this));
@@ -2641,75 +2614,75 @@ var ft = class {
2641
2614
  round(e) {
2642
2615
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
2643
2616
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
2644
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, Z);
2617
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, b);
2645
2618
  let l = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2646
- validateTemporalUnitValue(l, d);
2619
+ validateTemporalUnitValue(l, s);
2647
2620
  const c = void 0 !== l;
2648
- l ??= _;
2649
- const s = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(s, l), T = void 0 !== n;
2650
- if (void 0 !== n && "auto" !== n || (n = m), (!c && !T || n > l) && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(pe), r.Pe) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Pe, createZonedDateTimeSlot(addZonedDateTime(r.Pe, toInternalDurationRecord(t), p), r.Pe.Z, r.Pe.U), n, a, l, i), isDateUnit(n) ? q : n));
2651
- if (r.Re) {
2621
+ l ??= J;
2622
+ const d = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(d, l), u = void 0 !== n;
2623
+ if (void 0 !== n && "auto" !== n || (n = m), (!c && !u || n > l) && throwRangeError(De), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(De), r.Re) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Re, createZonedDateTimeSlot(addZonedDateTime(r.Re, toInternalDurationRecord(t), D), r.Re.Z, r.Re.U), n, a, l, i), isDateUnit(n) ? L : n));
2624
+ if (r.be) {
2652
2625
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2653
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.A, o.K), p), o), r.Re.U, n, a, l, i), n));
2626
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.U, r.be.o, adjustDateDurationRecord(e.A, o.X), D), o), r.be.U, n, a, l, i), n));
2654
2627
  }
2655
- (isCalendarUnit(s) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2656
- const u = toInternalDurationRecordWith24HourDays(t);
2657
- return createTemporalDuration(temporalDurationFromInternal(l === L ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(u.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(u.p, a, l, i)), n));
2628
+ (isCalendarUnit(d) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2629
+ const T = toInternalDurationRecordWith24HourDays(t);
2630
+ return createTemporalDuration(temporalDurationFromInternal(l === x ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), we) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, l, i)), n));
2658
2631
  }
2659
2632
  total(e) {
2660
2633
  const t = getInternalSlotOrThrowForDuration(this);
2661
- void 0 === e && throwTypeError(Oe);
2634
+ void 0 === e && throwTypeError(Ie);
2662
2635
  const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
2663
- if (validateTemporalUnitValue(r, d), n.Pe) 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.Pe, createZonedDateTimeSlot(addZonedDateTime(n.Pe, toInternalDurationRecord(t), p), n.Pe.Z, n.Pe.U), r);
2664
- if (n.Re) {
2636
+ if (validateTemporalUnitValue(r, s), 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), D), n.Re.Z, n.Re.U), r);
2637
+ if (n.be) {
2665
2638
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2666
- 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.K), p), o), n.Re.U, r);
2639
+ 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), D), o), n.be.U, r);
2667
2640
  }
2668
2641
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
2669
2642
  }
2670
2643
  toString(e = void 0) {
2671
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2672
- validateTemporalUnitValue(a, s), a !== q && a !== B || throwRangeError(disallowedUnit(a));
2644
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2645
+ validateTemporalUnitValue(a, c), a !== L && a !== q || throwRangeError(disallowedUnit(a));
2673
2646
  const i = toSecondsStringPrecisionRecord(a, n);
2674
- if (i.ye === _ && 1 === i.Ee) return temporalDurationToString(t, i.ve);
2647
+ if (i.Ee === J && 1 === i.Pe) return temporalDurationToString(t, i.ye);
2675
2648
  const l = toInternalDurationRecord(t);
2676
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Ee, i.ye, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.ve);
2649
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Pe, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), B)), i.ye);
2677
2650
  }
2678
2651
  toJSON() {
2679
2652
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
2680
2653
  }
2681
2654
  toLocaleString(e = void 0, t = void 0) {
2682
2655
  const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
2683
- return le.map((e, t) => {
2656
+ return ie.map((e, t) => {
2684
2657
  n[e] = o[t];
2685
2658
  }), new Intl.DurationFormat(e, t).format(n);
2686
2659
  }
2687
2660
  valueOf() {
2688
- throwTypeError(Ie);
2661
+ throwTypeError(fe);
2689
2662
  }
2690
2663
  };
2691
2664
  defineStringTag(ft.prototype, "Temporal.Duration"), renameFunction(ft, "Duration");
2692
2665
  const It = {
2693
- [v]: Math.ceil,
2694
- [y]: Math.floor,
2695
- [E]: roundExpand,
2696
- [P]: Math.trunc,
2697
- [R]: roundHalfCeil,
2698
- [b]: roundHalfFloor,
2699
- [Z]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2700
- [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2701
- [M]: roundHalfEven
2666
+ [w]: Math.ceil,
2667
+ [v]: Math.floor,
2668
+ [y]: roundExpand,
2669
+ [E]: Math.trunc,
2670
+ [P]: roundHalfCeil,
2671
+ [R]: roundHalfFloor,
2672
+ [b]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2673
+ [Z]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2674
+ [N]: roundHalfEven
2702
2675
  }, Ot = {
2703
- [v]: Math.ceil,
2704
- [y]: Math.floor,
2705
- [E]: Math.ceil,
2706
- [P]: Math.floor,
2707
- [R]: roundHalfCeil,
2708
- [b]: roundHalfFloor,
2709
- [Z]: roundHalfCeil,
2710
- [N]: roundHalfFloor,
2711
- [M]: roundHalfEven
2712
- }, St = globalThis.Intl.DateTimeFormat, Ft = /* @__PURE__ */ new WeakMap(), wt = [
2676
+ [w]: Math.ceil,
2677
+ [v]: Math.floor,
2678
+ [y]: Math.ceil,
2679
+ [E]: Math.floor,
2680
+ [P]: roundHalfCeil,
2681
+ [R]: roundHalfFloor,
2682
+ [b]: roundHalfCeil,
2683
+ [Z]: roundHalfFloor,
2684
+ [N]: roundHalfEven
2685
+ }, Ft = globalThis.Intl.DateTimeFormat, St = /* @__PURE__ */ new WeakMap(), wt = [
2713
2686
  "year",
2714
2687
  "month",
2715
2688
  "day",
@@ -2724,15 +2697,15 @@ const It = {
2724
2697
  "timeStyle"
2725
2698
  ];
2726
2699
  var yt = class {
2727
- We(e) {
2700
+ Ae(e) {
2728
2701
  return formatDateTime(this, e);
2729
2702
  }
2730
2703
  }, Et = class {
2731
2704
  constructor(e, t) {
2732
- createDateTimeFormat(e, t, d, void 0, this);
2705
+ createDateTimeFormat(e, t, s, void 0, this);
2733
2706
  }
2734
2707
  get format() {
2735
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).Ae ||= yt.prototype.We.bind(this), "name", { value: "" });
2708
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= yt.prototype.Ae.bind(this), "name", { value: "" });
2736
2709
  }
2737
2710
  formatToParts(e) {
2738
2711
  return ((e, t) => {
@@ -2741,7 +2714,7 @@ var yt = class {
2741
2714
  })(this, e);
2742
2715
  }
2743
2716
  formatRange(e, t) {
2744
- return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
2717
+ return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2745
2718
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2746
2719
  validateSameTemporalType(t, o);
2747
2720
  const [r, a] = handleDateTimeValue(n, t);
@@ -2749,7 +2722,7 @@ var yt = class {
2749
2722
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2750
2723
  }
2751
2724
  formatRangeToParts(e, t) {
2752
- return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
2725
+ return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2753
2726
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2754
2727
  validateSameTemporalType(t, o);
2755
2728
  const [r, a] = handleDateTimeValue(n, t);
@@ -2757,12 +2730,12 @@ var yt = class {
2757
2730
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2758
2731
  }
2759
2732
  resolvedOptions() {
2760
- return getInternalSlotOrThrowForDateTimeFormat(this).be.resolvedOptions();
2733
+ return getInternalSlotOrThrowForDateTimeFormat(this).Ze.resolvedOptions();
2761
2734
  }
2762
2735
  };
2763
- const Pt = Object.getOwnPropertyDescriptors(St), Rt = Et.prototype;
2736
+ const Pt = Object.getOwnPropertyDescriptors(Ft), Rt = Et.prototype;
2764
2737
  Pt.prototype.value = Rt;
2765
- for (const e of ["formatRange", "formatRangeToParts"]) St.prototype[e] || delete Rt[e];
2738
+ for (const e of ["formatRange", "formatRangeToParts"]) Ft.prototype[e] || delete Rt[e];
2766
2739
  Object.defineProperties(DateTimeFormat, Pt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2767
2740
  const bt = /* @__PURE__ */ new WeakMap();
2768
2741
  var Zt = class {
@@ -2800,26 +2773,26 @@ var Zt = class {
2800
2773
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
2801
2774
  }
2802
2775
  round(e) {
2803
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, Z), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2804
- return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, i / nanosecondsForTimeUnit(a), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, a, r));
2776
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, b), i = getTemporalUnitValuedOption(o, "smallestUnit", u);
2777
+ return validateTemporalUnitValue(i, c), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, i, r));
2805
2778
  }
2806
2779
  equals(e) {
2807
2780
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).Y, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).Y);
2808
2781
  }
2809
2782
  toString(e = void 0) {
2810
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2811
- validateTemporalUnitValue(a, s), a === q && throwRangeError(invalidField("smallestUnit"));
2812
- const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
2813
- return temporalInstantToString(roundTemporalInstant(t.Y, c.Ee, c.ye, r), l, c.ve);
2783
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2784
+ validateTemporalUnitValue(a, c), a === L && throwRangeError(invalidField("smallestUnit"));
2785
+ const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
2786
+ return temporalInstantToString(roundTemporalInstant(t.Y, s.Pe, s.Ee, r), l, s.ye);
2814
2787
  }
2815
2788
  toLocaleString(e = void 0, t = void 0) {
2816
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2789
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2817
2790
  }
2818
2791
  toJSON() {
2819
2792
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).Y);
2820
2793
  }
2821
2794
  valueOf() {
2822
- throwTypeError(Ie);
2795
+ throwTypeError(fe);
2823
2796
  }
2824
2797
  toZonedDateTimeISO(e) {
2825
2798
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
@@ -2848,7 +2821,7 @@ defineStringTag(Yt, "Temporal.Now"), makePropertiesNonEnumerable(Yt);
2848
2821
  const Wt = {
2849
2822
  Instant: Zt,
2850
2823
  PlainDateTime: Ze,
2851
- PlainDate: Tt,
2824
+ PlainDate: ut,
2852
2825
  PlainTime: Me,
2853
2826
  PlainYearMonth: dt,
2854
2827
  PlainMonthDay: ct,