@zodiacs/engine 0.1.1-rc.16 → 1.1.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.
- package/CHANGELOG.md +1478 -0
- package/LICENSING.md +184 -30
- package/NOTICE +81 -14
- package/README.md +345 -67
- package/dist/{api-VOW6Umy5.d.ts → api-ChL1N2Sr.d.ts} +44 -7
- package/dist/ayanamsa-ClFzkKmV.d.ts +135 -0
- package/dist/calc.d.ts +218 -21
- package/dist/calc.js +580 -160
- package/dist/chunk-2PZYJQV5.js +83 -0
- package/dist/chunk-47ERTK5X.js +27 -0
- package/dist/{chunk-O3NJRGJ2.js → chunk-4XOYTBLS.js} +1 -1
- package/dist/chunk-767FTO7O.js +48 -0
- package/dist/{chunk-N4B5JNMA.js → chunk-7Y2F2IWN.js} +40 -28
- package/dist/chunk-B4M2Y7FT.js +96 -0
- package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
- package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
- package/dist/{chunk-PFGUCNOK.js → chunk-BMDASNPB.js} +6 -6
- package/dist/chunk-I3L4POY7.js +18 -0
- package/dist/{chunk-I7O5EGFV.js → chunk-LNGURVNH.js} +3 -3
- package/dist/{chunk-4NV4ZEFZ.js → chunk-NNOSOOWS.js} +4 -4
- package/dist/chunk-OVXQQEXL.js +41 -0
- package/dist/{chunk-WOU7JVD3.js → chunk-QLIEEICB.js} +205 -194
- package/dist/chunk-RMBWKZI2.js +130 -0
- package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
- package/dist/{chunk-L6ZHWJZ6.js → chunk-TZVPZHZM.js} +51 -29
- package/dist/chunk-WBTWY2OB.js +478 -0
- package/dist/chunk-Y4E3WJU5.js +87 -0
- package/dist/chunk-YPU3MDNI.js +852 -0
- package/dist/conventions.d.ts +70 -0
- package/dist/conventions.js +26 -0
- package/dist/crossings.d.ts +22 -10
- package/dist/crossings.js +1 -1
- package/dist/de440-pack.d.ts +43 -0
- package/dist/de440-pack.js +16 -0
- package/dist/de440.d.ts +113 -0
- package/dist/de440.js +19 -0
- package/dist/deltat.d.ts +28 -3
- package/dist/deltat.js +1 -1
- package/dist/ephemeris-exTSqBgb.d.ts +60 -0
- package/dist/geo.d.ts +46 -13
- package/dist/geo.js +4 -2
- package/dist/{houses-q1O2GGp4.d.ts → houses-Bh7GCnPi.d.ts} +14 -4
- package/dist/houses-extra.d.ts +22 -7
- package/dist/houses-extra.js +4 -2
- package/dist/index.d.ts +36 -49
- package/dist/index.js +54 -34
- package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-CxenuGfm.d.ts} +41 -27
- package/dist/internal-math.d.ts +4 -3
- package/dist/internal-math.js +14 -12
- package/dist/internal.d.ts +16 -7
- package/dist/internal.js +27 -6
- package/dist/lite-composite.js +114 -0
- package/dist/lite-declinations.js +253 -0
- package/dist/lite-dignities.js +333 -0
- package/dist/lite-sect.js +72 -0
- package/dist/lite.d.ts +82 -0
- package/dist/lite.js +4 -0
- package/dist/receipt.d.ts +3 -268
- package/dist/receipt.js +202 -89
- package/dist/reference-span-CILpclrz.d.ts +40 -0
- package/dist/{rulers-9wljfVaO.d.ts → rulers-CSSWtiWF.d.ts} +7 -2
- package/dist/sky.d.ts +26 -10
- package/dist/sky.js +23 -14
- package/dist/techniques.d.ts +160 -21
- package/dist/techniques.js +157 -89
- package/dist/time-bands-CZA9AlLg.d.ts +36 -0
- package/dist/time-scale-DIFNa0gz.d.ts +47 -0
- package/dist/time.d.ts +81 -0
- package/dist/time.js +74 -0
- package/dist/timing.d.ts +55 -17
- package/dist/timing.js +33 -45
- package/dist/types-DpPdtXgO.d.ts +335 -0
- package/dist/vedic.d.ts +150 -123
- package/dist/vedic.js +398 -440
- package/dist/window.d.ts +102 -80
- package/dist/window.js +108 -51
- package/dist/zone-history-BxmDCcTK.d.ts +290 -0
- package/package.json +26 -3
- package/dist/chunk-2OWGBT3O.js +0 -219
- package/dist/types-B4MCoCCS.d.ts +0 -228
package/dist/time.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
timeBands
|
|
3
|
+
} from "./chunk-I3L4POY7.js";
|
|
4
|
+
import {
|
|
5
|
+
eclipticFrame,
|
|
6
|
+
eclipticOfDate,
|
|
7
|
+
meanEcliptic
|
|
8
|
+
} from "./chunk-2PZYJQV5.js";
|
|
9
|
+
import {
|
|
10
|
+
DELTA_T_IERS_MODEL,
|
|
11
|
+
EPHEMERIS_SPAN,
|
|
12
|
+
TIME_SCALE_NAMES,
|
|
13
|
+
elapsedDays,
|
|
14
|
+
timeBasis
|
|
15
|
+
} from "./chunk-B5LKF437.js";
|
|
16
|
+
import {
|
|
17
|
+
tilt
|
|
18
|
+
} from "./chunk-Y4E3WJU5.js";
|
|
19
|
+
import "./chunk-NNOSOOWS.js";
|
|
20
|
+
import "./chunk-RMBWKZI2.js";
|
|
21
|
+
import "./chunk-BHJXUY67.js";
|
|
22
|
+
|
|
23
|
+
// src/time.ts
|
|
24
|
+
function finite(value, name) {
|
|
25
|
+
if (typeof value !== "number" || !Number.isFinite(value)) throw new RangeError(`${name} must be a finite number.`);
|
|
26
|
+
}
|
|
27
|
+
function timeBasis2(ms, scale, pin) {
|
|
28
|
+
if (typeof ms !== "number" || !(Math.abs(ms) <= 864e13)) throw new RangeError("ms must be an instant within the range of a Date.");
|
|
29
|
+
if (scale !== void 0 && !TIME_SCALE_NAMES.includes(scale)) throw new RangeError('scale must be "utc", "ut1" or "tt".');
|
|
30
|
+
if (pin !== void 0 && (typeof pin !== "number" || !(Math.abs(pin) <= 1e10))) {
|
|
31
|
+
throw new RangeError("pin must be a finite number of seconds, at most 1e10 in size.");
|
|
32
|
+
}
|
|
33
|
+
return timeBasis(ms, scale, pin);
|
|
34
|
+
}
|
|
35
|
+
function elapsedDays2(before, after, days) {
|
|
36
|
+
finite(days, "days");
|
|
37
|
+
return elapsedDays(before, after, days);
|
|
38
|
+
}
|
|
39
|
+
function tilt2(tt) {
|
|
40
|
+
finite(tt, "tt");
|
|
41
|
+
return Object.freeze(tilt(tt));
|
|
42
|
+
}
|
|
43
|
+
function eclipticFrame2(tt) {
|
|
44
|
+
finite(tt, "tt");
|
|
45
|
+
const frame = eclipticFrame(tt);
|
|
46
|
+
return Object.freeze({ tt: frame.tt, rows: Object.freeze(frame.rows.slice()), tilt: Object.freeze({ ...frame.tilt }) });
|
|
47
|
+
}
|
|
48
|
+
function meanEcliptic2(frame, x, y, z) {
|
|
49
|
+
finite(x, "x");
|
|
50
|
+
finite(y, "y");
|
|
51
|
+
finite(z, "z");
|
|
52
|
+
return meanEcliptic(frame, x, y, z);
|
|
53
|
+
}
|
|
54
|
+
function eclipticOfDate2(x, y, z, tt) {
|
|
55
|
+
finite(x, "x");
|
|
56
|
+
finite(y, "y");
|
|
57
|
+
finite(z, "z");
|
|
58
|
+
finite(tt, "tt");
|
|
59
|
+
const place = eclipticOfDate(x, y, z, tt);
|
|
60
|
+
if (Number.isNaN(place.lat)) throw new RangeError("the vector has no direction.");
|
|
61
|
+
return place;
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
DELTA_T_IERS_MODEL,
|
|
65
|
+
EPHEMERIS_SPAN,
|
|
66
|
+
TIME_SCALE_NAMES,
|
|
67
|
+
eclipticFrame2 as eclipticFrame,
|
|
68
|
+
eclipticOfDate2 as eclipticOfDate,
|
|
69
|
+
elapsedDays2 as elapsedDays,
|
|
70
|
+
meanEcliptic2 as meanEcliptic,
|
|
71
|
+
tilt2 as tilt,
|
|
72
|
+
timeBands,
|
|
73
|
+
timeBasis2 as timeBasis
|
|
74
|
+
};
|
package/dist/timing.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { T as TraditionalPlanet } from './rulers-
|
|
2
|
-
export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-
|
|
3
|
-
import { B as BodyName,
|
|
4
|
-
import { N as NatalSource } from './api-
|
|
1
|
+
import { T as TraditionalPlanet } from './rulers-CSSWtiWF.js';
|
|
2
|
+
export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-CSSWtiWF.js';
|
|
3
|
+
import { B as BodyName, s as PointName, Z as ZodiacSign, E as EphemerisFallback, b as HouseNumber, e as DateInput, j as Sect } from './types-DpPdtXgO.js';
|
|
4
|
+
import { N as NatalSource } from './api-ChL1N2Sr.js';
|
|
5
5
|
import './deltat.js';
|
|
6
|
+
import './time-scale-DIFNa0gz.js';
|
|
6
7
|
import './crossings.js';
|
|
7
8
|
|
|
8
9
|
/** The four angles of a chart with a birth time and place. */
|
|
@@ -27,7 +28,7 @@ interface TimingOrigin {
|
|
|
27
28
|
* depends on a sect that the Sun's altitude at birth contradicts, which can
|
|
28
29
|
* happen only inside the polar circles.
|
|
29
30
|
*/
|
|
30
|
-
type TimingFlag = "outside-reference-span" | "sect-contradicts-altitude";
|
|
31
|
+
type TimingFlag = "outside-reference-span" | "sect-contradicts-altitude" | EphemerisFallback;
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* How a profection year is divided into months, each a sign on from the last.
|
|
@@ -108,9 +109,9 @@ interface ProfectionAt {
|
|
|
108
109
|
/** Options for the dated profections. */
|
|
109
110
|
interface ProfectionOptions {
|
|
110
111
|
/** The natal body, angle or chart point to profect; `"Ascendant"` by default. */
|
|
111
|
-
readonly point?: ChartLongitudeName;
|
|
112
|
+
readonly point?: ChartLongitudeName | undefined;
|
|
112
113
|
/** `"solar"` by default. */
|
|
113
|
-
readonly months?: ProfectionMonthConvention;
|
|
114
|
+
readonly months?: ProfectionMonthConvention | undefined;
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* The profection year of an age, dated, with its months. Year n runs from the
|
|
@@ -203,12 +204,12 @@ interface FirdariaAt {
|
|
|
203
204
|
/** Options for the firdaria functions. */
|
|
204
205
|
interface FirdariaOptions {
|
|
205
206
|
/** Where the nodes fall by night; `"abu-mashar"` by default. */
|
|
206
|
-
readonly variant?: FirdariaVariant;
|
|
207
|
+
readonly variant?: FirdariaVariant | undefined;
|
|
207
208
|
}
|
|
208
209
|
/** Options for {@link firdaria}. */
|
|
209
210
|
interface FirdariaTimelineOptions extends FirdariaOptions {
|
|
210
211
|
/** 75-year cycles to date, 1 to 4; 1 by default. */
|
|
211
|
-
readonly cycles?: number;
|
|
212
|
+
readonly cycles?: number | undefined;
|
|
212
213
|
}
|
|
213
214
|
/**
|
|
214
215
|
* The firdaria lords in order: by day the planets from the Sun, by night from
|
|
@@ -315,14 +316,14 @@ interface ReleasingAt {
|
|
|
315
316
|
/** Options for {@link releasingPeriods} and {@link zodiacalReleasing}. */
|
|
316
317
|
interface ReleasingOptions {
|
|
317
318
|
/** The deepest level, 1 to 4; 2 by default. */
|
|
318
|
-
readonly levels?: ReleasingLevel;
|
|
319
|
+
readonly levels?: ReleasingLevel | undefined;
|
|
319
320
|
/** `"valens-360"` by default. */
|
|
320
|
-
readonly years?: ReleasingYearConvention;
|
|
321
|
+
readonly years?: ReleasingYearConvention | undefined;
|
|
321
322
|
}
|
|
322
323
|
/** Options for {@link releasingAt} and {@link zodiacalReleasingAt}. */
|
|
323
324
|
interface ReleasingAtOptions {
|
|
324
325
|
/** `"valens-360"` by default. */
|
|
325
|
-
readonly years?: ReleasingYearConvention;
|
|
326
|
+
readonly years?: ReleasingYearConvention | undefined;
|
|
326
327
|
}
|
|
327
328
|
/**
|
|
328
329
|
* The periods of levels 1 to `options.levels` (2 by default) that overlap
|
|
@@ -406,17 +407,40 @@ declare function directLongitudes(rows: readonly {
|
|
|
406
407
|
*/
|
|
407
408
|
declare function solarArcDirections(natal: NatalSource, target: DateInput): SolarArcDirections;
|
|
408
409
|
|
|
409
|
-
/**
|
|
410
|
+
/**
|
|
411
|
+
* The bodies a return can be asked for.
|
|
412
|
+
*
|
|
413
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
414
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
415
|
+
* release.
|
|
416
|
+
*/
|
|
410
417
|
type ReturnBody = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto";
|
|
418
|
+
/**
|
|
419
|
+
* The bodies a return can be asked for, in the order of ReturnBody.
|
|
420
|
+
*
|
|
421
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
422
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
423
|
+
* release.
|
|
424
|
+
*/
|
|
411
425
|
declare const RETURN_BODIES: readonly ReturnBody[];
|
|
412
426
|
/**
|
|
413
427
|
* Days between the coarse samples of each body's search: two steps are
|
|
414
428
|
* shorter than the shortest time between two stations from 1800 to 2200
|
|
415
429
|
* (19.75 days for Mercury, 40.75 for Venus, 59.75 for Mars, longer for the
|
|
416
430
|
* others), and one step moves the Moon at most 15.4°.
|
|
431
|
+
*
|
|
432
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
433
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
434
|
+
* release.
|
|
417
435
|
*/
|
|
418
436
|
declare const RETURN_STEP_DAYS: Readonly<Record<ReturnBody, number>>;
|
|
419
|
-
/**
|
|
437
|
+
/**
|
|
438
|
+
* One return: an instant in the window at which the body is on its natal longitude.
|
|
439
|
+
*
|
|
440
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
441
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
442
|
+
* release.
|
|
443
|
+
*/
|
|
420
444
|
interface PlanetaryReturn {
|
|
421
445
|
readonly at: Date;
|
|
422
446
|
/** True when the body was moving backward through the degree. */
|
|
@@ -428,16 +452,26 @@ interface PlanetaryReturn {
|
|
|
428
452
|
*/
|
|
429
453
|
readonly pass: number;
|
|
430
454
|
}
|
|
431
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* `stepDays` (default {@link RETURN_STEP_DAYS}) and `maxSamples`, a budget of longitude evaluations.
|
|
457
|
+
*
|
|
458
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
459
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
460
|
+
* release.
|
|
461
|
+
*/
|
|
432
462
|
interface PlanetaryReturnOptions {
|
|
433
|
-
stepDays?: number;
|
|
434
|
-
maxSamples?: number;
|
|
463
|
+
readonly stepDays?: number | undefined;
|
|
464
|
+
readonly maxSamples?: number | undefined;
|
|
435
465
|
}
|
|
436
466
|
/**
|
|
437
467
|
* The search's verdict with its returns: `"complete"` with every return it
|
|
438
468
|
* found, or `"refused"` with none when the budget ran out. Both carry the
|
|
439
469
|
* body, its natal longitude (the chart's, degrees in [0, 360)), the window,
|
|
440
470
|
* the longitude evaluations made (`samples`) and the result's flags.
|
|
471
|
+
*
|
|
472
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
473
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
474
|
+
* release.
|
|
441
475
|
*/
|
|
442
476
|
type PlanetaryReturns = {
|
|
443
477
|
readonly status: "complete";
|
|
@@ -467,6 +501,10 @@ type PlanetaryReturns = {
|
|
|
467
501
|
* search assumes smooth motion with at most one station in two steps; within
|
|
468
502
|
* that it finds a pair of returns around a station that falls between two
|
|
469
503
|
* samples. Invalid input throws RangeError. Frozen.
|
|
504
|
+
*
|
|
505
|
+
* @experimental Added in 0.1.1-rc.16: how returns
|
|
506
|
+
* are grouped into passes, and the searches' steps, may change in a minor
|
|
507
|
+
* release.
|
|
470
508
|
*/
|
|
471
509
|
declare function planetaryReturns(natal: NatalSource, body: ReturnBody, from: DateInput, to: DateInput, options?: PlanetaryReturnOptions): PlanetaryReturns;
|
|
472
510
|
|
package/dist/timing.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CHALDEAN_ORDER,
|
|
3
|
-
TRADITIONAL_RULERS
|
|
4
|
-
} from "./chunk-A3U2ZS2W.js";
|
|
5
1
|
import {
|
|
6
2
|
PROGRESSION_DAYS_PER_YEAR,
|
|
7
3
|
progressedBodies,
|
|
8
4
|
progressedInstant
|
|
9
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LNGURVNH.js";
|
|
6
|
+
import {
|
|
7
|
+
CHALDEAN_ORDER,
|
|
8
|
+
TRADITIONAL_RULERS
|
|
9
|
+
} from "./chunk-A3U2ZS2W.js";
|
|
10
10
|
import {
|
|
11
11
|
chartDeclinations,
|
|
12
12
|
chartPoints,
|
|
@@ -14,53 +14,40 @@ import {
|
|
|
14
14
|
resolvedChart,
|
|
15
15
|
searchLongitudeCrossings,
|
|
16
16
|
utcOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TZVPZHZM.js";
|
|
18
|
+
import {
|
|
19
|
+
readOptions
|
|
20
|
+
} from "./chunk-47ERTK5X.js";
|
|
21
|
+
import {
|
|
22
|
+
bodyLongitude,
|
|
23
|
+
fallbacksAt
|
|
24
|
+
} from "./chunk-QLIEEICB.js";
|
|
18
25
|
import {
|
|
19
26
|
dateFrom
|
|
20
27
|
} from "./chunk-CPALRSPC.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
bodyLongitude
|
|
25
|
-
} from "./chunk-WOU7JVD3.js";
|
|
28
|
+
import "./chunk-B4M2Y7FT.js";
|
|
29
|
+
import "./chunk-2PZYJQV5.js";
|
|
26
30
|
import {
|
|
27
31
|
outsideReferenceSpan
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-B5LKF437.js";
|
|
33
|
+
import "./chunk-TSS2SZWQ.js";
|
|
34
|
+
import "./chunk-767FTO7O.js";
|
|
35
|
+
import "./chunk-YPU3MDNI.js";
|
|
36
|
+
import "./chunk-Y4E3WJU5.js";
|
|
37
|
+
import "./chunk-NNOSOOWS.js";
|
|
31
38
|
import {
|
|
32
|
-
|
|
39
|
+
SIGN_SLUGS,
|
|
33
40
|
degreeInSign,
|
|
34
41
|
normalizeLongitude,
|
|
35
42
|
signForLongitude,
|
|
36
43
|
signIndexForLongitude
|
|
37
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RMBWKZI2.js";
|
|
45
|
+
import "./chunk-BHJXUY67.js";
|
|
46
|
+
import "./chunk-BMDASNPB.js";
|
|
38
47
|
|
|
39
48
|
// src/timing/shared.ts
|
|
40
49
|
var DAY_MS = 864e5;
|
|
41
50
|
var MAX_DATE_MS = 864e13;
|
|
42
|
-
function readOptions(value, allowed, label) {
|
|
43
|
-
const out = /* @__PURE__ */ Object.create(null);
|
|
44
|
-
if (value === void 0) return out;
|
|
45
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
46
|
-
throw new RangeError(`${label} must be an options object.`);
|
|
47
|
-
}
|
|
48
|
-
const prototype = Object.getPrototypeOf(value);
|
|
49
|
-
if (prototype !== Object.prototype && prototype !== null) {
|
|
50
|
-
throw new RangeError(`${label} must be a plain options object.`);
|
|
51
|
-
}
|
|
52
|
-
for (const key of Reflect.ownKeys(value)) {
|
|
53
|
-
if (typeof key !== "string" || !allowed.includes(key)) {
|
|
54
|
-
throw new RangeError(`${label} has an unknown option: ${String(key)}.`);
|
|
55
|
-
}
|
|
56
|
-
const slot = Object.getOwnPropertyDescriptor(value, key);
|
|
57
|
-
if (!slot || !("value" in slot) || !slot.enumerable) {
|
|
58
|
-
throw new RangeError(`${label} must contain only plain data properties.`);
|
|
59
|
-
}
|
|
60
|
-
if (slot.value !== void 0) out[key] = slot.value;
|
|
61
|
-
}
|
|
62
|
-
return out;
|
|
63
|
-
}
|
|
64
51
|
function oneOf(value, allowed, fallback, label) {
|
|
65
52
|
if (value === void 0) return fallback;
|
|
66
53
|
if (typeof value === "string" && allowed.includes(value)) return value;
|
|
@@ -74,7 +61,7 @@ function integerIn(value, minimum, maximum, label) {
|
|
|
74
61
|
}
|
|
75
62
|
function startSign(value, label) {
|
|
76
63
|
if (typeof value === "string") {
|
|
77
|
-
const index =
|
|
64
|
+
const index = SIGN_SLUGS.indexOf(value);
|
|
78
65
|
if (index >= 0) return { index, lon: null };
|
|
79
66
|
} else if (typeof value === "number" && Number.isFinite(value)) {
|
|
80
67
|
const lon = normalizeLongitude(value);
|
|
@@ -86,7 +73,7 @@ function originOf(index, lon, point) {
|
|
|
86
73
|
return Object.freeze({ point, lon, sign: signAt(index) });
|
|
87
74
|
}
|
|
88
75
|
function signAt(index) {
|
|
89
|
-
const sign =
|
|
76
|
+
const sign = SIGN_SLUGS[(index % 12 + 12) % 12];
|
|
90
77
|
if (sign === void 0) throw new RangeError("Could not resolve zodiac sign.");
|
|
91
78
|
return sign;
|
|
92
79
|
}
|
|
@@ -119,6 +106,7 @@ function timingFlags(instants, sectContradicted) {
|
|
|
119
106
|
flags.push("outside-reference-span");
|
|
120
107
|
}
|
|
121
108
|
if (sectContradicted) flags.push("sect-contradicts-altitude");
|
|
109
|
+
flags.push(...fallbacksAt(instants));
|
|
122
110
|
return Object.freeze(flags);
|
|
123
111
|
}
|
|
124
112
|
function chartLongitudes(chart, points) {
|
|
@@ -558,15 +546,15 @@ var RELEASING_YEAR_CONVENTIONS = /* @__PURE__ */ Object.freeze([
|
|
|
558
546
|
]);
|
|
559
547
|
var DEFAULT_RELEASING_YEARS = "valens-360";
|
|
560
548
|
var RELEASING_UNIT_DAYS = /* @__PURE__ */ Object.freeze({
|
|
561
|
-
"valens-360": /* @__PURE__ */ Object.freeze([360, 30, 2.5,
|
|
562
|
-
"julian-365.25": /* @__PURE__ */ Object.freeze([365.25,
|
|
549
|
+
"valens-360": /* @__PURE__ */ Object.freeze([360, 30, 2.5, 0.20833333333333334]),
|
|
550
|
+
"julian-365.25": /* @__PURE__ */ Object.freeze([365.25, 30.4375, 2.5364583333333335, 0.2113715277777778])
|
|
563
551
|
});
|
|
564
552
|
var LEVEL4_UNIT_MS = /* @__PURE__ */ Object.freeze({
|
|
565
553
|
"valens-360": 18e6,
|
|
566
554
|
"julian-365.25": 18262500
|
|
567
555
|
});
|
|
568
556
|
var LEVEL_SCALE = /* @__PURE__ */ Object.freeze({ 1: 1728, 2: 144, 3: 12, 4: 1 });
|
|
569
|
-
var MINOR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
557
|
+
var MINOR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ SIGN_SLUGS.map((sign) => VALENS_MINOR_YEARS[sign]));
|
|
570
558
|
var MAX_PERIODS = 1e5;
|
|
571
559
|
var CONVENTIONS = /* @__PURE__ */ new Map();
|
|
572
560
|
function conventionsFor3(years) {
|
|
@@ -802,7 +790,7 @@ function solarArcDirections(natal, target) {
|
|
|
802
790
|
}
|
|
803
791
|
|
|
804
792
|
// src/timing/planetary-returns.ts
|
|
805
|
-
var RETURN_BODIES = Object.freeze([
|
|
793
|
+
var RETURN_BODIES = /* @__PURE__ */ Object.freeze([
|
|
806
794
|
"Sun",
|
|
807
795
|
"Moon",
|
|
808
796
|
"Mercury",
|
|
@@ -814,7 +802,7 @@ var RETURN_BODIES = Object.freeze([
|
|
|
814
802
|
"Neptune",
|
|
815
803
|
"Pluto"
|
|
816
804
|
]);
|
|
817
|
-
var RETURN_STEP_DAYS = Object.freeze({
|
|
805
|
+
var RETURN_STEP_DAYS = /* @__PURE__ */ Object.freeze({
|
|
818
806
|
Sun: 5,
|
|
819
807
|
Moon: 1,
|
|
820
808
|
Mercury: 2,
|