temporal-polyfill-lite 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,33 @@
1
- function getNameFromUnit(e) {
2
- return ie[e];
3
- }
4
- function nanosecondsForTimeUnit(e) {
5
- return se[e - 3];
6
- }
7
1
  function isObject(e) {
8
2
  return ("object" == typeof e || "function" == typeof e) && null !== e;
9
3
  }
10
4
  function createNullPrototypeObject(e) {
11
5
  return Object.assign(Object.create(null), e);
12
6
  }
7
+ function makePropertyNonEnumerable(e, t) {
8
+ Object.defineProperty(e, t, { enumerable: !1 });
9
+ }
10
+ function makePropertiesNonEnumerable(e) {
11
+ for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
12
+ }
13
+ function defineNonEnumerableProperty(e, t, o) {
14
+ e[t] = o, makePropertyNonEnumerable(e, t);
15
+ }
16
+ function defineStringTag(e, t) {
17
+ Object.defineProperty(e, Symbol.toStringTag, {
18
+ value: t,
19
+ configurable: !0
20
+ });
21
+ }
22
+ function renameFunction(e, t) {
23
+ Object.defineProperty(e, "name", { value: t });
24
+ }
25
+ function getNameFromUnit(e) {
26
+ return v[e];
27
+ }
28
+ function nanosecondsForTimeUnit(e) {
29
+ return M[e - 3];
30
+ }
13
31
  function mapUnlessUndefined(e, t) {
14
32
  return void 0 === e ? void 0 : t(e);
15
33
  }
