luigi12345 commited on
Commit
e6c5370
1 Parent(s): 884c58d

204f972f389d81f4bceaa8ff6b03e23c3afa4f6bef33e21142fb95f9a4111e50

Browse files
Files changed (50) hide show
  1. workers1/auto3d/node_modules/date-fns/getOverlappingDaysInIntervals.mjs +67 -0
  2. workers1/auto3d/node_modules/date-fns/getQuarter.d.mts +22 -0
  3. workers1/auto3d/node_modules/date-fns/getQuarter.d.ts +22 -0
  4. workers1/auto3d/node_modules/date-fns/getQuarter.js +28 -0
  5. workers1/auto3d/node_modules/date-fns/getQuarter.mjs +29 -0
  6. workers1/auto3d/node_modules/date-fns/getSeconds.d.mts +22 -0
  7. workers1/auto3d/node_modules/date-fns/getSeconds.d.ts +22 -0
  8. workers1/auto3d/node_modules/date-fns/getSeconds.js +28 -0
  9. workers1/auto3d/node_modules/date-fns/getSeconds.mjs +29 -0
  10. workers1/auto3d/node_modules/date-fns/getTime.d.mts +22 -0
  11. workers1/auto3d/node_modules/date-fns/getTime.d.ts +22 -0
  12. workers1/auto3d/node_modules/date-fns/getTime.js +28 -0
  13. workers1/auto3d/node_modules/date-fns/getTime.mjs +29 -0
  14. workers1/auto3d/node_modules/date-fns/getUnixTime.d.mts +22 -0
  15. workers1/auto3d/node_modules/date-fns/getUnixTime.d.ts +22 -0
  16. workers1/auto3d/node_modules/date-fns/getUnixTime.js +26 -0
  17. workers1/auto3d/node_modules/date-fns/getUnixTime.mjs +27 -0
  18. workers1/auto3d/node_modules/date-fns/getWeek.d.mts +52 -0
  19. workers1/auto3d/node_modules/date-fns/getWeek.d.ts +52 -0
  20. workers1/auto3d/node_modules/date-fns/getWeek.js +59 -0
  21. workers1/auto3d/node_modules/date-fns/getWeek.mjs +58 -0
  22. workers1/auto3d/node_modules/date-fns/getWeekOfMonth.d.mts +31 -0
  23. workers1/auto3d/node_modules/date-fns/getWeekOfMonth.d.ts +31 -0
  24. workers1/auto3d/node_modules/date-fns/getWeekOfMonth.js +52 -0
  25. workers1/auto3d/node_modules/date-fns/getWeekOfMonth.mjs +52 -0
  26. workers1/auto3d/node_modules/date-fns/getWeekYear.d.mts +52 -0
  27. workers1/auto3d/node_modules/date-fns/getWeekYear.d.ts +52 -0
  28. workers1/auto3d/node_modules/date-fns/getWeekYear.js +84 -0
  29. workers1/auto3d/node_modules/date-fns/getWeekYear.mjs +78 -0
  30. workers1/auto3d/node_modules/date-fns/getWeeksInMonth.d.mts +37 -0
  31. workers1/auto3d/node_modules/date-fns/getWeeksInMonth.d.ts +37 -0
  32. workers1/auto3d/node_modules/date-fns/getWeeksInMonth.js +45 -0
  33. workers1/auto3d/node_modules/date-fns/getWeeksInMonth.mjs +46 -0
  34. workers1/auto3d/node_modules/date-fns/getYear.d.mts +22 -0
  35. workers1/auto3d/node_modules/date-fns/getYear.d.ts +22 -0
  36. workers1/auto3d/node_modules/date-fns/getYear.js +26 -0
  37. workers1/auto3d/node_modules/date-fns/getYear.mjs +27 -0
  38. workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.d.mts +20 -0
  39. workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.d.ts +20 -0
  40. workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.js +26 -0
  41. workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.mjs +27 -0
  42. workers1/auto3d/node_modules/date-fns/hoursToMinutes.d.mts +20 -0
  43. workers1/auto3d/node_modules/date-fns/hoursToMinutes.d.ts +20 -0
  44. workers1/auto3d/node_modules/date-fns/hoursToMinutes.js +26 -0
  45. workers1/auto3d/node_modules/date-fns/hoursToMinutes.mjs +27 -0
  46. workers1/auto3d/node_modules/date-fns/hoursToSeconds.d.mts +20 -0
  47. workers1/auto3d/node_modules/date-fns/hoursToSeconds.d.ts +20 -0
  48. workers1/auto3d/node_modules/date-fns/hoursToSeconds.js +26 -0
  49. workers1/auto3d/node_modules/date-fns/hoursToSeconds.mjs +27 -0
  50. workers1/auto3d/node_modules/date-fns/index.d.mts +246 -0
