@zodiacs/engine 0.1.1-rc.15 → 1.0.0

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +891 -0
  2. package/LICENSING.md +192 -12
  3. package/NOTICE +96 -2
  4. package/README.md +296 -66
  5. package/dist/{api-CoB_kqE3.d.ts → api-WbxJ4Wj-.d.ts} +15 -10
  6. package/dist/ayanamsa--YQ46fET.d.ts +134 -0
  7. package/dist/calc.d.ts +390 -0
  8. package/dist/calc.js +1039 -0
  9. package/dist/chunk-47ERTK5X.js +27 -0
  10. package/dist/chunk-7TRLIFFI.js +56 -0
  11. package/dist/chunk-A3U2ZS2W.js +29 -0
  12. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  13. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  14. package/dist/{chunk-OYGRVGXD.js → chunk-CHSYDKBL.js} +3 -3
  15. package/dist/{chunk-ZHVI3KWJ.js → chunk-DMGHYCDI.js} +4 -4
  16. package/dist/{chunk-CWI4YUDL.js → chunk-FTX3JDJA.js} +21 -18
  17. package/dist/{chunk-MFF3VKO3.js → chunk-OG4OYTJJ.js} +47 -42
  18. package/dist/{chunk-ZZPITHQS.js → chunk-SRXBTP5H.js} +199 -65
  19. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  20. package/dist/chunk-WS3TDSP3.js +474 -0
  21. package/dist/chunk-YIITY7Q7.js +483 -0
  22. package/dist/crossings.d.ts +8 -7
  23. package/dist/crossings.js +1 -1
  24. package/dist/deltat.d.ts +28 -3
  25. package/dist/deltat.js +1 -1
  26. package/dist/geo.d.ts +33 -12
  27. package/dist/geo.js +17 -458
  28. package/dist/{internal-math-BbktkHCc.d.ts → houses-CFERsAlK.d.ts} +14 -160
  29. package/dist/houses-extra.d.ts +95 -0
  30. package/dist/houses-extra.js +339 -0
  31. package/dist/index.d.ts +34 -48
  32. package/dist/index.js +31 -23
  33. package/dist/internal-math-DJJ8BYex.d.ts +174 -0
  34. package/dist/internal-math.d.ts +3 -2
  35. package/dist/internal-math.js +2 -2
  36. package/dist/internal.d.ts +1 -1
  37. package/dist/internal.js +5 -5
  38. package/dist/receipt.d.ts +2 -243
  39. package/dist/receipt.js +78 -37
  40. package/dist/reference-span-CILpclrz.d.ts +40 -0
  41. package/dist/rulers-Dla6h_Sm.d.ts +15 -0
  42. package/dist/sky.d.ts +173 -0
  43. package/dist/sky.js +379 -0
  44. package/dist/techniques.d.ts +453 -0
  45. package/dist/techniques.js +823 -0
  46. package/dist/timing.d.ts +113 -17
  47. package/dist/timing.js +98 -64
  48. package/dist/{types-BsWaqwU_.d.ts → types-B-yb_tGL.d.ts} +23 -11
  49. package/dist/vedic.d.ts +42 -124
  50. package/dist/vedic.js +44 -458
  51. package/dist/window.d.ts +180 -0
  52. package/dist/window.js +960 -0
  53. package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
  54. package/package.json +25 -3