@@ -22,6 +40,19 @@ function throwRangeError(e) {
22
40
  function throwTypeError(e) {
23
41
  throw new TypeError(e);
24
42
  }
43
+ function getInternalSlotOrThrow(e, t) {
44
+ const o = e.get(t);
45
+ return o || throwTypeError("invalid method call"), o;
46
+ }
47
+ function getInternalSlotOrThrowForDurationFormat(e) {
48
+ return getInternalSlotOrThrow(L, e);
49
+ }
50
+ function durationRecordToDurationLikeObject(e) {
51
+ const t = createNullPrototypeObject();
52
+ return E.map((o, n) => {
53
+ t[o] = e[n];
54
+ }), t;
55
+ }
25
56
  function toPrimitive(e) {
26
57
  if (!isObject(e)) return e;
27
58
  const t = e[Symbol.toPrimitive];
@@ -38,11 +69,11 @@ function toBigInt(e) {
38
69
  return BigInt.asIntN(2 ** 53 - 1, e);
39
70
  }
40
71
  function toIntegerIfIntegral(e) {
41
- const t = Fe(e);
72
+ const t = Se(e);
42
73
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
43
74
  }
44
75
  function toIntegerWithTruncation(e) {
45
- const t = Fe(e);
76
+ const t = Se(e);
46
77
  return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
47
78
  }
48
79
  function toPositiveIntegerWithTruncation(e) {
@@ -54,11 +85,11 @@ function getOptionsObject(e = createNullPrototypeObject()) {
54
85
  }
55
86
  function getOption(e, t, o, n) {
56
87
  const r = e[t];
57
- if (void 0 === r) return n === T && throwRangeError(missingField(t)), n;
88
+ if (void 0 === r) return n === B && throwRangeError(missingField(t)), n;
58
89
  const a = toString(r);
59
90
  return o.includes(a) || throwRangeError(invalidField(t)), a;
60
91
  }
61
- function getRoundToOptionsObject(e = throwTypeError(Oe)) {
92
+ function getRoundToOptionsObject(e = throwTypeError(W)) {
62
93
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
63
94
  }
64
95
  function validateString(e) {
@@ -85,29 +116,11 @@ function clamp(e, t, o) {
85
116
  function isWithin(e, t, o) {
86
117
  return e >= t && e <= o;
87
118
  }
88
- function makePropertyNonEnumerable(e, t) {
89
- Object.defineProperty(e, t, { enumerable: !1 });
90
- }
91
- function makePropertiesNonEnumerable(e) {
92
- for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
93
- }
94
- function defineNonEnumerableProperty(e, t, o) {
95
- e[t] = o, makePropertyNonEnumerable(e, t);
96
- }
97
- function defineStringTag(e, t) {
98
- Object.defineProperty(e, Symbol.toStringTag, {
99
- value: t,
100
- configurable: !0
101
- });
102
- }
103
- function renameFunction(e, t) {
104
- Object.defineProperty(e, "name", { value: t });
105
- }
106
119
  function normalizeEpochNanoseconds(e, t) {
107
- return [e + divFloor(t, i), modFloor(t, i)];
120
+ return [e + divFloor(t, a), modFloor(t, a)];
108
121
  }
109
122
  function createEpochNanosecondsFromBigInt(e) {
110
- return normalizeEpochNanoseconds(Number(e / BigInt(i)), Number(e % BigInt(i)));
123
+ return normalizeEpochNanoseconds(Number(e / BigInt(a)), Number(e % BigInt(a)));
111
124
  }
112
125
  function createEpochNanosecondsFromEpochMilliseconds(e) {
113
126
  return normalizeEpochNanoseconds(divFloor(e, r), 1e6 * modFloor(e, r));
@@ -116,7 +129,7 @@ function createEpochNanosecondsFromEpochSeconds(e) {
116
129
  return createEpochNanosecondsFromEpochMilliseconds(1e3 * e);
117
130
  }
118
131
  function convertEpochNanosecondsToBigInt(e) {
119
- return BigInt(e[0]) * BigInt(i) + BigInt(e[1]);
132
+ return BigInt(e[0]) * BigInt(a) + BigInt(e[1]);
120
133
  }
121
134
  function compareEpochNanoseconds(e, t) {
122
135
  return compare(e[0], t[0]) || compare(e[1], t[1]);
@@ -147,40 +160,41 @@ function toZeroPaddedDecimalString(e, t) {
147
160
  }
148
161
  function normalize(e, t) {
149
162
  const [o, n] = normalizeEpochNanoseconds(e, t);
150
- return o < 0 && n > 0 ? [o + 1, n - i] : [o, n];
163
+ return o < 0 && n > 0 ? [o + 1, n - a] : [o, n];
151
164
  }
152
- function createTimeDurationFromSeconds(e) {
153
- return normalize(divTrunc(e, n), e % n * 1e9);
165
+ function createTimeDurationFromUnit(e, t) {
166
+ const o = a / t;
167
+ return normalize(Math.round((e - e % o) / o), e % o * t);
154
168
  }
155
169
  function addTimeDuration(e, t) {
156
170
  return normalize(e[0] + t[0], e[1] + t[1]);
157
171
  }
158
172
  function absTimeDuration(e) {
159
- return normalize(Math.abs(e[0]), Math.abs(e[1]));
173
+ return e.map(Math.abs);
160
174
  }
161
175
  function negateTimeDuration(e) {
162
176
  return normalize(-e[0], -e[1]);
163
177
  }
164
178
  function signTimeDuration(e) {
165
- return we(e, [0, 0]);
179
+ return Ee(e, ve);
166
180
  }
167
181
  function timeDurationToSubsecondsNumber(e, t, o) {
168
182
  const n = signTimeDuration(e);
169
- return e = absTimeDuration(e), n * Fe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
183
+ 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
184
  }
171
185
  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);
186
+ return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
173
187
  }
174
188
  function divideTimeDurationToFloatingPoint(e, t) {
175
- return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
189
+ return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : a / t * e[0] + e[1] / t;
176
190
  }
177
191
  function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
178
192
  if (!t) return getStartOfDay(r, e);
179
193
  const s = combineIsoDateAndTimeRecord(e, t);
180
- if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
181
- if (o === S || o === F && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
194
+ if (o === ne || o === te && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
195
+ if (o === oe || o === te && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
182
196
  ((e) => {
183
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(de);
197
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(P);
184
198
  })(e);
185
199
  const l = getPossibleEpochNanoseconds(r, s);
186
200
  for (const e of l) {
@@ -195,40 +209,40 @@ function toTemporalZonedDateTime(e, t) {
195
209
  if (isObject(e)) {
196
210
  if (isZonedDateTime(e)) {
197
211
  const o = getOptionsObject(t);
198
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, p), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
212
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, X), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
199
213
  }
200
214
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
201
215
  const l = prepareCalendarFields(i, e, [
202
- Ot.t,
203
- Ot.u,
204
- Ot.v,
205
- Ot.T,
206
- Ot.D,
207
- Ot.I,
208
- Ot.O,
209
- Ot.F,
210
- Ot.S,
211
- Ot.$,
212
- Ot.M,
213
- Ot.P
214
- ], [Ot.P]);
216
+ St.t,
217
+ St.u,
218
+ St.v,
219
+ St.T,
220
+ St.D,
221
+ St.I,
222
+ St.O,
223
+ St.F,
224
+ St.S,
225
+ St.$,
226
+ St.M,
227
+ St.P
228
+ ], [St.P]);
215
229
  o = l.timeZone, n = l.offset;
216
230
  const d = getOptionsObject(t);
217
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
231
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
218
232
  const m = interpretTemporalDateTimeFields(i, l, getTemporalOverflowOption(d));
219
233
  c = m.o, s = m.p;
220
234
  } else {
221
235
  validateString(e);
222
- const m = parseIsoDateTime(e, [Ge]);
236
+ const m = parseIsoDateTime(e, [Qe]);
223
237
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
224
238
  const u = getOptionsObject(t);
225
- r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
239
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, X), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
226
240
  }
227
- const m = l ? S : n ? F : y;
228
- return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
241
+ const m = l ? oe : n ? te : ne;
242
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === te ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
229
243
  }
230
244
  function createTemporalZonedDateTime(e, t, o, n) {
231
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
245
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
232
246
  }
233
247
  function createZonedDateTimeSlot(e, t, o, n) {
234
248
  return {
@@ -238,34 +252,34 @@ function createZonedDateTimeSlot(e, t, o, n) {
238
252
  W: n
239
253
  };
240
254
  }
241
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = _, c = M) {
255
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = D, c = ce) {
242
256
  const s = roundTemporalInstant(e.U, a, i, c), l = epochSeconds(s) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, s);
243
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
257
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, he)}${r === fe ? "" : formatDateTimeUtcOffsetRounded(l)}${n === Oe ? "" : `[${n === Fe ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
244
258
  }
245
259
  function addZonedDateTime(e, t, o) {
246
260
  if (!dateDurationSign(t.A)) return addInstant(e.U, t.p);
247
261
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
248
- return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), g), t.p);
262
+ return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), G), t.p);
249
263
  }
250
264
  function differenceZonedDateTime(e, t, o) {
251
265
  const n = compareEpochNanoseconds(e.U, t.U);
252
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
266
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), ve);
253
267
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
254
268
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
255
269
  let i, c = differenceTime(r.p, a.p);
256
- for (let o = wt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), wt(c) === n); o++);
257
- return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), c);
270
+ for (let o = Et(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, G)), Et(c) === n); o++);
271
+ return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, d)), c);
258
272
  }
259
273
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
260
274
  if (!isDateUnit(o)) return differenceInstant(e.U, t.U, n, r, a);
261
275
  const i = differenceZonedDateTime(e, t, o);
262
- return r === _ && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
276
+ return r === D && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
263
277
  }
264
278
  function differenceTemporalZonedDateTime(e, t, o, n) {
265
279
  const r = toTemporalZonedDateTime(o);
266
- calendarEquals(t.Y, r.Y) || throwRangeError(Te);
267
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, q);
268
- return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
280
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
281
+ const a = getDifferenceSettings(e, getOptionsObject(n), x, [], D, m);
282
+ return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), m), e)) : createTemporalDuration(createTemporalDurationSlot([
269
283
  0,
270
284
  0,
271
285
  0,
@@ -287,18 +301,17 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
287
301
  function getIsoDateTimeForZonedDateTimeSlot(e) {
288
302
  return getIsoDateTimeFromOffsetNanoseconds(e.U, getOffsetNanosecondsForZonedDateTimeSlot(e));
289
303
  }
290
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
291
- return ve.set(t, e), t;
304
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(be.prototype)) {
305
+ return Me.set(t, e), t;
292
306
  }
293
307
  function calendarIsoToDateForZonedDateTimeSlot(e) {
294
308
  return calendarIsoToDate(e.Y, getIsoDateTimeForZonedDateTimeSlot(e).o);
295
309
  }
296
310
  function getInternalSlotForZonedDateTime(e) {
297
- return ve.get(e);
311
+ return Me.get(e);
298
312
  }
299
313
  function getInternalSlotOrThrowForZonedDateTime(e) {
300
- const t = getInternalSlotForZonedDateTime(e);
301
- return t || throwTypeError(De), t;
314
+ return getInternalSlotOrThrow(Me, e);
302
315
  }
303
316
  function isZonedDateTime(e) {
304
317
  return !!getInternalSlotForZonedDateTime(e);
@@ -307,13 +320,12 @@ function createLruCache(e) {
307
320
  const t = /* @__PURE__ */ new Map();
308
321
  return {
309
322
  C(e) {
310
- if (t.has(e)) {
311
- const o = t.get(e);
312
- return t.delete(e), t.set(e, o), o;
313
- }
323
+ const o = t.get(e);
324
+ if (void 0 !== o) return t.delete(e), t.set(e, o), o;
314
325
  },
315
- B(o, n) {
316
- t.size >= e && t.delete(t.keys().next().value), t.set(o, n);
326
+ B: (o, n) => (t.size >= e && t.delete(t.keys().next().value), t.set(o, n), n),
327
+ J(e, t) {
328
+ return this.C(e) ?? this.B(e, t());
317
329
  }
318
330
  };
319
331
  }
@@ -325,7 +337,7 @@ function clampEpochSecond(e) {
325
337
  }
326
338
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
327
339
  if ("UTC" === t) return 0;
328
- const r = clampEpochSecond(o), a = be[t] ||= createLruCache(5e3), i = a.C(r);
340
+ const r = clampEpochSecond(o), a = Re[t] ||= createLruCache(5e3), i = a.C(r);
329
341
  if (void 0 !== i) return i;
330
342
  const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
331
343
  "year",
@@ -338,7 +350,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
338
350
  return n || a.B(r, s), s;
339
351
  }
340
352
  function getFormatterForTimeZone(e) {
341
- return Me[e] ||= new bt("en-u-hc-h23", {
353
+ return Pe[e] ||= new Rt("en-u-hc-h23", {
342
354
  timeZone: e,
343
355
  year: "numeric",
344
356
  month: "numeric",
@@ -378,10 +390,10 @@ function formatOffsetTimeZoneIdentifier(e) {
378
390
  }
379
391
  function formatUtcOffsetNanoseconds(e) {
380
392
  const n = Math.abs(e);
381
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : D)}`;
393
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : J)}`;
382
394
  }
383
395
  function formatDateTimeUtcOffsetRounded(e) {
384
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, R) / t);
396
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, de) / t);
385
397
  }
386
398
  function toTemporalTimeZoneIdentifier(e) {
387
399
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).P;
@@ -389,16 +401,16 @@ function toTemporalTimeZoneIdentifier(e) {
389
401
  const t = ((e) => {
390
402
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
391
403
  const t = parseIsoDateTime(e, [
392
- Ge,
393
- Xe,
394
404
  Qe,
395
405
  et,
396
406
  tt,
397
- ot
407
+ ot,
408
+ nt,
409
+ rt
398
410
  ]).P, o = t.R || t.Z && "UTC" || t.N;
399
411
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
400
412
  })(e);
401
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t._);
413
+ return t._ ? getAvailableNamedTimeZoneIdentifier(t._) : formatOffsetTimeZoneIdentifier(t.G);
402
414
  }
403
415
  function getOffsetNanosecondsFor(e, t) {
404
416
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -407,7 +419,7 @@ function getEpochNanosecondsFor(e, t, o) {
407
419
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
408
420
  }
409
421
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
410
- 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)]);
422
+ return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === K)]);
411
423
  }
412
424
  function getPossibleEpochNanoseconds(e, t) {
413
425
  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.$ - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
@@ -420,7 +432,7 @@ function timeZoneEquals(e, t) {
420
432
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
421
433
  }
422
434
  function parseTimeZoneIdentifier(e) {
423
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { _: parseDateTimeUtcOffset(e) / t } : { J: e });
435
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
424
436
  }
425
437
  function isOffsetTimeZoneIdentifier(e) {
426
438
  return /^[+-]/.test(e);
@@ -444,14 +456,14 @@ function combineIsoDateAndTimeRecord(e, t) {
444
456
  };
445
457
  }
446
458
  function interpretTemporalDateTimeFields(e, t, o) {
447
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ot.D], t[Ot.I], t[Ot.O], t[Ot.F], t[Ot.S], t[Ot.$], o));
459
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[St.D], t[St.I], t[St.O], t[St.F], t[St.S], t[St.$], o));
448
460
  }
449
461
  function toTemporalDateTime(e, t) {
450
462
  if (isObject(e)) {
451
463
  if (isPlainDateTime(e)) {
452
464
  getTemporalOverflowOption(getOptionsObject(t));
453
465
  const o = getInternalSlotOrThrowForPlainDateTime(e);
454
- return createTemporalDateTime(o.G, o.Y);
466
+ return createTemporalDateTime(o.K, o.Y);
455
467
  }
456
468
  if (isZonedDateTime(e)) {
457
469
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -464,29 +476,29 @@ function toTemporalDateTime(e, t) {
464
476
  }
465
477
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
466
478
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
467
- Ot.t,
468
- Ot.u,
469
- Ot.v,
470
- Ot.T,
471
- Ot.D,
472
- Ot.I,
473
- Ot.O,
474
- Ot.F,
475
- Ot.S,
476
- Ot.$
479
+ St.t,
480
+ St.u,
481
+ St.v,
482
+ St.T,
483
+ St.D,
484
+ St.I,
485
+ St.O,
486
+ St.F,
487
+ St.S,
488
+ St.$
477
489
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
478
490
  }
479
491
  validateString(e);
480
- const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
492
+ const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
481
493
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
482
494
  }
483
495
  function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
484
496
  const l = balanceTime(n, r, a, i, c, s);
485
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.K), l);
497
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.X), l);
486
498
  }
487
- function createTemporalDateTime(e, t, o = Object.create(Re.prototype)) {
488
- return Pe.set(o, {
489
- G: validateIsoDateTime(e),
499
+ function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
500
+ return Ne.set(o, {
501
+ K: validateIsoDateTime(e),
490
502
  Y: t
491
503
  }), o;
492
504
  }
@@ -498,27 +510,27 @@ function compareIsoDateTime(e, t) {
498
510
  }
499
511
  function roundIsoDateTime(e, t, o, n) {
500
512
  const r = roundTime(e.p, t, o, n);
501
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.K), r);
513
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.X), r);
502
514
  }
503
515
  function differenceISODateTime(e, t, o, n) {
504
516
  let r = differenceTime(e.p, t.p);
505
- const a = wt(r);
517
+ const a = Et(r);
506
518
  let i = t.o;
507
519
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
508
- const c = largerOfTwoTemporalUnits(H, n), s = calendarDateUntil(o, e.o, i, c);
509
- return n !== c && (r = add24HourDaysToTimeDuration(r, s.K), s.K = 0), combineDateAndTimeDuration(s, r);
520
+ const c = largerOfTwoTemporalUnits(d, n), s = calendarDateUntil(o, e.o, i, c);
521
+ return n !== c && (r = add24HourDaysToTimeDuration(r, s.X), s.X = 0), combineDateAndTimeDuration(s, r);
510
522
  }
511
523
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
512
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
524
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), ve);
513
525
  validateIsoDateTime(e), validateIsoDateTime(t);
514
526
  const c = differenceISODateTime(e, t, o, n);
515
- return a === _ && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
527
+ return a === D && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
516
528
  }
517
529
  function differenceTemporalPlainDateTime(e, t, o, n) {
518
530
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
519
- calendarEquals(t.Y, r.Y) || throwRangeError(Te);
520
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, H);
521
- return compareIsoDateTime(t.G, r.G) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.G, r.G, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
531
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
532
+ const a = getDifferenceSettings(e, getOptionsObject(n), x, [], D, d);
533
+ return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
522
534
  0,
523
535
  0,
524
536
  0,
@@ -532,25 +544,28 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
532
544
  ]));
533
545
  }
534
546
  function addDurationToDateTime(e, t, o, n) {
535
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t.G.p, i.p);
536
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t.G.o, adjustDateDurationRecord(i.A, c.K), a), c), t.Y);
547
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t.K.p, i.p);
548
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t.K.o, adjustDateDurationRecord(i.A, c.X), a), c), t.Y);
537
549
  }
538
550
  function validateIsoDateTime(e) {
539
551
  return ((e) => {
540
552
  const t = isoDateRecordToEpochDays(e.o);
541
553
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
542
- })(e) || throwRangeError(de), e;
554
+ })(e) || throwRangeError(P), e;
543
555
  }
544
556
  function getInternalSlotForPlainDateTime(e) {
545
- return Pe.get(e);
557
+ return Ne.get(e);
546
558
  }
547
559
  function getInternalSlotOrThrowForPlainDateTime(e) {
548
- const t = getInternalSlotForPlainDateTime(e);
549
- return t || throwTypeError(De), t;
560
+ return getInternalSlotOrThrow(Ne, e);
550
561
  }
551
562
  function isPlainDateTime(e) {
552
563
  return !!getInternalSlotForPlainDateTime(e);
553
564
  }
565
+ function calendarDateForPlainDateTime(e) {
566
+ const t = getInternalSlotOrThrowForPlainDateTime(e);
567
+ return calendarIsoToDate(t.Y, t.K.o);
568
+ }
554
569
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
555
570
  return {
556
571
  D: e,
@@ -559,7 +574,7 @@ function createTimeRecord(e, t, o, n, r, a, i = 0) {
559
574
  F: n,
560
575
  S: r,
561
576
  $: a,
562
- K: i
577
+ X: i
563
578
  };
564
579
  }
565
580
  function midnightTimeRecord() {
@@ -569,16 +584,16 @@ function differenceTime(e, t) {
569
584
  return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.$ - e.$);
570
585
  }
571
586
  function toTemporalTime(e, t) {
572
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).G.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
587
+ 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)));
573
588
  validateString(e);
574
- const o = parseIsoDateTime(e, [et]);
589
+ const o = parseIsoDateTime(e, [ot]);
575
590
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
576
591
  }
577
592
  function toTimeRecordOrMidnight(e) {
578
593
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
579
594
  }
580
595
  function regulateTime(e, t, o, n, r, a, i) {
581
- return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(le), createTimeRecord(e, t, o, n, r, a));
596
+ 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(b), createTimeRecord(e, t, o, n, r, a));
582
597
  }
583
598
  function isValidTime(e, t, o, n, r, a) {
584
599
  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);
@@ -591,26 +606,26 @@ function balanceTime(e, t, o, n, r, a) {
591
606
  F: modFloor(n, 1e3),
592
607
  S: modFloor(r, 1e3),
593
608
  $: modFloor(a, 1e3),
594
- K: divFloor(e, 24)
609
+ X: divFloor(e, 24)
595
610
  };
596
611
  }
597
- function createTemporalTime(e, t = Object.create(Ze.prototype)) {
598
- return Ne.set(t, e), t;
612
+ function createTemporalTime(e, t = Object.create(Ce.prototype)) {
613
+ return $e.set(t, e), t;
599
614
  }
600
615
  function toTemporalTimeRecord(e, t = !1) {
601
616
  let o = !1;
602
617
  const n = [
603
- Ot.D,
604
- Ot.S,
605
- Ot.F,
606
- Ot.I,
607
- Ot.$,
608
- Ot.O
618
+ St.D,
619
+ St.S,
620
+ St.F,
621
+ St.I,
622
+ St.$,
623
+ St.O
609
624
  ].map((n) => {
610
625
  const r = e[n];
611
626
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
612
627
  });
613
- return o || throwTypeError(fe), [
628
+ return o || throwTypeError(U), [
614
629
  0,
615
630
  3,
616
631
  5,
@@ -627,25 +642,24 @@ function compareTimeRecord(e, t) {
627
642
  }
628
643
  function addTime(e, t) {
629
644
  const o = t, n = balanceTime(e.D, e.I, e.O, e.F, e.S, e.$ + o[1]);
630
- return n.K += o[0], n;
645
+ return n.X += o[0], n;
631
646
  }
632
647
  function roundTime(e, n, r, a) {
633
648
  const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), c = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.$;
634
649
  return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
635
650
  }
636
651
  function differenceTemporalPlainTime(e, t, o, n) {
637
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, q);
652
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), V, [], D, m);
638
653
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.V, a.H, a.q)), a.L), e));
639
654
  }
640
655
  function addDurationToTime(e, t, o) {
641
656
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
642
657
  }
643
658
  function getInternalSlotOrThrowForPlainTime(e) {
644
- const t = Ne.get(e);
645
- return t || throwTypeError(De), t;
659
+ return getInternalSlotOrThrow($e, e);
646
660
  }
647
661
  function isPlainTime(e) {
648
- return Ne.has(e);
662
+ return $e.has(e);
649
663
  }
650
664
  function optionalChain(e) {
651
665
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -657,21 +671,18 @@ function createRegExp(e) {
657
671
  return RegExp(`^(?:${e})$`);
658
672
  }
659
673
  function isAmbiguousTemporalTimeString(e) {
660
- return nt.some((t) => {
661
- const o = e.match(t);
662
- return o && isSemanticallyValid(o.groups);
663
- });
674
+ return at.some((t) => isSemanticallyValid(e.match(t)?.groups));
664
675
  }
665
676
  function isTimeZoneIdentifier(e) {
666
- return rt.test(e);
677
+ return it.test(e);
667
678
  }
668
679
  function isSemanticallyValid(e) {
669
- return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Fe(e.a), Fe(e.b), Fe(e.c))) && (!e.n || isValidIsoDate(1972, Fe(e.m), Fe(e.n)));
680
+ return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
670
681
  }
671
682
  function parseIsoDateTime(e, t) {
672
683
  for (const o of t) {
673
684
  const t = e.match(o);
674
- if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
685
+ if (!t || !isSemanticallyValid(t.groups) || o === ot && isAmbiguousTemporalTimeString(e)) continue;
675
686
  const n = t.groups;
676
687
  let r;
677
688
  if (n.k) {
@@ -681,10 +692,10 @@ function parseIsoDateTime(e, t) {
681
692
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
682
693
  const a = (n.g || "").padEnd(9, "0");
683
694
  return {
684
- t: mapUnlessUndefined(n.a || n.l, Fe),
685
- u: Fe(n.b || n.m || 1),
686
- T: Fe(n.c || n.n || 1),
687
- p: n.d ? createTimeRecord(Fe(n.d || 0), Fe(n.e || 0), clamp(Fe(n.f || 0), 0, 59), Fe(a.slice(0, 3)), Fe(a.slice(3, 6)), Fe(a.slice(6))) : void 0,
695
+ t: mapUnlessUndefined(n.a || n.l, Se),
696
+ u: Se(n.b || n.m || 1),
697
+ T: Se(n.c || n.n || 1),
698
+ 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,
688
699
  P: {
689
700
  Z: !!n.i,
690
701
  N: n.h,
@@ -696,11 +707,11 @@ function parseIsoDateTime(e, t) {
696
707
  throwRangeError(parseError(e));
697
708
  }
698
709
  function parseDateTimeUtcOffset(e) {
699
- const o = e.match(it);
700
- return o || throwRangeError(parseError(e)), Fe(`${o[1]}1`) * (36e11 * Fe(o[2]) + Fe(o[4] || "") * t + 1e9 * Fe(o[5] || "") + Fe((o[6] || "").padEnd(9, "0")) + 0);
710
+ const o = e.match(st);
711
+ 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);
701
712
  }
702
713
  function hasUtcOffsetSubMinuteParts(e) {
703
- return !!e.match(it)[5];
714
+ return !!e.match(st)[5];
704
715
  }
705
716
  function toTemporalMonthDay(e, t) {
706
717
  if (isObject(e)) {
@@ -708,31 +719,30 @@ function toTemporalMonthDay(e, t) {
708
719
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
709
720
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
710
721
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
711
- Ot.t,
712
- Ot.u,
713
- Ot.v,
714
- Ot.T
722
+ St.t,
723
+ St.u,
724
+ St.v,
725
+ St.T
715
726
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
716
727
  }
717
728
  validateString(e);
718
- const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
719
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), u), h), n);
729
+ const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
730
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), q), _), n);
720
731
  }
721
- function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
722
- return ct.set(o, {
732
+ function createTemporalMonthDay(e, t, o = Object.create(dt.prototype)) {
733
+ return lt.set(o, {
723
734
  o: validateIsoDate(e),
724
735
  Y: t
725
736
  }), o;
726
737
  }
727
738
  function temporalMonthDayToString(e, t) {
728
- return `${t === C || t === U || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
739
+ return `${t === De || t === pe || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
729
740
  }
730
741
  function getInternalSlotForPlainMonthDay(e) {
731
- return ct.get(e);
742
+ return lt.get(e);
732
743
  }
733
744
  function getInternalSlotOrThrowForPlainMonthDay(e) {
734
- const t = getInternalSlotForPlainMonthDay(e);
735
- return t || throwTypeError(De), t;
745
+ return getInternalSlotOrThrow(lt, e);
736
746
  }
737
747
  function isPlainMonthDay(e) {
738
748
  return !!getInternalSlotForPlainMonthDay(e);
@@ -743,14 +753,14 @@ function toTemporalYearMonth(e, t) {
743
753
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
744
754
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
745
755
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
746
- Ot.t,
747
- Ot.u,
748
- Ot.v
756
+ St.t,
757
+ St.u,
758
+ St.v
749
759
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
750
760
  }
751
761
  validateString(e);
752
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
753
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), h), n);
762
+ const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.Y || "iso8601");
763
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), H), _), n);
754
764
  }
755
765
  function balanceIsoYearMonth(e, t) {
756
766
  return {
@@ -758,19 +768,19 @@ function balanceIsoYearMonth(e, t) {
758
768
  u: modFloor(t - 1, 12) + 1
759
769
  };
760
770
  }
761
- function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
762
- return lt.set(o, {
771
+ function createTemporalYearMonth(e, t, o = Object.create(ut.prototype)) {
772
+ return mt.set(o, {
763
773
  o: validateIsoYearMonth(e),
764
774
  Y: t
765
775
  }), o;
766
776
  }
767
777
  function temporalYearMonthToString(e, t) {
768
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === C || t === U || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
778
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === De || t === pe || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
769
779
  }
770
780
  function differenceTemporalPlainYearMonth(e, t, o, n) {
771
781
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
772
- calendarEquals(t.Y, r.Y) || throwRangeError(Te);
773
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [x, H], V, z);
782
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
783
+ const a = getDifferenceSettings(e, getOptionsObject(n), z, [l, d], s, c);
774
784
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
775
785
  0,
776
786
  0,
@@ -784,39 +794,42 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
784
794
  0
785
795
  ]));
786
796
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
787
- ...isoDateToFields(t.Y, t.o, m),
788
- [Ot.T]: 1
789
- }), h), c = calendarDateFromFields(t.Y, createNullPrototypeObject({
790
- ...isoDateToFields(t.Y, r.o, m),
791
- [Ot.T]: 1
792
- }), h);
793
- let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, c, a.L), 0, 0), createTimeDurationFromSeconds(0));
794
- if (a.H !== V || 1 !== a.V) {
797
+ ...isoDateToFields(t.Y, t.o, H),
798
+ [St.T]: 1
799
+ }), _), m = calendarDateFromFields(t.Y, createNullPrototypeObject({
800
+ ...isoDateToFields(t.Y, r.o, H),
801
+ [St.T]: 1
802
+ }), _);
803
+ let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, m, a.L), 0, 0), ve);
804
+ if (a.H !== s || 1 !== a.V) {
795
805
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
796
- l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
806
+ u = roundRelativeDuration(u, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(m, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
797
807
  }
798
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, H), e));
808
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(u, d), e));
799
809
  }
800
810
  function addDurationToYearMonth(e, t, o, n) {
801
811
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
802
- return (r.A.X || r.A.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
803
- ...isoDateToFields(t.Y, t.o, m),
804
- [Ot.T]: 1
805
- }), h), r.A, a), m), a), t.Y);
812
+ return (r.A.ee || r.A.X || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
813
+ ...isoDateToFields(t.Y, t.o, H),
814
+ [St.T]: 1
815
+ }), _), r.A, a), H), a), t.Y);
806
816
  }
807
817
  function validateIsoYearMonth(e) {
808
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(de), e;
818
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(P), e;
809
819
  }
810
820
  function getInternalSlotForPlainYearMonth(e) {
811
- return lt.get(e);
821
+ return mt.get(e);
812
822
  }
813
823
  function getInternalSlotOrThrowForPlainYearMonth(e) {
814
- const t = getInternalSlotForPlainYearMonth(e);
815
- return t || throwTypeError(De), t;
824
+ return getInternalSlotOrThrow(mt, e);
816
825
  }
817
826
  function isPlainYearMonth(e) {
818
827
  return !!getInternalSlotForPlainYearMonth(e);
819
828
  }
829
+ function calendarDateForPlainYearMonth(e) {
830
+ const t = getInternalSlotOrThrowForPlainYearMonth(e);
831
+ return calendarIsoToDate(t.Y, t.o);
832
+ }
820
833
  function createIsoDateRecord(e, t, o) {
821
834
  return {
822
835
  t: e,
@@ -824,8 +837,8 @@ function createIsoDateRecord(e, t, o) {
824
837
  T: o
825
838
  };
826
839
  }
827
- function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
828
- return mt.set(o, {
840
+ function createTemporalDate(e, t, o = Object.create(Dt.prototype)) {
841
+ return Tt.set(o, {
829
842
  o: validateIsoDate(e),
830
843
  Y: t
831
844
  }), o;
@@ -845,22 +858,22 @@ function toTemporalDate(e, t) {
845
858
  if (isPlainDateTime(e)) {
846
859
  getTemporalOverflowOption(getOptionsObject(t));
847
860
  const o = getInternalSlotOrThrowForPlainDateTime(e);
848
- return createTemporalDate(o.G.o, o.Y);
861
+ return createTemporalDate(o.K.o, o.Y);
849
862
  }
850
863
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
851
864
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
852
- Ot.t,
853
- Ot.u,
854
- Ot.v,
855
- Ot.T
865
+ St.t,
866
+ St.u,
867
+ St.v,
868
+ St.T
856
869
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
857
870
  }
858
871
  validateString(e);
859
- const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
872
+ const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
860
873
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
861
874
  }
862
875
  function regulateIsoDate(e, t, o, n) {
863
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(le), createIsoDateRecord(e, t, o));
876
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(b), createIsoDateRecord(e, t, o));
864
877
  }
865
878
  function isValidIsoDate(e, t, o) {
866
879
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -879,8 +892,8 @@ function compareIsoDate(e, t) {
879
892
  }
880
893
  function differenceTemporalPlainDate(e, t, o, n) {
881
894
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
882
- calendarEquals(t.Y, r.Y) || throwRangeError(Te);
883
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [], H, H);
895
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
896
+ const a = getDifferenceSettings(e, getOptionsObject(n), z, [], d, d);
884
897
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
885
898
  0,
886
899
  0,
@@ -893,25 +906,24 @@ function differenceTemporalPlainDate(e, t, o, n) {
893
906
  0,
894
907
  0
895
908
  ]));
896
- let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), createTimeDurationFromSeconds(0));
897
- if (a.H !== H || 1 !== a.V) {
909
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), ve);
910
+ if (a.H !== d || 1 !== a.V) {
898
911
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
899
912
  i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
900
913
  }
901
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, H), e));
914
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, d), e));
902
915
  }
903
916
  function addDurationToDate(e, t, o, n) {
904
917
  return createTemporalDate(calendarDateAdd(t.Y, t.o, ((e) => {
905
918
  const t = toInternalDurationRecordWith24HourDays(e);
906
- return createDateDurationRecord(t.A.ee, t.A.te, t.A.X, t.p[0]);
919
+ return createDateDurationRecord(t.A.te, t.A.oe, t.A.ee, t.p[0]);
907
920
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
908
921
  }
909
922
  function getInternalSlotForPlainDate(e) {
910
- return mt.get(e);
923
+ return Tt.get(e);
911
924
  }
912
925
  function getInternalSlotOrThrowForPlainDate(e) {
913
- const t = getInternalSlotForPlainDate(e);
914
- return t || throwTypeError(De), t;
926
+ return getInternalSlotOrThrow(Tt, e);
915
927
  }
916
928
  function isPlainDate(e) {
917
929
  return !!getInternalSlotForPlainDate(e);
@@ -919,8 +931,12 @@ function isPlainDate(e) {
919
931
  function validateIsoDate(e) {
920
932
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
921
933
  }
934
+ function calendarDateForPlainDate(e) {
935
+ const t = getInternalSlotOrThrowForPlainDate(e);
936
+ return calendarIsoToDate(t.Y, t.o);
937
+ }
922
938
  function formatToParts(e, t) {
923
- return (Tt[e] ||= new bt("en", {
939
+ return (ht[e] ||= new Rt("en", {
924
940
  year: "numeric",
925
941
  month: "numeric",
926
942
  day: "numeric",
@@ -941,9 +957,7 @@ function extractYearMonthDay(e, t) {
941
957
  };
942
958
  }
943
959
  function yearMonthDay(e, t) {
944
- const o = ht[e].C(t);
945
- if (o) return o;
946
- const n = ((e, t) => {
960
+ return gt[e].J(t, () => ((e, t) => {
947
961
  const o = formatToParts(e, t), n = [
948
962
  "relatedYear",
949
963
  "month",
@@ -954,18 +968,17 @@ function yearMonthDay(e, t) {
954
968
  v: createMonthCode(parseInt(n[1]), /bis/.test(n[1])),
955
969
  T: toIntegerIfIntegral(n[2])
956
970
  };
957
- })(e, t);
958
- return ht[e].B(t, n), n;
971
+ })(e, t));
959
972
  }
960
973
  function getNewYear(e, t) {
961
- let o = Dt[e].C(t);
962
- if (o) return o;
963
- let n = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), r = yearMonthDay(e, n);
964
- for (let o = 0; "M01" !== r.v; o++) {
965
- if (o > 20) throw new Error("unexpected calendar error");
966
- n += r.t < t ? 31 - r.T : -r.T, r = yearMonthDay(e, n);
967
- }
968
- return Dt[e].B(t, n - r.T + 1), n - r.T + 1;
974
+ return pt[e].J(t, () => {
975
+ let o = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), n = yearMonthDay(e, o);
976
+ for (let r = 0; "M01" !== n.v; r++) {
977
+ if (r > 20) throw new Error("unexpected calendar error");
978
+ o += n.t < t ? 31 - n.T : -n.T, n = yearMonthDay(e, o);
979
+ }
980
+ return o - n.T + 1;
981
+ });
969
982
  }
970
983
  function ordinalMonthToMonthCode(e, t, o) {
971
984
  return yearMonthDay(e, getNewYear(e, t) + 30 * (o - 1)).v;
@@ -982,8 +995,8 @@ function monthsInYear(e, t) {
982
995
  }
983
996
  function epochDaysToDate$6(e, t) {
984
997
  return {
985
- oe: void 0,
986
998
  ne: void 0,
999
+ re: void 0,
987
1000
  get t() {
988
1001
  return yearMonthDay(e, t).t;
989
1002
  },
@@ -997,28 +1010,28 @@ function epochDaysToDate$6(e, t) {
997
1010
  get T() {
998
1011
  return yearMonthDay(e, t).T;
999
1012
  },
1000
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1001
- get ae() {
1013
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1014
+ get ie() {
1002
1015
  const o = yearMonthDay(e, t).t;
1003
1016
  return t - getNewYear(e, o) + 1;
1004
1017
  },
1005
- ie: {
1006
- ce: void 0,
1018
+ ce: {
1019
+ se: void 0,
1007
1020
  t: void 0
1008
1021
  },
1009
- se: 7,
1010
- get le() {
1022
+ le: 7,
1023
+ get de() {
1011
1024
  const o = yearMonthDay(e, t);
1012
1025
  return daysInMonth$6(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1013
1026
  },
1014
- get de() {
1027
+ get me() {
1015
1028
  const o = yearMonthDay(e, t).t;
1016
1029
  return getNewYear(e, o + 1) - getNewYear(e, o);
1017
1030
  },
1018
- get me() {
1031
+ get ue() {
1019
1032
  return monthsInYear(e, yearMonthDay(e, t).t);
1020
1033
  },
1021
- get ue() {
1034
+ get Te() {
1022
1035
  return monthsInYear(e, yearMonthDay(e, t).t) > 12;
1023
1036
  }
1024
1037
  };
@@ -1082,30 +1095,27 @@ function epochDaysToDate$2(e, t) {
1082
1095
  let n = 12;
1083
1096
  for (; calendarIntegersToEpochDays$2(e, o, n, 1) > t; n--);
1084
1097
  return {
1085
- oe: o > 0 ? "ah" : "bh",
1086
- ne: o > 0 ? o : 1 - o,
1098
+ ne: o > 0 ? "ah" : "bh",
1099
+ re: o > 0 ? o : 1 - o,
1087
1100
  t: o,
1088
1101
  u: n,
1089
1102
  v: createMonthCode(n),
1090
1103
  T: t - calendarIntegersToEpochDays$2(e, o, n, 1) + 1,
1091
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1092
- ae: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1093
- ie: {
1094
- ce: void 0,
1104
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1105
+ ie: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1106
+ ce: {
1107
+ se: void 0,
1095
1108
  t: void 0
1096
1109
  },
1097
- se: 7,
1098
- le: daysInMonth$2(o, n),
1099
- de: +isLeapYear$1(o) + 354,
1100
- me: 12,
1101
- ue: isLeapYear$1(o)
1110
+ le: 7,
1111
+ de: daysInMonth$2(o, n),
1112
+ me: +isLeapYear$1(o) + 354,
1113
+ ue: 12,
1114
+ Te: isLeapYear$1(o)
1102
1115
  };
1103
1116
  }
1104
1117
  function getYearMonthDay(e) {
1105
- const t = pt.C(e);
1106
- if (t) return t;
1107
- const o = extractYearMonthDay("islamic-umalqura", e);
1108
- return pt.B(e, o), o;
1118
+ return ft.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1109
1119
  }
1110
1120
  function getFirstDayOfMonth(e, t) {
1111
1121
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1118,10 +1128,10 @@ function constrainDay$2(e, t, o) {
1118
1128
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1119
1129
  }
1120
1130
  function startOfYear(e) {
1121
- const t = gt.C(e);
1122
- if (t) return t;
1123
- const o = isoDateToEpochDays(e + 621, 4, 1), n = extractYearMonthDay("persian", o), r = o - dayOfYearFromMonthDay(n.u, n.T) + 1;
1124
- return gt.B(e, r), r;
1131
+ return It.J(e, () => {
1132
+ const t = isoDateToEpochDays(e + 621, 4, 1), o = extractYearMonthDay("persian", t);
1133
+ return t - dayOfYearFromMonthDay(o.u, o.T) + 1;
1134
+ });
1125
1135
  }
1126
1136
  function dayOfYearFromMonthDay(e, t) {
1127
1137
  return 30 * (e - 1) + t + clamp(e - 1, 0, 6);
@@ -1144,50 +1154,50 @@ function getDate(e) {
1144
1154
  t: o,
1145
1155
  u: r[0],
1146
1156
  T: r[1],
1147
- ae: e - n + 1
1157
+ ie: e - n + 1
1148
1158
  };
1149
1159
  }
1150
1160
  function daysInMonth(e, t) {
1151
1161
  return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1152
1162
  }
1153
1163
  function canonicalizeCalendar(e) {
1154
- return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : It[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1164
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ft[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1155
1165
  }
1156
1166
  function calendarDateAdd(e, t, o, n) {
1157
- if (isIsoLikeCalendar(e) || !o.ee && !o.te) return ((e, t, o) => {
1158
- const n = balanceIsoYearMonth(e.t + t.ee, e.u + t.te);
1159
- return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.X + t.K));
1167
+ if (isIsoLikeCalendar(e) || !o.te && !o.oe) return ((e, t, o) => {
1168
+ const n = balanceIsoYearMonth(e.t + t.te, e.u + t.oe);
1169
+ return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.ee + t.X));
1160
1170
  })(t, o, n);
1161
- const r = nonIsoCalendarIsoToDate(e, t), a = r.t + o.ee, i = balanceNonIsoYearMonth(e, a, monthCodeToOrdinal(e, a, constrainMonthCode(e, a, parseMonthCode(r.v), n)) + o.te);
1162
- return validateIsoDate(addDaysToIsoDate(calendarIntegersToIso(e, i.t, i.u, constrainDay(e, i.t, i.u, r.T, n)), 7 * o.X + o.K));
1171
+ const r = nonIsoCalendarIsoToDate(e, t), a = r.t + o.te, i = balanceNonIsoYearMonth(e, a, monthCodeToOrdinal(e, a, constrainMonthCode(e, a, parseMonthCode(r.v), n)) + o.oe);
1172
+ return validateIsoDate(addDaysToIsoDate(calendarIntegersToIso(e, i.t, i.u, constrainDay(e, i.t, i.u, r.T, n)), 7 * o.ee + o.X));
1163
1173
  }
1164
1174
  function compareSurpasses(e, t, o, n, r) {
1165
1175
  return t !== r.t ? e * (t - r.t) > 0 : o !== r.u && o !== r.v ? e * ("string" == typeof o ? o > r.v ? 1 : o < r.v ? -1 : 0 : o - r.u) > 0 : e * (n - r.T) > 0;
1166
1176
  }
1167
1177
  function nonIsoDateSurpasses(e, t, o, n, r, a) {
1168
- if (compareSurpasses(t, o.t + r, o.v, o.T, n)) return { Te: !0 };
1169
- const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), h)) + a);
1170
- return compareSurpasses(t, i.t, i.u, o.T, n) ? { Te: !0 } : {
1171
- Te: !1,
1178
+ if (compareSurpasses(t, o.t + r, o.v, o.T, n)) return { De: !0 };
1179
+ const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), _)) + a);
1180
+ return compareSurpasses(t, i.t, i.u, o.T, n) ? { De: !0 } : {
1181
+ De: !1,
1172
1182
  ...i
1173
1183
  };
1174
1184
  }
1175
1185
  function calendarDateUntil(e, t, o, n) {
1176
1186
  const r = compareIsoDate(o, t);
1177
- if (isIsoLikeCalendar(e) || n === x || n === H || !r) return ((e, t, o) => {
1187
+ if (isIsoLikeCalendar(e) || n === l || n === d || !r) return ((e, t, o) => {
1178
1188
  const n = compareIsoDate(t, e);
1179
1189
  if (!n) return zeroDateDuration();
1180
- if (o === x || o === H) {
1190
+ if (o === l || o === d) {
1181
1191
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
1182
- return o === x ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1192
+ return o === l ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1183
1193
  }
1184
- 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, h));
1185
- return o === z ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1194
+ 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, _));
1195
+ return o === c ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1186
1196
  })(t, o, n);
1187
1197
  const a = nonIsoCalendarIsoToDate(e, t), i = nonIsoCalendarIsoToDate(e, o);
1188
- let c, s = 0;
1189
- if (n === z) for (s = i.t - a.t; (c = nonIsoDateSurpasses(e, r, a, i, s, 0)).Te; s -= r);
1190
- const l = ("hebrew" === e ? (d = (c || a).t, m = (c || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1198
+ let s, m = 0;
1199
+ if (n === c) for (m = i.t - a.t; (s = nonIsoDateSurpasses(e, r, a, i, m, 0)).De; m -= r);
1200
+ const u = ("hebrew" === e ? (T = (s || a).t, D = (s || a).u, monthNumber(i.t, i.u) - monthNumber(T, D)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1191
1201
  if (t === n) return r - o;
1192
1202
  const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), c = sign(i - a);
1193
1203
  if (Math.abs(i - a) <= 15e6) return Math.round((i - a) / 29.5306);
@@ -1197,14 +1207,14 @@ function calendarDateUntil(e, t, o, n) {
1197
1207
  t -= yearMonthDay(e, t).T - 1, s += Math.round((t - l) / 29.5306), l = t;
1198
1208
  }
1199
1209
  return s;
1200
- })(e, (c || a).t, (c || a).u, i.t, i.u) : (i.t - (c || a).t) * a.me + i.u - (c || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1201
- var d, m;
1202
- const u = nonIsoDateSurpasses(e, r, a, i, s, l);
1203
- return createDateDurationRecord(s, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1210
+ })(e, (s || a).t, (s || a).u, i.t, i.u) : (i.t - (s || a).t) * a.ue + i.u - (s || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1211
+ var T, D;
1212
+ const h = nonIsoDateSurpasses(e, r, a, i, m, u);
1213
+ return createDateDurationRecord(m, u, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, h.t, h.u, constrainDay(e, h.t, h.u, a.T, _))));
1204
1214
  }
1205
1215
  function calendarDateToIso(e, t, o) {
1206
- const n = t[Ot.t], r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1207
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ot.t], e[Ot.u], e[Ot.T], t))({
1216
+ const n = t[St.t], r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1217
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[St.t], e[St.u], e[St.T], t))({
1208
1218
  ...t,
1209
1219
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1210
1220
  }, o);
@@ -1215,80 +1225,80 @@ function calendarDateToIso(e, t, o) {
1215
1225
  function nonIsoCalendarIsoToDate(e, t) {
1216
1226
  const o = isoDateRecordToEpochDays(t), n = {
1217
1227
  ...isoCalendarIsoToDate(t),
1218
- ie: {
1228
+ ce: {
1219
1229
  t: void 0,
1220
- ce: void 0
1230
+ se: void 0
1221
1231
  }
1222
1232
  };
1223
1233
  if ("japanese" === e) {
1224
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = It[e].get(r);
1234
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ft[e].get(r);
1225
1235
  return {
1226
- oe: r,
1227
- ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1236
+ ne: r,
1237
+ re: "bce" === r ? 1 - t.t : t.t - a + 1,
1228
1238
  ...n
1229
1239
  };
1230
1240
  }
1231
1241
  return "gregory" === e ? {
1232
- oe: t.t > 0 ? "ce" : "bce",
1233
- ne: t.t > 0 ? t.t : 1 - t.t,
1242
+ ne: t.t > 0 ? "ce" : "bce",
1243
+ re: t.t > 0 ? t.t : 1 - t.t,
1234
1244
  ...n
1235
1245
  } : "buddhist" === e ? {
1236
- oe: "be",
1237
- ne: t.t + 543,
1246
+ ne: "be",
1247
+ re: t.t + 543,
1238
1248
  ...n,
1239
1249
  t: t.t + 543
1240
1250
  } : "roc" === e ? {
1241
- oe: t.t >= 1912 ? "roc" : "broc",
1242
- ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1251
+ ne: t.t >= 1912 ? "roc" : "broc",
1252
+ re: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1243
1253
  ...n,
1244
1254
  t: t.t - 1911
1245
1255
  } : isCopticOrEthiopic(e) ? ((e, t) => {
1246
1256
  const o = divFloor(t - epoch$1(e) + 365, 365.25) - 1, n = t - calendarIntegersToEpochDays$5(e, o, 1, 1) + 1, r = divFloor(n - 1, 30) + 1;
1247
1257
  return {
1248
- oe: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
1249
- ne: "ethiopic" === e && o <= 0 ? o + 5500 : o,
1258
+ ne: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
1259
+ re: "ethiopic" === e && o <= 0 ? o + 5500 : o,
1250
1260
  t: o,
1251
1261
  u: r,
1252
1262
  v: createMonthCode(r),
1253
1263
  T: modFloor(n - 1, 30) + 1,
1254
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1255
- ae: n,
1256
- ie: {
1257
- ce: void 0,
1264
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1265
+ ie: n,
1266
+ ce: {
1267
+ se: void 0,
1258
1268
  t: void 0
1259
1269
  },
1260
- se: 7,
1261
- le: daysInMonth$5(o, r),
1262
- de: mathematicalInLeapYear$2(o) + 365,
1263
- me: 13,
1264
- ue: !!mathematicalInLeapYear$2(o)
1270
+ le: 7,
1271
+ de: daysInMonth$5(o, r),
1272
+ me: mathematicalInLeapYear$2(o) + 365,
1273
+ ue: 13,
1274
+ Te: !!mathematicalInLeapYear$2(o)
1265
1275
  };
1266
1276
  })(e, o) : "indian" === e ? ((e) => {
1267
1277
  const t = epochDaysToIsoDate(e), o = firstDayOfYear(t.t - 78) <= e ? t.t - 78 : t.t - 79, n = mathematicalInLeapYear$1(o);
1268
1278
  let r = 12;
1269
1279
  for (; calendarIntegersToEpochDays$3(o, r, 1) > e; r--);
1270
1280
  return {
1271
- oe: "shaka",
1272
- ne: o,
1281
+ ne: "shaka",
1282
+ re: o,
1273
1283
  t: o,
1274
1284
  u: r,
1275
1285
  v: createMonthCode(r),
1276
1286
  T: e - calendarIntegersToEpochDays$3(o, r, 1) + 1,
1277
- re: isoDayOfWeek(t),
1278
- ae: e - firstDayOfYear(o) + 1,
1279
- ie: {
1280
- ce: void 0,
1287
+ ae: isoDayOfWeek(t),
1288
+ ie: e - firstDayOfYear(o) + 1,
1289
+ ce: {
1290
+ se: void 0,
1281
1291
  t: void 0
1282
1292
  },
1283
- se: 7,
1284
- le: daysInMonth$3(o, r),
1285
- de: 365 + n,
1286
- me: 12,
1287
- ue: !!n
1293
+ le: 7,
1294
+ de: daysInMonth$3(o, r),
1295
+ me: 365 + n,
1296
+ ue: 12,
1297
+ Te: !!n
1288
1298
  };
1289
1299
  })(o) : "persian" === e ? ((e) => ({
1290
- oe: "ap",
1291
- get ne() {
1300
+ ne: "ap",
1301
+ get re() {
1292
1302
  return getDate(e).t;
1293
1303
  },
1294
1304
  get t() {
@@ -1303,31 +1313,31 @@ function nonIsoCalendarIsoToDate(e, t) {
1303
1313
  get T() {
1304
1314
  return getDate(e).T;
1305
1315
  },
1306
- re: isoDayOfWeek(epochDaysToIsoDate(e)),
1307
- get ae() {
1308
- return getDate(e).ae;
1316
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1317
+ get ie() {
1318
+ return getDate(e).ie;
1309
1319
  },
1310
- ie: {
1311
- ce: void 0,
1320
+ ce: {
1321
+ se: void 0,
1312
1322
  t: void 0
1313
1323
  },
1314
- se: 7,
1315
- get le() {
1324
+ le: 7,
1325
+ get de() {
1316
1326
  const t = getDate(e);
1317
1327
  return daysInMonth(t.t, t.u);
1318
1328
  },
1319
- get de() {
1329
+ get me() {
1320
1330
  return isLeapYear(getDate(e).t) ? 366 : 365;
1321
1331
  },
1322
- me: 12,
1323
- get ue() {
1332
+ ue: 12,
1333
+ get Te() {
1324
1334
  return isLeapYear(getDate(e).t);
1325
1335
  }
1326
1336
  }))(o) : isChineseDangi(e) ? epochDaysToDate$6(e, o) : "islamic-umalqura" === e ? ((e) => {
1327
1337
  const t = epochDaysToDate$2("islamic-civil", e);
1328
1338
  return e < -33600 || e > 76200 ? t : {
1329
- oe: "ah",
1330
- get ne() {
1339
+ ne: "ah",
1340
+ get re() {
1331
1341
  return getYearMonthDay(e).t;
1332
1342
  },
1333
1343
  get t() {
@@ -1342,25 +1352,25 @@ function nonIsoCalendarIsoToDate(e, t) {
1342
1352
  get T() {
1343
1353
  return getYearMonthDay(e).T;
1344
1354
  },
1345
- re: isoDayOfWeek(epochDaysToIsoDate(e)),
1346
- get ae() {
1355
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1356
+ get ie() {
1347
1357
  return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1348
1358
  },
1349
- ie: {
1350
- ce: void 0,
1359
+ ce: {
1360
+ se: void 0,
1351
1361
  t: void 0
1352
1362
  },
1353
- se: 7,
1354
- get le() {
1363
+ le: 7,
1364
+ get de() {
1355
1365
  const t = getYearMonthDay(e);
1356
1366
  return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
1357
1367
  },
1358
- get de() {
1368
+ get me() {
1359
1369
  const t = getYearMonthDay(e).t;
1360
1370
  return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1);
1361
1371
  },
1362
- me: 12,
1363
- get ue() {
1372
+ ue: 12,
1373
+ get Te() {
1364
1374
  const t = getYearMonthDay(e).t;
1365
1375
  return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1) > 354;
1366
1376
  }
@@ -1372,38 +1382,38 @@ function nonIsoCalendarIsoToDate(e, t) {
1372
1382
  let n = isLeapYear$2(o) ? 13 : 12;
1373
1383
  for (; calendarIntegersToEpochDays$4(o, n, 1) > e; n--);
1374
1384
  return {
1375
- oe: "am",
1376
- ne: o,
1385
+ ne: "am",
1386
+ re: o,
1377
1387
  t: o,
1378
1388
  u: n,
1379
1389
  v: isLeapYear$2(o) ? createMonthCode(n <= 5 ? n : n - 1, 6 === n) : createMonthCode(n),
1380
1390
  T: e - calendarIntegersToEpochDays$4(o, n, 1) + 1,
1381
- re: isoDayOfWeek(t),
1382
- ae: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1383
- ie: {
1384
- ce: void 0,
1391
+ ae: isoDayOfWeek(t),
1392
+ ie: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1393
+ ce: {
1394
+ se: void 0,
1385
1395
  t: void 0
1386
1396
  },
1387
- se: 7,
1388
- le: daysInMonth$4(o, n),
1389
- de: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1390
- me: isLeapYear$2(o) ? 13 : 12,
1391
- ue: isLeapYear$2(o)
1397
+ le: 7,
1398
+ de: daysInMonth$4(o, n),
1399
+ me: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1400
+ ue: isLeapYear$2(o) ? 13 : 12,
1401
+ Te: isLeapYear$2(o)
1392
1402
  };
1393
1403
  })(o) : epochDaysToDate$2(e, o);
1394
1404
  }
1395
1405
  function calendarSupportsEra(e) {
1396
- return !!It[e].size;
1406
+ return !!Ft[e].size;
1397
1407
  }
1398
1408
  function canonicalizeEraInCalendar(e, t) {
1399
1409
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1400
- return It[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1410
+ return Ft[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1401
1411
  }
1402
1412
  function constrainMonthCode(e, t, o, n) {
1403
- if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(le) : [6, !1] : o;
1413
+ if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
1404
1414
  if (isChineseDangi(e)) {
1405
1415
  const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1406
- return o !== r && "reject" === n ? throwRangeError(le) : r;
1416
+ return o !== r && "reject" === n ? throwRangeError(b) : r;
1407
1417
  }
1408
1418
  return o;
1409
1419
  }
@@ -1427,11 +1437,11 @@ function isChineseDangi(e) {
1427
1437
  }
1428
1438
  function constrainDay(e, t, o, n, r) {
1429
1439
  const a = "persian" === e ? ((e, t, o) => o < 30 ? o : clamp(o, 1, daysInMonth(e, t)))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$6(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$5(t, o) : "indian" === e ? daysInMonth$3(t, o) : "hebrew" === e ? daysInMonth$4(t, o) : daysInMonth$2(t, o));
1430
- return n !== a && "reject" === r ? throwRangeError(le) : a;
1440
+ return n !== a && "reject" === r ? throwRangeError(b) : a;
1431
1441
  }
1432
1442
  function constrainMonth(e, t, o, n) {
1433
1443
  const r = isChineseDangi(e) ? ((e, t, o) => isWithin(o, 1, 12) ? o : clamp(o, 1, monthsInYear(e, t)))(e, t, o) : clamp(o, 1, "hebrew" === e && isLeapYear$2(t) || isCopticOrEthiopic(e) ? 13 : 12);
1434
- return r !== o && "reject" === n && throwRangeError(le), r;
1444
+ return r !== o && "reject" === n && throwRangeError(b), r;
1435
1445
  }
1436
1446
  function balanceNonIsoYearMonth(e, t, o) {
1437
1447
  if ("hebrew" === e) return ((e, t) => {
@@ -1468,7 +1478,7 @@ function parseMonthCode(e) {
1468
1478
  const t = toPrimitive(e);
1469
1479
  validateString(t);
1470
1480
  const o = t.match(/M(\d\d)(L?)/);
1471
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Fe(o[1]), !!o[2]];
1481
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
1472
1482
  }
1473
1483
  function createMonthCode(e, t = !1) {
1474
1484
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -1479,16 +1489,16 @@ function prepareCalendarFields(e, t, o, n) {
1479
1489
  let a = !1;
1480
1490
  for (const e of o) {
1481
1491
  const o = t[e];
1482
- void 0 !== o ? (a = !0, r[e] = St[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = St[e][1]);
1492
+ void 0 !== o ? (a = !0, r[e] = wt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = wt[e][1]);
1483
1493
  }
1484
- return n || a || throwTypeError(fe), r;
1494
+ return n || a || throwTypeError(U), r;
1485
1495
  }
1486
1496
  function calendarMergeFields(e, t, o) {
1487
1497
  const n = ((e, t) => {
1488
1498
  const o = [];
1489
- return void 0 !== t[Ot.u] && o.push(Ot.v), void 0 !== t[Ot.v] && o.push(Ot.u), !calendarSupportsEra(e) || void 0 === t[Ot.oe] && void 0 === t[Ot.ne] && void 0 === t[Ot.t] || o.push(Ot.oe, Ot.ne, Ot.t), !((e) => "japanese" === e)(e) || void 0 === t[Ot.T] && void 0 === t[Ot.u] && void 0 === t[Ot.v] || o.push(Ot.oe, Ot.ne), o;
1499
+ return void 0 !== t[St.u] && o.push(St.v), void 0 !== t[St.v] && o.push(St.u), !calendarSupportsEra(e) || void 0 === t[St.ne] && void 0 === t[St.re] && void 0 === t[St.t] || o.push(St.ne, St.re, St.t), !((e) => "japanese" === e)(e) || void 0 === t[St.T] && void 0 === t[St.u] && void 0 === t[St.v] || o.push(St.ne, St.re), o;
1490
1500
  })(e, o), r = createEmptyCalendarFieldsRecord();
1491
- for (const e of Ft) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1501
+ for (const e of yt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1492
1502
  return r;
1493
1503
  }
1494
1504
  function toTemporalCalendarIdentifier(e) {
@@ -1496,15 +1506,15 @@ function toTemporalCalendarIdentifier(e) {
1496
1506
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1497
1507
  try {
1498
1508
  return parseIsoDateTime(e, [
1499
- Ge,
1500
- Xe,
1501
1509
  Qe,
1502
1510
  et,
1503
1511
  tt,
1504
- ot
1512
+ ot,
1513
+ nt,
1514
+ rt
1505
1515
  ]).Y || "iso8601";
1506
1516
  } catch {
1507
- return at.test(e) || throwRangeError(parseError(e)), e;
1517
+ return ct.test(e) || throwRangeError(parseError(e)), e;
1508
1518
  }
1509
1519
  })(e)));
1510
1520
  }
@@ -1516,26 +1526,26 @@ function calendarDateFromFields(e, t, o) {
1516
1526
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(e, t, o));
1517
1527
  }
1518
1528
  function calendarYearMonthFromFields(e, t, o) {
1519
- return t.day = 1, calendarResolveFields(e, t, m), validateIsoYearMonth(calendarDateToIso(e, t, o));
1529
+ return t.day = 1, calendarResolveFields(e, t, H), validateIsoYearMonth(calendarDateToIso(e, t, o));
1520
1530
  }
1521
1531
  function calendarMonthDayFromFields(e, t, o) {
1522
- return calendarResolveFields(e, t, u), (function(e, t, o) {
1532
+ return calendarResolveFields(e, t, q), (function(e, t, o) {
1523
1533
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1524
- const n = regulateIsoDate(e[Ot.t] ?? 1972, e[Ot.u], e[Ot.T], t);
1534
+ const n = regulateIsoDate(e[St.t] ?? 1972, e[St.u], e[St.T], t);
1525
1535
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1526
1536
  })({
1527
1537
  ...t,
1528
1538
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1529
1539
  }, o, "iso8601" === e);
1530
- const n = t[Ot.t];
1531
- let r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1540
+ const n = t[St.t];
1541
+ let r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1532
1542
  return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
1533
1543
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1534
1544
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1535
- return o !== r && "reject" === n ? throwRangeError(le) : r;
1545
+ return o !== r && "reject" === n ? throwRangeError(b) : r;
1536
1546
  }
1537
1547
  return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, isCopticOrEthiopic(e) ? 3 : 2, t[0], o, n);
1538
- })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(le), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1548
+ })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(b), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1539
1549
  if (12 === e && 30 === t) {
1540
1550
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
1541
1551
  }
@@ -1573,7 +1583,7 @@ function calendarMonthDayFromFields(e, t, o) {
1573
1583
  })(e, t, o);
1574
1584
  }
1575
1585
  function formatCalendarAnnotation(e, t) {
1576
- return t === Y || t === $ && "iso8601" === e ? "" : `[${t === U ? "!" : ""}u-ca=${e}]`;
1586
+ return t === he || t === Te && "iso8601" === e ? "" : `[${t === pe ? "!" : ""}u-ca=${e}]`;
1577
1587
  }
1578
1588
  function calendarEquals(e, t) {
1579
1589
  return e === t;
@@ -1588,13 +1598,13 @@ function isoWeekOfYear(e) {
1588
1598
  const t = e.t, o = divFloor(isoDayOfYear(e) + 10 - isoDayOfWeek(e), 7);
1589
1599
  return o < 1 ? {
1590
1600
  t: t - 1,
1591
- ce: isoWeeksInYear(t - 1)
1601
+ se: isoWeeksInYear(t - 1)
1592
1602
  } : o > isoWeeksInYear(t) ? {
1593
1603
  t: t + 1,
1594
- ce: 1
1604
+ se: 1
1595
1605
  } : {
1596
1606
  t,
1597
- ce: o
1607
+ se: o
1598
1608
  };
1599
1609
  }
1600
1610
  function isoDayOfYear(e) {
@@ -1609,14 +1619,14 @@ function isoCalendarIsoToDate(e) {
1609
1619
  u: e.u,
1610
1620
  v: createMonthCode(e.u),
1611
1621
  T: e.T,
1612
- re: isoDayOfWeek(e),
1613
- ae: isoDayOfYear(e),
1614
- ie: isoWeekOfYear(e),
1615
- se: 7,
1616
- le: isoDaysInMonth(e.t, e.u),
1617
- de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1618
- me: 12,
1619
- ue: !!mathematicalInLeapYear(e.t)
1622
+ ae: isoDayOfWeek(e),
1623
+ ie: isoDayOfYear(e),
1624
+ ce: isoWeekOfYear(e),
1625
+ le: 7,
1626
+ de: isoDaysInMonth(e.t, e.u),
1627
+ me: (t = e.t, 365 + mathematicalInLeapYear(t)),
1628
+ ue: 12,
1629
+ Te: !!mathematicalInLeapYear(e.t)
1620
1630
  };
1621
1631
  var t;
1622
1632
  }
@@ -1627,30 +1637,30 @@ function calendarExtraFields(e, t) {
1627
1637
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1628
1638
  }
1629
1639
  function isoResolveFields(e, t) {
1630
- t !== u && void 0 === e[Ot.t] && throwTypeError(missingField(Ot.t)), t !== m && void 0 === e[Ot.T] && throwTypeError(missingField(Ot.T)), void 0 === e[Ot.v] && void 0 === e[Ot.u] && throwTypeError(missingField("month, monthCode"));
1631
- const o = mapUnlessUndefined(e[Ot.v], parseMonthCode);
1632
- o && ((o[0] > 12 || o[1] || void 0 !== e[Ot.u] && o[0] !== e[Ot.u]) && throwRangeError(pe), e[Ot.u] = o[0]);
1633
- }
1634
- function calendarResolveFields(e, t, o = s) {
1635
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = s) {
1636
- const n = t[Ot.oe], r = t[Ot.ne];
1637
- let a = t[Ot.t];
1638
- const i = t[Ot.v], c = t[Ot.u], l = t[Ot.T];
1639
- if (o === u && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === l && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1640
+ t !== q && void 0 === e[St.t] && throwTypeError(missingField(St.t)), t !== H && void 0 === e[St.T] && throwTypeError(missingField(St.T)), void 0 === e[St.v] && void 0 === e[St.u] && throwTypeError(missingField("month, monthCode"));
1641
+ const o = mapUnlessUndefined(e[St.v], parseMonthCode);
1642
+ o && ((o[0] > 12 || o[1] || void 0 !== e[St.u] && o[0] !== e[St.u]) && throwRangeError(C), e[St.u] = o[0]);
1643
+ }
1644
+ function calendarResolveFields(e, t, o = z) {
1645
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = z) {
1646
+ const n = t[St.ne], r = t[St.re];
1647
+ let a = t[St.t];
1648
+ const i = t[St.v], c = t[St.u], s = t[St.T];
1649
+ if (o === q && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1640
1650
  const o = ((e, t, o) => {
1641
- const n = canonicalizeEraInCalendar(e, t), r = It[e].get(n);
1651
+ const n = canonicalizeEraInCalendar(e, t), r = Ft[e].get(n);
1642
1652
  return !1 === r ? 1 - o : r + o - 1;
1643
1653
  })(e, canonicalizeEraInCalendar(e, n), r);
1644
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ot.t] = o;
1654
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[St.t] = o;
1645
1655
  }
1646
- if (t[Ot.oe] = t[Ot.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1656
+ if (t[St.ne] = t[St.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1647
1657
  else if (i) {
1648
1658
  const o = parseMonthCode(i);
1649
1659
  ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, o) || throwRangeError(invalidMonthCode(i));
1650
- const n = t[Ot.t];
1660
+ const n = t[St.t];
1651
1661
  if (void 0 !== n) {
1652
- const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, h));
1653
- void 0 !== c && c !== r && throwRangeError(pe), t[Ot.u] = r;
1662
+ const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, _));
1663
+ void 0 !== c && c !== r && throwRangeError(C), t[St.u] = r;
1654
1664
  }
1655
1665
  }
1656
1666
  })(e, t, o);
@@ -1662,7 +1672,7 @@ function zeroDateDuration() {
1662
1672
  return createDateDurationRecord(0, 0, 0, 0);
1663
1673
  }
1664
1674
  function toInternalDurationRecord(e) {
1665
- return combineDateAndTimeDuration(createDateDurationRecord(e[K], e[G], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1675
+ return combineDateAndTimeDuration(createDateDurationRecord(e[h], e[p], e[g], e[f]), timeDurationFromComponents(e[I], e[O], e[F], e[S], e[y], e[w]));
1666
1676
  }
1667
1677
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1668
1678
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1670,23 +1680,23 @@ function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1670
1680
  function temporalDurationFromInternal(e, t) {
1671
1681
  const [o, ...n] = balanceTimeDuration(e.p, t);
1672
1682
  return createTemporalDurationSlot([
1673
- e.A.ee,
1674
1683
  e.A.te,
1675
- e.A.X,
1676
- e.A.K + o,
1684
+ e.A.oe,
1685
+ e.A.ee,
1686
+ e.A.X + o,
1677
1687
  ...n
1678
1688
  ]);
1679
1689
  }
1680
1690
  function createDateDurationRecord(e, t, o, n) {
1681
1691
  return validateDuration(e, t, o, n, 0, 0, 0, 0, 0, 0), {
1682
- ee: e,
1683
- te: t,
1684
- X: o,
1685
- K: n
1692
+ te: e,
1693
+ oe: t,
1694
+ ee: o,
1695
+ X: n
1686
1696
  };
1687
1697
  }
1688
- function adjustDateDurationRecord(e, t, o = e.X, n = e.te) {
1689
- return createDateDurationRecord(e.ee, n, o, t);
1698
+ function adjustDateDurationRecord(e, t, o = e.ee, n = e.oe) {
1699
+ return createDateDurationRecord(e.te, n, o, t);
1690
1700
  }
1691
1701
  function combineDateAndTimeDuration(e, t) {
1692
1702
  return {
@@ -1695,9 +1705,9 @@ function combineDateAndTimeDuration(e, t) {
1695
1705
  };
1696
1706
  }
1697
1707
  function toTemporalDuration(e) {
1698
- return t = e, yt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1699
- const t = (e = asciiLowerCase(e)).match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/);
1700
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1708
+ return t = e, vt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1709
+ const t = e.match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/i);
1710
+ t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
1701
1711
  const o = balanceTime(0, 0, 0, 0, 0, 3600 * toIntegerWithTruncation((t[7] || "").padEnd(9, "0")) + 60 * toIntegerWithTruncation((t[9] || "").padEnd(9, "0")) + toIntegerWithTruncation((t[11] || "").padEnd(9, "0")));
1702
1712
  return applySignToDurationSlot(createTemporalDurationSlot([
1703
1713
  toIntegerWithTruncation(t[2] || ""),
@@ -1718,13 +1728,17 @@ function durationSign(e) {
1718
1728
  return sign(e.find((e) => e) || 0);
1719
1729
  }
1720
1730
  function dateDurationSign(e) {
1721
- return sign(e.ee || e.te || e.X || e.K);
1731
+ return sign(e.te || e.oe || e.ee || e.X);
1722
1732
  }
1723
1733
  function internalDurationSign(e) {
1724
- return dateDurationSign(e.A) || wt(e.p);
1734
+ return dateDurationSign(e.A) || Et(e.p);
1725
1735
  }
1726
1736
  function validateDuration(...e) {
1727
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[G]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(me), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1737
+ e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
1738
+ e[h],
1739
+ e[p],
1740
+ e[g]
1741
+ ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(R), validateTimeDurationRange(timeDurationFromComponents(24 * e[f] + e[I], e[O], e[F], e[S], e[y], e[w]));
1728
1742
  }
1729
1743
  function defaultTemporalLargestUnit(e) {
1730
1744
  return (e.findIndex((e) => e) + 10) % 10;
@@ -1742,8 +1756,8 @@ function toTemporalPartialDurationRecord(e) {
1742
1756
  6,
1743
1757
  2,
1744
1758
  0
1745
- ].map((t) => mapUnlessUndefined(e[ce[t]], toIntegerIfIntegral));
1746
- return t.every((e) => void 0 === e) && throwTypeError(fe), [
1759
+ ].map((t) => mapUnlessUndefined(e[E[t]], toIntegerIfIntegral));
1760
+ return t.some((e) => void 0 !== e) || throwTypeError(U), [
1747
1761
  9,
1748
1762
  5,
1749
1763
  8,
@@ -1759,12 +1773,11 @@ function toTemporalPartialDurationRecord(e) {
1759
1773
  function createTemporalDurationSlot(e) {
1760
1774
  return validateDuration(...e), e;
1761
1775
  }
1762
- function createTemporalDuration(e, t = Object.create(vt.prototype)) {
1763
- return yt.set(t, e), t;
1776
+ function createTemporalDuration(e, t = Object.create(Mt.prototype)) {
1777
+ return vt.set(t, e), t;
1764
1778
  }
1765
- function timeDurationFromComponents(e, t, o, n, c, s) {
1766
- return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = c, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = s, normalize(Math.round((l - l % i) / i), l % i)));
1767
- var l, d, m;
1779
+ function timeDurationFromComponents(e, t, o, n, r, a) {
1780
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
1768
1781
  }
1769
1782
  function add24HourDaysToTimeDuration(e, t) {
1770
1783
  return validateTimeDurationRange(((e, t) => normalize(e[0] + t, e[1]))(e, t));
@@ -1773,11 +1786,11 @@ function timeDurationFromEpochNanosecondsDifference(e, t) {
1773
1786
  return differenceEpochNanoseconds(t, e);
1774
1787
  }
1775
1788
  function roundTimeDurationToIncrement(e, t, o) {
1776
- return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * i, t, o)))(e, t, o));
1789
+ return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * a, t, o)))(e, t, o));
1777
1790
  }
1778
1791
  function dateDurationDays(e, t) {
1779
1792
  const o = adjustDateDurationRecord(e, 0);
1780
- return dateDurationSign(e) ? e.K + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, h)) - isoDateRecordToEpochDays(t.o) : e.K;
1793
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, _)) - isoDateRecordToEpochDays(t.o) : e.X;
1781
1794
  }
1782
1795
  function roundTimeDuration(e, t, o, n) {
1783
1796
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1785,101 +1798,100 @@ function roundTimeDuration(e, t, o, n) {
1785
1798
  function totalTimeDuration(e, t) {
1786
1799
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1787
1800
  }
1788
- function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1789
- let l, d, m, u, T;
1790
- if (c === z) l = roundNumberToIncrement(t.A.ee, i, M) + (s ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1791
- else if (c === V) l = roundNumberToIncrement(t.A.te, i, M) + (s ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1792
- else if (c === x) {
1793
- const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), h);
1794
- l = roundNumberToIncrement(t.A.X + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.K), x).X, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1795
- } else l = roundNumberToIncrement(t.A.K, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1796
- if (dateDurationSign(m)) {
1797
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, h), n.p);
1798
- T = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1799
- } else T = o;
1800
- const D = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, h), n.p);
1801
+ function computeNudgeWindow(e, t, o, n, r, a, i, d, m) {
1802
+ let u, T, D, h, p;
1803
+ if (d === c) u = roundNumberToIncrement(t.A.te, i, ce) + (m ? i * e : 0), T = u + i * e, D = createDateDurationRecord(u, 0, 0, 0), h = createDateDurationRecord(T, 0, 0, 0);
1804
+ else if (d === s) u = roundNumberToIncrement(t.A.oe, i, ce) + (m ? i * e : 0), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, 0, u), h = adjustDateDurationRecord(t.A, 0, 0, T);
1805
+ else if (d === l) {
1806
+ const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), _);
1807
+ u = roundNumberToIncrement(t.A.ee + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.X), l).ee, i, ce), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, u), h = adjustDateDurationRecord(t.A, 0, T);
1808
+ } else u = roundNumberToIncrement(t.A.X, i, ce), T = u + i * e, D = adjustDateDurationRecord(t.A, u), h = adjustDateDurationRecord(t.A, T);
1809
+ if (dateDurationSign(D)) {
1810
+ const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, D, _), n.p);
1811
+ p = r ? getEpochNanosecondsFor(r, e, G) : getUtcEpochNanoseconds(e);
1812
+ } else p = o;
1813
+ const g = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, h, _), n.p);
1801
1814
  return {
1802
- he: l,
1803
- De: d,
1815
+ he: u,
1804
1816
  pe: T,
1805
- ge: r ? getEpochNanosecondsFor(r, D, g) : getUtcEpochNanoseconds(D),
1806
- fe: m,
1807
- Ie: u
1817
+ ge: p,
1818
+ fe: r ? getEpochNanosecondsFor(r, g, G) : getUtcEpochNanoseconds(g),
1819
+ Ie: D,
1820
+ Oe: h
1808
1821
  };
1809
1822
  }
1810
1823
  function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1811
1824
  let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, c, s, !1);
1812
- compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1813
- const u = differenceEpochNanoseconds(m.pe, n), T = differenceEpochNanoseconds(m.pe, m.ge);
1814
- let D = m.fe, h = m.pe;
1815
- return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? we(e, t) ? we(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1816
- Oe: {
1817
- Fe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1825
+ compareEpochNanoseconds(m.ge, n) * compareEpochNanoseconds(m.fe, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1826
+ const u = differenceEpochNanoseconds(m.ge, n), T = differenceEpochNanoseconds(m.ge, m.fe);
1827
+ let D = m.Ie, h = m.ge;
1828
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? Ee(e, t) ? Ee(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.pe && (d = !0, D = m.Oe, h = m.fe), {
1829
+ Fe: {
1830
+ ye: combineDateAndTimeDuration(D, ve),
1818
1831
  Se: h,
1819
- ye: d
1832
+ we: d
1820
1833
  },
1821
- we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1834
+ $e: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1822
1835
  };
1823
1836
  }
1824
- function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1825
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(s) || r && s === H ? nudgeToCalendarUnit(d, e, t, o, n, r, a, c, s, l).Oe : r ? ((e, t, o, n, r, a, i, c) => {
1826
- const s = calendarDateAdd(r, o.o, t.A, h), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, g), u = getEpochNanosecondsFor(n, d, g), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1827
- let p = roundTimeDurationToIncrement(t.p, a * D, c);
1828
- const f = addTimeDuration(p, negateTimeDuration(T));
1829
- let I, O = !1, F = 0;
1830
- return wt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, c), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1831
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + F), p),
1832
- Se: I,
1833
- ye: O
1837
+ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
1838
+ const u = internalDurationSign(e) || 1, T = isCalendarUnit(s) || r && s === d ? nudgeToCalendarUnit(u, e, t, o, n, r, a, c, s, m).Fe : r ? ((e, t, o, n, r, a, i, c) => {
1839
+ const s = calendarDateAdd(r, o.o, t.A, _), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, G), u = getEpochNanosecondsFor(n, d, G), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1840
+ let h = roundTimeDurationToIncrement(t.p, a * D, c);
1841
+ const p = addTimeDuration(h, negateTimeDuration(T));
1842
+ let g = !1, f = 0;
1843
+ return Et(p) !== -e && (g = !0, f = e, h = roundTimeDurationToIncrement(p, a * D, c)), {
1844
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), h),
1845
+ Se: addTimeDurationToEpochNanoseconds(u, h),
1846
+ we: g
1834
1847
  };
1835
- })(d, e, n, r, a, c, s, l) : (function(e, t, o, n, r, a) {
1836
- const i = add24HourDaysToTimeDuration(e.p, e.A.K), c = r === H ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0], [l, d] = isDateUnit(o) ? [s, addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0))] : [0, c];
1848
+ })(u, e, n, r, a, c, s, m) : (function(e, t, o, n, r, a) {
1849
+ const i = add24HourDaysToTimeDuration(e.p, e.A.X), c = r === d ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0];
1837
1850
  return {
1838
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1851
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? s : 0), isDateUnit(o) ? addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0)) : c),
1839
1852
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1840
- ye: sign(s - i[0]) === wt(i)
1853
+ we: sign(s - i[0]) === Et(i)
1841
1854
  };
1842
- })(e, o, i, c, s, l);
1843
- return m.ye && s !== x ? ((e, t, o, n, r, a, i, c) => {
1855
+ })(e, o, i, c, s, m);
1856
+ return T.we && s !== l ? ((e, t, o, n, r, a, i, c) => {
1844
1857
  if (c === i) return t;
1845
1858
  const s = i;
1846
- let l;
1847
- for (let i = c - 1; i >= s; i--) if (i !== X || s === X) {
1848
- l = i === K ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === G ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1849
- const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1850
- if (wt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1851
- t = combineDateAndTimeDuration(l, createTimeDurationFromSeconds(0));
1859
+ let d;
1860
+ for (let m = c - 1; m >= s; m--) if (m !== g || i === l) {
1861
+ d = m === h ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : m === p ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1862
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, d, _), n.p);
1863
+ if (Et(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1864
+ t = combineDateAndTimeDuration(d, ve);
1852
1865
  }
1853
1866
  return t;
1854
- })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(s, H)) : m.Fe;
1867
+ })(u, T.ye, T.Se, n, r, a, i, largerOfTwoTemporalUnits(s, d)) : T.ye;
1855
1868
  }
1856
1869
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1857
- return isCalendarUnit(i) || r && i === H ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, M).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.K), i);
1870
+ return isCalendarUnit(i) || r && i === d ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, ce).$e : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1858
1871
  }
1859
1872
  function temporalDurationToString(e, t) {
1860
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, c] = balanceTimeDuration(n, J), [s, l, d, m, u, T] = [
1873
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[F], e[S], e[y], e[w]), [, , , r, a, i, c] = balanceTimeDuration(n, T), [s, l, d, m, u, D] = [
1861
1874
  "Y",
1862
1875
  "M",
1863
1876
  "W",
1864
1877
  "D",
1865
1878
  "H",
1866
1879
  "M"
1867
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${wt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1868
- return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1880
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${Et(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1881
+ return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${h && `T${h}`}`;
1869
1882
  }
1870
1883
  function addDurations(e, t, o) {
1871
1884
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
1872
1885
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1873
1886
  }
1874
1887
  function getInternalSlotOrThrowForDuration(e) {
1875
- const t = yt.get(e);
1876
- return t || throwTypeError(De), t;
1888
+ return getInternalSlotOrThrow(vt, e);
1877
1889
  }
1878
1890
  function applySignToDurationSlot(e, t) {
1879
1891
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1880
1892
  }
1881
1893
  function validateTimeDurationRange(e) {
1882
- return ((e) => we(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(me), e;
1894
+ return ((e) => Ee(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(R), e;
1883
1895
  }
1884
1896
  function balanceTimeDuration(e, t) {
1885
1897
  const o = clamp(t, 3, 9);
@@ -1891,8 +1903,8 @@ function balanceTimeDuration(e, t) {
1891
1903
  0,
1892
1904
  0,
1893
1905
  0
1894
- ].slice(0, o - Q),
1895
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), se[o - Q] / 1e9),
1906
+ ].slice(0, o - f),
1907
+ o > F ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), M[o - f] / 1e9),
1896
1908
  ...[
1897
1909
  0,
1898
1910
  1,
@@ -1900,7 +1912,7 @@ function balanceTimeDuration(e, t) {
1900
1912
  3,
1901
1913
  4,
1902
1914
  5
1903
- ].map((t) => divTrunc(e[1], se[t + 1]) % (se[t] / se[t + 1]) + 0).slice(o - Q)
1915
+ ].map((t) => divTrunc(e[1], M[t + 1]) % (M[t] / M[t + 1]) + 0).slice(o - f)
1904
1916
  ];
1905
1917
  var r;
1906
1918
  }
@@ -1921,7 +1933,7 @@ function roundHalfEven(e) {
1921
1933
  }
1922
1934
  function isoDateToEpochDays(e, t, o) {
1923
1935
  const n = balanceIsoYearMonth(e, t + 1);
1924
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * c + o;
1936
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * i + o;
1925
1937
  }
1926
1938
  function isoDateRecordToEpochDays(e) {
1927
1939
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1930,34 +1942,34 @@ function mathematicalInLeapYear(e) {
1930
1942
  return +!(e % (e % 25 ? 4 : 16));
1931
1943
  }
1932
1944
  function getTemporalOverflowOption(e) {
1933
- return getOption(e, "overflow", [h, p], h);
1945
+ return getOption(e, "overflow", [_, X], _);
1934
1946
  }
1935
1947
  function getTemporalDisambiguationOption(e) {
1936
1948
  return getOption(e, "disambiguation", [
1937
- g,
1949
+ G,
1938
1950
  "earlier",
1939
- f,
1951
+ K,
1940
1952
  "reject"
1941
- ], g);
1953
+ ], G);
1942
1954
  }
