kaabalah 3.3.0 → 4.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.
- package/dist/astrology/index.d.mts +47 -22
- package/dist/astrology/index.d.ts +47 -22
- package/dist/astrology/index.js +21 -17
- package/dist/astrology/index.mjs +2 -2
- package/dist/{chunk-6DHXZLYH.mjs → chunk-2Q6OWZV2.mjs} +3 -3
- package/dist/{chunk-6DHXZLYH.mjs.map → chunk-2Q6OWZV2.mjs.map} +1 -1
- package/dist/{chunk-JJ76YVMI.js → chunk-4GW52TEP.js} +18 -18
- package/dist/{chunk-JJ76YVMI.js.map → chunk-4GW52TEP.js.map} +1 -1
- package/dist/chunk-CGCEKFLD.js +685 -0
- package/dist/chunk-CGCEKFLD.js.map +1 -0
- package/dist/chunk-FM7WUVZV.js +26 -0
- package/dist/{chunk-2TUXWMP5.js.map → chunk-FM7WUVZV.js.map} +1 -1
- package/dist/{chunk-7CAIYKIO.js → chunk-LWX4YXES.js} +6 -6
- package/dist/{chunk-7CAIYKIO.js.map → chunk-LWX4YXES.js.map} +1 -1
- package/dist/{chunk-5ISXTWFX.mjs → chunk-MAK5YPPE.mjs} +3 -3
- package/dist/{chunk-5ISXTWFX.mjs.map → chunk-MAK5YPPE.mjs.map} +1 -1
- package/dist/{chunk-4IMODQPK.js → chunk-MFYKYKWX.js} +4 -4
- package/dist/{chunk-4IMODQPK.js.map → chunk-MFYKYKWX.js.map} +1 -1
- package/dist/chunk-P7VAKSJY.mjs +671 -0
- package/dist/chunk-P7VAKSJY.mjs.map +1 -0
- package/dist/chunk-WY6NIR2V.mjs +21 -0
- package/dist/{chunk-PY5SMMJB.mjs.map → chunk-WY6NIR2V.mjs.map} +1 -1
- package/dist/{chunk-3LUQXNH6.mjs → chunk-XQ6PO4OP.mjs} +3 -3
- package/dist/{chunk-3LUQXNH6.mjs.map → chunk-XQ6PO4OP.mjs.map} +1 -1
- package/dist/core/index.js +37 -37
- package/dist/core/index.mjs +2 -2
- package/dist/gematria/index.js +4 -4
- package/dist/gematria/index.mjs +3 -3
- package/dist/ifa/index.js +1 -1
- package/dist/ifa/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -71
- package/dist/index.mjs +5 -5
- package/dist/numerology/index.js +19 -19
- package/dist/numerology/index.mjs +4 -4
- package/dist/swisseph.js +1 -1
- package/dist/swisseph.node-2K5IHMKE.wasm +0 -0
- package/dist/swisseph.node-6H4ISR7M.mjs +3356 -0
- package/dist/swisseph.node-6H4ISR7M.mjs.map +1 -0
- package/dist/swisseph.node-UD2JYYLE.js +3358 -0
- package/dist/swisseph.node-UD2JYYLE.js.map +1 -0
- package/dist/swisseph.node.js +30 -0
- package/dist/swisseph.node.wasm +0 -0
- package/dist/swisseph.wasm +0 -0
- package/dist/swisseph.web-2K5IHMKE.wasm +0 -0
- package/dist/{chunk-KU4LMTWD.js → swisseph.web-MXYBWOOS.js} +43 -472
- package/dist/swisseph.web-MXYBWOOS.js.map +1 -0
- package/dist/{chunk-T7D3HPJZ.mjs → swisseph.web-TSFJI7DQ.mjs} +30 -448
- package/dist/swisseph.web-TSFJI7DQ.mjs.map +1 -0
- package/dist/swisseph.web.js +30 -0
- package/dist/swisseph.web.wasm +0 -0
- package/dist/tarot/index.js +1 -1
- package/dist/tarot/index.mjs +1 -1
- package/dist/wasm/build/swisseph.js +1 -1
- package/dist/wasm/build/swisseph.node-2K5IHMKE.wasm +0 -0
- package/dist/wasm/build/swisseph.node-6H4ISR7M.mjs +3356 -0
- package/dist/wasm/build/swisseph.node-6H4ISR7M.mjs.map +1 -0
- package/dist/wasm/build/swisseph.node-UD2JYYLE.js +3358 -0
- package/dist/wasm/build/swisseph.node-UD2JYYLE.js.map +1 -0
- package/dist/wasm/build/swisseph.node.js +30 -0
- package/dist/wasm/build/swisseph.node.wasm +0 -0
- package/dist/wasm/build/swisseph.wasm +0 -0
- package/dist/wasm/build/swisseph.web-2K5IHMKE.wasm +0 -0
- package/dist/wasm/build/swisseph.web-MXYBWOOS.js +3055 -0
- package/dist/wasm/build/swisseph.web-MXYBWOOS.js.map +1 -0
- package/dist/wasm/build/swisseph.web-TSFJI7DQ.mjs +3053 -0
- package/dist/wasm/build/swisseph.web-TSFJI7DQ.mjs.map +1 -0
- package/dist/wasm/build/swisseph.web.js +30 -0
- package/dist/wasm/build/swisseph.web.wasm +0 -0
- package/package.json +1 -1
- package/wasm/build/swisseph.js +1 -1
- package/wasm/build/swisseph.node.js +30 -0
- package/wasm/build/swisseph.node.wasm +0 -0
- package/wasm/build/swisseph.wasm +0 -0
- package/wasm/build/swisseph.web.js +30 -0
- package/wasm/build/swisseph.web.wasm +0 -0
- package/dist/chunk-2TUXWMP5.js +0 -47
- package/dist/chunk-KU4LMTWD.js.map +0 -1
- package/dist/chunk-PY5SMMJB.mjs +0 -41
- package/dist/chunk-T7D3HPJZ.mjs.map +0 -1
|
@@ -19,6 +19,10 @@ declare enum Planet {
|
|
|
19
19
|
LILITH_TRUE = 13,
|
|
20
20
|
CHIRON = 15
|
|
21
21
|
}
|
|
22
|
+
declare enum VirtualNodes {
|
|
23
|
+
PARS_FORTUNAE = "parsFortunae"
|
|
24
|
+
}
|
|
25
|
+
declare const PLANET_AND_NODE_NAMES: Record<string, string>;
|
|
22
26
|
declare enum HouseSystem {
|
|
23
27
|
PLACIDUS = "P",
|
|
24
28
|
KOCH = "K",
|
|
@@ -46,6 +50,14 @@ declare enum CalcFlag {
|
|
|
46
50
|
TOPOCTR = 32768,
|
|
47
51
|
SIDEREAL = 65536
|
|
48
52
|
}
|
|
53
|
+
interface PlanetPosition {
|
|
54
|
+
longitude: number;
|
|
55
|
+
latitude: number;
|
|
56
|
+
distance: number;
|
|
57
|
+
longitudeSpeed?: number;
|
|
58
|
+
latitudeSpeed?: number;
|
|
59
|
+
distanceSpeed?: number;
|
|
60
|
+
}
|
|
49
61
|
declare const normalizeAngle: (deg: number) => number;
|
|
50
62
|
|
|
51
63
|
/**
|
|
@@ -76,17 +88,41 @@ interface BirthChartOptions {
|
|
|
76
88
|
timezone: number;
|
|
77
89
|
houseSystem?: HouseSystem;
|
|
78
90
|
}
|
|
91
|
+
type ZodiacPosition = {
|
|
92
|
+
sign: string;
|
|
93
|
+
decimalDegrees: number;
|
|
94
|
+
traditionalFormat: string;
|
|
95
|
+
decimal: string;
|
|
96
|
+
longitude: number;
|
|
97
|
+
house: number;
|
|
98
|
+
};
|
|
99
|
+
type HydratedNode = ZodiacPosition & {
|
|
100
|
+
id: VirtualNodes;
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
type HydratedPlanet = PlanetPosition & {
|
|
104
|
+
id: Planet;
|
|
105
|
+
name: string;
|
|
106
|
+
zodiacPosition: ZodiacPosition;
|
|
107
|
+
};
|
|
79
108
|
interface BirthChart {
|
|
80
109
|
dateUtc: Date;
|
|
81
|
-
planets: Record<string,
|
|
82
|
-
|
|
83
|
-
latitude: number;
|
|
84
|
-
distance: number;
|
|
85
|
-
}>;
|
|
110
|
+
planets: Record<string, HydratedPlanet>;
|
|
111
|
+
nodes: Record<string, HydratedNode>;
|
|
86
112
|
houses: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
113
|
+
ascendant: ZodiacPosition;
|
|
114
|
+
mc: ZodiacPosition;
|
|
115
|
+
dc: ZodiacPosition;
|
|
116
|
+
ic: ZodiacPosition;
|
|
117
|
+
houses: ZodiacPosition[];
|
|
118
|
+
ascmc?: {
|
|
119
|
+
armc?: ZodiacPosition;
|
|
120
|
+
vertex?: ZodiacPosition;
|
|
121
|
+
equasc?: ZodiacPosition;
|
|
122
|
+
coasc1?: ZodiacPosition;
|
|
123
|
+
coasc2?: ZodiacPosition;
|
|
124
|
+
polasc?: ZodiacPosition;
|
|
125
|
+
};
|
|
90
126
|
};
|
|
91
127
|
}
|
|
92
128
|
/**
|
|
@@ -110,18 +146,7 @@ declare function formatDegreeMinutes(decimalDegrees: number): string;
|
|
|
110
146
|
* @param longitude Longitude in decimal degrees (0-360)
|
|
111
147
|
* @returns Formatted zodiac position with both decimal and traditional format
|
|
112
148
|
*/
|
|
113
|
-
declare function getZodiacPosition(longitude: number):
|
|
114
|
-
|
|
115
|
-
decimalDegrees: number;
|
|
116
|
-
traditionalFormat: string;
|
|
117
|
-
decimal: string;
|
|
118
|
-
};
|
|
119
|
-
declare function formatHouseCusps(houses360: number[]): {
|
|
120
|
-
house: number;
|
|
121
|
-
sign: string;
|
|
122
|
-
degree: string;
|
|
123
|
-
longitude: number;
|
|
124
|
-
}[];
|
|
125
|
-
declare function findHouseOf(longitude: number, cusps360: number[]): number;
|
|
149
|
+
declare function getZodiacPosition(longitude: number, houseCusps: number[]): ZodiacPosition;
|
|
150
|
+
declare function findHouseOf(longitude: number, housePositions: number[]): number;
|
|
126
151
|
|
|
127
|
-
export { type BirthChart, type BirthChartOptions, CalcFlag, HouseSystem, Planet, SIGNS, closeSwissEph, findHouseOf, formatDegreeMinutes,
|
|
152
|
+
export { type BirthChart, type BirthChartOptions, CalcFlag, HouseSystem, type HydratedNode, type HydratedPlanet, PLANET_AND_NODE_NAMES, Planet, SIGNS, VirtualNodes, type ZodiacPosition, closeSwissEph, findHouseOf, formatDegreeMinutes, getBirthChart, getSwissEph, getZodiacPosition, normalizeAngle };
|
|
@@ -19,6 +19,10 @@ declare enum Planet {
|
|
|
19
19
|
LILITH_TRUE = 13,
|
|
20
20
|
CHIRON = 15
|
|
21
21
|
}
|
|
22
|
+
declare enum VirtualNodes {
|
|
23
|
+
PARS_FORTUNAE = "parsFortunae"
|
|
24
|
+
}
|
|
25
|
+
declare const PLANET_AND_NODE_NAMES: Record<string, string>;
|
|
22
26
|
declare enum HouseSystem {
|
|
23
27
|
PLACIDUS = "P",
|
|
24
28
|
KOCH = "K",
|
|
@@ -46,6 +50,14 @@ declare enum CalcFlag {
|
|
|
46
50
|
TOPOCTR = 32768,
|
|
47
51
|
SIDEREAL = 65536
|
|
48
52
|
}
|
|
53
|
+
interface PlanetPosition {
|
|
54
|
+
longitude: number;
|
|
55
|
+
latitude: number;
|
|
56
|
+
distance: number;
|
|
57
|
+
longitudeSpeed?: number;
|
|
58
|
+
latitudeSpeed?: number;
|
|
59
|
+
distanceSpeed?: number;
|
|
60
|
+
}
|
|
49
61
|
declare const normalizeAngle: (deg: number) => number;
|
|
50
62
|
|
|
51
63
|
/**
|
|
@@ -76,17 +88,41 @@ interface BirthChartOptions {
|
|
|
76
88
|
timezone: number;
|
|
77
89
|
houseSystem?: HouseSystem;
|
|
78
90
|
}
|
|
91
|
+
type ZodiacPosition = {
|
|
92
|
+
sign: string;
|
|
93
|
+
decimalDegrees: number;
|
|
94
|
+
traditionalFormat: string;
|
|
95
|
+
decimal: string;
|
|
96
|
+
longitude: number;
|
|
97
|
+
house: number;
|
|
98
|
+
};
|
|
99
|
+
type HydratedNode = ZodiacPosition & {
|
|
100
|
+
id: VirtualNodes;
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
type HydratedPlanet = PlanetPosition & {
|
|
104
|
+
id: Planet;
|
|
105
|
+
name: string;
|
|
106
|
+
zodiacPosition: ZodiacPosition;
|
|
107
|
+
};
|
|
79
108
|
interface BirthChart {
|
|
80
109
|
dateUtc: Date;
|
|
81
|
-
planets: Record<string,
|
|
82
|
-
|
|
83
|
-
latitude: number;
|
|
84
|
-
distance: number;
|
|
85
|
-
}>;
|
|
110
|
+
planets: Record<string, HydratedPlanet>;
|
|
111
|
+
nodes: Record<string, HydratedNode>;
|
|
86
112
|
houses: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
113
|
+
ascendant: ZodiacPosition;
|
|
114
|
+
mc: ZodiacPosition;
|
|
115
|
+
dc: ZodiacPosition;
|
|
116
|
+
ic: ZodiacPosition;
|
|
117
|
+
houses: ZodiacPosition[];
|
|
118
|
+
ascmc?: {
|
|
119
|
+
armc?: ZodiacPosition;
|
|
120
|
+
vertex?: ZodiacPosition;
|
|
121
|
+
equasc?: ZodiacPosition;
|
|
122
|
+
coasc1?: ZodiacPosition;
|
|
123
|
+
coasc2?: ZodiacPosition;
|
|
124
|
+
polasc?: ZodiacPosition;
|
|
125
|
+
};
|
|
90
126
|
};
|
|
91
127
|
}
|
|
92
128
|
/**
|
|
@@ -110,18 +146,7 @@ declare function formatDegreeMinutes(decimalDegrees: number): string;
|
|
|
110
146
|
* @param longitude Longitude in decimal degrees (0-360)
|
|
111
147
|
* @returns Formatted zodiac position with both decimal and traditional format
|
|
112
148
|
*/
|
|
113
|
-
declare function getZodiacPosition(longitude: number):
|
|
114
|
-
|
|
115
|
-
decimalDegrees: number;
|
|
116
|
-
traditionalFormat: string;
|
|
117
|
-
decimal: string;
|
|
118
|
-
};
|
|
119
|
-
declare function formatHouseCusps(houses360: number[]): {
|
|
120
|
-
house: number;
|
|
121
|
-
sign: string;
|
|
122
|
-
degree: string;
|
|
123
|
-
longitude: number;
|
|
124
|
-
}[];
|
|
125
|
-
declare function findHouseOf(longitude: number, cusps360: number[]): number;
|
|
149
|
+
declare function getZodiacPosition(longitude: number, houseCusps: number[]): ZodiacPosition;
|
|
150
|
+
declare function findHouseOf(longitude: number, housePositions: number[]): number;
|
|
126
151
|
|
|
127
|
-
export { type BirthChart, type BirthChartOptions, CalcFlag, HouseSystem, Planet, SIGNS, closeSwissEph, findHouseOf, formatDegreeMinutes,
|
|
152
|
+
export { type BirthChart, type BirthChartOptions, CalcFlag, HouseSystem, type HydratedNode, type HydratedPlanet, PLANET_AND_NODE_NAMES, Planet, SIGNS, VirtualNodes, type ZodiacPosition, closeSwissEph, findHouseOf, formatDegreeMinutes, getBirthChart, getSwissEph, getZodiacPosition, normalizeAngle };
|
package/dist/astrology/index.js
CHANGED
|
@@ -1,57 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkCGCEKFLD_js = require('../chunk-CGCEKFLD.js');
|
|
4
|
+
require('../chunk-FM7WUVZV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CalcFlag", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkCGCEKFLD_js.CalcFlag; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "HouseSystem", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkCGCEKFLD_js.HouseSystem; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "PLANET_AND_NODE_NAMES", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkCGCEKFLD_js.PLANET_AND_NODE_NAMES; }
|
|
15
19
|
});
|
|
16
20
|
Object.defineProperty(exports, "Planet", {
|
|
17
21
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkCGCEKFLD_js.Planet; }
|
|
19
23
|
});
|
|
20
24
|
Object.defineProperty(exports, "SIGNS", {
|
|
21
25
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkCGCEKFLD_js.SIGNS; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "VirtualNodes", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkCGCEKFLD_js.VirtualNodes; }
|
|
23
31
|
});
|
|
24
32
|
Object.defineProperty(exports, "closeSwissEph", {
|
|
25
33
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkCGCEKFLD_js.closeSwissEph; }
|
|
27
35
|
});
|
|
28
36
|
Object.defineProperty(exports, "findHouseOf", {
|
|
29
37
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkCGCEKFLD_js.findHouseOf; }
|
|
31
39
|
});
|
|
32
40
|
Object.defineProperty(exports, "formatDegreeMinutes", {
|
|
33
41
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "formatHouseCusps", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkKU4LMTWD_js.formatHouseCusps; }
|
|
42
|
+
get: function () { return chunkCGCEKFLD_js.formatDegreeMinutes; }
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "getBirthChart", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkCGCEKFLD_js.getBirthChart; }
|
|
43
47
|
});
|
|
44
48
|
Object.defineProperty(exports, "getSwissEph", {
|
|
45
49
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkCGCEKFLD_js.getSwissEph; }
|
|
47
51
|
});
|
|
48
52
|
Object.defineProperty(exports, "getZodiacPosition", {
|
|
49
53
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkCGCEKFLD_js.getZodiacPosition; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "normalizeAngle", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkCGCEKFLD_js.normalizeAngle; }
|
|
55
59
|
});
|
|
56
60
|
//# sourceMappingURL=index.js.map
|
|
57
61
|
//# sourceMappingURL=index.js.map
|
package/dist/astrology/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CalcFlag, HouseSystem, Planet, SIGNS, closeSwissEph, findHouseOf, formatDegreeMinutes,
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CalcFlag, HouseSystem, PLANET_AND_NODE_NAMES, Planet, SIGNS, VirtualNodes, closeSwissEph, findHouseOf, formatDegreeMinutes, getBirthChart, getSwissEph, getZodiacPosition, normalizeAngle } from '../chunk-P7VAKSJY.mjs';
|
|
2
|
+
import '../chunk-WY6NIR2V.mjs';
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { calculateGematria } from './chunk-
|
|
1
|
+
import { calculateGematria } from './chunk-MAK5YPPE.mjs';
|
|
2
2
|
|
|
3
3
|
// src/numerology/index.ts
|
|
4
4
|
function parseDate(date) {
|
|
@@ -475,5 +475,5 @@ function calculatePersonalCycles(birthDate, today = /* @__PURE__ */ new Date(),
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
export { CYCLE_MEANINGS, MASTER_NUMBERS, calculateChallenges, calculateCycles, calculateFibonacciCycle, calculateKaabalisticLifePath, calculatePersonalCycles, calculatePersonalMonths, calculatePersonalPeriods, calculatePersonalYear, calculateStraightAcrossReductionLifePath, getDateEnergies, isMasterNumber, reduceToSingle, reduceToSingleWithSteps };
|
|
478
|
-
//# sourceMappingURL=chunk-
|
|
479
|
-
//# sourceMappingURL=chunk-
|
|
478
|
+
//# sourceMappingURL=chunk-2Q6OWZV2.mjs.map
|
|
479
|
+
//# sourceMappingURL=chunk-2Q6OWZV2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/numerology/index.ts"],"names":[],"mappings":";;;AAWA,SAAS,UAAU,IAA0D,EAAA;AAC3E,EAAA,IAAI,CAAC,IAAM,EAAA;AACT,IAAM,MAAA,IAAI,MAAM,kBAAkB,CAAA;AAAA;AAGpC,EAAI,IAAA,EAAE,gBAAgB,IAAO,CAAA,EAAA;AAC3B,IAAM,MAAA,IAAI,MAAM,4BAA4B,CAAA;AAAA;AAG9C,EAAA,MAAM,gBAAgB,IAAK,CAAA,WAAA,GAAc,KAAM,CAAA,GAAG,EAAE,CAAC,CAAA;AAErD,EAAI,IAAA,aAAA,CAAc,WAAW,EAAI,EAAA;AAC/B,IAAM,MAAA,IAAI,MAAM,qDAAqD,CAAA;AAAA;AAGvE,EAAM,MAAA,KAAA,GAAQ,aAAc,CAAA,KAAA,CAAM,MAAM,CA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A,KAAA,CAAM,UAAY,EAAA,KAAA,CAAM,SAAS;AAAA,GACvD;AACA,EAAA,MAAM,EAAE,QAAA,EAAa,GAAA,4BAAA,CAA6B,SAAS,CAAA;AAC3D,EAAM,MAAA,UAAA,GAAa,oBAAoB,SAAS,CAAA;AAEhD,EAAA,MAAM,kBACJ,wBAAyB,CAAA,SAAA,EAAW,WAAW,QAAU,EAAA,UAAA,CAAW,cAAc,UAAU,CAAA;AAE9F,EAAM,MAAA;AAAA,IACJ,cAAA;AAAA,IACA,yBAA2B,EAAA;AAAA,GACzB,GAAA,uBAAA,CAAwB,SAAW,EAAA,YAAA,EAAc,KAAK,CAAA;AAG1D,EAAM,MAAA,qBAAA,GAAwB,KAAK,KAAM,CAAA,IAAA,CAAK,IAAI,oBAAsB,EAAA,EAAE,IAAI,CAAC,CAAA;AAE/E,EAAO,OAAA;AAAA,IACL,UAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAA;AAAA,IACA,YAAA;AAAA,IACA,eAAA;AAAA,IACA,cAAA;AAAA,IACA,qBAAA;AAAA,IACA,oBAAA;AAAA,IACA,sBAAwB,EAAA;AAAA,GAC1B;AACF","file":"chunk-6DHXZLYH.mjs","sourcesContent":["/**\n * Numerology calculations\n */\n\nimport { calculateGematria } from \"../gematria\";\n\nexport type ReducedValueWithSteps = {\n reducedValue: number;\n reductionSteps: number[];\n};\n\nfunction parseDate(date: Date): { day: string; month: string; year: string } {\n if (!date) {\n throw new Error(\"Date is required\");\n }\n\n if (!(date instanceof Date)) {\n throw new Error(\"Date must be a Date object\");\n }\n\n const formattedDate = date.toISOString().split(\"T\")[0];\n\n if (formattedDate.length !== 10) {\n throw new Error(\"Date must be in the format YYYY-MM-DD or DD-MM-YYYY\");\n }\n\n const parts = formattedDate.split(/[-/]/).map((p) => p.trim());\n\n const isYYYYMMDD = parts[0].length === 4;\n\n if (isYYYYMMDD) {\n return { day: parts[2], month: parts[1], year: parts[0] };\n } else {\n return { day: parts[0], month: parts[1], year: parts[2] };\n }\n}\n\nfunction mapDatePartsToBlocksOfTwo({\n day,\n month,\n year,\n}: {\n day: string;\n month: string;\n year: string;\n}): { day: string; month: string; year1: string; year2: string } {\n return {\n day: day.padStart(2, \"0\"),\n month: month.padStart(2, \"0\"),\n year1: year.slice(0, 2),\n year2: year.slice(2),\n };\n}\n\nfunction digitSum(n: number): number {\n let s = 0;\n\n for (const ch of String(Math.abs(n))) {\n s += ch.charCodeAt(0) - 48;\n }\n\n return s;\n}\n\nexport const MASTER_NUMBERS = [11, 22, 33, 44];\n\nexport function isMasterNumber(n: number): boolean {\n return MASTER_NUMBERS.includes(n);\n}\n\nexport function reduceToSingle(\n n: number,\n options: { preserveMasters?: boolean } = { preserveMasters: false }\n): number {\n // standard digital root with 0 allowed; never preserve masters here\n if (n === 0) {\n return 0;\n }\n\n let reduced = n;\n while (reduced > 9) {\n if (options?.preserveMasters && isMasterNumber(reduced)) {\n break;\n }\n\n reduced = digitSum(reduced);\n }\n\n // optional tweak for exact \"00\" cases will be applied by caller, not here\n return reduced;\n}\n\nexport function reduceToSingleWithSteps(\n n: number,\n options: { preserveMasters?: boolean } = { preserveMasters: false }\n): ReducedValueWithSteps {\n const steps = [n];\n\n if (n === 0) {\n return {\n reducedValue: 0,\n reductionSteps: steps,\n };\n }\n\n let reduced = n;\n\n while (reduced > 9) {\n if (options?.preserveMasters && isMasterNumber(reduced)) {\n break;\n }\n\n reduced = digitSum(reduced);\n steps.push(reduced);\n }\n\n return {\n reducedValue: reduced,\n reductionSteps: steps,\n };\n}\n\nfunction reduceBlock(block: string): number {\n const n = [...block].reduce(\n (acc, curr) => acc + (curr.charCodeAt(0) - 48),\n 0\n );\n\n if (n === 0) {\n return 0;\n }\n\n return reduceToSingle(n);\n}\n\nexport type KaabalisticLifePathResult = {\n parts: {\n day: string;\n month: string;\n year1: string;\n year2: string;\n };\n reducedParts: {\n reducedDay: number;\n reducedMonth: number;\n reducedYear1: number;\n reducedYear2: number;\n };\n syntheses: {\n dayMonthSynthesis: number;\n yearSynthesis: number;\n reducedDayMonthSynthesis: number;\n reducedYearSynthesis: number;\n finalSynthesis: number;\n };\n lifePath: number;\n /**\n * Last three syntheses\n */\n personalMythologyNumbers: number[];\n};\n\n/**\n * Calculate the Kaabalistic life path number based on a birth date.\n * Note: This method produces more master numbers and never produces life path 2s (or any life path that ends with 0 like 10, 20, 30, etc.)\n */\nexport function calculateKaabalisticLifePath(\n birthDate: Date\n): KaabalisticLifePathResult {\n const { day, month, year1, year2 } = mapDatePartsToBlocksOfTwo(\n parseDate(birthDate)\n );\n\n const reducedDay = reduceBlock(day);\n const reducedMonth = reduceBlock(month);\n const reducedYear1 = reduceBlock(year1);\n const reducedYear2 = reduceBlock(year2);\n\n const dayMonthSynthesis = parseInt(`${reducedDay}${reducedMonth}`, 10);\n const yearSynthesis = parseInt(`${reducedYear1}${reducedYear2}`, 10);\n\n const reducedDayMonthSynthesis = reduceToSingle(dayMonthSynthesis);\n const reducedYearSynthesis = reduceToSingle(yearSynthesis);\n\n const finalSynthesis = parseInt(\n `${reducedDayMonthSynthesis}${reducedYearSynthesis}`,\n 10\n );\n\n const lifePath = reduceToSingle(finalSynthesis, { preserveMasters: true });\n const isMasterLifePath = isMasterNumber(lifePath);\n\n const personalMythologyNumbers = [\n parseInt(`${dayMonthSynthesis}${yearSynthesis}`, 10),\n finalSynthesis,\n ];\n\n if (finalSynthesis !== lifePath) {\n personalMythologyNumbers.push(lifePath);\n }\n\n const reducedLifePath = reduceToSingle(lifePath);\n if (isMasterLifePath) {\n personalMythologyNumbers.push(reducedLifePath);\n }\n\n return {\n parts: { day, month, year1, year2 },\n reducedParts: { reducedDay, reducedMonth, reducedYear1, reducedYear2 },\n syntheses: {\n dayMonthSynthesis,\n yearSynthesis,\n reducedDayMonthSynthesis,\n reducedYearSynthesis,\n finalSynthesis,\n },\n lifePath,\n personalMythologyNumbers,\n };\n}\n\nexport type StraightAcrossReductionLifePathResult = {\n lifePath: number;\n reductionSteps: number[];\n};\n\n/**\n * Calculate the traditional straight across reduction life path number based on a birth date.\n */\nexport function calculateStraightAcrossReductionLifePath(\n birthDate: Date\n): StraightAcrossReductionLifePathResult {\n const { day, month, year } = parseDate(birthDate);\n\n const result = reduceToSingleWithSteps(\n parseInt(`${day}${month}${year}`, 10),\n { preserveMasters: true }\n );\n\n return {\n lifePath: result.reducedValue,\n reductionSteps: result.reductionSteps,\n };\n}\n\nexport type DateEnergies = {\n dayEnergy: ReducedValueWithSteps;\n monthEnergy: ReducedValueWithSteps;\n yearEnergy: ReducedValueWithSteps;\n};\n\nexport function getDateEnergies(birthDate: Date): DateEnergies {\n const { day, month, year1, year2 } = mapDatePartsToBlocksOfTwo(\n parseDate(birthDate)\n );\n\n const dayEnergy = reduceToSingleWithSteps(parseInt(day, 10), {\n preserveMasters: true,\n });\n const monthEnergy = reduceToSingleWithSteps(parseInt(month, 10), {\n preserveMasters: true,\n });\n const yearEnergy = reduceToSingleWithSteps(parseInt(year1 + year2, 10), {\n preserveMasters: true,\n });\n\n return {\n dayEnergy,\n monthEnergy,\n yearEnergy,\n };\n}\n\nexport type Challenges = {\n day: number;\n month: number;\n year: number;\n mainChallenge: number;\n subChallenge1: number;\n subChallenge2: number;\n};\n\nexport function calculateChallenges(birthDate: Date): Challenges {\n const { day, month, year } = parseDate(birthDate);\n\n const reducedDay = reduceToSingle(parseInt(day, 10));\n const reducedMonth = reduceToSingle(parseInt(month, 10));\n const reducedYear = reduceToSingle(parseInt(year, 10));\n\n const subChallenge1 = Math.abs(reducedMonth - reducedDay);\n const subChallenge2 = Math.abs(reducedDay - reducedYear);\n const mainChallenge = Math.abs(subChallenge1 - subChallenge2);\n\n return {\n day: reducedDay,\n month: reducedMonth,\n year: reducedYear,\n mainChallenge,\n subChallenge1,\n subChallenge2,\n };\n}\n\nexport const CYCLE_MEANINGS = [\n {\n title: \"Learning\",\n shortDescription:\n \"A period for assertive action and learning through direct experience.\",\n personalDescription:\n \"This period emphasizes assertive action and learning through direct experience. Utilize personal influence to seek favors, loans, or recognition from influential individuals such as government officials or community leaders. Ideal for enhancing personal reputation and prestige, keeping in mind that all actions carry consequences.\",\n businessDescription:\n \"Ideal for promotional activities aimed at building goodwill, public recognition, and securing endorsements from prominent individuals. Prioritize the company's image and reputation over immediate profits.\",\n astrologySign: \"Aries (Actions Have Consequences)\",\n },\n {\n title: \"Hard Work\",\n shortDescription:\n \"A time for diligent effort and adaptability to temporary changes.\",\n personalDescription:\n \"A period where diligent effort and adaptability are crucial. Suitable for temporary changes such as moving homes, short trips, or career shifts. Avoid long-term commitments or significant investments unless carefully formalized.\",\n businessDescription:\n \"Ideal for short-term experiments, temporary staffing adjustments, and forming beneficial business connections. Steer clear of verbal agreements or long-term commitments unless formally documented. Flexibility leads to progress.\",\n astrologySign: \"Taurus (Stop Being Stubborn)\",\n },\n {\n title: \"Friendship\",\n shortDescription:\n \"A dynamic phase for ambitious projects and strengthening relationships.\",\n personalDescription:\n \"A dynamic and energetic phase ideal for initiating ambitious projects requiring persistence and physical strength. Effective communication strengthens relationships, but impulsiveness should be avoided to prevent conflicts.\",\n businessDescription:\n \"Ideal for expansion, energetic ventures, and assertive promotional activities. Excellent for debt collection but avoid legal conflicts. Maintain vigilance against accidents and disputes while leveraging strong communication.\",\n astrologySign: \"Gemini (Communication is Power)\",\n },\n {\n title: \"Opportunities\",\n shortDescription:\n \"An intellectually fertile time for creativity and quick decision-making.\",\n personalDescription:\n \"An intellectually fertile phase ideal for creative projects, innovation, and quick decision-making. Beware of deception, especially concerning documents or agreements. Foster mental growth and create valuable connections, but remain cautious.\",\n businessDescription:\n \"Perfect for launching impactful marketing campaigns and securing new agreements. Excellent for promotional activities and intellectual creativity, but carefully scrutinize documents to avoid fraud.\",\n astrologySign: \"Cancer (Nurture Mental Growth)\",\n },\n {\n title: \"Tears/Decision\",\n shortDescription:\n \"The most prosperous phase for financial resolution and spiritual advancement.\",\n personalDescription:\n \"The most prosperous phase of the year, suitable for resolving financial issues, starting long journeys, and advancing spiritually. Interact with influential figures, manage debts, and engage in expansive social activities. Keep ego and selfishness balanced for optimal outcomes.\",\n businessDescription:\n \"A prime time for investments, financial growth, global promotion, debt collection, and favorable legal outcomes. Emphasize fairness and generosity to enhance business success.\",\n astrologySign: \"Leo (Balance Ego and Generosity)\",\n },\n {\n title: \"Triple Blessing\",\n shortDescription:\n \"Perfect for pleasures, social activities, and creative pursuits.\",\n personalDescription:\n \"Ideal for enjoying pleasures, social activities, artistic endeavors, and short travels. Favorable for romantic interactions, relaxation, and creative pursuits. Organize personal life to balance enjoyment and refinement effectively.\",\n businessDescription:\n \"Excellent time for promoting luxury products, arts, entertainment, and speculative investments. Ideal for forming friendly business alliances and strategic partnerships.\",\n astrologySign: \"Virgo (Organize Your Pleasures)\",\n },\n {\n title: \"Rest\",\n shortDescription:\n \"A period of rest, introspection, and preparation for renewal.\",\n personalDescription:\n \"A critical period of rest, introspection, and cautious preparation for renewal. Avoid initiating new ventures and instead focus on completing pending matters, managing legal affairs carefully, and protecting existing resources. Balance and patience are essential.\",\n businessDescription:\n \"Period to conserve resources, avoid major expansions, and carefully manage internal restructuring. Postpone significant new ventures until the next cycle. Act diplomatically and cautiously to ensure stability.\",\n astrologySign: \"Libra (Seek Balance and Reconstruction)\",\n },\n];\n\nexport interface Cycle {\n number: number;\n description: {\n title: string;\n shortDescription: string;\n personalDescription: string;\n businessDescription: string;\n astrologySign: string;\n };\n isActive?: boolean;\n cycleStart?: Date;\n}\n\nexport interface CycleInfo {\n yearlyCycles: Cycle[];\n ageCycles: Cycle[];\n monthlyCycles: Cycle[];\n currentYearlyCycle: number | null;\n currentAgeCycle: number | null;\n currentMonthlyCycle: number | null;\n daysInMonthlyCycle: number;\n totalDays: number;\n}\n\n// Add days to a date\nfunction addDays(date: Date, days: number): Date {\n const result = new Date(date);\n result.setDate(result.getDate() + days);\n return result;\n}\n\n// Find the most recent anniversary of the start date\nfunction getMostRecentStartDate(startDate: Date, today: Date): Date {\n const startMonth = startDate.getMonth();\n const startDay = startDate.getDate();\n let recentStart = new Date(today.getFullYear(), startMonth, startDay);\n if (recentStart > today) {\n recentStart = new Date(today.getFullYear() - 1, startMonth, startDay);\n }\n return recentStart;\n}\n\n// Calculate cycles (annual and monthly)\nexport function calculateCycles(startDate: Date, today: Date): CycleInfo {\n const mostRecentStart = getMostRecentStartDate(startDate, today);\n const cycleLength = 52; // Fixed cycle length for monthly cycles\n\n // Skip annual cycle calculation if start date is in the future\n const isFutureDate = startDate > today;\n let currentYearlyCycle = null;\n let currentAgeCycle = null;\n const ageCycles: Cycle[] = [];\n const yearlyCycles: Cycle[] = [];\n if (!isFutureDate) {\n const birthYear = startDate.getFullYear();\n const currentYear = today.getFullYear();\n const ageInYears = currentYear - birthYear;\n currentAgeCycle = (Math.floor(ageInYears / 7) % 7) + 1;\n for (let i = 0; i < 7; i++) {\n // cycle start for year is which year it started\n const cycleStart = new Date(\n birthYear + i * 7,\n startDate.getMonth(),\n startDate.getDate()\n );\n\n const cycle = i + 1;\n const isCurrentCycle = cycle === currentAgeCycle;\n\n if (isCurrentCycle) {\n // Calculate yearly cycles within the current age cycle\n // The yearly cycle is based on the person's exact age in years\n // For example, if someone is 6 years old, they're in the 1st age cycle (0-7 years) and the 6th yearly cycle\n const yearsSinceBirth = ageInYears;\n const yearWithinAgeCycle = yearsSinceBirth % 7; // 0-6 representing which year within the current age cycle\n currentYearlyCycle = yearWithinAgeCycle + 1; // Convert to 1-7 range\n\n for (let j = 0; j < 7; j++) {\n // Calculate the start date for each yearly cycle within the current age cycle\n const ageCycleStartYear = birthYear + Math.floor(ageInYears / 7) * 7; // Start year of current age cycle\n const yearlyCycleStart = new Date(\n ageCycleStartYear + j,\n startDate.getMonth(),\n startDate.getDate()\n );\n const yearlyCycle = j + 1;\n\n const isCurrentYearlyCycle = yearlyCycle === currentYearlyCycle;\n\n yearlyCycles.push({\n number: yearlyCycle,\n description: CYCLE_MEANINGS[j],\n isActive: isCurrentYearlyCycle,\n cycleStart: yearlyCycleStart,\n });\n }\n }\n\n ageCycles.push({\n number: cycle,\n description: CYCLE_MEANINGS[i],\n isActive: isCurrentCycle,\n cycleStart,\n });\n }\n }\n\n // Monthly cycles (relative to start date)\n const monthlyCycles: Cycle[] = [];\n for (let i = 0; i < 7; i++) {\n const cycleStart = addDays(mostRecentStart, i * cycleLength);\n\n monthlyCycles.push({\n number: i + 1,\n description: CYCLE_MEANINGS[i],\n isActive: false,\n cycleStart: cycleStart,\n });\n }\n\n // Find current monthly cycle\n let currentMonthlyCycle = null;\n let daysInMonthlyCycle = 0;\n for (let i = 0; i < 7; i++) {\n const cycleStart = addDays(mostRecentStart, i * cycleLength);\n const nextCycleStart =\n i < 6\n ? addDays(mostRecentStart, (i + 1) * cycleLength)\n : addDays(mostRecentStart, 366);\n if (today >= cycleStart && today < nextCycleStart) {\n currentMonthlyCycle = i + 1;\n daysInMonthlyCycle =\n Math.floor(\n (today.getTime() - cycleStart.getTime()) / (1000 * 60 * 60 * 24)\n ) + 1;\n monthlyCycles[i].isActive = true;\n break;\n }\n }\n\n const totalDays =\n Math.floor(\n (today.getTime() - mostRecentStart.getTime()) / (1000 * 60 * 60 * 24)\n ) + 1;\n\n return {\n yearlyCycles,\n ageCycles,\n monthlyCycles,\n currentYearlyCycle,\n currentAgeCycle,\n currentMonthlyCycle,\n daysInMonthlyCycle,\n totalDays,\n };\n}\n\nfunction calculateAge(birthDate: Date, today: Date = new Date()): number {\n return today.getFullYear() - birthDate.getFullYear();\n}\n\nexport type FibonacciCycle = {\n currentAge: number;\n cycle1: ReducedValueWithSteps;\n cycle2: ReducedValueWithSteps;\n cycle3: ReducedValueWithSteps;\n cycle4: ReducedValueWithSteps;\n cycle5: ReducedValueWithSteps;\n cycle6: ReducedValueWithSteps;\n cycle7: ReducedValueWithSteps;\n};\n\nexport function calculateFibonacciCycle(\n birthDate: Date,\n today: Date\n): FibonacciCycle {\n const currentAge = calculateAge(birthDate, today);\n\n const cycle1 = reduceToSingleWithSteps(currentAge);\n const cycle2 = reduceToSingleWithSteps(cycle1.reducedValue + 2);\n const cycle3 = reduceToSingleWithSteps(\n cycle1.reducedValue + cycle2.reductionSteps[0]\n );\n const cycle4 = reduceToSingleWithSteps(\n cycle2.reductionSteps[0] + cycle3.reductionSteps[0]\n );\n const cycle5 = reduceToSingleWithSteps(\n cycle3.reductionSteps[0] + cycle4.reductionSteps[0]\n );\n const cycle6 = reduceToSingleWithSteps(\n cycle4.reductionSteps[0] + cycle5.reductionSteps[0]\n );\n const cycle7 = reduceToSingleWithSteps(\n cycle5.reductionSteps[0] + cycle6.reductionSteps[0]\n );\n\n return {\n currentAge,\n cycle1,\n cycle2,\n cycle3,\n cycle4,\n cycle5,\n cycle6,\n cycle7,\n };\n}\n\nexport type PersonalPeriod = {\n startMonth: number;\n endMonth: number;\n value: ReducedValueWithSteps;\n};\n\nexport type PersonalMonth = {\n month: number;\n value: ReducedValueWithSteps;\n};\n\nexport type PersonalCycles = {\n personalYear: ReducedValueWithSteps;\n personalPeriods: [PersonalPeriod, PersonalPeriod, PersonalPeriod];\n personalMonths: [\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth\n ];\n currentPersonalPeriod: number;\n currentPersonalMonth: number;\n currentAge: number;\n lifePath: number;\n soulNumber?: ReducedValueWithSteps;\n yearUsedOnCalculations: number;\n};\n\nfunction calculateSoulNumber(firstName: string): ReducedValueWithSteps {\n const vowels = calculateGematria(firstName).vowels;\n\n return {\n reducedValue: vowels.finalValue,\n reductionSteps: vowels.reductionSteps,\n }\n}\n\n/**\n * This function wraps the month number to a 1-12 range.\n */\nfunction wrapMonth(month: number): number {\n const wrappedMonth = (((month - 1) % 12) + 12) % 12;\n\n return wrappedMonth + 1;\n}\n\n/**\n * Returns the year of the most recent birthday relative to today.\n */\nfunction getLastBirthdayYear(birthDate: Date, today: Date): number {\n const thisYearsBirthday = new Date(\n today.getFullYear(),\n birthDate.getMonth(),\n birthDate.getDate()\n );\n\n return today >= thisYearsBirthday\n ? today.getFullYear()\n : today.getFullYear() - 1;\n}\n\nexport function calculatePersonalYear(\n birthDate: Date,\n today: Date = new Date()\n): ReducedValueWithSteps {\n const { day, month } = parseDate(birthDate);\n const yearToUse = getLastBirthdayYear(birthDate, today);\n\n return reduceToSingleWithSteps(\n parseInt(day, 10) + parseInt(month, 10) + yearToUse,\n { preserveMasters: true }\n );\n}\n\nexport function calculatePersonalPeriods(\n birthDate: Date,\n yearToUse: number,\n lifePath: number,\n soulNumber: number,\n currentAge: number\n): [PersonalPeriod, PersonalPeriod, PersonalPeriod] {\n const { month } = parseDate(birthDate);\n const birthMonth = parseInt(month, 10);\n\n const periods: [PersonalPeriod, PersonalPeriod, PersonalPeriod] = [\n {\n startMonth: wrapMonth(birthMonth + 0),\n endMonth: wrapMonth(birthMonth + 3),\n value: reduceToSingleWithSteps(yearToUse + currentAge, {\n preserveMasters: true,\n }),\n },\n {\n startMonth: wrapMonth(birthMonth + 4),\n endMonth: wrapMonth(birthMonth + 7),\n value: reduceToSingleWithSteps(yearToUse + lifePath, {\n preserveMasters: true,\n }),\n },\n {\n startMonth: wrapMonth(birthMonth + 8),\n endMonth: wrapMonth(birthMonth + 11),\n value: reduceToSingleWithSteps(yearToUse + soulNumber, {\n preserveMasters: true,\n }),\n },\n ];\n\n return periods;\n}\n\nfunction diffInPersonalMonths(birthDate: Date, today: Date): number {\n const lastYear = getLastBirthdayYear(birthDate, today);\n const base = new Date(lastYear, birthDate.getMonth(), birthDate.getDate());\n\n let k =\n (today.getFullYear() - base.getFullYear()) * 12 +\n (today.getMonth() - base.getMonth());\n\n // Only advance to the next personal month on the birth *day* each month\n if (today.getDate() < birthDate.getDate()) {\n k -= 1;\n }\n\n if (k < 0) k = 0;\n if (k > 12) k = 12; \n\n return k;\n}\n\nexport function calculatePersonalMonths(\n birthDate: Date,\n personalYear: ReducedValueWithSteps,\n today: Date\n): {\n personalMonths: PersonalCycles[\"personalMonths\"];\n currentPersonalMonthIndex: number;\n} {\n const { month } = parseDate(birthDate);\n const firstPersonalMonth = parseInt(month, 10);\n\n const personalMonths: PersonalMonth[] = [];\n for (let i = 0; i < 12; i++) {\n const m = wrapMonth(firstPersonalMonth + i);\n const value = reduceToSingleWithSteps(personalYear.reducedValue + m, {\n preserveMasters: true,\n });\n personalMonths.push({ month: m, value });\n }\n\n const currentPersonalMonthIndex = diffInPersonalMonths(birthDate, today);\n\n return {\n personalMonths: personalMonths as PersonalCycles[\"personalMonths\"],\n currentPersonalMonthIndex,\n };\n}\n\nexport function calculatePersonalCycles(\n birthDate: Date,\n today: Date = new Date(),\n firstName: string\n): PersonalCycles {\n const yearToUse = getLastBirthdayYear(birthDate, today);\n\n const personalYear = calculatePersonalYear(birthDate, today);\n\n const currentAge = calculateAge(\n birthDate,\n new Date(yearToUse, today.getMonth(), today.getDate())\n );\n const { lifePath } = calculateKaabalisticLifePath(birthDate);\n const soulNumber = calculateSoulNumber(firstName);\n\n const personalPeriods =\n calculatePersonalPeriods(birthDate, yearToUse, lifePath, soulNumber.reducedValue, currentAge);\n\n const {\n personalMonths,\n currentPersonalMonthIndex: currentPersonalMonth,\n } = calculatePersonalMonths(birthDate, personalYear, today);\n \n // Derive the period from the month index (0–12). Clamp 12 to last period.\n const currentPersonalPeriod = Math.floor(Math.min(currentPersonalMonth, 11) / 4);\n\n return {\n currentAge,\n lifePath,\n soulNumber,\n personalYear,\n personalPeriods,\n personalMonths,\n currentPersonalPeriod,\n currentPersonalMonth,\n yearUsedOnCalculations: yearToUse,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/numerology/index.ts"],"names":[],"mappings":";;;AAWA,SAAS,UAAU,IAA0D,EAAA;AAC3E,EAAA,IAAI,CAAC,IAAM,EAAA;AACT,IAAM,MAAA,IAAI,MAAM,kBAAkB,CAAA;AAAA;AAGpC,EAAI,IAAA,EAAE,gBAAgB,IA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IACA;AAAA,GACF;AACF;AAEO,SAAS,wBACd,SACA,EAAA,KAAA,mBAAkB,IAAA,IAAA,IAClB,SACgB,EAAA;AAChB,EAAM,MAAA,SAAA,GAAY,mBAAoB,CAAA,SAAA,EAAW,KAAK,CAAA;AAEtD,EAAM,MAAA,YAAA,GAAe,qBAAsB,CAAA,SAAA,EAAW,KAAK,CAAA;AAE3D,EAAA,MAAM,UAAa,GAAA,YAAA;AAAA,IACjB,SAAA;AAAA,IACA,IAAI,KAAK,SAAW,EAAA,KAAA,CAAM,UAAY,EAAA,KAAA,CAAM,SAAS;AAAA,GACvD;AACA,EAAA,MAAM,EAAE,QAAA,EAAa,GAAA,4BAAA,CAA6B,SAAS,CAAA;AAC3D,EAAM,MAAA,UAAA,GAAa,oBAAoB,SAAS,CAAA;AAEhD,EAAA,MAAM,kBACJ,wBAAyB,CAAA,SAAA,EAAW,WAAW,QAAU,EAAA,UAAA,CAAW,cAAc,UAAU,CAAA;AAE9F,EAAM,MAAA;AAAA,IACJ,cAAA;AAAA,IACA,yBAA2B,EAAA;AAAA,GACzB,GAAA,uBAAA,CAAwB,SAAW,EAAA,YAAA,EAAc,KAAK,CAAA;AAG1D,EAAM,MAAA,qBAAA,GAAwB,KAAK,KAAM,CAAA,IAAA,CAAK,IAAI,oBAAsB,EAAA,EAAE,IAAI,CAAC,CAAA;AAE/E,EAAO,OAAA;AAAA,IACL,UAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAA;AAAA,IACA,YAAA;AAAA,IACA,eAAA;AAAA,IACA,cAAA;AAAA,IACA,qBAAA;AAAA,IACA,oBAAA;AAAA,IACA,sBAAwB,EAAA;AAAA,GAC1B;AACF","file":"chunk-2Q6OWZV2.mjs","sourcesContent":["/**\n * Numerology calculations\n */\n\nimport { calculateGematria } from \"../gematria\";\n\nexport type ReducedValueWithSteps = {\n reducedValue: number;\n reductionSteps: number[];\n};\n\nfunction parseDate(date: Date): { day: string; month: string; year: string } {\n if (!date) {\n throw new Error(\"Date is required\");\n }\n\n if (!(date instanceof Date)) {\n throw new Error(\"Date must be a Date object\");\n }\n\n const formattedDate = date.toISOString().split(\"T\")[0];\n\n if (formattedDate.length !== 10) {\n throw new Error(\"Date must be in the format YYYY-MM-DD or DD-MM-YYYY\");\n }\n\n const parts = formattedDate.split(/[-/]/).map((p) => p.trim());\n\n const isYYYYMMDD = parts[0].length === 4;\n\n if (isYYYYMMDD) {\n return { day: parts[2], month: parts[1], year: parts[0] };\n } else {\n return { day: parts[0], month: parts[1], year: parts[2] };\n }\n}\n\nfunction mapDatePartsToBlocksOfTwo({\n day,\n month,\n year,\n}: {\n day: string;\n month: string;\n year: string;\n}): { day: string; month: string; year1: string; year2: string } {\n return {\n day: day.padStart(2, \"0\"),\n month: month.padStart(2, \"0\"),\n year1: year.slice(0, 2),\n year2: year.slice(2),\n };\n}\n\nfunction digitSum(n: number): number {\n let s = 0;\n\n for (const ch of String(Math.abs(n))) {\n s += ch.charCodeAt(0) - 48;\n }\n\n return s;\n}\n\nexport const MASTER_NUMBERS = [11, 22, 33, 44];\n\nexport function isMasterNumber(n: number): boolean {\n return MASTER_NUMBERS.includes(n);\n}\n\nexport function reduceToSingle(\n n: number,\n options: { preserveMasters?: boolean } = { preserveMasters: false }\n): number {\n // standard digital root with 0 allowed; never preserve masters here\n if (n === 0) {\n return 0;\n }\n\n let reduced = n;\n while (reduced > 9) {\n if (options?.preserveMasters && isMasterNumber(reduced)) {\n break;\n }\n\n reduced = digitSum(reduced);\n }\n\n // optional tweak for exact \"00\" cases will be applied by caller, not here\n return reduced;\n}\n\nexport function reduceToSingleWithSteps(\n n: number,\n options: { preserveMasters?: boolean } = { preserveMasters: false }\n): ReducedValueWithSteps {\n const steps = [n];\n\n if (n === 0) {\n return {\n reducedValue: 0,\n reductionSteps: steps,\n };\n }\n\n let reduced = n;\n\n while (reduced > 9) {\n if (options?.preserveMasters && isMasterNumber(reduced)) {\n break;\n }\n\n reduced = digitSum(reduced);\n steps.push(reduced);\n }\n\n return {\n reducedValue: reduced,\n reductionSteps: steps,\n };\n}\n\nfunction reduceBlock(block: string): number {\n const n = [...block].reduce(\n (acc, curr) => acc + (curr.charCodeAt(0) - 48),\n 0\n );\n\n if (n === 0) {\n return 0;\n }\n\n return reduceToSingle(n);\n}\n\nexport type KaabalisticLifePathResult = {\n parts: {\n day: string;\n month: string;\n year1: string;\n year2: string;\n };\n reducedParts: {\n reducedDay: number;\n reducedMonth: number;\n reducedYear1: number;\n reducedYear2: number;\n };\n syntheses: {\n dayMonthSynthesis: number;\n yearSynthesis: number;\n reducedDayMonthSynthesis: number;\n reducedYearSynthesis: number;\n finalSynthesis: number;\n };\n lifePath: number;\n /**\n * Last three syntheses\n */\n personalMythologyNumbers: number[];\n};\n\n/**\n * Calculate the Kaabalistic life path number based on a birth date.\n * Note: This method produces more master numbers and never produces life path 2s (or any life path that ends with 0 like 10, 20, 30, etc.)\n */\nexport function calculateKaabalisticLifePath(\n birthDate: Date\n): KaabalisticLifePathResult {\n const { day, month, year1, year2 } = mapDatePartsToBlocksOfTwo(\n parseDate(birthDate)\n );\n\n const reducedDay = reduceBlock(day);\n const reducedMonth = reduceBlock(month);\n const reducedYear1 = reduceBlock(year1);\n const reducedYear2 = reduceBlock(year2);\n\n const dayMonthSynthesis = parseInt(`${reducedDay}${reducedMonth}`, 10);\n const yearSynthesis = parseInt(`${reducedYear1}${reducedYear2}`, 10);\n\n const reducedDayMonthSynthesis = reduceToSingle(dayMonthSynthesis);\n const reducedYearSynthesis = reduceToSingle(yearSynthesis);\n\n const finalSynthesis = parseInt(\n `${reducedDayMonthSynthesis}${reducedYearSynthesis}`,\n 10\n );\n\n const lifePath = reduceToSingle(finalSynthesis, { preserveMasters: true });\n const isMasterLifePath = isMasterNumber(lifePath);\n\n const personalMythologyNumbers = [\n parseInt(`${dayMonthSynthesis}${yearSynthesis}`, 10),\n finalSynthesis,\n ];\n\n if (finalSynthesis !== lifePath) {\n personalMythologyNumbers.push(lifePath);\n }\n\n const reducedLifePath = reduceToSingle(lifePath);\n if (isMasterLifePath) {\n personalMythologyNumbers.push(reducedLifePath);\n }\n\n return {\n parts: { day, month, year1, year2 },\n reducedParts: { reducedDay, reducedMonth, reducedYear1, reducedYear2 },\n syntheses: {\n dayMonthSynthesis,\n yearSynthesis,\n reducedDayMonthSynthesis,\n reducedYearSynthesis,\n finalSynthesis,\n },\n lifePath,\n personalMythologyNumbers,\n };\n}\n\nexport type StraightAcrossReductionLifePathResult = {\n lifePath: number;\n reductionSteps: number[];\n};\n\n/**\n * Calculate the traditional straight across reduction life path number based on a birth date.\n */\nexport function calculateStraightAcrossReductionLifePath(\n birthDate: Date\n): StraightAcrossReductionLifePathResult {\n const { day, month, year } = parseDate(birthDate);\n\n const result = reduceToSingleWithSteps(\n parseInt(`${day}${month}${year}`, 10),\n { preserveMasters: true }\n );\n\n return {\n lifePath: result.reducedValue,\n reductionSteps: result.reductionSteps,\n };\n}\n\nexport type DateEnergies = {\n dayEnergy: ReducedValueWithSteps;\n monthEnergy: ReducedValueWithSteps;\n yearEnergy: ReducedValueWithSteps;\n};\n\nexport function getDateEnergies(birthDate: Date): DateEnergies {\n const { day, month, year1, year2 } = mapDatePartsToBlocksOfTwo(\n parseDate(birthDate)\n );\n\n const dayEnergy = reduceToSingleWithSteps(parseInt(day, 10), {\n preserveMasters: true,\n });\n const monthEnergy = reduceToSingleWithSteps(parseInt(month, 10), {\n preserveMasters: true,\n });\n const yearEnergy = reduceToSingleWithSteps(parseInt(year1 + year2, 10), {\n preserveMasters: true,\n });\n\n return {\n dayEnergy,\n monthEnergy,\n yearEnergy,\n };\n}\n\nexport type Challenges = {\n day: number;\n month: number;\n year: number;\n mainChallenge: number;\n subChallenge1: number;\n subChallenge2: number;\n};\n\nexport function calculateChallenges(birthDate: Date): Challenges {\n const { day, month, year } = parseDate(birthDate);\n\n const reducedDay = reduceToSingle(parseInt(day, 10));\n const reducedMonth = reduceToSingle(parseInt(month, 10));\n const reducedYear = reduceToSingle(parseInt(year, 10));\n\n const subChallenge1 = Math.abs(reducedMonth - reducedDay);\n const subChallenge2 = Math.abs(reducedDay - reducedYear);\n const mainChallenge = Math.abs(subChallenge1 - subChallenge2);\n\n return {\n day: reducedDay,\n month: reducedMonth,\n year: reducedYear,\n mainChallenge,\n subChallenge1,\n subChallenge2,\n };\n}\n\nexport const CYCLE_MEANINGS = [\n {\n title: \"Learning\",\n shortDescription:\n \"A period for assertive action and learning through direct experience.\",\n personalDescription:\n \"This period emphasizes assertive action and learning through direct experience. Utilize personal influence to seek favors, loans, or recognition from influential individuals such as government officials or community leaders. Ideal for enhancing personal reputation and prestige, keeping in mind that all actions carry consequences.\",\n businessDescription:\n \"Ideal for promotional activities aimed at building goodwill, public recognition, and securing endorsements from prominent individuals. Prioritize the company's image and reputation over immediate profits.\",\n astrologySign: \"Aries (Actions Have Consequences)\",\n },\n {\n title: \"Hard Work\",\n shortDescription:\n \"A time for diligent effort and adaptability to temporary changes.\",\n personalDescription:\n \"A period where diligent effort and adaptability are crucial. Suitable for temporary changes such as moving homes, short trips, or career shifts. Avoid long-term commitments or significant investments unless carefully formalized.\",\n businessDescription:\n \"Ideal for short-term experiments, temporary staffing adjustments, and forming beneficial business connections. Steer clear of verbal agreements or long-term commitments unless formally documented. Flexibility leads to progress.\",\n astrologySign: \"Taurus (Stop Being Stubborn)\",\n },\n {\n title: \"Friendship\",\n shortDescription:\n \"A dynamic phase for ambitious projects and strengthening relationships.\",\n personalDescription:\n \"A dynamic and energetic phase ideal for initiating ambitious projects requiring persistence and physical strength. Effective communication strengthens relationships, but impulsiveness should be avoided to prevent conflicts.\",\n businessDescription:\n \"Ideal for expansion, energetic ventures, and assertive promotional activities. Excellent for debt collection but avoid legal conflicts. Maintain vigilance against accidents and disputes while leveraging strong communication.\",\n astrologySign: \"Gemini (Communication is Power)\",\n },\n {\n title: \"Opportunities\",\n shortDescription:\n \"An intellectually fertile time for creativity and quick decision-making.\",\n personalDescription:\n \"An intellectually fertile phase ideal for creative projects, innovation, and quick decision-making. Beware of deception, especially concerning documents or agreements. Foster mental growth and create valuable connections, but remain cautious.\",\n businessDescription:\n \"Perfect for launching impactful marketing campaigns and securing new agreements. Excellent for promotional activities and intellectual creativity, but carefully scrutinize documents to avoid fraud.\",\n astrologySign: \"Cancer (Nurture Mental Growth)\",\n },\n {\n title: \"Tears/Decision\",\n shortDescription:\n \"The most prosperous phase for financial resolution and spiritual advancement.\",\n personalDescription:\n \"The most prosperous phase of the year, suitable for resolving financial issues, starting long journeys, and advancing spiritually. Interact with influential figures, manage debts, and engage in expansive social activities. Keep ego and selfishness balanced for optimal outcomes.\",\n businessDescription:\n \"A prime time for investments, financial growth, global promotion, debt collection, and favorable legal outcomes. Emphasize fairness and generosity to enhance business success.\",\n astrologySign: \"Leo (Balance Ego and Generosity)\",\n },\n {\n title: \"Triple Blessing\",\n shortDescription:\n \"Perfect for pleasures, social activities, and creative pursuits.\",\n personalDescription:\n \"Ideal for enjoying pleasures, social activities, artistic endeavors, and short travels. Favorable for romantic interactions, relaxation, and creative pursuits. Organize personal life to balance enjoyment and refinement effectively.\",\n businessDescription:\n \"Excellent time for promoting luxury products, arts, entertainment, and speculative investments. Ideal for forming friendly business alliances and strategic partnerships.\",\n astrologySign: \"Virgo (Organize Your Pleasures)\",\n },\n {\n title: \"Rest\",\n shortDescription:\n \"A period of rest, introspection, and preparation for renewal.\",\n personalDescription:\n \"A critical period of rest, introspection, and cautious preparation for renewal. Avoid initiating new ventures and instead focus on completing pending matters, managing legal affairs carefully, and protecting existing resources. Balance and patience are essential.\",\n businessDescription:\n \"Period to conserve resources, avoid major expansions, and carefully manage internal restructuring. Postpone significant new ventures until the next cycle. Act diplomatically and cautiously to ensure stability.\",\n astrologySign: \"Libra (Seek Balance and Reconstruction)\",\n },\n];\n\nexport interface Cycle {\n number: number;\n description: {\n title: string;\n shortDescription: string;\n personalDescription: string;\n businessDescription: string;\n astrologySign: string;\n };\n isActive?: boolean;\n cycleStart?: Date;\n}\n\nexport interface CycleInfo {\n yearlyCycles: Cycle[];\n ageCycles: Cycle[];\n monthlyCycles: Cycle[];\n currentYearlyCycle: number | null;\n currentAgeCycle: number | null;\n currentMonthlyCycle: number | null;\n daysInMonthlyCycle: number;\n totalDays: number;\n}\n\n// Add days to a date\nfunction addDays(date: Date, days: number): Date {\n const result = new Date(date);\n result.setDate(result.getDate() + days);\n return result;\n}\n\n// Find the most recent anniversary of the start date\nfunction getMostRecentStartDate(startDate: Date, today: Date): Date {\n const startMonth = startDate.getMonth();\n const startDay = startDate.getDate();\n let recentStart = new Date(today.getFullYear(), startMonth, startDay);\n if (recentStart > today) {\n recentStart = new Date(today.getFullYear() - 1, startMonth, startDay);\n }\n return recentStart;\n}\n\n// Calculate cycles (annual and monthly)\nexport function calculateCycles(startDate: Date, today: Date): CycleInfo {\n const mostRecentStart = getMostRecentStartDate(startDate, today);\n const cycleLength = 52; // Fixed cycle length for monthly cycles\n\n // Skip annual cycle calculation if start date is in the future\n const isFutureDate = startDate > today;\n let currentYearlyCycle = null;\n let currentAgeCycle = null;\n const ageCycles: Cycle[] = [];\n const yearlyCycles: Cycle[] = [];\n if (!isFutureDate) {\n const birthYear = startDate.getFullYear();\n const currentYear = today.getFullYear();\n const ageInYears = currentYear - birthYear;\n currentAgeCycle = (Math.floor(ageInYears / 7) % 7) + 1;\n for (let i = 0; i < 7; i++) {\n // cycle start for year is which year it started\n const cycleStart = new Date(\n birthYear + i * 7,\n startDate.getMonth(),\n startDate.getDate()\n );\n\n const cycle = i + 1;\n const isCurrentCycle = cycle === currentAgeCycle;\n\n if (isCurrentCycle) {\n // Calculate yearly cycles within the current age cycle\n // The yearly cycle is based on the person's exact age in years\n // For example, if someone is 6 years old, they're in the 1st age cycle (0-7 years) and the 6th yearly cycle\n const yearsSinceBirth = ageInYears;\n const yearWithinAgeCycle = yearsSinceBirth % 7; // 0-6 representing which year within the current age cycle\n currentYearlyCycle = yearWithinAgeCycle + 1; // Convert to 1-7 range\n\n for (let j = 0; j < 7; j++) {\n // Calculate the start date for each yearly cycle within the current age cycle\n const ageCycleStartYear = birthYear + Math.floor(ageInYears / 7) * 7; // Start year of current age cycle\n const yearlyCycleStart = new Date(\n ageCycleStartYear + j,\n startDate.getMonth(),\n startDate.getDate()\n );\n const yearlyCycle = j + 1;\n\n const isCurrentYearlyCycle = yearlyCycle === currentYearlyCycle;\n\n yearlyCycles.push({\n number: yearlyCycle,\n description: CYCLE_MEANINGS[j],\n isActive: isCurrentYearlyCycle,\n cycleStart: yearlyCycleStart,\n });\n }\n }\n\n ageCycles.push({\n number: cycle,\n description: CYCLE_MEANINGS[i],\n isActive: isCurrentCycle,\n cycleStart,\n });\n }\n }\n\n // Monthly cycles (relative to start date)\n const monthlyCycles: Cycle[] = [];\n for (let i = 0; i < 7; i++) {\n const cycleStart = addDays(mostRecentStart, i * cycleLength);\n\n monthlyCycles.push({\n number: i + 1,\n description: CYCLE_MEANINGS[i],\n isActive: false,\n cycleStart: cycleStart,\n });\n }\n\n // Find current monthly cycle\n let currentMonthlyCycle = null;\n let daysInMonthlyCycle = 0;\n for (let i = 0; i < 7; i++) {\n const cycleStart = addDays(mostRecentStart, i * cycleLength);\n const nextCycleStart =\n i < 6\n ? addDays(mostRecentStart, (i + 1) * cycleLength)\n : addDays(mostRecentStart, 366);\n if (today >= cycleStart && today < nextCycleStart) {\n currentMonthlyCycle = i + 1;\n daysInMonthlyCycle =\n Math.floor(\n (today.getTime() - cycleStart.getTime()) / (1000 * 60 * 60 * 24)\n ) + 1;\n monthlyCycles[i].isActive = true;\n break;\n }\n }\n\n const totalDays =\n Math.floor(\n (today.getTime() - mostRecentStart.getTime()) / (1000 * 60 * 60 * 24)\n ) + 1;\n\n return {\n yearlyCycles,\n ageCycles,\n monthlyCycles,\n currentYearlyCycle,\n currentAgeCycle,\n currentMonthlyCycle,\n daysInMonthlyCycle,\n totalDays,\n };\n}\n\nfunction calculateAge(birthDate: Date, today: Date = new Date()): number {\n return today.getFullYear() - birthDate.getFullYear();\n}\n\nexport type FibonacciCycle = {\n currentAge: number;\n cycle1: ReducedValueWithSteps;\n cycle2: ReducedValueWithSteps;\n cycle3: ReducedValueWithSteps;\n cycle4: ReducedValueWithSteps;\n cycle5: ReducedValueWithSteps;\n cycle6: ReducedValueWithSteps;\n cycle7: ReducedValueWithSteps;\n};\n\nexport function calculateFibonacciCycle(\n birthDate: Date,\n today: Date\n): FibonacciCycle {\n const currentAge = calculateAge(birthDate, today);\n\n const cycle1 = reduceToSingleWithSteps(currentAge);\n const cycle2 = reduceToSingleWithSteps(cycle1.reducedValue + 2);\n const cycle3 = reduceToSingleWithSteps(\n cycle1.reducedValue + cycle2.reductionSteps[0]\n );\n const cycle4 = reduceToSingleWithSteps(\n cycle2.reductionSteps[0] + cycle3.reductionSteps[0]\n );\n const cycle5 = reduceToSingleWithSteps(\n cycle3.reductionSteps[0] + cycle4.reductionSteps[0]\n );\n const cycle6 = reduceToSingleWithSteps(\n cycle4.reductionSteps[0] + cycle5.reductionSteps[0]\n );\n const cycle7 = reduceToSingleWithSteps(\n cycle5.reductionSteps[0] + cycle6.reductionSteps[0]\n );\n\n return {\n currentAge,\n cycle1,\n cycle2,\n cycle3,\n cycle4,\n cycle5,\n cycle6,\n cycle7,\n };\n}\n\nexport type PersonalPeriod = {\n startMonth: number;\n endMonth: number;\n value: ReducedValueWithSteps;\n};\n\nexport type PersonalMonth = {\n month: number;\n value: ReducedValueWithSteps;\n};\n\nexport type PersonalCycles = {\n personalYear: ReducedValueWithSteps;\n personalPeriods: [PersonalPeriod, PersonalPeriod, PersonalPeriod];\n personalMonths: [\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth,\n PersonalMonth\n ];\n currentPersonalPeriod: number;\n currentPersonalMonth: number;\n currentAge: number;\n lifePath: number;\n soulNumber?: ReducedValueWithSteps;\n yearUsedOnCalculations: number;\n};\n\nfunction calculateSoulNumber(firstName: string): ReducedValueWithSteps {\n const vowels = calculateGematria(firstName).vowels;\n\n return {\n reducedValue: vowels.finalValue,\n reductionSteps: vowels.reductionSteps,\n }\n}\n\n/**\n * This function wraps the month number to a 1-12 range.\n */\nfunction wrapMonth(month: number): number {\n const wrappedMonth = (((month - 1) % 12) + 12) % 12;\n\n return wrappedMonth + 1;\n}\n\n/**\n * Returns the year of the most recent birthday relative to today.\n */\nfunction getLastBirthdayYear(birthDate: Date, today: Date): number {\n const thisYearsBirthday = new Date(\n today.getFullYear(),\n birthDate.getMonth(),\n birthDate.getDate()\n );\n\n return today >= thisYearsBirthday\n ? today.getFullYear()\n : today.getFullYear() - 1;\n}\n\nexport function calculatePersonalYear(\n birthDate: Date,\n today: Date = new Date()\n): ReducedValueWithSteps {\n const { day, month } = parseDate(birthDate);\n const yearToUse = getLastBirthdayYear(birthDate, today);\n\n return reduceToSingleWithSteps(\n parseInt(day, 10) + parseInt(month, 10) + yearToUse,\n { preserveMasters: true }\n );\n}\n\nexport function calculatePersonalPeriods(\n birthDate: Date,\n yearToUse: number,\n lifePath: number,\n soulNumber: number,\n currentAge: number\n): [PersonalPeriod, PersonalPeriod, PersonalPeriod] {\n const { month } = parseDate(birthDate);\n const birthMonth = parseInt(month, 10);\n\n const periods: [PersonalPeriod, PersonalPeriod, PersonalPeriod] = [\n {\n startMonth: wrapMonth(birthMonth + 0),\n endMonth: wrapMonth(birthMonth + 3),\n value: reduceToSingleWithSteps(yearToUse + currentAge, {\n preserveMasters: true,\n }),\n },\n {\n startMonth: wrapMonth(birthMonth + 4),\n endMonth: wrapMonth(birthMonth + 7),\n value: reduceToSingleWithSteps(yearToUse + lifePath, {\n preserveMasters: true,\n }),\n },\n {\n startMonth: wrapMonth(birthMonth + 8),\n endMonth: wrapMonth(birthMonth + 11),\n value: reduceToSingleWithSteps(yearToUse + soulNumber, {\n preserveMasters: true,\n }),\n },\n ];\n\n return periods;\n}\n\nfunction diffInPersonalMonths(birthDate: Date, today: Date): number {\n const lastYear = getLastBirthdayYear(birthDate, today);\n const base = new Date(lastYear, birthDate.getMonth(), birthDate.getDate());\n\n let k =\n (today.getFullYear() - base.getFullYear()) * 12 +\n (today.getMonth() - base.getMonth());\n\n // Only advance to the next personal month on the birth *day* each month\n if (today.getDate() < birthDate.getDate()) {\n k -= 1;\n }\n\n if (k < 0) k = 0;\n if (k > 12) k = 12; \n\n return k;\n}\n\nexport function calculatePersonalMonths(\n birthDate: Date,\n personalYear: ReducedValueWithSteps,\n today: Date\n): {\n personalMonths: PersonalCycles[\"personalMonths\"];\n currentPersonalMonthIndex: number;\n} {\n const { month } = parseDate(birthDate);\n const firstPersonalMonth = parseInt(month, 10);\n\n const personalMonths: PersonalMonth[] = [];\n for (let i = 0; i < 12; i++) {\n const m = wrapMonth(firstPersonalMonth + i);\n const value = reduceToSingleWithSteps(personalYear.reducedValue + m, {\n preserveMasters: true,\n });\n personalMonths.push({ month: m, value });\n }\n\n const currentPersonalMonthIndex = diffInPersonalMonths(birthDate, today);\n\n return {\n personalMonths: personalMonths as PersonalCycles[\"personalMonths\"],\n currentPersonalMonthIndex,\n };\n}\n\nexport function calculatePersonalCycles(\n birthDate: Date,\n today: Date = new Date(),\n firstName: string\n): PersonalCycles {\n const yearToUse = getLastBirthdayYear(birthDate, today);\n\n const personalYear = calculatePersonalYear(birthDate, today);\n\n const currentAge = calculateAge(\n birthDate,\n new Date(yearToUse, today.getMonth(), today.getDate())\n );\n const { lifePath } = calculateKaabalisticLifePath(birthDate);\n const soulNumber = calculateSoulNumber(firstName);\n\n const personalPeriods =\n calculatePersonalPeriods(birthDate, yearToUse, lifePath, soulNumber.reducedValue, currentAge);\n\n const {\n personalMonths,\n currentPersonalMonthIndex: currentPersonalMonth,\n } = calculatePersonalMonths(birthDate, personalYear, today);\n \n // Derive the period from the month index (0–12). Clamp 12 to last period.\n const currentPersonalPeriod = Math.floor(Math.min(currentPersonalMonth, 11) / 4);\n\n return {\n currentAge,\n lifePath,\n soulNumber,\n personalYear,\n personalPeriods,\n personalMonths,\n currentPersonalPeriod,\n currentPersonalMonth,\n yearUsedOnCalculations: yearToUse,\n };\n}\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLWX4YXES_js = require('./chunk-LWX4YXES.js');
|
|
4
4
|
|
|
5
5
|
// src/gematria/index.ts
|
|
6
6
|
var DIGRAPHS = /* @__PURE__ */ new Set([
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
chunkLWX4YXES_js.LATIN_LETTERS.PH,
|
|
8
|
+
chunkLWX4YXES_js.LATIN_LETTERS.TS,
|
|
9
|
+
chunkLWX4YXES_js.LATIN_LETTERS.TZ,
|
|
10
|
+
chunkLWX4YXES_js.LATIN_LETTERS.SH,
|
|
11
|
+
chunkLWX4YXES_js.LATIN_LETTERS.CH,
|
|
12
|
+
chunkLWX4YXES_js.LATIN_LETTERS.TH,
|
|
13
|
+
chunkLWX4YXES_js.LATIN_LETTERS.KH
|
|
14
14
|
]);
|
|
15
15
|
var reduceToSingleDigitWithSteps = (num) => {
|
|
16
16
|
const steps = [num];
|
|
@@ -39,8 +39,8 @@ function getLetterMapping({
|
|
|
39
39
|
letterId,
|
|
40
40
|
isStarting
|
|
41
41
|
}) {
|
|
42
|
-
if (isStarting &&
|
|
43
|
-
return tree.getNode(
|
|
42
|
+
if (isStarting && chunkLWX4YXES_js.parseId(letterId) === "O") {
|
|
43
|
+
return tree.getNode(chunkLWX4YXES_js.id("hebrewLetter" /* HEBREW_LETTER */, chunkLWX4YXES_js.HEBREW_LETTERS.AYIN));
|
|
44
44
|
}
|
|
45
45
|
return tree.walk(letterId, 2, "hebrewLetter" /* HEBREW_LETTER */).at(0);
|
|
46
46
|
}
|
|
@@ -50,7 +50,7 @@ function processLetter(tree, letters, i) {
|
|
|
50
50
|
const combinedLetter = letter + nextLetter;
|
|
51
51
|
if (DIGRAPHS.has(combinedLetter)) {
|
|
52
52
|
const isEnding2 = i > 0 && i === letters.length - 2;
|
|
53
|
-
const latinLetterId2 =
|
|
53
|
+
const latinLetterId2 = chunkLWX4YXES_js.id("latinLetter" /* LATIN_LETTER */, combinedLetter);
|
|
54
54
|
const mapping2 = getLetterMapping({
|
|
55
55
|
tree,
|
|
56
56
|
letterId: latinLetterId2,
|
|
@@ -72,7 +72,7 @@ function processLetter(tree, letters, i) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
const isStarting = i === 0;
|
|
75
|
-
const latinLetterId =
|
|
75
|
+
const latinLetterId = chunkLWX4YXES_js.id("latinLetter" /* LATIN_LETTER */, letter);
|
|
76
76
|
const mapping = getLetterMapping({
|
|
77
77
|
tree,
|
|
78
78
|
letterId: latinLetterId,
|
|
@@ -129,7 +129,7 @@ function calculateLetterPercentages(word, tree, prev) {
|
|
|
129
129
|
const newLetters = { ...prev.letters };
|
|
130
130
|
for (const letter of new Set(letters)) {
|
|
131
131
|
const occurrences = letters.filter((l) => l === letter).length;
|
|
132
|
-
const latinLetter = tree.getNode(
|
|
132
|
+
const latinLetter = tree.getNode(chunkLWX4YXES_js.id("latinLetter" /* LATIN_LETTER */, letter));
|
|
133
133
|
newLetters[letter] = occurrences / letterCount * 100;
|
|
134
134
|
if (latinLetter?.data?.isVowel) {
|
|
135
135
|
vowelsCount += occurrences;
|
|
@@ -145,8 +145,8 @@ function calculateLetterPercentages(word, tree, prev) {
|
|
|
145
145
|
}
|
|
146
146
|
function getMissingGematriaValues(tree, includedGematriaValues) {
|
|
147
147
|
const missingGematriaValues = [];
|
|
148
|
-
for (const hebrewLetter of Object.values(
|
|
149
|
-
const hebrewLetterId =
|
|
148
|
+
for (const hebrewLetter of Object.values(chunkLWX4YXES_js.HEBREW_LETTERS)) {
|
|
149
|
+
const hebrewLetterId = chunkLWX4YXES_js.id("hebrewLetter" /* HEBREW_LETTER */, hebrewLetter);
|
|
150
150
|
const hebrewLetterNode = tree.getNode(hebrewLetterId);
|
|
151
151
|
if (!hebrewLetterNode?.data) continue;
|
|
152
152
|
if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
|
|
@@ -172,7 +172,7 @@ var calculateGematria = (phrase, options = {
|
|
|
172
172
|
percentages: false
|
|
173
173
|
}, tree) => {
|
|
174
174
|
if (!tree) {
|
|
175
|
-
tree =
|
|
175
|
+
tree = chunkLWX4YXES_js.createTree({ system: chunkLWX4YXES_js.SYSTEM, parts: [] });
|
|
176
176
|
}
|
|
177
177
|
const words = phrase.toUpperCase().trim().split(" ");
|
|
178
178
|
const initialState = {
|
|
@@ -234,5 +234,5 @@ var calculateGematria = (phrase, options = {
|
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
exports.calculateGematria = calculateGematria;
|
|
237
|
-
//# sourceMappingURL=chunk-
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
237
|
+
//# sourceMappingURL=chunk-4GW52TEP.js.map
|
|
238
|
+
//# sourceMappingURL=chunk-4GW52TEP.js.map
|