@internationalized/date 3.0.0-alpha.3 → 3.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -18,78 +18,66 @@ function $parcel$exportWildcard(dest, source) {
18
18
  return dest;
19
19
  }
20
20
 
21
- $parcel$export(module.exports, "GregorianCalendar", () => $680b26d521b88d00$export$80ee6245ec4f29ec);
22
- $parcel$export(module.exports, "JapaneseCalendar", () => $a829bc7a11c5e72b$export$b746ab2b60cdffbf);
23
- $parcel$export(module.exports, "BuddhistCalendar", () => $3d8b8d698eadd9f9$export$42d20a78301dee44);
24
- $parcel$export(module.exports, "TaiwanCalendar", () => $3787fdcbabdfc7bd$export$65e01080afcb0799);
25
- $parcel$export(module.exports, "PersianCalendar", () => $75fdc3cae9bb671c$export$37fccdbfd14c5939);
26
- $parcel$export(module.exports, "IndianCalendar", () => $8626c25ab1e2c78a$export$39f31c639fa15726);
27
- $parcel$export(module.exports, "IslamicCivilCalendar", () => $4f37d2a9fc47c3f0$export$2066795aadd37bfc);
28
- $parcel$export(module.exports, "IslamicTabularCalendar", () => $4f37d2a9fc47c3f0$export$37f0887f2f9d22f7);
29
- $parcel$export(module.exports, "IslamicUmalquraCalendar", () => $4f37d2a9fc47c3f0$export$5baab4758c231076);
30
- $parcel$export(module.exports, "HebrewCalendar", () => $7e9e96397d8405f3$export$ca405048b8fb5af);
31
- $parcel$export(module.exports, "EthiopicCalendar", () => $241b3c900de4f5b3$export$26ba6eab5e20cd7d);
32
- $parcel$export(module.exports, "EthiopicAmeteAlemCalendar", () => $241b3c900de4f5b3$export$d72e0c37005a4914);
33
- $parcel$export(module.exports, "CopticCalendar", () => $241b3c900de4f5b3$export$fe6243cbe1a4b7c1);
34
- $parcel$export(module.exports, "createCalendar", () => $0e6dd8ee1e86aa7f$export$dd0bbc9b26defe37);
35
- var $e2d97aa3b7775168$exports = {};
36
-
37
- $parcel$export($e2d97aa3b7775168$exports, "CalendarDate", () => $e2d97aa3b7775168$export$99faa760c7908e4f);
38
- $parcel$export($e2d97aa3b7775168$exports, "Time", () => $e2d97aa3b7775168$export$680ea196effce5f);
39
- $parcel$export($e2d97aa3b7775168$exports, "CalendarDateTime", () => $e2d97aa3b7775168$export$ca871e8dbb80966f);
40
- $parcel$export($e2d97aa3b7775168$exports, "ZonedDateTime", () => $e2d97aa3b7775168$export$d3b7288e7994edea);
41
- var $6de69c682dff3674$exports = {};
42
-
43
- $parcel$export($6de69c682dff3674$exports, "epochFromDate", () => $6de69c682dff3674$export$bd4fb2bc8bb06fb);
44
- $parcel$export($6de69c682dff3674$exports, "toCalendar", () => $6de69c682dff3674$export$b4a036af3fc0b032);
45
- $parcel$export($6de69c682dff3674$exports, "getTimeZoneOffset", () => $6de69c682dff3674$export$59c99f3515d3493f);
46
- $parcel$export($6de69c682dff3674$exports, "possibleAbsolutes", () => $6de69c682dff3674$export$136f38efe7caf549);
47
- $parcel$export($6de69c682dff3674$exports, "toAbsolute", () => $6de69c682dff3674$export$5107c82f94518f5c);
48
- $parcel$export($6de69c682dff3674$exports, "toCalendarDateTime", () => $6de69c682dff3674$export$b21e0b124e224484);
49
- $parcel$export($6de69c682dff3674$exports, "toDate", () => $6de69c682dff3674$export$e67a095c620b86fe);
50
- $parcel$export($6de69c682dff3674$exports, "fromAbsolute", () => $6de69c682dff3674$export$1b96692a1ba042ac);
51
- $parcel$export($6de69c682dff3674$exports, "fromDate", () => $6de69c682dff3674$export$e57ff100d91bd4b9);
52
- $parcel$export($6de69c682dff3674$exports, "fromDateToLocal", () => $6de69c682dff3674$export$d7f92bcd3596b086);
53
- $parcel$export($6de69c682dff3674$exports, "toCalendarDate", () => $6de69c682dff3674$export$93522d1a439f3617);
54
- $parcel$export($6de69c682dff3674$exports, "toDateFields", () => $6de69c682dff3674$export$6f4d78149f3f53ac);
55
- $parcel$export($6de69c682dff3674$exports, "toTimeFields", () => $6de69c682dff3674$export$4d0393e732857be5);
56
- $parcel$export($6de69c682dff3674$exports, "toTime", () => $6de69c682dff3674$export$d33f79e3ffc3dc83);
57
- $parcel$export($6de69c682dff3674$exports, "toZoned", () => $6de69c682dff3674$export$84c95a83c799e074);
58
- $parcel$export($6de69c682dff3674$exports, "toTimeZone", () => $6de69c682dff3674$export$538b00033cc11c75);
59
- $parcel$export($6de69c682dff3674$exports, "zonedToDate", () => $6de69c682dff3674$export$83aac07b4c37b25);
60
- $parcel$export($6de69c682dff3674$exports, "toLocalTimeZone", () => $6de69c682dff3674$export$d9b67bc93c097491);
61
-
62
- var $8180638d62fba910$exports = {};
63
-
64
- $parcel$export($8180638d62fba910$exports, "isSameDay", () => $8180638d62fba910$export$ea39ec197993aef0);
65
- $parcel$export($8180638d62fba910$exports, "isSameMonth", () => $8180638d62fba910$export$a18c89cbd24170ff);
66
- $parcel$export($8180638d62fba910$exports, "startOfMonth", () => $8180638d62fba910$export$a5a3b454ada2268e);
67
- $parcel$export($8180638d62fba910$exports, "isSameYear", () => $8180638d62fba910$export$5841f9eb9773f25f);
68
- $parcel$export($8180638d62fba910$exports, "startOfYear", () => $8180638d62fba910$export$f91e89d3d0406102);
69
- $parcel$export($8180638d62fba910$exports, "isEqualDay", () => $8180638d62fba910$export$91b62ebf2ba703ee);
70
- $parcel$export($8180638d62fba910$exports, "isEqualMonth", () => $8180638d62fba910$export$5a8da0c44a3afdf2);
71
- $parcel$export($8180638d62fba910$exports, "isEqualYear", () => $8180638d62fba910$export$ea840f5a6dda8147);
72
- $parcel$export($8180638d62fba910$exports, "isToday", () => $8180638d62fba910$export$629b0a497aa65267);
73
- $parcel$export($8180638d62fba910$exports, "today", () => $8180638d62fba910$export$d0bdf45af03a6ea3);
74
- $parcel$export($8180638d62fba910$exports, "getDayOfWeek", () => $8180638d62fba910$export$2061056d06d7cdf7);
75
- $parcel$export($8180638d62fba910$exports, "now", () => $8180638d62fba910$export$461939dd4422153);
76
- $parcel$export($8180638d62fba910$exports, "compareDate", () => $8180638d62fba910$export$68781ddf31c0090f);
77
- $parcel$export($8180638d62fba910$exports, "compareTime", () => $8180638d62fba910$export$c19a80a9721b80f6);
78
- $parcel$export($8180638d62fba910$exports, "getHoursInDay", () => $8180638d62fba910$export$126c91c941de7e);
79
- $parcel$export($8180638d62fba910$exports, "getLocalTimeZone", () => $8180638d62fba910$export$aa8b41735afcabd2);
80
- $parcel$export($8180638d62fba910$exports, "endOfMonth", () => $8180638d62fba910$export$a2258d9c4118825c);
81
- $parcel$export($8180638d62fba910$exports, "endOfYear", () => $8180638d62fba910$export$8b7aa55c66d5569e);
82
- $parcel$export($8180638d62fba910$exports, "getMinimumMonthInYear", () => $8180638d62fba910$export$5412ac11713b72ad);
83
- $parcel$export($8180638d62fba910$exports, "getMinimumDayInMonth", () => $8180638d62fba910$export$b2f4953d301981d5);
84
- $parcel$export($8180638d62fba910$exports, "startOfWeek", () => $8180638d62fba910$export$42c81a444fbfb5d4);
85
- $parcel$export($8180638d62fba910$exports, "endOfWeek", () => $8180638d62fba910$export$ef8b6d9133084f4e);
86
- $parcel$export($8180638d62fba910$exports, "getWeeksInMonth", () => $8180638d62fba910$export$ccc1b2479e7dd654);
87
- $parcel$export($8180638d62fba910$exports, "minDate", () => $8180638d62fba910$export$5c333a116e949cdd);
88
- $parcel$export($8180638d62fba910$exports, "maxDate", () => $8180638d62fba910$export$a75f2bff57811055);
89
- $parcel$export($8180638d62fba910$exports, "isWeekend", () => $8180638d62fba910$export$618d60ea299da42);
90
- $parcel$export($8180638d62fba910$exports, "isWeekday", () => $8180638d62fba910$export$ee9d87258e1d19ed);
91
-
92
- const $580b85229f2cb211$export$7a5acbd77d414bd9 = {
21
+ $parcel$export(module.exports, "CalendarDate", () => $625ad1e1f4c43bc1$export$99faa760c7908e4f);
22
+ $parcel$export(module.exports, "CalendarDateTime", () => $625ad1e1f4c43bc1$export$ca871e8dbb80966f);
23
+ $parcel$export(module.exports, "Time", () => $625ad1e1f4c43bc1$export$680ea196effce5f);
24
+ $parcel$export(module.exports, "ZonedDateTime", () => $625ad1e1f4c43bc1$export$d3b7288e7994edea);
25
+ $parcel$export(module.exports, "GregorianCalendar", () => $af14c9812fdceb33$export$80ee6245ec4f29ec);
26
+ $parcel$export(module.exports, "JapaneseCalendar", () => $b0ac0602ef646b2c$export$b746ab2b60cdffbf);
27
+ $parcel$export(module.exports, "BuddhistCalendar", () => $561c4ef058278b74$export$42d20a78301dee44);
28
+ $parcel$export(module.exports, "TaiwanCalendar", () => $9cc5d3577ec40243$export$65e01080afcb0799);
29
+ $parcel$export(module.exports, "PersianCalendar", () => $3c060181fc7249ae$export$37fccdbfd14c5939);
30
+ $parcel$export(module.exports, "IndianCalendar", () => $5f1dfa5c67609fe6$export$39f31c639fa15726);
31
+ $parcel$export(module.exports, "IslamicCivilCalendar", () => $ecb2c4cc8c9aae25$export$2066795aadd37bfc);
32
+ $parcel$export(module.exports, "IslamicTabularCalendar", () => $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7);
33
+ $parcel$export(module.exports, "IslamicUmalquraCalendar", () => $ecb2c4cc8c9aae25$export$5baab4758c231076);
34
+ $parcel$export(module.exports, "HebrewCalendar", () => $0f5324ee3bdd9396$export$ca405048b8fb5af);
35
+ $parcel$export(module.exports, "EthiopicCalendar", () => $4db04d1051af0f2f$export$26ba6eab5e20cd7d);
36
+ $parcel$export(module.exports, "EthiopicAmeteAlemCalendar", () => $4db04d1051af0f2f$export$d72e0c37005a4914);
37
+ $parcel$export(module.exports, "CopticCalendar", () => $4db04d1051af0f2f$export$fe6243cbe1a4b7c1);
38
+ $parcel$export(module.exports, "createCalendar", () => $4922c0a5a69da0ba$export$dd0bbc9b26defe37);
39
+ $parcel$export(module.exports, "toCalendarDate", () => $4ae0260a69729f1d$export$93522d1a439f3617);
40
+ $parcel$export(module.exports, "toCalendarDateTime", () => $4ae0260a69729f1d$export$b21e0b124e224484);
41
+ $parcel$export(module.exports, "toTime", () => $4ae0260a69729f1d$export$d33f79e3ffc3dc83);
42
+ $parcel$export(module.exports, "toCalendar", () => $4ae0260a69729f1d$export$b4a036af3fc0b032);
43
+ $parcel$export(module.exports, "toZoned", () => $4ae0260a69729f1d$export$84c95a83c799e074);
44
+ $parcel$export(module.exports, "toTimeZone", () => $4ae0260a69729f1d$export$538b00033cc11c75);
45
+ $parcel$export(module.exports, "toLocalTimeZone", () => $4ae0260a69729f1d$export$d9b67bc93c097491);
46
+ $parcel$export(module.exports, "isSameDay", () => $1f0f7ebf1ae6c530$export$ea39ec197993aef0);
47
+ $parcel$export(module.exports, "isSameMonth", () => $1f0f7ebf1ae6c530$export$a18c89cbd24170ff);
48
+ $parcel$export(module.exports, "isSameYear", () => $1f0f7ebf1ae6c530$export$5841f9eb9773f25f);
49
+ $parcel$export(module.exports, "isEqualDay", () => $1f0f7ebf1ae6c530$export$91b62ebf2ba703ee);
50
+ $parcel$export(module.exports, "isEqualMonth", () => $1f0f7ebf1ae6c530$export$5a8da0c44a3afdf2);
51
+ $parcel$export(module.exports, "isEqualYear", () => $1f0f7ebf1ae6c530$export$ea840f5a6dda8147);
52
+ $parcel$export(module.exports, "isToday", () => $1f0f7ebf1ae6c530$export$629b0a497aa65267);
53
+ $parcel$export(module.exports, "getDayOfWeek", () => $1f0f7ebf1ae6c530$export$2061056d06d7cdf7);
54
+ $parcel$export(module.exports, "now", () => $1f0f7ebf1ae6c530$export$461939dd4422153);
55
+ $parcel$export(module.exports, "today", () => $1f0f7ebf1ae6c530$export$d0bdf45af03a6ea3);
56
+ $parcel$export(module.exports, "getHoursInDay", () => $1f0f7ebf1ae6c530$export$126c91c941de7e);
57
+ $parcel$export(module.exports, "getLocalTimeZone", () => $1f0f7ebf1ae6c530$export$aa8b41735afcabd2);
58
+ $parcel$export(module.exports, "startOfMonth", () => $1f0f7ebf1ae6c530$export$a5a3b454ada2268e);
59
+ $parcel$export(module.exports, "startOfWeek", () => $1f0f7ebf1ae6c530$export$42c81a444fbfb5d4);
60
+ $parcel$export(module.exports, "startOfYear", () => $1f0f7ebf1ae6c530$export$f91e89d3d0406102);
61
+ $parcel$export(module.exports, "endOfMonth", () => $1f0f7ebf1ae6c530$export$a2258d9c4118825c);
62
+ $parcel$export(module.exports, "endOfWeek", () => $1f0f7ebf1ae6c530$export$ef8b6d9133084f4e);
63
+ $parcel$export(module.exports, "endOfYear", () => $1f0f7ebf1ae6c530$export$8b7aa55c66d5569e);
64
+ $parcel$export(module.exports, "getMinimumMonthInYear", () => $1f0f7ebf1ae6c530$export$5412ac11713b72ad);
65
+ $parcel$export(module.exports, "getMinimumDayInMonth", () => $1f0f7ebf1ae6c530$export$b2f4953d301981d5);
66
+ $parcel$export(module.exports, "getWeeksInMonth", () => $1f0f7ebf1ae6c530$export$ccc1b2479e7dd654);
67
+ $parcel$export(module.exports, "minDate", () => $1f0f7ebf1ae6c530$export$5c333a116e949cdd);
68
+ $parcel$export(module.exports, "maxDate", () => $1f0f7ebf1ae6c530$export$a75f2bff57811055);
69
+ $parcel$export(module.exports, "isWeekend", () => $1f0f7ebf1ae6c530$export$618d60ea299da42);
70
+ $parcel$export(module.exports, "isWeekday", () => $1f0f7ebf1ae6c530$export$ee9d87258e1d19ed);
71
+ $parcel$export(module.exports, "parseDate", () => $4c32e2d98e5a5134$export$6b862160d295c8e);
72
+ $parcel$export(module.exports, "parseDateTime", () => $4c32e2d98e5a5134$export$588937bcd60ade55);
73
+ $parcel$export(module.exports, "parseTime", () => $4c32e2d98e5a5134$export$c9698ec7f05a07e1);
74
+ $parcel$export(module.exports, "parseAbsolute", () => $4c32e2d98e5a5134$export$5adfdab05168c219);
75
+ $parcel$export(module.exports, "parseAbsoluteToLocal", () => $4c32e2d98e5a5134$export$8e384432362ed0f0);
76
+ $parcel$export(module.exports, "parseZonedDateTime", () => $4c32e2d98e5a5134$export$fd7893f06e92a6a4);
77
+ $parcel$export(module.exports, "DateFormatter", () => $8f23a04ae90a588b$export$ad991b66133851cf);
78
+
79
+
80
+ const $4d88eff242b38a9e$export$7a5acbd77d414bd9 = {
93
81
  '001': 1,
94
82
  AD: 1,
95
83
  AE: 6,
@@ -185,127 +173,127 @@ const $580b85229f2cb211$export$7a5acbd77d414bd9 = {
185
173
  };
186
174
 
187
175
 
188
- function $8180638d62fba910$export$ea39ec197993aef0(a, b) {
189
- b = $6de69c682dff3674$export$b4a036af3fc0b032(b, a.calendar);
176
+ function $1f0f7ebf1ae6c530$export$ea39ec197993aef0(a, b) {
177
+ b = $4ae0260a69729f1d$export$b4a036af3fc0b032(b, a.calendar);
190
178
  return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
191
179
  }
192
- function $8180638d62fba910$export$a18c89cbd24170ff(a, b) {
193
- b = $6de69c682dff3674$export$b4a036af3fc0b032(b, a.calendar);
180
+ function $1f0f7ebf1ae6c530$export$a18c89cbd24170ff(a, b) {
181
+ b = $4ae0260a69729f1d$export$b4a036af3fc0b032(b, a.calendar);
194
182
  // In the Japanese calendar, months can span multiple eras/years, so only compare the first of the month.
195
- a = $8180638d62fba910$export$a5a3b454ada2268e(a);
196
- b = $8180638d62fba910$export$a5a3b454ada2268e(b);
183
+ a = $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(a);
184
+ b = $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(b);
197
185
  return a.era === b.era && a.year === b.year && a.month === b.month;
198
186
  }
199
- function $8180638d62fba910$export$5841f9eb9773f25f(a, b) {
200
- b = $6de69c682dff3674$export$b4a036af3fc0b032(b, a.calendar);
201
- a = $8180638d62fba910$export$f91e89d3d0406102(a);
202
- b = $8180638d62fba910$export$f91e89d3d0406102(b);
187
+ function $1f0f7ebf1ae6c530$export$5841f9eb9773f25f(a, b) {
188
+ b = $4ae0260a69729f1d$export$b4a036af3fc0b032(b, a.calendar);
189
+ a = $1f0f7ebf1ae6c530$export$f91e89d3d0406102(a);
190
+ b = $1f0f7ebf1ae6c530$export$f91e89d3d0406102(b);
203
191
  return a.era === b.era && a.year === b.year;
204
192
  }
205
- function $8180638d62fba910$export$91b62ebf2ba703ee(a, b) {
193
+ function $1f0f7ebf1ae6c530$export$91b62ebf2ba703ee(a, b) {
206
194
  return a.calendar.identifier === b.calendar.identifier && a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
207
195
  }
208
- function $8180638d62fba910$export$5a8da0c44a3afdf2(a, b) {
209
- a = $8180638d62fba910$export$a5a3b454ada2268e(a);
210
- b = $8180638d62fba910$export$a5a3b454ada2268e(b);
196
+ function $1f0f7ebf1ae6c530$export$5a8da0c44a3afdf2(a, b) {
197
+ a = $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(a);
198
+ b = $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(b);
211
199
  return a.calendar.identifier === b.calendar.identifier && a.era === b.era && a.year === b.year && a.month === b.month;
212
200
  }
213
- function $8180638d62fba910$export$ea840f5a6dda8147(a, b) {
214
- a = $8180638d62fba910$export$f91e89d3d0406102(a);
215
- b = $8180638d62fba910$export$f91e89d3d0406102(b);
201
+ function $1f0f7ebf1ae6c530$export$ea840f5a6dda8147(a, b) {
202
+ a = $1f0f7ebf1ae6c530$export$f91e89d3d0406102(a);
203
+ b = $1f0f7ebf1ae6c530$export$f91e89d3d0406102(b);
216
204
  return a.calendar.identifier === b.calendar.identifier && a.era === b.era && a.year === b.year;
217
205
  }
218
- function $8180638d62fba910$export$629b0a497aa65267(date, timeZone) {
219
- return $8180638d62fba910$export$ea39ec197993aef0(date, $8180638d62fba910$export$d0bdf45af03a6ea3(timeZone));
206
+ function $1f0f7ebf1ae6c530$export$629b0a497aa65267(date, timeZone) {
207
+ return $1f0f7ebf1ae6c530$export$ea39ec197993aef0(date, $1f0f7ebf1ae6c530$export$d0bdf45af03a6ea3(timeZone));
220
208
  }
221
- function $8180638d62fba910$export$2061056d06d7cdf7(date, locale) {
209
+ function $1f0f7ebf1ae6c530$export$2061056d06d7cdf7(date, locale) {
222
210
  let julian = date.calendar.toJulianDay(date);
223
211
  // If julian is negative, then julian % 7 will be negative, so we adjust
224
212
  // accordingly. Julian day 0 is Monday.
225
- let dayOfWeek = Math.ceil(julian + 1 - $8180638d62fba910$var$getWeekStart(locale)) % 7;
213
+ let dayOfWeek = Math.ceil(julian + 1 - $1f0f7ebf1ae6c530$var$getWeekStart(locale)) % 7;
226
214
  if (dayOfWeek < 0) dayOfWeek += 7;
227
215
  return dayOfWeek;
228
216
  }
229
- function $8180638d62fba910$export$461939dd4422153(timeZone) {
230
- return $6de69c682dff3674$export$1b96692a1ba042ac(Date.now(), timeZone);
217
+ function $1f0f7ebf1ae6c530$export$461939dd4422153(timeZone) {
218
+ return $4ae0260a69729f1d$export$1b96692a1ba042ac(Date.now(), timeZone);
231
219
  }
232
- function $8180638d62fba910$export$d0bdf45af03a6ea3(timeZone) {
233
- return $6de69c682dff3674$export$93522d1a439f3617($8180638d62fba910$export$461939dd4422153(timeZone));
220
+ function $1f0f7ebf1ae6c530$export$d0bdf45af03a6ea3(timeZone) {
221
+ return $4ae0260a69729f1d$export$93522d1a439f3617($1f0f7ebf1ae6c530$export$461939dd4422153(timeZone));
234
222
  }
235
- function $8180638d62fba910$export$68781ddf31c0090f(a, b) {
223
+ function $1f0f7ebf1ae6c530$export$68781ddf31c0090f(a, b) {
236
224
  return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
237
225
  }
238
- function $8180638d62fba910$export$c19a80a9721b80f6(a, b) {
239
- return $8180638d62fba910$var$timeToMs(a) - $8180638d62fba910$var$timeToMs(b);
226
+ function $1f0f7ebf1ae6c530$export$c19a80a9721b80f6(a, b) {
227
+ return $1f0f7ebf1ae6c530$var$timeToMs(a) - $1f0f7ebf1ae6c530$var$timeToMs(b);
240
228
  }
241
- function $8180638d62fba910$var$timeToMs(a) {
229
+ function $1f0f7ebf1ae6c530$var$timeToMs(a) {
242
230
  return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;
243
231
  }
244
- function $8180638d62fba910$export$126c91c941de7e(a, timeZone) {
245
- let ms = $6de69c682dff3674$export$5107c82f94518f5c(a, timeZone);
232
+ function $1f0f7ebf1ae6c530$export$126c91c941de7e(a, timeZone) {
233
+ let ms = $4ae0260a69729f1d$export$5107c82f94518f5c(a, timeZone);
246
234
  let tomorrow = a.add({
247
235
  days: 1
248
236
  });
249
- let tomorrowMs = $6de69c682dff3674$export$5107c82f94518f5c(tomorrow, timeZone);
237
+ let tomorrowMs = $4ae0260a69729f1d$export$5107c82f94518f5c(tomorrow, timeZone);
250
238
  return (tomorrowMs - ms) / 3600000;
251
239
  }
252
- let $8180638d62fba910$var$localTimeZone = null;
253
- function $8180638d62fba910$export$aa8b41735afcabd2() {
240
+ let $1f0f7ebf1ae6c530$var$localTimeZone = null;
241
+ function $1f0f7ebf1ae6c530$export$aa8b41735afcabd2() {
254
242
  // TODO: invalidate this somehow?
255
- if ($8180638d62fba910$var$localTimeZone == null) $8180638d62fba910$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
256
- return $8180638d62fba910$var$localTimeZone;
243
+ if ($1f0f7ebf1ae6c530$var$localTimeZone == null) $1f0f7ebf1ae6c530$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
244
+ return $1f0f7ebf1ae6c530$var$localTimeZone;
257
245
  }
258
- function $8180638d62fba910$export$a5a3b454ada2268e(date) {
246
+ function $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(date) {
259
247
  // Use `subtract` instead of `set` so we don't get constrained in an era.
260
248
  return date.subtract({
261
249
  days: date.day - 1
262
250
  });
263
251
  }
264
- function $8180638d62fba910$export$a2258d9c4118825c(date) {
252
+ function $1f0f7ebf1ae6c530$export$a2258d9c4118825c(date) {
265
253
  return date.add({
266
254
  days: date.calendar.getDaysInMonth(date) - date.day
267
255
  });
268
256
  }
269
- function $8180638d62fba910$export$f91e89d3d0406102(date) {
270
- return $8180638d62fba910$export$a5a3b454ada2268e(date.subtract({
257
+ function $1f0f7ebf1ae6c530$export$f91e89d3d0406102(date) {
258
+ return $1f0f7ebf1ae6c530$export$a5a3b454ada2268e(date.subtract({
271
259
  months: date.month - 1
272
260
  }));
273
261
  }
274
- function $8180638d62fba910$export$8b7aa55c66d5569e(date) {
275
- return $8180638d62fba910$export$a2258d9c4118825c(date.add({
262
+ function $1f0f7ebf1ae6c530$export$8b7aa55c66d5569e(date) {
263
+ return $1f0f7ebf1ae6c530$export$a2258d9c4118825c(date.add({
276
264
  months: date.calendar.getMonthsInYear(date) - date.month
277
265
  }));
278
266
  }
279
- function $8180638d62fba910$export$5412ac11713b72ad(date) {
267
+ function $1f0f7ebf1ae6c530$export$5412ac11713b72ad(date) {
280
268
  if (date.calendar.getMinimumMonthInYear) return date.calendar.getMinimumMonthInYear(date);
281
269
  return 1;
282
270
  }
283
- function $8180638d62fba910$export$b2f4953d301981d5(date) {
271
+ function $1f0f7ebf1ae6c530$export$b2f4953d301981d5(date) {
284
272
  if (date.calendar.getMinimumDayInMonth) return date.calendar.getMinimumDayInMonth(date);
285
273
  return 1;
286
274
  }
287
- function $8180638d62fba910$export$42c81a444fbfb5d4(date, locale) {
288
- let dayOfWeek = $8180638d62fba910$export$2061056d06d7cdf7(date, locale);
275
+ function $1f0f7ebf1ae6c530$export$42c81a444fbfb5d4(date, locale) {
276
+ let dayOfWeek = $1f0f7ebf1ae6c530$export$2061056d06d7cdf7(date, locale);
289
277
  return date.subtract({
290
278
  days: dayOfWeek
291
279
  });
292
280
  }
293
- function $8180638d62fba910$export$ef8b6d9133084f4e(date, locale) {
294
- return $8180638d62fba910$export$42c81a444fbfb5d4(date, locale).add({
281
+ function $1f0f7ebf1ae6c530$export$ef8b6d9133084f4e(date, locale) {
282
+ return $1f0f7ebf1ae6c530$export$42c81a444fbfb5d4(date, locale).add({
295
283
  days: 6
296
284
  });
297
285
  }
298
- const $8180638d62fba910$var$cachedRegions = new Map();
299
- function $8180638d62fba910$var$getRegion(locale) {
286
+ const $1f0f7ebf1ae6c530$var$cachedRegions = new Map();
287
+ function $1f0f7ebf1ae6c530$var$getRegion(locale) {
300
288
  // If the Intl.Locale API is available, use it to get the region for the locale.
301
289
  // @ts-ignore
302
290
  if (Intl.Locale) {
303
291
  // Constructing an Intl.Locale is expensive, so cache the result.
304
- let region = $8180638d62fba910$var$cachedRegions.get(locale);
292
+ let region = $1f0f7ebf1ae6c530$var$cachedRegions.get(locale);
305
293
  if (!region) {
306
294
  // @ts-ignore
307
295
  region = new Intl.Locale(locale).maximize().region;
308
- $8180638d62fba910$var$cachedRegions.set(locale, region);
296
+ $1f0f7ebf1ae6c530$var$cachedRegions.set(locale, region);
309
297
  }
310
298
  return region;
311
299
  }
@@ -316,23 +304,25 @@ function $8180638d62fba910$var$getRegion(locale) {
316
304
  let part = locale.split('-')[1];
317
305
  return part === 'u' ? null : part;
318
306
  }
319
- function $8180638d62fba910$var$getWeekStart(locale) {
307
+ function $1f0f7ebf1ae6c530$var$getWeekStart(locale) {
320
308
  // TODO: use Intl.Locale for this once browsers support the weekInfo property
321
309
  // https://github.com/tc39/proposal-intl-locale-info
322
- let region = $8180638d62fba910$var$getRegion(locale);
323
- return $580b85229f2cb211$export$7a5acbd77d414bd9[region] || 0;
310
+ let region = $1f0f7ebf1ae6c530$var$getRegion(locale);
311
+ return $4d88eff242b38a9e$export$7a5acbd77d414bd9[region] || 0;
324
312
  }
325
- function $8180638d62fba910$export$ccc1b2479e7dd654(date, locale) {
313
+ function $1f0f7ebf1ae6c530$export$ccc1b2479e7dd654(date, locale) {
326
314
  let days = date.calendar.getDaysInMonth(date);
327
- return Math.ceil(($8180638d62fba910$export$2061056d06d7cdf7($8180638d62fba910$export$a5a3b454ada2268e(date), locale) + days) / 7);
315
+ return Math.ceil(($1f0f7ebf1ae6c530$export$2061056d06d7cdf7($1f0f7ebf1ae6c530$export$a5a3b454ada2268e(date), locale) + days) / 7);
328
316
  }
329
- function $8180638d62fba910$export$5c333a116e949cdd(a, b) {
330
- return a.compare(b) <= 0 ? a : b;
317
+ function $1f0f7ebf1ae6c530$export$5c333a116e949cdd(a, b) {
318
+ if (a && b) return a.compare(b) <= 0 ? a : b;
319
+ return a || b;
331
320
  }
332
- function $8180638d62fba910$export$a75f2bff57811055(a, b) {
333
- return a.compare(b) >= 0 ? a : b;
321
+ function $1f0f7ebf1ae6c530$export$a75f2bff57811055(a, b) {
322
+ if (a && b) return a.compare(b) >= 0 ? a : b;
323
+ return a || b;
334
324
  }
335
- const $8180638d62fba910$var$WEEKEND_DATA = {
325
+ const $1f0f7ebf1ae6c530$var$WEEKEND_DATA = {
336
326
  AF: [
337
327
  4,
338
328
  5
@@ -402,53 +392,53 @@ const $8180638d62fba910$var$WEEKEND_DATA = {
402
392
  6
403
393
  ]
404
394
  };
405
- function $8180638d62fba910$export$618d60ea299da42(date, locale) {
395
+ function $1f0f7ebf1ae6c530$export$618d60ea299da42(date, locale) {
406
396
  let julian = date.calendar.toJulianDay(date);
407
397
  // If julian is negative, then julian % 7 will be negative, so we adjust
408
398
  // accordingly. Julian day 0 is Monday.
409
399
  let dayOfWeek = Math.ceil(julian + 1) % 7;
410
400
  if (dayOfWeek < 0) dayOfWeek += 7;
411
- let region = $8180638d62fba910$var$getRegion(locale);
401
+ let region = $1f0f7ebf1ae6c530$var$getRegion(locale);
412
402
  // Use Intl.Locale for this once weekInfo is supported.
413
403
  // https://github.com/tc39/proposal-intl-locale-info
414
- let [start, end] = $8180638d62fba910$var$WEEKEND_DATA[region] || [
404
+ let [start, end] = $1f0f7ebf1ae6c530$var$WEEKEND_DATA[region] || [
415
405
  6,
416
406
  0
417
407
  ];
418
408
  return dayOfWeek === start || dayOfWeek === end;
419
409
  }
420
- function $8180638d62fba910$export$ee9d87258e1d19ed(date, locale) {
421
- return !$8180638d62fba910$export$618d60ea299da42(date, locale);
410
+ function $1f0f7ebf1ae6c530$export$ee9d87258e1d19ed(date, locale) {
411
+ return !$1f0f7ebf1ae6c530$export$618d60ea299da42(date, locale);
422
412
  }
423
413
 
424
414
 
425
415
 
426
416
 
427
- function $126da7c1075fa25c$export$842a2cf37af977e1(amount, numerator) {
417
+ function $a5090d6430502238$export$842a2cf37af977e1(amount, numerator) {
428
418
  return amount - numerator * Math.floor(amount / numerator);
429
419
  }
430
- function $126da7c1075fa25c$export$784d13d8ee351f07(date) {
431
- if (date.era) return new $e2d97aa3b7775168$export$99faa760c7908e4f(date.calendar, date.era, date.year, date.month, date.day);
432
- else return new $e2d97aa3b7775168$export$99faa760c7908e4f(date.calendar, date.year, date.month, date.day);
420
+ function $a5090d6430502238$export$784d13d8ee351f07(date) {
421
+ if (date.era) return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(date.calendar, date.era, date.year, date.month, date.day);
422
+ else return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(date.calendar, date.year, date.month, date.day);
433
423
  }
434
- function $126da7c1075fa25c$export$27fa0172ae2644b3(date) {
435
- if (date.era) return new $e2d97aa3b7775168$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
436
- else return new $e2d97aa3b7775168$export$ca871e8dbb80966f(date.calendar, date.year, date.month, date.day, date.hour, date.minute, date.second);
424
+ function $a5090d6430502238$export$27fa0172ae2644b3(date) {
425
+ if (date.era) return new $625ad1e1f4c43bc1$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
426
+ else return new $625ad1e1f4c43bc1$export$ca871e8dbb80966f(date.calendar, date.year, date.month, date.day, date.hour, date.minute, date.second);
437
427
  }
438
428
 
439
429
 
440
- const $680b26d521b88d00$var$EPOCH = 1721426; // 001/01/03 Julian C.E.
441
- function $680b26d521b88d00$export$f297eb839006d339(year, month, day) {
430
+ const $af14c9812fdceb33$var$EPOCH = 1721426; // 001/01/03 Julian C.E.
431
+ function $af14c9812fdceb33$export$f297eb839006d339(year, month, day) {
442
432
  let y1 = year - 1;
443
433
  let monthOffset = -2;
444
434
  if (month <= 2) monthOffset = 0;
445
- else if ($680b26d521b88d00$export$553d7fa8e3805fc0(year)) monthOffset = -1;
446
- return $680b26d521b88d00$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
435
+ else if ($af14c9812fdceb33$export$553d7fa8e3805fc0(year)) monthOffset = -1;
436
+ return $af14c9812fdceb33$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
447
437
  }
448
- function $680b26d521b88d00$export$553d7fa8e3805fc0(year) {
438
+ function $af14c9812fdceb33$export$553d7fa8e3805fc0(year) {
449
439
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
450
440
  }
451
- const $680b26d521b88d00$var$daysInMonth = {
441
+ const $af14c9812fdceb33$var$daysInMonth = {
452
442
  standard: [
453
443
  31,
454
444
  28,
@@ -478,38 +468,38 @@ const $680b26d521b88d00$var$daysInMonth = {
478
468
  31
479
469
  ]
480
470
  };
481
- class $680b26d521b88d00$export$80ee6245ec4f29ec {
471
+ class $af14c9812fdceb33$export$80ee6245ec4f29ec {
482
472
  fromJulianDay(jd) {
483
473
  let jd0 = jd;
484
- let depoch = jd0 - $680b26d521b88d00$var$EPOCH;
474
+ let depoch = jd0 - $af14c9812fdceb33$var$EPOCH;
485
475
  let quadricent = Math.floor(depoch / 146097);
486
- let dqc = $126da7c1075fa25c$export$842a2cf37af977e1(depoch, 146097);
476
+ let dqc = $a5090d6430502238$export$842a2cf37af977e1(depoch, 146097);
487
477
  let cent = Math.floor(dqc / 36524);
488
- let dcent = $126da7c1075fa25c$export$842a2cf37af977e1(dqc, 36524);
478
+ let dcent = $a5090d6430502238$export$842a2cf37af977e1(dqc, 36524);
489
479
  let quad = Math.floor(dcent / 1461);
490
- let dquad = $126da7c1075fa25c$export$842a2cf37af977e1(dcent, 1461);
480
+ let dquad = $a5090d6430502238$export$842a2cf37af977e1(dcent, 1461);
491
481
  let yindex = Math.floor(dquad / 365);
492
482
  let year = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
493
- let yearDay = jd0 - $680b26d521b88d00$export$f297eb839006d339(year, 1, 1);
483
+ let yearDay = jd0 - $af14c9812fdceb33$export$f297eb839006d339(year, 1, 1);
494
484
  let leapAdj = 2;
495
- if (jd0 < $680b26d521b88d00$export$f297eb839006d339(year, 3, 1)) leapAdj = 0;
496
- else if ($680b26d521b88d00$export$553d7fa8e3805fc0(year)) leapAdj = 1;
485
+ if (jd0 < $af14c9812fdceb33$export$f297eb839006d339(year, 3, 1)) leapAdj = 0;
486
+ else if ($af14c9812fdceb33$export$553d7fa8e3805fc0(year)) leapAdj = 1;
497
487
  let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
498
- let day = jd0 - $680b26d521b88d00$export$f297eb839006d339(year, month, 1) + 1;
499
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(this, year, month, day);
488
+ let day = jd0 - $af14c9812fdceb33$export$f297eb839006d339(year, month, 1) + 1;
489
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this, year, month, day);
500
490
  }
501
491
  toJulianDay(date) {
502
- return $680b26d521b88d00$export$f297eb839006d339(date.year, date.month, date.day);
492
+ return $af14c9812fdceb33$export$f297eb839006d339(date.year, date.month, date.day);
503
493
  }
504
494
  getDaysInMonth(date) {
505
- return $680b26d521b88d00$var$daysInMonth[$680b26d521b88d00$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];
495
+ return $af14c9812fdceb33$var$daysInMonth[$af14c9812fdceb33$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];
506
496
  }
507
497
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
508
498
  getMonthsInYear(date) {
509
499
  return 12;
510
500
  }
511
501
  getDaysInYear(date) {
512
- return $680b26d521b88d00$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
502
+ return $af14c9812fdceb33$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
513
503
  }
514
504
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
515
505
  getYearsInEra(date) {
@@ -536,11 +526,11 @@ class $680b26d521b88d00$export$80ee6245ec4f29ec {
536
526
  }
537
527
 
538
528
 
539
- function $6de69c682dff3674$export$bd4fb2bc8bb06fb(date) {
540
- date = $6de69c682dff3674$export$b4a036af3fc0b032(date, new $680b26d521b88d00$export$80ee6245ec4f29ec());
541
- return $6de69c682dff3674$var$epochFromParts(date.year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
529
+ function $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(date) {
530
+ date = $4ae0260a69729f1d$export$b4a036af3fc0b032(date, new $af14c9812fdceb33$export$80ee6245ec4f29ec());
531
+ return $4ae0260a69729f1d$var$epochFromParts(date.year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
542
532
  }
543
- function $6de69c682dff3674$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
533
+ function $4ae0260a69729f1d$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
544
534
  // Note: Date.UTC() interprets one and two-digit years as being in the
545
535
  // 20th century, so don't use it
546
536
  let date = new Date();
@@ -548,16 +538,16 @@ function $6de69c682dff3674$var$epochFromParts(year, month, day, hour, minute, se
548
538
  date.setUTCFullYear(year, month - 1, day);
549
539
  return date.getTime();
550
540
  }
551
- function $6de69c682dff3674$export$59c99f3515d3493f(ms, timeZone) {
541
+ function $4ae0260a69729f1d$export$59c99f3515d3493f(ms, timeZone) {
552
542
  // Fast path: for local timezone, use native Date.
553
- if (timeZone === $8180638d62fba910$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -60000;
554
- let { year: year , month: month , day: day , hour: hour , minute: minute , second: second } = $6de69c682dff3674$var$getTimeZoneParts(ms, timeZone);
555
- let utc = $6de69c682dff3674$var$epochFromParts(year, month, day, hour, minute, second, 0);
543
+ if (timeZone === $1f0f7ebf1ae6c530$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -60000;
544
+ let { year: year , month: month , day: day , hour: hour , minute: minute , second: second } = $4ae0260a69729f1d$var$getTimeZoneParts(ms, timeZone);
545
+ let utc = $4ae0260a69729f1d$var$epochFromParts(year, month, day, hour, minute, second, 0);
556
546
  return utc - Math.floor(ms / 1000) * 1000;
557
547
  }
558
- const $6de69c682dff3674$var$formattersByTimeZone = new Map();
559
- function $6de69c682dff3674$var$getTimeZoneParts(ms, timeZone) {
560
- let formatter = $6de69c682dff3674$var$formattersByTimeZone.get(timeZone);
548
+ const $4ae0260a69729f1d$var$formattersByTimeZone = new Map();
549
+ function $4ae0260a69729f1d$var$getTimeZoneParts(ms, timeZone) {
550
+ let formatter = $4ae0260a69729f1d$var$formattersByTimeZone.get(timeZone);
561
551
  if (!formatter) {
562
552
  formatter = new Intl.DateTimeFormat('en-US', {
563
553
  timeZone: timeZone,
@@ -570,7 +560,7 @@ function $6de69c682dff3674$var$getTimeZoneParts(ms, timeZone) {
570
560
  minute: 'numeric',
571
561
  second: 'numeric'
572
562
  });
573
- $6de69c682dff3674$var$formattersByTimeZone.set(timeZone, formatter);
563
+ $4ae0260a69729f1d$var$formattersByTimeZone.set(timeZone, formatter);
574
564
  }
575
565
  let parts = formatter.formatToParts(new Date(ms));
576
566
  let namedParts = {
@@ -585,42 +575,42 @@ function $6de69c682dff3674$var$getTimeZoneParts(ms, timeZone) {
585
575
  second: +namedParts.second
586
576
  };
587
577
  }
588
- const $6de69c682dff3674$var$DAYMILLIS = 86400000;
589
- function $6de69c682dff3674$export$136f38efe7caf549(date, timeZone) {
590
- let ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(date);
591
- let earlier = ms - $6de69c682dff3674$export$59c99f3515d3493f(ms - $6de69c682dff3674$var$DAYMILLIS, timeZone);
592
- let later = ms - $6de69c682dff3674$export$59c99f3515d3493f(ms + $6de69c682dff3674$var$DAYMILLIS, timeZone);
593
- return $6de69c682dff3674$var$getValidWallTimes(date, timeZone, earlier, later);
578
+ const $4ae0260a69729f1d$var$DAYMILLIS = 86400000;
579
+ function $4ae0260a69729f1d$export$136f38efe7caf549(date, timeZone) {
580
+ let ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(date);
581
+ let earlier = ms - $4ae0260a69729f1d$export$59c99f3515d3493f(ms - $4ae0260a69729f1d$var$DAYMILLIS, timeZone);
582
+ let later = ms - $4ae0260a69729f1d$export$59c99f3515d3493f(ms + $4ae0260a69729f1d$var$DAYMILLIS, timeZone);
583
+ return $4ae0260a69729f1d$var$getValidWallTimes(date, timeZone, earlier, later);
594
584
  }
595
- function $6de69c682dff3674$var$getValidWallTimes(date, timeZone, earlier, later) {
585
+ function $4ae0260a69729f1d$var$getValidWallTimes(date, timeZone, earlier, later) {
596
586
  let found = earlier === later ? [
597
587
  earlier
598
588
  ] : [
599
589
  earlier,
600
590
  later
601
591
  ];
602
- return found.filter((absolute)=>$6de69c682dff3674$var$isValidWallTime(date, timeZone, absolute)
592
+ return found.filter((absolute)=>$4ae0260a69729f1d$var$isValidWallTime(date, timeZone, absolute)
603
593
  );
604
594
  }
605
- function $6de69c682dff3674$var$isValidWallTime(date, timeZone, absolute) {
606
- let parts = $6de69c682dff3674$var$getTimeZoneParts(absolute, timeZone);
595
+ function $4ae0260a69729f1d$var$isValidWallTime(date, timeZone, absolute) {
596
+ let parts = $4ae0260a69729f1d$var$getTimeZoneParts(absolute, timeZone);
607
597
  return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
608
598
  }
609
- function $6de69c682dff3674$export$5107c82f94518f5c(date, timeZone, disambiguation = 'compatible') {
610
- let dateTime = $6de69c682dff3674$export$b21e0b124e224484(date);
599
+ function $4ae0260a69729f1d$export$5107c82f94518f5c(date, timeZone, disambiguation = 'compatible') {
600
+ let dateTime = $4ae0260a69729f1d$export$b21e0b124e224484(date);
611
601
  // Fast path: if the time zone is the local timezone and disambiguation is compatible, use native Date.
612
- if (timeZone === $8180638d62fba910$export$aa8b41735afcabd2() && disambiguation === 'compatible') {
613
- dateTime = $6de69c682dff3674$export$b4a036af3fc0b032(dateTime, new $680b26d521b88d00$export$80ee6245ec4f29ec());
602
+ if (timeZone === $1f0f7ebf1ae6c530$export$aa8b41735afcabd2() && disambiguation === 'compatible') {
603
+ dateTime = $4ae0260a69729f1d$export$b4a036af3fc0b032(dateTime, new $af14c9812fdceb33$export$80ee6245ec4f29ec());
614
604
  // Don't use Date constructor here because two-digit years are interpreted in the 20th century.
615
605
  let date = new Date();
616
606
  date.setFullYear(dateTime.year, dateTime.month - 1, dateTime.day);
617
607
  date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
618
608
  return date.getTime();
619
609
  }
620
- let ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(dateTime);
621
- let offsetBefore = $6de69c682dff3674$export$59c99f3515d3493f(ms - $6de69c682dff3674$var$DAYMILLIS, timeZone);
622
- let offsetAfter = $6de69c682dff3674$export$59c99f3515d3493f(ms + $6de69c682dff3674$var$DAYMILLIS, timeZone);
623
- let valid = $6de69c682dff3674$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
610
+ let ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(dateTime);
611
+ let offsetBefore = $4ae0260a69729f1d$export$59c99f3515d3493f(ms - $4ae0260a69729f1d$var$DAYMILLIS, timeZone);
612
+ let offsetAfter = $4ae0260a69729f1d$export$59c99f3515d3493f(ms + $4ae0260a69729f1d$var$DAYMILLIS, timeZone);
613
+ let valid = $4ae0260a69729f1d$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
624
614
  if (valid.length === 1) return valid[0];
625
615
  if (valid.length > 1) switch(disambiguation){
626
616
  // 'compatible' means 'earlier' for "fall back" transitions
@@ -643,11 +633,11 @@ function $6de69c682dff3674$export$5107c82f94518f5c(date, timeZone, disambiguatio
643
633
  throw new RangeError('No such absolute time found');
644
634
  }
645
635
  }
646
- function $6de69c682dff3674$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {
647
- return new Date($6de69c682dff3674$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
636
+ function $4ae0260a69729f1d$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {
637
+ return new Date($4ae0260a69729f1d$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
648
638
  }
649
- function $6de69c682dff3674$export$1b96692a1ba042ac(ms, timeZone) {
650
- let offset = $6de69c682dff3674$export$59c99f3515d3493f(ms, timeZone);
639
+ function $4ae0260a69729f1d$export$1b96692a1ba042ac(ms, timeZone) {
640
+ let offset = $4ae0260a69729f1d$export$59c99f3515d3493f(ms, timeZone);
651
641
  let date = new Date(ms + offset);
652
642
  let year = date.getUTCFullYear();
653
643
  let month = date.getUTCMonth() + 1;
@@ -656,18 +646,18 @@ function $6de69c682dff3674$export$1b96692a1ba042ac(ms, timeZone) {
656
646
  let minute = date.getUTCMinutes();
657
647
  let second = date.getUTCSeconds();
658
648
  let millisecond = date.getUTCMilliseconds();
659
- return new $e2d97aa3b7775168$export$d3b7288e7994edea(year, month, day, timeZone, offset, hour, minute, second, millisecond);
649
+ return new $625ad1e1f4c43bc1$export$d3b7288e7994edea(year, month, day, timeZone, offset, hour, minute, second, millisecond);
660
650
  }
661
- function $6de69c682dff3674$export$e57ff100d91bd4b9(date, timeZone) {
662
- return $6de69c682dff3674$export$1b96692a1ba042ac(date.getTime(), timeZone);
651
+ function $4ae0260a69729f1d$export$e57ff100d91bd4b9(date, timeZone) {
652
+ return $4ae0260a69729f1d$export$1b96692a1ba042ac(date.getTime(), timeZone);
663
653
  }
664
- function $6de69c682dff3674$export$d7f92bcd3596b086(date) {
665
- return $6de69c682dff3674$export$e57ff100d91bd4b9(date, $8180638d62fba910$export$aa8b41735afcabd2());
654
+ function $4ae0260a69729f1d$export$d7f92bcd3596b086(date) {
655
+ return $4ae0260a69729f1d$export$e57ff100d91bd4b9(date, $1f0f7ebf1ae6c530$export$aa8b41735afcabd2());
666
656
  }
667
- function $6de69c682dff3674$export$93522d1a439f3617(dateTime) {
668
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
657
+ function $4ae0260a69729f1d$export$93522d1a439f3617(dateTime) {
658
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
669
659
  }
670
- function $6de69c682dff3674$export$6f4d78149f3f53ac(date) {
660
+ function $4ae0260a69729f1d$export$6f4d78149f3f53ac(date) {
671
661
  return {
672
662
  era: date.era,
673
663
  year: date.year,
@@ -675,7 +665,7 @@ function $6de69c682dff3674$export$6f4d78149f3f53ac(date) {
675
665
  day: date.day
676
666
  };
677
667
  }
678
- function $6de69c682dff3674$export$4d0393e732857be5(date) {
668
+ function $4ae0260a69729f1d$export$4d0393e732857be5(date) {
679
669
  return {
680
670
  hour: date.hour,
681
671
  minute: date.minute,
@@ -683,17 +673,17 @@ function $6de69c682dff3674$export$4d0393e732857be5(date) {
683
673
  millisecond: date.millisecond
684
674
  };
685
675
  }
686
- function $6de69c682dff3674$export$b21e0b124e224484(date, time) {
676
+ function $4ae0260a69729f1d$export$b21e0b124e224484(date, time) {
687
677
  let hour = 0, minute = 0, second = 0, millisecond = 0;
688
678
  if ('timeZone' in date) ({ hour: hour , minute: minute , second: second , millisecond: millisecond } = date);
689
679
  else if ('hour' in date && !time) return date;
690
680
  if (time) ({ hour: hour , minute: minute , second: second , millisecond: millisecond } = time);
691
- return new $e2d97aa3b7775168$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
681
+ return new $625ad1e1f4c43bc1$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
692
682
  }
693
- function $6de69c682dff3674$export$d33f79e3ffc3dc83(dateTime) {
694
- return new $e2d97aa3b7775168$export$680ea196effce5f(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
683
+ function $4ae0260a69729f1d$export$d33f79e3ffc3dc83(dateTime) {
684
+ return new $625ad1e1f4c43bc1$export$680ea196effce5f(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
695
685
  }
696
- function $6de69c682dff3674$export$b4a036af3fc0b032(date, calendar) {
686
+ function $4ae0260a69729f1d$export$b4a036af3fc0b032(date, calendar) {
697
687
  if (date.calendar.identifier === calendar.identifier) return date;
698
688
  let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
699
689
  let copy = date.copy();
@@ -704,145 +694,145 @@ function $6de69c682dff3674$export$b4a036af3fc0b032(date, calendar) {
704
694
  copy.day = calendarDate.day;
705
695
  return copy;
706
696
  }
707
- function $6de69c682dff3674$export$84c95a83c799e074(date, timeZone, disambiguation) {
708
- if (date instanceof $e2d97aa3b7775168$export$d3b7288e7994edea) {
697
+ function $4ae0260a69729f1d$export$84c95a83c799e074(date, timeZone, disambiguation) {
698
+ if (date instanceof $625ad1e1f4c43bc1$export$d3b7288e7994edea) {
709
699
  if (date.timeZone === timeZone) return date;
710
- return $6de69c682dff3674$export$538b00033cc11c75(date, timeZone);
700
+ return $4ae0260a69729f1d$export$538b00033cc11c75(date, timeZone);
711
701
  }
712
- let ms = $6de69c682dff3674$export$5107c82f94518f5c(date, timeZone, disambiguation);
713
- return $6de69c682dff3674$export$1b96692a1ba042ac(ms, timeZone);
702
+ let ms = $4ae0260a69729f1d$export$5107c82f94518f5c(date, timeZone, disambiguation);
703
+ return $4ae0260a69729f1d$export$1b96692a1ba042ac(ms, timeZone);
714
704
  }
715
- function $6de69c682dff3674$export$83aac07b4c37b25(date) {
716
- let ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(date) - date.offset;
705
+ function $4ae0260a69729f1d$export$83aac07b4c37b25(date) {
706
+ let ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(date) - date.offset;
717
707
  return new Date(ms);
718
708
  }
719
- function $6de69c682dff3674$export$538b00033cc11c75(date, timeZone) {
720
- let ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(date) - date.offset;
721
- return $6de69c682dff3674$export$b4a036af3fc0b032($6de69c682dff3674$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
709
+ function $4ae0260a69729f1d$export$538b00033cc11c75(date, timeZone) {
710
+ let ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(date) - date.offset;
711
+ return $4ae0260a69729f1d$export$b4a036af3fc0b032($4ae0260a69729f1d$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
722
712
  }
723
- function $6de69c682dff3674$export$d9b67bc93c097491(date) {
724
- return $6de69c682dff3674$export$538b00033cc11c75(date, $8180638d62fba910$export$aa8b41735afcabd2());
713
+ function $4ae0260a69729f1d$export$d9b67bc93c097491(date) {
714
+ return $4ae0260a69729f1d$export$538b00033cc11c75(date, $1f0f7ebf1ae6c530$export$aa8b41735afcabd2());
725
715
  }
726
716
 
727
717
 
728
718
 
729
- const $b795f1a945a78ee3$var$ONE_HOUR = 3600000;
730
- function $b795f1a945a78ee3$export$e16d8520af44a096(date, duration) {
719
+ const $5c0571aa5b6fb5da$var$ONE_HOUR = 3600000;
720
+ function $5c0571aa5b6fb5da$export$e16d8520af44a096(date, duration) {
731
721
  let mutableDate = date.copy();
732
- let days = 'hour' in date ? $b795f1a945a78ee3$var$addTimeFields(date, duration) : 0;
733
- $b795f1a945a78ee3$var$addYears(mutableDate, duration.years || 0);
722
+ let days = 'hour' in date ? $5c0571aa5b6fb5da$var$addTimeFields(date, duration) : 0;
723
+ $5c0571aa5b6fb5da$var$addYears(mutableDate, duration.years || 0);
734
724
  if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
735
725
  mutableDate.month += duration.months || 0;
736
- $b795f1a945a78ee3$var$balanceYearMonth(mutableDate);
737
- $b795f1a945a78ee3$var$constrainMonthDay(mutableDate);
726
+ $5c0571aa5b6fb5da$var$balanceYearMonth(mutableDate);
727
+ $5c0571aa5b6fb5da$var$constrainMonthDay(mutableDate);
738
728
  mutableDate.day += (duration.weeks || 0) * 7;
739
729
  mutableDate.day += duration.days || 0;
740
730
  mutableDate.day += days;
741
- $b795f1a945a78ee3$var$balanceDay(mutableDate);
731
+ $5c0571aa5b6fb5da$var$balanceDay(mutableDate);
742
732
  if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
743
733
  return mutableDate;
744
734
  }
745
- function $b795f1a945a78ee3$var$addYears(date, years) {
735
+ function $5c0571aa5b6fb5da$var$addYears(date, years) {
746
736
  if (date.calendar.getYearsToAdd) years = date.calendar.getYearsToAdd(date, years);
747
737
  date.year += years;
748
738
  }
749
- function $b795f1a945a78ee3$var$balanceYearMonth(date) {
739
+ function $5c0571aa5b6fb5da$var$balanceYearMonth(date) {
750
740
  while(date.month < 1){
751
- $b795f1a945a78ee3$var$addYears(date, -1);
741
+ $5c0571aa5b6fb5da$var$addYears(date, -1);
752
742
  date.month += date.calendar.getMonthsInYear(date);
753
743
  }
754
744
  let monthsInYear = 0;
755
745
  while(date.month > (monthsInYear = date.calendar.getMonthsInYear(date))){
756
746
  date.month -= monthsInYear;
757
- $b795f1a945a78ee3$var$addYears(date, 1);
747
+ $5c0571aa5b6fb5da$var$addYears(date, 1);
758
748
  }
759
749
  }
760
- function $b795f1a945a78ee3$var$balanceDay(date) {
750
+ function $5c0571aa5b6fb5da$var$balanceDay(date) {
761
751
  while(date.day < 1){
762
752
  date.month--;
763
- $b795f1a945a78ee3$var$balanceYearMonth(date);
753
+ $5c0571aa5b6fb5da$var$balanceYearMonth(date);
764
754
  date.day += date.calendar.getDaysInMonth(date);
765
755
  }
766
756
  while(date.day > date.calendar.getDaysInMonth(date)){
767
757
  date.day -= date.calendar.getDaysInMonth(date);
768
758
  date.month++;
769
- $b795f1a945a78ee3$var$balanceYearMonth(date);
759
+ $5c0571aa5b6fb5da$var$balanceYearMonth(date);
770
760
  }
771
761
  }
772
- function $b795f1a945a78ee3$var$constrainMonthDay(date) {
762
+ function $5c0571aa5b6fb5da$var$constrainMonthDay(date) {
773
763
  date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
774
764
  date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
775
765
  }
776
- function $b795f1a945a78ee3$export$c4e2ecac49351ef2(date) {
766
+ function $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(date) {
777
767
  if (date.calendar.constrainDate) date.calendar.constrainDate(date);
778
768
  date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
779
- $b795f1a945a78ee3$var$constrainMonthDay(date);
769
+ $5c0571aa5b6fb5da$var$constrainMonthDay(date);
780
770
  }
781
- function $b795f1a945a78ee3$export$3e2544e88a25bff8(duration) {
771
+ function $5c0571aa5b6fb5da$export$3e2544e88a25bff8(duration) {
782
772
  let inverseDuration = {
783
773
  };
784
774
  for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];
785
775
  return inverseDuration;
786
776
  }
787
- function $b795f1a945a78ee3$export$4e2d2ead65e5f7e3(date, duration) {
788
- return $b795f1a945a78ee3$export$e16d8520af44a096(date, $b795f1a945a78ee3$export$3e2544e88a25bff8(duration));
777
+ function $5c0571aa5b6fb5da$export$4e2d2ead65e5f7e3(date, duration) {
778
+ return $5c0571aa5b6fb5da$export$e16d8520af44a096(date, $5c0571aa5b6fb5da$export$3e2544e88a25bff8(duration));
789
779
  }
790
- function $b795f1a945a78ee3$export$adaa4cf7ef1b65be(date, fields) {
780
+ function $5c0571aa5b6fb5da$export$adaa4cf7ef1b65be(date, fields) {
791
781
  let mutableDate = date.copy();
792
782
  if (fields.era != null) mutableDate.era = fields.era;
793
783
  if (fields.year != null) mutableDate.year = fields.year;
794
784
  if (fields.month != null) mutableDate.month = fields.month;
795
785
  if (fields.day != null) mutableDate.day = fields.day;
796
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(mutableDate);
786
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(mutableDate);
797
787
  return mutableDate;
798
788
  }
799
- function $b795f1a945a78ee3$export$e5d5e1c1822b6e56(value, fields) {
789
+ function $5c0571aa5b6fb5da$export$e5d5e1c1822b6e56(value, fields) {
800
790
  let mutableValue = value.copy();
801
791
  if (fields.hour != null) mutableValue.hour = fields.hour;
802
792
  if (fields.minute != null) mutableValue.minute = fields.minute;
803
793
  if (fields.second != null) mutableValue.second = fields.second;
804
794
  if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
805
- $b795f1a945a78ee3$export$7555de1e070510cb(mutableValue);
795
+ $5c0571aa5b6fb5da$export$7555de1e070510cb(mutableValue);
806
796
  return mutableValue;
807
797
  }
808
- function $b795f1a945a78ee3$var$balanceTime(time) {
798
+ function $5c0571aa5b6fb5da$var$balanceTime(time) {
809
799
  time.second += Math.floor(time.millisecond / 1000);
810
- time.millisecond = $b795f1a945a78ee3$var$nonNegativeMod(time.millisecond, 1000);
800
+ time.millisecond = $5c0571aa5b6fb5da$var$nonNegativeMod(time.millisecond, 1000);
811
801
  time.minute += Math.floor(time.second / 60);
812
- time.second = $b795f1a945a78ee3$var$nonNegativeMod(time.second, 60);
802
+ time.second = $5c0571aa5b6fb5da$var$nonNegativeMod(time.second, 60);
813
803
  time.hour += Math.floor(time.minute / 60);
814
- time.minute = $b795f1a945a78ee3$var$nonNegativeMod(time.minute, 60);
804
+ time.minute = $5c0571aa5b6fb5da$var$nonNegativeMod(time.minute, 60);
815
805
  let days = Math.floor(time.hour / 24);
816
- time.hour = $b795f1a945a78ee3$var$nonNegativeMod(time.hour, 24);
806
+ time.hour = $5c0571aa5b6fb5da$var$nonNegativeMod(time.hour, 24);
817
807
  return days;
818
808
  }
819
- function $b795f1a945a78ee3$export$7555de1e070510cb(time) {
809
+ function $5c0571aa5b6fb5da$export$7555de1e070510cb(time) {
820
810
  time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
821
811
  time.second = Math.max(0, Math.min(time.second, 59));
822
812
  time.minute = Math.max(0, Math.min(time.minute, 59));
823
813
  time.hour = Math.max(0, Math.min(time.hour, 23));
824
814
  }
825
- function $b795f1a945a78ee3$var$nonNegativeMod(a, b) {
815
+ function $5c0571aa5b6fb5da$var$nonNegativeMod(a, b) {
826
816
  let result = a % b;
827
817
  if (result < 0) result += b;
828
818
  return result;
829
819
  }
830
- function $b795f1a945a78ee3$var$addTimeFields(time, duration) {
820
+ function $5c0571aa5b6fb5da$var$addTimeFields(time, duration) {
831
821
  time.hour += duration.hours || 0;
832
822
  time.minute += duration.minutes || 0;
833
823
  time.second += duration.seconds || 0;
834
824
  time.millisecond += duration.milliseconds || 0;
835
- return $b795f1a945a78ee3$var$balanceTime(time);
825
+ return $5c0571aa5b6fb5da$var$balanceTime(time);
836
826
  }
837
- function $b795f1a945a78ee3$export$7ed87b6bc2506470(time, duration) {
827
+ function $5c0571aa5b6fb5da$export$7ed87b6bc2506470(time, duration) {
838
828
  let res = time.copy();
839
- $b795f1a945a78ee3$var$addTimeFields(res, duration);
829
+ $5c0571aa5b6fb5da$var$addTimeFields(res, duration);
840
830
  return res;
841
831
  }
842
- function $b795f1a945a78ee3$export$fe34d3a381cd7501(time, duration) {
843
- return $b795f1a945a78ee3$export$7ed87b6bc2506470(time, $b795f1a945a78ee3$export$3e2544e88a25bff8(duration));
832
+ function $5c0571aa5b6fb5da$export$fe34d3a381cd7501(time, duration) {
833
+ return $5c0571aa5b6fb5da$export$7ed87b6bc2506470(time, $5c0571aa5b6fb5da$export$3e2544e88a25bff8(duration));
844
834
  }
845
- function $b795f1a945a78ee3$export$d52ced6badfb9a4c(value, field, amount, options) {
835
+ function $5c0571aa5b6fb5da$export$d52ced6badfb9a4c(value, field, amount, options) {
846
836
  let mutable = value.copy();
847
837
  switch(field){
848
838
  case 'era':
@@ -850,10 +840,10 @@ function $b795f1a945a78ee3$export$d52ced6badfb9a4c(value, field, amount, options
850
840
  let eras = value.calendar.getEras();
851
841
  let eraIndex = eras.indexOf(value.era);
852
842
  if (eraIndex < 0) throw new Error('Invalid era: ' + value.era);
853
- eraIndex = $b795f1a945a78ee3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
843
+ eraIndex = $5c0571aa5b6fb5da$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
854
844
  mutable.era = eras[eraIndex];
855
845
  // Constrain the year and other fields within the era, so the era doesn't change when we balance below.
856
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(mutable);
846
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(mutable);
857
847
  break;
858
848
  }
859
849
  case 'year':
@@ -861,24 +851,24 @@ function $b795f1a945a78ee3$export$d52ced6badfb9a4c(value, field, amount, options
861
851
  // The year field should not cycle within the era as that can cause weird behavior affecting other fields.
862
852
  // We need to also allow values < 1 so that decrementing goes to the previous era. If we get -Infinity back
863
853
  // we know we wrapped around after reaching 9999 (the maximum), so set the year back to 1.
864
- mutable.year = $b795f1a945a78ee3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
854
+ mutable.year = $5c0571aa5b6fb5da$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
865
855
  if (mutable.year === -Infinity) mutable.year = 1;
866
856
  if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
867
857
  break;
868
858
  case 'month':
869
- mutable.month = $b795f1a945a78ee3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
859
+ mutable.month = $5c0571aa5b6fb5da$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
870
860
  break;
871
861
  case 'day':
872
- mutable.day = $b795f1a945a78ee3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
862
+ mutable.day = $5c0571aa5b6fb5da$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
873
863
  break;
874
864
  default:
875
865
  throw new Error('Unsupported field ' + field);
876
866
  }
877
867
  if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
878
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(mutable);
868
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(mutable);
879
869
  return mutable;
880
870
  }
881
- function $b795f1a945a78ee3$export$dd02b3e0007dfe28(value, field, amount, options) {
871
+ function $5c0571aa5b6fb5da$export$dd02b3e0007dfe28(value, field, amount, options) {
882
872
  let mutable = value.copy();
883
873
  switch(field){
884
874
  case 'hour':
@@ -891,24 +881,24 @@ function $b795f1a945a78ee3$export$dd02b3e0007dfe28(value, field, amount, options
891
881
  min = isPM ? 12 : 0;
892
882
  max = isPM ? 23 : 11;
893
883
  }
894
- mutable.hour = $b795f1a945a78ee3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
884
+ mutable.hour = $5c0571aa5b6fb5da$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
895
885
  break;
896
886
  }
897
887
  case 'minute':
898
- mutable.minute = $b795f1a945a78ee3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
888
+ mutable.minute = $5c0571aa5b6fb5da$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
899
889
  break;
900
890
  case 'second':
901
- mutable.second = $b795f1a945a78ee3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
891
+ mutable.second = $5c0571aa5b6fb5da$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
902
892
  break;
903
893
  case 'millisecond':
904
- mutable.millisecond = $b795f1a945a78ee3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
894
+ mutable.millisecond = $5c0571aa5b6fb5da$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
905
895
  break;
906
896
  default:
907
897
  throw new Error('Unsupported field ' + field);
908
898
  }
909
899
  return mutable;
910
900
  }
911
- function $b795f1a945a78ee3$var$cycleValue(value, amount, min, max, round = false) {
901
+ function $5c0571aa5b6fb5da$var$cycleValue(value, amount, min, max, round = false) {
912
902
  if (round) {
913
903
  value += Math.sign(amount);
914
904
  if (value < min) value = max;
@@ -923,19 +913,19 @@ function $b795f1a945a78ee3$var$cycleValue(value, amount, min, max, round = false
923
913
  }
924
914
  return value;
925
915
  }
926
- function $b795f1a945a78ee3$export$96b1d28349274637(dateTime, duration) {
916
+ function $5c0571aa5b6fb5da$export$96b1d28349274637(dateTime, duration) {
927
917
  let ms;
928
918
  if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.days != null && duration.days !== 0) {
929
- let res = $b795f1a945a78ee3$export$e16d8520af44a096($6de69c682dff3674$export$b21e0b124e224484(dateTime), {
919
+ let res = $5c0571aa5b6fb5da$export$e16d8520af44a096($4ae0260a69729f1d$export$b21e0b124e224484(dateTime), {
930
920
  years: duration.years,
931
921
  months: duration.months,
932
922
  days: duration.days
933
923
  });
934
924
  // Changing the date may change the timezone offset, so we need to recompute
935
925
  // using the 'compatible' disambiguation.
936
- ms = $6de69c682dff3674$export$5107c82f94518f5c(res, dateTime.timeZone);
926
+ ms = $4ae0260a69729f1d$export$5107c82f94518f5c(res, dateTime.timeZone);
937
927
  } else // Otherwise, preserve the offset of the original date.
938
- ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
928
+ ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
939
929
  // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.
940
930
  // For example, adding one hour during a DST transition may result in the hour field staying the same or
941
931
  // skipping an hour. This results in the offset field changing value instead of the specified field.
@@ -943,13 +933,13 @@ function $b795f1a945a78ee3$export$96b1d28349274637(dateTime, duration) {
943
933
  ms += (duration.seconds || 0) * 1000;
944
934
  ms += (duration.minutes || 0) * 60000;
945
935
  ms += (duration.hours || 0) * 3600000;
946
- let res = $6de69c682dff3674$export$1b96692a1ba042ac(ms, dateTime.timeZone);
947
- return $6de69c682dff3674$export$b4a036af3fc0b032(res, dateTime.calendar);
936
+ let res = $4ae0260a69729f1d$export$1b96692a1ba042ac(ms, dateTime.timeZone);
937
+ return $4ae0260a69729f1d$export$b4a036af3fc0b032(res, dateTime.calendar);
948
938
  }
949
- function $b795f1a945a78ee3$export$6814caac34ca03c7(dateTime, duration) {
950
- return $b795f1a945a78ee3$export$96b1d28349274637(dateTime, $b795f1a945a78ee3$export$3e2544e88a25bff8(duration));
939
+ function $5c0571aa5b6fb5da$export$6814caac34ca03c7(dateTime, duration) {
940
+ return $5c0571aa5b6fb5da$export$96b1d28349274637(dateTime, $5c0571aa5b6fb5da$export$3e2544e88a25bff8(duration));
951
941
  }
952
- function $b795f1a945a78ee3$export$9a297d111fc86b79(dateTime, field, amount, options) {
942
+ function $5c0571aa5b6fb5da$export$9a297d111fc86b79(dateTime, field, amount, options) {
953
943
  // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.
954
944
  // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC
955
945
  // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.
@@ -968,167 +958,155 @@ function $b795f1a945a78ee3$export$9a297d111fc86b79(dateTime, field, amount, opti
968
958
  // Or it might end at midnight and repeat the 11pm hour. To handle this, we get
969
959
  // the possible absolute times for the min and max, and find the maximum range
970
960
  // that is within the current day.
971
- let plainDateTime = $6de69c682dff3674$export$b21e0b124e224484(dateTime);
972
- let minDate = $6de69c682dff3674$export$b4a036af3fc0b032($b795f1a945a78ee3$export$e5d5e1c1822b6e56(plainDateTime, {
961
+ let plainDateTime = $4ae0260a69729f1d$export$b21e0b124e224484(dateTime);
962
+ let minDate = $4ae0260a69729f1d$export$b4a036af3fc0b032($5c0571aa5b6fb5da$export$e5d5e1c1822b6e56(plainDateTime, {
973
963
  hour: min
974
- }), new $680b26d521b88d00$export$80ee6245ec4f29ec());
964
+ }), new $af14c9812fdceb33$export$80ee6245ec4f29ec());
975
965
  let minAbsolute = [
976
- $6de69c682dff3674$export$5107c82f94518f5c(minDate, dateTime.timeZone, 'earlier'),
977
- $6de69c682dff3674$export$5107c82f94518f5c(minDate, dateTime.timeZone, 'later')
978
- ].filter((ms)=>$6de69c682dff3674$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === minDate.day
966
+ $4ae0260a69729f1d$export$5107c82f94518f5c(minDate, dateTime.timeZone, 'earlier'),
967
+ $4ae0260a69729f1d$export$5107c82f94518f5c(minDate, dateTime.timeZone, 'later')
968
+ ].filter((ms)=>$4ae0260a69729f1d$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === minDate.day
979
969
  )[0];
980
- let maxDate = $6de69c682dff3674$export$b4a036af3fc0b032($b795f1a945a78ee3$export$e5d5e1c1822b6e56(plainDateTime, {
970
+ let maxDate = $4ae0260a69729f1d$export$b4a036af3fc0b032($5c0571aa5b6fb5da$export$e5d5e1c1822b6e56(plainDateTime, {
981
971
  hour: max
982
- }), new $680b26d521b88d00$export$80ee6245ec4f29ec());
972
+ }), new $af14c9812fdceb33$export$80ee6245ec4f29ec());
983
973
  let maxAbsolute = [
984
- $6de69c682dff3674$export$5107c82f94518f5c(maxDate, dateTime.timeZone, 'earlier'),
985
- $6de69c682dff3674$export$5107c82f94518f5c(maxDate, dateTime.timeZone, 'later')
986
- ].filter((ms)=>$6de69c682dff3674$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === maxDate.day
974
+ $4ae0260a69729f1d$export$5107c82f94518f5c(maxDate, dateTime.timeZone, 'earlier'),
975
+ $4ae0260a69729f1d$export$5107c82f94518f5c(maxDate, dateTime.timeZone, 'later')
976
+ ].filter((ms)=>$4ae0260a69729f1d$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === maxDate.day
987
977
  ).pop();
988
978
  // Since hours may repeat, we need to operate on the absolute time in milliseconds.
989
979
  // This is done in hours from the Unix epoch so that cycleValue works correctly,
990
980
  // and then converted back to milliseconds.
991
- let ms1 = $6de69c682dff3674$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
992
- let hours = Math.floor(ms1 / $b795f1a945a78ee3$var$ONE_HOUR);
993
- let remainder = ms1 % $b795f1a945a78ee3$var$ONE_HOUR;
994
- ms1 = $b795f1a945a78ee3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $b795f1a945a78ee3$var$ONE_HOUR), Math.floor(maxAbsolute / $b795f1a945a78ee3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $b795f1a945a78ee3$var$ONE_HOUR + remainder;
981
+ let ms1 = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
982
+ let hours = Math.floor(ms1 / $5c0571aa5b6fb5da$var$ONE_HOUR);
983
+ let remainder = ms1 % $5c0571aa5b6fb5da$var$ONE_HOUR;
984
+ ms1 = $5c0571aa5b6fb5da$var$cycleValue(hours, amount, Math.floor(minAbsolute / $5c0571aa5b6fb5da$var$ONE_HOUR), Math.floor(maxAbsolute / $5c0571aa5b6fb5da$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $5c0571aa5b6fb5da$var$ONE_HOUR + remainder;
995
985
  // Now compute the new timezone offset, and convert the absolute time back to local time.
996
- return $6de69c682dff3674$export$b4a036af3fc0b032($6de69c682dff3674$export$1b96692a1ba042ac(ms1, dateTime.timeZone), dateTime.calendar);
986
+ return $4ae0260a69729f1d$export$b4a036af3fc0b032($4ae0260a69729f1d$export$1b96692a1ba042ac(ms1, dateTime.timeZone), dateTime.calendar);
997
987
  }
998
988
  case 'minute':
999
989
  case 'second':
1000
990
  case 'millisecond':
1001
991
  // @ts-ignore
1002
- return $b795f1a945a78ee3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
992
+ return $5c0571aa5b6fb5da$export$dd02b3e0007dfe28(dateTime, field, amount, options);
1003
993
  case 'era':
1004
994
  case 'year':
1005
995
  case 'month':
1006
996
  case 'day':
1007
997
  {
1008
- let res = $b795f1a945a78ee3$export$d52ced6badfb9a4c($6de69c682dff3674$export$b21e0b124e224484(dateTime), field, amount, options);
1009
- let ms = $6de69c682dff3674$export$5107c82f94518f5c(res, dateTime.timeZone);
1010
- return $6de69c682dff3674$export$b4a036af3fc0b032($6de69c682dff3674$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
998
+ let res = $5c0571aa5b6fb5da$export$d52ced6badfb9a4c($4ae0260a69729f1d$export$b21e0b124e224484(dateTime), field, amount, options);
999
+ let ms = $4ae0260a69729f1d$export$5107c82f94518f5c(res, dateTime.timeZone);
1000
+ return $4ae0260a69729f1d$export$b4a036af3fc0b032($4ae0260a69729f1d$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
1011
1001
  }
1012
1002
  default:
1013
1003
  throw new Error('Unsupported field ' + field);
1014
1004
  }
1015
1005
  }
1016
- function $b795f1a945a78ee3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
1006
+ function $5c0571aa5b6fb5da$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
1017
1007
  // Set the date/time fields, and recompute the UTC offset to account for DST changes.
1018
1008
  // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.
1019
- let plainDateTime = $6de69c682dff3674$export$b21e0b124e224484(dateTime);
1020
- let res = $b795f1a945a78ee3$export$e5d5e1c1822b6e56($b795f1a945a78ee3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
1009
+ let plainDateTime = $4ae0260a69729f1d$export$b21e0b124e224484(dateTime);
1010
+ let res = $5c0571aa5b6fb5da$export$e5d5e1c1822b6e56($5c0571aa5b6fb5da$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
1021
1011
  // If the resulting plain date time values are equal, return the original time.
1022
1012
  // We don't want to change the offset when setting the time to the same value.
1023
1013
  if (res.compare(plainDateTime) === 0) return dateTime;
1024
- let ms = $6de69c682dff3674$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
1025
- return $6de69c682dff3674$export$b4a036af3fc0b032($6de69c682dff3674$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
1014
+ let ms = $4ae0260a69729f1d$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
1015
+ return $4ae0260a69729f1d$export$b4a036af3fc0b032($4ae0260a69729f1d$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
1026
1016
  }
1027
1017
 
1028
1018
 
1029
1019
 
1030
- var $6f8483c3b5544266$exports = {};
1031
1020
 
1032
- $parcel$export($6f8483c3b5544266$exports, "parseTime", () => $6f8483c3b5544266$export$c9698ec7f05a07e1);
1033
- $parcel$export($6f8483c3b5544266$exports, "parseDate", () => $6f8483c3b5544266$export$6b862160d295c8e);
1034
- $parcel$export($6f8483c3b5544266$exports, "parseDateTime", () => $6f8483c3b5544266$export$588937bcd60ade55);
1035
- $parcel$export($6f8483c3b5544266$exports, "parseZonedDateTime", () => $6f8483c3b5544266$export$fd7893f06e92a6a4);
1036
- $parcel$export($6f8483c3b5544266$exports, "dateTimeToString", () => $6f8483c3b5544266$export$4223de14708adc63);
1037
- $parcel$export($6f8483c3b5544266$exports, "parseAbsolute", () => $6f8483c3b5544266$export$5adfdab05168c219);
1038
- $parcel$export($6f8483c3b5544266$exports, "parseAbsoluteToLocal", () => $6f8483c3b5544266$export$8e384432362ed0f0);
1039
- $parcel$export($6f8483c3b5544266$exports, "timeToString", () => $6f8483c3b5544266$export$f59dee82248f5ad4);
1040
- $parcel$export($6f8483c3b5544266$exports, "dateToString", () => $6f8483c3b5544266$export$60dfd74aa96791bd);
1041
- $parcel$export($6f8483c3b5544266$exports, "zonedDateTimeToString", () => $6f8483c3b5544266$export$bf79f1ebf4b18792);
1042
1021
 
1043
1022
 
1044
1023
 
1045
-
1046
- const $6f8483c3b5544266$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
1047
- const $6f8483c3b5544266$var$DATE_RE = /^(\d{4})-(\d{2})-(\d{2})$/;
1048
- const $6f8483c3b5544266$var$DATE_TIME_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
1049
- const $6f8483c3b5544266$var$ZONED_DATE_TIME_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::(\d{2}))?)?\[(.*?)\]$/;
1050
- const $6f8483c3b5544266$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::(\d{2}))?)|Z)$/;
1051
- function $6f8483c3b5544266$export$c9698ec7f05a07e1(value) {
1052
- let m = value.match($6f8483c3b5544266$var$TIME_RE);
1024
+ const $4c32e2d98e5a5134$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
1025
+ const $4c32e2d98e5a5134$var$DATE_RE = /^(\d{4})-(\d{2})-(\d{2})$/;
1026
+ const $4c32e2d98e5a5134$var$DATE_TIME_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
1027
+ const $4c32e2d98e5a5134$var$ZONED_DATE_TIME_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::(\d{2}))?)?\[(.*?)\]$/;
1028
+ const $4c32e2d98e5a5134$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::(\d{2}))?)|Z)$/;
1029
+ function $4c32e2d98e5a5134$export$c9698ec7f05a07e1(value) {
1030
+ let m = value.match($4c32e2d98e5a5134$var$TIME_RE);
1053
1031
  if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);
1054
- return new $e2d97aa3b7775168$export$680ea196effce5f($6f8483c3b5544266$var$parseNumber(m[1], 0, 23), m[2] ? $6f8483c3b5544266$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $6f8483c3b5544266$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $6f8483c3b5544266$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
1032
+ return new $625ad1e1f4c43bc1$export$680ea196effce5f($4c32e2d98e5a5134$var$parseNumber(m[1], 0, 23), m[2] ? $4c32e2d98e5a5134$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $4c32e2d98e5a5134$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $4c32e2d98e5a5134$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
1055
1033
  }
1056
- function $6f8483c3b5544266$export$6b862160d295c8e(value) {
1057
- let m = value.match($6f8483c3b5544266$var$DATE_RE);
1034
+ function $4c32e2d98e5a5134$export$6b862160d295c8e(value) {
1035
+ let m = value.match($4c32e2d98e5a5134$var$DATE_RE);
1058
1036
  if (!m) throw new Error('Invalid ISO 8601 date string: ' + value);
1059
- let date = new $e2d97aa3b7775168$export$99faa760c7908e4f($6f8483c3b5544266$var$parseNumber(m[1], 0, 9999), $6f8483c3b5544266$var$parseNumber(m[2], 1, 12), 1);
1060
- date.day = $6f8483c3b5544266$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1037
+ let date = new $625ad1e1f4c43bc1$export$99faa760c7908e4f($4c32e2d98e5a5134$var$parseNumber(m[1], 0, 9999), $4c32e2d98e5a5134$var$parseNumber(m[2], 1, 12), 1);
1038
+ date.day = $4c32e2d98e5a5134$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1061
1039
  return date;
1062
1040
  }
1063
- function $6f8483c3b5544266$export$588937bcd60ade55(value) {
1064
- let m = value.match($6f8483c3b5544266$var$DATE_TIME_RE);
1041
+ function $4c32e2d98e5a5134$export$588937bcd60ade55(value) {
1042
+ let m = value.match($4c32e2d98e5a5134$var$DATE_TIME_RE);
1065
1043
  if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);
1066
- let date = new $e2d97aa3b7775168$export$ca871e8dbb80966f($6f8483c3b5544266$var$parseNumber(m[1], 1, 9999), $6f8483c3b5544266$var$parseNumber(m[2], 1, 12), 1, m[4] ? $6f8483c3b5544266$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $6f8483c3b5544266$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $6f8483c3b5544266$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $6f8483c3b5544266$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1067
- date.day = $6f8483c3b5544266$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1044
+ let date = new $625ad1e1f4c43bc1$export$ca871e8dbb80966f($4c32e2d98e5a5134$var$parseNumber(m[1], 1, 9999), $4c32e2d98e5a5134$var$parseNumber(m[2], 1, 12), 1, m[4] ? $4c32e2d98e5a5134$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $4c32e2d98e5a5134$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $4c32e2d98e5a5134$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $4c32e2d98e5a5134$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1045
+ date.day = $4c32e2d98e5a5134$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1068
1046
  return date;
1069
1047
  }
1070
- function $6f8483c3b5544266$export$fd7893f06e92a6a4(value, disambiguation) {
1071
- let m = value.match($6f8483c3b5544266$var$ZONED_DATE_TIME_RE);
1048
+ function $4c32e2d98e5a5134$export$fd7893f06e92a6a4(value, disambiguation) {
1049
+ let m = value.match($4c32e2d98e5a5134$var$ZONED_DATE_TIME_RE);
1072
1050
  if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);
1073
- let date = new $e2d97aa3b7775168$export$d3b7288e7994edea($6f8483c3b5544266$var$parseNumber(m[1], 1, 9999), $6f8483c3b5544266$var$parseNumber(m[2], 1, 12), 1, m[10], 0, m[4] ? $6f8483c3b5544266$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $6f8483c3b5544266$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $6f8483c3b5544266$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $6f8483c3b5544266$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1074
- date.day = $6f8483c3b5544266$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1075
- let plainDateTime = $6de69c682dff3674$export$b21e0b124e224484(date);
1051
+ let date = new $625ad1e1f4c43bc1$export$d3b7288e7994edea($4c32e2d98e5a5134$var$parseNumber(m[1], 1, 9999), $4c32e2d98e5a5134$var$parseNumber(m[2], 1, 12), 1, m[10], 0, m[4] ? $4c32e2d98e5a5134$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $4c32e2d98e5a5134$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $4c32e2d98e5a5134$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $4c32e2d98e5a5134$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1052
+ date.day = $4c32e2d98e5a5134$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1053
+ let plainDateTime = $4ae0260a69729f1d$export$b21e0b124e224484(date);
1076
1054
  let ms;
1077
1055
  if (m[8]) {
1078
1056
  var ref;
1079
- date.offset = $6f8483c3b5544266$var$parseNumber(m[8], -23, 23) * 3600000 + $6f8483c3b5544266$var$parseNumber((ref = m[9]) !== null && ref !== void 0 ? ref : '0', 0, 59) * 60000;
1080
- ms = $6de69c682dff3674$export$bd4fb2bc8bb06fb(date) - date.offset;
1057
+ date.offset = $4c32e2d98e5a5134$var$parseNumber(m[8], -23, 23) * 3600000 + $4c32e2d98e5a5134$var$parseNumber((ref = m[9]) !== null && ref !== void 0 ? ref : '0', 0, 59) * 60000;
1058
+ ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(date) - date.offset;
1081
1059
  // Validate offset against parsed date.
1082
- let absolutes = $6de69c682dff3674$export$136f38efe7caf549(plainDateTime, date.timeZone);
1083
- if (!absolutes.includes(ms)) throw new Error(`Offset ${$6f8483c3b5544266$var$offsetToString(date.offset)} is invalid for ${$6f8483c3b5544266$export$4223de14708adc63(date)} in ${date.timeZone}`);
1060
+ let absolutes = $4ae0260a69729f1d$export$136f38efe7caf549(plainDateTime, date.timeZone);
1061
+ if (!absolutes.includes(ms)) throw new Error(`Offset ${$4c32e2d98e5a5134$var$offsetToString(date.offset)} is invalid for ${$4c32e2d98e5a5134$export$4223de14708adc63(date)} in ${date.timeZone}`);
1084
1062
  } else // Convert to absolute and back to fix invalid times due to DST.
1085
- ms = $6de69c682dff3674$export$5107c82f94518f5c($6de69c682dff3674$export$b21e0b124e224484(plainDateTime), date.timeZone, disambiguation);
1086
- return $6de69c682dff3674$export$1b96692a1ba042ac(ms, date.timeZone);
1063
+ ms = $4ae0260a69729f1d$export$5107c82f94518f5c($4ae0260a69729f1d$export$b21e0b124e224484(plainDateTime), date.timeZone, disambiguation);
1064
+ return $4ae0260a69729f1d$export$1b96692a1ba042ac(ms, date.timeZone);
1087
1065
  }
1088
- function $6f8483c3b5544266$export$5adfdab05168c219(value, timeZone) {
1089
- let m = value.match($6f8483c3b5544266$var$ABSOLUTE_RE);
1066
+ function $4c32e2d98e5a5134$export$5adfdab05168c219(value, timeZone) {
1067
+ let m = value.match($4c32e2d98e5a5134$var$ABSOLUTE_RE);
1090
1068
  if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);
1091
- let date = new $e2d97aa3b7775168$export$d3b7288e7994edea($6f8483c3b5544266$var$parseNumber(m[1], 1, 9999), $6f8483c3b5544266$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $6f8483c3b5544266$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $6f8483c3b5544266$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $6f8483c3b5544266$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $6f8483c3b5544266$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1092
- date.day = $6f8483c3b5544266$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1069
+ let date = new $625ad1e1f4c43bc1$export$d3b7288e7994edea($4c32e2d98e5a5134$var$parseNumber(m[1], 1, 9999), $4c32e2d98e5a5134$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $4c32e2d98e5a5134$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $4c32e2d98e5a5134$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $4c32e2d98e5a5134$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $4c32e2d98e5a5134$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);
1070
+ date.day = $4c32e2d98e5a5134$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
1093
1071
  var ref;
1094
- if (m[8]) date.offset = $6f8483c3b5544266$var$parseNumber(m[8], -23, 23) * 3600000 + $6f8483c3b5544266$var$parseNumber((ref = m[9]) !== null && ref !== void 0 ? ref : '0', 0, 59) * 60000;
1095
- return $6de69c682dff3674$export$538b00033cc11c75(date, timeZone);
1072
+ if (m[8]) date.offset = $4c32e2d98e5a5134$var$parseNumber(m[8], -23, 23) * 3600000 + $4c32e2d98e5a5134$var$parseNumber((ref = m[9]) !== null && ref !== void 0 ? ref : '0', 0, 59) * 60000;
1073
+ return $4ae0260a69729f1d$export$538b00033cc11c75(date, timeZone);
1096
1074
  }
1097
- function $6f8483c3b5544266$export$8e384432362ed0f0(value) {
1098
- return $6f8483c3b5544266$export$5adfdab05168c219(value, $8180638d62fba910$export$aa8b41735afcabd2());
1075
+ function $4c32e2d98e5a5134$export$8e384432362ed0f0(value) {
1076
+ return $4c32e2d98e5a5134$export$5adfdab05168c219(value, $1f0f7ebf1ae6c530$export$aa8b41735afcabd2());
1099
1077
  }
1100
- function $6f8483c3b5544266$var$parseNumber(value, min, max) {
1078
+ function $4c32e2d98e5a5134$var$parseNumber(value, min, max) {
1101
1079
  let val = Number(value);
1102
1080
  if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
1103
1081
  return val;
1104
1082
  }
1105
- function $6f8483c3b5544266$export$f59dee82248f5ad4(time) {
1083
+ function $4c32e2d98e5a5134$export$f59dee82248f5ad4(time) {
1106
1084
  return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;
1107
1085
  }
1108
- function $6f8483c3b5544266$export$60dfd74aa96791bd(date) {
1109
- let gregorianDate = $6de69c682dff3674$export$b4a036af3fc0b032(date, new $680b26d521b88d00$export$80ee6245ec4f29ec());
1086
+ function $4c32e2d98e5a5134$export$60dfd74aa96791bd(date) {
1087
+ let gregorianDate = $4ae0260a69729f1d$export$b4a036af3fc0b032(date, new $af14c9812fdceb33$export$80ee6245ec4f29ec());
1110
1088
  return `${String(gregorianDate.year).padStart(4, '0')}-${String(gregorianDate.month).padStart(2, '0')}-${String(gregorianDate.day).padStart(2, '0')}`;
1111
1089
  }
1112
- function $6f8483c3b5544266$export$4223de14708adc63(date) {
1090
+ function $4c32e2d98e5a5134$export$4223de14708adc63(date) {
1113
1091
  // @ts-ignore
1114
- return `${$6f8483c3b5544266$export$60dfd74aa96791bd(date)}T${$6f8483c3b5544266$export$f59dee82248f5ad4(date)}`;
1092
+ return `${$4c32e2d98e5a5134$export$60dfd74aa96791bd(date)}T${$4c32e2d98e5a5134$export$f59dee82248f5ad4(date)}`;
1115
1093
  }
1116
- function $6f8483c3b5544266$var$offsetToString(offset) {
1094
+ function $4c32e2d98e5a5134$var$offsetToString(offset) {
1117
1095
  let sign = Math.sign(offset) < 0 ? '-' : '+';
1118
1096
  offset = Math.abs(offset);
1119
1097
  let offsetHours = Math.floor(offset / 3600000);
1120
1098
  let offsetMinutes = offset % 3600000 / 60000;
1121
1099
  return `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;
1122
1100
  }
1123
- function $6f8483c3b5544266$export$bf79f1ebf4b18792(date) {
1124
- return `${$6f8483c3b5544266$export$4223de14708adc63(date)}${$6f8483c3b5544266$var$offsetToString(date.offset)}[${date.timeZone}]`;
1101
+ function $4c32e2d98e5a5134$export$bf79f1ebf4b18792(date) {
1102
+ return `${$4c32e2d98e5a5134$export$4223de14708adc63(date)}${$4c32e2d98e5a5134$var$offsetToString(date.offset)}[${date.timeZone}]`;
1125
1103
  }
1126
1104
 
1127
1105
 
1128
1106
 
1129
1107
 
1130
- function $e2d97aa3b7775168$var$shiftArgs(args) {
1131
- let calendar = typeof args[0] === 'object' ? args.shift() : new $680b26d521b88d00$export$80ee6245ec4f29ec();
1108
+ function $625ad1e1f4c43bc1$var$shiftArgs(args) {
1109
+ let calendar = typeof args[0] === 'object' ? args.shift() : new $af14c9812fdceb33$export$80ee6245ec4f29ec();
1132
1110
  let era;
1133
1111
  if (typeof args[0] === 'string') era = args.shift();
1134
1112
  else {
@@ -1146,31 +1124,34 @@ function $e2d97aa3b7775168$var$shiftArgs(args) {
1146
1124
  day
1147
1125
  ];
1148
1126
  }
1149
- class $e2d97aa3b7775168$export$99faa760c7908e4f {
1150
- copy() {
1151
- if (this.era) return new $e2d97aa3b7775168$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
1152
- else return new $e2d97aa3b7775168$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
1127
+ class $625ad1e1f4c43bc1$export$99faa760c7908e4f {
1128
+ /** Returns a copy of this date. */ copy() {
1129
+ if (this.era) return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
1130
+ else return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
1153
1131
  }
1154
- add(duration) {
1155
- return $b795f1a945a78ee3$export$e16d8520af44a096(this, duration);
1132
+ /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {
1133
+ return $5c0571aa5b6fb5da$export$e16d8520af44a096(this, duration);
1156
1134
  }
1157
- subtract(duration) {
1158
- return $b795f1a945a78ee3$export$4e2d2ead65e5f7e3(this, duration);
1135
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {
1136
+ return $5c0571aa5b6fb5da$export$4e2d2ead65e5f7e3(this, duration);
1159
1137
  }
1160
- set(fields) {
1161
- return $b795f1a945a78ee3$export$adaa4cf7ef1b65be(this, fields);
1138
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
1139
+ return $5c0571aa5b6fb5da$export$adaa4cf7ef1b65be(this, fields);
1162
1140
  }
1163
- cycle(field, amount, options) {
1164
- return $b795f1a945a78ee3$export$d52ced6badfb9a4c(this, field, amount, options);
1141
+ /**
1142
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
1143
+ * When the resulting value reaches the limits of the field, it wraps around.
1144
+ */ cycle(field, amount, options) {
1145
+ return $5c0571aa5b6fb5da$export$d52ced6badfb9a4c(this, field, amount, options);
1165
1146
  }
1166
- toDate(timeZone) {
1167
- return $6de69c682dff3674$export$e67a095c620b86fe(this, timeZone);
1147
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {
1148
+ return $4ae0260a69729f1d$export$e67a095c620b86fe(this, timeZone);
1168
1149
  }
1169
- toString() {
1170
- return $6f8483c3b5544266$export$60dfd74aa96791bd(this);
1150
+ /** Converts the date to an ISO 8601 formatted string. */ toString() {
1151
+ return $4c32e2d98e5a5134$export$60dfd74aa96791bd(this);
1171
1152
  }
1172
- compare(b) {
1173
- return $8180638d62fba910$export$68781ddf31c0090f(this, b);
1153
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
1154
+ return $1f0f7ebf1ae6c530$export$68781ddf31c0090f(this, b);
1174
1155
  }
1175
1156
  constructor(...args){
1176
1157
  // This prevents TypeScript from allowing other types with the same fields to match.
@@ -1180,37 +1161,40 @@ class $e2d97aa3b7775168$export$99faa760c7908e4f {
1180
1161
  writable: true,
1181
1162
  value: void 0
1182
1163
  });
1183
- let [calendar, era, year, month, day] = $e2d97aa3b7775168$var$shiftArgs(args);
1164
+ let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
1184
1165
  this.calendar = calendar;
1185
1166
  this.era = era;
1186
1167
  this.year = year;
1187
1168
  this.month = month;
1188
1169
  this.day = day;
1189
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(this);
1170
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(this);
1190
1171
  }
1191
1172
  }
1192
1173
  var _type = new WeakMap();
1193
- class $e2d97aa3b7775168$export$680ea196effce5f {
1194
- copy() {
1195
- return new $e2d97aa3b7775168$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
1174
+ class $625ad1e1f4c43bc1$export$680ea196effce5f {
1175
+ /** Returns a copy of this time. */ copy() {
1176
+ return new $625ad1e1f4c43bc1$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
1196
1177
  }
1197
- add(duration) {
1198
- return $b795f1a945a78ee3$export$7ed87b6bc2506470(this, duration);
1178
+ /** Returns a new `Time` with the given duration added to it. */ add(duration) {
1179
+ return $5c0571aa5b6fb5da$export$7ed87b6bc2506470(this, duration);
1199
1180
  }
1200
- subtract(duration) {
1201
- return $b795f1a945a78ee3$export$fe34d3a381cd7501(this, duration);
1181
+ /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
1182
+ return $5c0571aa5b6fb5da$export$fe34d3a381cd7501(this, duration);
1202
1183
  }
1203
- set(fields) {
1204
- return $b795f1a945a78ee3$export$e5d5e1c1822b6e56(this, fields);
1184
+ /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
1185
+ return $5c0571aa5b6fb5da$export$e5d5e1c1822b6e56(this, fields);
1205
1186
  }
1206
- cycle(field, amount, options) {
1207
- return $b795f1a945a78ee3$export$dd02b3e0007dfe28(this, field, amount, options);
1187
+ /**
1188
+ * Returns a new `Time` with the given field adjusted by a specified amount.
1189
+ * When the resulting value reaches the limits of the field, it wraps around.
1190
+ */ cycle(field, amount, options) {
1191
+ return $5c0571aa5b6fb5da$export$dd02b3e0007dfe28(this, field, amount, options);
1208
1192
  }
1209
- toString() {
1210
- return $6f8483c3b5544266$export$f59dee82248f5ad4(this);
1193
+ /** Converts the time to an ISO 8601 formatted string. */ toString() {
1194
+ return $4c32e2d98e5a5134$export$f59dee82248f5ad4(this);
1211
1195
  }
1212
- compare(b) {
1213
- return $8180638d62fba910$export$c19a80a9721b80f6(this, b);
1196
+ /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
1197
+ return $1f0f7ebf1ae6c530$export$c19a80a9721b80f6(this, b);
1214
1198
  }
1215
1199
  constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
1216
1200
  // This prevents TypeScript from allowing other types with the same fields to match.
@@ -1222,44 +1206,47 @@ class $e2d97aa3b7775168$export$680ea196effce5f {
1222
1206
  this.minute = minute;
1223
1207
  this.second = second;
1224
1208
  this.millisecond = millisecond;
1225
- $b795f1a945a78ee3$export$7555de1e070510cb(this);
1209
+ $5c0571aa5b6fb5da$export$7555de1e070510cb(this);
1226
1210
  }
1227
1211
  }
1228
1212
  var _type1 = new WeakMap();
1229
- class $e2d97aa3b7775168$export$ca871e8dbb80966f {
1230
- copy() {
1231
- if (this.era) return new $e2d97aa3b7775168$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
1232
- else return new $e2d97aa3b7775168$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
1213
+ class $625ad1e1f4c43bc1$export$ca871e8dbb80966f {
1214
+ /** Returns a copy of this date. */ copy() {
1215
+ if (this.era) return new $625ad1e1f4c43bc1$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
1216
+ else return new $625ad1e1f4c43bc1$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
1233
1217
  }
1234
- add(duration) {
1235
- return $b795f1a945a78ee3$export$e16d8520af44a096(this, duration);
1218
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {
1219
+ return $5c0571aa5b6fb5da$export$e16d8520af44a096(this, duration);
1236
1220
  }
1237
- subtract(duration) {
1238
- return $b795f1a945a78ee3$export$4e2d2ead65e5f7e3(this, duration);
1221
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {
1222
+ return $5c0571aa5b6fb5da$export$4e2d2ead65e5f7e3(this, duration);
1239
1223
  }
1240
- set(fields) {
1241
- return $b795f1a945a78ee3$export$adaa4cf7ef1b65be($b795f1a945a78ee3$export$e5d5e1c1822b6e56(this, fields), fields);
1224
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
1225
+ return $5c0571aa5b6fb5da$export$adaa4cf7ef1b65be($5c0571aa5b6fb5da$export$e5d5e1c1822b6e56(this, fields), fields);
1242
1226
  }
1243
- cycle(field, amount, options) {
1227
+ /**
1228
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
1229
+ * When the resulting value reaches the limits of the field, it wraps around.
1230
+ */ cycle(field, amount, options) {
1244
1231
  switch(field){
1245
1232
  case 'era':
1246
1233
  case 'year':
1247
1234
  case 'month':
1248
1235
  case 'day':
1249
- return $b795f1a945a78ee3$export$d52ced6badfb9a4c(this, field, amount, options);
1236
+ return $5c0571aa5b6fb5da$export$d52ced6badfb9a4c(this, field, amount, options);
1250
1237
  default:
1251
- return $b795f1a945a78ee3$export$dd02b3e0007dfe28(this, field, amount, options);
1238
+ return $5c0571aa5b6fb5da$export$dd02b3e0007dfe28(this, field, amount, options);
1252
1239
  }
1253
1240
  }
1254
- toDate(timeZone) {
1255
- return $6de69c682dff3674$export$e67a095c620b86fe(this, timeZone);
1241
+ /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {
1242
+ return $4ae0260a69729f1d$export$e67a095c620b86fe(this, timeZone, disambiguation);
1256
1243
  }
1257
- toString() {
1258
- return $6f8483c3b5544266$export$4223de14708adc63(this);
1244
+ /** Converts the date to an ISO 8601 formatted string. */ toString() {
1245
+ return $4c32e2d98e5a5134$export$4223de14708adc63(this);
1259
1246
  }
1260
- compare(b) {
1261
- let res = $8180638d62fba910$export$68781ddf31c0090f(this, b);
1262
- if (res === 0) return $8180638d62fba910$export$c19a80a9721b80f6(this, $6de69c682dff3674$export$b21e0b124e224484(b));
1247
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
1248
+ let res = $1f0f7ebf1ae6c530$export$68781ddf31c0090f(this, b);
1249
+ if (res === 0) return $1f0f7ebf1ae6c530$export$c19a80a9721b80f6(this, $4ae0260a69729f1d$export$b21e0b124e224484(b));
1263
1250
  return res;
1264
1251
  }
1265
1252
  constructor(...args){
@@ -1268,7 +1255,7 @@ class $e2d97aa3b7775168$export$ca871e8dbb80966f {
1268
1255
  writable: true,
1269
1256
  value: void 0
1270
1257
  });
1271
- let [calendar, era, year, month, day] = $e2d97aa3b7775168$var$shiftArgs(args);
1258
+ let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
1272
1259
  this.calendar = calendar;
1273
1260
  this.era = era;
1274
1261
  this.year = year;
@@ -1278,39 +1265,42 @@ class $e2d97aa3b7775168$export$ca871e8dbb80966f {
1278
1265
  this.minute = args.shift() || 0;
1279
1266
  this.second = args.shift() || 0;
1280
1267
  this.millisecond = args.shift() || 0;
1281
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(this);
1268
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(this);
1282
1269
  }
1283
1270
  }
1284
1271
  var _type2 = new WeakMap();
1285
- class $e2d97aa3b7775168$export$d3b7288e7994edea {
1286
- copy() {
1287
- if (this.era) return new $e2d97aa3b7775168$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
1288
- else return new $e2d97aa3b7775168$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
1272
+ class $625ad1e1f4c43bc1$export$d3b7288e7994edea {
1273
+ /** Returns a copy of this date. */ copy() {
1274
+ if (this.era) return new $625ad1e1f4c43bc1$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
1275
+ else return new $625ad1e1f4c43bc1$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
1289
1276
  }
1290
- add(duration) {
1291
- return $b795f1a945a78ee3$export$96b1d28349274637(this, duration);
1277
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
1278
+ return $5c0571aa5b6fb5da$export$96b1d28349274637(this, duration);
1292
1279
  }
1293
- subtract(duration) {
1294
- return $b795f1a945a78ee3$export$6814caac34ca03c7(this, duration);
1280
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
1281
+ return $5c0571aa5b6fb5da$export$6814caac34ca03c7(this, duration);
1295
1282
  }
1296
- set(fields, disambiguation) {
1297
- return $b795f1a945a78ee3$export$31b5430eb18be4f8(this, fields, disambiguation);
1283
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
1284
+ return $5c0571aa5b6fb5da$export$31b5430eb18be4f8(this, fields, disambiguation);
1298
1285
  }
1299
- cycle(field, amount, options) {
1300
- return $b795f1a945a78ee3$export$9a297d111fc86b79(this, field, amount, options);
1286
+ /**
1287
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
1288
+ * When the resulting value reaches the limits of the field, it wraps around.
1289
+ */ cycle(field, amount, options) {
1290
+ return $5c0571aa5b6fb5da$export$9a297d111fc86b79(this, field, amount, options);
1301
1291
  }
1302
- toDate() {
1303
- return $6de69c682dff3674$export$83aac07b4c37b25(this);
1292
+ /** Converts the date to a native JavaScript Date object. */ toDate() {
1293
+ return $4ae0260a69729f1d$export$83aac07b4c37b25(this);
1304
1294
  }
1305
- toString() {
1306
- return $6f8483c3b5544266$export$bf79f1ebf4b18792(this);
1295
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
1296
+ return $4c32e2d98e5a5134$export$bf79f1ebf4b18792(this);
1307
1297
  }
1308
- toAbsoluteString() {
1298
+ /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
1309
1299
  return this.toDate().toISOString();
1310
1300
  }
1311
- compare(b) {
1301
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
1312
1302
  // TODO: Is this a bad idea??
1313
- return this.toDate().getTime() - $6de69c682dff3674$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1303
+ return this.toDate().getTime() - $4ae0260a69729f1d$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1314
1304
  }
1315
1305
  constructor(...args){
1316
1306
  // This prevents TypeScript from allowing other types with the same fields to match.
@@ -1318,7 +1308,7 @@ class $e2d97aa3b7775168$export$d3b7288e7994edea {
1318
1308
  writable: true,
1319
1309
  value: void 0
1320
1310
  });
1321
- let [calendar, era, year, month, day] = $e2d97aa3b7775168$var$shiftArgs(args);
1311
+ let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
1322
1312
  let timeZone = args.shift();
1323
1313
  let offset = args.shift();
1324
1314
  this.calendar = calendar;
@@ -1332,7 +1322,7 @@ class $e2d97aa3b7775168$export$d3b7288e7994edea {
1332
1322
  this.minute = args.shift() || 0;
1333
1323
  this.second = args.shift() || 0;
1334
1324
  this.millisecond = args.shift() || 0;
1335
- $b795f1a945a78ee3$export$c4e2ecac49351ef2(this);
1325
+ $5c0571aa5b6fb5da$export$c4e2ecac49351ef2(this);
1336
1326
  }
1337
1327
  }
1338
1328
  var _type3 = new WeakMap();
@@ -1341,7 +1331,7 @@ var _type3 = new WeakMap();
1341
1331
 
1342
1332
 
1343
1333
 
1344
- const $a829bc7a11c5e72b$var$ERA_START_DATES = [
1334
+ const $b0ac0602ef646b2c$var$ERA_START_DATES = [
1345
1335
  [
1346
1336
  1868,
1347
1337
  9,
@@ -1368,7 +1358,7 @@ const $a829bc7a11c5e72b$var$ERA_START_DATES = [
1368
1358
  1
1369
1359
  ]
1370
1360
  ];
1371
- const $a829bc7a11c5e72b$var$ERA_END_DATES = [
1361
+ const $b0ac0602ef646b2c$var$ERA_END_DATES = [
1372
1362
  [
1373
1363
  1912,
1374
1364
  7,
@@ -1390,94 +1380,97 @@ const $a829bc7a11c5e72b$var$ERA_END_DATES = [
1390
1380
  30
1391
1381
  ]
1392
1382
  ];
1393
- const $a829bc7a11c5e72b$var$ERA_ADDENDS = [
1383
+ const $b0ac0602ef646b2c$var$ERA_ADDENDS = [
1394
1384
  1867,
1395
1385
  1911,
1396
1386
  1925,
1397
1387
  1988,
1398
1388
  2018
1399
1389
  ];
1400
- const $a829bc7a11c5e72b$var$ERA_NAMES = [
1390
+ const $b0ac0602ef646b2c$var$ERA_NAMES = [
1401
1391
  'meiji',
1402
1392
  'taisho',
1403
1393
  'showa',
1404
1394
  'heisei',
1405
1395
  'reiwa'
1406
1396
  ];
1407
- function $a829bc7a11c5e72b$var$findEraFromGregorianDate(date) {
1408
- const idx = $a829bc7a11c5e72b$var$ERA_START_DATES.findIndex(([year, month, day])=>{
1397
+ function $b0ac0602ef646b2c$var$findEraFromGregorianDate(date) {
1398
+ const idx = $b0ac0602ef646b2c$var$ERA_START_DATES.findIndex(([year, month, day])=>{
1409
1399
  if (date.year < year) return true;
1410
1400
  if (date.year === year && date.month < month) return true;
1411
1401
  if (date.year === year && date.month === month && date.day < day) return true;
1412
1402
  return false;
1413
1403
  });
1414
- if (idx === -1) return $a829bc7a11c5e72b$var$ERA_START_DATES.length - 1;
1404
+ if (idx === -1) return $b0ac0602ef646b2c$var$ERA_START_DATES.length - 1;
1415
1405
  if (idx === 0) return 0;
1416
1406
  return idx - 1;
1417
1407
  }
1418
- function $a829bc7a11c5e72b$var$toGregorian(date) {
1419
- let eraAddend = $a829bc7a11c5e72b$var$ERA_ADDENDS[$a829bc7a11c5e72b$var$ERA_NAMES.indexOf(date.era)];
1408
+ function $b0ac0602ef646b2c$var$toGregorian(date) {
1409
+ let eraAddend = $b0ac0602ef646b2c$var$ERA_ADDENDS[$b0ac0602ef646b2c$var$ERA_NAMES.indexOf(date.era)];
1420
1410
  if (!eraAddend) throw new Error('Unknown era: ' + date.era);
1421
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1411
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1422
1412
  }
1423
- class $a829bc7a11c5e72b$export$b746ab2b60cdffbf extends $680b26d521b88d00$export$80ee6245ec4f29ec {
1413
+ class $b0ac0602ef646b2c$export$b746ab2b60cdffbf extends $af14c9812fdceb33$export$80ee6245ec4f29ec {
1424
1414
  fromJulianDay(jd) {
1425
1415
  let date = super.fromJulianDay(jd);
1426
- let era = $a829bc7a11c5e72b$var$findEraFromGregorianDate(date);
1427
- date.era = $a829bc7a11c5e72b$var$ERA_NAMES[era];
1428
- date.year -= $a829bc7a11c5e72b$var$ERA_ADDENDS[era];
1416
+ let era = $b0ac0602ef646b2c$var$findEraFromGregorianDate(date);
1417
+ date.era = $b0ac0602ef646b2c$var$ERA_NAMES[era];
1418
+ date.year -= $b0ac0602ef646b2c$var$ERA_ADDENDS[era];
1429
1419
  return date;
1430
1420
  }
1431
1421
  toJulianDay(date) {
1432
- return super.toJulianDay($a829bc7a11c5e72b$var$toGregorian(date));
1422
+ return super.toJulianDay($b0ac0602ef646b2c$var$toGregorian(date));
1433
1423
  }
1434
1424
  balanceDate(date) {
1435
- let gregorianDate = $a829bc7a11c5e72b$var$toGregorian(date);
1436
- let era = $a829bc7a11c5e72b$var$findEraFromGregorianDate(gregorianDate);
1437
- if ($a829bc7a11c5e72b$var$ERA_NAMES[era] !== date.era) {
1438
- date.era = $a829bc7a11c5e72b$var$ERA_NAMES[era];
1439
- date.year = gregorianDate.year - $a829bc7a11c5e72b$var$ERA_ADDENDS[era];
1425
+ let gregorianDate = $b0ac0602ef646b2c$var$toGregorian(date);
1426
+ let era = $b0ac0602ef646b2c$var$findEraFromGregorianDate(gregorianDate);
1427
+ if ($b0ac0602ef646b2c$var$ERA_NAMES[era] !== date.era) {
1428
+ date.era = $b0ac0602ef646b2c$var$ERA_NAMES[era];
1429
+ date.year = gregorianDate.year - $b0ac0602ef646b2c$var$ERA_ADDENDS[era];
1440
1430
  }
1441
1431
  }
1442
1432
  constrainDate(date) {
1443
- let idx = $a829bc7a11c5e72b$var$ERA_NAMES.indexOf(date.era);
1444
- let end = $a829bc7a11c5e72b$var$ERA_END_DATES[idx];
1433
+ let idx = $b0ac0602ef646b2c$var$ERA_NAMES.indexOf(date.era);
1434
+ let end = $b0ac0602ef646b2c$var$ERA_END_DATES[idx];
1445
1435
  if (end != null) {
1446
1436
  let [endYear, endMonth, endDay] = end;
1447
1437
  // Constrain the year to the maximum possible value in the era.
1448
1438
  // Then constrain the month and day fields within that.
1449
- let maxYear = endYear - $a829bc7a11c5e72b$var$ERA_ADDENDS[idx];
1439
+ let maxYear = endYear - $b0ac0602ef646b2c$var$ERA_ADDENDS[idx];
1450
1440
  date.year = Math.min(maxYear, date.year);
1451
1441
  if (date.year === maxYear) {
1452
1442
  date.month = Math.min(endMonth, date.month);
1453
1443
  if (date.month === endMonth) date.day = Math.min(endDay, date.day);
1454
1444
  }
1455
1445
  if (date.year === 1) {
1456
- let [, startMonth, startDay] = $a829bc7a11c5e72b$var$ERA_START_DATES[idx];
1446
+ let [, startMonth, startDay] = $b0ac0602ef646b2c$var$ERA_START_DATES[idx];
1457
1447
  date.month = Math.max(startMonth, date.month);
1458
1448
  if (date.month === startMonth) date.day = Math.max(startDay, date.day);
1459
1449
  }
1460
1450
  }
1461
1451
  }
1462
1452
  getEras() {
1463
- return $a829bc7a11c5e72b$var$ERA_NAMES;
1453
+ return $b0ac0602ef646b2c$var$ERA_NAMES;
1464
1454
  }
1465
1455
  getYearsInEra(date) {
1466
1456
  // Get the number of years in the era, taking into account the date's month and day fields.
1467
- let era = $a829bc7a11c5e72b$var$ERA_NAMES.indexOf(date.era);
1468
- let next = $a829bc7a11c5e72b$var$ERA_START_DATES[era + 1];
1457
+ let era = $b0ac0602ef646b2c$var$ERA_NAMES.indexOf(date.era);
1458
+ let next = $b0ac0602ef646b2c$var$ERA_START_DATES[era + 1];
1469
1459
  if (next == null) return 9999;
1470
- let cur = $a829bc7a11c5e72b$var$ERA_START_DATES[era];
1460
+ let cur = $b0ac0602ef646b2c$var$ERA_START_DATES[era];
1471
1461
  let years = next[0] - cur[0];
1472
1462
  if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;
1473
1463
  return years;
1474
1464
  }
1465
+ getDaysInMonth(date) {
1466
+ return super.getDaysInMonth($b0ac0602ef646b2c$var$toGregorian(date));
1467
+ }
1475
1468
  getMinimumMonthInYear(date) {
1476
- let start = $a829bc7a11c5e72b$var$getMinimums(date);
1469
+ let start = $b0ac0602ef646b2c$var$getMinimums(date);
1477
1470
  return start ? start[1] : 1;
1478
1471
  }
1479
1472
  getMinimumDayInMonth(date) {
1480
- let start = $a829bc7a11c5e72b$var$getMinimums(date);
1473
+ let start = $b0ac0602ef646b2c$var$getMinimums(date);
1481
1474
  return start && date.month === start[1] ? start[2] : 1;
1482
1475
  }
1483
1476
  constructor(...args){
@@ -1485,46 +1478,52 @@ class $a829bc7a11c5e72b$export$b746ab2b60cdffbf extends $680b26d521b88d00$export
1485
1478
  this.identifier = 'japanese';
1486
1479
  }
1487
1480
  }
1488
- function $a829bc7a11c5e72b$var$getMinimums(date) {
1481
+ function $b0ac0602ef646b2c$var$getMinimums(date) {
1489
1482
  if (date.year === 1) {
1490
- let idx = $a829bc7a11c5e72b$var$ERA_NAMES.indexOf(date.era);
1491
- return $a829bc7a11c5e72b$var$ERA_START_DATES[idx];
1483
+ let idx = $b0ac0602ef646b2c$var$ERA_NAMES.indexOf(date.era);
1484
+ return $b0ac0602ef646b2c$var$ERA_START_DATES[idx];
1492
1485
  }
1493
1486
  }
1494
1487
 
1495
1488
 
1496
1489
 
1497
1490
 
1498
- const $3d8b8d698eadd9f9$var$BUDDHIST_ERA_START = -543;
1499
- class $3d8b8d698eadd9f9$export$42d20a78301dee44 extends $680b26d521b88d00$export$80ee6245ec4f29ec {
1491
+ const $561c4ef058278b74$var$BUDDHIST_ERA_START = -543;
1492
+ class $561c4ef058278b74$export$42d20a78301dee44 extends $af14c9812fdceb33$export$80ee6245ec4f29ec {
1500
1493
  fromJulianDay(jd) {
1501
1494
  let date = super.fromJulianDay(jd);
1502
- date.year -= $3d8b8d698eadd9f9$var$BUDDHIST_ERA_START;
1495
+ date.year -= $561c4ef058278b74$var$BUDDHIST_ERA_START;
1503
1496
  return date;
1504
1497
  }
1505
1498
  toJulianDay(date) {
1506
- return super.toJulianDay(new $e2d97aa3b7775168$export$99faa760c7908e4f(date.year + $3d8b8d698eadd9f9$var$BUDDHIST_ERA_START, date.month, date.day));
1499
+ return super.toJulianDay($561c4ef058278b74$var$toGregorian(date));
1507
1500
  }
1508
1501
  getEras() {
1509
1502
  return [
1510
1503
  'BE'
1511
1504
  ];
1512
1505
  }
1506
+ getDaysInMonth(date) {
1507
+ return super.getDaysInMonth($561c4ef058278b74$var$toGregorian(date));
1508
+ }
1513
1509
  constructor(...args){
1514
1510
  super(...args);
1515
1511
  this.identifier = 'buddhist';
1516
1512
  }
1517
1513
  }
1514
+ function $561c4ef058278b74$var$toGregorian(date) {
1515
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(date.year + $561c4ef058278b74$var$BUDDHIST_ERA_START, date.month, date.day);
1516
+ }
1518
1517
 
1519
1518
 
1520
1519
 
1521
1520
 
1522
- const $3787fdcbabdfc7bd$var$TAIWAN_ERA_START = 1911;
1523
- function $3787fdcbabdfc7bd$var$gregorianYear(date) {
1524
- return date.era === 'minguo' ? date.year + $3787fdcbabdfc7bd$var$TAIWAN_ERA_START : 1 - date.year + $3787fdcbabdfc7bd$var$TAIWAN_ERA_START;
1521
+ const $9cc5d3577ec40243$var$TAIWAN_ERA_START = 1911;
1522
+ function $9cc5d3577ec40243$var$gregorianYear(date) {
1523
+ return date.era === 'minguo' ? date.year + $9cc5d3577ec40243$var$TAIWAN_ERA_START : 1 - date.year + $9cc5d3577ec40243$var$TAIWAN_ERA_START;
1525
1524
  }
1526
- function $3787fdcbabdfc7bd$var$gregorianToTaiwan(year, date) {
1527
- let y = year - $3787fdcbabdfc7bd$var$TAIWAN_ERA_START;
1525
+ function $9cc5d3577ec40243$var$gregorianToTaiwan(year, date) {
1526
+ let y = year - $9cc5d3577ec40243$var$TAIWAN_ERA_START;
1528
1527
  if (y > 0) {
1529
1528
  date.era = 'minguo';
1530
1529
  date.year = y;
@@ -1533,14 +1532,14 @@ function $3787fdcbabdfc7bd$var$gregorianToTaiwan(year, date) {
1533
1532
  date.year = 1 - y;
1534
1533
  }
1535
1534
  }
1536
- class $3787fdcbabdfc7bd$export$65e01080afcb0799 extends $680b26d521b88d00$export$80ee6245ec4f29ec {
1535
+ class $9cc5d3577ec40243$export$65e01080afcb0799 extends $af14c9812fdceb33$export$80ee6245ec4f29ec {
1537
1536
  fromJulianDay(jd) {
1538
1537
  let date = super.fromJulianDay(jd);
1539
- $3787fdcbabdfc7bd$var$gregorianToTaiwan(date.year, date);
1538
+ $9cc5d3577ec40243$var$gregorianToTaiwan(date.year, date);
1540
1539
  return date;
1541
1540
  }
1542
1541
  toJulianDay(date) {
1543
- return super.toJulianDay(new $e2d97aa3b7775168$export$99faa760c7908e4f($3787fdcbabdfc7bd$var$gregorianYear(date), date.month, date.day));
1542
+ return super.toJulianDay($9cc5d3577ec40243$var$toGregorian(date));
1544
1543
  }
1545
1544
  getEras() {
1546
1545
  return [
@@ -1549,48 +1548,54 @@ class $3787fdcbabdfc7bd$export$65e01080afcb0799 extends $680b26d521b88d00$export
1549
1548
  ];
1550
1549
  }
1551
1550
  balanceDate(date) {
1552
- $3787fdcbabdfc7bd$var$gregorianToTaiwan($3787fdcbabdfc7bd$var$gregorianYear(date), date);
1551
+ $9cc5d3577ec40243$var$gregorianToTaiwan($9cc5d3577ec40243$var$gregorianYear(date), date);
1553
1552
  }
1554
1553
  getYearsToAdd(date, years) {
1555
1554
  return date.era === 'before_minguo' ? -years : years;
1556
1555
  }
1556
+ getDaysInMonth(date) {
1557
+ return super.getDaysInMonth($9cc5d3577ec40243$var$toGregorian(date));
1558
+ }
1557
1559
  constructor(...args){
1558
1560
  super(...args);
1559
1561
  this.identifier // Republic of China
1560
1562
  = 'roc';
1561
1563
  }
1562
1564
  }
1565
+ function $9cc5d3577ec40243$var$toGregorian(date) {
1566
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f($9cc5d3577ec40243$var$gregorianYear(date), date.month, date.day);
1567
+ }
1563
1568
 
1564
1569
 
1565
1570
 
1566
1571
 
1567
- const $75fdc3cae9bb671c$var$PERSIAN_EPOCH = 1948321; // 622/03/19 Julian C.E.
1568
- function $75fdc3cae9bb671c$var$isLeapYear(year) {
1572
+ const $3c060181fc7249ae$var$PERSIAN_EPOCH = 1948321; // 622/03/19 Julian C.E.
1573
+ function $3c060181fc7249ae$var$isLeapYear(year) {
1569
1574
  let y0 = year > 0 ? year - 474 : year - 473;
1570
- let y1 = $126da7c1075fa25c$export$842a2cf37af977e1(y0, 2820) + 474;
1571
- return $126da7c1075fa25c$export$842a2cf37af977e1((y1 + 38) * 31, 128) < 31;
1575
+ let y1 = $a5090d6430502238$export$842a2cf37af977e1(y0, 2820) + 474;
1576
+ return $a5090d6430502238$export$842a2cf37af977e1((y1 + 38) * 31, 128) < 31;
1572
1577
  }
1573
- function $75fdc3cae9bb671c$var$persianToJulianDay(year, month, day) {
1578
+ function $3c060181fc7249ae$var$persianToJulianDay(year, month, day) {
1574
1579
  let y0 = year > 0 ? year - 474 : year - 473;
1575
- let y1 = $126da7c1075fa25c$export$842a2cf37af977e1(y0, 2820) + 474;
1580
+ let y1 = $a5090d6430502238$export$842a2cf37af977e1(y0, 2820) + 474;
1576
1581
  let offset = month <= 7 ? 31 * (month - 1) : 30 * (month - 1) + 6;
1577
- return $75fdc3cae9bb671c$var$PERSIAN_EPOCH - 1 + 1029983 * Math.floor(y0 / 2820) + 365 * (y1 - 1) + Math.floor((31 * y1 - 5) / 128) + offset + day;
1582
+ return $3c060181fc7249ae$var$PERSIAN_EPOCH - 1 + 1029983 * Math.floor(y0 / 2820) + 365 * (y1 - 1) + Math.floor((31 * y1 - 5) / 128) + offset + day;
1578
1583
  }
1579
- class $75fdc3cae9bb671c$export$37fccdbfd14c5939 {
1584
+ class $3c060181fc7249ae$export$37fccdbfd14c5939 {
1580
1585
  fromJulianDay(jd) {
1581
- let d0 = jd - $75fdc3cae9bb671c$var$persianToJulianDay(475, 1, 1);
1586
+ let d0 = jd - $3c060181fc7249ae$var$persianToJulianDay(475, 1, 1);
1582
1587
  let n2820 = Math.floor(d0 / 1029983);
1583
- let d1 = $126da7c1075fa25c$export$842a2cf37af977e1(d0, 1029983);
1588
+ let d1 = $a5090d6430502238$export$842a2cf37af977e1(d0, 1029983);
1584
1589
  let y2820 = d1 === 1029982 ? 2820 : Math.floor((128 * d1 + 46878) / 46751);
1585
1590
  let year = 474 + 2820 * n2820 + y2820;
1586
1591
  if (year <= 0) year--;
1587
- let yDay = jd - $75fdc3cae9bb671c$var$persianToJulianDay(year, 1, 1) + 1;
1592
+ let yDay = jd - $3c060181fc7249ae$var$persianToJulianDay(year, 1, 1) + 1;
1588
1593
  let month = yDay <= 186 ? Math.ceil(yDay / 31) : Math.ceil((yDay - 6) / 31);
1589
- let day = jd - $75fdc3cae9bb671c$var$persianToJulianDay(year, month, 1) + 1;
1590
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(this, year, month, day);
1594
+ let day = jd - $3c060181fc7249ae$var$persianToJulianDay(year, month, 1) + 1;
1595
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this, year, month, day);
1591
1596
  }
1592
1597
  toJulianDay(date) {
1593
- return $75fdc3cae9bb671c$var$persianToJulianDay(date.year, date.month, date.day);
1598
+ return $3c060181fc7249ae$var$persianToJulianDay(date.year, date.month, date.day);
1594
1599
  }
1595
1600
  getMonthsInYear() {
1596
1601
  return 12;
@@ -1598,7 +1603,7 @@ class $75fdc3cae9bb671c$export$37fccdbfd14c5939 {
1598
1603
  getDaysInMonth(date) {
1599
1604
  if (date.month <= 6) return 31;
1600
1605
  if (date.month <= 11) return 30;
1601
- return $75fdc3cae9bb671c$var$isLeapYear(date.year) ? 30 : 29;
1606
+ return $3c060181fc7249ae$var$isLeapYear(date.year) ? 30 : 29;
1602
1607
  }
1603
1608
  getEras() {
1604
1609
  return [
@@ -1617,28 +1622,28 @@ class $75fdc3cae9bb671c$export$37fccdbfd14c5939 {
1617
1622
 
1618
1623
 
1619
1624
  // Starts in 78 AD,
1620
- const $8626c25ab1e2c78a$var$INDIAN_ERA_START = 78;
1625
+ const $5f1dfa5c67609fe6$var$INDIAN_ERA_START = 78;
1621
1626
  // The Indian year starts 80 days later than the Gregorian year.
1622
- const $8626c25ab1e2c78a$var$INDIAN_YEAR_START = 80;
1623
- class $8626c25ab1e2c78a$export$39f31c639fa15726 extends $680b26d521b88d00$export$80ee6245ec4f29ec {
1627
+ const $5f1dfa5c67609fe6$var$INDIAN_YEAR_START = 80;
1628
+ class $5f1dfa5c67609fe6$export$39f31c639fa15726 extends $af14c9812fdceb33$export$80ee6245ec4f29ec {
1624
1629
  fromJulianDay(jd) {
1625
1630
  // Gregorian date for Julian day
1626
1631
  let date = super.fromJulianDay(jd);
1627
1632
  // Year in Saka era
1628
- let indianYear = date.year - $8626c25ab1e2c78a$var$INDIAN_ERA_START;
1633
+ let indianYear = date.year - $5f1dfa5c67609fe6$var$INDIAN_ERA_START;
1629
1634
  // Day number in Gregorian year (starting from 0)
1630
- let yDay = jd - $680b26d521b88d00$export$f297eb839006d339(date.year, 1, 1);
1635
+ let yDay = jd - $af14c9812fdceb33$export$f297eb839006d339(date.year, 1, 1);
1631
1636
  let leapMonth;
1632
- if (yDay < $8626c25ab1e2c78a$var$INDIAN_YEAR_START) {
1637
+ if (yDay < $5f1dfa5c67609fe6$var$INDIAN_YEAR_START) {
1633
1638
  // Day is at the end of the preceding Saka year
1634
1639
  indianYear--;
1635
1640
  // Days in leapMonth this year, previous Gregorian year
1636
- leapMonth = $680b26d521b88d00$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1641
+ leapMonth = $af14c9812fdceb33$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1637
1642
  yDay += leapMonth + 155 + 90 + 10;
1638
1643
  } else {
1639
1644
  // Days in leapMonth this year
1640
- leapMonth = $680b26d521b88d00$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1641
- yDay -= $8626c25ab1e2c78a$var$INDIAN_YEAR_START;
1645
+ leapMonth = $af14c9812fdceb33$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1646
+ yDay -= $5f1dfa5c67609fe6$var$INDIAN_YEAR_START;
1642
1647
  }
1643
1648
  let indianMonth;
1644
1649
  let indianDay;
@@ -1656,18 +1661,18 @@ class $8626c25ab1e2c78a$export$39f31c639fa15726 extends $680b26d521b88d00$export
1656
1661
  indianDay = mDay % 30 + 1;
1657
1662
  }
1658
1663
  }
1659
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1664
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1660
1665
  }
1661
1666
  toJulianDay(date) {
1662
- let year = date.year + $8626c25ab1e2c78a$var$INDIAN_ERA_START;
1667
+ let year = date.year + $5f1dfa5c67609fe6$var$INDIAN_ERA_START;
1663
1668
  let leapMonth;
1664
1669
  let jd;
1665
- if ($680b26d521b88d00$export$553d7fa8e3805fc0(year)) {
1670
+ if ($af14c9812fdceb33$export$553d7fa8e3805fc0(year)) {
1666
1671
  leapMonth = 31;
1667
- jd = $680b26d521b88d00$export$f297eb839006d339(year, 3, 21);
1672
+ jd = $af14c9812fdceb33$export$f297eb839006d339(year, 3, 21);
1668
1673
  } else {
1669
1674
  leapMonth = 30;
1670
- jd = $680b26d521b88d00$export$f297eb839006d339(year, 3, 22);
1675
+ jd = $af14c9812fdceb33$export$f297eb839006d339(year, 3, 22);
1671
1676
  }
1672
1677
  if (date.month === 1) return jd + date.day - 1;
1673
1678
  jd += leapMonth + Math.min(date.month - 2, 5) * 31;
@@ -1676,7 +1681,7 @@ class $8626c25ab1e2c78a$export$39f31c639fa15726 extends $680b26d521b88d00$export
1676
1681
  return jd;
1677
1682
  }
1678
1683
  getDaysInMonth(date) {
1679
- if (date.month === 1 && $680b26d521b88d00$export$553d7fa8e3805fc0(date.year + $8626c25ab1e2c78a$var$INDIAN_ERA_START)) return 31;
1684
+ if (date.month === 1 && $af14c9812fdceb33$export$553d7fa8e3805fc0(date.year + $5f1dfa5c67609fe6$var$INDIAN_ERA_START)) return 31;
1680
1685
  if (date.month >= 2 && date.month <= 6) return 31;
1681
1686
  return 30;
1682
1687
  }
@@ -1696,40 +1701,40 @@ class $8626c25ab1e2c78a$export$39f31c639fa15726 extends $680b26d521b88d00$export
1696
1701
 
1697
1702
 
1698
1703
 
1699
- const $4f37d2a9fc47c3f0$var$CIVIL_EPOC = 1948440; // CE 622 July 16 Friday (Julian calendar) / CE 622 July 19 (Gregorian calendar)
1700
- const $4f37d2a9fc47c3f0$var$ASTRONOMICAL_EPOC = 1948439; // CE 622 July 15 Thursday (Julian calendar)
1701
- const $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START = 1300;
1702
- const $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END = 1600;
1703
- const $4f37d2a9fc47c3f0$var$UMALQURA_START_DAYS = 460322;
1704
- function $4f37d2a9fc47c3f0$var$islamicToJulianDay(epoch, year, month, day) {
1704
+ const $ecb2c4cc8c9aae25$var$CIVIL_EPOC = 1948440; // CE 622 July 16 Friday (Julian calendar) / CE 622 July 19 (Gregorian calendar)
1705
+ const $ecb2c4cc8c9aae25$var$ASTRONOMICAL_EPOC = 1948439; // CE 622 July 15 Thursday (Julian calendar)
1706
+ const $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START = 1300;
1707
+ const $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END = 1600;
1708
+ const $ecb2c4cc8c9aae25$var$UMALQURA_START_DAYS = 460322;
1709
+ function $ecb2c4cc8c9aae25$var$islamicToJulianDay(epoch, year, month, day) {
1705
1710
  return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;
1706
1711
  }
1707
- function $4f37d2a9fc47c3f0$var$julianDayToIslamic(calendar, epoch, jd) {
1712
+ function $ecb2c4cc8c9aae25$var$julianDayToIslamic(calendar, epoch, jd) {
1708
1713
  let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);
1709
- let month = Math.min(12, Math.ceil((jd - (29 + $4f37d2a9fc47c3f0$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1710
- let day = jd - $4f37d2a9fc47c3f0$var$islamicToJulianDay(epoch, year, month, 1) + 1;
1711
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(calendar, year, month, day);
1714
+ let month = Math.min(12, Math.ceil((jd - (29 + $ecb2c4cc8c9aae25$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1715
+ let day = jd - $ecb2c4cc8c9aae25$var$islamicToJulianDay(epoch, year, month, 1) + 1;
1716
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(calendar, year, month, day);
1712
1717
  }
1713
- function $4f37d2a9fc47c3f0$var$isLeapYear(year) {
1718
+ function $ecb2c4cc8c9aae25$var$isLeapYear(year) {
1714
1719
  return (14 + 11 * year) % 30 < 11;
1715
1720
  }
1716
- class $4f37d2a9fc47c3f0$export$2066795aadd37bfc {
1721
+ class $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
1717
1722
  fromJulianDay(jd) {
1718
- return $4f37d2a9fc47c3f0$var$julianDayToIslamic(this, $4f37d2a9fc47c3f0$var$CIVIL_EPOC, jd);
1723
+ return $ecb2c4cc8c9aae25$var$julianDayToIslamic(this, $ecb2c4cc8c9aae25$var$CIVIL_EPOC, jd);
1719
1724
  }
1720
1725
  toJulianDay(date) {
1721
- return $4f37d2a9fc47c3f0$var$islamicToJulianDay($4f37d2a9fc47c3f0$var$CIVIL_EPOC, date.year, date.month, date.day);
1726
+ return $ecb2c4cc8c9aae25$var$islamicToJulianDay($ecb2c4cc8c9aae25$var$CIVIL_EPOC, date.year, date.month, date.day);
1722
1727
  }
1723
1728
  getDaysInMonth(date) {
1724
1729
  let length = 29 + date.month % 2;
1725
- if (date.month === 12 && $4f37d2a9fc47c3f0$var$isLeapYear(date.year)) length++;
1730
+ if (date.month === 12 && $ecb2c4cc8c9aae25$var$isLeapYear(date.year)) length++;
1726
1731
  return length;
1727
1732
  }
1728
1733
  getMonthsInYear() {
1729
1734
  return 12;
1730
1735
  }
1731
1736
  getDaysInYear(date) {
1732
- return $4f37d2a9fc47c3f0$var$isLeapYear(date.year) ? 355 : 354;
1737
+ return $ecb2c4cc8c9aae25$var$isLeapYear(date.year) ? 355 : 354;
1733
1738
  }
1734
1739
  getYearsInEra() {
1735
1740
  return 9999;
@@ -1743,12 +1748,12 @@ class $4f37d2a9fc47c3f0$export$2066795aadd37bfc {
1743
1748
  this.identifier = 'islamic-civil';
1744
1749
  }
1745
1750
  }
1746
- class $4f37d2a9fc47c3f0$export$37f0887f2f9d22f7 extends $4f37d2a9fc47c3f0$export$2066795aadd37bfc {
1751
+ class $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7 extends $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
1747
1752
  fromJulianDay(jd) {
1748
- return $4f37d2a9fc47c3f0$var$julianDayToIslamic(this, $4f37d2a9fc47c3f0$var$ASTRONOMICAL_EPOC, jd);
1753
+ return $ecb2c4cc8c9aae25$var$julianDayToIslamic(this, $ecb2c4cc8c9aae25$var$ASTRONOMICAL_EPOC, jd);
1749
1754
  }
1750
1755
  toJulianDay(date) {
1751
- return $4f37d2a9fc47c3f0$var$islamicToJulianDay($4f37d2a9fc47c3f0$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1756
+ return $ecb2c4cc8c9aae25$var$islamicToJulianDay($ecb2c4cc8c9aae25$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1752
1757
  }
1753
1758
  constructor(...args){
1754
1759
  super(...args);
@@ -1756,80 +1761,80 @@ class $4f37d2a9fc47c3f0$export$37f0887f2f9d22f7 extends $4f37d2a9fc47c3f0$export
1756
1761
  }
1757
1762
  }
1758
1763
  // Generated by scripts/generate-umalqura.js
1759
- const $4f37d2a9fc47c3f0$var$UMALQURA_DATA = 'qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=';
1760
- let $4f37d2a9fc47c3f0$var$UMALQURA_MONTHLENGTH;
1761
- let $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE;
1762
- function $4f37d2a9fc47c3f0$var$umalquraYearStart(year) {
1763
- return $4f37d2a9fc47c3f0$var$UMALQURA_START_DAYS + $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE[year - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START];
1764
- }
1765
- function $4f37d2a9fc47c3f0$var$umalquraMonthLength(year, month) {
1766
- let idx = year - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START;
1764
+ const $ecb2c4cc8c9aae25$var$UMALQURA_DATA = 'qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=';
1765
+ let $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH;
1766
+ let $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE;
1767
+ function $ecb2c4cc8c9aae25$var$umalquraYearStart(year) {
1768
+ return $ecb2c4cc8c9aae25$var$UMALQURA_START_DAYS + $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE[year - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START];
1769
+ }
1770
+ function $ecb2c4cc8c9aae25$var$umalquraMonthLength(year, month) {
1771
+ let idx = year - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START;
1767
1772
  let mask = 1 << 11 - (month - 1);
1768
- if (($4f37d2a9fc47c3f0$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1773
+ if (($ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1769
1774
  else return 30;
1770
1775
  }
1771
- function $4f37d2a9fc47c3f0$var$umalquraMonthStart(year, month) {
1772
- let day = $4f37d2a9fc47c3f0$var$umalquraYearStart(year);
1773
- for(let i = 1; i < month; i++)day += $4f37d2a9fc47c3f0$var$umalquraMonthLength(year, i);
1776
+ function $ecb2c4cc8c9aae25$var$umalquraMonthStart(year, month) {
1777
+ let day = $ecb2c4cc8c9aae25$var$umalquraYearStart(year);
1778
+ for(let i = 1; i < month; i++)day += $ecb2c4cc8c9aae25$var$umalquraMonthLength(year, i);
1774
1779
  return day;
1775
1780
  }
1776
- function $4f37d2a9fc47c3f0$var$umalquraYearLength(year) {
1777
- return $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE[year + 1 - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START] - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE[year - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START];
1781
+ function $ecb2c4cc8c9aae25$var$umalquraYearLength(year) {
1782
+ return $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE[year + 1 - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START] - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE[year - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START];
1778
1783
  }
1779
- class $4f37d2a9fc47c3f0$export$5baab4758c231076 extends $4f37d2a9fc47c3f0$export$2066795aadd37bfc {
1784
+ class $ecb2c4cc8c9aae25$export$5baab4758c231076 extends $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
1780
1785
  fromJulianDay(jd) {
1781
- let days = jd - $4f37d2a9fc47c3f0$var$CIVIL_EPOC;
1782
- let startDays = $4f37d2a9fc47c3f0$var$umalquraYearStart($4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START);
1783
- let endDays = $4f37d2a9fc47c3f0$var$umalquraYearStart($4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END);
1786
+ let days = jd - $ecb2c4cc8c9aae25$var$CIVIL_EPOC;
1787
+ let startDays = $ecb2c4cc8c9aae25$var$umalquraYearStart($ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START);
1788
+ let endDays = $ecb2c4cc8c9aae25$var$umalquraYearStart($ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END);
1784
1789
  if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1785
1790
  else {
1786
- let y = $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START - 1;
1791
+ let y = $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START - 1;
1787
1792
  let m = 1;
1788
1793
  let d = 1;
1789
1794
  while(d > 0){
1790
1795
  y++;
1791
- d = days - $4f37d2a9fc47c3f0$var$umalquraYearStart(y) + 1;
1792
- let yearLength = $4f37d2a9fc47c3f0$var$umalquraYearLength(y);
1796
+ d = days - $ecb2c4cc8c9aae25$var$umalquraYearStart(y) + 1;
1797
+ let yearLength = $ecb2c4cc8c9aae25$var$umalquraYearLength(y);
1793
1798
  if (d === yearLength) {
1794
1799
  m = 12;
1795
1800
  break;
1796
1801
  } else if (d < yearLength) {
1797
- let monthLength = $4f37d2a9fc47c3f0$var$umalquraMonthLength(y, m);
1802
+ let monthLength = $ecb2c4cc8c9aae25$var$umalquraMonthLength(y, m);
1798
1803
  m = 1;
1799
1804
  while(d > monthLength){
1800
1805
  d -= monthLength;
1801
1806
  m++;
1802
- monthLength = $4f37d2a9fc47c3f0$var$umalquraMonthLength(y, m);
1807
+ monthLength = $ecb2c4cc8c9aae25$var$umalquraMonthLength(y, m);
1803
1808
  }
1804
1809
  break;
1805
1810
  }
1806
1811
  }
1807
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(this, y, m, days - $4f37d2a9fc47c3f0$var$umalquraMonthStart(y, m) + 1);
1812
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this, y, m, days - $ecb2c4cc8c9aae25$var$umalquraMonthStart(y, m) + 1);
1808
1813
  }
1809
1814
  }
1810
1815
  toJulianDay(date) {
1811
- if (date.year < $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START || date.year > $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1812
- return $4f37d2a9fc47c3f0$var$CIVIL_EPOC + $4f37d2a9fc47c3f0$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1816
+ if (date.year < $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START || date.year > $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1817
+ return $ecb2c4cc8c9aae25$var$CIVIL_EPOC + $ecb2c4cc8c9aae25$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1813
1818
  }
1814
1819
  getDaysInMonth(date) {
1815
- if (date.year < $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START || date.year > $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1816
- return $4f37d2a9fc47c3f0$var$umalquraMonthLength(date.year, date.month);
1820
+ if (date.year < $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START || date.year > $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1821
+ return $ecb2c4cc8c9aae25$var$umalquraMonthLength(date.year, date.month);
1817
1822
  }
1818
1823
  getDaysInYear(date) {
1819
- if (date.year < $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START || date.year > $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1820
- return $4f37d2a9fc47c3f0$var$umalquraYearLength(date.year);
1824
+ if (date.year < $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START || date.year > $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1825
+ return $ecb2c4cc8c9aae25$var$umalquraYearLength(date.year);
1821
1826
  }
1822
1827
  constructor(){
1823
1828
  super();
1824
1829
  this.identifier = 'islamic-umalqura';
1825
- if (!$4f37d2a9fc47c3f0$var$UMALQURA_MONTHLENGTH) $4f37d2a9fc47c3f0$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($4f37d2a9fc47c3f0$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)
1830
+ if (!$ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH) $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($ecb2c4cc8c9aae25$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)
1826
1831
  ).buffer);
1827
- if (!$4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE) {
1828
- $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START + 1);
1832
+ if (!$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE) {
1833
+ $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START + 1);
1829
1834
  let yearStart = 0;
1830
- for(let year = $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START; year <= $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_END; year++){
1831
- $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START_TABLE[year - $4f37d2a9fc47c3f0$var$UMALQURA_YEAR_START] = yearStart;
1832
- for(let i = 1; i <= 12; i++)yearStart += $4f37d2a9fc47c3f0$var$umalquraMonthLength(year, i);
1835
+ for(let year = $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START; year <= $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END; year++){
1836
+ $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE[year - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START] = yearStart;
1837
+ for(let i = 1; i <= 12; i++)yearStart += $ecb2c4cc8c9aae25$var$umalquraMonthLength(year, i);
1833
1838
  }
1834
1839
  }
1835
1840
  }
@@ -1838,46 +1843,46 @@ class $4f37d2a9fc47c3f0$export$5baab4758c231076 extends $4f37d2a9fc47c3f0$export
1838
1843
 
1839
1844
 
1840
1845
 
1841
- const $7e9e96397d8405f3$var$HEBREW_EPOCH = 347997;
1846
+ const $0f5324ee3bdd9396$var$HEBREW_EPOCH = 347997;
1842
1847
  // Hebrew date calculations are performed in terms of days, hours, and
1843
1848
  // "parts" (or halakim), which are 1/1080 of an hour, or 3 1/3 seconds.
1844
- const $7e9e96397d8405f3$var$HOUR_PARTS = 1080;
1845
- const $7e9e96397d8405f3$var$DAY_PARTS = 24 * $7e9e96397d8405f3$var$HOUR_PARTS;
1849
+ const $0f5324ee3bdd9396$var$HOUR_PARTS = 1080;
1850
+ const $0f5324ee3bdd9396$var$DAY_PARTS = 24 * $0f5324ee3bdd9396$var$HOUR_PARTS;
1846
1851
  // An approximate value for the length of a lunar month.
1847
1852
  // It is used to calculate the approximate year and month of a given
1848
1853
  // absolute date.
1849
- const $7e9e96397d8405f3$var$MONTH_DAYS = 29;
1850
- const $7e9e96397d8405f3$var$MONTH_FRACT = 12 * $7e9e96397d8405f3$var$HOUR_PARTS + 793;
1851
- const $7e9e96397d8405f3$var$MONTH_PARTS = $7e9e96397d8405f3$var$MONTH_DAYS * $7e9e96397d8405f3$var$DAY_PARTS + $7e9e96397d8405f3$var$MONTH_FRACT;
1852
- function $7e9e96397d8405f3$var$isLeapYear(year) {
1853
- return $126da7c1075fa25c$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1854
+ const $0f5324ee3bdd9396$var$MONTH_DAYS = 29;
1855
+ const $0f5324ee3bdd9396$var$MONTH_FRACT = 12 * $0f5324ee3bdd9396$var$HOUR_PARTS + 793;
1856
+ const $0f5324ee3bdd9396$var$MONTH_PARTS = $0f5324ee3bdd9396$var$MONTH_DAYS * $0f5324ee3bdd9396$var$DAY_PARTS + $0f5324ee3bdd9396$var$MONTH_FRACT;
1857
+ function $0f5324ee3bdd9396$var$isLeapYear(year) {
1858
+ return $a5090d6430502238$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1854
1859
  }
1855
1860
  // Test for delay of start of new year and to avoid
1856
1861
  // Sunday, Wednesday, and Friday as start of the new year.
1857
- function $7e9e96397d8405f3$var$hebrewDelay1(year) {
1862
+ function $0f5324ee3bdd9396$var$hebrewDelay1(year) {
1858
1863
  let months = Math.floor((235 * year - 234) / 19);
1859
1864
  let parts = 12084 + 13753 * months;
1860
1865
  let day = months * 29 + Math.floor(parts / 25920);
1861
- if ($126da7c1075fa25c$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1866
+ if ($a5090d6430502238$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1862
1867
  return day;
1863
1868
  }
1864
1869
  // Check for delay in start of new year due to length of adjacent years
1865
- function $7e9e96397d8405f3$var$hebrewDelay2(year) {
1866
- let last = $7e9e96397d8405f3$var$hebrewDelay1(year - 1);
1867
- let present = $7e9e96397d8405f3$var$hebrewDelay1(year);
1868
- let next = $7e9e96397d8405f3$var$hebrewDelay1(year + 1);
1870
+ function $0f5324ee3bdd9396$var$hebrewDelay2(year) {
1871
+ let last = $0f5324ee3bdd9396$var$hebrewDelay1(year - 1);
1872
+ let present = $0f5324ee3bdd9396$var$hebrewDelay1(year);
1873
+ let next = $0f5324ee3bdd9396$var$hebrewDelay1(year + 1);
1869
1874
  if (next - present === 356) return 2;
1870
1875
  if (present - last === 382) return 1;
1871
1876
  return 0;
1872
1877
  }
1873
- function $7e9e96397d8405f3$var$startOfYear(year) {
1874
- return $7e9e96397d8405f3$var$hebrewDelay1(year) + $7e9e96397d8405f3$var$hebrewDelay2(year);
1878
+ function $0f5324ee3bdd9396$var$startOfYear(year) {
1879
+ return $0f5324ee3bdd9396$var$hebrewDelay1(year) + $0f5324ee3bdd9396$var$hebrewDelay2(year);
1875
1880
  }
1876
- function $7e9e96397d8405f3$var$getDaysInYear(year) {
1877
- return $7e9e96397d8405f3$var$startOfYear(year + 1) - $7e9e96397d8405f3$var$startOfYear(year);
1881
+ function $0f5324ee3bdd9396$var$getDaysInYear(year) {
1882
+ return $0f5324ee3bdd9396$var$startOfYear(year + 1) - $0f5324ee3bdd9396$var$startOfYear(year);
1878
1883
  }
1879
- function $7e9e96397d8405f3$var$getYearType(year) {
1880
- let yearLength = $7e9e96397d8405f3$var$getDaysInYear(year);
1884
+ function $0f5324ee3bdd9396$var$getYearType(year) {
1885
+ let yearLength = $0f5324ee3bdd9396$var$getDaysInYear(year);
1881
1886
  if (yearLength > 380) yearLength -= 30; // Subtract length of leap month.
1882
1887
  switch(yearLength){
1883
1888
  case 353:
@@ -1888,58 +1893,58 @@ function $7e9e96397d8405f3$var$getYearType(year) {
1888
1893
  return 2; // complete
1889
1894
  }
1890
1895
  }
1891
- function $7e9e96397d8405f3$var$getDaysInMonth(year, month) {
1896
+ function $0f5324ee3bdd9396$var$getDaysInMonth(year, month) {
1892
1897
  // Normalize month numbers from 1 - 13, even on non-leap years
1893
- if (month >= 6 && !$7e9e96397d8405f3$var$isLeapYear(year)) month++;
1898
+ if (month >= 6 && !$0f5324ee3bdd9396$var$isLeapYear(year)) month++;
1894
1899
  // First of all, dispose of fixed-length 29 day months
1895
1900
  if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;
1896
- let yearType = $7e9e96397d8405f3$var$getYearType(year);
1901
+ let yearType = $0f5324ee3bdd9396$var$getYearType(year);
1897
1902
  // If it's Heshvan, days depend on length of year
1898
1903
  if (month === 2) return yearType === 2 ? 30 : 29;
1899
1904
  // Similarly, Kislev varies with the length of year
1900
1905
  if (month === 3) return yearType === 0 ? 29 : 30;
1901
1906
  // Adar I only exists in leap years
1902
- if (month === 6) return $7e9e96397d8405f3$var$isLeapYear(year) ? 30 : 0;
1907
+ if (month === 6) return $0f5324ee3bdd9396$var$isLeapYear(year) ? 30 : 0;
1903
1908
  return 30;
1904
1909
  }
1905
- class $7e9e96397d8405f3$export$ca405048b8fb5af {
1910
+ class $0f5324ee3bdd9396$export$ca405048b8fb5af {
1906
1911
  fromJulianDay(jd) {
1907
- let d = jd - $7e9e96397d8405f3$var$HEBREW_EPOCH;
1908
- let m = d * $7e9e96397d8405f3$var$DAY_PARTS / $7e9e96397d8405f3$var$MONTH_PARTS; // Months (approx)
1912
+ let d = jd - $0f5324ee3bdd9396$var$HEBREW_EPOCH;
1913
+ let m = d * $0f5324ee3bdd9396$var$DAY_PARTS / $0f5324ee3bdd9396$var$MONTH_PARTS; // Months (approx)
1909
1914
  let year = Math.floor((19 * m + 234) / 235) + 1; // Years (approx)
1910
- let ys = $7e9e96397d8405f3$var$startOfYear(year); // 1st day of year
1915
+ let ys = $0f5324ee3bdd9396$var$startOfYear(year); // 1st day of year
1911
1916
  let dayOfYear = Math.floor(d - ys);
1912
1917
  // Because of the postponement rules, it's possible to guess wrong. Fix it.
1913
1918
  while(dayOfYear < 1){
1914
1919
  year--;
1915
- ys = $7e9e96397d8405f3$var$startOfYear(year);
1920
+ ys = $0f5324ee3bdd9396$var$startOfYear(year);
1916
1921
  dayOfYear = Math.floor(d - ys);
1917
1922
  }
1918
1923
  // Now figure out which month we're in, and the date within that month
1919
1924
  let month = 1;
1920
1925
  let monthStart = 0;
1921
1926
  while(monthStart < dayOfYear){
1922
- monthStart += $7e9e96397d8405f3$var$getDaysInMonth(year, month);
1927
+ monthStart += $0f5324ee3bdd9396$var$getDaysInMonth(year, month);
1923
1928
  month++;
1924
1929
  }
1925
1930
  month--;
1926
- monthStart -= $7e9e96397d8405f3$var$getDaysInMonth(year, month);
1931
+ monthStart -= $0f5324ee3bdd9396$var$getDaysInMonth(year, month);
1927
1932
  let day = dayOfYear - monthStart;
1928
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(this, year, month, day);
1933
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(this, year, month, day);
1929
1934
  }
1930
1935
  toJulianDay(date) {
1931
- let jd = $7e9e96397d8405f3$var$startOfYear(date.year);
1932
- for(let month = 1; month < date.month; month++)jd += $7e9e96397d8405f3$var$getDaysInMonth(date.year, month);
1933
- return jd + date.day + $7e9e96397d8405f3$var$HEBREW_EPOCH;
1936
+ let jd = $0f5324ee3bdd9396$var$startOfYear(date.year);
1937
+ for(let month = 1; month < date.month; month++)jd += $0f5324ee3bdd9396$var$getDaysInMonth(date.year, month);
1938
+ return jd + date.day + $0f5324ee3bdd9396$var$HEBREW_EPOCH;
1934
1939
  }
1935
1940
  getDaysInMonth(date) {
1936
- return $7e9e96397d8405f3$var$getDaysInMonth(date.year, date.month);
1941
+ return $0f5324ee3bdd9396$var$getDaysInMonth(date.year, date.month);
1937
1942
  }
1938
1943
  getMonthsInYear(date) {
1939
- return $7e9e96397d8405f3$var$isLeapYear(date.year) ? 13 : 12;
1944
+ return $0f5324ee3bdd9396$var$isLeapYear(date.year) ? 13 : 12;
1940
1945
  }
1941
1946
  getDaysInYear(date) {
1942
- return $7e9e96397d8405f3$var$getDaysInYear(date.year);
1947
+ return $0f5324ee3bdd9396$var$getDaysInYear(date.year);
1943
1948
  }
1944
1949
  getYearsInEra() {
1945
1950
  return 9999;
@@ -1952,8 +1957,8 @@ class $7e9e96397d8405f3$export$ca405048b8fb5af {
1952
1957
  balanceYearMonth(date, previousDate) {
1953
1958
  // Keep date in the same month when switching between leap years and non leap years
1954
1959
  if (previousDate.year !== date.year) {
1955
- if ($7e9e96397d8405f3$var$isLeapYear(previousDate.year) && !$7e9e96397d8405f3$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1956
- else if (!$7e9e96397d8405f3$var$isLeapYear(previousDate.year) && $7e9e96397d8405f3$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1960
+ if ($0f5324ee3bdd9396$var$isLeapYear(previousDate.year) && !$0f5324ee3bdd9396$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1961
+ else if (!$0f5324ee3bdd9396$var$isLeapYear(previousDate.year) && $0f5324ee3bdd9396$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1957
1962
  }
1958
1963
  }
1959
1964
  constructor(){
@@ -1963,12 +1968,12 @@ class $7e9e96397d8405f3$export$ca405048b8fb5af {
1963
1968
 
1964
1969
 
1965
1970
 
1966
- const $241b3c900de4f5b3$var$ETHIOPIC_EPOCH = 1723856;
1967
- const $241b3c900de4f5b3$var$COPTIC_EPOCH = 1824665;
1971
+ const $4db04d1051af0f2f$var$ETHIOPIC_EPOCH = 1723856;
1972
+ const $4db04d1051af0f2f$var$COPTIC_EPOCH = 1824665;
1968
1973
  // The delta between Amete Alem 1 and Amete Mihret 1
1969
1974
  // AA 5501 = AM 1
1970
- const $241b3c900de4f5b3$var$AMETE_MIHRET_DELTA = 5500;
1971
- function $241b3c900de4f5b3$var$ceToJulianDay(epoch, year, month, day) {
1975
+ const $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA = 5500;
1976
+ function $4db04d1051af0f2f$var$ceToJulianDay(epoch, year, month, day) {
1972
1977
  return epoch // difference from Julian epoch to 1,1,1
1973
1978
  + 365 * year // number of days from years
1974
1979
  + Math.floor(year / 4) // extra day of leap year
@@ -1976,16 +1981,16 @@ function $241b3c900de4f5b3$var$ceToJulianDay(epoch, year, month, day) {
1976
1981
  + day - 1 // number of days for present month (1 based)
1977
1982
  ;
1978
1983
  }
1979
- function $241b3c900de4f5b3$var$julianDayToCE(calendar, epoch, jd) {
1984
+ function $4db04d1051af0f2f$var$julianDayToCE(calendar, epoch, jd) {
1980
1985
  let year = Math.floor(4 * (jd - epoch) / 1461);
1981
- let month = 1 + Math.floor((jd - $241b3c900de4f5b3$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1982
- let day = jd + 1 - $241b3c900de4f5b3$var$ceToJulianDay(epoch, year, month, 1);
1983
- return new $e2d97aa3b7775168$export$99faa760c7908e4f(calendar, year, month, day);
1986
+ let month = 1 + Math.floor((jd - $4db04d1051af0f2f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1987
+ let day = jd + 1 - $4db04d1051af0f2f$var$ceToJulianDay(epoch, year, month, 1);
1988
+ return new $625ad1e1f4c43bc1$export$99faa760c7908e4f(calendar, year, month, day);
1984
1989
  }
1985
- function $241b3c900de4f5b3$var$getLeapDay(year) {
1990
+ function $4db04d1051af0f2f$var$getLeapDay(year) {
1986
1991
  return Math.floor(year % 4 / 3);
1987
1992
  }
1988
- function $241b3c900de4f5b3$var$getDaysInMonth(year, month) {
1993
+ function $4db04d1051af0f2f$var$getDaysInMonth(year, month) {
1989
1994
  // The Ethiopian and Coptic calendars have 13 months, 12 of 30 days each and
1990
1995
  // an intercalary month at the end of the year of 5 or 6 days, depending whether
1991
1996
  // the year is a leap year or not. The Leap Year follows the same rules as the
@@ -1994,33 +1999,33 @@ function $241b3c900de4f5b3$var$getDaysInMonth(year, month) {
1994
1999
  if (month % 13 !== 0) // not intercalary month
1995
2000
  return 30;
1996
2001
  else // intercalary month 5 days + possible leap day
1997
- return $241b3c900de4f5b3$var$getLeapDay(year) + 5;
2002
+ return $4db04d1051af0f2f$var$getLeapDay(year) + 5;
1998
2003
  }
1999
- class $241b3c900de4f5b3$export$26ba6eab5e20cd7d {
2004
+ class $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
2000
2005
  fromJulianDay(jd) {
2001
- let date = $241b3c900de4f5b3$var$julianDayToCE(this, $241b3c900de4f5b3$var$ETHIOPIC_EPOCH, jd);
2006
+ let date = $4db04d1051af0f2f$var$julianDayToCE(this, $4db04d1051af0f2f$var$ETHIOPIC_EPOCH, jd);
2002
2007
  if (date.year > 0) date.era = 'AM';
2003
2008
  else {
2004
2009
  date.era = 'AA';
2005
- date.year += $241b3c900de4f5b3$var$AMETE_MIHRET_DELTA;
2010
+ date.year += $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
2006
2011
  }
2007
2012
  return date;
2008
2013
  }
2009
2014
  toJulianDay(date) {
2010
2015
  let year = date.year;
2011
- if (date.era === 'AA') year -= $241b3c900de4f5b3$var$AMETE_MIHRET_DELTA;
2012
- return $241b3c900de4f5b3$var$ceToJulianDay($241b3c900de4f5b3$var$ETHIOPIC_EPOCH, year, date.month, date.day);
2016
+ if (date.era === 'AA') year -= $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
2017
+ return $4db04d1051af0f2f$var$ceToJulianDay($4db04d1051af0f2f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
2013
2018
  }
2014
2019
  getDaysInMonth(date) {
2015
2020
  let year = date.year;
2016
- if (date.era === 'AA') year -= $241b3c900de4f5b3$var$AMETE_MIHRET_DELTA;
2017
- return $241b3c900de4f5b3$var$getDaysInMonth(year, date.month);
2021
+ if (date.era === 'AA') year -= $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
2022
+ return $4db04d1051af0f2f$var$getDaysInMonth(year, date.month);
2018
2023
  }
2019
2024
  getMonthsInYear() {
2020
2025
  return 13;
2021
2026
  }
2022
2027
  getDaysInYear(date) {
2023
- return 365 + $241b3c900de4f5b3$var$getLeapDay(date.year);
2028
+ return 365 + $4db04d1051af0f2f$var$getLeapDay(date.year);
2024
2029
  }
2025
2030
  getYearsInEra() {
2026
2031
  return 9999;
@@ -2035,11 +2040,11 @@ class $241b3c900de4f5b3$export$26ba6eab5e20cd7d {
2035
2040
  this.identifier = 'ethiopic';
2036
2041
  }
2037
2042
  }
2038
- class $241b3c900de4f5b3$export$d72e0c37005a4914 extends $241b3c900de4f5b3$export$26ba6eab5e20cd7d {
2043
+ class $4db04d1051af0f2f$export$d72e0c37005a4914 extends $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
2039
2044
  fromJulianDay(jd) {
2040
- let date = $241b3c900de4f5b3$var$julianDayToCE(this, $241b3c900de4f5b3$var$ETHIOPIC_EPOCH, jd);
2045
+ let date = $4db04d1051af0f2f$var$julianDayToCE(this, $4db04d1051af0f2f$var$ETHIOPIC_EPOCH, jd);
2041
2046
  date.era = 'AA';
2042
- date.year += $241b3c900de4f5b3$var$AMETE_MIHRET_DELTA;
2047
+ date.year += $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
2043
2048
  return date;
2044
2049
  }
2045
2050
  getEras() {
@@ -2053,9 +2058,9 @@ class $241b3c900de4f5b3$export$d72e0c37005a4914 extends $241b3c900de4f5b3$export
2053
2058
  = 'ethioaa';
2054
2059
  }
2055
2060
  }
2056
- class $241b3c900de4f5b3$export$fe6243cbe1a4b7c1 extends $241b3c900de4f5b3$export$26ba6eab5e20cd7d {
2061
+ class $4db04d1051af0f2f$export$fe6243cbe1a4b7c1 extends $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
2057
2062
  fromJulianDay(jd) {
2058
- let date = $241b3c900de4f5b3$var$julianDayToCE(this, $241b3c900de4f5b3$var$COPTIC_EPOCH, jd);
2063
+ let date = $4db04d1051af0f2f$var$julianDayToCE(this, $4db04d1051af0f2f$var$COPTIC_EPOCH, jd);
2059
2064
  if (date.year <= 0) {
2060
2065
  date.era = 'BCE';
2061
2066
  date.year = 1 - date.year;
@@ -2065,12 +2070,12 @@ class $241b3c900de4f5b3$export$fe6243cbe1a4b7c1 extends $241b3c900de4f5b3$export
2065
2070
  toJulianDay(date) {
2066
2071
  let year = date.year;
2067
2072
  if (date.era === 'BCE') year = 1 - year;
2068
- return $241b3c900de4f5b3$var$ceToJulianDay($241b3c900de4f5b3$var$COPTIC_EPOCH, year, date.month, date.day);
2073
+ return $4db04d1051af0f2f$var$ceToJulianDay($4db04d1051af0f2f$var$COPTIC_EPOCH, year, date.month, date.day);
2069
2074
  }
2070
2075
  getDaysInMonth(date) {
2071
2076
  let year = date.year;
2072
2077
  if (date.era === 'BCE') year = 1 - year;
2073
- return $241b3c900de4f5b3$var$getDaysInMonth(year, date.month);
2078
+ return $4db04d1051af0f2f$var$getDaysInMonth(year, date.month);
2074
2079
  }
2075
2080
  getYearsToAdd(date, years) {
2076
2081
  return date.era === 'BCE' ? -years : years;
@@ -2097,48 +2102,45 @@ class $241b3c900de4f5b3$export$fe6243cbe1a4b7c1 extends $241b3c900de4f5b3$export
2097
2102
 
2098
2103
 
2099
2104
 
2100
- function $0e6dd8ee1e86aa7f$export$dd0bbc9b26defe37(name) {
2105
+ function $4922c0a5a69da0ba$export$dd0bbc9b26defe37(name) {
2101
2106
  switch(name){
2102
2107
  case 'buddhist':
2103
- return new $3d8b8d698eadd9f9$export$42d20a78301dee44();
2108
+ return new $561c4ef058278b74$export$42d20a78301dee44();
2104
2109
  case 'ethiopic':
2105
- return new $241b3c900de4f5b3$export$26ba6eab5e20cd7d();
2110
+ return new $4db04d1051af0f2f$export$26ba6eab5e20cd7d();
2106
2111
  case 'ethioaa':
2107
- return new $241b3c900de4f5b3$export$d72e0c37005a4914();
2112
+ return new $4db04d1051af0f2f$export$d72e0c37005a4914();
2108
2113
  case 'coptic':
2109
- return new $241b3c900de4f5b3$export$fe6243cbe1a4b7c1();
2114
+ return new $4db04d1051af0f2f$export$fe6243cbe1a4b7c1();
2110
2115
  case 'hebrew':
2111
- return new $7e9e96397d8405f3$export$ca405048b8fb5af();
2116
+ return new $0f5324ee3bdd9396$export$ca405048b8fb5af();
2112
2117
  case 'indian':
2113
- return new $8626c25ab1e2c78a$export$39f31c639fa15726();
2118
+ return new $5f1dfa5c67609fe6$export$39f31c639fa15726();
2114
2119
  case 'islamic-civil':
2115
- return new $4f37d2a9fc47c3f0$export$2066795aadd37bfc();
2120
+ return new $ecb2c4cc8c9aae25$export$2066795aadd37bfc();
2116
2121
  case 'islamic-tbla':
2117
- return new $4f37d2a9fc47c3f0$export$37f0887f2f9d22f7();
2122
+ return new $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7();
2118
2123
  case 'islamic-umalqura':
2119
- return new $4f37d2a9fc47c3f0$export$5baab4758c231076();
2124
+ return new $ecb2c4cc8c9aae25$export$5baab4758c231076();
2120
2125
  case 'japanese':
2121
- return new $a829bc7a11c5e72b$export$b746ab2b60cdffbf();
2126
+ return new $b0ac0602ef646b2c$export$b746ab2b60cdffbf();
2122
2127
  case 'persian':
2123
- return new $75fdc3cae9bb671c$export$37fccdbfd14c5939();
2128
+ return new $3c060181fc7249ae$export$37fccdbfd14c5939();
2124
2129
  case 'roc':
2125
- return new $3787fdcbabdfc7bd$export$65e01080afcb0799();
2130
+ return new $9cc5d3577ec40243$export$65e01080afcb0799();
2126
2131
  case 'gregory':
2127
2132
  default:
2128
- return new $680b26d521b88d00$export$80ee6245ec4f29ec();
2133
+ return new $af14c9812fdceb33$export$80ee6245ec4f29ec();
2129
2134
  }
2130
2135
  }
2131
2136
 
2132
2137
 
2133
2138
 
2134
2139
 
2135
- var $015fddca3b784be3$exports = {};
2136
-
2140
+ var $b1ef8363d1417683$exports = {};
2137
2141
 
2138
2142
 
2139
- var $d79d27c45747ea23$exports = {};
2140
2143
 
2141
- $parcel$export($d79d27c45747ea23$exports, "DateFormatter", () => $d79d27c45747ea23$export$ad991b66133851cf);
2142
2144
  /*
2143
2145
  * Copyright 2020 Adobe. All rights reserved.
2144
2146
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -2149,15 +2151,15 @@ $parcel$export($d79d27c45747ea23$exports, "DateFormatter", () => $d79d27c45747ea
2149
2151
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2150
2152
  * OF ANY KIND, either express or implied. See the License for the specific language
2151
2153
  * governing permissions and limitations under the License.
2152
- */ let $d79d27c45747ea23$var$formatterCache = new Map();
2153
- class $d79d27c45747ea23$export$ad991b66133851cf {
2154
- format(value) {
2154
+ */ let $8f23a04ae90a588b$var$formatterCache = new Map();
2155
+ class $8f23a04ae90a588b$export$ad991b66133851cf {
2156
+ /** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {
2155
2157
  return this.formatter.format(value);
2156
2158
  }
2157
- formatToParts(value) {
2159
+ /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {
2158
2160
  return this.formatter.formatToParts(value);
2159
2161
  }
2160
- formatRange(start, end) {
2162
+ /** Formats a date range as a string. */ formatRange(start, end) {
2161
2163
  // @ts-ignore
2162
2164
  if (typeof this.formatter.formatRange === 'function') // @ts-ignore
2163
2165
  return this.formatter.formatRange(start, end);
@@ -2165,7 +2167,7 @@ class $d79d27c45747ea23$export$ad991b66133851cf {
2165
2167
  // Very basic fallback for old browsers.
2166
2168
  return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
2167
2169
  }
2168
- formatRangeToParts(start, end) {
2170
+ /** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {
2169
2171
  // @ts-ignore
2170
2172
  if (typeof this.formatter.formatRangeToParts === 'function') // @ts-ignore
2171
2173
  return this.formatter.formatRangeToParts(start, end);
@@ -2190,10 +2192,10 @@ class $d79d27c45747ea23$export$ad991b66133851cf {
2190
2192
  )
2191
2193
  ];
2192
2194
  }
2193
- resolvedOptions() {
2195
+ /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
2194
2196
  let resolvedOptions = this.formatter.resolvedOptions();
2195
- if ($d79d27c45747ea23$var$hasBuggyResolvedHourCycle()) {
2196
- if (!this.resolvedHourCycle) this.resolvedHourCycle = $d79d27c45747ea23$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
2197
+ if ($8f23a04ae90a588b$var$hasBuggyResolvedHourCycle()) {
2198
+ if (!this.resolvedHourCycle) this.resolvedHourCycle = $8f23a04ae90a588b$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
2197
2199
  resolvedOptions.hourCycle = this.resolvedHourCycle;
2198
2200
  resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';
2199
2201
  }
@@ -2201,7 +2203,7 @@ class $d79d27c45747ea23$export$ad991b66133851cf {
2201
2203
  }
2202
2204
  constructor(locale, options = {
2203
2205
  }){
2204
- this.formatter = $d79d27c45747ea23$var$getCachedDateFormatter(locale, options);
2206
+ this.formatter = $8f23a04ae90a588b$var$getCachedDateFormatter(locale, options);
2205
2207
  this.options = options;
2206
2208
  }
2207
2209
  }
@@ -2215,7 +2217,7 @@ class $d79d27c45747ea23$export$ad991b66133851cf {
2215
2217
  // [2] https://github.com/tc39/ecma402/issues/402
2216
2218
  // [3] https://bugs.webkit.org/show_bug.cgi?id=229313
2217
2219
  // https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802
2218
- const $d79d27c45747ea23$var$hour12Preferences = {
2220
+ const $8f23a04ae90a588b$var$hour12Preferences = {
2219
2221
  true: {
2220
2222
  // Only Japanese uses the h11 style for 12 hour time. All others use h12.
2221
2223
  ja: 'h11'
@@ -2223,49 +2225,49 @@ const $d79d27c45747ea23$var$hour12Preferences = {
2223
2225
  false: {
2224
2226
  }
2225
2227
  };
2226
- function $d79d27c45747ea23$var$getCachedDateFormatter(locale, options = {
2228
+ function $8f23a04ae90a588b$var$getCachedDateFormatter(locale, options = {
2227
2229
  }) {
2228
2230
  // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.
2229
2231
  // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.
2230
- if (typeof options.hour12 === 'boolean' && $d79d27c45747ea23$var$hasBuggyHour12Behavior()) {
2232
+ if (typeof options.hour12 === 'boolean' && $8f23a04ae90a588b$var$hasBuggyHour12Behavior()) {
2231
2233
  options = {
2232
2234
  ...options
2233
2235
  };
2234
- let pref = $d79d27c45747ea23$var$hour12Preferences[String(options.hour12)][locale.split('-')[0]];
2236
+ let pref = $8f23a04ae90a588b$var$hour12Preferences[String(options.hour12)][locale.split('-')[0]];
2235
2237
  let defaultHourCycle = options.hour12 ? 'h12' : 'h23';
2236
2238
  options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
2237
2239
  delete options.hour12;
2238
2240
  }
2239
2241
  let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1
2240
2242
  ).join() : '');
2241
- if ($d79d27c45747ea23$var$formatterCache.has(cacheKey)) return $d79d27c45747ea23$var$formatterCache.get(cacheKey);
2243
+ if ($8f23a04ae90a588b$var$formatterCache.has(cacheKey)) return $8f23a04ae90a588b$var$formatterCache.get(cacheKey);
2242
2244
  let numberFormatter = new Intl.DateTimeFormat(locale, options);
2243
- $d79d27c45747ea23$var$formatterCache.set(cacheKey, numberFormatter);
2245
+ $8f23a04ae90a588b$var$formatterCache.set(cacheKey, numberFormatter);
2244
2246
  return numberFormatter;
2245
2247
  }
2246
- let $d79d27c45747ea23$var$_hasBuggyHour12Behavior = null;
2247
- function $d79d27c45747ea23$var$hasBuggyHour12Behavior() {
2248
- if ($d79d27c45747ea23$var$_hasBuggyHour12Behavior == null) $d79d27c45747ea23$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat('en-US', {
2248
+ let $8f23a04ae90a588b$var$_hasBuggyHour12Behavior = null;
2249
+ function $8f23a04ae90a588b$var$hasBuggyHour12Behavior() {
2250
+ if ($8f23a04ae90a588b$var$_hasBuggyHour12Behavior == null) $8f23a04ae90a588b$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat('en-US', {
2249
2251
  hour: 'numeric',
2250
2252
  hour12: false
2251
2253
  }).format(new Date(2020, 2, 3, 0)) === '24';
2252
- return $d79d27c45747ea23$var$_hasBuggyHour12Behavior;
2254
+ return $8f23a04ae90a588b$var$_hasBuggyHour12Behavior;
2253
2255
  }
2254
- let $d79d27c45747ea23$var$_hasBuggyResolvedHourCycle = null;
2255
- function $d79d27c45747ea23$var$hasBuggyResolvedHourCycle() {
2256
- if ($d79d27c45747ea23$var$_hasBuggyResolvedHourCycle == null) $d79d27c45747ea23$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', {
2256
+ let $8f23a04ae90a588b$var$_hasBuggyResolvedHourCycle = null;
2257
+ function $8f23a04ae90a588b$var$hasBuggyResolvedHourCycle() {
2258
+ if ($8f23a04ae90a588b$var$_hasBuggyResolvedHourCycle == null) $8f23a04ae90a588b$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', {
2257
2259
  hour: 'numeric',
2258
2260
  hour12: false
2259
2261
  }).resolvedOptions().hourCycle === 'h12';
2260
- return $d79d27c45747ea23$var$_hasBuggyResolvedHourCycle;
2262
+ return $8f23a04ae90a588b$var$_hasBuggyResolvedHourCycle;
2261
2263
  }
2262
- function $d79d27c45747ea23$var$getResolvedHourCycle(locale, options) {
2264
+ function $8f23a04ae90a588b$var$getResolvedHourCycle(locale, options) {
2263
2265
  if (!options.timeStyle && !options.hour) return undefined;
2264
2266
  // Work around buggy results in resolved hourCycle and hour12 options in WebKit.
2265
2267
  // Format the minimum possible hour and maximum possible hour in a day and parse the results.
2266
2268
  locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');
2267
2269
  locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';
2268
- let formatter = $d79d27c45747ea23$var$getCachedDateFormatter(locale, {
2270
+ let formatter = $8f23a04ae90a588b$var$getCachedDateFormatter(locale, {
2269
2271
  ...options,
2270
2272
  timeZone: undefined // use local timezone
2271
2273
  });
@@ -2281,12 +2283,7 @@ function $d79d27c45747ea23$var$getResolvedHourCycle(locale, options) {
2281
2283
  }
2282
2284
 
2283
2285
 
2284
- $parcel$exportWildcard(module.exports, $e2d97aa3b7775168$exports);
2285
- $parcel$exportWildcard(module.exports, $6de69c682dff3674$exports);
2286
- $parcel$exportWildcard(module.exports, $8180638d62fba910$exports);
2287
- $parcel$exportWildcard(module.exports, $015fddca3b784be3$exports);
2288
- $parcel$exportWildcard(module.exports, $6f8483c3b5544266$exports);
2289
- $parcel$exportWildcard(module.exports, $d79d27c45747ea23$exports);
2286
+ $parcel$exportWildcard(module.exports, $b1ef8363d1417683$exports);
2290
2287
 
2291
2288
 
2292
2289
  //# sourceMappingURL=main.js.map