1943
1955
  function negateRoundingMode(e) {
1944
- return "ceil" === e ? v : "floor" === e ? w : "halfCeil" === e ? P : "halfFloor" === e ? b : e;
1956
+ return "ceil" === e ? ae : "floor" === e ? re : "halfCeil" === e ? le : "halfFloor" === e ? se : e;
1945
1957
  }
1946
1958
  function getTemporalOffsetOption(e, t) {
1947
1959
  return getOption(e, "offset", [
1948
- I,
1960
+ Q,
1949
1961
  "use",
1950
1962
  "ignore",
1951
- O
1963
+ ee
1952
1964
  ], t);
1953
1965
  }
1954
1966
  function getTemporalShowCalendarNameOption(e) {
1955
1967
  return getOption(e, "calendarName", [
1956
- $,
1957
- C,
1958
- Y,
1959
- U
1960
- ], $);
1968
+ Te,
1969
+ De,
1970
+ he,
1971
+ pe
1972
+ ], Te);
1961
1973
  }
1962
1974
  function validateTemporalRoundingIncrement(e, t, o) {
1963
1975
  (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
@@ -1971,68 +1983,68 @@ function getTemporalFractionalSecondDigitsOption(e) {
1971
1983
  }
1972
1984
  function toSecondsStringPrecisionRecord(e, t) {
1973
1985
  return e ? {
1974
- $e: e === B ? D : 3 * (e - 6),
1986
+ ve: e === u ? J : 3 * (e - 6),
1975
1987
  Ee: e,
1976
- ve: 1
1988
+ Me: 1
1977
1989
  } : {
1978
- $e: t,
1990
+ ve: t,
1979
1991
  Ee: divFloor((t ?? 9) - 1, 3) + 7,
1980
- ve: 10 ** ((9 - (t ?? 9)) % 3)
1992
+ Me: 10 ** ((9 - (t ?? 9)) % 3)
1981
1993
  };
1982
1994
  }
1983
1995
  function getTemporalUnitValuedOption(e, t, o) {
1984
1996
  return mapUnlessUndefined(getOption(e, t, [
1985
- ...ie,
1986
- ...ce,
1997
+ ...v,
1998
+ ...E,
1987
1999
  "auto"
1988
2000
  ], o), (e) => {
1989
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
2001
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), v.indexOf(t));
1990
2002
  var t;
1991
2003
  });
1992
2004
  }