package/dist/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
- export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-CoB_kqE3.js';
2
- import { D as DateInput, a as BodyPosition, g as Sect, h as MinimalBody, E as Element, I as InterAspect, i as Modality, P as PairSummary } from './types-BsWaqwU_.js';
3
- export { A as Angles, j as Aspect, k as AspectType, d as BirthInput, B as BodyName, b as Chart, c as ChartFlag, C as ChartInput, e as ChartPoints, l as ENGINE_VERSION, m as EPHEMERIS, n as HouseNumber, H as HouseSystem, o as Houses, L as LeapSeconds, M as MoonPhase, p as MoonPhaseName, q as PointName, r as PointPosition, s as Polarity, t as SignDefinition, S as SynastryResult, u as TimeScale, T as TimeScaleName, f as TransitResult, U as Ut1MinusUtc, Z as ZodiacSign } from './types-BsWaqwU_.js';
4
- export { A as ASPECTS, a as ASPECT_BODIES, b as ASPECT_TYPES, c as AngleInput, d as AspectDefinition, e as AspectMotion, E as ELEMENTS, H as HOUSE_SYSTEMS, M as MODALITIES, P as PLACIDUS_POLAR_FALLBACK, f as POLAR_FALLBACK, g as POLAR_UNDEFINED_HOUSE_SYSTEMS, S as SIGNS, h as SIGN_NAMES, i as STATIONARY_RELATIVE_SPEED, j as alcabitiusCusps, k as aspectMotion, l as campanusCusps, m as computeAngles, n as computeHouses, o as degreeInSign, p as eastPointOf, q as equalCusps, r as equalMcCusps, s as findAspects, t as houseOf, u as isPolarUndefinedHouseSystem, v as kochCusps, w as matchAspect, x as meanObliquity, y as meridianCusps, z as morinusCusps, B as normalizeLongitude, C as placidusCusps, D as porphyryCusps, F as ramcOf, G as regiomontanusCusps, I as separation, J as signForLongitude, K as signIndexForLongitude, L as topocentricCusps, N as vehlowCusps, O as vertexOf, Q as wholeSignCusps } from './internal-math-BbktkHCc.js';
1
+ export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-WbxJ4Wj-.js';
2
+ import { D as DateInput, c as BodyPosition, k as Sect, l as MinimalBody, E as Element, I as InterAspect, m as Modality, P as PairSummary } from './types-B-yb_tGL.js';
3
+ export { A as Angles, n as Aspect, f as AspectType, h as BirthInput, B as BodyName, d as Chart, g as ChartFlag, C as ChartInput, i as ChartPoints, o as DELTA_T_IERS_MODEL, p as ENGINE_VERSION, q as EPHEMERIS, b as HouseNumber, H as HouseSystem, a as Houses, L as LeapSeconds, M as MoonPhase, r as MoonPhaseName, s as PointName, t as PointPosition, u as Polarity, v as SignDefinition, S as SynastryResult, e as TimeScale, T as TimeScaleName, j as TransitResult, U as Ut1MinusUtc, Z as ZodiacSign } from './types-B-yb_tGL.js';
4
+ import { A as AspectMotion } from './internal-math-DJJ8BYex.js';
5
+ export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, E as ELEMENTS, M as MODALITIES, S as SIGNS, e as SIGN_NAMES, f as SIGN_SLUGS, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, i as degreeInSign, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation, k as signForLongitude, l as signIndexForLongitude } from './internal-math-DJJ8BYex.js';
6
+ export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-CFERsAlK.js';
5
7
  export { DELTA_T_MODEL, DELTA_T_TABLE, DeltaT, DeltaTSegment, DeltaTTable, deltaT, deltaTAt } from './deltat.js';
8
+ export { E as EPHEMERIS_SPAN, R as REFERENCE_SPAN, o as outsideReferenceSpan } from './reference-span-CILpclrz.js';
6
9
  export { BodyLongitudeAt, CrossingSearchOptions, CrossingSearchResult, LongitudeCrossing, findLongitudeCrossingsWith, searchLongitudeCrossingsWith } from './crossings.js';
7
10
 
8
11
  /** Fixed tropical-year convention for secondary progressions. */
@@ -36,7 +39,16 @@ declare function progressedBodies(birthUtc: DateInput, target: DateInput): BodyP
36
39
  * orb and threshold is the exact value of its double, every comparison is
37
40
  * decided on exact values, and only the reported orb is rounded, once.
38
41
  */
39
- type ConfiguredAspectMotion = "applying" | "separating" | "stationary";
42
+
43
+ /** The schema of an AspectPolicy. */
44
+ declare const ASPECT_POLICY_SCHEMA: "zodiacs.aspect-policy.v1";
45
+ /** The schema of a ConfiguredAspectResult. */
46
+ declare const CONFIGURED_ASPECTS_SCHEMA: "zodiacs.configured-aspects.v1";
47
+ /**
48
+ * An aspect's motion: AspectMotion under another name.
49
+ * @deprecated Use AspectMotion.
50
+ */
51
+ type ConfiguredAspectMotion = AspectMotion;
40
52
  /** Degrees of orb, including the boundary, for each instantaneous motion. */
