kaabalah 6.2.3 → 6.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,14 +110,14 @@ declare function closeSwissEph(): void;
110
110
  * Convert a local date-time (given via IANA time zone, explicit UTC offset, or auto from lat/lon)
111
111
  * into a UTC Date for Swiss Ephemeris (which expects UT).
112
112
  */
113
- type LocalDateTimeParts = {
113
+ interface LocalDateTimeParts {
114
114
  year: number;
115
115
  month: number;
116
116
  day: number;
117
117
  hour?: number;
118
118
  minute?: number;
119
119
  second?: number;
120
- };
120
+ }
121
121
  type TimeZoneOptions = {
122
122
  /**
123
123
  * IANA time zone
@@ -451,7 +451,13 @@ declare function getFirdaria(birthDate: Date, isDiurnal: boolean, targetDate?: D
451
451
  */
452
452
 
453
453
  interface BirthChartOptions {
454
- date: Date;
454
+ /**
455
+ * Local civil date-time for the chart moment.
456
+ * Prefer `LocalDateTimeParts` when the source data comes from separate
457
+ * date/time inputs so callers do not have to encode wall-clock parts into a
458
+ * browser-local `Date`.
459
+ */
460
+ date: Date | LocalDateTimeParts;
455
461
  latitude: number;
456
462
  longitude: number;
457
463
  houseSystem?: HouseSystem;
@@ -608,4 +614,4 @@ interface SolarReturnChart {
608
614
  */
609
615
  declare function getSolarReturnChart(options: SolarReturnOptions): Promise<SolarReturnChart>;
610
616
 
611
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
617
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type LocalDateTimeParts, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
@@ -110,14 +110,14 @@ declare function closeSwissEph(): void;
110
110
  * Convert a local date-time (given via IANA time zone, explicit UTC offset, or auto from lat/lon)
111
111
  * into a UTC Date for Swiss Ephemeris (which expects UT).
112
112
  */
113
- type LocalDateTimeParts = {
113
+ interface LocalDateTimeParts {
114
114
  year: number;
115
115
  month: number;
116
116
  day: number;
117
117
  hour?: number;
118
118
  minute?: number;
119
119
  second?: number;
120
- };
120
+ }
121
121
  type TimeZoneOptions = {
122
122
  /**
123
123
  * IANA time zone
@@ -451,7 +451,13 @@ declare function getFirdaria(birthDate: Date, isDiurnal: boolean, targetDate?: D
451
451
  */
452
452
 
453
453
  interface BirthChartOptions {
454
- date: Date;
454
+ /**
455
+ * Local civil date-time for the chart moment.
456
+ * Prefer `LocalDateTimeParts` when the source data comes from separate
457
+ * date/time inputs so callers do not have to encode wall-clock parts into a
458
+ * browser-local `Date`.
459
+ */
460
+ date: Date | LocalDateTimeParts;
455
461
  latitude: number;
456
462
  longitude: number;
457
463
  houseSystem?: HouseSystem;
@@ -608,4 +614,4 @@ interface SolarReturnChart {
608
614
  */
609
615
  declare function getSolarReturnChart(options: SolarReturnOptions): Promise<SolarReturnChart>;
610
616
 
611
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
617
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type LocalDateTimeParts, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
@@ -1,213 +1,213 @@
1
1
  'use strict';
2
2
 
3
- var chunk3JSPGVX3_js = require('../chunk-3JSPGVX3.js');
3
+ var chunk6O7MTBZN_js = require('../chunk-6O7MTBZN.js');
4
4
  require('../chunk-FM7WUVZV.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ASTROCARTOGRAPHY_DEFAULT_PLANETS", {
9
9
  enumerable: true,
10
- get: function () { return chunk3JSPGVX3_js.ASTROCARTOGRAPHY_DEFAULT_PLANETS; }
10
+ get: function () { return chunk6O7MTBZN_js.ASTROCARTOGRAPHY_DEFAULT_PLANETS; }
11
11
  });
12
12
  Object.defineProperty(exports, "CalcFlag", {
13
13
  enumerable: true,
14
- get: function () { return chunk3JSPGVX3_js.CalcFlag; }
14
+ get: function () { return chunk6O7MTBZN_js.CalcFlag; }
15
15
  });
16
16
  Object.defineProperty(exports, "DEFAULT_ASPECT_SPECS", {
17
17
  enumerable: true,
18
- get: function () { return chunk3JSPGVX3_js.DEFAULT_ASPECT_SPECS; }
18
+ get: function () { return chunk6O7MTBZN_js.DEFAULT_ASPECT_SPECS; }
19
19
  });
20
20
  Object.defineProperty(exports, "DOMICILE_RULERS", {
21
21
  enumerable: true,
22
- get: function () { return chunk3JSPGVX3_js.DOMICILE_RULERS; }
22
+ get: function () { return chunk6O7MTBZN_js.DOMICILE_RULERS; }
23
23
  });
24
24
  Object.defineProperty(exports, "EXALTATIONS", {
25
25
  enumerable: true,
26
- get: function () { return chunk3JSPGVX3_js.EXALTATIONS; }
26
+ get: function () { return chunk6O7MTBZN_js.EXALTATIONS; }
27
27
  });
28
28
  Object.defineProperty(exports, "HouseSystem", {
29
29
  enumerable: true,
30
- get: function () { return chunk3JSPGVX3_js.HouseSystem; }
30
+ get: function () { return chunk6O7MTBZN_js.HouseSystem; }
31
31
  });
32
32
  Object.defineProperty(exports, "PLANET_AND_NODE_NAMES", {
33
33
  enumerable: true,
34
- get: function () { return chunk3JSPGVX3_js.PLANET_AND_NODE_NAMES; }
34
+ get: function () { return chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES; }
35
35
  });
36
36
  Object.defineProperty(exports, "Planet", {
37
37
  enumerable: true,
38
- get: function () { return chunk3JSPGVX3_js.Planet; }
38
+ get: function () { return chunk6O7MTBZN_js.Planet; }
39
39
  });
40
40
  Object.defineProperty(exports, "RiseTransitFlag", {
41
41
  enumerable: true,
42
- get: function () { return chunk3JSPGVX3_js.RiseTransitFlag; }
42
+ get: function () { return chunk6O7MTBZN_js.RiseTransitFlag; }
43
43
  });
44
44
  Object.defineProperty(exports, "SIGNS", {
45
45
  enumerable: true,
46
- get: function () { return chunk3JSPGVX3_js.SIGNS; }
46
+ get: function () { return chunk6O7MTBZN_js.SIGNS; }
47
47
  });
48
48
  Object.defineProperty(exports, "SLOW_PLANETS", {
49
49
  enumerable: true,
50
- get: function () { return chunk3JSPGVX3_js.SLOW_PLANETS; }
50
+ get: function () { return chunk6O7MTBZN_js.SLOW_PLANETS; }
51
51
  });
52
52
  Object.defineProperty(exports, "VirtualNodes", {
53
53
  enumerable: true,
54
- get: function () { return chunk3JSPGVX3_js.VirtualNodes; }
54
+ get: function () { return chunk6O7MTBZN_js.VirtualNodes; }
55
55
  });
56
56
  Object.defineProperty(exports, "closeSwissEph", {
57
57
  enumerable: true,
58
- get: function () { return chunk3JSPGVX3_js.closeSwissEph; }
58
+ get: function () { return chunk6O7MTBZN_js.closeSwissEph; }
59
59
  });
60
60
  Object.defineProperty(exports, "computeAspects", {
61
61
  enumerable: true,
62
- get: function () { return chunk3JSPGVX3_js.computeAspects; }
62
+ get: function () { return chunk6O7MTBZN_js.computeAspects; }
63
63
  });
64
64
  Object.defineProperty(exports, "computeAstrocartographyMap", {
65
65
  enumerable: true,
66
- get: function () { return chunk3JSPGVX3_js.computeAstrocartographyMap; }
66
+ get: function () { return chunk6O7MTBZN_js.computeAstrocartographyMap; }
67
67
  });
68
68
  Object.defineProperty(exports, "computeEquatorialPositions", {
69
69
  enumerable: true,
70
- get: function () { return chunk3JSPGVX3_js.computeEquatorialPositions; }
70
+ get: function () { return chunk6O7MTBZN_js.computeEquatorialPositions; }
71
71
  });
72
72
  Object.defineProperty(exports, "computeGMST", {
73
73
  enumerable: true,
74
- get: function () { return chunk3JSPGVX3_js.computeGMST; }
74
+ get: function () { return chunk6O7MTBZN_js.computeGMST; }
75
75
  });
76
76
  Object.defineProperty(exports, "computeHorizonLongitude", {
77
77
  enumerable: true,
78
- get: function () { return chunk3JSPGVX3_js.computeHorizonLongitude; }
78
+ get: function () { return chunk6O7MTBZN_js.computeHorizonLongitude; }
79
79
  });
80
80
  Object.defineProperty(exports, "computeICLongitude", {
81
81
  enumerable: true,
82
- get: function () { return chunk3JSPGVX3_js.computeICLongitude; }
82
+ get: function () { return chunk6O7MTBZN_js.computeICLongitude; }
83
83
  });
84
84
  Object.defineProperty(exports, "computeMCLongitude", {
85
85
  enumerable: true,
86
- get: function () { return chunk3JSPGVX3_js.computeMCLongitude; }
86
+ get: function () { return chunk6O7MTBZN_js.computeMCLongitude; }
87
87
  });
88
88
  Object.defineProperty(exports, "computeMidpoints", {
89
89
  enumerable: true,
90
- get: function () { return chunk3JSPGVX3_js.computeMidpoints; }
90
+ get: function () { return chunk6O7MTBZN_js.computeMidpoints; }
91
91
  });
92
92
  Object.defineProperty(exports, "computeSynastryAspects", {
93
93
  enumerable: true,
94
- get: function () { return chunk3JSPGVX3_js.computeSynastryAspects; }
94
+ get: function () { return chunk6O7MTBZN_js.computeSynastryAspects; }
95
95
  });
96
96
  Object.defineProperty(exports, "computeTransitAspects", {
97
97
  enumerable: true,
98
- get: function () { return chunk3JSPGVX3_js.computeTransitAspects; }
98
+ get: function () { return chunk6O7MTBZN_js.computeTransitAspects; }
99
99
  });
100
100
  Object.defineProperty(exports, "findHouseOf", {
101
101
  enumerable: true,
102
- get: function () { return chunk3JSPGVX3_js.findHouseOf; }
102
+ get: function () { return chunk6O7MTBZN_js.findHouseOf; }
103
103
  });
104
104
  Object.defineProperty(exports, "findParansAtLatitude", {
105
105
  enumerable: true,
106
- get: function () { return chunk3JSPGVX3_js.findParansAtLatitude; }
106
+ get: function () { return chunk6O7MTBZN_js.findParansAtLatitude; }
107
107
  });
108
108
  Object.defineProperty(exports, "formatDegreeMinutes", {
109
109
  enumerable: true,
110
- get: function () { return chunk3JSPGVX3_js.formatDegreeMinutes; }
110
+ get: function () { return chunk6O7MTBZN_js.formatDegreeMinutes; }
111
111
  });
112
112
  Object.defineProperty(exports, "geographicAngularDifference", {
113
113
  enumerable: true,
114
- get: function () { return chunk3JSPGVX3_js.geographicAngularDifference; }
114
+ get: function () { return chunk6O7MTBZN_js.geographicAngularDifference; }
115
115
  });
116
116
  Object.defineProperty(exports, "getAnnualProfection", {
117
117
  enumerable: true,
118
- get: function () { return chunk3JSPGVX3_js.getAnnualProfection; }
118
+ get: function () { return chunk6O7MTBZN_js.getAnnualProfection; }
119
119
  });
120
120
  Object.defineProperty(exports, "getAspectMatch", {
121
121
  enumerable: true,
122
- get: function () { return chunk3JSPGVX3_js.getAspectMatch; }
122
+ get: function () { return chunk6O7MTBZN_js.getAspectMatch; }
123
123
  });
124
124
  Object.defineProperty(exports, "getBirthChart", {
125
125
  enumerable: true,
126
- get: function () { return chunk3JSPGVX3_js.getBirthChart; }
126
+ get: function () { return chunk6O7MTBZN_js.getBirthChart; }
127
127
  });
128
128
  Object.defineProperty(exports, "getCompositeChart", {
129
129
  enumerable: true,
130
- get: function () { return chunk3JSPGVX3_js.getCompositeChart; }
130
+ get: function () { return chunk6O7MTBZN_js.getCompositeChart; }
131
131
  });
132
132
  Object.defineProperty(exports, "getDecan", {
133
133
  enumerable: true,
134
- get: function () { return chunk3JSPGVX3_js.getDecan; }
134
+ get: function () { return chunk6O7MTBZN_js.getDecan; }
135
135
  });
136
136
  Object.defineProperty(exports, "getDetriment", {
137
137
  enumerable: true,
138
- get: function () { return chunk3JSPGVX3_js.getDetriment; }
138
+ get: function () { return chunk6O7MTBZN_js.getDetriment; }
139
139
  });
140
140
  Object.defineProperty(exports, "getDodecatemoria", {
141
141
  enumerable: true,
142
- get: function () { return chunk3JSPGVX3_js.getDodecatemoria; }
142
+ get: function () { return chunk6O7MTBZN_js.getDodecatemoria; }
143
143
  });
144
144
  Object.defineProperty(exports, "getDomicileRuler", {
145
145
  enumerable: true,
146
- get: function () { return chunk3JSPGVX3_js.getDomicileRuler; }
146
+ get: function () { return chunk6O7MTBZN_js.getDomicileRuler; }
147
147
  });
148
148
  Object.defineProperty(exports, "getEssentialDignity", {
149
149
  enumerable: true,
150
- get: function () { return chunk3JSPGVX3_js.getEssentialDignity; }
150
+ get: function () { return chunk6O7MTBZN_js.getEssentialDignity; }
151
151
  });
152
152
  Object.defineProperty(exports, "getExaltation", {
153
153
  enumerable: true,
154
- get: function () { return chunk3JSPGVX3_js.getExaltation; }
154
+ get: function () { return chunk6O7MTBZN_js.getExaltation; }
155
155
  });
156
156
  Object.defineProperty(exports, "getFall", {
157
157
  enumerable: true,
158
- get: function () { return chunk3JSPGVX3_js.getFall; }
158
+ get: function () { return chunk6O7MTBZN_js.getFall; }
159
159
  });
160
160
  Object.defineProperty(exports, "getFirdaria", {
161
161
  enumerable: true,
162
- get: function () { return chunk3JSPGVX3_js.getFirdaria; }
162
+ get: function () { return chunk6O7MTBZN_js.getFirdaria; }
163
163
  });
164
164
  Object.defineProperty(exports, "getMonthlyProfections", {
165
165
  enumerable: true,
166
- get: function () { return chunk3JSPGVX3_js.getMonthlyProfections; }
166
+ get: function () { return chunk6O7MTBZN_js.getMonthlyProfections; }
167
167
  });
168
168
  Object.defineProperty(exports, "getOppositeSign", {
169
169
  enumerable: true,
170
- get: function () { return chunk3JSPGVX3_js.getOppositeSign; }
170
+ get: function () { return chunk6O7MTBZN_js.getOppositeSign; }
171
171
  });
172
172
  Object.defineProperty(exports, "getSolarReturnChart", {
173
173
  enumerable: true,
174
- get: function () { return chunk3JSPGVX3_js.getSolarReturnChart; }
174
+ get: function () { return chunk6O7MTBZN_js.getSolarReturnChart; }
175
175
  });
176
176
  Object.defineProperty(exports, "getSwissEph", {
177
177
  enumerable: true,
178
- get: function () { return chunk3JSPGVX3_js.getSwissEph; }
178
+ get: function () { return chunk6O7MTBZN_js.getSwissEph; }
179
179
  });
180
180
  Object.defineProperty(exports, "getSynastryChart", {
181
181
  enumerable: true,
182
- get: function () { return chunk3JSPGVX3_js.getSynastryChart; }
182
+ get: function () { return chunk6O7MTBZN_js.getSynastryChart; }
183
183
  });
184
184
  Object.defineProperty(exports, "getTransitChart", {
185
185
  enumerable: true,
186
- get: function () { return chunk3JSPGVX3_js.getTransitChart; }
186
+ get: function () { return chunk6O7MTBZN_js.getTransitChart; }
187
187
  });
188
188
  Object.defineProperty(exports, "getTransitRange", {
189
189
  enumerable: true,
190
- get: function () { return chunk3JSPGVX3_js.getTransitRange; }
190
+ get: function () { return chunk6O7MTBZN_js.getTransitRange; }
191
191
  });
192
192
  Object.defineProperty(exports, "getZodiacPosition", {
193
193
  enumerable: true,
194
- get: function () { return chunk3JSPGVX3_js.getZodiacPosition; }
194
+ get: function () { return chunk6O7MTBZN_js.getZodiacPosition; }
195
195
  });
196
196
  Object.defineProperty(exports, "normalizeAngle", {
197
197
  enumerable: true,
198
- get: function () { return chunk3JSPGVX3_js.normalizeAngle; }
198
+ get: function () { return chunk6O7MTBZN_js.normalizeAngle; }
199
199
  });
200
200
  Object.defineProperty(exports, "queryAstrocartographyLocation", {
201
201
  enumerable: true,
202
- get: function () { return chunk3JSPGVX3_js.queryAstrocartographyLocation; }
202
+ get: function () { return chunk6O7MTBZN_js.queryAstrocartographyLocation; }
203
203
  });
204
204
  Object.defineProperty(exports, "resolveSwissEphRuntimeAssets", {
205
205
  enumerable: true,
206
- get: function () { return chunk3JSPGVX3_js.resolveSwissEphRuntimeAssets; }
206
+ get: function () { return chunk6O7MTBZN_js.resolveSwissEphRuntimeAssets; }
207
207
  });
208
208
  Object.defineProperty(exports, "shorterArcMidpoint", {
209
209
  enumerable: true,
210
- get: function () { return chunk3JSPGVX3_js.shorterArcMidpoint; }
210
+ get: function () { return chunk6O7MTBZN_js.shorterArcMidpoint; }
211
211
  });
212
212
  //# sourceMappingURL=index.js.map
213
213
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, CalcFlag, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, EXALTATIONS, HouseSystem, PLANET_AND_NODE_NAMES, Planet, RiseTransitFlag, SIGNS, SLOW_PLANETS, VirtualNodes, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint } from '../chunk-TZJU6SRX.mjs';
1
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, CalcFlag, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, EXALTATIONS, HouseSystem, PLANET_AND_NODE_NAMES, Planet, RiseTransitFlag, SIGNS, SLOW_PLANETS, VirtualNodes, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint } from '../chunk-PWYOHULD.mjs';
2
2
  import '../chunk-WY6NIR2V.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1632,8 +1632,38 @@ function getFirdaria(birthDate, isDiurnal, targetDate, options) {
1632
1632
  }
1633
1633
 
1634
1634
  // src/astrology/index.ts
1635
+ function isValidLocalDateTimeParts(date) {
1636
+ const hour = date.hour ?? 0;
1637
+ const minute = date.minute ?? 0;
1638
+ const second = date.second ?? 0;
1639
+ if (!Number.isInteger(date.year) || !Number.isInteger(date.month) || !Number.isInteger(date.day) || !Number.isInteger(hour) || !Number.isInteger(minute) || !Number.isInteger(second)) {
1640
+ return false;
1641
+ }
1642
+ if (date.month < 1 || date.month > 12 || date.day < 1 || date.day > 31 || hour < 0 || hour > 23 || minute < 0 || minute > 59 || second < 0 || second > 59) {
1643
+ return false;
1644
+ }
1645
+ const utcDate = new Date(Date.UTC(date.year, date.month - 1, date.day, hour, minute, second));
1646
+ return !Number.isNaN(utcDate.getTime()) && utcDate.getUTCFullYear() === date.year && utcDate.getUTCMonth() === date.month - 1 && utcDate.getUTCDate() === date.day && utcDate.getUTCHours() === hour && utcDate.getUTCMinutes() === minute && utcDate.getUTCSeconds() === second;
1647
+ }
1648
+ function getCivilMonthDay(date) {
1649
+ if (date instanceof Date) {
1650
+ return {
1651
+ monthIndex: date.getMonth(),
1652
+ day: date.getDate()
1653
+ };
1654
+ }
1655
+ return {
1656
+ monthIndex: date.month - 1,
1657
+ day: date.day
1658
+ };
1659
+ }
1635
1660
  function validateInputs(options) {
1636
- if (!(options.date instanceof Date) || isNaN(options.date.getTime())) {
1661
+ const { date } = options;
1662
+ if (date instanceof Date) {
1663
+ if (Number.isNaN(date.getTime())) {
1664
+ throw new Error("Invalid date provided");
1665
+ }
1666
+ } else if (!isValidLocalDateTimeParts(date)) {
1637
1667
  throw new Error("Invalid date provided");
1638
1668
  }
1639
1669
  if (typeof options.latitude !== "number" || options.latitude < -90 || options.latitude > 90) {
@@ -2109,11 +2139,11 @@ function signedAngularDelta(current, target) {
2109
2139
  async function getSolarReturnChart(options) {
2110
2140
  const natalChart = await getBirthChart(options.natal);
2111
2141
  const natalSunLongitude = natalChart.planets.sun.longitude;
2112
- const natalDate = options.natal.date;
2142
+ const natalDate = getCivilMonthDay(options.natal.date);
2113
2143
  const approxReturn = new Date(Date.UTC(
2114
2144
  options.year,
2115
- natalDate.getMonth(),
2116
- natalDate.getDate(),
2145
+ natalDate.monthIndex,
2146
+ natalDate.day,
2117
2147
  12,
2118
2148
  0,
2119
2149
  0
@@ -2203,5 +2233,5 @@ exports.normalizeAngle = normalizeAngle;
2203
2233
  exports.queryAstrocartographyLocation = queryAstrocartographyLocation;
2204
2234
  exports.resolveSwissEphRuntimeAssets = resolveSwissEphRuntimeAssets;
2205
2235
  exports.shorterArcMidpoint = shorterArcMidpoint;
2206
- //# sourceMappingURL=chunk-3JSPGVX3.js.map
2207
- //# sourceMappingURL=chunk-3JSPGVX3.js.map
2236
+ //# sourceMappingURL=chunk-6O7MTBZN.js.map
2237
+ //# sourceMappingURL=chunk-6O7MTBZN.js.map