1993
2005
  function validateTemporalUnitValue(e, t, o = []) {
1994
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === s) && throwRangeError(disallowedUnit(e)));
2006
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= d && t === V || e > d && t === z) && throwRangeError(disallowedUnit(e)));
1995
2007
  }
1996
2008
  function getTemporalRelativeToOption(e) {
1997
2009
  const t = e.relativeTo;
1998
2010
  if (void 0 === t) return createNullPrototypeObject();
1999
- let o, n, r, a, i, c = !0, s = F;
2011
+ let o, n, r, a, i, c = !0, s = te;
2000
2012
  if (isObject(t)) {
2001
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Me: getInternalSlotOrThrowForZonedDateTime(t) });
2002
- if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
2013
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForZonedDateTime(t) });
2014
+ if (isPlainDate(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(t) });
2003
2015
  const e = getInternalSlotForPlainDateTime(t);
2004
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.G.o, e.Y)) });
2016
+ if (e) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.Y)) });
2005
2017
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2006
2018
  const c = prepareCalendarFields(r, t, [
2007
- Ot.t,
2008
- Ot.u,
2009
- Ot.v,
2010
- Ot.T,
2011
- Ot.D,
2012
- Ot.I,
2013
- Ot.O,
2014
- Ot.F,
2015
- Ot.S,
2016
- Ot.$,
2017
- Ot.M,
2018
- Ot.P
2019
- ], []), l = interpretTemporalDateTimeFields(r, c, h);
2020
- a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? F : y;
2019
+ St.t,
2020
+ St.u,
2021
+ St.v,
2022
+ St.T,
2023
+ St.D,
2024
+ St.I,
2025
+ St.O,
2026
+ St.F,
2027
+ St.S,
2028
+ St.$,
2029
+ St.M,
2030
+ St.P
2031
+ ], []), l = interpretTemporalDateTimeFields(r, c, _);
2032
+ a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? te : ne;
2021
2033
  } else {
2022
2034
  validateString(t);
2023
- const e = parseIsoDateTime(t, [Ge, Xe]);
2024
- n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? S : n ? F : y, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2035
+ const e = parseIsoDateTime(t, [Qe, et]);
2036
+ n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? oe : n ? te : ne, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2025
2037
  }
