@internationalized/date 3.2.1-nightly.3960 → 3.2.1-nightly.3966
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/import.mjs +26 -36
- package/dist/main.js +26 -39
- package/dist/main.js.map +1 -1
- package/dist/module.js +26 -36
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/import.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import $cUVuN$
|
|
2
|
-
import $cUVuN$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_property.mjs";
|
|
1
|
+
import {_ as $cUVuN$_} from "@swc/helpers/_/_class_private_field_init";
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
4
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -59,7 +58,6 @@ import $cUVuN$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_pr
|
|
|
59
58
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
60
59
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
61
60
|
|
|
62
|
-
|
|
63
61
|
/*
|
|
64
62
|
* Copyright 2020 Adobe. All rights reserved.
|
|
65
63
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -194,7 +192,7 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
194
192
|
}
|
|
195
193
|
}
|
|
196
194
|
constructor(){
|
|
197
|
-
|
|
195
|
+
this.identifier = "gregory";
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
|
|
@@ -640,11 +638,11 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
640
638
|
if (timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)() && disambiguation === "compatible") {
|
|
641
639
|
dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());
|
|
642
640
|
// Don't use Date constructor here because two-digit years are interpreted in the 20th century.
|
|
643
|
-
let
|
|
641
|
+
let date = new Date();
|
|
644
642
|
let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
return
|
|
643
|
+
date.setFullYear(year, dateTime.month - 1, dateTime.day);
|
|
644
|
+
date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
|
|
645
|
+
return date.getTime();
|
|
648
646
|
}
|
|
649
647
|
let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
650
648
|
let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
@@ -1001,8 +999,8 @@ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
|
|
|
1001
999
|
ms += (duration.seconds || 0) * 1000;
|
|
1002
1000
|
ms += (duration.minutes || 0) * 60000;
|
|
1003
1001
|
ms += (duration.hours || 0) * 3600000;
|
|
1004
|
-
let
|
|
1005
|
-
return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(
|
|
1002
|
+
let res = (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);
|
|
1003
|
+
return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);
|
|
1006
1004
|
}
|
|
1007
1005
|
function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
|
|
1008
1006
|
return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
|
|
@@ -1062,8 +1060,8 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
1062
1060
|
case "day":
|
|
1063
1061
|
{
|
|
1064
1062
|
let res = $735220c2d4774dd3$export$d52ced6badfb9a4c((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);
|
|
1065
|
-
let
|
|
1066
|
-
return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(
|
|
1063
|
+
let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);
|
|
1064
|
+
return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
|
|
1067
1065
|
}
|
|
1068
1066
|
default:
|
|
1069
1067
|
throw new Error("Unsupported field " + field);
|
|
@@ -1288,7 +1286,7 @@ class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
|
|
|
1288
1286
|
return (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);
|
|
1289
1287
|
}
|
|
1290
1288
|
constructor(...args){
|
|
1291
|
-
(0, $cUVuN$
|
|
1289
|
+
(0, $cUVuN$_)(this, $35ea8db9cb2ccb90$var$_type, {
|
|
1292
1290
|
writable: true,
|
|
1293
1291
|
value: void 0
|
|
1294
1292
|
});
|
|
@@ -1330,7 +1328,7 @@ class $35ea8db9cb2ccb90$export$680ea196effce5f {
|
|
|
1330
1328
|
return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);
|
|
1331
1329
|
}
|
|
1332
1330
|
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
1333
|
-
(0, $cUVuN$
|
|
1331
|
+
(0, $cUVuN$_)(this, $35ea8db9cb2ccb90$var$_type1, {
|
|
1334
1332
|
writable: true,
|
|
1335
1333
|
value: void 0
|
|
1336
1334
|
});
|
|
@@ -1384,7 +1382,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
|
1384
1382
|
return res;
|
|
1385
1383
|
}
|
|
1386
1384
|
constructor(...args){
|
|
1387
|
-
(0, $cUVuN$
|
|
1385
|
+
(0, $cUVuN$_)(this, $35ea8db9cb2ccb90$var$_type2, {
|
|
1388
1386
|
writable: true,
|
|
1389
1387
|
value: void 0
|
|
1390
1388
|
});
|
|
@@ -1438,7 +1436,7 @@ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
|
1438
1436
|
return this.toDate().getTime() - (0, $11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();
|
|
1439
1437
|
}
|
|
1440
1438
|
constructor(...args){
|
|
1441
|
-
(0, $cUVuN$
|
|
1439
|
+
(0, $cUVuN$_)(this, $35ea8db9cb2ccb90$var$_type3, {
|
|
1442
1440
|
writable: true,
|
|
1443
1441
|
value: void 0
|
|
1444
1442
|
});
|
|
@@ -1476,7 +1474,6 @@ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
|
1476
1474
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1477
1475
|
|
|
1478
1476
|
|
|
1479
|
-
|
|
1480
1477
|
const $62225008020f0a13$var$ERA_START_DATES = [
|
|
1481
1478
|
[
|
|
1482
1479
|
1868,
|
|
@@ -1622,7 +1619,7 @@ class $62225008020f0a13$export$b746ab2b60cdffbf extends (0, $3b62074eb05584b2$ex
|
|
|
1622
1619
|
}
|
|
1623
1620
|
constructor(...args){
|
|
1624
1621
|
super(...args);
|
|
1625
|
-
|
|
1622
|
+
this.identifier = "japanese";
|
|
1626
1623
|
}
|
|
1627
1624
|
}
|
|
1628
1625
|
function $62225008020f0a13$var$getMinimums(date) {
|
|
@@ -1647,7 +1644,6 @@ function $62225008020f0a13$var$getMinimums(date) {
|
|
|
1647
1644
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1648
1645
|
|
|
1649
1646
|
|
|
1650
|
-
|
|
1651
1647
|
const $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;
|
|
1652
1648
|
class $8d73d47422ca7302$export$42d20a78301dee44 extends (0, $3b62074eb05584b2$export$80ee6245ec4f29ec) {
|
|
1653
1649
|
fromJulianDay(jd) {
|
|
@@ -1669,7 +1665,7 @@ class $8d73d47422ca7302$export$42d20a78301dee44 extends (0, $3b62074eb05584b2$ex
|
|
|
1669
1665
|
balanceDate() {}
|
|
1670
1666
|
constructor(...args){
|
|
1671
1667
|
super(...args);
|
|
1672
|
-
|
|
1668
|
+
this.identifier = "buddhist";
|
|
1673
1669
|
}
|
|
1674
1670
|
}
|
|
1675
1671
|
function $8d73d47422ca7302$var$toGregorian(date) {
|
|
@@ -1692,7 +1688,6 @@ function $8d73d47422ca7302$var$toGregorian(date) {
|
|
|
1692
1688
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1693
1689
|
|
|
1694
1690
|
|
|
1695
|
-
|
|
1696
1691
|
const $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;
|
|
1697
1692
|
function $5f31bd6f0c8940b2$var$gregorianYear(date) {
|
|
1698
1693
|
return date.era === "minguo" ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
|
|
@@ -1740,7 +1735,7 @@ class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends (0, $3b62074eb05584b2$ex
|
|
|
1740
1735
|
}
|
|
1741
1736
|
constructor(...args){
|
|
1742
1737
|
super(...args);
|
|
1743
|
-
|
|
1738
|
+
this.identifier = "roc" // Republic of China
|
|
1744
1739
|
;
|
|
1745
1740
|
}
|
|
1746
1741
|
}
|
|
@@ -1764,7 +1759,6 @@ function $5f31bd6f0c8940b2$var$toGregorian(date) {
|
|
|
1764
1759
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1765
1760
|
|
|
1766
1761
|
|
|
1767
|
-
|
|
1768
1762
|
const $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948321; // 622/03/19 Julian C.E.
|
|
1769
1763
|
function $f3ed2e4472ae7e25$var$isLeapYear(year) {
|
|
1770
1764
|
let y0 = year > 0 ? year - 474 : year - 473;
|
|
@@ -1812,7 +1806,7 @@ class $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {
|
|
|
1812
1806
|
return 9377;
|
|
1813
1807
|
}
|
|
1814
1808
|
constructor(){
|
|
1815
|
-
|
|
1809
|
+
this.identifier = "persian";
|
|
1816
1810
|
}
|
|
1817
1811
|
}
|
|
1818
1812
|
|
|
@@ -1831,7 +1825,6 @@ class $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {
|
|
|
1831
1825
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1832
1826
|
|
|
1833
1827
|
|
|
1834
|
-
|
|
1835
1828
|
// Starts in 78 AD,
|
|
1836
1829
|
const $82c358003bdda0a8$var$INDIAN_ERA_START = 78;
|
|
1837
1830
|
// The Indian year starts 80 days later than the Gregorian year.
|
|
@@ -1910,7 +1903,7 @@ class $82c358003bdda0a8$export$39f31c639fa15726 extends (0, $3b62074eb05584b2$ex
|
|
|
1910
1903
|
balanceDate() {}
|
|
1911
1904
|
constructor(...args){
|
|
1912
1905
|
super(...args);
|
|
1913
|
-
|
|
1906
|
+
this.identifier = "indian";
|
|
1914
1907
|
}
|
|
1915
1908
|
}
|
|
1916
1909
|
|
|
@@ -1928,7 +1921,6 @@ class $82c358003bdda0a8$export$39f31c639fa15726 extends (0, $3b62074eb05584b2$ex
|
|
|
1928
1921
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
1929
1922
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1930
1923
|
|
|
1931
|
-
|
|
1932
1924
|
const $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440; // CE 622 July 16 Friday (Julian calendar) / CE 622 July 19 (Gregorian calendar)
|
|
1933
1925
|
const $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439; // CE 622 July 15 Thursday (Julian calendar)
|
|
1934
1926
|
const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;
|
|
@@ -1974,7 +1966,7 @@ class $f2f3e0e3a817edbd$export$2066795aadd37bfc {
|
|
|
1974
1966
|
];
|
|
1975
1967
|
}
|
|
1976
1968
|
constructor(){
|
|
1977
|
-
|
|
1969
|
+
this.identifier = "islamic-civil";
|
|
1978
1970
|
}
|
|
1979
1971
|
}
|
|
1980
1972
|
class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
|
|
@@ -1986,7 +1978,7 @@ class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export
|
|
|
1986
1978
|
}
|
|
1987
1979
|
constructor(...args){
|
|
1988
1980
|
super(...args);
|
|
1989
|
-
|
|
1981
|
+
this.identifier = "islamic-tbla";
|
|
1990
1982
|
}
|
|
1991
1983
|
}
|
|
1992
1984
|
// Generated by scripts/generate-umalqura.js
|
|
@@ -2055,7 +2047,7 @@ class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export
|
|
|
2055
2047
|
}
|
|
2056
2048
|
constructor(){
|
|
2057
2049
|
super();
|
|
2058
|
-
|
|
2050
|
+
this.identifier = "islamic-umalqura";
|
|
2059
2051
|
if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer);
|
|
2060
2052
|
if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {
|
|
2061
2053
|
$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);
|
|
@@ -2083,7 +2075,6 @@ class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export
|
|
|
2083
2075
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
2084
2076
|
|
|
2085
2077
|
|
|
2086
|
-
|
|
2087
2078
|
const $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;
|
|
2088
2079
|
// Hebrew date calculations are performed in terms of days, hours, and
|
|
2089
2080
|
// "parts" (or halakim), which are 1/1080 of an hour, or 3 1/3 seconds.
|
|
@@ -2204,7 +2195,7 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
2204
2195
|
}
|
|
2205
2196
|
}
|
|
2206
2197
|
constructor(){
|
|
2207
|
-
|
|
2198
|
+
this.identifier = "hebrew";
|
|
2208
2199
|
}
|
|
2209
2200
|
}
|
|
2210
2201
|
|
|
@@ -2222,7 +2213,6 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
2222
2213
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
2223
2214
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
2224
2215
|
|
|
2225
|
-
|
|
2226
2216
|
const $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;
|
|
2227
2217
|
const $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;
|
|
2228
2218
|
// The delta between Amete Alem 1 and Amete Mihret 1
|
|
@@ -2297,7 +2287,7 @@ class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
|
2297
2287
|
];
|
|
2298
2288
|
}
|
|
2299
2289
|
constructor(){
|
|
2300
|
-
|
|
2290
|
+
this.identifier = "ethiopic";
|
|
2301
2291
|
}
|
|
2302
2292
|
}
|
|
2303
2293
|
class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
@@ -2317,7 +2307,7 @@ class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export
|
|
|
2317
2307
|
}
|
|
2318
2308
|
constructor(...args){
|
|
2319
2309
|
super(...args);
|
|
2320
|
-
|
|
2310
|
+
this.identifier = "ethioaa" // also known as 'ethiopic-amete-alem' in ICU
|
|
2321
2311
|
;
|
|
2322
2312
|
}
|
|
2323
2313
|
}
|
|
@@ -2364,7 +2354,7 @@ class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export
|
|
|
2364
2354
|
}
|
|
2365
2355
|
constructor(...args){
|
|
2366
2356
|
super(...args);
|
|
2367
|
-
|
|
2357
|
+
this.identifier = "coptic";
|
|
2368
2358
|
}
|
|
2369
2359
|
}
|
|
2370
2360
|
|
package/dist/main.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
var $kgI3C$
|
|
2
|
-
var $kgI3C$swchelperslib_define_propertyjs = require("@swc/helpers/lib/_define_property.js");
|
|
1
|
+
var $kgI3C$swchelperscjs_class_private_field_initcjs = require("@swc/helpers/cjs/_class_private_field_init.cjs");
|
|
3
2
|
|
|
4
3
|
function $parcel$export(e, n, v, s) {
|
|
5
4
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
5
|
}
|
|
7
|
-
function $parcel$interopDefault(a) {
|
|
8
|
-
return a && a.__esModule ? a.default : a;
|
|
9
|
-
}
|
|
10
6
|
|
|
11
7
|
$parcel$export(module.exports, "CalendarDate", () => $625ad1e1f4c43bc1$export$99faa760c7908e4f);
|
|
12
8
|
$parcel$export(module.exports, "CalendarDateTime", () => $625ad1e1f4c43bc1$export$ca871e8dbb80966f);
|
|
@@ -124,7 +120,6 @@ $parcel$export(module.exports, "DateFormatter", () => $8f23a04ae90a588b$export$a
|
|
|
124
120
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
125
121
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
126
122
|
|
|
127
|
-
|
|
128
123
|
/*
|
|
129
124
|
* Copyright 2020 Adobe. All rights reserved.
|
|
130
125
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -259,7 +254,7 @@ class $af14c9812fdceb33$export$80ee6245ec4f29ec {
|
|
|
259
254
|
}
|
|
260
255
|
}
|
|
261
256
|
constructor(){
|
|
262
|
-
|
|
257
|
+
this.identifier = "gregory";
|
|
263
258
|
}
|
|
264
259
|
}
|
|
265
260
|
|
|
@@ -705,11 +700,11 @@ function $4ae0260a69729f1d$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
705
700
|
if (timeZone === (0, $1f0f7ebf1ae6c530$export$aa8b41735afcabd2)() && disambiguation === "compatible") {
|
|
706
701
|
dateTime = $4ae0260a69729f1d$export$b4a036af3fc0b032(dateTime, new (0, $af14c9812fdceb33$export$80ee6245ec4f29ec)());
|
|
707
702
|
// Don't use Date constructor here because two-digit years are interpreted in the 20th century.
|
|
708
|
-
let
|
|
703
|
+
let date = new Date();
|
|
709
704
|
let year = (0, $af14c9812fdceb33$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
return
|
|
705
|
+
date.setFullYear(year, dateTime.month - 1, dateTime.day);
|
|
706
|
+
date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
|
|
707
|
+
return date.getTime();
|
|
713
708
|
}
|
|
714
709
|
let ms = $4ae0260a69729f1d$export$bd4fb2bc8bb06fb(dateTime);
|
|
715
710
|
let offsetBefore = $4ae0260a69729f1d$export$59c99f3515d3493f(ms - $4ae0260a69729f1d$var$DAYMILLIS, timeZone);
|
|
@@ -1066,8 +1061,8 @@ function $5c0571aa5b6fb5da$export$96b1d28349274637(dateTime, duration) {
|
|
|
1066
1061
|
ms += (duration.seconds || 0) * 1000;
|
|
1067
1062
|
ms += (duration.minutes || 0) * 60000;
|
|
1068
1063
|
ms += (duration.hours || 0) * 3600000;
|
|
1069
|
-
let
|
|
1070
|
-
return (0, $4ae0260a69729f1d$export$b4a036af3fc0b032)(
|
|
1064
|
+
let res = (0, $4ae0260a69729f1d$export$1b96692a1ba042ac)(ms, dateTime.timeZone);
|
|
1065
|
+
return (0, $4ae0260a69729f1d$export$b4a036af3fc0b032)(res, dateTime.calendar);
|
|
1071
1066
|
}
|
|
1072
1067
|
function $5c0571aa5b6fb5da$export$6814caac34ca03c7(dateTime, duration) {
|
|
1073
1068
|
return $5c0571aa5b6fb5da$export$96b1d28349274637(dateTime, $5c0571aa5b6fb5da$export$3e2544e88a25bff8(duration));
|
|
@@ -1127,8 +1122,8 @@ function $5c0571aa5b6fb5da$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
1127
1122
|
case "day":
|
|
1128
1123
|
{
|
|
1129
1124
|
let res = $5c0571aa5b6fb5da$export$d52ced6badfb9a4c((0, $4ae0260a69729f1d$export$b21e0b124e224484)(dateTime), field, amount, options);
|
|
1130
|
-
let
|
|
1131
|
-
return (0, $4ae0260a69729f1d$export$b4a036af3fc0b032)((0, $4ae0260a69729f1d$export$1b96692a1ba042ac)(
|
|
1125
|
+
let ms = (0, $4ae0260a69729f1d$export$5107c82f94518f5c)(res, dateTime.timeZone);
|
|
1126
|
+
return (0, $4ae0260a69729f1d$export$b4a036af3fc0b032)((0, $4ae0260a69729f1d$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
|
|
1132
1127
|
}
|
|
1133
1128
|
default:
|
|
1134
1129
|
throw new Error("Unsupported field " + field);
|
|
@@ -1353,7 +1348,7 @@ class $625ad1e1f4c43bc1$export$99faa760c7908e4f {
|
|
|
1353
1348
|
return (0, $1f0f7ebf1ae6c530$export$68781ddf31c0090f)(this, b);
|
|
1354
1349
|
}
|
|
1355
1350
|
constructor(...args){
|
|
1356
|
-
(0,
|
|
1351
|
+
(0, $kgI3C$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type, {
|
|
1357
1352
|
writable: true,
|
|
1358
1353
|
value: void 0
|
|
1359
1354
|
});
|
|
@@ -1395,7 +1390,7 @@ class $625ad1e1f4c43bc1$export$680ea196effce5f {
|
|
|
1395
1390
|
return (0, $1f0f7ebf1ae6c530$export$c19a80a9721b80f6)(this, b);
|
|
1396
1391
|
}
|
|
1397
1392
|
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
1398
|
-
(0,
|
|
1393
|
+
(0, $kgI3C$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type1, {
|
|
1399
1394
|
writable: true,
|
|
1400
1395
|
value: void 0
|
|
1401
1396
|
});
|
|
@@ -1449,7 +1444,7 @@ class $625ad1e1f4c43bc1$export$ca871e8dbb80966f {
|
|
|
1449
1444
|
return res;
|
|
1450
1445
|
}
|
|
1451
1446
|
constructor(...args){
|
|
1452
|
-
(0,
|
|
1447
|
+
(0, $kgI3C$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type2, {
|
|
1453
1448
|
writable: true,
|
|
1454
1449
|
value: void 0
|
|
1455
1450
|
});
|
|
@@ -1503,7 +1498,7 @@ class $625ad1e1f4c43bc1$export$d3b7288e7994edea {
|
|
|
1503
1498
|
return this.toDate().getTime() - (0, $4ae0260a69729f1d$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();
|
|
1504
1499
|
}
|
|
1505
1500
|
constructor(...args){
|
|
1506
|
-
(0,
|
|
1501
|
+
(0, $kgI3C$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type3, {
|
|
1507
1502
|
writable: true,
|
|
1508
1503
|
value: void 0
|
|
1509
1504
|
});
|
|
@@ -1541,7 +1536,6 @@ class $625ad1e1f4c43bc1$export$d3b7288e7994edea {
|
|
|
1541
1536
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1542
1537
|
|
|
1543
1538
|
|
|
1544
|
-
|
|
1545
1539
|
const $b0ac0602ef646b2c$var$ERA_START_DATES = [
|
|
1546
1540
|
[
|
|
1547
1541
|
1868,
|
|
@@ -1687,7 +1681,7 @@ class $b0ac0602ef646b2c$export$b746ab2b60cdffbf extends (0, $af14c9812fdceb33$ex
|
|
|
1687
1681
|
}
|
|
1688
1682
|
constructor(...args){
|
|
1689
1683
|
super(...args);
|
|
1690
|
-
|
|
1684
|
+
this.identifier = "japanese";
|
|
1691
1685
|
}
|
|
1692
1686
|
}
|
|
1693
1687
|
function $b0ac0602ef646b2c$var$getMinimums(date) {
|
|
@@ -1712,7 +1706,6 @@ function $b0ac0602ef646b2c$var$getMinimums(date) {
|
|
|
1712
1706
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1713
1707
|
|
|
1714
1708
|
|
|
1715
|
-
|
|
1716
1709
|
const $561c4ef058278b74$var$BUDDHIST_ERA_START = -543;
|
|
1717
1710
|
class $561c4ef058278b74$export$42d20a78301dee44 extends (0, $af14c9812fdceb33$export$80ee6245ec4f29ec) {
|
|
1718
1711
|
fromJulianDay(jd) {
|
|
@@ -1734,7 +1727,7 @@ class $561c4ef058278b74$export$42d20a78301dee44 extends (0, $af14c9812fdceb33$ex
|
|
|
1734
1727
|
balanceDate() {}
|
|
1735
1728
|
constructor(...args){
|
|
1736
1729
|
super(...args);
|
|
1737
|
-
|
|
1730
|
+
this.identifier = "buddhist";
|
|
1738
1731
|
}
|
|
1739
1732
|
}
|
|
1740
1733
|
function $561c4ef058278b74$var$toGregorian(date) {
|
|
@@ -1757,7 +1750,6 @@ function $561c4ef058278b74$var$toGregorian(date) {
|
|
|
1757
1750
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1758
1751
|
|
|
1759
1752
|
|
|
1760
|
-
|
|
1761
1753
|
const $9cc5d3577ec40243$var$TAIWAN_ERA_START = 1911;
|
|
1762
1754
|
function $9cc5d3577ec40243$var$gregorianYear(date) {
|
|
1763
1755
|
return date.era === "minguo" ? date.year + $9cc5d3577ec40243$var$TAIWAN_ERA_START : 1 - date.year + $9cc5d3577ec40243$var$TAIWAN_ERA_START;
|
|
@@ -1805,7 +1797,7 @@ class $9cc5d3577ec40243$export$65e01080afcb0799 extends (0, $af14c9812fdceb33$ex
|
|
|
1805
1797
|
}
|
|
1806
1798
|
constructor(...args){
|
|
1807
1799
|
super(...args);
|
|
1808
|
-
|
|
1800
|
+
this.identifier = "roc" // Republic of China
|
|
1809
1801
|
;
|
|
1810
1802
|
}
|
|
1811
1803
|
}
|
|
@@ -1829,7 +1821,6 @@ function $9cc5d3577ec40243$var$toGregorian(date) {
|
|
|
1829
1821
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1830
1822
|
|
|
1831
1823
|
|
|
1832
|
-
|
|
1833
1824
|
const $3c060181fc7249ae$var$PERSIAN_EPOCH = 1948321; // 622/03/19 Julian C.E.
|
|
1834
1825
|
function $3c060181fc7249ae$var$isLeapYear(year) {
|
|
1835
1826
|
let y0 = year > 0 ? year - 474 : year - 473;
|
|
@@ -1877,7 +1868,7 @@ class $3c060181fc7249ae$export$37fccdbfd14c5939 {
|
|
|
1877
1868
|
return 9377;
|
|
1878
1869
|
}
|
|
1879
1870
|
constructor(){
|
|
1880
|
-
|
|
1871
|
+
this.identifier = "persian";
|
|
1881
1872
|
}
|
|
1882
1873
|
}
|
|
1883
1874
|
|
|
@@ -1896,7 +1887,6 @@ class $3c060181fc7249ae$export$37fccdbfd14c5939 {
|
|
|
1896
1887
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1897
1888
|
|
|
1898
1889
|
|
|
1899
|
-
|
|
1900
1890
|
// Starts in 78 AD,
|
|
1901
1891
|
const $5f1dfa5c67609fe6$var$INDIAN_ERA_START = 78;
|
|
1902
1892
|
// The Indian year starts 80 days later than the Gregorian year.
|
|
@@ -1975,7 +1965,7 @@ class $5f1dfa5c67609fe6$export$39f31c639fa15726 extends (0, $af14c9812fdceb33$ex
|
|
|
1975
1965
|
balanceDate() {}
|
|
1976
1966
|
constructor(...args){
|
|
1977
1967
|
super(...args);
|
|
1978
|
-
|
|
1968
|
+
this.identifier = "indian";
|
|
1979
1969
|
}
|
|
1980
1970
|
}
|
|
1981
1971
|
|
|
@@ -1993,7 +1983,6 @@ class $5f1dfa5c67609fe6$export$39f31c639fa15726 extends (0, $af14c9812fdceb33$ex
|
|
|
1993
1983
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
1994
1984
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
1995
1985
|
|
|
1996
|
-
|
|
1997
1986
|
const $ecb2c4cc8c9aae25$var$CIVIL_EPOC = 1948440; // CE 622 July 16 Friday (Julian calendar) / CE 622 July 19 (Gregorian calendar)
|
|
1998
1987
|
const $ecb2c4cc8c9aae25$var$ASTRONOMICAL_EPOC = 1948439; // CE 622 July 15 Thursday (Julian calendar)
|
|
1999
1988
|
const $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START = 1300;
|
|
@@ -2039,7 +2028,7 @@ class $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
|
|
|
2039
2028
|
];
|
|
2040
2029
|
}
|
|
2041
2030
|
constructor(){
|
|
2042
|
-
|
|
2031
|
+
this.identifier = "islamic-civil";
|
|
2043
2032
|
}
|
|
2044
2033
|
}
|
|
2045
2034
|
class $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7 extends $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
|
|
@@ -2051,7 +2040,7 @@ class $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7 extends $ecb2c4cc8c9aae25$export
|
|
|
2051
2040
|
}
|
|
2052
2041
|
constructor(...args){
|
|
2053
2042
|
super(...args);
|
|
2054
|
-
|
|
2043
|
+
this.identifier = "islamic-tbla";
|
|
2055
2044
|
}
|
|
2056
2045
|
}
|
|
2057
2046
|
// Generated by scripts/generate-umalqura.js
|
|
@@ -2120,7 +2109,7 @@ class $ecb2c4cc8c9aae25$export$5baab4758c231076 extends $ecb2c4cc8c9aae25$export
|
|
|
2120
2109
|
}
|
|
2121
2110
|
constructor(){
|
|
2122
2111
|
super();
|
|
2123
|
-
|
|
2112
|
+
this.identifier = "islamic-umalqura";
|
|
2124
2113
|
if (!$ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH) $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($ecb2c4cc8c9aae25$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer);
|
|
2125
2114
|
if (!$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE) {
|
|
2126
2115
|
$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START + 1);
|
|
@@ -2148,7 +2137,6 @@ class $ecb2c4cc8c9aae25$export$5baab4758c231076 extends $ecb2c4cc8c9aae25$export
|
|
|
2148
2137
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
2149
2138
|
|
|
2150
2139
|
|
|
2151
|
-
|
|
2152
2140
|
const $0f5324ee3bdd9396$var$HEBREW_EPOCH = 347997;
|
|
2153
2141
|
// Hebrew date calculations are performed in terms of days, hours, and
|
|
2154
2142
|
// "parts" (or halakim), which are 1/1080 of an hour, or 3 1/3 seconds.
|
|
@@ -2269,7 +2257,7 @@ class $0f5324ee3bdd9396$export$ca405048b8fb5af {
|
|
|
2269
2257
|
}
|
|
2270
2258
|
}
|
|
2271
2259
|
constructor(){
|
|
2272
|
-
|
|
2260
|
+
this.identifier = "hebrew";
|
|
2273
2261
|
}
|
|
2274
2262
|
}
|
|
2275
2263
|
|
|
@@ -2287,7 +2275,6 @@ class $0f5324ee3bdd9396$export$ca405048b8fb5af {
|
|
|
2287
2275
|
*/ // Portions of the code in this file are based on code from ICU.
|
|
2288
2276
|
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
|
2289
2277
|
|
|
2290
|
-
|
|
2291
2278
|
const $4db04d1051af0f2f$var$ETHIOPIC_EPOCH = 1723856;
|
|
2292
2279
|
const $4db04d1051af0f2f$var$COPTIC_EPOCH = 1824665;
|
|
2293
2280
|
// The delta between Amete Alem 1 and Amete Mihret 1
|
|
@@ -2362,7 +2349,7 @@ class $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
|
2362
2349
|
];
|
|
2363
2350
|
}
|
|
2364
2351
|
constructor(){
|
|
2365
|
-
|
|
2352
|
+
this.identifier = "ethiopic";
|
|
2366
2353
|
}
|
|
2367
2354
|
}
|
|
2368
2355
|
class $4db04d1051af0f2f$export$d72e0c37005a4914 extends $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
@@ -2382,7 +2369,7 @@ class $4db04d1051af0f2f$export$d72e0c37005a4914 extends $4db04d1051af0f2f$export
|
|
|
2382
2369
|
}
|
|
2383
2370
|
constructor(...args){
|
|
2384
2371
|
super(...args);
|
|
2385
|
-
|
|
2372
|
+
this.identifier = "ethioaa" // also known as 'ethiopic-amete-alem' in ICU
|
|
2386
2373
|
;
|
|
2387
2374
|
}
|
|
2388
2375
|
}
|
|
@@ -2429,7 +2416,7 @@ class $4db04d1051af0f2f$export$fe6243cbe1a4b7c1 extends $4db04d1051af0f2f$export
|
|
|
2429
2416
|
}
|
|
2430
2417
|
constructor(...args){
|
|
2431
2418
|
super(...args);
|
|
2432
|
-
|
|
2419
|
+
this.identifier = "coptic";
|
|
2433
2420
|
}
|
|
2434
2421
|
}
|
|
2435
2422
|
|