41
53
  interface AspectOrbLimits {
42
54
  readonly applying: number;
@@ -84,7 +96,7 @@ interface AspectPolicyInput {
84
96
  readonly stationaryRelativeSpeed?: number;
85
97
  }
86
98
  interface AspectPolicy {
87
- readonly schema: "zodiacs.aspect-policy.v1";
99
+ readonly schema: typeof ASPECT_POLICY_SCHEMA;
88
100
  readonly aspects: readonly ResolvedAspectRule[];
89
101
  readonly bodies: readonly string[];
90
102
  readonly bodyOrbs: Readonly<Record<string, AspectOrbLimits>>;
@@ -118,12 +130,12 @@ interface ConfiguredAspect {
118
130
  /** |separation − angle|, decided exactly and reported rounded to the nearest double. */
119
131
  readonly orb: number;
120
132
  readonly maximumOrb: number;
121
- readonly motion: ConfiguredAspectMotion;
133
+ readonly motion: AspectMotion;
122
134
  readonly applying: boolean;
123
135
  }
124
136
  /** Policy is calculation context, not an authenticated receipt or a physical accuracy bound. */
125
137
  interface ConfiguredAspectResult {
126
- readonly schema: "zodiacs.configured-aspects.v1";
138
+ readonly schema: typeof CONFIGURED_ASPECTS_SCHEMA;
127
139
  readonly policy: AspectPolicy;
128
140
  readonly aspects: readonly ConfiguredAspect[];
129
141
  }
@@ -155,18 +167,27 @@ declare function findConfiguredAspects(positions: readonly AspectPosition[], pol
155
167
  * These are the fundamental arguments of the IERS Conventions (2003, 2010),
156
168
  * eq. 5.43, from Simon et al. (1994), referred to the mean ecliptic and
157
169
  * equinox of date.
170
+ *
171
+ * @experimental The formula behind chartPoints; use chartPoints or
172
+ * `@zodiacs/engine/calc` for the points themselves.
158
173
  */
159
174
  declare function lunarMeanArguments(centuries: number): {
160
175
  l: number;
161
176
  F: number;
162
177
  node: number;
163
178
  };
164
- /** The Moon's mean orbital inclination to the ecliptic, 5°08′43.4″. */
179
+ /**
180
+ * The Moon's mean orbital inclination to the ecliptic, 5°08′43.4″.
181
+ * @experimental A constant of chartPoints' formulas, exported with them.
182
+ */
165
183
  declare const MEAN_LUNAR_INCLINATION = 5.1453964;
166
184
  /**
167
185
  * The mean ascending node of the Moon: Ω of {@link lunarMeanArguments}, plus
168
186
  * the nutation in longitude `nutation` (degrees) to refer it to the true
169
187
  * equinox of date like every other longitude the engine reports.
188
+ *
189
+ * @experimental The formula behind chartPoints' mean node; use chartPoints or
190
+ * `@zodiacs/engine/calc`.
170
191
  */
171
192
  declare function meanNodeLongitude(centuries: number, nutation: number): number;
172
193
  /**
@@ -175,6 +196,9 @@ declare function meanNodeLongitude(centuries: number, nutation: number): number;
175
196
  * is carried from the orbit, inclined at {@link MEAN_LUNAR_INCLINATION}, to
176
197
  * the ecliptic, so it has a latitude of up to about 5°. The nutation in
177
198
  * longitude `nutation` (degrees) refers it to the true equinox of date.
199
+ *
200
+ * @experimental The formula behind chartPoints' Black Moon Lilith; use
201
+ * chartPoints or `@zodiacs/engine/calc`.
178
202
  */
179
203
  declare function meanApogee(centuries: number, nutation: number): {
180
204
  lon: number;
@@ -238,47 +262,9 @@ declare function contraAntiscion(longitude: number): number;
238
262
  */
239
263
  declare function midpoint(first: number, second: number): number;
240
264
 
241
- /**
242
- * The span over which this engine's positions have been compared with an
243
- * independent ephemeris: from 1800-01-01T00:00Z up to, not including,
244
- * 2200-01-01T00:00Z. Charts outside it are still computed, and carry the
245
- * `outside-reference-span` flag.
246
- */
247
- declare const REFERENCE_SPAN: Readonly<{
248
- readonly from: "1800-01-01T00:00:00.000Z";
249
- readonly to: "2200-01-01T00:00:00.000Z";
250
- }>;
251
- /**
252
- * The span of Terrestrial Time over which the ephemeris is evaluated at all:
253
- * the years astronomy-engine 2.1.19 itself tabulates, J2000 ± 730,000 days of
254
- * TT (0001-04-30T12:00 to 3998-09-03T12:00 TT). That is the range of its Pluto
255
- * model's state table; for any other time its source says: "The target time is
256
- * outside the year range 0000..4000. Calculate it by crawling backward from 0000
257
- * or forward from 4000. ... This is super slow." Beyond the table its other
258
- * series diverge as well: on 30000-06-01 the Sun came out 29° off the ecliptic.
259
- *
260
- * Every instant a calculation evaluates, the instant and its speed samples, must
261
- * lie inside on the calculation's own ΔT clock, or the call throws RangeError.
262
- * With the model ΔT, instants from 0001-05-01T00:00Z to 3998-09-02T00:00Z are
263
- * always inside. Being inside is not an accuracy claim: see REFERENCE_SPAN.
264
- */
265
- declare const EPHEMERIS_SPAN: Readonly<{
266
- readonly timeScale: "TT";
267
- /** Days of Terrestrial Time from J2000.0, 2000-01-01T12:00 TT, inclusive. */
268
- readonly daysFromJ2000: Readonly<{
269
- readonly from: -730000;
270
- readonly to: 730000;
271
- }>;
272
- /** The same bounds as Terrestrial Time labels (not UTC). */
273
- readonly fromTT: "0001-04-30T12:00:00";
274
- readonly toTT: "3998-09-03T12:00:00";
275
- }>;
276
- /** True when the instant lies outside REFERENCE_SPAN. */
277
- declare function outsideReferenceSpan(utc: Date): boolean;
278
-
279
265
  declare function findInterAspects(first: readonly MinimalBody[], second: readonly MinimalBody[]): InterAspect[];
280
266
  declare function elementBalance(bodies: readonly MinimalBody[]): Record<Element, number>;
281
267
  declare function modalityBalance(bodies: readonly MinimalBody[]): Record<Modality, number>;
282
268
  declare function summarizePair(first: readonly MinimalBody[], second: readonly MinimalBody[], topCount?: number): PairSummary;
283
269
 
284
- export { type AspectOrbInput, type AspectOrbLimits, type AspectPolicy, type AspectPolicyInput, type AspectPosition, type AspectRuleInput, BodyPosition, CONFIGURED_ASPECT_ANGLES, type ConfiguredAspect, type ConfiguredAspectMotion, type ConfiguredAspectResult, DEFAULT_ASPECT_POLICY, DateInput, EPHEMERIS_SPAN, Element, InterAspect, LOTS, type LotInputs, MEAN_LUNAR_INCLINATION, MinimalBody, Modality, PROGRESSION_DAYS_PER_YEAR, PairSummary, REFERENCE_SPAN, type ResolvedAspectRule, Sect, antiscion, contraAntiscion, createAspectPolicy, elementBalance, findConfiguredAspects, findInterAspects, hellenisticLots, lunarMeanArguments, meanApogee, meanNodeLongitude, midpoint, modalityBalance, outsideReferenceSpan, progressedBodies, progressedInstant, sectOf, summarizePair };
270
+ export { ASPECT_POLICY_SCHEMA, AspectMotion, type AspectOrbInput, type AspectOrbLimits, type AspectPolicy, type AspectPolicyInput, type AspectPosition, type AspectRuleInput, BodyPosition, CONFIGURED_ASPECTS_SCHEMA, CONFIGURED_ASPECT_ANGLES, type ConfiguredAspect, type ConfiguredAspectMotion, type ConfiguredAspectResult, DEFAULT_ASPECT_POLICY, DateInput, Element, InterAspect, LOTS, type LotInputs, MEAN_LUNAR_INCLINATION, MinimalBody, Modality, PROGRESSION_DAYS_PER_YEAR, PairSummary, type ResolvedAspectRule, Sect, antiscion, contraAntiscion, createAspectPolicy, elementBalance, findConfiguredAspects, findInterAspects, hellenisticLots, lunarMeanArguments, meanApogee, meanNodeLongitude, midpoint, modalityBalance, progressedBodies, progressedInstant, sectOf, summarizePair };
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  PROGRESSION_DAYS_PER_YEAR,
3
3
  progressedBodies,
4
4
  progressedInstant
5
- } from "./chunk-OYGRVGXD.js";
5
+ } from "./chunk-CHSYDKBL.js";
6
6
  import {
7
7
  chartDeclinations,
8
8
  chartPoints,
@@ -19,11 +19,12 @@ import {
19
19
  summarizePair,
20
20
  synastry,
21
21
  transits
22
- } from "./chunk-CWI4YUDL.js";
22
+ } from "./chunk-FTX3JDJA.js";
23
+ import "./chunk-CPALRSPC.js";
23
24
  import {
24
25
  findLongitudeCrossingsWith,
25
26
  searchLongitudeCrossingsWith
26
- } from "./chunk-AECKV73C.js";
27
+ } from "./chunk-TSS2SZWQ.js";
27
28
  import "./chunk-PFGUCNOK.js";
28
29
  import {
29
30
  DECLINATION_ORB,
@@ -53,7 +54,19 @@ import {
53
54
  roundedValue,
54
55
  sectOf,
55
56
  signOf
56
- } from "./chunk-ZZPITHQS.js";
57
+ } from "./chunk-SRXBTP5H.js";
58
+ import {
59
+ DELTA_T_IERS_MODEL,
60
+ EPHEMERIS_SPAN,
61
+ REFERENCE_SPAN,
62
+ outsideReferenceSpan
63
+ } from "./chunk-B5LKF437.js";
64
+ import {
65
+ DELTA_T_MODEL,
66
+ DELTA_T_TABLE,
67
+ deltaT,
68
+ deltaTAt
69
+ } from "./chunk-BHJXUY67.js";
57
70
  import {
58
71
  HOUSE_SYSTEMS,
59
72
  PLACIDUS_POLAR_FALLBACK,
@@ -80,19 +93,7 @@ import {
80
93
  vehlowCusps,
81
94
  vertexOf,
82
95
  wholeSignCusps
83
- } from "./chunk-ZHVI3KWJ.js";
84
- import "./chunk-CPALRSPC.js";
85
- import {
86
- EPHEMERIS_SPAN,
87
- REFERENCE_SPAN,
88
- outsideReferenceSpan
89
- } from "./chunk-KHBLFXFG.js";
90
- import {
91
- DELTA_T_MODEL,
92
- DELTA_T_TABLE,
93
- deltaT,
94
- deltaTAt
95
- } from "./chunk-ONBZ4HK7.js";
96
+ } from "./chunk-DMGHYCDI.js";
96
97
  import {
97
98
  ASPECTS,
98
99
  ASPECT_BODIES,
@@ -103,6 +104,7 @@ import {
103
104
  MODALITIES,
104
105
  SIGNS,
105
106
  SIGN_NAMES,
107
+ SIGN_SLUGS,
106
108
  STATIONARY_RELATIVE_SPEED,
107
109
  aspectMotion,
108
110
  degreeInSign,
@@ -112,10 +114,12 @@ import {
112
114
  separation,
113
115
  signForLongitude,
114
116
  signIndexForLongitude
115
- } from "./chunk-MFF3VKO3.js";
117
+ } from "./chunk-OG4OYTJJ.js";
116
118
 
117
119
  // src/configured-aspects.ts
118
- var CONFIGURED_ASPECT_ANGLES = Object.freeze({
120
+ var ASPECT_POLICY_SCHEMA = "zodiacs.aspect-policy.v1";
121
+ var CONFIGURED_ASPECTS_SCHEMA = "zodiacs.configured-aspects.v1";
122
+ var CONFIGURED_ASPECT_ANGLES = /* @__PURE__ */ Object.freeze({
119
123
  conjunction: 0,
120
124
  semisextile: 30,
121
125
  semisquare: 45,
@@ -137,7 +141,7 @@ var DEFAULT_RULES = [
137
141
  { type: "opposition", orb: 8, luminaryOrb: 10 }
138
142
  ];
139
143
  var POLICIES = /* @__PURE__ */ new WeakSet();
140
- var CONVENTIONS = Object.freeze({
144
+ var CONVENTIONS = /* @__PURE__ */ Object.freeze({
141
145
  coordinates: "ecliptic-longitude-degrees-[0,360)",
142
146
  speed: "longitude-degrees-per-day;same-time-basis",
143
147
  motion: "instantaneous-orb-rate;right-derivative-at-circular-corners;exact-separating-unless-stationary",
@@ -221,7 +225,7 @@ function createAspectPolicy(input = {}) {
221
225
  }
222
226
  const stationaryRelativeSpeed = options.stationaryRelativeSpeed === void 0 ? 1e-9 : numberIn(options.stationaryRelativeSpeed, 0, Number.MAX_VALUE, "Stationary relative speed");
223
227
  const policy = Object.freeze({
224
- schema: "zodiacs.aspect-policy.v1",
228
+ schema: ASPECT_POLICY_SCHEMA,
225
229
  aspects: Object.freeze(aspects),
226
230
  bodies: Object.freeze(bodies),
227
231
  bodyOrbs: Object.freeze(bodyOrbs),
@@ -231,7 +235,7 @@ function createAspectPolicy(input = {}) {
231
235
  POLICIES.add(policy);
232
236
  return policy;
233
237
  }
234
- var DEFAULT_ASPECT_POLICY = createAspectPolicy();
238
+ var DEFAULT_ASPECT_POLICY = /* @__PURE__ */ createAspectPolicy();
235
239
  function signedSeparation(a, b) {
236
240
  const difference = exactSum(a, -b);
237
241
  if (compareExact(difference, 180) > 0) return exactSum(difference, -360);
@@ -305,17 +309,20 @@ function findConfiguredAspects(positions2, policy) {
305
309
  }
306
310
  }
307
311
  found.sort((x, y) => compareExact(x.exactOrb, y.exactOrb));
308
- return Object.freeze({ schema: "zodiacs.configured-aspects.v1", policy, aspects: Object.freeze(found.map((entry) => entry.aspect)) });
312
+ return Object.freeze({ schema: CONFIGURED_ASPECTS_SCHEMA, policy, aspects: Object.freeze(found.map((entry) => entry.aspect)) });
309
313
  }
310
314
  export {
311
315
  ASPECTS,
312
316
  ASPECT_BODIES,
317
+ ASPECT_POLICY_SCHEMA,
313
318
  ASPECT_TYPES,
319
+ CONFIGURED_ASPECTS_SCHEMA,
314
320
  CONFIGURED_ASPECT_ANGLES,
315
321
  DECLINATION_ORB,
316
322
  DECLINATION_ORB_LUMINARY,
317
323
  DEFAULT_ASPECT_POLICY,
318
324
  DEFAULT_DECLINATION_ORB_POLICY,
325
+ DELTA_T_IERS_MODEL,
319
326
  DELTA_T_MODEL,
320
327
  DELTA_T_TABLE,
321
328
  ELEMENTS,
@@ -334,6 +341,7 @@ export {
334
341
  REFERENCE_SPAN,
335
342
  SIGNS,
336
343
  SIGN_NAMES,
344
+ SIGN_SLUGS,
337
345
  STATIONARY_RELATIVE_SPEED,
338
346
  SUN_BOUND_LATITUDE,
339
347
  alcabitiusCusps,
@@ -0,0 +1,174 @@
1
+ import { f as AspectType, c as BodyPosition, n as Aspect, Z as ZodiacSign, v as SignDefinition } from './types-B-yb_tGL.js';
2
+ import './houses-CFERsAlK.js';
3
+
4
+ interface AspectDefinition {
5
+ readonly type: AspectType;
6
+ readonly angle: number;
7
+ readonly orb: number;
8
+ readonly luminaryOrb: number;
9
+ }
10
+ declare const ASPECT_TYPES: readonly ["conjunction", "sextile", "square", "trine", "opposition"];
11
+ /** The five major aspects and their orbs, frozen: matchAspect returns these objects themselves. */
12
+ declare const ASPECTS: readonly [Readonly<{
13
+ readonly type: "conjunction";
14
+ readonly angle: 0;
15
+ readonly orb: 8;
16
+ readonly luminaryOrb: 10;
17
+ }>, Readonly<{
18
+ readonly type: "sextile";
19
+ readonly angle: 60;
20
+ readonly orb: 4;
21
+ readonly luminaryOrb: 5;
22
+ }>, Readonly<{
23
+ readonly type: "square";
24
+ readonly angle: 90;
25
+ readonly orb: 7;
26
+ readonly luminaryOrb: 8;
27
+ }>, Readonly<{
28
+ readonly type: "trine";
29
+ readonly angle: 120;
30
+ readonly orb: 7;
31
+ readonly luminaryOrb: 8;
32
+ }>, Readonly<{
33
+ readonly type: "opposition";
34
+ readonly angle: 180;
35
+ readonly orb: 8;
36
+ readonly luminaryOrb: 10;
37
+ }>];
38
+ /**
39
+ * The bodies `findAspects`, `findInterAspects`, `elementBalance` and
40
+ * `modalityBalance` take into account: the Sun to Pluto, without the nodes.
41
+ * A copy for reading; the engine keeps its own, so changing this set changes
42
+ * nothing it computes.
43
+ */
44
+ declare const ASPECT_BODIES: ReadonlySet<string>;
45
+ /** Whether an aspect's orb is shrinking, growing, or neither, at an instant. */
46
+ type AspectMotion = "applying" | "separating" | "stationary";
47
+ /**
48
+ * Below this relative speed, in degrees per day, two bodies are treated as
49
+ * not moving against each other, and the aspect as neither applying nor
50
+ * separating.
51
+ */
52
+ declare const STATIONARY_RELATIVE_SPEED = 1e-9;
53
+ /**
54
+ * The motion of an aspect at the chart instant, from the two longitudes and
55
+ * their speeds (degrees per day). It is applying when the orb is strictly
56
+ * decreasing: the sign of the orb's rate of change, not a step forward in
57
+ * time, decides. An exact aspect (orb 0) can only separate.
58
+ */
59
+ declare function aspectMotion(a: {
60
+ lon: number;
61
+ speed: number;
62
+ }, b: {
63
+ lon: number;
64
+ speed: number;
65
+ }, angle: number): AspectMotion;
66
+ /** Unsigned angular separation in [0, 180]. */
67
+ declare function separation(a: number, b: number): number;
68
+ declare function matchAspect(aBody: string, aLongitude: number, bBody: string, bLongitude: number): {
69
+ definition: AspectDefinition;
70
+ orb: number;
71
+ } | null;
72
+ declare function findAspects(bodies: readonly BodyPosition[]): Aspect[];
73
+
74
+ declare const ELEMENTS: readonly ["fire", "earth", "air", "water"];
75
+ declare const MODALITIES: readonly ["cardinal", "fixed", "mutable"];
76
+ /** The twelve signs, frozen: signForLongitude returns these objects themselves. */
77
+ declare const SIGNS: readonly [Readonly<{
78
+ readonly slug: "aries";
79
+ readonly name: "Aries";
80
+ readonly element: "fire";
81
+ readonly modality: "cardinal";
82
+ readonly polarity: "day";
83
+ readonly naturalHouse: 1;
84
+ }>, Readonly<{
85
+ readonly slug: "taurus";
86
+ readonly name: "Taurus";
87
+ readonly element: "earth";
88
+ readonly modality: "fixed";
89
+ readonly polarity: "night";
90
+ readonly naturalHouse: 2;
91
+ }>, Readonly<{
92
+ readonly slug: "gemini";
93
+ readonly name: "Gemini";
94
+ readonly element: "air";
95
+ readonly modality: "mutable";
96
+ readonly polarity: "day";
97
+ readonly naturalHouse: 3;
98
+ }>, Readonly<{
99
+ readonly slug: "cancer";
100
+ readonly name: "Cancer";
101
+ readonly element: "water";
102
+ readonly modality: "cardinal";
103
+ readonly polarity: "night";
104
+ readonly naturalHouse: 4;
105
+ }>, Readonly<{
106
+ readonly slug: "leo";
107
+ readonly name: "Leo";
108
+ readonly element: "fire";
109
+ readonly modality: "fixed";
110
+ readonly polarity: "day";
111
+ readonly naturalHouse: 5;
112
+ }>, Readonly<{
113
+ readonly slug: "virgo";
114
+ readonly name: "Virgo";
115
+ readonly element: "earth";
116
+ readonly modality: "mutable";
117
+ readonly polarity: "night";
118
+ readonly naturalHouse: 6;
119
+ }>, Readonly<{
120
+ readonly slug: "libra";
121
+ readonly name: "Libra";
122
+ readonly element: "air";
123
+ readonly modality: "cardinal";
124
+ readonly polarity: "day";
125
+ readonly naturalHouse: 7;
126
+ }>, Readonly<{
127
+ readonly slug: "scorpio";
128
+ readonly name: "Scorpio";
129
+ readonly element: "water";
130
+ readonly modality: "fixed";
131
+ readonly polarity: "night";
132
+ readonly naturalHouse: 8;
133
+ }>, Readonly<{
134
+ readonly slug: "sagittarius";
135
+ readonly name: "Sagittarius";
136
+ readonly element: "fire";
137
+ readonly modality: "mutable";
138
+ readonly polarity: "day";
139
+ readonly naturalHouse: 9;
140
+ }>, Readonly<{
141
+ readonly slug: "capricorn";
142
+ readonly name: "Capricorn";
143
+ readonly element: "earth";
144
+ readonly modality: "cardinal";
145
+ readonly polarity: "night";
146
+ readonly naturalHouse: 10;
147
+ }>, Readonly<{
148
+ readonly slug: "aquarius";
149
+ readonly name: "Aquarius";
150
+ readonly element: "air";
151
+ readonly modality: "fixed";
152
+ readonly polarity: "day";
153
+ readonly naturalHouse: 11;
154
+ }>, Readonly<{
155
+ readonly slug: "pisces";
156
+ readonly name: "Pisces";
157
+ readonly element: "water";
158
+ readonly modality: "mutable";
159
+ readonly polarity: "night";
160
+ readonly naturalHouse: 12;
161
+ }>];
162
+ /** The twelve signs' slugs, "aries" to "pisces", in zodiac order. */
163
+ declare const SIGN_SLUGS: readonly ZodiacSign[];
164
+ /**
165
+ * The twelve signs' slugs, as SIGN_SLUGS.
166
+ * @deprecated It holds slugs ("aries"), not names ("Aries"); use SIGN_SLUGS.
167
+ */
168
+ declare const SIGN_NAMES: readonly ZodiacSign[];
169
+ declare function normalizeLongitude(lon: number): number;
170
+ declare function signIndexForLongitude(lon: number): number;
171
+ declare function signForLongitude(lon: number): SignDefinition;
172
+ declare function degreeInSign(lon: number): number;
173
+
174
+ export { type AspectMotion as A, ELEMENTS as E, MODALITIES as M, SIGNS as S, ASPECTS as a, ASPECT_BODIES as b, ASPECT_TYPES as c, type AspectDefinition as d, SIGN_NAMES as e, SIGN_SLUGS as f, STATIONARY_RELATIVE_SPEED as g, aspectMotion as h, degreeInSign as i, findAspects as j, signForLongitude as k, signIndexForLongitude as l, matchAspect as m, normalizeLongitude as n, separation as s };
@@ -1,3 +1,4 @@
1
- export { A as ASPECTS, a as ASPECT_BODIES, b as ASPECT_TYPES, c as AngleInput, d as AspectDefinition, e as AspectMotion, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, f as POLAR_FALLBACK, g as POLAR_UNDEFINED_HOUSE_SYSTEMS, i as STATIONARY_RELATIVE_SPEED, j as alcabitiusCusps, k as aspectMotion, l as campanusCusps, m as computeAngles, n as computeHouses, p as eastPointOf, q as equalCusps, r as equalMcCusps, s as findAspects, t as houseOf, u as isPolarUndefinedHouseSystem, v as kochCusps, w as matchAspect, x as meanObliquity, y as meridianCusps, z as morinusCusps, B as normalizeLongitude, C as placidusCusps, D as porphyryCusps, F as ramcOf, G as regiomontanusCusps, I as separation, L as topocentricCusps, N as vehlowCusps, O as vertexOf, Q as wholeSignCusps } from './internal-math-BbktkHCc.js';
2
- export { A as Angles, j as Aspect, k as AspectType, B as BodyName, a as BodyPosition, b as Chart, c as ChartFlag, C as ChartInput, l as ENGINE_VERSION, n as HouseNumber, H as HouseSystem, o as Houses } from './types-BsWaqwU_.js';
1
+ export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, A as AspectMotion, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation } from './internal-math-DJJ8BYex.js';
2
+ export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-CFERsAlK.js';
3
+ export { A as Angles, n as Aspect, f as AspectType, B as BodyName, c as BodyPosition, d as Chart, g as ChartFlag, C as ChartInput, p as ENGINE_VERSION, b as HouseNumber, H as HouseSystem, a as Houses } from './types-B-yb_tGL.js';
3
4
  import './deltat.js';
@@ -24,7 +24,7 @@ import {
24
24
  vehlowCusps,
25
25
  vertexOf,
26
26
  wholeSignCusps
27
- } from "./chunk-ZHVI3KWJ.js";
27
+ } from "./chunk-DMGHYCDI.js";
28
28
  import {
29
29
  ASPECTS,
30
30
  ASPECT_BODIES,
@@ -36,7 +36,7 @@ import {
36
36
  matchAspect,
37
37
  normalizeLongitude,
38
38
  separation
39
- } from "./chunk-MFF3VKO3.js";
39
+ } from "./chunk-OG4OYTJJ.js";
40
40
  export {
41
41
  ASPECTS,
42
42
  ASPECT_BODIES,
@@ -1,4 +1,4 @@
1
- import { B as BodyName, a as BodyPosition, C as ChartInput, b as Chart } from './types-BsWaqwU_.js';
1
+ import { B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-B-yb_tGL.js';
2
2
  import './deltat.js';
3
3
 
4
4
  /** Apparent longitude at a UTC instant, on the engine's time basis. */
package/dist/internal.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  computeBodies,
4
4
  computeChart,
5
5
  longitudeSpeed
6
- } from "./chunk-ZZPITHQS.js";
7
- import "./chunk-ZHVI3KWJ.js";
8
- import "./chunk-KHBLFXFG.js";
9
- import "./chunk-ONBZ4HK7.js";
10
- import "./chunk-MFF3VKO3.js";
6
+ } from "./chunk-SRXBTP5H.js";
7
+ import "./chunk-B5LKF437.js";
8
+ import "./chunk-BHJXUY67.js";
9
+ import "./chunk-DMGHYCDI.js";
10
+ import "./chunk-OG4OYTJJ.js";
11
11
  export {
12
12
  bodyLongitude,
13
13
  computeBodies,