2026
- return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, c), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2038
+ return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, c), o, r)) } : { Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2027
2039
  }
2028
2040
  function largerOfTwoTemporalUnits(e, t) {
2029
2041
  return e < t ? e : t;
2030
2042
  }
2031
2043
  function isCalendarUnit(e) {
2032
- return e < H;
2044
+ return e < d;
2033
2045
  }
2034
2046
  function isDateUnit(e) {
2035
- return e <= H;
2047
+ return e <= d;
2036
2048
  }
2037
2049
  function maximumTemporalDurationRoundingIncrement(e) {
2038
2050
  return [
@@ -2049,40 +2061,40 @@ function formatFractionalSeconds(e, t) {
2049
2061
  return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
2050
2062
  }
2051
2063
  function formatTimeString(e, t, o, n, r) {
2052
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2064
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2053
2065
  }
2054
2066
  function roundNumberToIncrement(e, t, o) {
2055
- return Et[o](e / t) * t;
2067
+ return bt[o](e / t) * t;
2056
2068
  }
2057
2069
  function getRoundingModeOption(e, t) {
2058
2070
  return getOption(e, "roundingMode", [
2059
- w,
2060
- v,
2061
- E,
2062
- M,
2063
- b,
2064
- P,
2065
- R,
2066
- N,
2067
- Z
2071
+ re,
2072
+ ae,
2073
+ ie,
2074
+ ce,
2075
+ se,
2076
+ le,
2077
+ de,
2078
+ me,
2079
+ ue
2068
2080
  ], t);
2069
2081
  }
2070
2082
  function getRoundingIncrementOption(e) {
2071
2083
  const t = "roundingIncrement", o = mapUnlessUndefined(e[t], toIntegerWithTruncation) ?? 1;
2072
- return (o < 1 || o > 1e9) && throwRangeError(invalidField(t)), o;
2084
+ return isWithin(o, 1, 1e9) || throwRangeError(invalidField(t)), o;
2073
2085
  }
2074
2086
  function isoDateToFields(e, t, o) {
2075
2087
  const n = calendarIsoToDate(e, t);
2076
2088
  return createNullPrototypeObject({
2077
- [Ot.t]: o === u ? void 0 : n.t,
2078
- [Ot.v]: n.v,
2079
- [Ot.T]: o === m ? void 0 : n.T
2089
+ [St.t]: o === q ? void 0 : n.t,
2090
+ [St.v]: n.v,
2091
+ [St.T]: o === H ? void 0 : n.T
2080
2092
  });
2081
2093
  }
2082
2094
  function getDifferenceSettings(e, t, o, n, r, a) {
2083
2095
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2084
- const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2085
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(he), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2096
+ const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, ce), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2097
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError($), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2086
2098
  H: l,
2087
2099
  L: i,
2088
2100
  q: -1 === e ? negateRoundingMode(s) : s,
@@ -2093,30 +2105,29 @@ function getUtcEpochNanoseconds(e) {
2093
2105
  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.$);
2094
2106
  }
2095
2107
  function epochDaysToIsoDate(e) {
2096
- const t = new Date(modFloor(e, c) * r);
2108
+ const t = new Date(modFloor(e, i) * r);
2097
2109
  return {
2098
- t: t.getUTCFullYear() + 400 * divFloor(e, c),
2110
+ t: t.getUTCFullYear() + 400 * divFloor(e, i),
2099
2111
  u: t.getUTCMonth() + 1,
2100
2112
  T: t.getUTCDate()
2101
2113
  };
2102
2114
  }
2103
2115
  function isoDateTimeToFields(e, t) {
2104
2116
  return createNullPrototypeObject({
2105
- ...isoDateToFields(e, t.o, s),
2106
- [Ot.D]: t.p.D,
2107
- [Ot.I]: t.p.I,
2108
- [Ot.O]: t.p.O,
2109
- [Ot.F]: t.p.F,
2110
- [Ot.S]: t.p.S,
2111
- [Ot.$]: t.p.$
2117
+ ...isoDateToFields(e, t.o, z),
2118
+ [St.D]: t.p.D,
2119
+ [St.I]: t.p.I,
2120
+ [St.O]: t.p.O,
2121
+ [St.F]: t.p.F,
2122
+ [St.S]: t.p.S,
2123
+ [St.$]: t.p.$
2112
2124
  });
2113
2125
  }
2114
2126
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2115
- const t = Pt.get(e);
2116
- return t || throwTypeError(De), t;
2127
+ return getInternalSlotOrThrow(Nt, e);
2117
2128
  }
2118
2129
  function formatDateTime(e, t) {
2119
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
2130
+ const [o, n] = handleDateTimeValue(e, t);
2120
2131
  return o.format(n);
2121
2132
  }
2122
2133
  function removeDateTimeFormatOptions(e, t) {
@@ -2127,19 +2138,19 @@ function dateStyleToMonthStyle(e) {
2127
2138
  }
2128
2139
  function amendOptionsForPlainDate(e) {
2129
2140
  const t = createNullPrototypeObject(e);
2130
- return hasAnyOptions(e, Rt) || (hasAnyOptions(e, Nt) && throwTypeError(ue), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Nt, "timeZoneName"]), t.timeZone = "UTC", t;
2141
+ return hasAnyOptions(e, Zt) || (hasAnyOptions(e, $t) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...$t, "timeZoneName"]), t.timeZone = "UTC", t;
2131
2142
  }
2132
2143
  function amendOptionsForPlainTime(e) {
2133
2144
  const t = createNullPrototypeObject(e);
2134
- return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Rt) && throwTypeError(ue), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2135
- ...Rt,
2145
+ return hasAnyOptions(e, $t) || (hasAnyOptions(e, Zt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2146
+ ...Zt,
2136
2147
  "era",
2137
2148
  "timeZoneName"
2138
2149
  ]), t.timeZone = "UTC", t;
2139
2150
  }
2140
2151
  function amendOptionsForPlainDateTime(e) {
2141
2152
  const t = createNullPrototypeObject(e);
2142
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2153
+ return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2143
2154
  }
2144
2155
  function amendOptionsForPlainYearMonth(e) {
2145
2156
  const t = createNullPrototypeObject(e);
@@ -2147,8 +2158,8 @@ function amendOptionsForPlainYearMonth(e) {
2147
2158
  "year",
2148
2159
  "month",
2149
2160
  "dateStyle"
2150
- ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2151
- ...Nt,
2161
+ ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2162
+ ...$t,
2152
2163
  "day",
2153
2164
  "weekday",
2154
2165
  "timeZoneName"
@@ -2160,8 +2171,8 @@ function amendOptionsForPlainMonthDay(e) {
2160
2171
  "month",
2161
2172
  "day",
2162
2173
  "dateStyle"
2163
- ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2164
- ...Nt,
2174
+ ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2175
+ ...$t,
2165
2176
  "era",
2166
2177
  "year",
2167
2178
  "weekday",
@@ -2170,27 +2181,27 @@ function amendOptionsForPlainMonthDay(e) {
2170
2181
  }
2171
2182
  function amendOptionsForInstant(e) {
2172
2183
  const t = createNullPrototypeObject(e);
2173
- return hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2184
+ return hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2174
2185
  }
2175
2186
  function hasAnyOptions(e, t) {
2176
2187
  return t.some((t) => void 0 !== e[t]);
2177
2188
  }
2178
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create($t.prototype)) {
2179
- null === t && throwTypeError(ue);
2180
- const a = createNullPrototypeObject();
2181
- let i = new bt(e, new Proxy({}, { get(e, o) {
2182
- const r = t[o];
2183
- return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Fe(r) : toString(r);
2189
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
2190
+ null === t && throwTypeError(N);
2191
+ const r = createNullPrototypeObject();
2192
+ let a = new Rt(e, new Proxy({}, { get(e, o) {
2193
+ const a = t[o];
2194
+ return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
2184
2195
  } }));
2185
- return (o === s && a.timeStyle || o === l && a.dateStyle) && throwTypeError(ue), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2186
- ...Rt,
2187
- ...Nt,
2196
+ return (o === z && r.timeStyle || o === V && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
2197
+ ...Zt,
2198
+ ...$t,
2188
2199
  "timeZoneName"
2189
- ]) || (a.timeZoneName = "short", i = new bt(i.resolvedOptions().locale, a)), Pt.set(r, createNullPrototypeObject({
2190
- Pe: i,
2200
+ ]) || (r.timeZoneName = "short", a = new Rt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2191
2201
  Re: a,
2192
- Ne: i.resolvedOptions().locale
2193
- })), r;
2202
+ Ne: r,
2203
+ Ze: a.resolvedOptions().locale
2204
+ });
2194
2205
  }
2195
2206
  function validateSameTemporalType(e, t) {
2196
2207
  [
@@ -2204,27 +2215,28 @@ function validateSameTemporalType(e, t) {
2204
2215
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
2205
2216
  }
2206
2217
  function toDateTimeFormattable(e) {
2207
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Fe(e);
2218
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
2208
2219
  }
2209
2220
  function handleDateTimeValue(e, t) {
2210
2221
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2211
- return isPlainTime(t) ? [e.Ze ||= new bt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(Te), [e.Ye ||= new bt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(Te), [e.Ce ||= new bt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n.G))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(Te), [e.Ue ||= new bt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(Te), [e.je ||= new bt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new bt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(ge), [e.Pe, t]);
2222
+ return isPlainTime(t) ? [e.Ye ||= new Rt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Rt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Rt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Rt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Rt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Rt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
2212
2223
  }
2213
2224
  function DateTimeFormat(e, t) {
2214
- return new $t(e, t);
2225
+ return new Yt(e, t);
2215
2226
  }
2216
- function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2217
- return Ut.set(t, { U: e }), t;
2227
+ function createTemporalInstant(e, t = Object.create(At.prototype)) {
2228
+ return Wt.set(t, { U: e }), t;
2218
2229
  }
2219
2230
  function toTemporalInstant$1(e) {
2220
2231
  if (isObject(e)) {
2221
- const t = getInternalSlotForInstant(e) || getInternalSlotForZonedDateTime(e);
2222
- if (t) return createTemporalInstant(t.U);
2232
+ const o = (t = e, Wt.get(t) || getInternalSlotForZonedDateTime(e));
2233
+ if (o) return createTemporalInstant(o.U);
2223
2234
  e = toPrimitive(e);
2224
2235
  }
2236
+ var t;
2225
2237
  validateString(e);
2226
- const t = parseIsoDateTime(e, [Qe]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2227
- return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.$ - o))));
2238
+ const o = parseIsoDateTime(e, [tt]), n = o.P.Z ? 0 : parseDateTimeUtcOffset(o.P.N), r = o.p;
2239
+ return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(o.t, o.u, o.T, r.D, r.I, r.O, r.F, r.S, r.$ - n))));
2228
2240
  }
2229
2241
  function addInstant(e, t) {
2230
2242
  return validateEpochNanoseconds(addTimeDurationToEpochNanoseconds(e, t));
@@ -2234,15 +2246,15 @@ function differenceInstant(e, t, o, n, r) {
2234
2246
  }
2235
2247
  function roundTemporalInstant(e, t, o, n) {
2236
2248
  return (function(e, t, o) {
2237
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => Mt[o](e / t) * t)(e[1], t, o));
2249
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Pt[o](e / t) * t)(e[1], t, o));
2238
2250
  })(e, t * nanosecondsForTimeUnit(o), n);
