kaabalah 6.3.0 → 6.4.1
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/README.md +40 -343
- package/dist/chunk-UG6HZK3Z.js +1802 -0
- package/dist/chunk-UG6HZK3Z.js.map +1 -0
- package/dist/chunk-UN7QMOMX.mjs +1782 -0
- package/dist/chunk-UN7QMOMX.mjs.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +102 -50
- package/dist/index.mjs +4 -4
- package/dist/semantic/index.d.mts +150 -2
- package/dist/semantic/index.d.ts +150 -2
- package/dist/semantic/index.js +62 -7
- package/dist/semantic/index.mjs +4 -1
- package/dist/webassembly.md +127 -0
- package/package.json +1 -1
- package/wasm/build/webassembly.md +127 -0
- package/dist/chunk-HGGCF2CF.mjs +0 -843
- package/dist/chunk-HGGCF2CF.mjs.map +0 -1
- package/dist/chunk-MJINIICB.js +0 -850
- package/dist/chunk-MJINIICB.js.map +0 -1
|
@@ -0,0 +1,1802 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6O7MTBZN_js = require('./chunk-6O7MTBZN.js');
|
|
4
|
+
var chunkPAKYKIZH_js = require('./chunk-PAKYKIZH.js');
|
|
5
|
+
var chunkCOPYH3O2_js = require('./chunk-COPYH3O2.js');
|
|
6
|
+
var chunkXTE5DSDO_js = require('./chunk-XTE5DSDO.js');
|
|
7
|
+
var chunkOKZUVGA3_js = require('./chunk-OKZUVGA3.js');
|
|
8
|
+
var chunkS6KNERP7_js = require('./chunk-S6KNERP7.js');
|
|
9
|
+
|
|
10
|
+
// src/semantic/kaabalistic.ts
|
|
11
|
+
var canonicalTree = chunkOKZUVGA3_js.getCanonicalTree({
|
|
12
|
+
system: "kaabalah",
|
|
13
|
+
parts: ["westernAstrology"]
|
|
14
|
+
});
|
|
15
|
+
var orderedSphereIds = [
|
|
16
|
+
chunkS6KNERP7_js.SPHERES.KETHER,
|
|
17
|
+
chunkS6KNERP7_js.SPHERES.CHOKHMAH,
|
|
18
|
+
chunkS6KNERP7_js.SPHERES.BINAH,
|
|
19
|
+
chunkS6KNERP7_js.SPHERES.DAATH,
|
|
20
|
+
chunkS6KNERP7_js.SPHERES.CHESED,
|
|
21
|
+
chunkS6KNERP7_js.SPHERES.GEBURAH,
|
|
22
|
+
chunkS6KNERP7_js.SPHERES.TIPHARETH,
|
|
23
|
+
chunkS6KNERP7_js.SPHERES.NETZACH,
|
|
24
|
+
chunkS6KNERP7_js.SPHERES.HOD,
|
|
25
|
+
chunkS6KNERP7_js.SPHERES.YESOD,
|
|
26
|
+
chunkS6KNERP7_js.SPHERES.MALKUTH
|
|
27
|
+
].map((sphere) => chunkS6KNERP7_js.id("sphere" /* SPHERE */, sphere));
|
|
28
|
+
var orderedPathIds = Array.from(
|
|
29
|
+
{ length: 22 },
|
|
30
|
+
(_, index) => chunkS6KNERP7_js.id("path" /* PATH */, index + 1)
|
|
31
|
+
);
|
|
32
|
+
var orderedSpheres = Object.freeze(
|
|
33
|
+
orderedSphereIds.map((sphereId) => canonicalTree.getNode(sphereId)).filter((node) => Boolean(node))
|
|
34
|
+
);
|
|
35
|
+
var orderedPaths = Object.freeze(
|
|
36
|
+
orderedPathIds.map((pathId) => canonicalTree.getNode(pathId)).filter((node) => Boolean(node))
|
|
37
|
+
);
|
|
38
|
+
var SIGN_SYMBOLS = [
|
|
39
|
+
{ kind: "sign", key: "aries", label: "Aries", shortLabel: "Aries", glyph: "\u2648", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.ARIES) },
|
|
40
|
+
{ kind: "sign", key: "taurus", label: "Taurus", shortLabel: "Taurus", glyph: "\u2649", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.TAURUS) },
|
|
41
|
+
{ kind: "sign", key: "gemini", label: "Gemini", shortLabel: "Gemini", glyph: "\u264A", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.GEMINI) },
|
|
42
|
+
{ kind: "sign", key: "cancer", label: "Cancer", shortLabel: "Cancer", glyph: "\u264B", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.CANCER) },
|
|
43
|
+
{ kind: "sign", key: "leo", label: "Leo", shortLabel: "Leo", glyph: "\u264C", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.LEO) },
|
|
44
|
+
{ kind: "sign", key: "virgo", label: "Virgo", shortLabel: "Virgo", glyph: "\u264D", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.VIRGO) },
|
|
45
|
+
{ kind: "sign", key: "libra", label: "Libra", shortLabel: "Libra", glyph: "\u264E", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.LIBRA) },
|
|
46
|
+
{ kind: "sign", key: "scorpio", label: "Scorpio", shortLabel: "Scorpio", glyph: "\u264F", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.SCORPIO) },
|
|
47
|
+
{ kind: "sign", key: "sagittarius", label: "Sagittarius", shortLabel: "Sagittarius", glyph: "\u2650", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.SAGITTARIUS) },
|
|
48
|
+
{ kind: "sign", key: "capricorn", label: "Capricorn", shortLabel: "Capricorn", glyph: "\u2651", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.CAPRICORN) },
|
|
49
|
+
{ kind: "sign", key: "aquarius", label: "Aquarius", shortLabel: "Aquarius", glyph: "\u2652", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.AQUARIUS) },
|
|
50
|
+
{ kind: "sign", key: "pisces", label: "Pisces", shortLabel: "Pisces", glyph: "\u2653", id: chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, chunkS6KNERP7_js.WESTERN_ZODIAC_SIGNS.PISCES) }
|
|
51
|
+
];
|
|
52
|
+
var PLANET_SYMBOLS = [
|
|
53
|
+
{ kind: "planet", key: "sun", label: chunkS6KNERP7_js.PLANETS.SUN, shortLabel: chunkS6KNERP7_js.PLANETS.SUN, glyph: "\u2609", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.SUN) },
|
|
54
|
+
{ kind: "planet", key: "moon", label: chunkS6KNERP7_js.PLANETS.MOON, shortLabel: chunkS6KNERP7_js.PLANETS.MOON, glyph: "\u263D", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.MOON) },
|
|
55
|
+
{ kind: "planet", key: "mercury", label: chunkS6KNERP7_js.PLANETS.MERCURY, shortLabel: chunkS6KNERP7_js.PLANETS.MERCURY, glyph: "\u263F", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.MERCURY) },
|
|
56
|
+
{ kind: "planet", key: "venus", label: chunkS6KNERP7_js.PLANETS.VENUS, shortLabel: chunkS6KNERP7_js.PLANETS.VENUS, glyph: "\u2640", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.VENUS) },
|
|
57
|
+
{ kind: "planet", key: "mars", label: chunkS6KNERP7_js.PLANETS.MARS, shortLabel: chunkS6KNERP7_js.PLANETS.MARS, glyph: "\u2642", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.MARS) },
|
|
58
|
+
{ kind: "planet", key: "jupiter", label: chunkS6KNERP7_js.PLANETS.JUPITER, shortLabel: chunkS6KNERP7_js.PLANETS.JUPITER, glyph: "\u2643", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.JUPITER) },
|
|
59
|
+
{ kind: "planet", key: "saturn", label: chunkS6KNERP7_js.PLANETS.SATURN, shortLabel: chunkS6KNERP7_js.PLANETS.SATURN, glyph: "\u2644", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.SATURN) },
|
|
60
|
+
{ kind: "planet", key: "uranus", label: chunkS6KNERP7_js.PLANETS.URANUS, shortLabel: chunkS6KNERP7_js.PLANETS.URANUS, glyph: "\u2645", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.URANUS) },
|
|
61
|
+
{ kind: "planet", key: "neptune", label: chunkS6KNERP7_js.PLANETS.NEPTUNE, shortLabel: chunkS6KNERP7_js.PLANETS.NEPTUNE, glyph: "\u2646", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.NEPTUNE) },
|
|
62
|
+
{ kind: "planet", key: "pluto", label: chunkS6KNERP7_js.PLANETS.PLUTO, shortLabel: chunkS6KNERP7_js.PLANETS.PLUTO, glyph: "\u2647", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.PLUTO) },
|
|
63
|
+
{ kind: "planet", key: "earth", label: chunkS6KNERP7_js.PLANETS.EARTH, shortLabel: chunkS6KNERP7_js.PLANETS.EARTH, glyph: "\u2295", id: chunkS6KNERP7_js.id("planet" /* PLANET */, chunkS6KNERP7_js.PLANETS.EARTH) },
|
|
64
|
+
{ kind: "planet", key: "chiron", label: "Chiron", shortLabel: "Chiron", glyph: "\u26B7", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[15]] }
|
|
65
|
+
];
|
|
66
|
+
var ANGLE_SYMBOLS = [
|
|
67
|
+
{ kind: "angle", key: "asc", label: "ASC", shortLabel: "ASC", glyph: "ASC", id: chunkS6KNERP7_js.id("house" /* HOUSE */, chunkS6KNERP7_js.WESTERN_HOUSES.ASCENDANT), aliases: ["ascendant"] },
|
|
68
|
+
{ kind: "angle", key: "mc", label: "MC", shortLabel: "MC", glyph: "MC", id: chunkS6KNERP7_js.id("house" /* HOUSE */, chunkS6KNERP7_js.WESTERN_HOUSES.MEDIUM_COELI), aliases: ["medium coeli"] },
|
|
69
|
+
{ kind: "angle", key: "dc", label: "DC", shortLabel: "DC", glyph: "DC", id: chunkS6KNERP7_js.id("house" /* HOUSE */, chunkS6KNERP7_js.WESTERN_HOUSES.DESCENDANT), aliases: ["descendant"] },
|
|
70
|
+
{ kind: "angle", key: "ic", label: "IC", shortLabel: "IC", glyph: "IC", id: chunkS6KNERP7_js.id("house" /* HOUSE */, chunkS6KNERP7_js.WESTERN_HOUSES.IMUM_COELI), aliases: ["imum coeli"] },
|
|
71
|
+
{ kind: "angle", key: "vertex", label: "Vertex", shortLabel: "Vertex", glyph: "Vtx" }
|
|
72
|
+
];
|
|
73
|
+
var NODE_SYMBOLS = [
|
|
74
|
+
{ kind: "node", key: "wheel of fortune", label: "Wheel of Fortune", shortLabel: "Wheel of Fortune", glyph: "\u{1BC9C}", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES["parsFortunae" /* PARS_FORTUNAE */], "pars fortunae", "parsfortunae"] },
|
|
75
|
+
{ kind: "node", key: "mean node", label: "Mean Node", shortLabel: "Mean Node", glyph: "\u260A", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[10]] },
|
|
76
|
+
{ kind: "node", key: "true node", label: "True Node", shortLabel: "True Node", glyph: "\u260A", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[11]] },
|
|
77
|
+
{ kind: "node", key: "lilith mean", label: "Lilith Mean", shortLabel: "Lilith Mean", glyph: "\u26B8", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[12]] },
|
|
78
|
+
{ kind: "node", key: "lilith true", label: "Lilith True", shortLabel: "Lilith True", glyph: "\u26B8", aliases: [chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[13]] }
|
|
79
|
+
];
|
|
80
|
+
var symbolRegistry = createSymbolRegistry([
|
|
81
|
+
...SIGN_SYMBOLS,
|
|
82
|
+
...PLANET_SYMBOLS,
|
|
83
|
+
...ANGLE_SYMBOLS,
|
|
84
|
+
...NODE_SYMBOLS
|
|
85
|
+
]);
|
|
86
|
+
var classicalPlanetKeys = /* @__PURE__ */ new Set([
|
|
87
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.SUN),
|
|
88
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.MOON),
|
|
89
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.MERCURY),
|
|
90
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.VENUS),
|
|
91
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.MARS),
|
|
92
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.JUPITER),
|
|
93
|
+
normalizeLookupKey(chunkS6KNERP7_js.PLANETS.SATURN)
|
|
94
|
+
]);
|
|
95
|
+
var defaultExcludedAstrologyPoints = /* @__PURE__ */ new Set([
|
|
96
|
+
normalizeLookupKey("True Node"),
|
|
97
|
+
normalizeLookupKey("Lilith True")
|
|
98
|
+
]);
|
|
99
|
+
var planetCarrierSphereIdsByKey = createPlanetCarrierSphereIdsByKey(canonicalTree);
|
|
100
|
+
var classicalPlanetPathIdsByKey = createClassicalPlanetPathIdsByKey(canonicalTree);
|
|
101
|
+
var angleCarrierSphereIdsByKey = createAngleCarrierSphereIdsByKey();
|
|
102
|
+
function normalizeLookupKey(value) {
|
|
103
|
+
return value.trim().toLowerCase();
|
|
104
|
+
}
|
|
105
|
+
function createSymbolRegistry(entries) {
|
|
106
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
107
|
+
for (const entry of entries) {
|
|
108
|
+
const frozen = Object.freeze({
|
|
109
|
+
kind: entry.kind,
|
|
110
|
+
key: entry.key,
|
|
111
|
+
label: entry.label,
|
|
112
|
+
shortLabel: entry.shortLabel,
|
|
113
|
+
glyph: entry.glyph,
|
|
114
|
+
...entry.id ? { id: entry.id } : {}
|
|
115
|
+
});
|
|
116
|
+
byKey.set(normalizeLookupKey(entry.key), frozen);
|
|
117
|
+
byKey.set(normalizeLookupKey(entry.label), frozen);
|
|
118
|
+
byKey.set(normalizeLookupKey(entry.shortLabel), frozen);
|
|
119
|
+
for (const alias of entry.aliases ?? []) {
|
|
120
|
+
byKey.set(normalizeLookupKey(alias), frozen);
|
|
121
|
+
}
|
|
122
|
+
if (entry.id) {
|
|
123
|
+
byKey.set(normalizeLookupKey(entry.id), frozen);
|
|
124
|
+
byKey.set(normalizeLookupKey(chunkS6KNERP7_js.parseId(entry.id)), frozen);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return Object.freeze({
|
|
128
|
+
byKey,
|
|
129
|
+
planets: Object.freeze(entries.filter((entry) => entry.kind === "planet").map((entry) => byKey.get(normalizeLookupKey(entry.key)))),
|
|
130
|
+
signs: Object.freeze(entries.filter((entry) => entry.kind === "sign").map((entry) => byKey.get(normalizeLookupKey(entry.key)))),
|
|
131
|
+
angles: Object.freeze(entries.filter((entry) => entry.kind === "angle").map((entry) => byKey.get(normalizeLookupKey(entry.key)))),
|
|
132
|
+
nodes: Object.freeze(entries.filter((entry) => entry.kind === "node").map((entry) => byKey.get(normalizeLookupKey(entry.key))))
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function createClassicalPlanetPathIdsByKey(tree) {
|
|
136
|
+
const registry = /* @__PURE__ */ new Map();
|
|
137
|
+
const mutable = /* @__PURE__ */ new Map();
|
|
138
|
+
for (const pathId of orderedPathIds) {
|
|
139
|
+
const planet = tree.getCorrespondences(pathId, {
|
|
140
|
+
type: "planet" /* PLANET */,
|
|
141
|
+
depth: 1,
|
|
142
|
+
limit: 1
|
|
143
|
+
})[0]?.node;
|
|
144
|
+
if (!planet) {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
const key = normalizeLookupKey(planet.name ?? chunkS6KNERP7_js.parseId(planet.id));
|
|
148
|
+
if (!classicalPlanetKeys.has(key)) {
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
const bucket = mutable.get(key) ?? [];
|
|
152
|
+
bucket.push(pathId);
|
|
153
|
+
mutable.set(key, bucket);
|
|
154
|
+
}
|
|
155
|
+
for (const [key, value] of mutable.entries()) {
|
|
156
|
+
registry.set(key, Object.freeze([...value]));
|
|
157
|
+
}
|
|
158
|
+
return registry;
|
|
159
|
+
}
|
|
160
|
+
function createPlanetCarrierSphereIdsByKey(tree) {
|
|
161
|
+
const registry = /* @__PURE__ */ new Map();
|
|
162
|
+
for (const symbol of PLANET_SYMBOLS) {
|
|
163
|
+
if (!("id" in symbol) || !symbol.id) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const sphereIds = tree.getCorrespondences(symbol.id, {
|
|
167
|
+
type: "sphere" /* SPHERE */,
|
|
168
|
+
depth: 1
|
|
169
|
+
}).map((match) => match.node.id);
|
|
170
|
+
if (!sphereIds.length) {
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
registry.set(
|
|
174
|
+
normalizeLookupKey(symbol.label),
|
|
175
|
+
Object.freeze([...new Set(sphereIds)])
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
return registry;
|
|
179
|
+
}
|
|
180
|
+
function createAngleCarrierSphereIdsByKey() {
|
|
181
|
+
return /* @__PURE__ */ new Map([
|
|
182
|
+
[
|
|
183
|
+
normalizeLookupKey("ASC"),
|
|
184
|
+
Object.freeze([chunkS6KNERP7_js.id("sphere" /* SPHERE */, chunkS6KNERP7_js.SPHERES.MALKUTH)])
|
|
185
|
+
]
|
|
186
|
+
]);
|
|
187
|
+
}
|
|
188
|
+
function getTargetType(targetId) {
|
|
189
|
+
return String(targetId).startsWith(`${"sphere" /* SPHERE */}:`) ? "sphere" : "path";
|
|
190
|
+
}
|
|
191
|
+
function getTargetName(targetId) {
|
|
192
|
+
return getTargetType(targetId) === "sphere" ? chunkS6KNERP7_js.parseId(targetId) : `Path ${chunkS6KNERP7_js.parseId(targetId)}`;
|
|
193
|
+
}
|
|
194
|
+
function getTargetCountMap(targets) {
|
|
195
|
+
const reduceMap = {};
|
|
196
|
+
for (const target of targets) {
|
|
197
|
+
reduceMap[target.targetId] = (reduceMap[target.targetId] ?? 0) + 1;
|
|
198
|
+
}
|
|
199
|
+
return reduceMap;
|
|
200
|
+
}
|
|
201
|
+
function toSummaryTargets(reduceMap) {
|
|
202
|
+
return Object.entries(reduceMap).map(([targetId, count]) => ({
|
|
203
|
+
id: targetId,
|
|
204
|
+
type: getTargetType(targetId),
|
|
205
|
+
name: getTargetName(targetId),
|
|
206
|
+
count: count ?? 0
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
function groupByKey(items, getKey) {
|
|
210
|
+
const grouped = {};
|
|
211
|
+
for (const item of items) {
|
|
212
|
+
const key = getKey(item);
|
|
213
|
+
const bucket = grouped[key] ?? [];
|
|
214
|
+
bucket.push(item);
|
|
215
|
+
grouped[key] = bucket;
|
|
216
|
+
}
|
|
217
|
+
return grouped;
|
|
218
|
+
}
|
|
219
|
+
function normalizeSignName(sign) {
|
|
220
|
+
const rawSign = typeof sign === "string" && sign.startsWith(`${"westernZodiacSign" /* WESTERN_ZODIAC_SIGN */}:`) ? chunkS6KNERP7_js.parseId(sign) : typeof sign === "string" ? sign : chunkS6KNERP7_js.parseId(sign);
|
|
221
|
+
const key = normalizeLookupKey(rawSign);
|
|
222
|
+
const metadata = symbolRegistry.byKey.get(key);
|
|
223
|
+
if (!metadata || metadata.kind !== "sign") {
|
|
224
|
+
return void 0;
|
|
225
|
+
}
|
|
226
|
+
return metadata.label;
|
|
227
|
+
}
|
|
228
|
+
function normalizePlanetName(planet) {
|
|
229
|
+
const rawPlanet = planet.startsWith(`${"planet" /* PLANET */}:`) ? chunkS6KNERP7_js.parseId(planet) : planet;
|
|
230
|
+
const key = normalizeLookupKey(rawPlanet);
|
|
231
|
+
const metadata = symbolRegistry.byKey.get(key);
|
|
232
|
+
if (metadata?.kind === "planet") {
|
|
233
|
+
return metadata.label;
|
|
234
|
+
}
|
|
235
|
+
return chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES[rawPlanet] ?? rawPlanet;
|
|
236
|
+
}
|
|
237
|
+
function lookupPlanetSymbolMetadata(planet) {
|
|
238
|
+
const rawPlanet = planet.startsWith(`${"planet" /* PLANET */}:`) ? chunkS6KNERP7_js.parseId(planet) : planet;
|
|
239
|
+
const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawPlanet));
|
|
240
|
+
return metadata?.kind === "planet" ? metadata : void 0;
|
|
241
|
+
}
|
|
242
|
+
function lookupSignSymbolMetadata(sign) {
|
|
243
|
+
const rawSign = typeof sign === "string" && sign.startsWith(`${"westernZodiacSign" /* WESTERN_ZODIAC_SIGN */}:`) ? chunkS6KNERP7_js.parseId(sign) : typeof sign === "string" ? sign : chunkS6KNERP7_js.parseId(sign);
|
|
244
|
+
const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawSign));
|
|
245
|
+
return metadata?.kind === "sign" ? metadata : void 0;
|
|
246
|
+
}
|
|
247
|
+
function normalizeAngleName(angle) {
|
|
248
|
+
const rawAngle = angle.startsWith(`${"house" /* HOUSE */}:`) ? chunkS6KNERP7_js.parseId(angle) : angle;
|
|
249
|
+
const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawAngle));
|
|
250
|
+
return metadata?.kind === "angle" ? metadata.label : rawAngle;
|
|
251
|
+
}
|
|
252
|
+
function listPlanetSymbolMetadata() {
|
|
253
|
+
return symbolRegistry.planets;
|
|
254
|
+
}
|
|
255
|
+
function listZodiacSignSymbolMetadata() {
|
|
256
|
+
return symbolRegistry.signs;
|
|
257
|
+
}
|
|
258
|
+
function listAngleSymbolMetadata() {
|
|
259
|
+
return symbolRegistry.angles;
|
|
260
|
+
}
|
|
261
|
+
function listNodeSymbolMetadata() {
|
|
262
|
+
return symbolRegistry.nodes;
|
|
263
|
+
}
|
|
264
|
+
function getPlanetSymbolMetadata(lookup) {
|
|
265
|
+
return lookupPlanetSymbolMetadata(lookup);
|
|
266
|
+
}
|
|
267
|
+
function getZodiacSignSymbolMetadata(lookup) {
|
|
268
|
+
return lookupSignSymbolMetadata(lookup);
|
|
269
|
+
}
|
|
270
|
+
function getAngleSymbolMetadata(lookup) {
|
|
271
|
+
const rawLookup = lookup.startsWith(`${"house" /* HOUSE */}:`) ? chunkS6KNERP7_js.parseId(lookup) : lookup;
|
|
272
|
+
const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawLookup));
|
|
273
|
+
return metadata?.kind === "angle" ? metadata : void 0;
|
|
274
|
+
}
|
|
275
|
+
function getNodeSymbolMetadata(lookup) {
|
|
276
|
+
const metadata = symbolRegistry.byKey.get(normalizeLookupKey(lookup));
|
|
277
|
+
return metadata?.kind === "node" ? metadata : void 0;
|
|
278
|
+
}
|
|
279
|
+
function normalizeChartInput(input) {
|
|
280
|
+
const planets = Array.isArray(input.planets) ? [...input.planets] : Object.values(input.planets);
|
|
281
|
+
const nodes = input.nodes ? Array.isArray(input.nodes) ? [...input.nodes] : Object.values(input.nodes) : [];
|
|
282
|
+
return {
|
|
283
|
+
planets,
|
|
284
|
+
nodes,
|
|
285
|
+
houses: input.houses,
|
|
286
|
+
aspects: input.aspects
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
function getAstrologySourceType(name) {
|
|
290
|
+
return getNodeSymbolMetadata(name) ? "node" : "planet";
|
|
291
|
+
}
|
|
292
|
+
function getAstrologySourceGlyph(sourceType, sourceName) {
|
|
293
|
+
if (sourceType === "angle") {
|
|
294
|
+
return getAngleSymbolMetadata(sourceName)?.glyph ?? sourceName;
|
|
295
|
+
}
|
|
296
|
+
if (sourceType === "node") {
|
|
297
|
+
return getNodeSymbolMetadata(sourceName)?.glyph ?? sourceName.slice(0, 1).toUpperCase();
|
|
298
|
+
}
|
|
299
|
+
return lookupPlanetSymbolMetadata(sourceName)?.glyph ?? sourceName.slice(0, 1).toUpperCase();
|
|
300
|
+
}
|
|
301
|
+
function getHouseNodeByNumber(houseNumber) {
|
|
302
|
+
return canonicalTree.getCorrespondences(chunkS6KNERP7_js.id("number" /* NUMBER */, houseNumber), {
|
|
303
|
+
type: "house" /* HOUSE */,
|
|
304
|
+
depth: 1,
|
|
305
|
+
limit: 1
|
|
306
|
+
})[0]?.node;
|
|
307
|
+
}
|
|
308
|
+
function buildSignTargets(sign) {
|
|
309
|
+
const signId = chunkS6KNERP7_js.id("westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, sign);
|
|
310
|
+
const result = [];
|
|
311
|
+
for (const match of canonicalTree.getCorrespondences(signId, {
|
|
312
|
+
type: ["sphere" /* SPHERE */, "path" /* PATH */, "westernElement" /* WESTERN_ELEMENT */],
|
|
313
|
+
depth: 1
|
|
314
|
+
})) {
|
|
315
|
+
if (match.node.type === "sphere" /* SPHERE */) {
|
|
316
|
+
result.push({
|
|
317
|
+
targetId: match.node.id,
|
|
318
|
+
targetType: "sphere",
|
|
319
|
+
targetName: getTargetName(match.node.id),
|
|
320
|
+
mapping: "sign-sphere",
|
|
321
|
+
distance: match.distance,
|
|
322
|
+
sign
|
|
323
|
+
});
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
if (match.node.type === "path" /* PATH */) {
|
|
327
|
+
result.push({
|
|
328
|
+
targetId: match.node.id,
|
|
329
|
+
targetType: "path",
|
|
330
|
+
targetName: getTargetName(match.node.id),
|
|
331
|
+
mapping: "sign-path",
|
|
332
|
+
distance: match.distance,
|
|
333
|
+
sign
|
|
334
|
+
});
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
const element = chunkS6KNERP7_js.parseId(match.node.id);
|
|
338
|
+
for (const elementPath of canonicalTree.getCorrespondences(match.node.id, {
|
|
339
|
+
type: "path" /* PATH */,
|
|
340
|
+
depth: 1
|
|
341
|
+
})) {
|
|
342
|
+
result.push({
|
|
343
|
+
targetId: elementPath.node.id,
|
|
344
|
+
targetType: "path",
|
|
345
|
+
targetName: getTargetName(elementPath.node.id),
|
|
346
|
+
mapping: "element-path",
|
|
347
|
+
distance: elementPath.distance + match.distance,
|
|
348
|
+
sign,
|
|
349
|
+
element
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
for (const elementSphere of canonicalTree.getCorrespondences(match.node.id, {
|
|
353
|
+
type: "sphere" /* SPHERE */,
|
|
354
|
+
depth: 1
|
|
355
|
+
})) {
|
|
356
|
+
result.push({
|
|
357
|
+
targetId: elementSphere.node.id,
|
|
358
|
+
targetType: "sphere",
|
|
359
|
+
targetName: getTargetName(elementSphere.node.id),
|
|
360
|
+
mapping: "element-sphere",
|
|
361
|
+
distance: elementSphere.distance + match.distance,
|
|
362
|
+
sign,
|
|
363
|
+
element
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return dedupeTargets(result);
|
|
368
|
+
}
|
|
369
|
+
function buildCarrierSphereTargets(lookup, sign) {
|
|
370
|
+
const isPlanetLookup = lookup.kind === "planet";
|
|
371
|
+
const sourceLabel = isPlanetLookup ? normalizePlanetName(lookup.planet) : normalizeAngleName(lookup.angle);
|
|
372
|
+
const sourceKey = normalizeLookupKey(sourceLabel);
|
|
373
|
+
const sphereIds = isPlanetLookup ? planetCarrierSphereIdsByKey.get(sourceKey) : angleCarrierSphereIdsByKey.get(sourceKey);
|
|
374
|
+
if (!sphereIds?.length) {
|
|
375
|
+
return [];
|
|
376
|
+
}
|
|
377
|
+
return sphereIds.map((targetId) => ({
|
|
378
|
+
targetId,
|
|
379
|
+
targetType: "sphere",
|
|
380
|
+
targetName: getTargetName(targetId),
|
|
381
|
+
mapping: "carrier-sphere",
|
|
382
|
+
distance: 1,
|
|
383
|
+
sign,
|
|
384
|
+
...isPlanetLookup ? { planet: sourceLabel } : {}
|
|
385
|
+
}));
|
|
386
|
+
}
|
|
387
|
+
function dedupeTargets(targets) {
|
|
388
|
+
const seen = /* @__PURE__ */ new Set();
|
|
389
|
+
return targets.filter((target) => {
|
|
390
|
+
const key = [
|
|
391
|
+
target.targetId,
|
|
392
|
+
target.mapping,
|
|
393
|
+
target.sign ?? "",
|
|
394
|
+
target.element ?? "",
|
|
395
|
+
target.planet ?? ""
|
|
396
|
+
].join("|");
|
|
397
|
+
if (seen.has(key)) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
seen.add(key);
|
|
401
|
+
return true;
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
function createCorrespondenceSource(lookup, sign, element) {
|
|
405
|
+
if (lookup.kind === "sign") {
|
|
406
|
+
const symbol = lookupSignSymbolMetadata(sign ?? lookup.sign);
|
|
407
|
+
return {
|
|
408
|
+
kind: "sign",
|
|
409
|
+
key: symbol.key,
|
|
410
|
+
label: symbol.label,
|
|
411
|
+
shortLabel: symbol.shortLabel,
|
|
412
|
+
glyph: symbol.glyph,
|
|
413
|
+
...sign ? { sign } : {},
|
|
414
|
+
...element ? { element } : {}
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
if (lookup.kind === "planet") {
|
|
418
|
+
const symbol = lookupPlanetSymbolMetadata(lookup.planet);
|
|
419
|
+
const label = normalizePlanetName(lookup.planet);
|
|
420
|
+
return {
|
|
421
|
+
kind: "planet",
|
|
422
|
+
key: normalizeLookupKey(label),
|
|
423
|
+
label,
|
|
424
|
+
shortLabel: symbol?.shortLabel ?? label,
|
|
425
|
+
glyph: symbol?.glyph ?? label.slice(0, 1).toUpperCase(),
|
|
426
|
+
...sign ? { sign } : {},
|
|
427
|
+
...element ? { element } : {},
|
|
428
|
+
planet: label
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
if (lookup.kind === "angle") {
|
|
432
|
+
const symbol = getAngleSymbolMetadata(lookup.angle);
|
|
433
|
+
const label = symbol?.label ?? lookup.angle;
|
|
434
|
+
return {
|
|
435
|
+
kind: "angle",
|
|
436
|
+
key: normalizeLookupKey(label),
|
|
437
|
+
label,
|
|
438
|
+
shortLabel: symbol?.shortLabel ?? label,
|
|
439
|
+
glyph: symbol?.glyph ?? label,
|
|
440
|
+
...sign ? { sign } : {},
|
|
441
|
+
...element ? { element } : {}
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
if (lookup.kind === "node") {
|
|
445
|
+
const symbol = getNodeSymbolMetadata(lookup.node);
|
|
446
|
+
const label = symbol?.label ?? lookup.node;
|
|
447
|
+
return {
|
|
448
|
+
kind: "node",
|
|
449
|
+
key: normalizeLookupKey(label),
|
|
450
|
+
label,
|
|
451
|
+
shortLabel: symbol?.shortLabel ?? label,
|
|
452
|
+
glyph: symbol?.glyph ?? label.slice(0, 1).toUpperCase(),
|
|
453
|
+
...sign ? { sign } : {},
|
|
454
|
+
...element ? { element } : {}
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
if (lookup.kind === "number") {
|
|
458
|
+
const label = String(lookup.number);
|
|
459
|
+
return {
|
|
460
|
+
kind: "number",
|
|
461
|
+
key: label,
|
|
462
|
+
label,
|
|
463
|
+
shortLabel: label,
|
|
464
|
+
glyph: label,
|
|
465
|
+
number: lookup.number
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
const letterNode = canonicalTree.getNode(lookup.hebrewLetterId);
|
|
469
|
+
const letterLabel = letterNode?.name ?? chunkS6KNERP7_js.parseId(lookup.hebrewLetterId);
|
|
470
|
+
const glyph = letterNode?.data?.character ?? letterLabel;
|
|
471
|
+
return {
|
|
472
|
+
kind: "hebrewLetter",
|
|
473
|
+
key: normalizeLookupKey(lookup.hebrewLetterId),
|
|
474
|
+
label: letterLabel,
|
|
475
|
+
shortLabel: letterLabel,
|
|
476
|
+
glyph,
|
|
477
|
+
hebrewLetterId: lookup.hebrewLetterId
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
function getKaabalisticCorrespondenceTargets(lookup) {
|
|
481
|
+
if (lookup.kind === "number") {
|
|
482
|
+
const source = createCorrespondenceSource(lookup);
|
|
483
|
+
const numberId = chunkS6KNERP7_js.id("number" /* NUMBER */, lookup.number);
|
|
484
|
+
const targets = [
|
|
485
|
+
...canonicalTree.getCorrespondences(numberId, { type: "sphere" /* SPHERE */, depth: 1 }).map((match) => ({
|
|
486
|
+
targetId: match.node.id,
|
|
487
|
+
targetType: "sphere",
|
|
488
|
+
targetName: getTargetName(match.node.id),
|
|
489
|
+
mapping: "number-sphere",
|
|
490
|
+
distance: match.distance
|
|
491
|
+
})),
|
|
492
|
+
...canonicalTree.getCorrespondences(numberId, { type: "path" /* PATH */, depth: 1 }).map((match) => ({
|
|
493
|
+
targetId: match.node.id,
|
|
494
|
+
targetType: "path",
|
|
495
|
+
targetName: getTargetName(match.node.id),
|
|
496
|
+
mapping: "number-path",
|
|
497
|
+
distance: match.distance
|
|
498
|
+
}))
|
|
499
|
+
];
|
|
500
|
+
return {
|
|
501
|
+
source,
|
|
502
|
+
targets
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
if (lookup.kind === "hebrewLetter") {
|
|
506
|
+
const source = createCorrespondenceSource(lookup);
|
|
507
|
+
const targets = canonicalTree.getCorrespondences(lookup.hebrewLetterId, {
|
|
508
|
+
type: "path" /* PATH */,
|
|
509
|
+
depth: 1
|
|
510
|
+
}).map((match) => ({
|
|
511
|
+
targetId: match.node.id,
|
|
512
|
+
targetType: "path",
|
|
513
|
+
targetName: getTargetName(match.node.id),
|
|
514
|
+
mapping: "letter-path",
|
|
515
|
+
distance: match.distance
|
|
516
|
+
}));
|
|
517
|
+
return {
|
|
518
|
+
source,
|
|
519
|
+
targets
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
const sign = normalizeSignName(lookup.sign);
|
|
523
|
+
if (!sign) {
|
|
524
|
+
return void 0;
|
|
525
|
+
}
|
|
526
|
+
const signTargets = buildSignTargets(sign);
|
|
527
|
+
const element = signTargets.find((target) => target.element)?.element;
|
|
528
|
+
if (lookup.kind === "sign") {
|
|
529
|
+
return {
|
|
530
|
+
source: createCorrespondenceSource(lookup, sign, element),
|
|
531
|
+
targets: signTargets
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
if (lookup.kind === "planet") {
|
|
535
|
+
const planet = normalizePlanetName(lookup.planet);
|
|
536
|
+
const planetKey = normalizeLookupKey(planet);
|
|
537
|
+
const planetPathTargets = (classicalPlanetPathIdsByKey.get(planetKey) ?? []).map((pathId) => ({
|
|
538
|
+
targetId: pathId,
|
|
539
|
+
targetType: "path",
|
|
540
|
+
targetName: getTargetName(pathId),
|
|
541
|
+
mapping: "planet-sign-path",
|
|
542
|
+
distance: 1,
|
|
543
|
+
sign,
|
|
544
|
+
planet
|
|
545
|
+
}));
|
|
546
|
+
const carrierSphereTargets = buildCarrierSphereTargets(lookup, sign);
|
|
547
|
+
return {
|
|
548
|
+
source: createCorrespondenceSource(lookup, sign, element),
|
|
549
|
+
targets: dedupeTargets([...signTargets, ...planetPathTargets, ...carrierSphereTargets])
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
if (lookup.kind === "angle") {
|
|
553
|
+
const carrierSphereTargets = buildCarrierSphereTargets(lookup, sign);
|
|
554
|
+
return {
|
|
555
|
+
source: createCorrespondenceSource(lookup, sign, element),
|
|
556
|
+
targets: dedupeTargets([...signTargets, ...carrierSphereTargets])
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
return {
|
|
560
|
+
source: createCorrespondenceSource(lookup, sign, element),
|
|
561
|
+
targets: signTargets
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
function toAstrologyMarkers(result, source) {
|
|
565
|
+
const sourceGlyph = getAstrologySourceGlyph(source.sourceType, source.sourceName);
|
|
566
|
+
const signGlyph = result.source.sign ? lookupSignSymbolMetadata(result.source.sign)?.glyph ?? sourceGlyph : sourceGlyph;
|
|
567
|
+
return result.targets.map((target) => ({
|
|
568
|
+
kind: "astrology",
|
|
569
|
+
targetId: target.targetId,
|
|
570
|
+
targetType: target.targetType,
|
|
571
|
+
sourceType: source.sourceType,
|
|
572
|
+
sourceName: source.sourceName,
|
|
573
|
+
mapping: target.mapping,
|
|
574
|
+
label: target.mapping === "planet-sign-path" || target.mapping === "carrier-sphere" ? signGlyph : sourceGlyph,
|
|
575
|
+
...target.sign ? { sign: target.sign } : {},
|
|
576
|
+
...target.element ? { element: target.element } : {},
|
|
577
|
+
...target.planet ? { planet: target.planet } : {}
|
|
578
|
+
}));
|
|
579
|
+
}
|
|
580
|
+
function dedupeMarkers(markers) {
|
|
581
|
+
const seen = /* @__PURE__ */ new Set();
|
|
582
|
+
return markers.filter((marker) => {
|
|
583
|
+
const key = [
|
|
584
|
+
marker.kind,
|
|
585
|
+
marker.targetId,
|
|
586
|
+
marker.sourceType,
|
|
587
|
+
marker.sourceName,
|
|
588
|
+
marker.mapping,
|
|
589
|
+
marker.label,
|
|
590
|
+
marker.sign ?? "",
|
|
591
|
+
marker.element ?? "",
|
|
592
|
+
marker.planet ?? ""
|
|
593
|
+
].join("|");
|
|
594
|
+
if (seen.has(key)) {
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
seen.add(key);
|
|
598
|
+
return true;
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
function getAstrologyTreeMarkers(input) {
|
|
602
|
+
const chart = normalizeChartInput(input);
|
|
603
|
+
const markers = [];
|
|
604
|
+
for (const planet of chart.planets) {
|
|
605
|
+
const normalizedName = normalizeLookupKey(planet.name);
|
|
606
|
+
if (defaultExcludedAstrologyPoints.has(normalizedName)) {
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
const sourceType = getAstrologySourceType(planet.name);
|
|
610
|
+
const correspondences = getKaabalisticCorrespondenceTargets({
|
|
611
|
+
kind: sourceType,
|
|
612
|
+
[sourceType]: planet.name,
|
|
613
|
+
sign: planet.zodiacPosition.sign
|
|
614
|
+
});
|
|
615
|
+
if (!correspondences) {
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
markers.push(
|
|
619
|
+
...toAstrologyMarkers(correspondences, {
|
|
620
|
+
sourceType,
|
|
621
|
+
sourceName: correspondences.source.label
|
|
622
|
+
})
|
|
623
|
+
);
|
|
624
|
+
}
|
|
625
|
+
for (const node of chart.nodes) {
|
|
626
|
+
const correspondences = getKaabalisticCorrespondenceTargets({
|
|
627
|
+
kind: "node",
|
|
628
|
+
node: node.name,
|
|
629
|
+
sign: node.sign
|
|
630
|
+
});
|
|
631
|
+
if (!correspondences) {
|
|
632
|
+
continue;
|
|
633
|
+
}
|
|
634
|
+
markers.push(
|
|
635
|
+
...toAstrologyMarkers(correspondences, {
|
|
636
|
+
sourceType: "node",
|
|
637
|
+
sourceName: correspondences.source.label
|
|
638
|
+
})
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
const angleTargets = [
|
|
642
|
+
{ angle: "ASC", position: chart.houses.ascendant },
|
|
643
|
+
{ angle: "MC", position: chart.houses.mc },
|
|
644
|
+
{ angle: "Vertex", position: chart.houses.ascmc?.vertex }
|
|
645
|
+
];
|
|
646
|
+
for (const angle of angleTargets) {
|
|
647
|
+
if (!angle.position?.sign) {
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
const correspondences = getKaabalisticCorrespondenceTargets({
|
|
651
|
+
kind: "angle",
|
|
652
|
+
angle: angle.angle,
|
|
653
|
+
sign: angle.position.sign
|
|
654
|
+
});
|
|
655
|
+
if (!correspondences) {
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
markers.push(
|
|
659
|
+
...toAstrologyMarkers(correspondences, {
|
|
660
|
+
sourceType: "angle",
|
|
661
|
+
sourceName: correspondences.source.label
|
|
662
|
+
})
|
|
663
|
+
);
|
|
664
|
+
}
|
|
665
|
+
return dedupeMarkers(markers);
|
|
666
|
+
}
|
|
667
|
+
function resolveNumerologyInput(input) {
|
|
668
|
+
const birthDate = input instanceof Date ? input : input.birthDate;
|
|
669
|
+
const kaabalisticLifePath = input instanceof Date ? chunkPAKYKIZH_js.calculateKaabalisticLifePath(birthDate) : input.kaabalisticLifePath ?? chunkPAKYKIZH_js.calculateKaabalisticLifePath(birthDate);
|
|
670
|
+
const straightAcrossReductionLifePath = input instanceof Date ? chunkPAKYKIZH_js.calculateStraightAcrossReductionLifePath(birthDate) : input.straightAcrossReductionLifePath ?? chunkPAKYKIZH_js.calculateStraightAcrossReductionLifePath(birthDate);
|
|
671
|
+
return {
|
|
672
|
+
birthDate,
|
|
673
|
+
kaabalisticLifePath,
|
|
674
|
+
straightAcrossReductionLifePath
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
function buildNumberMarkers(sourceName, numbers, kind) {
|
|
678
|
+
const markers = [];
|
|
679
|
+
for (const number of numbers) {
|
|
680
|
+
const correspondences = getKaabalisticCorrespondenceTargets({
|
|
681
|
+
kind: "number",
|
|
682
|
+
number});
|
|
683
|
+
if (!correspondences) {
|
|
684
|
+
continue;
|
|
685
|
+
}
|
|
686
|
+
for (const target of correspondences.targets) {
|
|
687
|
+
markers.push({
|
|
688
|
+
kind,
|
|
689
|
+
targetId: target.targetId,
|
|
690
|
+
targetType: target.targetType,
|
|
691
|
+
sourceType: "number",
|
|
692
|
+
sourceName,
|
|
693
|
+
mapping: target.mapping,
|
|
694
|
+
label: String(number)
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return markers;
|
|
699
|
+
}
|
|
700
|
+
function getNumerologyTreeMarkers(input) {
|
|
701
|
+
const { kaabalisticLifePath, straightAcrossReductionLifePath } = resolveNumerologyInput(input);
|
|
702
|
+
const markers = [];
|
|
703
|
+
const sources = [
|
|
704
|
+
{
|
|
705
|
+
sourceName: "Day Energy",
|
|
706
|
+
numbers: straightAcrossReductionLifePath.dayEnergy.reductionSteps
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
sourceName: "Month Energy",
|
|
710
|
+
numbers: straightAcrossReductionLifePath.monthEnergy.reductionSteps
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
sourceName: "Year Energy",
|
|
714
|
+
numbers: straightAcrossReductionLifePath.yearEnergy.reductionSteps
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
sourceName: `Life Path (Kaabalistic) ${kaabalisticLifePath.lifePath.reducedValue}`,
|
|
718
|
+
numbers: kaabalisticLifePath.lifePath.reductionSteps
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
sourceName: `Life Path (Straight) ${straightAcrossReductionLifePath.lifePath.reducedValue}`,
|
|
722
|
+
numbers: straightAcrossReductionLifePath.lifePath.reductionSteps
|
|
723
|
+
}
|
|
724
|
+
];
|
|
725
|
+
for (const source of sources) {
|
|
726
|
+
markers.push(...buildNumberMarkers(source.sourceName, source.numbers, "numerology"));
|
|
727
|
+
}
|
|
728
|
+
return markers;
|
|
729
|
+
}
|
|
730
|
+
function resolveGematriaInput(input) {
|
|
731
|
+
if (typeof input === "string") {
|
|
732
|
+
return chunkCOPYH3O2_js.calculateGematria(input);
|
|
733
|
+
}
|
|
734
|
+
if (input.result) {
|
|
735
|
+
return input.result;
|
|
736
|
+
}
|
|
737
|
+
if (input.phrase) {
|
|
738
|
+
return chunkCOPYH3O2_js.calculateGematria(input.phrase);
|
|
739
|
+
}
|
|
740
|
+
return void 0;
|
|
741
|
+
}
|
|
742
|
+
function getGematriaTreeMarkers(input) {
|
|
743
|
+
const result = resolveGematriaInput(input);
|
|
744
|
+
if (!result) {
|
|
745
|
+
return [];
|
|
746
|
+
}
|
|
747
|
+
const markers = [];
|
|
748
|
+
const numericSources = [
|
|
749
|
+
{ sourceName: "Vowels", numbers: result.vowels.reductionSteps },
|
|
750
|
+
{ sourceName: "Consonants", numbers: result.consonants.reductionSteps },
|
|
751
|
+
{ sourceName: "Synthesis", numbers: result.synthesis.reductionSteps }
|
|
752
|
+
];
|
|
753
|
+
for (const source of numericSources) {
|
|
754
|
+
markers.push(...buildNumberMarkers(source.sourceName, source.numbers, "gematria"));
|
|
755
|
+
}
|
|
756
|
+
for (const letter of result.includedLetters) {
|
|
757
|
+
const correspondences = getKaabalisticCorrespondenceTargets({
|
|
758
|
+
kind: "hebrewLetter",
|
|
759
|
+
hebrewLetterId: letter.hebrewLetterId});
|
|
760
|
+
if (!correspondences) {
|
|
761
|
+
continue;
|
|
762
|
+
}
|
|
763
|
+
for (const target of correspondences.targets) {
|
|
764
|
+
markers.push({
|
|
765
|
+
kind: "gematria",
|
|
766
|
+
targetId: target.targetId,
|
|
767
|
+
targetType: target.targetType,
|
|
768
|
+
sourceType: "letter",
|
|
769
|
+
sourceName: "Included Letters",
|
|
770
|
+
mapping: target.mapping,
|
|
771
|
+
label: letter.hebrewCharacter
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return markers;
|
|
776
|
+
}
|
|
777
|
+
function incrementCounts(countsById, targetId, bucket) {
|
|
778
|
+
const current = countsById[targetId] ?? {
|
|
779
|
+
astro: 0,
|
|
780
|
+
numerology: 0,
|
|
781
|
+
gematria: 0,
|
|
782
|
+
total: 0
|
|
783
|
+
};
|
|
784
|
+
current[bucket] += 1;
|
|
785
|
+
current.total += 1;
|
|
786
|
+
countsById[targetId] = current;
|
|
787
|
+
}
|
|
788
|
+
function groupMarkersByTarget(markers, targetType) {
|
|
789
|
+
const grouped = {};
|
|
790
|
+
for (const marker of markers) {
|
|
791
|
+
if (marker.targetType !== targetType) {
|
|
792
|
+
continue;
|
|
793
|
+
}
|
|
794
|
+
const bucket = grouped[marker.targetId] ?? [];
|
|
795
|
+
bucket.push(marker);
|
|
796
|
+
grouped[marker.targetId] = bucket;
|
|
797
|
+
}
|
|
798
|
+
return grouped;
|
|
799
|
+
}
|
|
800
|
+
function buildAstrologySummary(input, markers, countsById) {
|
|
801
|
+
const chart = normalizeChartInput(input);
|
|
802
|
+
const itemConnections = [];
|
|
803
|
+
for (const marker of markers) {
|
|
804
|
+
incrementCounts(countsById, marker.targetId, "astro");
|
|
805
|
+
}
|
|
806
|
+
const groupedBySource = groupByKey(
|
|
807
|
+
markers,
|
|
808
|
+
(marker) => `${marker.sourceType}|${marker.sourceName}|${marker.sign ?? ""}`
|
|
809
|
+
);
|
|
810
|
+
for (const sourceMarkers of Object.values(groupedBySource)) {
|
|
811
|
+
if (!sourceMarkers.length) {
|
|
812
|
+
continue;
|
|
813
|
+
}
|
|
814
|
+
const firstMarker = sourceMarkers[0];
|
|
815
|
+
const itemLabel = firstMarker.sign ? `${firstMarker.sourceName} in ${firstMarker.sign}` : firstMarker.sourceName;
|
|
816
|
+
itemConnections.push({
|
|
817
|
+
itemLabel,
|
|
818
|
+
targets: toSummaryTargets(getTargetCountMap(sourceMarkers.map((marker) => ({
|
|
819
|
+
targetId: marker.targetId,
|
|
820
|
+
targetType: marker.targetType,
|
|
821
|
+
targetName: getTargetName(marker.targetId),
|
|
822
|
+
mapping: marker.mapping,
|
|
823
|
+
distance: 1
|
|
824
|
+
}))))
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
const planetsByName = Object.fromEntries(
|
|
828
|
+
chart.planets.filter((planet) => !defaultExcludedAstrologyPoints.has(normalizeLookupKey(planet.name))).map((planet) => [normalizeLookupKey(planet.name), { longitude: planet.longitude }])
|
|
829
|
+
);
|
|
830
|
+
const aspects = chart.aspects ?? chunk6O7MTBZN_js.computeAspects(planetsByName, chunk6O7MTBZN_js.DEFAULT_ASPECT_SPECS);
|
|
831
|
+
const aspectsByType = {};
|
|
832
|
+
for (const aspect of aspects) {
|
|
833
|
+
const aspectId = chunkS6KNERP7_js.id(
|
|
834
|
+
"aspect" /* ASPECT */,
|
|
835
|
+
chunkS6KNERP7_js.WESTERN_ASPECTS[aspect.aspect.toUpperCase()] ?? aspect.aspect
|
|
836
|
+
);
|
|
837
|
+
const sphere = canonicalTree.getCorrespondences(aspectId, {
|
|
838
|
+
type: "sphere" /* SPHERE */,
|
|
839
|
+
depth: 1,
|
|
840
|
+
limit: 1
|
|
841
|
+
})[0]?.node;
|
|
842
|
+
if (!sphere) {
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
incrementCounts(countsById, sphere.id, "astro");
|
|
846
|
+
const bucket = aspectsByType[aspect.aspect] ?? {};
|
|
847
|
+
bucket[sphere.id] = (bucket[sphere.id] ?? 0) + 1;
|
|
848
|
+
aspectsByType[aspect.aspect] = bucket;
|
|
849
|
+
}
|
|
850
|
+
for (const [aspectName, reduceMap] of Object.entries(aspectsByType)) {
|
|
851
|
+
itemConnections.push({
|
|
852
|
+
itemLabel: `Aspects \u2014 ${capitalizeWords(aspectName)}`,
|
|
853
|
+
targets: toSummaryTargets(reduceMap)
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
for (const planet of chart.planets) {
|
|
857
|
+
if (defaultExcludedAstrologyPoints.has(normalizeLookupKey(planet.name))) {
|
|
858
|
+
continue;
|
|
859
|
+
}
|
|
860
|
+
const house = getHouseNodeByNumber(planet.zodiacPosition.house);
|
|
861
|
+
if (!house) {
|
|
862
|
+
continue;
|
|
863
|
+
}
|
|
864
|
+
const sign = canonicalTree.getCorrespondences(house.id, {
|
|
865
|
+
type: "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */,
|
|
866
|
+
depth: 1,
|
|
867
|
+
limit: 1
|
|
868
|
+
})[0]?.node;
|
|
869
|
+
if (!sign) {
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
const spheres = canonicalTree.getCorrespondences(sign.id, {
|
|
873
|
+
type: "sphere" /* SPHERE */,
|
|
874
|
+
depth: 1
|
|
875
|
+
});
|
|
876
|
+
if (!spheres.length) {
|
|
877
|
+
continue;
|
|
878
|
+
}
|
|
879
|
+
const reduceMap = {};
|
|
880
|
+
for (const sphere of spheres) {
|
|
881
|
+
const sphereId = sphere.node.id;
|
|
882
|
+
incrementCounts(countsById, sphereId, "astro");
|
|
883
|
+
reduceMap[sphereId] = (reduceMap[sphereId] ?? 0) + 1;
|
|
884
|
+
}
|
|
885
|
+
itemConnections.push({
|
|
886
|
+
itemLabel: `${planet.name} \u2022 House ${planet.zodiacPosition.house}`,
|
|
887
|
+
targets: toSummaryTargets(reduceMap)
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
return itemConnections;
|
|
891
|
+
}
|
|
892
|
+
function buildSourceSummary(markers, bucket, countsById) {
|
|
893
|
+
const groupedBySource = groupByKey(
|
|
894
|
+
markers,
|
|
895
|
+
(marker) => `${marker.sourceType}|${marker.sourceName}`
|
|
896
|
+
);
|
|
897
|
+
const connections = [];
|
|
898
|
+
for (const sourceMarkers of Object.values(groupedBySource)) {
|
|
899
|
+
if (!sourceMarkers.length) {
|
|
900
|
+
continue;
|
|
901
|
+
}
|
|
902
|
+
for (const marker of sourceMarkers) {
|
|
903
|
+
incrementCounts(countsById, marker.targetId, bucket);
|
|
904
|
+
}
|
|
905
|
+
connections.push({
|
|
906
|
+
itemLabel: sourceMarkers[0].sourceName,
|
|
907
|
+
targets: toSummaryTargets(getTargetCountMap(sourceMarkers.map((marker) => ({
|
|
908
|
+
targetId: marker.targetId,
|
|
909
|
+
targetType: marker.targetType,
|
|
910
|
+
targetName: getTargetName(marker.targetId),
|
|
911
|
+
mapping: marker.mapping,
|
|
912
|
+
distance: 1
|
|
913
|
+
}))))
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
return connections;
|
|
917
|
+
}
|
|
918
|
+
function capitalizeWords(value) {
|
|
919
|
+
return value.split(/\s+/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
|
|
920
|
+
}
|
|
921
|
+
function buildKaabalisticMapData(input) {
|
|
922
|
+
const countsById = {};
|
|
923
|
+
const allMarkers = [];
|
|
924
|
+
const astrologyMarkers = input.astrology ? getAstrologyTreeMarkers(input.astrology) : [];
|
|
925
|
+
const numerologyMarkers = input.numerology ? getNumerologyTreeMarkers(input.numerology) : [];
|
|
926
|
+
const gematriaMarkers = input.gematria ? getGematriaTreeMarkers(input.gematria) : [];
|
|
927
|
+
allMarkers.push(...astrologyMarkers, ...numerologyMarkers, ...gematriaMarkers);
|
|
928
|
+
const itemConnections = {
|
|
929
|
+
astrology: input.astrology ? buildAstrologySummary(input.astrology, astrologyMarkers, countsById) : [],
|
|
930
|
+
numerology: numerologyMarkers.length ? buildSourceSummary(numerologyMarkers, "numerology", countsById) : [],
|
|
931
|
+
gematria: gematriaMarkers.length ? buildSourceSummary(gematriaMarkers, "gematria", countsById) : []
|
|
932
|
+
};
|
|
933
|
+
const sphereMarkers = groupMarkersByTarget(allMarkers, "sphere");
|
|
934
|
+
const pathMarkers = groupMarkersByTarget(allMarkers, "path");
|
|
935
|
+
return {
|
|
936
|
+
spheres: orderedSpheres,
|
|
937
|
+
paths: orderedPaths,
|
|
938
|
+
markers: allMarkers,
|
|
939
|
+
sphereMarkers,
|
|
940
|
+
pathMarkers,
|
|
941
|
+
countsById,
|
|
942
|
+
itemConnections
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
// src/semantic/index.ts
|
|
947
|
+
var OCCULT_THEME_STOPWORDS = [
|
|
948
|
+
"the",
|
|
949
|
+
"and",
|
|
950
|
+
"for",
|
|
951
|
+
"with",
|
|
952
|
+
"that",
|
|
953
|
+
"this",
|
|
954
|
+
"was",
|
|
955
|
+
"were",
|
|
956
|
+
"been",
|
|
957
|
+
"have",
|
|
958
|
+
"has",
|
|
959
|
+
"had",
|
|
960
|
+
"just",
|
|
961
|
+
"from",
|
|
962
|
+
"into",
|
|
963
|
+
"about",
|
|
964
|
+
"over",
|
|
965
|
+
"under",
|
|
966
|
+
"very",
|
|
967
|
+
"more",
|
|
968
|
+
"less",
|
|
969
|
+
"then",
|
|
970
|
+
"than",
|
|
971
|
+
"when",
|
|
972
|
+
"what",
|
|
973
|
+
"where",
|
|
974
|
+
"which",
|
|
975
|
+
"while",
|
|
976
|
+
"would",
|
|
977
|
+
"could",
|
|
978
|
+
"should",
|
|
979
|
+
"again",
|
|
980
|
+
"still",
|
|
981
|
+
"really",
|
|
982
|
+
"gotta",
|
|
983
|
+
"lota",
|
|
984
|
+
"lotta",
|
|
985
|
+
"para",
|
|
986
|
+
"com",
|
|
987
|
+
"sem",
|
|
988
|
+
"por",
|
|
989
|
+
"uma",
|
|
990
|
+
"um",
|
|
991
|
+
"uns",
|
|
992
|
+
"das",
|
|
993
|
+
"dos",
|
|
994
|
+
"del",
|
|
995
|
+
"que",
|
|
996
|
+
"n\xE3o",
|
|
997
|
+
"nao",
|
|
998
|
+
"isso",
|
|
999
|
+
"essa",
|
|
1000
|
+
"este",
|
|
1001
|
+
"esta",
|
|
1002
|
+
"como",
|
|
1003
|
+
"mais",
|
|
1004
|
+
"menos",
|
|
1005
|
+
"muito",
|
|
1006
|
+
"muita",
|
|
1007
|
+
"their",
|
|
1008
|
+
"your",
|
|
1009
|
+
"mine",
|
|
1010
|
+
"ours",
|
|
1011
|
+
"onto",
|
|
1012
|
+
"sobre",
|
|
1013
|
+
"entre",
|
|
1014
|
+
"depois",
|
|
1015
|
+
"antes"
|
|
1016
|
+
];
|
|
1017
|
+
var canonicalTree2 = chunkOKZUVGA3_js.getCanonicalTree({
|
|
1018
|
+
system: "kaabalah",
|
|
1019
|
+
parts: ["westernAstrology", "tarot"]
|
|
1020
|
+
});
|
|
1021
|
+
var HOUSE_LABELS_BY_NUMBER = [
|
|
1022
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.ASCENDANT,
|
|
1023
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.SECOND_HOUSE,
|
|
1024
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.THIRD_HOUSE,
|
|
1025
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.IMUM_COELI,
|
|
1026
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.FIFTH_HOUSE,
|
|
1027
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.SIXTH_HOUSE,
|
|
1028
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.DESCENDANT,
|
|
1029
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.EIGHTH_HOUSE,
|
|
1030
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.NINTH_HOUSE,
|
|
1031
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.MEDIUM_COELI,
|
|
1032
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.ELEVENTH_HOUSE,
|
|
1033
|
+
chunkS6KNERP7_js.WESTERN_HOUSES.TWELFTH_HOUSE
|
|
1034
|
+
];
|
|
1035
|
+
var HOUSE_THEME_SEEDS = {
|
|
1036
|
+
1: {
|
|
1037
|
+
primaryLabel: "Images",
|
|
1038
|
+
scope: "personal",
|
|
1039
|
+
aliases: [
|
|
1040
|
+
"First House",
|
|
1041
|
+
"House 1",
|
|
1042
|
+
"Casa 1",
|
|
1043
|
+
"Imagens",
|
|
1044
|
+
"Como me vejo e como outros me veem",
|
|
1045
|
+
"Self-image"
|
|
1046
|
+
],
|
|
1047
|
+
keywords: [
|
|
1048
|
+
"images",
|
|
1049
|
+
"imagens",
|
|
1050
|
+
"identity",
|
|
1051
|
+
"self-image",
|
|
1052
|
+
"appearance",
|
|
1053
|
+
"body",
|
|
1054
|
+
"personality",
|
|
1055
|
+
"first impression",
|
|
1056
|
+
"persona",
|
|
1057
|
+
"character",
|
|
1058
|
+
"personagem",
|
|
1059
|
+
"how I see myself",
|
|
1060
|
+
"how others see me"
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
1063
|
+
2: {
|
|
1064
|
+
primaryLabel: "Money",
|
|
1065
|
+
scope: "personal",
|
|
1066
|
+
aliases: ["Second House", "House 2", "Casa 2", "Dinheiro", "Resources"],
|
|
1067
|
+
keywords: [
|
|
1068
|
+
"money",
|
|
1069
|
+
"dinheiro",
|
|
1070
|
+
"resources",
|
|
1071
|
+
"income",
|
|
1072
|
+
"finances",
|
|
1073
|
+
"possessions",
|
|
1074
|
+
"values",
|
|
1075
|
+
"material values",
|
|
1076
|
+
"self-worth"
|
|
1077
|
+
]
|
|
1078
|
+
},
|
|
1079
|
+
3: {
|
|
1080
|
+
primaryLabel: "Communication",
|
|
1081
|
+
scope: "personal",
|
|
1082
|
+
aliases: ["Third House", "House 3", "Casa 3", "Comunica\xE7\xE3o", "Comunica\xE7\xF5es"],
|
|
1083
|
+
keywords: [
|
|
1084
|
+
"communication",
|
|
1085
|
+
"comunica\xE7\xE3o",
|
|
1086
|
+
"comunica\xE7\xF5es",
|
|
1087
|
+
"siblings",
|
|
1088
|
+
"writing",
|
|
1089
|
+
"language",
|
|
1090
|
+
"study",
|
|
1091
|
+
"neighborhood",
|
|
1092
|
+
"short trips",
|
|
1093
|
+
"early education",
|
|
1094
|
+
"mind"
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
4: {
|
|
1098
|
+
primaryLabel: "Family",
|
|
1099
|
+
scope: "personal",
|
|
1100
|
+
aliases: [
|
|
1101
|
+
"Fourth House",
|
|
1102
|
+
"House 4",
|
|
1103
|
+
"Casa 4",
|
|
1104
|
+
"IC",
|
|
1105
|
+
"Home Angle",
|
|
1106
|
+
"Fam\xEDlia",
|
|
1107
|
+
"Fam\xEDlias",
|
|
1108
|
+
"Family (not only blood)",
|
|
1109
|
+
"Familia (n\xE3o s\xF3 de sangue)"
|
|
1110
|
+
],
|
|
1111
|
+
keywords: [
|
|
1112
|
+
"family",
|
|
1113
|
+
"familia",
|
|
1114
|
+
"families",
|
|
1115
|
+
"fam\xEDlias",
|
|
1116
|
+
"home",
|
|
1117
|
+
"roots",
|
|
1118
|
+
"belonging",
|
|
1119
|
+
"kinship",
|
|
1120
|
+
"chosen family",
|
|
1121
|
+
"vida \xEDntima",
|
|
1122
|
+
"inner foundation",
|
|
1123
|
+
"private life"
|
|
1124
|
+
]
|
|
1125
|
+
},
|
|
1126
|
+
5: {
|
|
1127
|
+
primaryLabel: "Hobbies",
|
|
1128
|
+
scope: "personal",
|
|
1129
|
+
aliases: ["Fifth House", "House 5", "Casa 5", "Hobbies", "Lazer", "Pleasures"],
|
|
1130
|
+
keywords: [
|
|
1131
|
+
"hobbies",
|
|
1132
|
+
"hobby",
|
|
1133
|
+
"lazer",
|
|
1134
|
+
"pleasure",
|
|
1135
|
+
"fun",
|
|
1136
|
+
"games",
|
|
1137
|
+
"creative leisure",
|
|
1138
|
+
"creativity",
|
|
1139
|
+
"children",
|
|
1140
|
+
"romance",
|
|
1141
|
+
"speculation"
|
|
1142
|
+
]
|
|
1143
|
+
},
|
|
1144
|
+
6: {
|
|
1145
|
+
primaryLabel: "Health",
|
|
1146
|
+
scope: "personal",
|
|
1147
|
+
aliases: ["Sixth House", "House 6", "Casa 6", "Sa\xFAde", "Health"],
|
|
1148
|
+
keywords: [
|
|
1149
|
+
"health",
|
|
1150
|
+
"sa\xFAde",
|
|
1151
|
+
"routine",
|
|
1152
|
+
"service",
|
|
1153
|
+
"care",
|
|
1154
|
+
"wellbeing",
|
|
1155
|
+
"body maintenance",
|
|
1156
|
+
"daily work",
|
|
1157
|
+
"pets"
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
7: {
|
|
1161
|
+
primaryLabel: "Associations",
|
|
1162
|
+
scope: "transition",
|
|
1163
|
+
aliases: [
|
|
1164
|
+
"Seventh House",
|
|
1165
|
+
"House 7",
|
|
1166
|
+
"Casa 7",
|
|
1167
|
+
"Associa\xE7\xF5es",
|
|
1168
|
+
"Partnerships",
|
|
1169
|
+
"Associations"
|
|
1170
|
+
],
|
|
1171
|
+
keywords: [
|
|
1172
|
+
"associations",
|
|
1173
|
+
"associa\xE7\xF5es",
|
|
1174
|
+
"partnerships",
|
|
1175
|
+
"partners",
|
|
1176
|
+
"alliances",
|
|
1177
|
+
"cooperation",
|
|
1178
|
+
"the other",
|
|
1179
|
+
"relationships",
|
|
1180
|
+
"marriage",
|
|
1181
|
+
"contracts",
|
|
1182
|
+
"open enemies"
|
|
1183
|
+
]
|
|
1184
|
+
},
|
|
1185
|
+
8: {
|
|
1186
|
+
primaryLabel: "Sex and Initiations",
|
|
1187
|
+
scope: "transpersonal",
|
|
1188
|
+
aliases: [
|
|
1189
|
+
"Eighth House",
|
|
1190
|
+
"House 8",
|
|
1191
|
+
"Casa 8",
|
|
1192
|
+
"Sexo",
|
|
1193
|
+
"Inicia\xE7\xF5es",
|
|
1194
|
+
"Sexo / Inicia\xE7\xF5es"
|
|
1195
|
+
],
|
|
1196
|
+
keywords: [
|
|
1197
|
+
"sex",
|
|
1198
|
+
"sexo",
|
|
1199
|
+
"initiations",
|
|
1200
|
+
"inicia\xE7\xF5es",
|
|
1201
|
+
"transformation",
|
|
1202
|
+
"transmutations",
|
|
1203
|
+
"taboo",
|
|
1204
|
+
"death",
|
|
1205
|
+
"shared resources",
|
|
1206
|
+
"sexuality",
|
|
1207
|
+
"occult",
|
|
1208
|
+
"death rebirth"
|
|
1209
|
+
]
|
|
1210
|
+
},
|
|
1211
|
+
9: {
|
|
1212
|
+
primaryLabel: "Travel and Knowledge",
|
|
1213
|
+
scope: "transpersonal",
|
|
1214
|
+
aliases: [
|
|
1215
|
+
"Ninth House",
|
|
1216
|
+
"House 9",
|
|
1217
|
+
"Casa 9",
|
|
1218
|
+
"Viagens",
|
|
1219
|
+
"Travel",
|
|
1220
|
+
"Travel, Religion, Philosophy, Knowledge"
|
|
1221
|
+
],
|
|
1222
|
+
keywords: [
|
|
1223
|
+
"travel",
|
|
1224
|
+
"viagens",
|
|
1225
|
+
"religion",
|
|
1226
|
+
"religi\xE3o",
|
|
1227
|
+
"philosophy",
|
|
1228
|
+
"filosofia",
|
|
1229
|
+
"knowledge",
|
|
1230
|
+
"conhecimento",
|
|
1231
|
+
"higher studies",
|
|
1232
|
+
"higher education",
|
|
1233
|
+
"publishing",
|
|
1234
|
+
"law"
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
10: {
|
|
1238
|
+
primaryLabel: "Career and Work",
|
|
1239
|
+
scope: "transpersonal",
|
|
1240
|
+
aliases: [
|
|
1241
|
+
"Tenth House",
|
|
1242
|
+
"House 10",
|
|
1243
|
+
"Casa 10",
|
|
1244
|
+
"Midheaven",
|
|
1245
|
+
"MC",
|
|
1246
|
+
"Carreira",
|
|
1247
|
+
"Trabalho"
|
|
1248
|
+
],
|
|
1249
|
+
keywords: [
|
|
1250
|
+
"career",
|
|
1251
|
+
"carreira",
|
|
1252
|
+
"work",
|
|
1253
|
+
"trabalho",
|
|
1254
|
+
"profession",
|
|
1255
|
+
"reputation",
|
|
1256
|
+
"vocation",
|
|
1257
|
+
"public life",
|
|
1258
|
+
"public image",
|
|
1259
|
+
"ambition",
|
|
1260
|
+
"authority",
|
|
1261
|
+
"legacy"
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
11: {
|
|
1265
|
+
primaryLabel: "Friends",
|
|
1266
|
+
scope: "transpersonal",
|
|
1267
|
+
aliases: ["Eleventh House", "House 11", "Casa 11", "Friends", "Amigos", "Rela\xE7\xF5es"],
|
|
1268
|
+
keywords: [
|
|
1269
|
+
"friends",
|
|
1270
|
+
"amigos",
|
|
1271
|
+
"friendships",
|
|
1272
|
+
"relations",
|
|
1273
|
+
"network",
|
|
1274
|
+
"community",
|
|
1275
|
+
"groups",
|
|
1276
|
+
"projects",
|
|
1277
|
+
"ideals",
|
|
1278
|
+
"hopes",
|
|
1279
|
+
"humanitarian goals"
|
|
1280
|
+
]
|
|
1281
|
+
},
|
|
1282
|
+
12: {
|
|
1283
|
+
primaryLabel: "Past Lives",
|
|
1284
|
+
scope: "transpersonal",
|
|
1285
|
+
aliases: [
|
|
1286
|
+
"Twelfth House",
|
|
1287
|
+
"House 12",
|
|
1288
|
+
"Casa 12",
|
|
1289
|
+
"Vida passada",
|
|
1290
|
+
"Vidas passadas",
|
|
1291
|
+
"Past life",
|
|
1292
|
+
"Past lives",
|
|
1293
|
+
"Oculto"
|
|
1294
|
+
],
|
|
1295
|
+
keywords: [
|
|
1296
|
+
"past life",
|
|
1297
|
+
"past lives",
|
|
1298
|
+
"vida passada",
|
|
1299
|
+
"vidas passadas",
|
|
1300
|
+
"karma",
|
|
1301
|
+
"occult",
|
|
1302
|
+
"hidden",
|
|
1303
|
+
"unconscious",
|
|
1304
|
+
"spiritual memory",
|
|
1305
|
+
"isolation",
|
|
1306
|
+
"spirituality",
|
|
1307
|
+
"hidden enemies",
|
|
1308
|
+
"self undoing"
|
|
1309
|
+
]
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
var TAROT_SUIT_ALIASES = {
|
|
1313
|
+
wands: ["Rods", "Staves", "Paus"],
|
|
1314
|
+
cups: ["Chalices", "Copas"],
|
|
1315
|
+
swords: ["Blades", "Espadas"],
|
|
1316
|
+
pentacles: ["Coins", "Disks", "Discs", "Ouros"]
|
|
1317
|
+
};
|
|
1318
|
+
var TAROT_SUIT_THEME_KEYWORDS = {
|
|
1319
|
+
wands: [
|
|
1320
|
+
"paus",
|
|
1321
|
+
"fire",
|
|
1322
|
+
"will",
|
|
1323
|
+
"inspiration",
|
|
1324
|
+
"creation",
|
|
1325
|
+
"force",
|
|
1326
|
+
"vigor",
|
|
1327
|
+
"initiative",
|
|
1328
|
+
"progress",
|
|
1329
|
+
"thinking",
|
|
1330
|
+
"associating ideas",
|
|
1331
|
+
"seeking results",
|
|
1332
|
+
"politicians",
|
|
1333
|
+
"workers",
|
|
1334
|
+
"producers",
|
|
1335
|
+
"salamanders"
|
|
1336
|
+
],
|
|
1337
|
+
cups: [
|
|
1338
|
+
"copas",
|
|
1339
|
+
"water",
|
|
1340
|
+
"feelings",
|
|
1341
|
+
"emotions",
|
|
1342
|
+
"receptivity",
|
|
1343
|
+
"sensitivity",
|
|
1344
|
+
"ideals",
|
|
1345
|
+
"love",
|
|
1346
|
+
"artistic creation",
|
|
1347
|
+
"feeling",
|
|
1348
|
+
"affective",
|
|
1349
|
+
"relational",
|
|
1350
|
+
"emotional",
|
|
1351
|
+
"clergy",
|
|
1352
|
+
"spiritual class",
|
|
1353
|
+
"ondines",
|
|
1354
|
+
"mermaids"
|
|
1355
|
+
],
|
|
1356
|
+
swords: [
|
|
1357
|
+
"espadas",
|
|
1358
|
+
"air",
|
|
1359
|
+
"thought",
|
|
1360
|
+
"intelligence",
|
|
1361
|
+
"exchanges",
|
|
1362
|
+
"cooperation of opposites",
|
|
1363
|
+
"maturity",
|
|
1364
|
+
"balance",
|
|
1365
|
+
"intuition",
|
|
1366
|
+
"sixth sense",
|
|
1367
|
+
"imagination",
|
|
1368
|
+
"future vision",
|
|
1369
|
+
"military",
|
|
1370
|
+
"warriors",
|
|
1371
|
+
"police",
|
|
1372
|
+
"sylphs",
|
|
1373
|
+
"giants"
|
|
1374
|
+
],
|
|
1375
|
+
pentacles: [
|
|
1376
|
+
"ouros",
|
|
1377
|
+
"earth",
|
|
1378
|
+
"concretization",
|
|
1379
|
+
"manifestation",
|
|
1380
|
+
"practical intelligence",
|
|
1381
|
+
"effort",
|
|
1382
|
+
"study",
|
|
1383
|
+
"gains",
|
|
1384
|
+
"business",
|
|
1385
|
+
"sensation",
|
|
1386
|
+
"five senses",
|
|
1387
|
+
"concrete perception",
|
|
1388
|
+
"present",
|
|
1389
|
+
"bourgeoisie",
|
|
1390
|
+
"finances",
|
|
1391
|
+
"commerce",
|
|
1392
|
+
"gnomes"
|
|
1393
|
+
]
|
|
1394
|
+
};
|
|
1395
|
+
var TAROT_COURT_RANK_THEME_KEYWORDS = {
|
|
1396
|
+
king: ["dynamic", "active", "lordly", "cardinal"],
|
|
1397
|
+
queen: ["stable", "receptive", "contained", "fixed"],
|
|
1398
|
+
knight: ["volatile", "mutant", "active", "mutable"],
|
|
1399
|
+
page: ["nascent", "fragile", "beginning", "starting"]
|
|
1400
|
+
};
|
|
1401
|
+
var TAROT_MINOR_PIP_STAGE_KEYWORDS = {
|
|
1402
|
+
ace: ["will", "pure potential", "something new emerging", "first spark"],
|
|
1403
|
+
two: ["imagining", "visualizing", "formulating the idea"],
|
|
1404
|
+
three: ["speaking", "understanding", "verbalizing", "giving form"],
|
|
1405
|
+
four: ["expanding", "planning", "growth", "good feelings"],
|
|
1406
|
+
five: ["restricting", "discipline", "justice", "pruning", "confronting limits"],
|
|
1407
|
+
six: ["harmonizing", "beauty", "ethics", "balance", "heart"],
|
|
1408
|
+
seven: ["winning silently", "emotional control", "quiet victory", "endurance"],
|
|
1409
|
+
eight: ["connecting", "rational control", "linking concepts", "strategy"],
|
|
1410
|
+
nine: ["foundations", "worthy", "solid base"],
|
|
1411
|
+
ten: ["manifesting", "materialized", "completion"]
|
|
1412
|
+
};
|
|
1413
|
+
var houseThemeProfilesCache;
|
|
1414
|
+
var tarotThemeProfilesCache;
|
|
1415
|
+
function getHouseThemeAxis(houseNumber) {
|
|
1416
|
+
const axisPairs = {
|
|
1417
|
+
1: { key: "self-other", label: "Self and Other", oppositeHouseNumber: 7 },
|
|
1418
|
+
2: { key: "resources-initiation", label: "Resources and Initiation", oppositeHouseNumber: 8 },
|
|
1419
|
+
3: { key: "communication-journey", label: "Communication and Journey", oppositeHouseNumber: 9 },
|
|
1420
|
+
4: { key: "private-public", label: "Private and Public Life", oppositeHouseNumber: 10 },
|
|
1421
|
+
5: { key: "pleasure-friendship", label: "Pleasure and Friendship", oppositeHouseNumber: 11 },
|
|
1422
|
+
6: { key: "health-occult", label: "Health and the Occult", oppositeHouseNumber: 12 },
|
|
1423
|
+
7: { key: "self-other", label: "Self and Other", oppositeHouseNumber: 1 },
|
|
1424
|
+
8: { key: "resources-initiation", label: "Resources and Initiation", oppositeHouseNumber: 2 },
|
|
1425
|
+
9: { key: "communication-journey", label: "Communication and Journey", oppositeHouseNumber: 3 },
|
|
1426
|
+
10: { key: "private-public", label: "Private and Public Life", oppositeHouseNumber: 4 },
|
|
1427
|
+
11: { key: "pleasure-friendship", label: "Pleasure and Friendship", oppositeHouseNumber: 5 },
|
|
1428
|
+
12: { key: "health-occult", label: "Health and the Occult", oppositeHouseNumber: 6 }
|
|
1429
|
+
};
|
|
1430
|
+
return axisPairs[houseNumber];
|
|
1431
|
+
}
|
|
1432
|
+
function normalizeThemeText(value) {
|
|
1433
|
+
return value.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
1434
|
+
}
|
|
1435
|
+
function uniqueStrings(values) {
|
|
1436
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1437
|
+
const result = [];
|
|
1438
|
+
for (const value of values) {
|
|
1439
|
+
const trimmed = value?.trim();
|
|
1440
|
+
if (!trimmed || seen.has(trimmed)) {
|
|
1441
|
+
continue;
|
|
1442
|
+
}
|
|
1443
|
+
seen.add(trimmed);
|
|
1444
|
+
result.push(trimmed);
|
|
1445
|
+
}
|
|
1446
|
+
return result;
|
|
1447
|
+
}
|
|
1448
|
+
function titleCase(value) {
|
|
1449
|
+
return value.split(" ").map((part) => part ? `${part[0].toUpperCase()}${part.slice(1)}` : part).join(" ");
|
|
1450
|
+
}
|
|
1451
|
+
function humanizeTarotFilename(filename) {
|
|
1452
|
+
return titleCase(
|
|
1453
|
+
filename.replace(/^\d+_/, "").replace(/_/g, " ")
|
|
1454
|
+
);
|
|
1455
|
+
}
|
|
1456
|
+
function getNodeDisplayLabel(node) {
|
|
1457
|
+
const parsedId = chunkS6KNERP7_js.parseId(node.id);
|
|
1458
|
+
if (node.type === "path" /* PATH */) {
|
|
1459
|
+
return `Path ${parsedId}`;
|
|
1460
|
+
}
|
|
1461
|
+
if (node.type === "tarotSuit" /* TAROT_SUIT */) {
|
|
1462
|
+
return titleCase(parsedId);
|
|
1463
|
+
}
|
|
1464
|
+
return node.name ?? titleCase(parsedId);
|
|
1465
|
+
}
|
|
1466
|
+
function getNodeTextCandidates(node) {
|
|
1467
|
+
const data = node.data;
|
|
1468
|
+
return uniqueStrings([
|
|
1469
|
+
getNodeDisplayLabel(node),
|
|
1470
|
+
chunkS6KNERP7_js.parseId(node.id),
|
|
1471
|
+
typeof data?.englishName === "string" ? data.englishName : void 0,
|
|
1472
|
+
typeof data?.meaning === "string" ? data.meaning : void 0
|
|
1473
|
+
]);
|
|
1474
|
+
}
|
|
1475
|
+
function getCorrespondenceRefs(nodeId, type, depth) {
|
|
1476
|
+
return canonicalTree2.getCorrespondences(nodeId, { type, depth }).map((match) => ({
|
|
1477
|
+
id: match.node.id,
|
|
1478
|
+
label: getNodeDisplayLabel(match.node),
|
|
1479
|
+
distance: match.distance
|
|
1480
|
+
}));
|
|
1481
|
+
}
|
|
1482
|
+
function collectCorrespondenceTexts(correspondences) {
|
|
1483
|
+
const texts = [];
|
|
1484
|
+
for (const correspondence of correspondences) {
|
|
1485
|
+
const node = canonicalTree2.getNode(correspondence.id);
|
|
1486
|
+
if (!node) {
|
|
1487
|
+
continue;
|
|
1488
|
+
}
|
|
1489
|
+
texts.push(...getNodeTextCandidates(node));
|
|
1490
|
+
}
|
|
1491
|
+
return texts;
|
|
1492
|
+
}
|
|
1493
|
+
function freezeCorrespondences(correspondences) {
|
|
1494
|
+
correspondences.forEach((correspondence) => Object.freeze(correspondence));
|
|
1495
|
+
return Object.freeze(correspondences);
|
|
1496
|
+
}
|
|
1497
|
+
function createTokenSurface(values) {
|
|
1498
|
+
return tokenizeOccultThemeText([...values]);
|
|
1499
|
+
}
|
|
1500
|
+
function getHouseLabelFromLookup(lookup) {
|
|
1501
|
+
if (typeof lookup === "number") {
|
|
1502
|
+
return HOUSE_LABELS_BY_NUMBER[lookup - 1];
|
|
1503
|
+
}
|
|
1504
|
+
if (String(lookup).startsWith(`${"house" /* HOUSE */}:`)) {
|
|
1505
|
+
return chunkS6KNERP7_js.parseId(lookup);
|
|
1506
|
+
}
|
|
1507
|
+
return void 0;
|
|
1508
|
+
}
|
|
1509
|
+
function buildHouseThemeProfile(houseNumber) {
|
|
1510
|
+
const houseLabel = HOUSE_LABELS_BY_NUMBER[houseNumber - 1];
|
|
1511
|
+
const houseId = chunkS6KNERP7_js.id("house" /* HOUSE */, houseLabel);
|
|
1512
|
+
const seed = HOUSE_THEME_SEEDS[houseNumber];
|
|
1513
|
+
const primaryLabel = seed.primaryLabel;
|
|
1514
|
+
const axis = getHouseThemeAxis(houseNumber);
|
|
1515
|
+
const aliases = uniqueStrings(seed.aliases);
|
|
1516
|
+
const signs = getCorrespondenceRefs(houseId, "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, 1);
|
|
1517
|
+
const planets = getCorrespondenceRefs(houseId, "planet" /* PLANET */, 2);
|
|
1518
|
+
const elements = getCorrespondenceRefs(houseId, "westernElement" /* WESTERN_ELEMENT */, 2);
|
|
1519
|
+
const spheres = getCorrespondenceRefs(houseId, "sphere" /* SPHERE */, 2);
|
|
1520
|
+
const paths = getCorrespondenceRefs(houseId, "path" /* PATH */, 2);
|
|
1521
|
+
const correspondenceTexts = [
|
|
1522
|
+
...collectCorrespondenceTexts(signs),
|
|
1523
|
+
...collectCorrespondenceTexts(planets),
|
|
1524
|
+
...collectCorrespondenceTexts(elements),
|
|
1525
|
+
...collectCorrespondenceTexts(spheres),
|
|
1526
|
+
...collectCorrespondenceTexts(paths)
|
|
1527
|
+
];
|
|
1528
|
+
const keywords = uniqueStrings(seed.keywords);
|
|
1529
|
+
const tokens = createTokenSurface([
|
|
1530
|
+
primaryLabel,
|
|
1531
|
+
...aliases,
|
|
1532
|
+
...keywords,
|
|
1533
|
+
...correspondenceTexts
|
|
1534
|
+
]);
|
|
1535
|
+
const profile = {
|
|
1536
|
+
kind: "house",
|
|
1537
|
+
id: houseId,
|
|
1538
|
+
houseNumber,
|
|
1539
|
+
houseLabel: titleCase(houseLabel),
|
|
1540
|
+
primaryLabel,
|
|
1541
|
+
scope: seed.scope,
|
|
1542
|
+
axis: Object.freeze(axis),
|
|
1543
|
+
aliases: Object.freeze(aliases),
|
|
1544
|
+
keywords: Object.freeze(keywords),
|
|
1545
|
+
tokens: Object.freeze(tokens),
|
|
1546
|
+
correspondences: Object.freeze({
|
|
1547
|
+
planets: freezeCorrespondences(planets),
|
|
1548
|
+
signs: freezeCorrespondences(signs),
|
|
1549
|
+
elements: freezeCorrespondences(elements),
|
|
1550
|
+
spheres: freezeCorrespondences(spheres),
|
|
1551
|
+
paths: freezeCorrespondences(paths)
|
|
1552
|
+
})
|
|
1553
|
+
};
|
|
1554
|
+
return Object.freeze(profile);
|
|
1555
|
+
}
|
|
1556
|
+
function getHouseThemeProfileCache() {
|
|
1557
|
+
if (houseThemeProfilesCache) {
|
|
1558
|
+
return houseThemeProfilesCache;
|
|
1559
|
+
}
|
|
1560
|
+
houseThemeProfilesCache = Object.freeze(HOUSE_LABELS_BY_NUMBER.map(
|
|
1561
|
+
(_, index) => buildHouseThemeProfile(index + 1)
|
|
1562
|
+
));
|
|
1563
|
+
return houseThemeProfilesCache;
|
|
1564
|
+
}
|
|
1565
|
+
function getTarotRank(card) {
|
|
1566
|
+
if (!card.tarotCard.includes(" of ")) {
|
|
1567
|
+
return void 0;
|
|
1568
|
+
}
|
|
1569
|
+
return card.tarotCard.split(" of ")[0].toLowerCase();
|
|
1570
|
+
}
|
|
1571
|
+
function buildTarotAliases(card, majorArchetype, descriptiveData) {
|
|
1572
|
+
const normalizedPrimaryLabel = normalizeThemeText(card.tarotCard);
|
|
1573
|
+
const cardNode = canonicalTree2.getNode(chunkS6KNERP7_js.id("tarotArkAnnu" /* TAROT_ARK_ANNU */, card.tarotCard));
|
|
1574
|
+
const aliases = [
|
|
1575
|
+
humanizeTarotFilename(card.tarotCardFilename),
|
|
1576
|
+
card.egyptianCardName,
|
|
1577
|
+
...Object.values(descriptiveData ?? {}).map((description) => description?.name),
|
|
1578
|
+
...cardNode?.data?.aliases ?? []
|
|
1579
|
+
];
|
|
1580
|
+
if (majorArchetype) {
|
|
1581
|
+
aliases.push(titleCase(majorArchetype.pathSlug));
|
|
1582
|
+
}
|
|
1583
|
+
if (card.suit && card.tarotCard.includes(" of ")) {
|
|
1584
|
+
const rankLabel = card.tarotCard.split(" of ")[0];
|
|
1585
|
+
for (const suitAlias of TAROT_SUIT_ALIASES[card.suit] ?? []) {
|
|
1586
|
+
aliases.push(`${rankLabel} of ${suitAlias}`);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
return uniqueStrings(
|
|
1590
|
+
aliases.filter((alias) => Boolean(alias)).filter((alias) => normalizeThemeText(alias) !== normalizedPrimaryLabel)
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
function buildTarotKeywordTexts(card, majorArchetype, descriptiveData) {
|
|
1594
|
+
const rank = getTarotRank(card);
|
|
1595
|
+
const deckKeywordTexts = Object.values(descriptiveData ?? {}).flatMap((description) => [
|
|
1596
|
+
description?.meaning,
|
|
1597
|
+
description?.reversedMeaning,
|
|
1598
|
+
...description?.keywords ?? []
|
|
1599
|
+
]);
|
|
1600
|
+
return uniqueStrings([
|
|
1601
|
+
card.meaning,
|
|
1602
|
+
card.papusMeaning,
|
|
1603
|
+
card.egyptianCardName,
|
|
1604
|
+
...canonicalTree2.getNode(chunkS6KNERP7_js.id("tarotArkAnnu" /* TAROT_ARK_ANNU */, card.tarotCard))?.data?.keywords ?? [],
|
|
1605
|
+
...deckKeywordTexts,
|
|
1606
|
+
...card.suit ? TAROT_SUIT_THEME_KEYWORDS[card.suit] ?? [] : [],
|
|
1607
|
+
...card.type === "minor" && rank ? TAROT_MINOR_PIP_STAGE_KEYWORDS[rank] ?? [] : [],
|
|
1608
|
+
...rank ? TAROT_COURT_RANK_THEME_KEYWORDS[rank] ?? [] : [],
|
|
1609
|
+
majorArchetype?.hebrewLetter
|
|
1610
|
+
]);
|
|
1611
|
+
}
|
|
1612
|
+
function buildTarotThemeProfile(card) {
|
|
1613
|
+
const cardId = chunkS6KNERP7_js.id("tarotArkAnnu" /* TAROT_ARK_ANNU */, card.tarotCard);
|
|
1614
|
+
const cardNode = canonicalTree2.getNode(cardId);
|
|
1615
|
+
if (!cardNode) {
|
|
1616
|
+
throw new Error(`Missing canonical tarot node for ${cardId}.`);
|
|
1617
|
+
}
|
|
1618
|
+
const majorArchetypeData = card.type === "major" ? chunkXTE5DSDO_js.getTarotArchetype({ tarotCardNumber: card.number }) : void 0;
|
|
1619
|
+
const majorArchetype = majorArchetypeData ? {
|
|
1620
|
+
pathId: majorArchetypeData.pathId,
|
|
1621
|
+
pathNumber: majorArchetypeData.pathNumber,
|
|
1622
|
+
pathSlug: majorArchetypeData.pathSlug,
|
|
1623
|
+
hebrewLetter: majorArchetypeData.hebrewLetter
|
|
1624
|
+
} : void 0;
|
|
1625
|
+
const aliases = buildTarotAliases(
|
|
1626
|
+
card,
|
|
1627
|
+
majorArchetype,
|
|
1628
|
+
cardNode.data?.descriptiveData
|
|
1629
|
+
);
|
|
1630
|
+
const suits = getCorrespondenceRefs(cardId, "tarotSuit" /* TAROT_SUIT */, 1);
|
|
1631
|
+
const planets = getCorrespondenceRefs(cardId, "planet" /* PLANET */, 3);
|
|
1632
|
+
const signs = getCorrespondenceRefs(cardId, "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */, 3);
|
|
1633
|
+
const elements = getCorrespondenceRefs(cardId, "westernElement" /* WESTERN_ELEMENT */, 3);
|
|
1634
|
+
const spheres = getCorrespondenceRefs(cardId, "sphere" /* SPHERE */, 3);
|
|
1635
|
+
const paths = getCorrespondenceRefs(cardId, "path" /* PATH */, 2);
|
|
1636
|
+
const keywordTexts = buildTarotKeywordTexts(
|
|
1637
|
+
card,
|
|
1638
|
+
majorArchetype,
|
|
1639
|
+
cardNode.data?.descriptiveData
|
|
1640
|
+
);
|
|
1641
|
+
const keywords = createTokenSurface(keywordTexts);
|
|
1642
|
+
const correspondenceTexts = [
|
|
1643
|
+
...collectCorrespondenceTexts(suits),
|
|
1644
|
+
...collectCorrespondenceTexts(planets),
|
|
1645
|
+
...collectCorrespondenceTexts(signs),
|
|
1646
|
+
...collectCorrespondenceTexts(elements),
|
|
1647
|
+
...collectCorrespondenceTexts(spheres),
|
|
1648
|
+
...collectCorrespondenceTexts(paths)
|
|
1649
|
+
];
|
|
1650
|
+
const tokens = uniqueStrings([
|
|
1651
|
+
...keywords,
|
|
1652
|
+
...createTokenSurface([
|
|
1653
|
+
card.tarotCard,
|
|
1654
|
+
...aliases,
|
|
1655
|
+
...correspondenceTexts,
|
|
1656
|
+
card.suit,
|
|
1657
|
+
majorArchetype?.pathSlug
|
|
1658
|
+
])
|
|
1659
|
+
]);
|
|
1660
|
+
const profile = {
|
|
1661
|
+
kind: "tarot",
|
|
1662
|
+
id: cardId,
|
|
1663
|
+
cardNumber: card.number,
|
|
1664
|
+
cardType: card.type,
|
|
1665
|
+
tarotCardFilename: card.tarotCardFilename,
|
|
1666
|
+
primaryLabel: card.tarotCard,
|
|
1667
|
+
aliases: Object.freeze(aliases),
|
|
1668
|
+
keywords: Object.freeze(keywords),
|
|
1669
|
+
tokens: Object.freeze(tokens),
|
|
1670
|
+
correspondences: Object.freeze({
|
|
1671
|
+
planets: freezeCorrespondences(planets),
|
|
1672
|
+
signs: freezeCorrespondences(signs),
|
|
1673
|
+
elements: freezeCorrespondences(elements),
|
|
1674
|
+
spheres: freezeCorrespondences(spheres),
|
|
1675
|
+
paths: freezeCorrespondences(paths),
|
|
1676
|
+
suits: freezeCorrespondences(suits)
|
|
1677
|
+
}),
|
|
1678
|
+
majorArchetype: majorArchetype ? Object.freeze(majorArchetype) : void 0
|
|
1679
|
+
};
|
|
1680
|
+
return Object.freeze(profile);
|
|
1681
|
+
}
|
|
1682
|
+
function getTarotThemeProfileCache() {
|
|
1683
|
+
if (tarotThemeProfilesCache) {
|
|
1684
|
+
return tarotThemeProfilesCache;
|
|
1685
|
+
}
|
|
1686
|
+
const profiles = Object.freeze(chunkXTE5DSDO_js.ARKANNUS.map((card) => buildTarotThemeProfile(card)));
|
|
1687
|
+
tarotThemeProfilesCache = {
|
|
1688
|
+
profiles,
|
|
1689
|
+
byId: new Map(profiles.map((profile) => [profile.id, profile])),
|
|
1690
|
+
byCardNumber: new Map(profiles.map((profile) => [profile.cardNumber, profile])),
|
|
1691
|
+
byFilename: new Map(
|
|
1692
|
+
profiles.map((profile) => [normalizeThemeText(profile.tarotCardFilename), profile])
|
|
1693
|
+
),
|
|
1694
|
+
byName: new Map(
|
|
1695
|
+
profiles.flatMap((profile) => [
|
|
1696
|
+
[normalizeThemeText(profile.primaryLabel), profile],
|
|
1697
|
+
...profile.aliases.map((alias) => [normalizeThemeText(alias), profile])
|
|
1698
|
+
])
|
|
1699
|
+
),
|
|
1700
|
+
byPathId: new Map(
|
|
1701
|
+
profiles.flatMap(
|
|
1702
|
+
(profile) => profile.majorArchetype ? [[profile.majorArchetype.pathId, profile]] : []
|
|
1703
|
+
)
|
|
1704
|
+
),
|
|
1705
|
+
byPathSlug: new Map(
|
|
1706
|
+
profiles.flatMap(
|
|
1707
|
+
(profile) => profile.majorArchetype ? [[normalizeThemeText(profile.majorArchetype.pathSlug), profile]] : []
|
|
1708
|
+
)
|
|
1709
|
+
)
|
|
1710
|
+
};
|
|
1711
|
+
return tarotThemeProfilesCache;
|
|
1712
|
+
}
|
|
1713
|
+
function tokenizeOccultThemeText(input, options = {}) {
|
|
1714
|
+
const values = Array.isArray(input) ? input : [input];
|
|
1715
|
+
const minTokenLength = options.minTokenLength ?? 3;
|
|
1716
|
+
const stopwords = new Set((options.stopwords ?? OCCULT_THEME_STOPWORDS).map(normalizeThemeText));
|
|
1717
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1718
|
+
const tokens = [];
|
|
1719
|
+
for (const value of values) {
|
|
1720
|
+
if (!value) {
|
|
1721
|
+
continue;
|
|
1722
|
+
}
|
|
1723
|
+
const normalized = normalizeThemeText(value);
|
|
1724
|
+
for (const token of normalized.split(/[^a-z0-9]+/)) {
|
|
1725
|
+
if (token.length < minTokenLength || stopwords.has(token) || seen.has(token)) {
|
|
1726
|
+
continue;
|
|
1727
|
+
}
|
|
1728
|
+
seen.add(token);
|
|
1729
|
+
tokens.push(token);
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
return tokens;
|
|
1733
|
+
}
|
|
1734
|
+
function listHouseThemeProfiles() {
|
|
1735
|
+
return getHouseThemeProfileCache();
|
|
1736
|
+
}
|
|
1737
|
+
function getHouseThemeProfile(lookup) {
|
|
1738
|
+
const houseLabel = getHouseLabelFromLookup(lookup);
|
|
1739
|
+
if (!houseLabel) {
|
|
1740
|
+
return void 0;
|
|
1741
|
+
}
|
|
1742
|
+
return getHouseThemeProfileCache().find((profile) => chunkS6KNERP7_js.parseId(profile.id) === houseLabel);
|
|
1743
|
+
}
|
|
1744
|
+
function listTarotThemeProfiles() {
|
|
1745
|
+
return getTarotThemeProfileCache().profiles;
|
|
1746
|
+
}
|
|
1747
|
+
function getTarotThemeProfile(lookup) {
|
|
1748
|
+
const cache = getTarotThemeProfileCache();
|
|
1749
|
+
if (typeof lookup === "number") {
|
|
1750
|
+
return cache.byCardNumber.get(lookup);
|
|
1751
|
+
}
|
|
1752
|
+
if (typeof lookup === "string") {
|
|
1753
|
+
if (lookup.startsWith(`${"tarotArkAnnu" /* TAROT_ARK_ANNU */}:`)) {
|
|
1754
|
+
return cache.byId.get(lookup);
|
|
1755
|
+
}
|
|
1756
|
+
if (lookup.startsWith(`${"path" /* PATH */}:`)) {
|
|
1757
|
+
const archetype = chunkXTE5DSDO_js.getTarotArchetype({
|
|
1758
|
+
pathId: lookup
|
|
1759
|
+
});
|
|
1760
|
+
return archetype ? cache.byCardNumber.get(archetype.tarotCardNumber) : void 0;
|
|
1761
|
+
}
|
|
1762
|
+
return cache.byFilename.get(normalizeThemeText(lookup)) ?? cache.byName.get(normalizeThemeText(lookup)) ?? cache.byPathSlug.get(normalizeThemeText(lookup));
|
|
1763
|
+
}
|
|
1764
|
+
if ("tarotCardNumber" in lookup) {
|
|
1765
|
+
return cache.byCardNumber.get(lookup.tarotCardNumber);
|
|
1766
|
+
}
|
|
1767
|
+
if ("tarotCardFilename" in lookup) {
|
|
1768
|
+
return cache.byFilename.get(normalizeThemeText(lookup.tarotCardFilename));
|
|
1769
|
+
}
|
|
1770
|
+
if ("tarotCardName" in lookup) {
|
|
1771
|
+
return cache.byName.get(normalizeThemeText(lookup.tarotCardName));
|
|
1772
|
+
}
|
|
1773
|
+
if ("tarotArkAnnuId" in lookup) {
|
|
1774
|
+
return cache.byId.get(lookup.tarotArkAnnuId);
|
|
1775
|
+
}
|
|
1776
|
+
if ("pathId" in lookup) {
|
|
1777
|
+
return cache.byPathId.get(lookup.pathId);
|
|
1778
|
+
}
|
|
1779
|
+
return cache.byPathSlug.get(normalizeThemeText(lookup.pathSlug));
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
exports.OCCULT_THEME_STOPWORDS = OCCULT_THEME_STOPWORDS;
|
|
1783
|
+
exports.buildKaabalisticMapData = buildKaabalisticMapData;
|
|
1784
|
+
exports.getAngleSymbolMetadata = getAngleSymbolMetadata;
|
|
1785
|
+
exports.getAstrologyTreeMarkers = getAstrologyTreeMarkers;
|
|
1786
|
+
exports.getGematriaTreeMarkers = getGematriaTreeMarkers;
|
|
1787
|
+
exports.getHouseThemeProfile = getHouseThemeProfile;
|
|
1788
|
+
exports.getKaabalisticCorrespondenceTargets = getKaabalisticCorrespondenceTargets;
|
|
1789
|
+
exports.getNodeSymbolMetadata = getNodeSymbolMetadata;
|
|
1790
|
+
exports.getNumerologyTreeMarkers = getNumerologyTreeMarkers;
|
|
1791
|
+
exports.getPlanetSymbolMetadata = getPlanetSymbolMetadata;
|
|
1792
|
+
exports.getTarotThemeProfile = getTarotThemeProfile;
|
|
1793
|
+
exports.getZodiacSignSymbolMetadata = getZodiacSignSymbolMetadata;
|
|
1794
|
+
exports.listAngleSymbolMetadata = listAngleSymbolMetadata;
|
|
1795
|
+
exports.listHouseThemeProfiles = listHouseThemeProfiles;
|
|
1796
|
+
exports.listNodeSymbolMetadata = listNodeSymbolMetadata;
|
|
1797
|
+
exports.listPlanetSymbolMetadata = listPlanetSymbolMetadata;
|
|
1798
|
+
exports.listTarotThemeProfiles = listTarotThemeProfiles;
|
|
1799
|
+
exports.listZodiacSignSymbolMetadata = listZodiacSignSymbolMetadata;
|
|
1800
|
+
exports.tokenizeOccultThemeText = tokenizeOccultThemeText;
|
|
1801
|
+
//# sourceMappingURL=chunk-UG6HZK3Z.js.map
|
|
1802
|
+
//# sourceMappingURL=chunk-UG6HZK3Z.js.map
|