workers1/auto3d/node_modules/date-fns/getOverlappingDaysInIntervals.mjs ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.mjs";
2
+ import { millisecondsInDay } from "./constants.mjs";
3
+ import { toDate } from "./toDate.mjs";
4
+
5
+ /**
6
+ * @name getOverlappingDaysInIntervals
7
+ * @category Interval Helpers
8
+ * @summary Get the number of days that overlap in two time intervals
9
+ *
10
+ * @description
11
+ * Get the number of days that overlap in two time intervals. It uses the time
12
+ * between dates to calculate the number of days, rounding it up to include
13
+ * partial days.
14
+ *
15
+ * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will
16
+ * result in 1.
17
+ *
18
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
19
+ *
20
+ * @param intervalLeft - The first interval to compare.
21
+ * @param intervalRight - The second interval to compare.
22
+ *
23
+ * @returns The number of days that overlap in two time intervals
24
+ *
25
+ * @example
26
+ * // For overlapping time intervals adds 1 for each started overlapping day:
27
+ * getOverlappingDaysInIntervals(
28
+ * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
29
+ * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
30
+ * )
31
+ * //=> 3
32
+ *
33
+ * @example
34
+ * // For non-overlapping time intervals returns 0:
35
+ * getOverlappingDaysInIntervals(
36
+ * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
37
+ * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) }
38
+ * )
39
+ * //=> 0
40
+ */
41
+
42
+ export function getOverlappingDaysInIntervals(intervalLeft, intervalRight) {
43
+ const [leftStart, leftEnd] = [
44
+ +toDate(intervalLeft.start),
45
+ +toDate(intervalLeft.end),
46
+ ].sort((a, b) => a - b);
47
+ const [rightStart, rightEnd] = [
48
+ +toDate(intervalRight.start),
49
+ +toDate(intervalRight.end),
50
+ ].sort((a, b) => a - b);
51
+
52
+ // Prevent NaN result if intervals don't overlap at all.
53
+ const isOverlapping = leftStart < rightEnd && rightStart < leftEnd;
54
+ if (!isOverlapping) return 0;
55
+
56
+ // Remove the timezone offset to negate the DST effect on calculations.
57
+ const overlapLeft = rightStart < leftStart ? leftStart : rightStart;
58
+ const left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft);
59
+ const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd;
60
+ const right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight);
61
+
62
+ // Ceil the number to include partial days too.
63
+ return Math.ceil((right - left) / millisecondsInDay);
64
+ }
65
+
66
+ // Fallback for modularized imports:
67
+ export default getOverlappingDaysInIntervals;
workers1/auto3d/node_modules/date-fns/getQuarter.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getQuarter
3
+ * @category Quarter Helpers
4
+ * @summary Get the year quarter of the given date.
5
+ *
6
+ * @description
7
+ * Get the year quarter of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The quarter
14
+ *
15
+ * @example
16
+ * // Which quarter is 2 July 2014?
17
+ * const result = getQuarter(new Date(2014, 6, 2))
18
+ * //=> 3
19
+ */
20
+ export declare function getQuarter<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getQuarter.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getQuarter
3
+ * @category Quarter Helpers
4
+ * @summary Get the year quarter of the given date.
5
+ *
6
+ * @description
7
+ * Get the year quarter of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The quarter
14
+ *
15
+ * @example
16
+ * // Which quarter is 2 July 2014?
17
+ * const result = getQuarter(new Date(2014, 6, 2))
18
+ * //=> 3
19
+ */
20
+ export declare function getQuarter<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getQuarter.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getQuarter = getQuarter;
3
+ var _index = require("./toDate.js");
4
+
5
+ /**
6
+ * @name getQuarter
7
+ * @category Quarter Helpers
8
+ * @summary Get the year quarter of the given date.
9
+ *
10
+ * @description
11
+ * Get the year quarter of the given date.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The given date
16
+ *
17
+ * @returns The quarter
18
+ *
19
+ * @example
20
+ * // Which quarter is 2 July 2014?
21
+ * const result = getQuarter(new Date(2014, 6, 2))
22
+ * //=> 3
23
+ */
24
+ function getQuarter(date) {
25
+ const _date = (0, _index.toDate)(date);
26
+ const quarter = Math.trunc(_date.getMonth() / 3) + 1;
27
+ return quarter;
28
+ }
workers1/auto3d/node_modules/date-fns/getQuarter.mjs ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { toDate } from "./toDate.mjs";
2
+
3
+ /**
4
+ * @name getQuarter
5
+ * @category Quarter Helpers
6
+ * @summary Get the year quarter of the given date.
7
+ *
8
+ * @description
9
+ * Get the year quarter of the given date.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The given date
14
+ *
15
+ * @returns The quarter
16
+ *
17
+ * @example
18
+ * // Which quarter is 2 July 2014?
19
+ * const result = getQuarter(new Date(2014, 6, 2))
20
+ * //=> 3
21
+ */
22
+ export function getQuarter(date) {
23
+ const _date = toDate(date);
24
+ const quarter = Math.trunc(_date.getMonth() / 3) + 1;
25
+ return quarter;
26
+ }
27
+
28
+ // Fallback for modularized imports:
29
+ export default getQuarter;
workers1/auto3d/node_modules/date-fns/getSeconds.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getSeconds
3
+ * @category Second Helpers
4
+ * @summary Get the seconds of the given date.
5
+ *
6
+ * @description
7
+ * Get the seconds of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The seconds
14
+ *
15
+ * @example
16
+ * // Get the seconds of 29 February 2012 11:45:05.123:
17
+ * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
18
+ * //=> 5
19
+ */
20
+ export declare function getSeconds<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getSeconds.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getSeconds
3
+ * @category Second Helpers
4
+ * @summary Get the seconds of the given date.
5
+ *
6
+ * @description
7
+ * Get the seconds of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The seconds
14
+ *
15
+ * @example
16
+ * // Get the seconds of 29 February 2012 11:45:05.123:
17
+ * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
18
+ * //=> 5
19
+ */
20
+ export declare function getSeconds<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getSeconds.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getSeconds = getSeconds;
3
+ var _index = require("./toDate.js");
4
+
5
+ /**
6
+ * @name getSeconds
7
+ * @category Second Helpers
8
+ * @summary Get the seconds of the given date.
9
+ *
10
+ * @description
11
+ * Get the seconds of the given date.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The given date
16
+ *
17
+ * @returns The seconds
18
+ *
19
+ * @example
20
+ * // Get the seconds of 29 February 2012 11:45:05.123:
21
+ * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
22
+ * //=> 5
23
+ */
24
+ function getSeconds(date) {
25
+ const _date = (0, _index.toDate)(date);
26
+ const seconds = _date.getSeconds();
27
+ return seconds;
28
+ }
workers1/auto3d/node_modules/date-fns/getSeconds.mjs ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { toDate } from "./toDate.mjs";
2
+
3
+ /**
4
+ * @name getSeconds
5
+ * @category Second Helpers
6
+ * @summary Get the seconds of the given date.
7
+ *
8
+ * @description
9
+ * Get the seconds of the given date.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The given date
14
+ *
15
+ * @returns The seconds
16
+ *
17
+ * @example
18
+ * // Get the seconds of 29 February 2012 11:45:05.123:
19
+ * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
20
+ * //=> 5
21
+ */
22
+ export function getSeconds(date) {
23
+ const _date = toDate(date);
24
+ const seconds = _date.getSeconds();
25
+ return seconds;
26
+ }
27
+
28
+ // Fallback for modularized imports:
29
+ export default getSeconds;
workers1/auto3d/node_modules/date-fns/getTime.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getTime
3
+ * @category Timestamp Helpers
4
+ * @summary Get the milliseconds timestamp of the given date.
5
+ *
6
+ * @description
7
+ * Get the milliseconds timestamp of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The timestamp
14
+ *
15
+ * @example
16
+ * // Get the timestamp of 29 February 2012 11:45:05.123:
17
+ * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
18
+ * //=> 1330515905123
19
+ */
20
+ export declare function getTime<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getTime.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getTime
3
+ * @category Timestamp Helpers
4
+ * @summary Get the milliseconds timestamp of the given date.
5
+ *
6
+ * @description
7
+ * Get the milliseconds timestamp of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The timestamp
14
+ *
15
+ * @example
16
+ * // Get the timestamp of 29 February 2012 11:45:05.123:
17
+ * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
18
+ * //=> 1330515905123
19
+ */
20
+ export declare function getTime<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getTime.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getTime = getTime;
3
+ var _index = require("./toDate.js");
4
+
5
+ /**
6
+ * @name getTime
7
+ * @category Timestamp Helpers
8
+ * @summary Get the milliseconds timestamp of the given date.
9
+ *
10
+ * @description
11
+ * Get the milliseconds timestamp of the given date.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The given date
16
+ *
17
+ * @returns The timestamp
18
+ *
19
+ * @example
20
+ * // Get the timestamp of 29 February 2012 11:45:05.123:
21
+ * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
22
+ * //=> 1330515905123
23
+ */
24
+ function getTime(date) {
25
+ const _date = (0, _index.toDate)(date);
26
+ const timestamp = _date.getTime();
27
+ return timestamp;
28
+ }
workers1/auto3d/node_modules/date-fns/getTime.mjs ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { toDate } from "./toDate.mjs";
2
+
3
+ /**
4
+ * @name getTime
5
+ * @category Timestamp Helpers
6
+ * @summary Get the milliseconds timestamp of the given date.
7
+ *
8
+ * @description
9
+ * Get the milliseconds timestamp of the given date.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The given date
14
+ *
15
+ * @returns The timestamp
16
+ *
17
+ * @example
18
+ * // Get the timestamp of 29 February 2012 11:45:05.123:
19
+ * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
20
+ * //=> 1330515905123
21
+ */
22
+ export function getTime(date) {
23
+ const _date = toDate(date);
24
+ const timestamp = _date.getTime();
25
+ return timestamp;
26
+ }
27
+
28
+ // Fallback for modularized imports:
29
+ export default getTime;
workers1/auto3d/node_modules/date-fns/getUnixTime.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getUnixTime
3
+ * @category Timestamp Helpers
4
+ * @summary Get the seconds timestamp of the given date.
5
+ *
6
+ * @description
7
+ * Get the seconds timestamp of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The timestamp
14
+ *
15
+ * @example
16
+ * // Get the timestamp of 29 February 2012 11:45:05 CET:
17
+ * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))
18
+ * //=> 1330512305
19
+ */
20
+ export declare function getUnixTime<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getUnixTime.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getUnixTime
3
+ * @category Timestamp Helpers
4
+ * @summary Get the seconds timestamp of the given date.
5
+ *
6
+ * @description
7
+ * Get the seconds timestamp of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The timestamp
14
+ *
15
+ * @example
16
+ * // Get the timestamp of 29 February 2012 11:45:05 CET:
17
+ * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))
18
+ * //=> 1330512305
19
+ */
20
+ export declare function getUnixTime<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getUnixTime.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getUnixTime = getUnixTime;
3
+ var _index = require("./toDate.js");
4
+
5
+ /**
6
+ * @name getUnixTime
7
+ * @category Timestamp Helpers
8
+ * @summary Get the seconds timestamp of the given date.
9
+ *
10
+ * @description
11
+ * Get the seconds timestamp of the given date.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The given date
16
+ *
17
+ * @returns The timestamp
18
+ *
19
+ * @example
20
+ * // Get the timestamp of 29 February 2012 11:45:05 CET:
21
+ * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))
22
+ * //=> 1330512305
23
+ */
24
+ function getUnixTime(date) {
25
+ return Math.trunc(+(0, _index.toDate)(date) / 1000);
26
+ }
workers1/auto3d/node_modules/date-fns/getUnixTime.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { toDate } from "./toDate.mjs";
2
+
3
+ /**
4
+ * @name getUnixTime
5
+ * @category Timestamp Helpers
6
+ * @summary Get the seconds timestamp of the given date.
7
+ *
8
+ * @description
9
+ * Get the seconds timestamp of the given date.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The given date
14
+ *
15
+ * @returns The timestamp
16
+ *
17
+ * @example
18
+ * // Get the timestamp of 29 February 2012 11:45:05 CET:
19
+ * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))
20
+ * //=> 1330512305
21
+ */
22
+ export function getUnixTime(date) {
23
+ return Math.trunc(+toDate(date) / 1000);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default getUnixTime;
workers1/auto3d/node_modules/date-fns/getWeek.d.mts ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type {
2
+ FirstWeekContainsDateOptions,
3
+ LocalizedOptions,
4
+ WeekOptions,
5
+ } from "./types.js";
6
+ /**
7
+ * The {@link getWeek} function options.
8
+ */
9
+ export interface GetWeekOptions
10
+ extends LocalizedOptions<"options">,
11
+ WeekOptions,
12
+ FirstWeekContainsDateOptions {}
13
+ /**
14
+ * @name getWeek
15
+ * @category Week Helpers
16
+ * @summary Get the local week index of the given date.
17
+ *
18
+ * @description
19
+ * Get the local week index of the given date.
20
+ * The exact calculation depends on the values of
21
+ * `options.weekStartsOn` (which is the index of the first day of the week)
22
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
23
+ * the first week of the week-numbering year)
24
+ *
25
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
26
+ *
27
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
28
+ *
29
+ * @param date - The given date
30
+ * @param options - An object with options
31
+ *
32
+ * @returns The week
33
+ *
34
+ * @example
35
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
36
+ * const result = getWeek(new Date(2005, 0, 2))
37
+ * //=> 2
38
+ *
39
+ * @example
40
+ * // Which week of the local week numbering year is 2 January 2005,
41
+ * // if Monday is the first day of the week,
42
+ * // and the first week of the year always contains 4 January?
43
+ * const result = getWeek(new Date(2005, 0, 2), {
44
+ * weekStartsOn: 1,
45
+ * firstWeekContainsDate: 4
46
+ * })
47
+ * //=> 53
48
+ */
49
+ export declare function getWeek<DateType extends Date>(
50
+ date: DateType | number | string,
51
+ options?: GetWeekOptions,
52
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeek.d.ts ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type {
2
+ FirstWeekContainsDateOptions,
3
+ LocalizedOptions,
4
+ WeekOptions,
5
+ } from "./types.js";
6
+ /**
7
+ * The {@link getWeek} function options.
8
+ */
9
+ export interface GetWeekOptions
10
+ extends LocalizedOptions<"options">,
11
+ WeekOptions,
12
+ FirstWeekContainsDateOptions {}
13
+ /**
14
+ * @name getWeek
15
+ * @category Week Helpers
16
+ * @summary Get the local week index of the given date.
17
+ *
18
+ * @description
19
+ * Get the local week index of the given date.
20
+ * The exact calculation depends on the values of
21
+ * `options.weekStartsOn` (which is the index of the first day of the week)
22
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
23
+ * the first week of the week-numbering year)
24
+ *
25
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
26
+ *
27
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
28
+ *
29
+ * @param date - The given date
30
+ * @param options - An object with options
31
+ *
32
+ * @returns The week
33
+ *
34
+ * @example
35
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
36
+ * const result = getWeek(new Date(2005, 0, 2))
37
+ * //=> 2
38
+ *
39
+ * @example
40
+ * // Which week of the local week numbering year is 2 January 2005,
41
+ * // if Monday is the first day of the week,
42
+ * // and the first week of the year always contains 4 January?
43
+ * const result = getWeek(new Date(2005, 0, 2), {
44
+ * weekStartsOn: 1,
45
+ * firstWeekContainsDate: 4
46
+ * })
47
+ * //=> 53
48
+ */
49
+ export declare function getWeek<DateType extends Date>(
50
+ date: DateType | number | string,
51
+ options?: GetWeekOptions,
52
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeek.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getWeek = getWeek;
3
+ var _index = require("./constants.js");
4
+ var _index2 = require("./startOfWeek.js");
5
+ var _index3 = require("./startOfWeekYear.js");
6
+ var _index4 = require("./toDate.js");
7
+
8
+ /**
9
+ * The {@link getWeek} function options.
10
+ */
11
+
12
+ /**
13
+ * @name getWeek
14
+ * @category Week Helpers
15
+ * @summary Get the local week index of the given date.
16
+ *
17
+ * @description
18
+ * Get the local week index of the given date.
19
+ * The exact calculation depends on the values of
20
+ * `options.weekStartsOn` (which is the index of the first day of the week)
21
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
22
+ * the first week of the week-numbering year)
23
+ *
24
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
25
+ *
26
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
27
+ *
28
+ * @param date - The given date
29
+ * @param options - An object with options
30
+ *
31
+ * @returns The week
32
+ *
33
+ * @example
34
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
35
+ * const result = getWeek(new Date(2005, 0, 2))
36
+ * //=> 2
37
+ *
38
+ * @example
39
+ * // Which week of the local week numbering year is 2 January 2005,
40
+ * // if Monday is the first day of the week,
41
+ * // and the first week of the year always contains 4 January?
42
+ * const result = getWeek(new Date(2005, 0, 2), {
43
+ * weekStartsOn: 1,
44
+ * firstWeekContainsDate: 4
45
+ * })
46
+ * //=> 53
47
+ */
48
+
49
+ function getWeek(date, options) {
50
+ const _date = (0, _index4.toDate)(date);
51
+ const diff =
52
+ +(0, _index2.startOfWeek)(_date, options) -
53
+ +(0, _index3.startOfWeekYear)(_date, options);
54
+
55
+ // Round the number of weeks to the nearest integer because the number of
56
+ // milliseconds in a week is not constant (e.g. it's different in the week of
57
+ // the daylight saving time clock shift).
58
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
59
+ }
workers1/auto3d/node_modules/date-fns/getWeek.mjs ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { millisecondsInWeek } from "./constants.mjs";
2
+ import { startOfWeek } from "./startOfWeek.mjs";
3
+ import { startOfWeekYear } from "./startOfWeekYear.mjs";
4
+ import { toDate } from "./toDate.mjs";
5
+
6
+ /**
7
+ * The {@link getWeek} function options.
8
+ */
9
+
10
+ /**
11
+ * @name getWeek
12
+ * @category Week Helpers
13
+ * @summary Get the local week index of the given date.
14
+ *
15
+ * @description
16
+ * Get the local week index of the given date.
17
+ * The exact calculation depends on the values of
18
+ * `options.weekStartsOn` (which is the index of the first day of the week)
19
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
+ * the first week of the week-numbering year)
21
+ *
22
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
+ *
24
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
25
+ *
26
+ * @param date - The given date
27
+ * @param options - An object with options
28
+ *
29
+ * @returns The week
30
+ *
31
+ * @example
32
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
33
+ * const result = getWeek(new Date(2005, 0, 2))
34
+ * //=> 2
35
+ *
36
+ * @example
37
+ * // Which week of the local week numbering year is 2 January 2005,
38
+ * // if Monday is the first day of the week,
39
+ * // and the first week of the year always contains 4 January?
40
+ * const result = getWeek(new Date(2005, 0, 2), {
41
+ * weekStartsOn: 1,
42
+ * firstWeekContainsDate: 4
43
+ * })
44
+ * //=> 53
45
+ */
46
+
47
+ export function getWeek(date, options) {
48
+ const _date = toDate(date);
49
+ const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
50
+
51
+ // Round the number of weeks to the nearest integer because the number of
52
+ // milliseconds in a week is not constant (e.g. it's different in the week of
53
+ // the daylight saving time clock shift).
54
+ return Math.round(diff / millisecondsInWeek) + 1;
55
+ }
56
+
57
+ // Fallback for modularized imports:
58
+ export default getWeek;
workers1/auto3d/node_modules/date-fns/getWeekOfMonth.d.mts ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocalizedOptions, WeekOptions } from "./types.js";
2
+ /**
3
+ * The {@link getWeekOfMonth} function options.
4
+ */
5
+ export interface GetWeekOfMonthOptions
6
+ extends LocalizedOptions<"options">,
7
+ WeekOptions {}
8
+ /**
9
+ * @name getWeekOfMonth
10
+ * @category Week Helpers
11
+ * @summary Get the week of the month of the given date.
12
+ *
13
+ * @description
14
+ * Get the week of the month of the given date.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ *
18
+ * @param date - The given date
19
+ * @param options - An object with options.
20
+ *
21
+ * @returns The week of month
22
+ *
23
+ * @example
24
+ * // Which week of the month is 9 November 2017?
25
+ * const result = getWeekOfMonth(new Date(2017, 10, 9))
26
+ * //=> 2
27
+ */
28
+ export declare function getWeekOfMonth<DateType extends Date>(
29
+ date: DateType | number | string,
30
+ options?: GetWeekOfMonthOptions,
31
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeekOfMonth.d.ts ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocalizedOptions, WeekOptions } from "./types.js";
2
+ /**
3
+ * The {@link getWeekOfMonth} function options.
4
+ */
5
+ export interface GetWeekOfMonthOptions
6
+ extends LocalizedOptions<"options">,
7
+ WeekOptions {}
8
+ /**
9
+ * @name getWeekOfMonth
10
+ * @category Week Helpers
11
+ * @summary Get the week of the month of the given date.
12
+ *
13
+ * @description
14
+ * Get the week of the month of the given date.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ *
18
+ * @param date - The given date
19
+ * @param options - An object with options.
20
+ *
21
+ * @returns The week of month
22
+ *
23
+ * @example
24
+ * // Which week of the month is 9 November 2017?
25
+ * const result = getWeekOfMonth(new Date(2017, 10, 9))
26
+ * //=> 2
27
+ */
28
+ export declare function getWeekOfMonth<DateType extends Date>(
29
+ date: DateType | number | string,
30
+ options?: GetWeekOfMonthOptions,
31
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeekOfMonth.js ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getWeekOfMonth = getWeekOfMonth;
3
+ var _index = require("./getDate.js");
4
+ var _index2 = require("./getDay.js");
5
+ var _index3 = require("./startOfMonth.js");
6
+
7
+ var _index4 = require("./_lib/defaultOptions.js");
8
+
9
+ /**
10
+ * The {@link getWeekOfMonth} function options.
11
+ */
12
+
13
+ /**
14
+ * @name getWeekOfMonth
15
+ * @category Week Helpers
16
+ * @summary Get the week of the month of the given date.
17
+ *
18
+ * @description
19
+ * Get the week of the month of the given date.
20
+ *
21
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
22
+ *
23
+ * @param date - The given date
24
+ * @param options - An object with options.
25
+ *
26
+ * @returns The week of month
27
+ *
28
+ * @example
29
+ * // Which week of the month is 9 November 2017?
30
+ * const result = getWeekOfMonth(new Date(2017, 10, 9))
31
+ * //=> 2
32
+ */
33
+ function getWeekOfMonth(date, options) {
34
+ const defaultOptions = (0, _index4.getDefaultOptions)();
35
+ const weekStartsOn =
36
+ options?.weekStartsOn ??
37
+ options?.locale?.options?.weekStartsOn ??
38
+ defaultOptions.weekStartsOn ??
39
+ defaultOptions.locale?.options?.weekStartsOn ??
40
+ 0;
41
+
42
+ const currentDayOfMonth = (0, _index.getDate)(date);
43
+ if (isNaN(currentDayOfMonth)) return NaN;
44
+
45
+ const startWeekDay = (0, _index2.getDay)((0, _index3.startOfMonth)(date));
46
+
47
+ let lastDayOfFirstWeek = weekStartsOn - startWeekDay;
48
+ if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7;
49
+
50
+ const remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek;
51
+ return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1;
52
+ }
workers1/auto3d/node_modules/date-fns/getWeekOfMonth.mjs ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { getDate } from "./getDate.mjs";
2
+ import { getDay } from "./getDay.mjs";
3
+ import { startOfMonth } from "./startOfMonth.mjs";
4
+ import { getDefaultOptions } from "./_lib/defaultOptions.mjs";
5
+
6
+ /**
7
+ * The {@link getWeekOfMonth} function options.
8
+ */
9
+
10
+ /**
11
+ * @name getWeekOfMonth
12
+ * @category Week Helpers
13
+ * @summary Get the week of the month of the given date.
14
+ *
15
+ * @description
16
+ * Get the week of the month of the given date.
17
+ *
18
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
19
+ *
20
+ * @param date - The given date
21
+ * @param options - An object with options.
22
+ *
23
+ * @returns The week of month
24
+ *
25
+ * @example
26
+ * // Which week of the month is 9 November 2017?
27
+ * const result = getWeekOfMonth(new Date(2017, 10, 9))
28
+ * //=> 2
29
+ */
30
+ export function getWeekOfMonth(date, options) {
31
+ const defaultOptions = getDefaultOptions();
32
+ const weekStartsOn =
33
+ options?.weekStartsOn ??
34
+ options?.locale?.options?.weekStartsOn ??
35
+ defaultOptions.weekStartsOn ??
36
+ defaultOptions.locale?.options?.weekStartsOn ??
37
+ 0;
38
+
39
+ const currentDayOfMonth = getDate(date);
40
+ if (isNaN(currentDayOfMonth)) return NaN;
41
+
42
+ const startWeekDay = getDay(startOfMonth(date));
43
+
44
+ let lastDayOfFirstWeek = weekStartsOn - startWeekDay;
45
+ if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7;
46
+
47
+ const remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek;
48
+ return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1;
49
+ }
50
+
51
+ // Fallback for modularized imports:
52
+ export default getWeekOfMonth;
workers1/auto3d/node_modules/date-fns/getWeekYear.d.mts ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type {
2
+ FirstWeekContainsDateOptions,
3
+ LocalizedOptions,
4
+ WeekOptions,
5
+ } from "./types.js";
6
+ /**
7
+ * The {@link getWeekYear} function options.
8
+ */
9
+ export interface GetWeekYearOptions
10
+ extends LocalizedOptions<"options">,
11
+ WeekOptions,
12
+ FirstWeekContainsDateOptions {}
13
+ /**
14
+ * @name getWeekYear
15
+ * @category Week-Numbering Year Helpers
16
+ * @summary Get the local week-numbering year of the given date.
17
+ *
18
+ * @description
19
+ * Get the local week-numbering year of the given date.
20
+ * The exact calculation depends on the values of
21
+ * `options.weekStartsOn` (which is the index of the first day of the week)
22
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
23
+ * the first week of the week-numbering year)
24
+ *
25
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
26
+ *
27
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
28
+ *
29
+ * @param date - The given date
30
+ * @param options - An object with options.
31
+ *
32
+ * @returns The local week-numbering year
33
+ *
34
+ * @example
35
+ * // Which week numbering year is 26 December 2004 with the default settings?
36
+ * const result = getWeekYear(new Date(2004, 11, 26))
37
+ * //=> 2005
38
+ *
39
+ * @example
40
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
41
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
42
+ * //=> 2004
43
+ *
44
+ * @example
45
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
46
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
47
+ * //=> 2004
48
+ */
49
+ export declare function getWeekYear<DateType extends Date>(
50
+ date: DateType | number | string,
51
+ options?: GetWeekYearOptions,
52
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeekYear.d.ts ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type {
2
+ FirstWeekContainsDateOptions,
3
+ LocalizedOptions,
4
+ WeekOptions,
5
+ } from "./types.js";
6
+ /**
7
+ * The {@link getWeekYear} function options.
8
+ */
9
+ export interface GetWeekYearOptions
10
+ extends LocalizedOptions<"options">,
11
+ WeekOptions,
12
+ FirstWeekContainsDateOptions {}
13
+ /**
14
+ * @name getWeekYear
15
+ * @category Week-Numbering Year Helpers
16
+ * @summary Get the local week-numbering year of the given date.
17
+ *
18
+ * @description
19
+ * Get the local week-numbering year of the given date.
20
+ * The exact calculation depends on the values of
21
+ * `options.weekStartsOn` (which is the index of the first day of the week)
22
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
23
+ * the first week of the week-numbering year)
24
+ *
25
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
26
+ *
27
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
28
+ *
29
+ * @param date - The given date
30
+ * @param options - An object with options.
31
+ *
32
+ * @returns The local week-numbering year
33
+ *
34
+ * @example
35
+ * // Which week numbering year is 26 December 2004 with the default settings?
36
+ * const result = getWeekYear(new Date(2004, 11, 26))
37
+ * //=> 2005
38
+ *
39
+ * @example
40
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
41
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
42
+ * //=> 2004
43
+ *
44
+ * @example
45
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
46
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
47
+ * //=> 2004
48
+ */
49
+ export declare function getWeekYear<DateType extends Date>(
50
+ date: DateType | number | string,
51
+ options?: GetWeekYearOptions,
52
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeekYear.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getWeekYear = getWeekYear;
3
+ var _index = require("./constructFrom.js");
4
+ var _index2 = require("./startOfWeek.js");
5
+ var _index3 = require("./toDate.js");
6
+
7
+ var _index4 = require("./_lib/defaultOptions.js");
8
+
9
+ /**
10
+ * The {@link getWeekYear} function options.
11
+ */
12
+
13
+ /**
14
+ * @name getWeekYear
15
+ * @category Week-Numbering Year Helpers
16
+ * @summary Get the local week-numbering year of the given date.
17
+ *
18
+ * @description
19
+ * Get the local week-numbering year of the given date.
20
+ * The exact calculation depends on the values of
21
+ * `options.weekStartsOn` (which is the index of the first day of the week)
22
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
23
+ * the first week of the week-numbering year)
24
+ *
25
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
26
+ *
27
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
28
+ *
29
+ * @param date - The given date
30
+ * @param options - An object with options.
31
+ *
32
+ * @returns The local week-numbering year
33
+ *
34
+ * @example
35
+ * // Which week numbering year is 26 December 2004 with the default settings?
36
+ * const result = getWeekYear(new Date(2004, 11, 26))
37
+ * //=> 2005
38
+ *
39
+ * @example
40
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
41
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
42
+ * //=> 2004
43
+ *
44
+ * @example
45
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
46
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
47
+ * //=> 2004
48
+ */
49
+ function getWeekYear(date, options) {
50
+ const _date = (0, _index3.toDate)(date);
51
+ const year = _date.getFullYear();
52
+
53
+ const defaultOptions = (0, _index4.getDefaultOptions)();
54
+ const firstWeekContainsDate =
55
+ options?.firstWeekContainsDate ??
56
+ options?.locale?.options?.firstWeekContainsDate ??
57
+ defaultOptions.firstWeekContainsDate ??
58
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
59
+ 1;
60
+
61
+ const firstWeekOfNextYear = (0, _index.constructFrom)(date, 0);
62
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
63
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
64
+ const startOfNextYear = (0, _index2.startOfWeek)(
65
+ firstWeekOfNextYear,
66
+ options,
67
+ );
68
+
69
+ const firstWeekOfThisYear = (0, _index.constructFrom)(date, 0);
70
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
71
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
72
+ const startOfThisYear = (0, _index2.startOfWeek)(
73
+ firstWeekOfThisYear,
74
+ options,
75
+ );
76
+
77
+ if (_date.getTime() >= startOfNextYear.getTime()) {
78
+ return year + 1;
79
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
80
+ return year;
81
+ } else {
82
+ return year - 1;
83
+ }
84
+ }
workers1/auto3d/node_modules/date-fns/getWeekYear.mjs ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { constructFrom } from "./constructFrom.mjs";
2
+ import { startOfWeek } from "./startOfWeek.mjs";
3
+ import { toDate } from "./toDate.mjs";
4
+ import { getDefaultOptions } from "./_lib/defaultOptions.mjs";
5
+
6
+ /**
7
+ * The {@link getWeekYear} function options.
8
+ */
9
+
10
+ /**
11
+ * @name getWeekYear
12
+ * @category Week-Numbering Year Helpers
13
+ * @summary Get the local week-numbering year of the given date.
14
+ *
15
+ * @description
16
+ * Get the local week-numbering year of the given date.
17
+ * The exact calculation depends on the values of
18
+ * `options.weekStartsOn` (which is the index of the first day of the week)
19
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
+ * the first week of the week-numbering year)
21
+ *
22
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
+ *
24
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
25
+ *
26
+ * @param date - The given date
27
+ * @param options - An object with options.
28
+ *
29
+ * @returns The local week-numbering year
30
+ *
31
+ * @example
32
+ * // Which week numbering year is 26 December 2004 with the default settings?
33
+ * const result = getWeekYear(new Date(2004, 11, 26))
34
+ * //=> 2005
35
+ *
36
+ * @example
37
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
38
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
39
+ * //=> 2004
40
+ *
41
+ * @example
42
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
43
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
44
+ * //=> 2004
45
+ */
46
+ export function getWeekYear(date, options) {
47
+ const _date = toDate(date);
48
+ const year = _date.getFullYear();
49
+
50
+ const defaultOptions = getDefaultOptions();
51
+ const firstWeekContainsDate =
52
+ options?.firstWeekContainsDate ??
53
+ options?.locale?.options?.firstWeekContainsDate ??
54
+ defaultOptions.firstWeekContainsDate ??
55
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
56
+ 1;
57
+
58
+ const firstWeekOfNextYear = constructFrom(date, 0);
59
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
60
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
61
+ const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
62
+
63
+ const firstWeekOfThisYear = constructFrom(date, 0);
64
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
65
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
66
+ const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
67
+
68
+ if (_date.getTime() >= startOfNextYear.getTime()) {
69
+ return year + 1;
70
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
71
+ return year;
72
+ } else {
73
+ return year - 1;
74
+ }
75
+ }
76
+
77
+ // Fallback for modularized imports:
78
+ export default getWeekYear;
workers1/auto3d/node_modules/date-fns/getWeeksInMonth.d.mts ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocalizedOptions, WeekOptions } from "./types.js";
2
+ /**
3
+ * The {@link getWeeksInMonth} function options.
4
+ */
5
+ export interface GetWeeksInMonthOptions
6
+ extends LocalizedOptions<"options">,
7
+ WeekOptions {}
8
+ /**
9
+ * @name getWeeksInMonth
10
+ * @category Week Helpers
11
+ * @summary Get the number of calendar weeks a month spans.
12
+ *
13
+ * @description
14
+ * Get the number of calendar weeks the month in the given date spans.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ *
18
+ * @param date - The given date
19
+ * @param options - An object with options.
20
+ *
21
+ * @returns The number of calendar weeks
22
+ *
23
+ * @example
24
+ * // How many calendar weeks does February 2015 span?
25
+ * const result = getWeeksInMonth(new Date(2015, 1, 8))
26
+ * //=> 4
27
+ *
28
+ * @example
29
+ * // If the week starts on Monday,
30
+ * // how many calendar weeks does July 2017 span?
31
+ * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })
32
+ * //=> 6
33
+ */
34
+ export declare function getWeeksInMonth<DateType extends Date>(
35
+ date: DateType | number | string,
36
+ options?: GetWeeksInMonthOptions,
37
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeeksInMonth.d.ts ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocalizedOptions, WeekOptions } from "./types.js";
2
+ /**
3
+ * The {@link getWeeksInMonth} function options.
4
+ */
5
+ export interface GetWeeksInMonthOptions
6
+ extends LocalizedOptions<"options">,
7
+ WeekOptions {}
8
+ /**
9
+ * @name getWeeksInMonth
10
+ * @category Week Helpers
11
+ * @summary Get the number of calendar weeks a month spans.
12
+ *
13
+ * @description
14
+ * Get the number of calendar weeks the month in the given date spans.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ *
18
+ * @param date - The given date
19
+ * @param options - An object with options.
20
+ *
21
+ * @returns The number of calendar weeks
22
+ *
23
+ * @example
24
+ * // How many calendar weeks does February 2015 span?
25
+ * const result = getWeeksInMonth(new Date(2015, 1, 8))
26
+ * //=> 4
27
+ *
28
+ * @example
29
+ * // If the week starts on Monday,
30
+ * // how many calendar weeks does July 2017 span?
31
+ * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })
32
+ * //=> 6
33
+ */
34
+ export declare function getWeeksInMonth<DateType extends Date>(
35
+ date: DateType | number | string,
36
+ options?: GetWeeksInMonthOptions,
37
+ ): number;
workers1/auto3d/node_modules/date-fns/getWeeksInMonth.js ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getWeeksInMonth = getWeeksInMonth;
3
+ var _index = require("./differenceInCalendarWeeks.js");
4
+ var _index2 = require("./lastDayOfMonth.js");
5
+ var _index3 = require("./startOfMonth.js");
6
+
7
+ /**
8
+ * The {@link getWeeksInMonth} function options.
9
+ */
10
+
11
+ /**
12
+ * @name getWeeksInMonth
13
+ * @category Week Helpers
14
+ * @summary Get the number of calendar weeks a month spans.
15
+ *
16
+ * @description
17
+ * Get the number of calendar weeks the month in the given date spans.
18
+ *
19
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
20
+ *
21
+ * @param date - The given date
22
+ * @param options - An object with options.
23
+ *
24
+ * @returns The number of calendar weeks
25
+ *
26
+ * @example
27
+ * // How many calendar weeks does February 2015 span?
28
+ * const result = getWeeksInMonth(new Date(2015, 1, 8))
29
+ * //=> 4
30
+ *
31
+ * @example
32
+ * // If the week starts on Monday,
33
+ * // how many calendar weeks does July 2017 span?
34
+ * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })
35
+ * //=> 6
36
+ */
37
+ function getWeeksInMonth(date, options) {
38
+ return (
39
+ (0, _index.differenceInCalendarWeeks)(
40
+ (0, _index2.lastDayOfMonth)(date),
41
+ (0, _index3.startOfMonth)(date),
42
+ options,
43
+ ) + 1
44
+ );
45
+ }
workers1/auto3d/node_modules/date-fns/getWeeksInMonth.mjs ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { differenceInCalendarWeeks } from "./differenceInCalendarWeeks.mjs";
2
+ import { lastDayOfMonth } from "./lastDayOfMonth.mjs";
3
+ import { startOfMonth } from "./startOfMonth.mjs";
4
+
5
+ /**
6
+ * The {@link getWeeksInMonth} function options.
7
+ */
8
+
9
+ /**
10
+ * @name getWeeksInMonth
11
+ * @category Week Helpers
12
+ * @summary Get the number of calendar weeks a month spans.
13
+ *
14
+ * @description
15
+ * Get the number of calendar weeks the month in the given date spans.
16
+ *
17
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
18
+ *
19
+ * @param date - The given date
20
+ * @param options - An object with options.
21
+ *
22
+ * @returns The number of calendar weeks
23
+ *
24
+ * @example
25
+ * // How many calendar weeks does February 2015 span?
26
+ * const result = getWeeksInMonth(new Date(2015, 1, 8))
27
+ * //=> 4
28
+ *
29
+ * @example
30
+ * // If the week starts on Monday,
31
+ * // how many calendar weeks does July 2017 span?
32
+ * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })
33
+ * //=> 6
34
+ */
35
+ export function getWeeksInMonth(date, options) {
36
+ return (
37
+ differenceInCalendarWeeks(
38
+ lastDayOfMonth(date),
39
+ startOfMonth(date),
40
+ options,
41
+ ) + 1
42
+ );
43
+ }
44
+
45
+ // Fallback for modularized imports:
46
+ export default getWeeksInMonth;
workers1/auto3d/node_modules/date-fns/getYear.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getYear
3
+ * @category Year Helpers
4
+ * @summary Get the year of the given date.
5
+ *
6
+ * @description
7
+ * Get the year of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The year
14
+ *
15
+ * @example
16
+ * // Which year is 2 July 2014?
17
+ * const result = getYear(new Date(2014, 6, 2))
18
+ * //=> 2014
19
+ */
20
+ export declare function getYear<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getYear.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name getYear
3
+ * @category Year Helpers
4
+ * @summary Get the year of the given date.
5
+ *
6
+ * @description
7
+ * Get the year of the given date.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The given date
12
+ *
13
+ * @returns The year
14
+ *
15
+ * @example
16
+ * // Which year is 2 July 2014?
17
+ * const result = getYear(new Date(2014, 6, 2))
18
+ * //=> 2014
19
+ */
20
+ export declare function getYear<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): number;
workers1/auto3d/node_modules/date-fns/getYear.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.getYear = getYear;
3
+ var _index = require("./toDate.js");
4
+
5
+ /**
6
+ * @name getYear
7
+ * @category Year Helpers
8
+ * @summary Get the year of the given date.
9
+ *
10
+ * @description
11
+ * Get the year of the given date.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The given date
16
+ *
17
+ * @returns The year
18
+ *
19
+ * @example
20
+ * // Which year is 2 July 2014?
21
+ * const result = getYear(new Date(2014, 6, 2))
22
+ * //=> 2014
23
+ */
24
+ function getYear(date) {
25
+ return (0, _index.toDate)(date).getFullYear();
26
+ }
workers1/auto3d/node_modules/date-fns/getYear.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { toDate } from "./toDate.mjs";
2
+
3
+ /**
4
+ * @name getYear
5
+ * @category Year Helpers
6
+ * @summary Get the year of the given date.
7
+ *
8
+ * @description
9
+ * Get the year of the given date.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The given date
14
+ *
15
+ * @returns The year
16
+ *
17
+ * @example
18
+ * // Which year is 2 July 2014?
19
+ * const result = getYear(new Date(2014, 6, 2))
20
+ * //=> 2014
21
+ */
22
+ export function getYear(date) {
23
+ return toDate(date).getFullYear();
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default getYear;
workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.d.mts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToMilliseconds
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to milliseconds.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of milliseconds.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted to milliseconds
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to milliseconds:
17
+ * const result = hoursToMilliseconds(2)
18
+ * //=> 7200000
19
+ */
20
+ export declare function hoursToMilliseconds(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToMilliseconds
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to milliseconds.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of milliseconds.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted to milliseconds
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to milliseconds:
17
+ * const result = hoursToMilliseconds(2)
18
+ * //=> 7200000
19
+ */
20
+ export declare function hoursToMilliseconds(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.hoursToMilliseconds = hoursToMilliseconds;
3
+ var _index = require("./constants.js");
4
+
5
+ /**
6
+ * @name hoursToMilliseconds
7
+ * @category Conversion Helpers
8
+ * @summary Convert hours to milliseconds.
9
+ *
10
+ * @description
11
+ * Convert a number of hours to a full number of milliseconds.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param hours - number of hours to be converted
16
+ *
17
+ * @returns The number of hours converted to milliseconds
18
+ *
19
+ * @example
20
+ * // Convert 2 hours to milliseconds:
21
+ * const result = hoursToMilliseconds(2)
22
+ * //=> 7200000
23
+ */
24
+ function hoursToMilliseconds(hours) {
25
+ return Math.trunc(hours * _index.millisecondsInHour);
26
+ }
workers1/auto3d/node_modules/date-fns/hoursToMilliseconds.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { millisecondsInHour } from "./constants.mjs";
2
+
3
+ /**
4
+ * @name hoursToMilliseconds
5
+ * @category Conversion Helpers
6
+ * @summary Convert hours to milliseconds.
7
+ *
8
+ * @description
9
+ * Convert a number of hours to a full number of milliseconds.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param hours - number of hours to be converted
14
+ *
15
+ * @returns The number of hours converted to milliseconds
16
+ *
17
+ * @example
18
+ * // Convert 2 hours to milliseconds:
19
+ * const result = hoursToMilliseconds(2)
20
+ * //=> 7200000
21
+ */
22
+ export function hoursToMilliseconds(hours) {
23
+ return Math.trunc(hours * millisecondsInHour);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default hoursToMilliseconds;
workers1/auto3d/node_modules/date-fns/hoursToMinutes.d.mts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToMinutes
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to minutes.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of minutes.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted in minutes
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to minutes:
17
+ * const result = hoursToMinutes(2)
18
+ * //=> 120
19
+ */
20
+ export declare function hoursToMinutes(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToMinutes.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToMinutes
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to minutes.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of minutes.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted in minutes
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to minutes:
17
+ * const result = hoursToMinutes(2)
18
+ * //=> 120
19
+ */
20
+ export declare function hoursToMinutes(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToMinutes.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.hoursToMinutes = hoursToMinutes;
3
+ var _index = require("./constants.js");
4
+
5
+ /**
6
+ * @name hoursToMinutes
7
+ * @category Conversion Helpers
8
+ * @summary Convert hours to minutes.
9
+ *
10
+ * @description
11
+ * Convert a number of hours to a full number of minutes.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param hours - number of hours to be converted
16
+ *
17
+ * @returns The number of hours converted in minutes
18
+ *
19
+ * @example
20
+ * // Convert 2 hours to minutes:
21
+ * const result = hoursToMinutes(2)
22
+ * //=> 120
23
+ */
24
+ function hoursToMinutes(hours) {
25
+ return Math.trunc(hours * _index.minutesInHour);
26
+ }
workers1/auto3d/node_modules/date-fns/hoursToMinutes.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { minutesInHour } from "./constants.mjs";
2
+
3
+ /**
4
+ * @name hoursToMinutes
5
+ * @category Conversion Helpers
6
+ * @summary Convert hours to minutes.
7
+ *
8
+ * @description
9
+ * Convert a number of hours to a full number of minutes.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param hours - number of hours to be converted
14
+ *
15
+ * @returns The number of hours converted in minutes
16
+ *
17
+ * @example
18
+ * // Convert 2 hours to minutes:
19
+ * const result = hoursToMinutes(2)
20
+ * //=> 120
21
+ */
22
+ export function hoursToMinutes(hours) {
23
+ return Math.trunc(hours * minutesInHour);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default hoursToMinutes;
workers1/auto3d/node_modules/date-fns/hoursToSeconds.d.mts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToSeconds
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to seconds.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of seconds.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - The number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted in seconds
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to seconds:
17
+ * const result = hoursToSeconds(2)
18
+ * //=> 7200
19
+ */
20
+ export declare function hoursToSeconds(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToSeconds.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name hoursToSeconds
3
+ * @category Conversion Helpers
4
+ * @summary Convert hours to seconds.
5
+ *
6
+ * @description
7
+ * Convert a number of hours to a full number of seconds.
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param hours - The number of hours to be converted
12
+ *
13
+ * @returns The number of hours converted in seconds
14
+ *
15
+ * @example
16
+ * // Convert 2 hours to seconds:
17
+ * const result = hoursToSeconds(2)
18
+ * //=> 7200
19
+ */
20
+ export declare function hoursToSeconds(hours: number): number;
workers1/auto3d/node_modules/date-fns/hoursToSeconds.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.hoursToSeconds = hoursToSeconds;
3
+ var _index = require("./constants.js");
4
+
5
+ /**
6
+ * @name hoursToSeconds
7
+ * @category Conversion Helpers
8
+ * @summary Convert hours to seconds.
9
+ *
10
+ * @description
11
+ * Convert a number of hours to a full number of seconds.
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param hours - The number of hours to be converted
16
+ *
17
+ * @returns The number of hours converted in seconds
18
+ *
19
+ * @example
20
+ * // Convert 2 hours to seconds:
21
+ * const result = hoursToSeconds(2)
22
+ * //=> 7200
23
+ */
24
+ function hoursToSeconds(hours) {
25
+ return Math.trunc(hours * _index.secondsInHour);
26
+ }
workers1/auto3d/node_modules/date-fns/hoursToSeconds.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { secondsInHour } from "./constants.mjs";
2
+
3
+ /**
4
+ * @name hoursToSeconds
5
+ * @category Conversion Helpers
6
+ * @summary Convert hours to seconds.
7
+ *
8
+ * @description
9
+ * Convert a number of hours to a full number of seconds.
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param hours - The number of hours to be converted
14
+ *
15
+ * @returns The number of hours converted in seconds
16
+ *
17
+ * @example
18
+ * // Convert 2 hours to seconds:
19
+ * const result = hoursToSeconds(2)
20
+ * //=> 7200
21
+ */
22
+ export function hoursToSeconds(hours) {
23
+ return Math.trunc(hours * secondsInHour);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default hoursToSeconds;
workers1/auto3d/node_modules/date-fns/index.d.mts ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export * from "./add.js";
2
+ export * from "./addBusinessDays.js";
3
+ export * from "./addDays.js";
4
+ export * from "./addHours.js";
5
+ export * from "./addISOWeekYears.js";
6
+ export * from "./addMilliseconds.js";
7
+ export * from "./addMinutes.js";
8
+ export * from "./addMonths.js";
9
+ export * from "./addQuarters.js";
10
+ export * from "./addSeconds.js";
11
+ export * from "./addWeeks.js";
12
+ export * from "./addYears.js";
13
+ export * from "./areIntervalsOverlapping.js";
14
+ export * from "./clamp.js";
15
+ export * from "./closestIndexTo.js";
16
+ export * from "./closestTo.js";
17
+ export * from "./compareAsc.js";
18
+ export * from "./compareDesc.js";
19
+ export * from "./constructFrom.js";
20
+ export * from "./constructNow.js";
21
+ export * from "./daysToWeeks.js";
22
+ export * from "./differenceInBusinessDays.js";
23
+ export * from "./differenceInCalendarDays.js";
24
+ export * from "./differenceInCalendarISOWeekYears.js";
25
+ export * from "./differenceInCalendarISOWeeks.js";
26
+ export * from "./differenceInCalendarMonths.js";
27
+ export * from "./differenceInCalendarQuarters.js";
28
+ export * from "./differenceInCalendarWeeks.js";
29
+ export * from "./differenceInCalendarYears.js";
30
+ export * from "./differenceInDays.js";
31
+ export * from "./differenceInHours.js";
32
+ export * from "./differenceInISOWeekYears.js";
33
+ export * from "./differenceInMilliseconds.js";
34
+ export * from "./differenceInMinutes.js";
35
+ export * from "./differenceInMonths.js";
36
+ export * from "./differenceInQuarters.js";
37
+ export * from "./differenceInSeconds.js";
38
+ export * from "./differenceInWeeks.js";
39
+ export * from "./differenceInYears.js";
40
+ export * from "./eachDayOfInterval.js";
41
+ export * from "./eachHourOfInterval.js";
42
+ export * from "./eachMinuteOfInterval.js";
43
+ export * from "./eachMonthOfInterval.js";
44
+ export * from "./eachQuarterOfInterval.js";
45
+ export * from "./eachWeekOfInterval.js";
46
+ export * from "./eachWeekendOfInterval.js";
47
+ export * from "./eachWeekendOfMonth.js";
48
+ export * from "./eachWeekendOfYear.js";
49
+ export * from "./eachYearOfInterval.js";
50
+ export * from "./endOfDay.js";
51
+ export * from "./endOfDecade.js";
52
+ export * from "./endOfHour.js";
53
+ export * from "./endOfISOWeek.js";
54
+ export * from "./endOfISOWeekYear.js";
55
+ export * from "./endOfMinute.js";
56
+ export * from "./endOfMonth.js";
57
+ export * from "./endOfQuarter.js";
58
+ export * from "./endOfSecond.js";
59
+ export * from "./endOfToday.js";
60
+ export * from "./endOfTomorrow.js";
61
+ export * from "./endOfWeek.js";
62
+ export * from "./endOfYear.js";
63
+ export * from "./endOfYesterday.js";
64
+ export * from "./format.js";
65
+ export * from "./formatDistance.js";
66
+ export * from "./formatDistanceStrict.js";
67
+ export * from "./formatDistanceToNow.js";
68
+ export * from "./formatDistanceToNowStrict.js";
69
+ export * from "./formatDuration.js";
70
+ export * from "./formatISO.js";
71
+ export * from "./formatISO9075.js";
72
+ export * from "./formatISODuration.js";
73
+ export * from "./formatRFC3339.js";
74
+ export * from "./formatRFC7231.js";
75
+ export * from "./formatRelative.js";
76
+ export * from "./fromUnixTime.js";
77
+ export * from "./getDate.js";
78
+ export * from "./getDay.js";
79
+ export * from "./getDayOfYear.js";
80
+ export * from "./getDaysInMonth.js";
81
+ export * from "./getDaysInYear.js";
82
+ export * from "./getDecade.js";
83
+ export * from "./getDefaultOptions.js";
84
+ export * from "./getHours.js";
85
+ export * from "./getISODay.js";
86
+ export * from "./getISOWeek.js";
87
+ export * from "./getISOWeekYear.js";
88
+ export * from "./getISOWeeksInYear.js";
89
+ export * from "./getMilliseconds.js";
90
+ export * from "./getMinutes.js";
91
+ export * from "./getMonth.js";
92
+ export * from "./getOverlappingDaysInIntervals.js";
93
+ export * from "./getQuarter.js";
94
+ export * from "./getSeconds.js";
95
+ export * from "./getTime.js";
96
+ export * from "./getUnixTime.js";
97
+ export * from "./getWeek.js";
98
+ export * from "./getWeekOfMonth.js";
99
+ export * from "./getWeekYear.js";
100
+ export * from "./getWeeksInMonth.js";
101
+ export * from "./getYear.js";
102
+ export * from "./hoursToMilliseconds.js";
103
+ export * from "./hoursToMinutes.js";
104
+ export * from "./hoursToSeconds.js";
105
+ export * from "./interval.js";
106
+ export * from "./intervalToDuration.js";
107
+ export * from "./intlFormat.js";
108
+ export * from "./intlFormatDistance.js";
109
+ export * from "./isAfter.js";
110
+ export * from "./isBefore.js";
111
+ export * from "./isDate.js";
112
+ export * from "./isEqual.js";
113
+ export * from "./isExists.js";
114
+ export * from "./isFirstDayOfMonth.js";
115
+ export * from "./isFriday.js";
116
+ export * from "./isFuture.js";
117
+ export * from "./isLastDayOfMonth.js";
118
+ export * from "./isLeapYear.js";
119
+ export * from "./isMatch.js";
120
+ export * from "./isMonday.js";
121
+ export * from "./isPast.js";
122
+ export * from "./isSameDay.js";
123
+ export * from "./isSameHour.js";
124
+ export * from "./isSameISOWeek.js";
125
+ export * from "./isSameISOWeekYear.js";
126
+ export * from "./isSameMinute.js";
127
+ export * from "./isSameMonth.js";
128
+ export * from "./isSameQuarter.js";
129
+ export * from "./isSameSecond.js";
130
+ export * from "./isSameWeek.js";
131
+ export * from "./isSameYear.js";
132
+ export * from "./isSaturday.js";
133
+ export * from "./isSunday.js";
134
+ export * from "./isThisHour.js";
135
+ export * from "./isThisISOWeek.js";
136
+ export * from "./isThisMinute.js";
137
+ export * from "./isThisMonth.js";
138
+ export * from "./isThisQuarter.js";
139
+ export * from "./isThisSecond.js";
140
+ export * from "./isThisWeek.js";
141
+ export * from "./isThisYear.js";
142
+ export * from "./isThursday.js";
143
+ export * from "./isToday.js";
144
+ export * from "./isTomorrow.js";
145
+ export * from "./isTuesday.js";
146
+ export * from "./isValid.js";
147
+ export * from "./isWednesday.js";
148
+ export * from "./isWeekend.js";
149
+ export * from "./isWithinInterval.js";
150
+ export * from "./isYesterday.js";
151
+ export * from "./lastDayOfDecade.js";
152
+ export * from "./lastDayOfISOWeek.js";
153
+ export * from "./lastDayOfISOWeekYear.js";
154
+ export * from "./lastDayOfMonth.js";
155
+ export * from "./lastDayOfQuarter.js";
156
+ export * from "./lastDayOfWeek.js";
157
+ export * from "./lastDayOfYear.js";
158
+ export * from "./lightFormat.js";
159
+ export * from "./max.js";
160
+ export * from "./milliseconds.js";
161
+ export * from "./millisecondsToHours.js";
162
+ export * from "./millisecondsToMinutes.js";
163
+ export * from "./millisecondsToSeconds.js";
164
+ export * from "./min.js";
165
+ export * from "./minutesToHours.js";
166
+ export * from "./minutesToMilliseconds.js";
167
+ export * from "./minutesToSeconds.js";
168
+ export * from "./monthsToQuarters.js";
169
+ export * from "./monthsToYears.js";
170
+ export * from "./nextDay.js";
171
+ export * from "./nextFriday.js";
172
+ export * from "./nextMonday.js";
173
+ export * from "./nextSaturday.js";
174
+ export * from "./nextSunday.js";
175
+ export * from "./nextThursday.js";
176
+ export * from "./nextTuesday.js";
177
+ export * from "./nextWednesday.js";
178
+ export * from "./parse.js";
179
+ export * from "./parseISO.js";
180
+ export * from "./parseJSON.js";
181
+ export * from "./previousDay.js";
182
+ export * from "./previousFriday.js";
183
+ export * from "./previousMonday.js";
184
+ export * from "./previousSaturday.js";
185
+ export * from "./previousSunday.js";
186
+ export * from "./previousThursday.js";
187
+ export * from "./previousTuesday.js";
188
+ export * from "./previousWednesday.js";
189
+ export * from "./quartersToMonths.js";
190
+ export * from "./quartersToYears.js";
191
+ export * from "./roundToNearestHours.js";
192
+ export * from "./roundToNearestMinutes.js";
193
+ export * from "./secondsToHours.js";
194
+ export * from "./secondsToMilliseconds.js";
195
+ export * from "./secondsToMinutes.js";
196
+ export * from "./set.js";
197
+ export * from "./setDate.js";
198
+ export * from "./setDay.js";
199
+ export * from "./setDayOfYear.js";
200
+ export * from "./setDefaultOptions.js";
201
+ export * from "./setHours.js";
202
+ export * from "./setISODay.js";
203
+ export * from "./setISOWeek.js";
204
+ export * from "./setISOWeekYear.js";
205
+ export * from "./setMilliseconds.js";
206
+ export * from "./setMinutes.js";
207
+ export * from "./setMonth.js";
208
+ export * from "./setQuarter.js";
209
+ export * from "./setSeconds.js";
210
+ export * from "./setWeek.js";
211
+ export * from "./setWeekYear.js";
212
+ export * from "./setYear.js";
213
+ export * from "./startOfDay.js";
214
+ export * from "./startOfDecade.js";
215
+ export * from "./startOfHour.js";
216
+ export * from "./startOfISOWeek.js";
217
+ export * from "./startOfISOWeekYear.js";
218
+ export * from "./startOfMinute.js";
219
+ export * from "./startOfMonth.js";
220
+ export * from "./startOfQuarter.js";
221
+ export * from "./startOfSecond.js";
222
+ export * from "./startOfToday.js";
223
+ export * from "./startOfTomorrow.js";
224
+ export * from "./startOfWeek.js";
225
+ export * from "./startOfWeekYear.js";
226
+ export * from "./startOfYear.js";
227
+ export * from "./startOfYesterday.js";
228
+ export * from "./sub.js";
229
+ export * from "./subBusinessDays.js";
230
+ export * from "./subDays.js";
231
+ export * from "./subHours.js";
232
+ export * from "./subISOWeekYears.js";
233
+ export * from "./subMilliseconds.js";
234
+ export * from "./subMinutes.js";
235
+ export * from "./subMonths.js";
236
+ export * from "./subQuarters.js";
237
+ export * from "./subSeconds.js";
238
+ export * from "./subWeeks.js";
239
+ export * from "./subYears.js";
240
+ export * from "./toDate.js";
241
+ export * from "./transpose.js";
242
+ export * from "./weeksToDays.js";
243
+ export * from "./yearsToDays.js";
244
+ export * from "./yearsToMonths.js";
245
+ export * from "./yearsToQuarters.js";
246
+ export type * from "./types.js";