2239
2251
  }
2240
2252
  function temporalInstantToString(e, t, o) {
2241
2253
  const n = getOffsetNanosecondsFor(t || "UTC", e);
2242
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, Y)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2254
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, he)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2243
2255
  }
2244
2256
  function differenceTemporalInstant(e, t, o, n) {
2245
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, J);
2257
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), V, [], D, T);
2246
2258
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.U, r.U, a.V, a.H, a.q), a.L), e));
2247
2259
  }
2248
2260
  function addDurationToInstant(e, t, o) {
@@ -2250,26 +2262,22 @@ function addDurationToInstant(e, t, o) {
2250
2262
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.U, toInternalDurationRecordWith24HourDays(n).p));
2251
2263
  }
2252
2264
  function validateEpochNanoseconds(e) {
2253
- return ((e) => compareEpochNanoseconds(Se, e) * compareEpochNanoseconds(ye, e) <= 0)(e) || throwRangeError(de), e;
2254
- }
2255
- function getInternalSlotForInstant(e) {
2256
- return Ut.get(e);
2265
+ return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(P), e;
2257
2266
  }
2258
2267
  function getInternalSlotOrThrowForInstant(e) {
2259
- const t = getInternalSlotForInstant(e);
2260
- return t || throwTypeError(De), t;
2268
+ return getInternalSlotOrThrow(Wt, e);
2261
2269
  }
2262
2270
  function isInstant(e) {
2263
- return Ut.has(e);
2271
+ return Wt.has(e);
2264
2272
  }
2265
2273
  function clampEpochNanoseconds(e) {
2266
- return compareEpochNanoseconds(e, ye) > 0 ? ye : compareEpochNanoseconds(e, Se) < 0 ? Se : e;
2274
+ return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2267
2275
  }
2268
2276
  function systemTimeZoneIdentifier() {
2269
- return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new bt().resolvedOptions().timeZone);
2277
+ return xt && Ht + xt > Date.now() && Vt ? Vt : (Ht = Date.now(), Vt = new Rt().resolvedOptions().timeZone);
2270
2278
  }
2271
2279
  function setSystemTimeZoneIdCacheTtl(e) {
2272
- zt = e, e || (kt = void 0, Vt = -Infinity);
2280
+ xt = e, e || (Vt = void 0, Ht = -Infinity);
2273
2281
  }
2274
2282
  function systemUtcEpochNanoseconds() {
2275
2283
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2277,7 +2285,7 @@ function systemUtcEpochNanoseconds() {
2277
2285
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2278
2286
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2279
2287
  }
2280
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, c = 146097, s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 5, J = 6, _ = 9, K = 0, G = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
2288
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, c = 0, s = 1, l = 2, d = 3, m = 4, u = 5, T = 6, D = 9, h = 0, p = 1, g = 2, f = 3, I = 4, O = 5, F = 6, S = 7, y = 8, w = 9, v = [
2281
2289
  "year",
2282
2290
  "month",
2283
2291
  "week",
@@ -2288,20 +2296,39 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2288
2296
  "millisecond",
2289
2297
  "microsecond",
2290
2298
  "nanosecond"
2291
- ], ce = ie.map((e) => `${e}s`), se = [
2292
- i,
2299
+ ], E = v.map((e) => `${e}s`), M = [
2300
+ a,
2293
2301
  o,
2294
2302
  t,
2295
2303
  1e9,
2296
2304
  1e6,
2297
2305
  1e3,
2298
2306
  1
2299
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, le = "invalid date / time", de = "out-of-bounds date", me = "out-of-bounds duration", ue = "invalid formatting options", Te = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, De = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, he = "invalid `largestUnit` and `smallestUnit` options", pe = "mismatch of `month` and `monthCode`", ge = "value is not formattable", notObject = (e) => `not object: ${e}`, fe = "empty fields", Ie = "can't convert Temporal classes to number", Oe = "argument is undefined", Fe = Math.max, Se = createEpochNanosecondsFromEpochMilliseconds(-864e13), ye = createEpochNanosecondsFromEpochMilliseconds(864e13), we = compareEpochNanoseconds, ve = /* @__PURE__ */ new WeakMap();
2300
- var Ee = class {
2307
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", P = "out-of-bounds date", R = "out-of-bounds duration", N = "invalid formatting options", Z = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, $ = "invalid `largestUnit` and `smallestUnit` options", C = "mismatch of `month` and `monthCode`", Y = "value is not formattable", notObject = (e) => `not object: ${e}`, U = "empty fields", j = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, L = /* @__PURE__ */ new WeakMap();
2308
+ var k = class {
2309
+ static supportedLocalesOf(e, t = void 0) {
2310
+ return A.supportedLocalesOf(e, t);
2311
+ }
2312
+ constructor(e = void 0, t = void 0) {
2313
+ L.set(this, { Ae: new A(e, t) });
2314
+ }
2315
+ format(e) {
2316
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.format(durationRecordToDurationLikeObject(toTemporalDuration(e)));
2317
+ }
2318
+ formatToParts(e) {
2319
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.formatToParts(durationRecordToDurationLikeObject(toTemporalDuration(e)));
2320
+ }
2321
+ resolvedOptions() {
2322
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.resolvedOptions();
2323
+ }
2324
+ };
2325
+ defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
2326
+ const z = Symbol(), V = Symbol(), x = Symbol(), H = Symbol(), q = Symbol(), B = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", ce = "trunc", se = "halfCeil", le = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", he = "never", pe = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = [0, 0], Ee = compareEpochNanoseconds, Me = /* @__PURE__ */ new WeakMap();
2327
+ var be = class {
2301
2328
  constructor(e, t, o = "iso8601") {
2302
2329
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2303
2330
  validateString(t);
2304
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r._);
2331
+ const r = parseTimeZoneIdentifier(t), a = r._ ? getAvailableNamedTimeZoneIdentifier(r._) : formatOffsetTimeZoneIdentifier(r.G);
2305
2332
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
2306
2333
  }
2307
2334
  static from(e, t = void 0) {
@@ -2317,10 +2344,10 @@ var Ee = class {
2317
2344
  return getInternalSlotOrThrowForZonedDateTime(this).P;
2318
2345
  }
2319
2346
  get era() {
2320
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).oe;
2347
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
2321
2348
  }
2322
2349
  get eraYear() {
2323
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
2350
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
2324
2351
  }
2325
2352
  get year() {
2326
2353
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).t;
@@ -2359,35 +2386,35 @@ var Ee = class {
2359
2386
  return convertEpochNanosecondsToBigInt(getInternalSlotOrThrowForZonedDateTime(this).U);
2360
2387
  }
2361
2388
  get dayOfWeek() {
2362
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
2389
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2363
2390
  }
2364
2391
  get dayOfYear() {
2365
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2392
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
2366
2393
  }
2367
2394
  get weekOfYear() {
2368
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.ce;
2395
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.se;
2369
2396
  }
2370
2397
  get yearOfWeek() {
2371
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.t;
2398
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.t;
2372
2399
  }
2373
2400
  get hoursInDay() {
2374
2401
  const e = getInternalSlotOrThrowForZonedDateTime(this), t = getIsoDateTimeForZonedDateTimeSlot(e).o;
2375
2402
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.P, t), getStartOfDay(e.P, addDaysToIsoDate(t, 1))), -9) / o;
2376
2403
  }
2377
2404
  get daysInWeek() {
2378
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
2405
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
2379
2406
  }
2380
2407
  get daysInMonth() {
2381
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
2408
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
2382
2409
  }
2383
2410
  get daysInYear() {
2384
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
2411
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
2385
2412
  }
2386
2413
  get monthsInYear() {
2387
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
2414
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
2388
2415
  }
2389
2416
  get inLeapYear() {
2390
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
2417
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).Te;
2391
2418
  }
2392
2419
  get offsetNanoseconds() {
2393
2420
  return getOffsetNanosecondsForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this));
@@ -2400,25 +2427,25 @@ var Ee = class {
2400
2427
  validatePartialTemporalObject(e);
2401
2428
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2402
2429
  ...isoDateTimeToFields(o.Y, r),
2403
- [Ot.M]: formatUtcOffsetNanoseconds(n)
2430
+ [St.M]: formatUtcOffsetNanoseconds(n)
2404
2431
  }), prepareCalendarFields(o.Y, e, [
2405
- Ot.t,
2406
- Ot.u,
2407
- Ot.v,
2408
- Ot.T,
2409
- Ot.D,
2410
- Ot.I,
2411
- Ot.O,
2412
- Ot.F,
2413
- Ot.S,
2414
- Ot.$,
2415
- Ot.M
2416
- ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2417
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ot.M]), o.P, c, s, !0), o.P, o.Y);
2432
+ St.t,
2433
+ St.u,
2434
+ St.v,
2435
+ St.T,
2436
+ St.D,
2437
+ St.I,
2438
+ St.O,
2439
+ St.F,
2440
+ St.S,
2441
+ St.$,
2442
+ St.M
2443
+ ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, Q), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2444
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[St.M]), o.P, c, s, !0), o.P, o.Y);
2418
2445
  }
2419
2446
  withPlainTime(e = void 0) {
2420
2447
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
2421
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), g), t.P, t.Y);
2448
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), G), t.P, t.Y);
2422
2449
  }
2423
2450
  withTimeZone(e) {
2424
2451
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2441,39 +2468,39 @@ var Ee = class {
2441
2468
  return differenceTemporalZonedDateTime(-1, getInternalSlotOrThrowForZonedDateTime(this), e, t);
2442
2469
  }
2443
2470
  round(e) {
2444
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2445
- if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === _ && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2471
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2472
+ if (validateTemporalUnitValue(a, V, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), a === D && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2446
2473
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
2447
- if (a === H) {
2474
+ if (a === d) {
2448
2475
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2449
2476
  return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.U) ? addNanosecondsToEpochSeconds(o, -1) : t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2450
2477
  }
2451
2478
  const c = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
2452
- return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, F, s, t.P, g, I, !0), t.P, t.Y);
2479
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, te, s, t.P, G, Q, !0), t.P, t.Y);
2453
2480
  }
2454
2481
  equals(e) {
2455
2482
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
2456
2483
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2457
2484
  }
2458
2485
  toString(e = void 0) {
2459
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [j, W], j))(o), i = getRoundingModeOption(o, M), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2460
- A,
2461
- L,
2462
- k
2463
- ], A))(o);
2464
- validateTemporalUnitValue(c, l), c === q && throwRangeError(invalidField("smallestUnit"));
2465
- const d = toSecondsStringPrecisionRecord(c, r);
2466
- return temporalZonedDateTimeToString(t, d.$e, n, s, a, d.ve, d.Ee, i);
2486
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, ce), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2487
+ Ie,
2488
+ Oe,
2489
+ Fe
2490
+ ], Ie))(o);
2491
+ validateTemporalUnitValue(c, V), c === m && throwRangeError(invalidField("smallestUnit"));
2492
+ const l = toSecondsStringPrecisionRecord(c, r);
2493
+ return temporalZonedDateTimeToString(t, l.ve, n, s, a, l.Me, l.Ee, i);
2467
2494
  }
2468
2495
  toLocaleString(e = void 0, t = void 0) {
2469
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2470
- return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(Te), formatDateTime(n, createTemporalInstant(o.U));
2496
+ const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, x, o.P);
2497
+ return "iso8601" === o.Y || calendarEquals(o.Y, n.Ne.calendar) || throwRangeError(Z), formatDateTime(n, createTemporalInstant(o.U));
2471
2498
  }
2472
2499
  toJSON() {
2473
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, $, A, j);
2500
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, Te, Ie, ge);
2474
2501
  }
2475
2502
  valueOf() {
2476
- throwTypeError(Ie);
2503
+ throwTypeError(j);
2477
2504
  }
2478
2505
  startOfDay() {
2479
2506
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2481,8 +2508,8 @@ var Ee = class {
2481
2508
  }
2482
2509
  getTimeZoneTransition(e) {
2483
2510
  const t = getInternalSlotOrThrowForZonedDateTime(this);
2484
- void 0 === e && throwTypeError(Oe);
2485
- const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], T), n = ((e, t, o) => {
2511
+ void 0 === e && throwTypeError(W);
2512
+ const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], B), n = ((e, t, o) => {
2486
2513
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2487
2514
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
2488
2515
  return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a > r ? a + 31536e3 : r, o);
@@ -2504,9 +2531,9 @@ var Ee = class {
2504
2531
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2505
2532
  }
2506
2533
  };
2507
- defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
2508
- const Me = createNullPrototypeObject(), be = createNullPrototypeObject(), Pe = /* @__PURE__ */ new WeakMap();
2509
- var Re = class {
2534
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
2535
+ const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), Ne = /* @__PURE__ */ new WeakMap();
2536
+ var Ze = class {
2510
2537
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2511
2538
  const d = [
2512
2539
  e,
@@ -2522,118 +2549,103 @@ var Re = class {
2522
2549
  ].map(toIntegerWithTruncation);
2523
2550
  validateString(l);
2524
2551
  const u = canonicalizeCalendar(l);
2525
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(le), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2552
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(b), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2526
2553
  }
2527
2554
  static from(e, t = void 0) {
2528
2555
  return toTemporalDateTime(e, t);
2529
2556
  }
2530
2557
  static compare(e, t) {
2531
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).G, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).G);
2558
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).K, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).K);
2532
2559
  }
2533
2560
  get calendarId() {
2534
2561
  return getInternalSlotOrThrowForPlainDateTime(this).Y;
2535
2562
  }
2536
2563
  get era() {
2537
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2538
- return calendarIsoToDate(e.Y, e.G.o).oe;
2564
+ return calendarDateForPlainDateTime(this).ne;
2539
2565
  }
2540
2566
  get eraYear() {
2541
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2542
- return calendarIsoToDate(e.Y, e.G.o).ne;
2567
+ return calendarDateForPlainDateTime(this).re;
2543
2568
  }
2544
2569
  get year() {
2545
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2546
- return calendarIsoToDate(e.Y, e.G.o).t;
2570
+ return calendarDateForPlainDateTime(this).t;
2547
2571
  }
2548
2572
  get month() {
2549
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2550
- return calendarIsoToDate(e.Y, e.G.o).u;
2573
+ return calendarDateForPlainDateTime(this).u;
2551
2574
  }
2552
2575
  get monthCode() {
2553
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2554
- return calendarIsoToDate(e.Y, e.G.o).v;
2576
+ return calendarDateForPlainDateTime(this).v;
2555
2577
  }
2556
2578
  get day() {
2557
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2558
- return calendarIsoToDate(e.Y, e.G.o).T;
2579
+ return calendarDateForPlainDateTime(this).T;
2559
2580
  }
2560
2581
  get hour() {
2561
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.D;
2582
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.D;
2562
2583
  }
2563
2584
  get minute() {
2564
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.I;
2585
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.I;
2565
2586
  }
2566
2587
  get second() {
2567
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.O;
2588
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.O;
2568
2589
  }
2569
2590
  get millisecond() {
2570
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.F;
2591
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.F;
2571
2592
  }
2572
2593
  get microsecond() {
2573
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.S;
2594
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.S;
2574
2595
  }
2575
2596
  get nanosecond() {
2576
- return getInternalSlotOrThrowForPlainDateTime(this).G.p.$;
2597
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.$;
2577
2598
  }
2578
2599
  get dayOfWeek() {
2579
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2580
- return calendarIsoToDate(e.Y, e.G.o).re;
2600
+ return calendarDateForPlainDateTime(this).ae;
2581
2601
  }
2582
2602
  get dayOfYear() {
2583
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2584
- return calendarIsoToDate(e.Y, e.G.o).ae;
2603
+ return calendarDateForPlainDateTime(this).ie;
2585
2604
  }
2586
2605
  get weekOfYear() {
2587
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2588
- return calendarIsoToDate(e.Y, e.G.o).ie.ce;
2606
+ return calendarDateForPlainDateTime(this).ce.se;
2589
2607
  }
2590
2608
  get yearOfWeek() {
2591
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2592
- return calendarIsoToDate(e.Y, e.G.o).ie.t;
2609
+ return calendarDateForPlainDateTime(this).ce.t;
2593
2610
  }
2594
2611
  get daysInWeek() {
2595
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2596
- return calendarIsoToDate(e.Y, e.G.o).se;
2612
+ return calendarDateForPlainDateTime(this).le;
2597
2613
  }
2598
2614
  get daysInMonth() {
2599
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2600
- return calendarIsoToDate(e.Y, e.G.o).le;
2615
+ return calendarDateForPlainDateTime(this).de;
2601
2616
  }
2602
2617
  get daysInYear() {
2603
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2604
- return calendarIsoToDate(e.Y, e.G.o).de;
2618
+ return calendarDateForPlainDateTime(this).me;
2605
2619
  }
2606
2620
  get monthsInYear() {
2607
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2608
- return calendarIsoToDate(e.Y, e.G.o).me;
2621
+ return calendarDateForPlainDateTime(this).ue;
2609
2622
  }
2610
2623
  get inLeapYear() {
2611
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2612
- return calendarIsoToDate(e.Y, e.G.o).ue;
2624
+ return calendarDateForPlainDateTime(this).Te;
2613
2625
  }
2614
2626
  with(e, t = void 0) {
2615
2627
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2616
2628
  validatePartialTemporalObject(e);
2617
- const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.G), prepareCalendarFields(o.Y, e, [
2618
- Ot.t,
2619
- Ot.u,
2620
- Ot.v,
2621
- Ot.T,
2622
- Ot.D,
2623
- Ot.I,
2624
- Ot.O,
2625
- Ot.F,
2626
- Ot.S,
2627
- Ot.$
2629
+ const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.K), prepareCalendarFields(o.Y, e, [
2630
+ St.t,
2631
+ St.u,
2632
+ St.v,
2633
+ St.T,
2634
+ St.D,
2635
+ St.I,
2636
+ St.O,
2637
+ St.F,
2638
+ St.S,
2639
+ St.$
2628
2640
  ]));
2629
2641
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2630
2642
  }
2631
2643
  withPlainTime(e = void 0) {
2632
2644
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2633
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t.G.o, toTimeRecordOrMidnight(e)), t.Y);
2645
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.K.o, toTimeRecordOrMidnight(e)), t.Y);
2634
2646
  }
2635
2647
  withCalendar(e) {
2636
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).G, toTemporalCalendarIdentifier(e));
2648
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).K, toTemporalCalendarIdentifier(e));
2637
2649
  }
2638
2650
  add(e, t = void 0) {
2639
2651
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2648,44 +2660,44 @@ var Re = class {
2648
2660
  return differenceTemporalPlainDateTime(-1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
2649
2661
  }
2650
2662
  round(e) {
2651
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2652
- return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t.G, n, a, r), t.Y);
2663
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2664
+ return validateTemporalUnitValue(a, V, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.Y);
2653
2665
  }
2654
2666
  equals(e) {
2655
2667
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2656
- return !compareIsoDateTime(t.G, o.G) && calendarEquals(t.Y, o.Y);
2668
+ return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.Y, o.Y);
2657
2669
  }
2658
2670
  toString(e = void 0) {
2659
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, M), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2660
- validateTemporalUnitValue(i, l), i === q && throwRangeError(invalidField("smallestUnit"));
2671
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, ce), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2672
+ validateTemporalUnitValue(i, V), i === m && throwRangeError(invalidField("smallestUnit"));
2661
2673
  const c = toSecondsStringPrecisionRecord(i, r);
2662
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.G, c.ve, c.Ee, a)), t.Y, c.$e, n);
2674
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, c.Me, c.Ee, a)), t.Y, c.ve, n);
2663
2675
  }
2664
2676
  toLocaleString(e = void 0, t = void 0) {
2665
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2677
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, x), this);
2666
2678
  }
2667
2679
  toJSON() {
2668
2680
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2669
- return isoDateTimeToString(e.G, e.Y, void 0, $);
2681
+ return isoDateTimeToString(e.K, e.Y, void 0, Te);
2670
2682
  }
2671
2683
  valueOf() {
2672
- throwTypeError(Ie);
2684
+ throwTypeError(j);
2673
2685
  }
2674
2686
  toZonedDateTime(e, t = void 0) {
2675
2687
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2676
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.G, r), n, o.Y);
2688
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.K, r), n, o.Y);
2677
2689
  }
2678
2690
  toPlainDate() {
2679
2691
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2680
- return createTemporalDate(e.G.o, e.Y);
2692
+ return createTemporalDate(e.K.o, e.Y);
2681
2693
  }
2682
2694
  toPlainTime() {
2683
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).G.p);
2695
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2684
2696
  }
2685
2697
  };
2686
- defineStringTag(Re.prototype, "Temporal.PlainDateTime"), renameFunction(Re, "PlainDateTime");
2687
- const Ne = /* @__PURE__ */ new WeakMap();
2688
- var Ze = class {
2698
+ defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2699
+ const $e = /* @__PURE__ */ new WeakMap();
2700
+ var Ce = class {
2689
2701
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2690
2702
  const i = [
2691
2703
  e,
@@ -2695,7 +2707,7 @@ var Ze = class {
2695
2707
  r,
2696
2708
  a
2697
2709
  ].map(toIntegerWithTruncation);
2698
- isValidTime(...i) || throwRangeError(le), createTemporalTime(createTimeRecord(...i), this);
2710
+ isValidTime(...i) || throwRangeError(b), createTemporalTime(createTimeRecord(...i), this);
2699
2711
  }
2700
2712
  static from(e, t = void 0) {
2701
2713
  return createTemporalTime(toTemporalTime(e, t));
@@ -2745,54 +2757,54 @@ var Ze = class {
2745
2757
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2746
2758
  }
2747
2759
  round(e) {
2748
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, R), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2749
- return validateTemporalUnitValue(a, l), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2760
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2761
+ return validateTemporalUnitValue(a, V), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2750
2762
  }
2751
2763
  equals(e) {
2752
2764
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2753
2765
  }
2754
2766
  toString(e = void 0) {
2755
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2756
- validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
2767
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2768
+ validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
2757
2769
  const i = toSecondsStringPrecisionRecord(a, n);
2758
- return timeRecordToString(roundTime(t, i.ve, i.Ee, r), i.$e);
2770
+ return timeRecordToString(roundTime(t, i.Me, i.Ee, r), i.ve);
2759
2771
  }
2760
2772
  toLocaleString(e = void 0, t = void 0) {
2761
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2773
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, V), this);
2762
2774
  }
2763
2775
  toJSON() {
2764
2776
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2765
2777
  }
2766
2778
  valueOf() {
2767
- throwTypeError(Ie);
2779
+ throwTypeError(j);
2768
2780
  }
2769
2781
  };
2770
- defineStringTag(Ze.prototype, "Temporal.PlainTime"), renameFunction(Ze, "PlainTime");
2771
- const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", Ue = "[01]\\d|2[0-3]", je = "[0-5]\\d", We = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, Ae = optionalChain([
2772
- `(?<d>${Ue})`,
2773
- `(?<y>:?)(?<e>${je})`,
2782
+ defineStringTag(Ce.prototype, "Temporal.PlainTime"), renameFunction(Ce, "PlainTime");
2783
+ const Ye = "\\d{4}|[-+]\\d{6}", Ue = "0[1-9]|1[0-2]", je = "0[1-9]|[12]\\d|30|31", We = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", Le = `(?<a>${Ye})(?<x>-?)(?<b>${Ue})\\k<x>(?<c>${je})`, ke = optionalChain([
2784
+ `(?<d>${We})`,
2785
+ `(?<y>:?)(?<e>${Ae})`,
2774
2786
  "\\k<y>(?<f>[0-5]\\d|60)",
2775
2787
  "[.,](?<g>\\d{1,9})"
2776
- ]), Le = optionalChain([
2777
- `([+-])(${Ue})`,
2778
- `(?<z>:?)(${je})`,
2779
- `\\k<z>(${je})`,
2788
+ ]), ze = optionalChain([
2789
+ `([+-])(${We})`,
2790
+ `(?<z>:?)(${Ae})`,
2791
+ `\\k<z>(${Ae})`,
2780
2792
  "[.,](\\d{1,9})"
2781
- ]), ke = optionalChain([
2782
- We,
2783
- `[ tT]${Ae}`,
2784
- `(?<h>${Le})`
2785
- ]), ze = `(?<l>${$e})-?(?<m>${Ce})`, Ve = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, xe = `(?<h>${Le})|(?<i>[zZ])`, He = `([+-])(${Ue})(?::?(${je}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${He})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Ke = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2786
- We,
2787
- `[ tT]${Ae}`,
2788
- xe
2789
- ])}${qe}${_e}`), Xe = createRegExp(`${ke}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${Le})?(?:${qe})?${_e}`), tt = createRegExp(`(${ke}|${Ve})(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${ze})(?:${qe})?${_e}`), nt = [createRegExp(`${Ve}(${qe})?(${Je})*`), createRegExp(`${ze}(${qe})?(${Je})*`)], rt = createRegExp(He), at = createRegExp(Be), it = createRegExp(Le), ct = /* @__PURE__ */ new WeakMap();
2790
- var st = class {
2793
+ ]), Ve = optionalChain([
2794
+ Le,
2795
+ `[ tT]${ke}`,
2796
+ `(?<h>${ze})`
2797
+ ]), xe = `(?<l>${Ye})-?(?<m>${Ue})`, He = `(?:--)?(?<m>${Ue})-?(?<n>${je})`, qe = `(?<h>${ze})|(?<i>[zZ])`, Be = `([+-])(${We})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Je = `\\[!?(?<j>${Be})\\]`, _e = join("[a-zA-Z\\d]+", "-"), Xe = `\\[(!)?([a-z_][a-z\\d_-]*)=(${_e})\\]`, Ge = `(?<k>(${Xe})*)`, Ke = RegExp(Xe, "g"), Qe = createRegExp(`${optionalChain([
2798
+ Le,
2799
+ `[ tT]${ke}`,
2800
+ qe
2801
+ ])}${Je}${Ge}`), et = createRegExp(`${Ve}(?:${Je})?${Ge}`), tt = createRegExp(`${Le}[ tT]${ke}(?:${qe})(?:${Je})?${Ge}`), ot = createRegExp(`(${Le}[ tT]|[tT]?)${ke}(?<h>${ze})?(?:${Je})?${Ge}`), nt = createRegExp(`(${Ve}|${He})(?:${Je})?${Ge}`), rt = createRegExp(`(${Ve}|${xe})(?:${Je})?${Ge}`), at = [createRegExp(`${He}(${Je})?(${Xe})*`), createRegExp(`${xe}(${Je})?(${Xe})*`)], it = createRegExp(Be), ct = createRegExp(_e), st = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2802
+ var dt = class {
2791
2803
  constructor(e, t, o = "iso8601", n = 1972) {
2792
2804
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2793
2805
  validateString(o);
2794
2806
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2795
- isValidIsoDate(c, r, a) || throwRangeError(le), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2807
+ isValidIsoDate(c, r, a) || throwRangeError(b), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2796
2808
  }
2797
2809
  static from(e, t = void 0) {
2798
2810
  return toTemporalMonthDay(e, t);
@@ -2810,11 +2822,11 @@ var st = class {
2810
2822
  }
2811
2823
  with(e, t = void 0) {
2812
2824
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2813
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, u), prepareCalendarFields(o.Y, e, [
2814
- Ot.t,
2815
- Ot.u,
2816
- Ot.v,
2817
- Ot.T
2825
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, q), prepareCalendarFields(o.Y, e, [
2826
+ St.t,
2827
+ St.u,
2828
+ St.v,
2829
+ St.T
2818
2830
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2819
2831
  }
2820
2832
  equals(e) {
@@ -2825,27 +2837,27 @@ var st = class {
2825
2837
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2826
2838
  }
2827
2839
  toLocaleString(e = void 0, t = void 0) {
2828
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2840
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, z), this);
2829
2841
  }
2830
2842
  toJSON() {
2831
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), $);
2843
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), Te);
2832
2844
  }
2833
2845
  valueOf() {
2834
- throwTypeError(Ie);
2846
+ throwTypeError(j);
2835
2847
  }
2836
2848
  toPlainDate(e) {
2837
2849
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2838
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ot.t], [])), h), t.Y);
2850
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [St.t], [])), _), t.Y);
2839
2851
  }
2840
2852
  };
2841
- defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2842
- const lt = /* @__PURE__ */ new WeakMap();
2843
- var dt = class {
2853
+ defineStringTag(dt.prototype, "Temporal.PlainMonthDay"), renameFunction(dt, "PlainMonthDay");
2854
+ const mt = /* @__PURE__ */ new WeakMap();
2855
+ var ut = class {
2844
2856
  constructor(e, t, o = "iso8601", n = 1) {
2845
2857
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2846
2858
  validateString(o);
2847
2859
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2848
- isValidIsoDate(r, a, c) || throwRangeError(le), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2860
+ isValidIsoDate(r, a, c) || throwRangeError(b), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2849
2861
  }
2850
2862
  static from(e, t = void 0) {
2851
2863
  return toTemporalYearMonth(e, t);
@@ -2857,48 +2869,39 @@ var dt = class {
2857
2869
  return getInternalSlotOrThrowForPlainYearMonth(this).Y;
2858
2870
  }
2859
2871
  get era() {
2860
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2861
- return calendarIsoToDate(e.Y, e.o).oe;
2872
+ return calendarDateForPlainYearMonth(this).ne;
2862
2873
  }
2863
2874
  get eraYear() {
2864
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2865
- return calendarIsoToDate(e.Y, e.o).ne;
2875
+ return calendarDateForPlainYearMonth(this).re;
2866
2876
  }
2867
2877
  get year() {
2868
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2869
- return calendarIsoToDate(e.Y, e.o).t;
2878
+ return calendarDateForPlainYearMonth(this).t;
2870
2879
  }
2871
2880
  get month() {
2872
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2873
- return calendarIsoToDate(e.Y, e.o).u;
2881
+ return calendarDateForPlainYearMonth(this).u;
2874
2882
  }
2875
2883
  get monthCode() {
2876
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2877
- return calendarIsoToDate(e.Y, e.o).v;
2884
+ return calendarDateForPlainYearMonth(this).v;
2878
2885
  }
2879
2886
  get daysInYear() {
2880
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2881
- return calendarIsoToDate(e.Y, e.o).de;
2887
+ return calendarDateForPlainYearMonth(this).me;
2882
2888
  }
2883
2889
  get daysInMonth() {
2884
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2885
- return calendarIsoToDate(e.Y, e.o).le;
2890
+ return calendarDateForPlainYearMonth(this).de;
2886
2891
  }
2887
2892
  get monthsInYear() {
2888
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2889
- return calendarIsoToDate(e.Y, e.o).me;
2893
+ return calendarDateForPlainYearMonth(this).ue;
2890
2894
  }
2891
2895
  get inLeapYear() {
2892
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2893
- return calendarIsoToDate(e.Y, e.o).ue;
2896
+ return calendarDateForPlainYearMonth(this).Te;
2894
2897
  }
2895
2898
  with(e, t = void 0) {
2896
2899
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2897
2900
  validatePartialTemporalObject(e);
2898
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2899
- Ot.t,
2900
- Ot.u,
2901
- Ot.v
2901
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, H), prepareCalendarFields(o.Y, e, [
2902
+ St.t,
2903
+ St.u,
2904
+ St.v
2902
2905
  ]));
2903
2906
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2904
2907
  }
@@ -2922,27 +2925,27 @@ var dt = class {
2922
2925
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2923
2926
  }
2924
2927
  toLocaleString(e = void 0, t = void 0) {
2925
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2928
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, z), this);
2926
2929
  }
2927
2930
  toJSON() {
2928
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), $);
2931
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), Te);
2929
2932
  }
2930
2933
  valueOf() {
2931
- throwTypeError(Ie);
2934
+ throwTypeError(j);
2932
2935
  }
2933
2936
  toPlainDate(e) {
2934
2937
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2935
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ot.T], [])), h), t.Y);
2938
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [St.T], [])), _), t.Y);
2936
2939
  }
2937
2940
  };
2938
- defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2939
- const mt = /* @__PURE__ */ new WeakMap();
2940
- var ut = class {
2941
+ defineStringTag(ut.prototype, "Temporal.PlainYearMonth"), renameFunction(ut, "PlainYearMonth");
2942
+ const Tt = /* @__PURE__ */ new WeakMap();
2943
+ var Dt = class {
2941
2944
  constructor(e, t, o, n = "iso8601") {
2942
2945
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2943
2946
  validateString(n);
2944
2947
  const c = canonicalizeCalendar(n);
2945
- isValidIsoDate(r, a, i) || throwRangeError(le), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2948
+ isValidIsoDate(r, a, i) || throwRangeError(b), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2946
2949
  }
2947
2950
  static from(e, t = void 0) {
2948
2951
  return toTemporalDate(e, t);
@@ -2954,72 +2957,57 @@ var ut = class {
2954
2957
  return getInternalSlotOrThrowForPlainDate(this).Y;
2955
2958
  }
2956
2959
  get era() {
2957
- const e = getInternalSlotOrThrowForPlainDate(this);
2958
- return calendarIsoToDate(e.Y, e.o).oe;
2960
+ return calendarDateForPlainDate(this).ne;
2959
2961
  }
2960
2962
  get eraYear() {
2961
- const e = getInternalSlotOrThrowForPlainDate(this);
2962
- return calendarIsoToDate(e.Y, e.o).ne;
2963
+ return calendarDateForPlainDate(this).re;
2963
2964
  }
2964
2965
  get year() {
2965
- const e = getInternalSlotOrThrowForPlainDate(this);
2966
- return calendarIsoToDate(e.Y, e.o).t;
2966
+ return calendarDateForPlainDate(this).t;
2967
2967
  }
2968
2968
  get month() {
2969
- const e = getInternalSlotOrThrowForPlainDate(this);
2970
- return calendarIsoToDate(e.Y, e.o).u;
2969
+ return calendarDateForPlainDate(this).u;
2971
2970
  }
2972
2971
  get monthCode() {
2973
- const e = getInternalSlotOrThrowForPlainDate(this);
2974
- return calendarIsoToDate(e.Y, e.o).v;
2972
+ return calendarDateForPlainDate(this).v;
2975
2973
  }
2976
2974
  get day() {
2977
- const e = getInternalSlotOrThrowForPlainDate(this);
2978
- return calendarIsoToDate(e.Y, e.o).T;
2975
+ return calendarDateForPlainDate(this).T;
2979
2976
  }
2980
2977
  get dayOfWeek() {
2981
- const e = getInternalSlotOrThrowForPlainDate(this);
2982
- return calendarIsoToDate(e.Y, e.o).re;
2978
+ return calendarDateForPlainDate(this).ae;
2983
2979
  }
2984
2980
  get dayOfYear() {
2985
- const e = getInternalSlotOrThrowForPlainDate(this);
2986
- return calendarIsoToDate(e.Y, e.o).ae;
2981
+ return calendarDateForPlainDate(this).ie;
2987
2982
  }
2988
2983
  get weekOfYear() {
2989
- const e = getInternalSlotOrThrowForPlainDate(this);
2990
- return calendarIsoToDate(e.Y, e.o).ie.ce;
2984
+ return calendarDateForPlainDate(this).ce.se;
2991
2985
  }
2992
2986
  get yearOfWeek() {
2993
- const e = getInternalSlotOrThrowForPlainDate(this);
2994
- return calendarIsoToDate(e.Y, e.o).ie.t;
2987
+ return calendarDateForPlainDate(this).ce.t;
2995
2988
  }
2996
2989
  get daysInWeek() {
2997
- const e = getInternalSlotOrThrowForPlainDate(this);
2998
- return calendarIsoToDate(e.Y, e.o).se;
2990
+ return calendarDateForPlainDate(this).le;
2999
2991
  }
3000
2992
  get daysInMonth() {
3001
- const e = getInternalSlotOrThrowForPlainDate(this);
3002
- return calendarIsoToDate(e.Y, e.o).le;
2993
+ return calendarDateForPlainDate(this).de;
3003
2994
  }
3004
2995
  get daysInYear() {
3005
- const e = getInternalSlotOrThrowForPlainDate(this);
3006
- return calendarIsoToDate(e.Y, e.o).de;
2996
+ return calendarDateForPlainDate(this).me;
3007
2997
  }
3008
2998
  get monthsInYear() {
3009
- const e = getInternalSlotOrThrowForPlainDate(this);
3010
- return calendarIsoToDate(e.Y, e.o).me;
2999
+ return calendarDateForPlainDate(this).ue;
3011
3000
  }
3012
3001
  get inLeapYear() {
3013
- const e = getInternalSlotOrThrowForPlainDate(this);
3014
- return calendarIsoToDate(e.Y, e.o).ue;
3002
+ return calendarDateForPlainDate(this).Te;
3015
3003
  }
3016
3004
  toPlainYearMonth() {
3017
3005
  const e = getInternalSlotOrThrowForPlainDate(this);
3018
- return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3006
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, z), _), e.Y);
3019
3007
  }
3020
3008
  toPlainMonthDay() {
3021
3009
  const e = getInternalSlotOrThrowForPlainDate(this);
3022
- return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3010
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, z), _), e.Y);
3023
3011
  }
3024
3012
  add(e, t = void 0) {
3025
3013
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -3030,11 +3018,11 @@ var ut = class {
3030
3018
  with(e, t = void 0) {
3031
3019
  const o = getInternalSlotOrThrowForPlainDate(this);
3032
3020
  validatePartialTemporalObject(e);
3033
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, s), prepareCalendarFields(o.Y, e, [
3034
- Ot.t,
3035
- Ot.u,
3036
- Ot.v,
3037
- Ot.T
3021
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, z), prepareCalendarFields(o.Y, e, [
3022
+ St.t,
3023
+ St.u,
3024
+ St.v,
3025
+ St.T
3038
3026
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3039
3027
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3040
3028
  }
@@ -3062,43 +3050,43 @@ var ut = class {
3062
3050
  const t = e.timeZone;
3063
3051
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
3064
3052
  } else n = toTemporalTimeZoneIdentifier(e);
3065
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), g), n, t.Y);
3053
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), G), n, t.Y);
3066
3054
  }
3067
3055
  toString(e = void 0) {
3068
3056
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
3069
3057
  }
3070
3058
  toLocaleString(e = void 0, t = void 0) {
3071
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, s), this);
3059
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, z), this);
3072
3060
  }
3073
3061
  toJSON() {
3074
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), $);
3062
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), Te);
3075
3063
  }
3076
3064
  valueOf() {
3077
- throwTypeError(Ie);
3065
+ throwTypeError(j);
3078
3066
  }
3079
3067
  };
3080
- defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
3081
- const Tt = createNullPrototypeObject(), Dt = {
3068
+ defineStringTag(Dt.prototype, "Temporal.PlainDate"), renameFunction(Dt, "PlainDate");
3069
+ const ht = createNullPrototypeObject(), pt = {
3082
3070
  chinese: createLruCache(2e3),
3083
3071
  dangi: createLruCache(2e3)
3084
- }, ht = {
3072
+ }, gt = {
3085
3073
  chinese: createLruCache(1e4),
3086
3074
  dangi: createLruCache(1e4)
3087
- }, pt = createLruCache(5e3), gt = createLruCache(1e3), ft = new Map([["ah", 1], ["bh", !1]]), It = createNullPrototypeObject({
3075
+ }, ft = createLruCache(5e3), It = createLruCache(1e3), Ot = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), Ft = createNullPrototypeObject({
3088
3076
  iso8601: /* @__PURE__ */ new Map(),
3089
- buddhist: new Map([["be", 1]]),
3077
+ buddhist: /* @__PURE__ */ new Map([["be", 1]]),
3090
3078
  chinese: /* @__PURE__ */ new Map(),
3091
- coptic: new Map([["am", 1]]),
3079
+ coptic: /* @__PURE__ */ new Map([["am", 1]]),
3092
3080
  dangi: /* @__PURE__ */ new Map(),
3093
- ethioaa: new Map([["aa", 1]]),
3094
- ethiopic: new Map([["am", 1], ["aa", -5499]]),
3095
- gregory: new Map([["ce", 1], ["bce", !1]]),
3096
- hebrew: new Map([["am", 1]]),
3097
- indian: new Map([["shaka", 1]]),
3098
- "islamic-civil": ft,
3099
- "islamic-tbla": ft,
3100
- "islamic-umalqura": ft,
3101
- japanese: new Map([
3081
+ ethioaa: /* @__PURE__ */ new Map([["aa", 1]]),
3082
+ ethiopic: /* @__PURE__ */ new Map([["am", 1], ["aa", -5499]]),
3083
+ gregory: /* @__PURE__ */ new Map([["ce", 1], ["bce", !1]]),
3084
+ hebrew: /* @__PURE__ */ new Map([["am", 1]]),
3085
+ indian: /* @__PURE__ */ new Map([["shaka", 1]]),
3086
+ "islamic-civil": Ot,
3087
+ "islamic-tbla": Ot,
3088
+ "islamic-umalqura": Ot,
3089
+ japanese: /* @__PURE__ */ new Map([
3102
3090
  ["reiwa", 2019],
3103
3091
  ["heisei", 1989],
3104
3092
  ["showa", 1926],
@@ -3107,11 +3095,11 @@ const Tt = createNullPrototypeObject(), Dt = {
3107
3095
  ["ce", 1],
3108
3096
  ["bce", !1]
3109
3097
  ]),
3110
- persian: new Map([["ap", 1]]),
3111
- roc: new Map([["roc", 1], ["broc", !1]])
3112
- }), Ot = {
3113
- oe: "era",
3114
- ne: "eraYear",
3098
+ persian: /* @__PURE__ */ new Map([["ap", 1]]),
3099
+ roc: /* @__PURE__ */ new Map([["roc", 1], ["broc", !1]])
3100
+ }), St = {
3101
+ ne: "era",
3102
+ re: "eraYear",
3115
3103
  t: "year",
3116
3104
  u: "month",
3117
3105
  v: "monthCode",
@@ -3124,41 +3112,41 @@ const Tt = createNullPrototypeObject(), Dt = {
3124
3112
  $: "nanosecond",
3125
3113
  M: "offset",
3126
3114
  P: "timeZone"
3127
- }, Ft = [
3128
- Ot.oe,
3129
- Ot.ne,
3130
- Ot.t,
3131
- Ot.u,
3132
- Ot.v,
3133
- Ot.T,
3134
- Ot.D,
3135
- Ot.I,
3136
- Ot.O,
3137
- Ot.F,
3138
- Ot.S,
3139
- Ot.$,
3140
- Ot.M,
3141
- Ot.P
3142
- ], St = {
3143
- [Ot.oe]: [toString],
3144
- [Ot.ne]: [toIntegerWithTruncation],
3145
- [Ot.t]: [toIntegerWithTruncation],
3146
- [Ot.u]: [toPositiveIntegerWithTruncation],
3147
- [Ot.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3148
- [Ot.T]: [toPositiveIntegerWithTruncation],
3149
- [Ot.D]: [toIntegerWithTruncation, 0],
3150
- [Ot.I]: [toIntegerWithTruncation, 0],
3151
- [Ot.O]: [toIntegerWithTruncation, 0],
3152
- [Ot.F]: [toIntegerWithTruncation, 0],
3153
- [Ot.S]: [toIntegerWithTruncation, 0],
3154
- [Ot.$]: [toIntegerWithTruncation, 0],
3155
- [Ot.M]: [(e) => {
3115
+ }, yt = [
3116
+ St.ne,
3117
+ St.re,
3118
+ St.t,
3119
+ St.u,
3120
+ St.v,
3121
+ St.T,
3122
+ St.D,
3123
+ St.I,
3124
+ St.O,
3125
+ St.F,
3126
+ St.S,
3127
+ St.$,
3128
+ St.M,
3129
+ St.P
3130
+ ], wt = {
3131
+ [St.ne]: [toString],
3132
+ [St.re]: [toIntegerWithTruncation],
3133
+ [St.t]: [toIntegerWithTruncation],
3134
+ [St.u]: [toPositiveIntegerWithTruncation],
3135
+ [St.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3136
+ [St.T]: [toPositiveIntegerWithTruncation],
3137
+ [St.D]: [toIntegerWithTruncation, 0],
3138
+ [St.I]: [toIntegerWithTruncation, 0],
3139
+ [St.O]: [toIntegerWithTruncation, 0],
3140
+ [St.F]: [toIntegerWithTruncation, 0],
3141
+ [St.S]: [toIntegerWithTruncation, 0],
3142
+ [St.$]: [toIntegerWithTruncation, 0],
3143
+ [St.M]: [(e) => {
3156
3144
  const t = toPrimitive(e);
3157
3145
  return validateString(t), parseDateTimeUtcOffset(t), t;
3158
3146
  }],
3159
- [Ot.P]: [toTemporalTimeZoneIdentifier]
3160
- }, yt = /* @__PURE__ */ new WeakMap(), wt = signTimeDuration;
3161
- var vt = class {
3147
+ [St.P]: [toTemporalTimeZoneIdentifier]
3148
+ }, vt = /* @__PURE__ */ new WeakMap(), Et = signTimeDuration;
3149
+ var Mt = class {
3162
3150
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3163
3151
  createTemporalDuration(createTemporalDurationSlot([
3164
3152
  e,
@@ -3178,40 +3166,40 @@ var vt = class {
3178
3166
  }
3179
3167
  static compare(e, t, o = void 0) {
3180
3168
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
3181
- if (n.every((e, t) => r[t] === e)) return 0;
3169
+ if (!n.some((e, t) => r[t] !== e)) return 0;
3182
3170
  const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3183
3171
  let d, m;
3184
- return a.Me && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, s, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), we(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3172
+ return a.be && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.be, s, _), addZonedDateTime(a.be, l, _)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.Pe || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.Pe), m = dateDurationDays(l.A, a.Pe)) : (d = n[f], m = r[f]), Ee(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3185
3173
  }
3186
3174
  get years() {
3187
- return getInternalSlotOrThrowForDuration(this)[K];
3175
+ return getInternalSlotOrThrowForDuration(this)[h];
3188
3176
  }
3189
3177
  get months() {
3190
- return getInternalSlotOrThrowForDuration(this)[G];
3178
+ return getInternalSlotOrThrowForDuration(this)[p];
3191
3179
  }
3192
3180
  get weeks() {
3193
- return getInternalSlotOrThrowForDuration(this)[X];
3181
+ return getInternalSlotOrThrowForDuration(this)[g];
3194
3182
  }
3195
3183
  get days() {
3196
- return getInternalSlotOrThrowForDuration(this)[Q];
3184
+ return getInternalSlotOrThrowForDuration(this)[f];
3197
3185
  }
3198
3186
  get hours() {
3199
- return getInternalSlotOrThrowForDuration(this)[ee];
3187
+ return getInternalSlotOrThrowForDuration(this)[I];
3200
3188
  }
3201
3189
  get minutes() {
3202
- return getInternalSlotOrThrowForDuration(this)[te];
3190
+ return getInternalSlotOrThrowForDuration(this)[O];
3203
3191
  }
3204
3192
  get seconds() {
3205
- return getInternalSlotOrThrowForDuration(this)[oe];
3193
+ return getInternalSlotOrThrowForDuration(this)[F];
3206
3194
  }
3207
3195
  get milliseconds() {
3208
- return getInternalSlotOrThrowForDuration(this)[ne];
3196
+ return getInternalSlotOrThrowForDuration(this)[S];
3209
3197
  }
3210
3198
  get microseconds() {
3211
- return getInternalSlotOrThrowForDuration(this)[re];
3199
+ return getInternalSlotOrThrowForDuration(this)[y];
3212
3200
  }
3213
3201
  get nanoseconds() {
3214
- return getInternalSlotOrThrowForDuration(this)[ae];
3202
+ return getInternalSlotOrThrowForDuration(this)[w];
3215
3203
  }
3216
3204
  get sign() {
3217
3205
  return durationSign(getInternalSlotOrThrowForDuration(this));
@@ -3238,81 +3226,78 @@ var vt = class {
3238
3226
  round(e) {
3239
3227
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3240
3228
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3241
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, R);
3229
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, de);
3242
3230
  let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3243
- validateTemporalUnitValue(c, d);
3231
+ validateTemporalUnitValue(c, x);
3244
3232
  const s = void 0 !== c;
3245
- c ??= _;
3246
- const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, c), u = void 0 !== n;
3247
- if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(he), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(he), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, c, i), isDateUnit(n) ? q : n));
3248
- if (r.be) {
3233
+ c ??= D;
3234
+ const l = defaultTemporalLargestUnit(t), u = largerOfTwoTemporalUnits(l, c), T = void 0 !== n;
3235
+ if (void 0 !== n && "auto" !== n || (n = u), (!s && !T || n > c) && throwRangeError($), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError($), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? m : n));
3236
+ if (r.Pe) {
3249
3237
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3250
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, c, i), n));
3238
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Pe.Y, r.Pe.o, adjustDateDurationRecord(e.A, o.X), _), o), r.Pe.Y, n, a, c, i), n));
3251
3239
  }
3252
3240
  (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3253
- const T = toInternalDurationRecordWith24HourDays(t);
3254
- return createTemporalDuration(temporalDurationFromInternal(c === H ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, c, i)), n));
3241
+ const h = toInternalDurationRecordWith24HourDays(t);
3242
+ return createTemporalDuration(temporalDurationFromInternal(c === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(h.p, a, i)[0]), ve) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(h.p, a, c, i)), n));
3255
3243
  }
3256
3244
  total(e) {
3257
3245
  const t = getInternalSlotOrThrowForDuration(this);
3258
- void 0 === e && throwTypeError(Oe);
3259
- const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", T);
3260
- if (validateTemporalUnitValue(r, d), n.Me) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.Me, createZonedDateTimeSlot(addZonedDateTime(n.Me, toInternalDurationRecord(t), h), n.Me.P, n.Me.Y), r);
3261
- if (n.be) {
3246
+ void 0 === e && throwTypeError(W);
3247
+ const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", B);
3248
+ if (validateTemporalUnitValue(r, x), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), _), n.be.P, n.be.Y), r);
3249
+ if (n.Pe) {
3262
3250
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3263
- 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, o, n)) : 0)(combineIsoDateAndTimeRecord(n.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.be.Y, n.be.o, adjustDateDurationRecord(e.A, o.K), h), o), n.be.Y, r);
3251
+ 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, o, n)) : 0)(combineIsoDateAndTimeRecord(n.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Pe.Y, n.Pe.o, adjustDateDurationRecord(e.A, o.X), _), o), n.Pe.Y, r);
3264
3252
  }
3265
3253
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
3266
3254
  }
3267
3255
  toString(e = void 0) {
3268
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3269
- validateTemporalUnitValue(a, l), a !== q && a !== B || throwRangeError(disallowedUnit(a));
3256
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3257
+ validateTemporalUnitValue(a, V), a !== m && a !== u || throwRangeError(disallowedUnit(a));
3270
3258
  const i = toSecondsStringPrecisionRecord(a, n);
3271
- if (i.Ee === _ && 1 === i.ve) return temporalDurationToString(t, i.$e);
3259
+ if (i.Ee === D && 1 === i.Me) return temporalDurationToString(t, i.ve);
3272
3260
  const c = toInternalDurationRecord(t);
3273
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.ve, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3261
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.Me, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), T)), i.ve);
3274
3262
  }
3275
3263
  toJSON() {
3276
3264
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
3277
3265
  }
3278
3266
  toLocaleString(e = void 0, t = void 0) {
3279
- const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
3280
- return ce.map((e, t) => {
3281
- n[e] = o[t];
3282
- }), new Intl.DurationFormat(e, t).format(n);
3267
+ return new A(e, t).format(durationRecordToDurationLikeObject(getInternalSlotOrThrowForDuration(this)));
3283
3268
  }
3284
3269
  valueOf() {
3285
- throwTypeError(Ie);
3270
+ throwTypeError(j);
3286
3271
  }
3287
3272
  };
3288
- defineStringTag(vt.prototype, "Temporal.Duration"), renameFunction(vt, "Duration");
3289
- const Et = {
3290
- [w]: Math.ceil,
3291
- [v]: Math.floor,
3292
- [E]: roundExpand,
3293
- [M]: Math.trunc,
3294
- [b]: roundHalfCeil,
3295
- [P]: roundHalfFloor,
3296
- [R]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3297
- [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3298
- [Z]: roundHalfEven
3299
- }, Mt = {
3300
- [w]: Math.ceil,
3301
- [v]: Math.floor,
3302
- [E]: Math.ceil,
3303
- [M]: Math.floor,
3304
- [b]: roundHalfCeil,
3305
- [P]: roundHalfFloor,
3306
- [R]: roundHalfCeil,
3307
- [N]: roundHalfFloor,
3308
- [Z]: roundHalfEven
3309
- }, bt = globalThis.Intl.DateTimeFormat, Pt = /* @__PURE__ */ new WeakMap(), Rt = [
3273
+ defineStringTag(Mt.prototype, "Temporal.Duration"), renameFunction(Mt, "Duration");
3274
+ const bt = {
3275
+ [re]: Math.ceil,
3276
+ [ae]: Math.floor,
3277
+ [ie]: roundExpand,
3278
+ [ce]: Math.trunc,
3279
+ [se]: roundHalfCeil,
3280
+ [le]: roundHalfFloor,
3281
+ [de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3282
+ [me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3283
+ [ue]: roundHalfEven
3284
+ }, Pt = {
3285
+ [re]: Math.ceil,
3286
+ [ae]: Math.floor,
3287
+ [ie]: Math.ceil,
3288
+ [ce]: Math.floor,
3289
+ [se]: roundHalfCeil,
3290
+ [le]: roundHalfFloor,
3291
+ [de]: roundHalfCeil,
3292
+ [me]: roundHalfFloor,
3293
+ [ue]: roundHalfEven
3294
+ }, Rt = globalThis.Intl.DateTimeFormat, Nt = /* @__PURE__ */ new WeakMap(), Zt = [
3310
3295
  "year",
3311
3296
  "month",
3312
3297
  "day",
3313
3298
  "weekday",
3314
3299
  "dateStyle"
3315
- ], Nt = [
3300
+ ], $t = [
3316
3301
  "hour",
3317
3302
  "minute",
3318
3303
  "second",
@@ -3320,49 +3305,47 @@ const Et = {
3320
3305
  "dayPeriod",
3321
3306
  "timeStyle"
3322
3307
  ];
3323
- var Zt = class {
3324
- Ae(e) {
3325
- return formatDateTime(this, e);
3308
+ var Ct = class {
3309
+ Le(e) {
3310
+ return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
3326
3311
  }
3327
- }, $t = class {
3312
+ }, Yt = class {
3328
3313
  constructor(e, t) {
3329
- createDateTimeFormat(e, t, d, void 0, this);
3314
+ Nt.set(this, createDateTimeFormat(e, t, x, void 0));
3330
3315
  }
3331
3316
  get format() {
3332
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= Zt.prototype.Ae.bind(this), "name", { value: "" });
3317
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= Ct.prototype.Le.bind(this), "name", { value: "" });
3333
3318
  }
3334
3319
  formatToParts(e) {
3335
3320
  return ((e, t) => {
3336
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
3321
+ const [o, n] = handleDateTimeValue(e, t);
3337
3322
  return o.formatToParts(n);
3338
- })(this, e);
3323
+ })(getInternalSlotOrThrowForDateTimeFormat(this), e);
3339
3324
  }
3340
3325
  formatRange(e, t) {
3341
- return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3342
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
3326
+ return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3343
3327
  validateSameTemporalType(t, o);
3344
- const [r, a] = handleDateTimeValue(n, t);
3345
- return r.formatRange(a, handleDateTimeValue(n, o)[1]);
3346
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3328
+ const [n, r] = handleDateTimeValue(e, t);
3329
+ return n.formatRange(r, handleDateTimeValue(e, o)[1]);
3330
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
3347
3331
  }
3348
3332
  formatRangeToParts(e, t) {
3349
- return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3350
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
3333
+ return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3351
3334
  validateSameTemporalType(t, o);
3352
- const [r, a] = handleDateTimeValue(n, t);
3353
- return r.formatRangeToParts(a, handleDateTimeValue(n, o)[1]);
3354
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3335
+ const [n, r] = handleDateTimeValue(e, t);
3336
+ return n.formatRangeToParts(r, handleDateTimeValue(e, o)[1]);
3337
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
3355
3338
  }
3356
3339
  resolvedOptions() {
3357
- return getInternalSlotOrThrowForDateTimeFormat(this).Pe.resolvedOptions();
3340
+ return getInternalSlotOrThrowForDateTimeFormat(this).Re.resolvedOptions();
3358
3341
  }
3359
3342
  };
3360
- const Ct = Object.getOwnPropertyDescriptors(bt), Yt = $t.prototype;
3361
- Ct.prototype.value = Yt;
3362
- for (const e of ["formatRange", "formatRangeToParts"]) bt.prototype[e] || delete Yt[e];
3363
- Object.defineProperties(DateTimeFormat, Ct), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3364
- const Ut = /* @__PURE__ */ new WeakMap();
3365
- var jt = class {
3343
+ const Ut = Object.getOwnPropertyDescriptors(Rt), jt = Yt.prototype;
3344
+ Ut.prototype.value = jt;
3345
+ for (const e of ["formatRange", "formatRangeToParts"]) Rt.prototype[e] || delete jt[e];
3346
+ Object.defineProperties(DateTimeFormat, Ut), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3347
+ const Wt = /* @__PURE__ */ new WeakMap();
3348
+ var At = class {
3366
3349
  constructor(e) {
3367
3350
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3368
3351
  }
@@ -3397,43 +3380,41 @@ var jt = class {
3397
3380
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
3398
3381
  }
3399
3382
  round(e) {
3400
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, R), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
3401
- return validateTemporalUnitValue(a, l), validateTemporalRoundingIncrement(n, i / nanosecondsForTimeUnit(a), !0), createTemporalInstant(roundTemporalInstant(t.U, n, a, r));
3383
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), i = getTemporalUnitValuedOption(o, "smallestUnit", B);
3384
+ return validateTemporalUnitValue(i, V), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.U, n, i, r));
3402
3385
  }
3403
3386
  equals(e) {
3404
3387
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).U, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).U);
3405
3388
  }
3406
3389
  toString(e = void 0) {
3407
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3408
- validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
3390
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3391
+ validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
3409
3392
  const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
3410
- return temporalInstantToString(roundTemporalInstant(t.U, s.ve, s.Ee, r), c, s.$e);
3393
+ return temporalInstantToString(roundTemporalInstant(t.U, s.Me, s.Ee, r), c, s.ve);
3411
3394
  }
3412
3395
  toLocaleString(e = void 0, t = void 0) {
3413
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
3396
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, x), this);
3414
3397
  }
3415
3398
  toJSON() {
3416
3399
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).U);
3417
3400
  }
3418
3401
  valueOf() {
3419
- throwTypeError(Ie);
3402
+ throwTypeError(j);
3420
3403
  }
3421
3404
  toZonedDateTimeISO(e) {
3422
3405
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3423
3406
  }
3424
3407
  };
3425
- defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant");
3426
- const Wt = class {
3408
+ defineStringTag(At.prototype, "Temporal.Instant"), renameFunction(At, "Instant");
3409
+ const Lt = class {
3427
3410
  toTemporalInstant() {
3428
3411
  const e = Date.prototype.valueOf.call(this);
3429
3412
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3430
3413
  }
3431
- }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3432
- At.DateTimeFormat.value = DateTimeFormat;
3433
- const Lt = {};
3434
- Object.defineProperties(Lt, At);
3435
- let kt, zt = 0, Vt = -Infinity;
3436
- const xt = {
3414
+ }.prototype.toTemporalInstant, kt = {}, zt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3415
+ zt.DateTimeFormat.value = DateTimeFormat, zt.DurationFormat && (zt.DurationFormat.value = k), Object.defineProperties(kt, zt);
3416
+ let Vt, xt = 0, Ht = -Infinity;
3417
+ const qt = {
3437
3418
  timeZoneId: () => systemTimeZoneIdentifier(),
3438
3419
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3439
3420
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3441,17 +3422,17 @@ const xt = {
3441
3422
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3442
3423
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3443
3424
  };
3444
- defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3445
- const Ht = {
3446
- Instant: jt,
3447
- PlainDateTime: Re,
3448
- PlainDate: ut,
3449
- PlainTime: Ze,
3450
- PlainYearMonth: dt,
3451
- PlainMonthDay: st,
3452
- Duration: vt,
3453
- ZonedDateTime: Ee,
3454
- Now: xt
3425
+ defineStringTag(qt, "Temporal.Now"), makePropertiesNonEnumerable(qt);
3426
+ const Bt = {
3427
+ Instant: At,
3428
+ PlainDateTime: Ze,
3429
+ PlainDate: Dt,
3430
+ PlainTime: Ce,
3431
+ PlainYearMonth: ut,
3432
+ PlainMonthDay: dt,
3433
+ Duration: Mt,
3434
+ ZonedDateTime: be,
3435
+ Now: qt
3455
3436
  };
3456
- defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);
3457
- export { defineNonEnumerableProperty as a, Wt as i, setSystemTimeZoneIdCacheTtl as n, Lt as r, Ht as t };
3437
+ defineStringTag(Bt, "Temporal"), makePropertiesNonEnumerable(Bt);
3438
+ export { defineNonEnumerableProperty as a, Lt as i, setSystemTimeZoneIdCacheTtl as n, kt as r, Bt as t };