kaabalah 1.0.0 → 1.0.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.
@@ -0,0 +1,2341 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/core/constants.ts
8
+ var FOUR_WORLDS = {
9
+ ATZILUTH: "Atziluth",
10
+ BRIAH: "Briah",
11
+ YETZIRAH: "Yetzirah",
12
+ ASSIAH: "Assiah"
13
+ };
14
+ var SPHERES = {
15
+ KETHER: "Kether",
16
+ CHOKMAH: "Chokmah",
17
+ BINAH: "Binah",
18
+ DAATH: "Daath",
19
+ CHESED: "Chesed",
20
+ GEBURAH: "Geburah",
21
+ TIPHERETH: "Tiphereth",
22
+ NETZACH: "Netzach",
23
+ HOD: "Hod",
24
+ YESOD: "Yesod",
25
+ MALKUTH: "Malkuth"
26
+ };
27
+ var SPHERE_DATA = {
28
+ KETHER: { hebrewName: "\u05DB\u05EA\u05E8", englishName: "Crown" },
29
+ CHOKMAH: { hebrewName: "\u05D7\u05DB\u05DE\u05D4", englishName: "Wisdom" },
30
+ BINAH: { hebrewName: "\u05D1\u05D9\u05E0\u05D4", englishName: "Understanding" },
31
+ CHESED: { hebrewName: "\u05D7\u05E1\u05D3", englishName: "Mercy" },
32
+ GEBURAH: { hebrewName: "\u05D2\u05D1\u05D5\u05E8\u05D4", englishName: "Severity" },
33
+ TIPHERETH: { hebrewName: "\u05EA\u05E4\u05D0\u05E8\u05EA", englishName: "Beauty" },
34
+ NETZACH: { hebrewName: "\u05E0\u05E6\u05D7", englishName: "Victory" },
35
+ HOD: { hebrewName: "\u05D4\u05D5\u05D3", englishName: "Splendor" },
36
+ YESOD: { hebrewName: "\u05D9\u05E1\u05D5\u05D3", englishName: "Foundation" },
37
+ MALKUTH: { hebrewName: "\u05DE\u05DC\u05DB\u05D5\u05EA", englishName: "Kingdom" },
38
+ DAATH: { hebrewName: "\u05D3\u05E2\u05EA", englishName: "Knowledge" }
39
+ };
40
+ var PLANETS = {
41
+ EARTH: "Earth",
42
+ MOON: "Moon",
43
+ SUN: "Sun",
44
+ MERCURY: "Mercury",
45
+ VENUS: "Venus",
46
+ MARS: "Mars",
47
+ JUPITER: "Jupiter",
48
+ SATURN: "Saturn",
49
+ URANUS: "Uranus",
50
+ NEPTUNE: "Neptune",
51
+ PLUTO: "Pluto"
52
+ };
53
+ var WESTERN_ZODIAC_SIGNS = {
54
+ ARIES: "Aries",
55
+ TAURUS: "Taurus",
56
+ GEMINI: "Gemini",
57
+ CANCER: "Cancer",
58
+ LEO: "Leo",
59
+ VIRGO: "Virgo",
60
+ LIBRA: "Libra",
61
+ SCORPIO: "Scorpio",
62
+ SAGITTARIUS: "Sagittarius",
63
+ CAPRICORN: "Capricorn",
64
+ AQUARIUS: "Aquarius",
65
+ PISCES: "Pisces"
66
+ };
67
+ var WESTERN_ELEMENTS = {
68
+ FIRE: "Fire",
69
+ AIR: "Air",
70
+ WATER: "Water",
71
+ EARTH: "Earth",
72
+ ETHER: "Ether"
73
+ };
74
+ var WESTERN_ZODIAC_SIGNS_DATA = {
75
+ ARIES: { element: WESTERN_ELEMENTS.FIRE, type: "cardinal", rulingPlanets: [PLANETS.MARS] },
76
+ TAURUS: { element: WESTERN_ELEMENTS.EARTH, type: "fixed", rulingPlanets: [PLANETS.VENUS] },
77
+ GEMINI: { element: WESTERN_ELEMENTS.AIR, type: "mutable", rulingPlanets: [PLANETS.MERCURY] },
78
+ CANCER: { element: WESTERN_ELEMENTS.WATER, type: "cardinal", rulingPlanets: [PLANETS.MOON] },
79
+ LEO: { element: WESTERN_ELEMENTS.FIRE, type: "fixed", rulingPlanets: [PLANETS.SUN] },
80
+ VIRGO: { element: WESTERN_ELEMENTS.EARTH, type: "mutable", rulingPlanets: [PLANETS.MERCURY] },
81
+ LIBRA: { element: WESTERN_ELEMENTS.AIR, type: "cardinal", rulingPlanets: [PLANETS.VENUS] },
82
+ SCORPIO: { element: WESTERN_ELEMENTS.WATER, type: "fixed", rulingPlanets: [PLANETS.MARS, PLANETS.PLUTO] },
83
+ SAGITTARIUS: { element: WESTERN_ELEMENTS.FIRE, type: "mutable", rulingPlanets: [PLANETS.JUPITER] },
84
+ CAPRICORN: { element: WESTERN_ELEMENTS.EARTH, type: "cardinal", rulingPlanets: [PLANETS.SATURN] },
85
+ AQUARIUS: { element: WESTERN_ELEMENTS.AIR, type: "fixed", rulingPlanets: [PLANETS.SATURN, PLANETS.URANUS] },
86
+ PISCES: { element: WESTERN_ELEMENTS.WATER, type: "mutable", rulingPlanets: [PLANETS.JUPITER, PLANETS.NEPTUNE] }
87
+ };
88
+ var MELKITZEDEKI_PATHS = {
89
+ KETHER_CHOKMAH: 1,
90
+ KETHER_BINAH: 2,
91
+ KETHER_TIPHERETH: 3,
92
+ CHOKMAH_BINAH: 4,
93
+ CHOKMAH_TIPHERETH: 5,
94
+ CHOKMAH_CHESED: 6,
95
+ BINAH_TIPHERETH: 7,
96
+ BINAH_GEBURAH: 8,
97
+ CHESED_GEBURAH: 9,
98
+ CHESED_TIPHERETH: 10,
99
+ CHESED_NETZACH: 11,
100
+ GEBURAH_TIPHERETH: 12,
101
+ GEBURAH_HOD: 13,
102
+ TIPHERETH_NETZACH: 14,
103
+ TIPHERETH_YESOD: 15,
104
+ TIPHERETH_HOD: 16,
105
+ NETZACH_HOD: 17,
106
+ NETZACH_YESOD: 18,
107
+ NETZACH_MALKUTH: 19,
108
+ HOD_YESOD: 20,
109
+ HOD_MALKUTH: 21,
110
+ YESOD_MALKUTH: 22
111
+ };
112
+ var LURIANIC_PATHS = {
113
+ KETHER_CHOKMAH: 1,
114
+ KETHER_BINAH: 2,
115
+ KETHER_TIPHERETH: 3,
116
+ CHOKMAH_BINAH: 4,
117
+ CHOKMAH_GEBURAH: 5,
118
+ CHOKMAH_TIPHERETH: 6,
119
+ CHOKMAH_CHESED: 7,
120
+ BINAH_CHESED: 8,
121
+ BINAH_TIPHERETH: 9,
122
+ BINAH_GEBURAH: 10,
123
+ CHESED_GEBURAH: 11,
124
+ CHESED_TIPHERETH: 12,
125
+ CHESED_NETZACH: 13,
126
+ GEBURAH_TIPHERETH: 14,
127
+ GEBURAH_HOD: 15,
128
+ TIPHERETH_NETZACH: 16,
129
+ TIPHERETH_YESOD: 17,
130
+ TIPHERETH_HOD: 18,
131
+ NETZACH_HOD: 19,
132
+ NETZACH_YESOD: 20,
133
+ HOD_YESOD: 21,
134
+ YESOD_MALKUTH: 22
135
+ };
136
+ var LATIN_LETTERS = {
137
+ A: "A",
138
+ B: "B",
139
+ C: "C",
140
+ D: "D",
141
+ E: "E",
142
+ F: "F",
143
+ G: "G",
144
+ H: "H",
145
+ I: "I",
146
+ J: "J",
147
+ K: "K",
148
+ L: "L",
149
+ M: "M",
150
+ N: "N",
151
+ O: "O",
152
+ P: "P",
153
+ Q: "Q",
154
+ R: "R",
155
+ S: "S",
156
+ T: "T",
157
+ U: "U",
158
+ V: "V",
159
+ W: "W",
160
+ X: "X",
161
+ Y: "Y",
162
+ Z: "Z",
163
+ PH: "Ph",
164
+ TS: "Ts",
165
+ TZ: "Tz",
166
+ TH: "Th",
167
+ CH: "Ch",
168
+ SH: "Sh",
169
+ KH: "Kh",
170
+ \u00C7: "\xC7",
171
+ \u00C3: "\xC3"
172
+ };
173
+ var HEBREW_LETTERS = {
174
+ ALEPH: "\u05D0",
175
+ BETH: "\u05D1",
176
+ GIMEL: "\u05D2",
177
+ DALET: "\u05D3",
178
+ HE: "\u05D4",
179
+ VAV: "\u05D5",
180
+ ZAYIN: "\u05D6",
181
+ HET: "\u05D7",
182
+ TET: "\u05D8",
183
+ YOD: "\u05D9",
184
+ KAF: "\u05DB",
185
+ LAMED: "\u05DC",
186
+ MEM: "\u05DE",
187
+ NUN: "\u05E0",
188
+ SAMEKH: "\u05E1",
189
+ AIN: "\u05E2",
190
+ PE: "\u05E4",
191
+ TSADI: "\u05E6",
192
+ QOF: "\u05E7",
193
+ RESH: "\u05E8",
194
+ SHIN: "\u05E9",
195
+ TAV: "\u05EA"
196
+ };
197
+ var HEBREW_LETTERS_DATA = {
198
+ ALEPH: { gematriaValue: 1, type: "mother", symbol: "Man", hieroglyph: "Unity, central point, abstract principle", yvritMeaning: "Universal man and the human gender", transliteration: "Aleph" },
199
+ BETH: { gematriaValue: 2, type: "double", symbol: "Mouth", hieroglyph: "Woman's duality", yvritMeaning: "Man's mouth, habitation, interior", transliteration: "Beth" },
200
+ GIMEL: { gematriaValue: 3, type: "double", symbol: "Grasping hand", hieroglyph: "Expansion and growth", yvritMeaning: "Man's throat, channel", transliteration: "Gimel" },
201
+ DALET: { gematriaValue: 4, type: "double", symbol: "Breast", hieroglyph: "Universal quaternary, source of physical existence", yvritMeaning: "Abundance and nourishment", transliteration: "Daleth" },
202
+ HE: { gematriaValue: 5, type: "simple", symbol: "Breath", hieroglyph: "Universal life, men's breath, the breath, everything that animates and vivifies", yvritMeaning: "Window", transliteration: "He" },
203
+ VAV: { gematriaValue: 6, type: "simple", symbol: "Eye, ear", hieroglyph: "A point connection that separates being and non-being", yvritMeaning: "Construction nail", transliteration: "Vav" },
204
+ ZAYIN: { gematriaValue: 7, type: "simple", symbol: "Arrow", hieroglyph: "Goal, objective to achieve", yvritMeaning: "Dart, sword", transliteration: "Zayin" },
205
+ HET: { gematriaValue: 8, type: "simple", symbol: "Field", hieroglyph: "Elemental existence", yvritMeaning: "Fence", transliteration: "Het" },
206
+ TET: { gematriaValue: 9, type: "simple", symbol: "A house covering", hieroglyph: "Men's shelter, roof, shield, protection, resistance", yvritMeaning: "Serpent", transliteration: "Tet" },
207
+ YOD: { gematriaValue: 10, type: "simple", symbol: "Index finger", hieroglyph: "Potential manifestation, eternal worship", yvritMeaning: "Hand, index finger", transliteration: "Yod" },
208
+ KAF: { gematriaValue: 20, type: "double", gematriaValueWhenEnding: 500, symbol: "Closing hand", hieroglyph: "Reflective and fleeting life", yvritMeaning: "Palm closing in the act of grasping something", transliteration: "Kaf" },
209
+ LAMED: { gematriaValue: 30, type: "simple", symbol: "Extending arm", hieroglyph: "Extension, elevation", yvritMeaning: "Sting rod, human arm representing extension, elevation", transliteration: "Lamed" },
210
+ MEM: { gematriaValue: 40, type: "mother", gematriaValueWhenEnding: 600, symbol: "Woman", hieroglyph: "External passive action, all formative and plastic principle when starting a word, collectiveness when ending one", yvritMeaning: "Waters, woman, mother, man's companion", transliteration: "Mem" },
211
+ NUN: { gematriaValue: 50, type: "simple", gematriaValueWhenEnding: 700, symbol: "Fruit", hieroglyph: "Novelty, youth, grace, beauty", yvritMeaning: "Fish", transliteration: "Nun" },
212
+ SAMEKH: { gematriaValue: 60, type: "simple", symbol: "Serpent", hieroglyph: "Cyclical circular movement", yvritMeaning: "Support, brace, crutch", transliteration: "Samekh" },
213
+ AIN: { gematriaValue: 70, type: "simple", symbol: "Binding", hieroglyph: "Material side of things, emptiness, nothingness, all evil", yvritMeaning: "Eye", transliteration: "Ain" },
214
+ PE: { gematriaValue: 80, type: "double", gematriaValueWhenEnding: 800, symbol: "Mouth, tongue", hieroglyph: "Power of the verb, spoken word", yvritMeaning: "Mouth releasing", transliteration: "Pe" },
215
+ TSADI: { gematriaValue: 90, type: "simple", gematriaValueWhenEnding: 900, symbol: "Roof", hieroglyph: "Fixed thought upon a purpose", yvritMeaning: "Fishhook", transliteration: "Tsadi" },
216
+ QOF: { gematriaValue: 100, type: "simple", symbol: "Axe", hieroglyph: "Repressive pressure", yvritMeaning: "Back of the head", transliteration: "Qof" },
217
+ RESH: { gematriaValue: 200, type: "double", symbol: "Head", hieroglyph: "Feeling, wanting, thinking, movement, reflection, origin, repetition", yvritMeaning: "Illuminated head", transliteration: "Resh" },
218
+ SHIN: { gematriaValue: 300, type: "mother", symbol: "Crown", hieroglyph: "Relative duration, existence", yvritMeaning: "Part of the bow from which the arrow is released", transliteration: "Shin" },
219
+ TAV: { gematriaValue: 400, type: "double", symbol: "Thorax", hieroglyph: "Universal soul, reciprocity, protection, perfection, abundance", yvritMeaning: "Ankh Cross", transliteration: "Tav" }
220
+ };
221
+ var TAROT_SUITS = {
222
+ WANDS: "Wands",
223
+ CUPS: "Cups",
224
+ SWORDS: "Swords",
225
+ PENTACLES: "Pentacles"
226
+ };
227
+ var TAROT_ARKANNUS = {
228
+ THE_MAGICIAN: "The Magician",
229
+ THE_HIGH_PRIESTESS: "The High Priestess",
230
+ THE_EMPRESS: "The Empress",
231
+ THE_EMPEROR: "The Emperor",
232
+ THE_HIEROPHANT: "The Hierophant",
233
+ THE_LOVER: "The Lover",
234
+ THE_CHARIOT: "The Chariot",
235
+ JUSTICE: "Justice",
236
+ THE_HERMIT: "The Hermit",
237
+ THE_WHEEL_OF_FORTUNE: "The Wheel of Fortune",
238
+ STRENGTH: "Strength",
239
+ THE_HANGED_MAN: "The Hanged Man",
240
+ DEATH: "Death",
241
+ TEMPERANCE: "Temperance",
242
+ THE_DEVIL: "The Devil",
243
+ THE_TOWER: "The Tower",
244
+ THE_STAR: "The Star",
245
+ THE_MOON: "The Moon",
246
+ THE_SUN: "The Sun",
247
+ JUDGMENT: "Judgment",
248
+ THE_FOOL: "The Fool",
249
+ THE_WORLD: "The World",
250
+ KING_OF_WANDS: "King of Wands",
251
+ QUEEN_OF_WANDS: "Queen of Wands",
252
+ KNIGHT_OF_WANDS: "Knight of Wands",
253
+ PAGE_OF_WANDS: "Page of Wands",
254
+ ACE_OF_WANDS: "Ace of Wands",
255
+ TWO_OF_WANDS: "Two of Wands",
256
+ THREE_OF_WANDS: "Three of Wands",
257
+ FOUR_OF_WANDS: "Four of Wands",
258
+ FIVE_OF_WANDS: "Five of Wands",
259
+ SIX_OF_WANDS: "Six of Wands",
260
+ SEVEN_OF_WANDS: "Seven of Wands",
261
+ EIGHT_OF_WANDS: "Eight of Wands",
262
+ NINE_OF_WANDS: "Nine of Wands",
263
+ TEN_OF_WANDS: "Ten of Wands",
264
+ KING_OF_CUPS: "King of Cups",
265
+ QUEEN_OF_CUPS: "Queen of Cups",
266
+ KNIGHT_OF_CUPS: "Knight of Cups",
267
+ PAGE_OF_CUPS: "Page of Cups",
268
+ ACE_OF_CUPS: "Ace of Cups",
269
+ TWO_OF_CUPS: "Two of Cups",
270
+ THREE_OF_CUPS: "Three of Cups",
271
+ FOUR_OF_CUPS: "Four of Cups",
272
+ FIVE_OF_CUPS: "Five of Cups",
273
+ SIX_OF_CUPS: "Six of Cups",
274
+ SEVEN_OF_CUPS: "Seven of Cups",
275
+ EIGHT_OF_CUPS: "Eight of Cups",
276
+ NINE_OF_CUPS: "Nine of Cups",
277
+ TEN_OF_CUPS: "Ten of Cups",
278
+ KING_OF_SWORDS: "King of Swords",
279
+ QUEEN_OF_SWORDS: "Queen of Swords",
280
+ KNIGHT_OF_SWORDS: "Knight of Swords",
281
+ PAGE_OF_SWORDS: "Page of Swords",
282
+ ACE_OF_SWORDS: "Ace of Swords",
283
+ TWO_OF_SWORDS: "Two of Swords",
284
+ THREE_OF_SWORDS: "Three of Swords",
285
+ FOUR_OF_SWORDS: "Four of Swords",
286
+ FIVE_OF_SWORDS: "Five of Swords",
287
+ SIX_OF_SWORDS: "Six of Swords",
288
+ SEVEN_OF_SWORDS: "Seven of Swords",
289
+ EIGHT_OF_SWORDS: "Eight of Swords",
290
+ NINE_OF_SWORDS: "Nine of Swords",
291
+ TEN_OF_SWORDS: "Ten of Swords",
292
+ KING_OF_PENTACLES: "King of Pentacles",
293
+ QUEEN_OF_PENTACLES: "Queen of Pentacles",
294
+ KNIGHT_OF_PENTACLES: "Knight of Pentacles",
295
+ PAGE_OF_PENTACLES: "Page of Pentacles",
296
+ ACE_OF_PENTACLES: "Ace of Pentacles",
297
+ TWO_OF_PENTACLES: "Two of Pentacles",
298
+ THREE_OF_PENTACLES: "Three of Pentacles",
299
+ FOUR_OF_PENTACLES: "Four of Pentacles",
300
+ FIVE_OF_PENTACLES: "Five of Pentacles",
301
+ SIX_OF_PENTACLES: "Six of Pentacles",
302
+ SEVEN_OF_PENTACLES: "Seven of Pentacles",
303
+ EIGHT_OF_PENTACLES: "Eight of Pentacles",
304
+ NINE_OF_PENTACLES: "Nine of Pentacles",
305
+ TEN_OF_PENTACLES: "Ten of Pentacles"
306
+ };
307
+ var TAROT_ARKANNUS_DATA = {
308
+ THE_MAGICIAN: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Abracadabra, the power to create reality through voice" }] },
309
+ THE_HIGH_PRIESTESS: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Intuition, the power to rewrite your book of life improving your life every instant" }] },
310
+ THE_EMPRESS: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Adaptation, the power to geometrize through emotions" }] },
311
+ THE_EMPEROR: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Authority, the power to mark your territory with the sacred fire" }] },
312
+ THE_HIEROPHANT: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Magnetism, the power to ritualize life and circulate the quintessence" }] },
313
+ THE_LOVER: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Dichotomy, stay on the middle path by being neither a victim nor a villain" }] },
314
+ THE_CHARIOT: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Merkaabah, take control and build your merkaabah (mind vehicle)" }] },
315
+ JUSTICE: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Justice, be just with yourself to be just with others" }] },
316
+ THE_HERMIT: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Introspection, seek within, retreat" }] },
317
+ THE_WHEEL_OF_FORTUNE: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Loops, extroversion, break the great wheel and ascend, seek externally" }] },
318
+ STRENGTH: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "The strength of your subconscious, unity brings strength" }] },
319
+ THE_HANGED_MAN: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Make valid sacrifices, adopt a new perspective" }] },
320
+ DEATH: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Merkaabah, take control and build your merkaabah (mind vehicle)" }] },
321
+ TEMPERANCE: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Balance, harmonize differences" }] },
322
+ THE_DEVIL: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Indecision between vice and virtue, transmute weakness and passions into strengths" }] },
323
+ THE_TOWER: { type: "major", descriptiveData: [{ name: "The House of God", deck: "Papus Kaabalistic", meaning: "Separation, destruction, separate from what's harmful and connect with what's helpful, make room for the new" }] },
324
+ THE_STAR: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Fecundation, ecology, ecstasy, hope, renew yourself to maintain help, act according to your spiritual purpose" }] },
325
+ THE_MOON: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Hidden enemies, be vigilant, recognize where you're self sabotaging" }] },
326
+ THE_SUN: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Be conscious of your alchemical band, transmute money into knowledge and vice versa" }] },
327
+ JUDGMENT: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Make retrospectives and learn from mistakes and successes" }] },
328
+ THE_FOOL: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Stop walking in circles, create connections of knowledge" }] },
329
+ THE_WORLD: { type: "major", descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Win the world, start acting on the world of causes" }] },
330
+ KING_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Get's the best out of every one, Idealism, Magnanimity" }, { deck: "Kier Egyptian", name: "The Laborer" }] },
331
+ QUEEN_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Hold the line while the king goes to work, Preserve what was conquered" }, { deck: "Kier Egyptian", name: "The Weaver" }] },
332
+ KNIGHT_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Dreams that become reality" }, { deck: "Kier Egyptian", name: "The Argonaut" }] },
333
+ PAGE_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Don't rush, the precipitations are the doors to failure" }, { deck: "Kier Egyptian", name: "The Prodigy" }] },
334
+ ACE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Ignite the flames of ideals, Trust in your inner divinity" }, { deck: "Kier Egyptian", name: "The Unexpected" }] },
335
+ TWO_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Formulate a strategy to use your own talents" }, { deck: "Kier Egyptian", name: "Uncertainty" }] },
336
+ THREE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Keep going despite losing something apparently important" }, { deck: "Kier Egyptian", name: "Domesticity" }] },
337
+ FOUR_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Work in teams" }, { deck: "Kier Egyptian", name: "Exchange" }] },
338
+ FIVE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Strengthen the root chakra, overcome internal fears" }, { deck: "Kier Egyptian", name: "Impediment" }] },
339
+ SIX_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "External victory, internal lack of internal self realization" }, { deck: "Kier Egyptian", name: "Magnificence" }] },
340
+ SEVEN_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Face competitors in an ethical and loyal way" }, { deck: "Kier Egyptian", name: "Alliance" }] },
341
+ EIGHT_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Travel to the center of peace and intelligence" }, { deck: "Kier Egyptian", name: "Innovation" }] },
342
+ NINE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Obstacle that precedes total victory, gather hidden forces" }, { deck: "Kier Egyptian", name: "Desolation" }] },
343
+ TEN_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Get out of apathy, create a new tree of life using the Lightning Path" }, { deck: "Kier Egyptian", name: "Initiation" }] },
344
+ KING_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Stop hurting yourself (related to The Lover), heals everyone and forgets about yourself, balm for your own wound" }, { deck: "Kier Egyptian", name: "Art and Science" }] },
345
+ QUEEN_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Work with subtlety, positive challenges" }, { deck: "Kier Egyptian", name: "Duplicity" }] },
346
+ KNIGHT_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Alternative healing" }, { deck: "Kier Egyptian", name: "Testimony" }] },
347
+ PAGE_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Increase of self-esteem, emotional courage" }, { deck: "Kier Egyptian", name: "Premonition" }] },
348
+ ACE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Renewal or new affection, alternative treatment for health" }, { deck: "Kier Egyptian", name: "Dissension" }] },
349
+ TWO_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Do not poison yourself or the other person" }, { deck: "Kier Egyptian", name: "Preeminence" }] },
350
+ THREE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Harmony between instinct and emotion, Be discreet" }, { deck: "Kier Egyptian", name: "Premonition" }] },
351
+ FOUR_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Abundance in emotional life, do not listen to slander" }, { deck: "Kier Egyptian", name: "Expressiveness" }] },
352
+ FIVE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Do not break your spiritual commitment (your purpose)" }, { deck: "Kier Egyptian", name: "Regeneration" }] },
353
+ SIX_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Do not have self-pity" }, { deck: "Kier Egyptian", name: "Patrimony" }] },
354
+ SEVEN_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Gestations, related to The Star" }, { deck: "Kier Egyptian", name: "Conjecture" }] },
355
+ EIGHT_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Reflect on your emotional life after 18 hours" }, { deck: "Kier Egyptian", name: "Consummation" }] },
356
+ NINE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Reconciliations and forgiveness" }, { deck: "Kier Egyptian", name: "Versatility" }] },
357
+ TEN_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Marriage of the spirit with the soul, Alchemical Weddings" }, { deck: "Kier Egyptian", name: "Attraction" }] },
358
+ KING_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Actions of victorious strategies" }, { deck: "Kier Egyptian", name: "Advice" }] },
359
+ QUEEN_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Supremacy of the feminine, related to Justice" }, { deck: "Kier Egyptian", name: "Premeditation" }] },
360
+ KNIGHT_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Joint victorious actions" }, { deck: "Kier Egyptian", name: "Hostility" }] },
361
+ PAGE_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Follow your intuition" }, { deck: "Kier Egyptian", name: "Examination" }] },
362
+ ACE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Conflicts before victory" }, { deck: "Kier Egyptian", name: "Contrition" }] },
363
+ TWO_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Traumas and conflicts to overcome" }, { deck: "Kier Egyptian", name: "Pilgrimage" }] },
364
+ THREE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Death of yang, Fire, tendencies to depression" }, { deck: "Kier Egyptian", name: "Rivalry" }] },
365
+ FOUR_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Reflection, related to The Hermit" }, { deck: "Kier Egyptian", name: "Meditation" }] },
366
+ FIVE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Healthy self-challenge, Self-demands" }, { deck: "Kier Egyptian", name: "Revelation" }] },
367
+ SIX_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "External daily strategies, Future perspectives" }, { deck: "Kier Egyptian", name: "Evolution" }] },
368
+ SEVEN_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Internal nocturnal strategies, related to The Hermit" }, { deck: "Kier Egyptian", name: "Solitude" }] },
369
+ EIGHT_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Appeal to superior forces, Internal and external conflicts" }, { deck: "Kier Egyptian", name: "Proscription" }] },
370
+ NINE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "The problems being imagined will never happen" }, { deck: "Kier Egyptian", name: "Communion" }] },
371
+ TEN_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Death and rebirth, related to Death and The Tower" }, { deck: "Kier Egyptian", name: "Vehemence" }] },
372
+ KING_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Turns everything into gold" }, { deck: "Kier Egyptian", name: "Apprenticeship" }] },
373
+ QUEEN_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Act with diplomacy" }, { deck: "Kier Egyptian", name: "Perplexity" }] },
374
+ KNIGHT_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Invest into new things" }, { deck: "Kier Egyptian", name: "Veneration" }] },
375
+ PAGE_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Prudence in the material life" }, { deck: "Kier Egyptian", name: "Speculation" }] },
376
+ ACE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Rebirth through a single material goal, Form clear material goals" }, { deck: "Kier Egyptian", name: "The Unforeseen" }] },
377
+ TWO_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Light forming shadows, Duality asking for synthesis in the trinity, Don't put all the eggs in the same basket" }, { deck: "Kier Egyptian", name: "Cooperation" }] },
378
+ THREE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Light forming sound, Establish balance through the trinity becoming a great dispenser, Verbalize what should be done, Do not settle for the first results" }, { deck: "Kier Egyptian", name: "Avarice" }] },
379
+ FOUR_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Avoid avarice / greed" }, { deck: "Kier Egyptian", name: "Purification" }] },
380
+ FIVE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Only order will bring progress, Do not kick the barn without having something concrete in front of you" }, { deck: "Kier Egyptian", name: "Love and Desire" }] },
381
+ SIX_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Act with prudence" }, { deck: "Kier Egyptian", name: "Offering" }] },
382
+ SEVEN_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Don't boast about your proposal or project" }, { deck: "Kier Egyptian", name: "Generosity" }] },
383
+ EIGHT_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Keep doing what you always did" }, { deck: "Kier Egyptian", name: "The Provider" }] },
384
+ NINE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Work with what you like and earn something with it" }, { deck: "Kier Egyptian", name: "Confusion" }] },
385
+ TEN_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: "Papus Kaabalistic", meaning: "Prosperity, Prosperous inheritance" }, { deck: "Kier Egyptian", name: "Rebirth" }] }
386
+ };
387
+
388
+ // src/core/systems/hermetic-qabalah.ts
389
+ var hermetic_qabalah_exports = {};
390
+ __export(hermetic_qabalah_exports, {
391
+ BRIDGES: () => BRIDGES,
392
+ LOADERS: () => LOADERS,
393
+ SYSTEM: () => SYSTEM,
394
+ UNLOADERS: () => UNLOADERS,
395
+ loadColors: () => loadColors,
396
+ loadHermeticQabalah: () => loadHermeticQabalah,
397
+ loadMusicalNotes: () => loadMusicalNotes,
398
+ loadWesternAstrology: () => loadWesternAstrology,
399
+ unloadColors: () => unloadColors,
400
+ unloadHermeticQabalah: () => unloadHermeticQabalah,
401
+ unloadMusicalNotes: () => unloadMusicalNotes,
402
+ unloadWesternAstrology: () => unloadWesternAstrology
403
+ });
404
+ var SYSTEM = "hermetic-qabalah";
405
+ function loadHermeticQabalah(tree) {
406
+ const kether = tree.addSphere(SPHERES.KETHER, {
407
+ ...SPHERE_DATA.KETHER,
408
+ divineName: "Eheieh",
409
+ archangelicName: "Metraton",
410
+ angelicName: "Chayouth Ha-Qadesh",
411
+ mundaneName: "Rashith Ha-Gilgalim"
412
+ }, 1);
413
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, {
414
+ ...SPHERE_DATA.CHOKMAH,
415
+ divineName: "Yahve El Yah",
416
+ archangelicName: "Raziel",
417
+ angelicName: "Auphanim",
418
+ mundaneName: "Mazloth"
419
+ }, 2);
420
+ const binah = tree.addSphere(SPHERES.BINAH, {
421
+ ...SPHERE_DATA.BINAH,
422
+ divineName: "Yahve Elohim",
423
+ archangelicName: "Tzaphqiel",
424
+ angelicName: "Aralim",
425
+ mundaneName: "Shabbathai"
426
+ }, 3);
427
+ tree.addSphere(SPHERES.DAATH, SPHERE_DATA.DAATH, 11);
428
+ const chesed = tree.addSphere(SPHERES.CHESED, {
429
+ ...SPHERE_DATA.CHESED,
430
+ divineName: "El",
431
+ archangelicName: "Tzadqiel",
432
+ angelicName: "Chasmalim",
433
+ mundaneName: "Tzedeq"
434
+ }, 4);
435
+ const geburah = tree.addSphere(SPHERES.GEBURAH, {
436
+ ...SPHERE_DATA.GEBURAH,
437
+ divineName: "Elohim Gibor",
438
+ archangelicName: "Kamael",
439
+ angelicName: "Seraphim",
440
+ mundaneName: "Madim"
441
+ }, 5);
442
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, {
443
+ ...SPHERE_DATA.TIPHERETH,
444
+ divineName: "Yahve Eloah Ve-Daath",
445
+ archangelicName: "Raphael",
446
+ angelicName: "Melekim",
447
+ mundaneName: "Shemesh"
448
+ }, 6);
449
+ const netzach = tree.addSphere(SPHERES.NETZACH, {
450
+ ...SPHERE_DATA.NETZACH,
451
+ divineName: "Yahve Tzabaoth",
452
+ archangelicName: "Haniel",
453
+ angelicName: "Elohim",
454
+ mundaneName: "Nogah"
455
+ }, 7);
456
+ const hod = tree.addSphere(SPHERES.HOD, {
457
+ ...SPHERE_DATA.HOD,
458
+ divineName: "Elohim Tzabaoth",
459
+ archangelicName: "Mikael",
460
+ angelicName: "Beni Elohim",
461
+ mundaneName: "Kokab"
462
+ }, 8);
463
+ const yesod = tree.addSphere(SPHERES.YESOD, {
464
+ ...SPHERE_DATA.YESOD,
465
+ divineName: "Shadai El Chai",
466
+ archangelicName: "Gabriel",
467
+ angelicName: "Kerubim",
468
+ mundaneName: "Levanah"
469
+ }, 9);
470
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, {
471
+ ...SPHERE_DATA.MALKUTH,
472
+ divineName: "Adonai Malek",
473
+ archangelicName: "Sandalphon",
474
+ angelicName: "Ashim",
475
+ mundaneName: "Olam Yesodot"
476
+ }, 10);
477
+ const worlds = Object.entries(FOUR_WORLDS);
478
+ const worldData = {
479
+ ATZILUTH: {
480
+ element: "fire",
481
+ hebrewName: "Atzilith",
482
+ englishName: "World of Emanation"
483
+ },
484
+ BRIAH: {
485
+ element: "water",
486
+ hebrewName: "Briah",
487
+ englishName: "World of Creation"
488
+ },
489
+ YETZIRAH: {
490
+ element: "air",
491
+ hebrewName: "Yetzirah",
492
+ englishName: "World of Formation"
493
+ },
494
+ ASSIAH: {
495
+ element: "earth",
496
+ hebrewName: "Assiah",
497
+ englishName: "World of Action"
498
+ }
499
+ };
500
+ for (const [key] of worlds) {
501
+ tree.addWorld(
502
+ FOUR_WORLDS[key],
503
+ worldData[key]
504
+ );
505
+ }
506
+ const path11 = tree.addPath(kether, chokmah, MELKITZEDEKI_PATHS.KETHER_CHOKMAH);
507
+ const path12 = tree.addPath(kether, binah, MELKITZEDEKI_PATHS.KETHER_BINAH);
508
+ const path13 = tree.addPath(kether, tiphereth, MELKITZEDEKI_PATHS.KETHER_TIPHERETH);
509
+ const path14 = tree.addPath(chokmah, binah, MELKITZEDEKI_PATHS.CHOKMAH_BINAH);
510
+ const path15 = tree.addPath(chokmah, tiphereth, MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH);
511
+ const path16 = tree.addPath(chokmah, chesed, MELKITZEDEKI_PATHS.CHOKMAH_CHESED);
512
+ const path17 = tree.addPath(binah, tiphereth, MELKITZEDEKI_PATHS.BINAH_TIPHERETH);
513
+ const path18 = tree.addPath(binah, geburah, MELKITZEDEKI_PATHS.BINAH_GEBURAH);
514
+ const path19 = tree.addPath(chesed, geburah, MELKITZEDEKI_PATHS.CHESED_GEBURAH);
515
+ const path20 = tree.addPath(chesed, tiphereth, MELKITZEDEKI_PATHS.CHESED_TIPHERETH);
516
+ const path21 = tree.addPath(chesed, netzach, MELKITZEDEKI_PATHS.CHESED_NETZACH);
517
+ const path22 = tree.addPath(geburah, tiphereth, MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH);
518
+ const path23 = tree.addPath(geburah, hod, MELKITZEDEKI_PATHS.GEBURAH_HOD);
519
+ const path24 = tree.addPath(tiphereth, netzach, MELKITZEDEKI_PATHS.TIPHERETH_NETZACH);
520
+ const path25 = tree.addPath(tiphereth, yesod, MELKITZEDEKI_PATHS.TIPHERETH_YESOD);
521
+ const path26 = tree.addPath(tiphereth, hod, MELKITZEDEKI_PATHS.TIPHERETH_HOD);
522
+ const path27 = tree.addPath(netzach, hod, MELKITZEDEKI_PATHS.NETZACH_HOD);
523
+ const path28 = tree.addPath(netzach, yesod, MELKITZEDEKI_PATHS.NETZACH_YESOD);
524
+ const path29 = tree.addPath(netzach, malkuth, MELKITZEDEKI_PATHS.NETZACH_MALKUTH);
525
+ const path30 = tree.addPath(hod, yesod, MELKITZEDEKI_PATHS.HOD_YESOD);
526
+ const path31 = tree.addPath(hod, malkuth, MELKITZEDEKI_PATHS.HOD_MALKUTH);
527
+ const path32 = tree.addPath(yesod, malkuth, MELKITZEDEKI_PATHS.YESOD_MALKUTH);
528
+ tree.addLetters(path11, [
529
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
530
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
531
+ ]);
532
+ tree.addLetters(path12, [
533
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
534
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
535
+ ]);
536
+ tree.addLetters(path13, [
537
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
538
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
539
+ ]);
540
+ tree.addLetters(path14, [
541
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
542
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
543
+ ]);
544
+ tree.addLetters(path15, [
545
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
546
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
547
+ ]);
548
+ tree.addLetters(path16, [
549
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
550
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
551
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
552
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
553
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
554
+ ]);
555
+ tree.addLetters(path17, [
556
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
557
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
558
+ ]);
559
+ tree.addLetters(path18, [
560
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
561
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
562
+ ]);
563
+ tree.addLetters(path19, [
564
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
565
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
566
+ ]);
567
+ tree.addLetters(path20, [
568
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
569
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
570
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
571
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
572
+ ]);
573
+ tree.addLetters(path21, [
574
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
575
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
576
+ ]);
577
+ tree.addLetters(path22, [
578
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
579
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
580
+ ]);
581
+ tree.addLetters(path23, [
582
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
583
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
584
+ ]);
585
+ tree.addLetters(path24, [
586
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
587
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
588
+ ]);
589
+ tree.addLetters(path25, [
590
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
591
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
592
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
593
+ ]);
594
+ tree.addLetters(path26, [
595
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
596
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
597
+ ]);
598
+ tree.addLetters(path27, [
599
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
600
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
601
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
602
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
603
+ ]);
604
+ tree.addLetters(path28, [
605
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
606
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
607
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
608
+ ]);
609
+ tree.addLetters(path29, [
610
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
611
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
612
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
613
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
614
+ ]);
615
+ tree.addLetters(path30, [
616
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
617
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
618
+ ]);
619
+ tree.addLetters(path31, [
620
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
621
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
622
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
623
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
624
+ ]);
625
+ tree.addLetters(path32, [
626
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
627
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
628
+ ]);
629
+ return tree;
630
+ }
631
+ function unloadHermeticQabalah(tree) {
632
+ const spheres = Object.values(SPHERES);
633
+ for (let i = 0; i < spheres.length; i++) {
634
+ tree.removeNode(spheres[i]);
635
+ }
636
+ const paths = Object.values(MELKITZEDEKI_PATHS);
637
+ for (let i = 0; i < paths.length; i++) {
638
+ tree.removeNode(`path:${paths[i]}`);
639
+ }
640
+ }
641
+ function loadColors(tree) {
642
+ tree.addSphereColor(SPHERES.KETHER, "splendor", {
643
+ colorDescription: "Splendor",
644
+ colorNames: ["transparent"],
645
+ colorHexCodes: ["#ffffff"]
646
+ }, FOUR_WORLDS.ATZILUTH);
647
+ tree.addSphereColor(SPHERES.KETHER, "white-splendor", {
648
+ colorDescription: "White splendor, pure",
649
+ colorNames: ["white"],
650
+ colorHexCodes: ["#ffffff"]
651
+ }, FOUR_WORLDS.BRIAH);
652
+ tree.addSphereColor(SPHERES.KETHER, "white-splendor", {
653
+ colorDescription: "White splendor, pure",
654
+ colorNames: ["white"],
655
+ colorHexCodes: ["#ffffff"]
656
+ }, FOUR_WORLDS.YETZIRAH);
657
+ tree.addSphereColor(SPHERES.KETHER, "white-speckled-gold", {
658
+ colorDescription: "White speckled with gold",
659
+ colorNames: ["white", "gold"],
660
+ colorHexCodes: ["#ffffff", "#FFD700"]
661
+ }, FOUR_WORLDS.ASSIAH);
662
+ tree.addSphereColor(SPHERES.CHOKMAH, "blue", {
663
+ colorDescription: "Smooth blue, pure",
664
+ colorNames: ["blue"],
665
+ colorHexCodes: ["#0000FF"]
666
+ }, FOUR_WORLDS.ATZILUTH);
667
+ tree.addSphereColor(SPHERES.CHOKMAH, "grey", {
668
+ colorDescription: "Grey",
669
+ colorNames: ["grey"],
670
+ colorHexCodes: ["#808080"]
671
+ }, FOUR_WORLDS.BRIAH);
672
+ tree.addSphereColor(SPHERES.CHOKMAH, "grey-iridescent", {
673
+ colorDescription: "Pearl grey iridescent",
674
+ colorNames: ["grey", "iridescent"],
675
+ colorHexCodes: ["#808080", "#EDBBE7"]
676
+ }, FOUR_WORLDS.YETZIRAH);
677
+ tree.addSphereColor(SPHERES.CHOKMAH, "white-speckled-red-blue-yellow", {
678
+ colorDescription: "White speckled with red, blue and yellow",
679
+ colorNames: ["white", "red", "blue", "yellow"],
680
+ colorHexCodes: ["#FFFFFF", "#FF0000", "#0000FF", "#FFF50F"]
681
+ }, FOUR_WORLDS.ASSIAH);
682
+ tree.addSphereColor(SPHERES.BINAH, "crimson", {
683
+ colorDescription: "Crimson",
684
+ colorNames: ["crimson"],
685
+ colorHexCodes: ["#DC143C"]
686
+ }, FOUR_WORLDS.ATZILUTH);
687
+ tree.addSphereColor(SPHERES.BINAH, "black", {
688
+ colorDescription: "Black",
689
+ colorNames: ["black"],
690
+ colorHexCodes: ["#000000"]
691
+ }, FOUR_WORLDS.BRIAH);
692
+ tree.addSphereColor(SPHERES.BINAH, "dark-brown", {
693
+ colorDescription: "Dark brown",
694
+ colorNames: ["dark-brown"],
695
+ colorHexCodes: ["#422E29"]
696
+ }, FOUR_WORLDS.YETZIRAH);
697
+ tree.addSphereColor(SPHERES.BINAH, "grey-speckled-pink", {
698
+ colorDescription: "Grey speckled with pink",
699
+ colorNames: ["grey", "pink"],
700
+ colorHexCodes: ["#808080", "#FFC0CB"]
701
+ }, FOUR_WORLDS.ASSIAH);
702
+ tree.addSphereColor(SPHERES.DAATH, "lavender", {
703
+ colorDescription: "Lavender",
704
+ colorNames: ["lavender"],
705
+ colorHexCodes: ["#E6E6FA"]
706
+ }, FOUR_WORLDS.ATZILUTH);
707
+ tree.addSphereColor(SPHERES.DAATH, "dark-grey", {
708
+ colorDescription: "Dark grey",
709
+ colorNames: ["dark-grey"],
710
+ colorHexCodes: ["#808080"]
711
+ }, FOUR_WORLDS.BRIAH);
712
+ tree.addSphereColor(SPHERES.DAATH, "pure-violet", {
713
+ colorDescription: "Pure violet",
714
+ colorNames: ["violet"],
715
+ colorHexCodes: ["#8F00FF"]
716
+ }, FOUR_WORLDS.YETZIRAH);
717
+ tree.addSphereColor(SPHERES.DAATH, "grey-speckled-gold", {
718
+ colorDescription: "Grey speckled with gold",
719
+ colorNames: ["grey", "gold"],
720
+ colorHexCodes: ["#808080", "#FFD700"]
721
+ }, FOUR_WORLDS.ASSIAH);
722
+ tree.addSphereColor(SPHERES.CHESED, "intense-violet", {
723
+ colorDescription: "Intense violet",
724
+ colorNames: ["intense-violet"],
725
+ colorHexCodes: ["#9400D3"]
726
+ }, FOUR_WORLDS.ATZILUTH);
727
+ tree.addSphereColor(SPHERES.CHESED, "blue", {
728
+ colorDescription: "Blue",
729
+ colorNames: ["blue"],
730
+ colorHexCodes: ["#0000FF"]
731
+ }, FOUR_WORLDS.BRIAH);
732
+ tree.addSphereColor(SPHERES.CHESED, "intense-purple", {
733
+ colorDescription: "Intense purple",
734
+ colorNames: ["intense-purple"],
735
+ colorHexCodes: ["#800080"]
736
+ }, FOUR_WORLDS.YETZIRAH);
737
+ tree.addSphereColor(SPHERES.CHESED, "intense-blue-speckled-yellow", {
738
+ colorDescription: "Intense blue speckled with yellow",
739
+ colorNames: ["intense-blue", "yellow"],
740
+ colorHexCodes: ["#0000FF", "#FFF50F"]
741
+ }, FOUR_WORLDS.ASSIAH);
742
+ tree.addSphereColor(SPHERES.GEBURAH, "orange", {
743
+ colorDescription: "Orange",
744
+ colorNames: ["orange"],
745
+ colorHexCodes: ["#FFA800"]
746
+ }, FOUR_WORLDS.ATZILUTH);
747
+ tree.addSphereColor(SPHERES.GEBURAH, "scarlet-red", {
748
+ colorDescription: "Scarlet red",
749
+ colorNames: ["scarlet-red"],
750
+ colorHexCodes: ["#FF2400"]
751
+ }, FOUR_WORLDS.BRIAH);
752
+ tree.addSphereColor(SPHERES.GEBURAH, "bright-scarlet", {
753
+ colorDescription: "Bright scarlet",
754
+ colorNames: ["bright-scarlet"],
755
+ colorHexCodes: ["#FF2400"]
756
+ }, FOUR_WORLDS.YETZIRAH);
757
+ tree.addSphereColor(SPHERES.GEBURAH, "red-speckled-black", {
758
+ colorDescription: "Red speckled with black",
759
+ colorNames: ["red", "black"],
760
+ colorHexCodes: ["#FF0000", "#000000"]
761
+ }, FOUR_WORLDS.ASSIAH);
762
+ tree.addSphereColor(SPHERES.TIPHERETH, "gold-yellow", {
763
+ colorDescription: "gold yellow",
764
+ colorNames: ["gold-yellow"],
765
+ colorHexCodes: ["#FFD700"]
766
+ }, FOUR_WORLDS.ATZILUTH);
767
+ tree.addSphereColor(SPHERES.TIPHERETH, "rose-pink", {
768
+ colorDescription: "Rose pink",
769
+ colorNames: ["rose-pink"],
770
+ colorHexCodes: ["#FFC0CB"]
771
+ }, FOUR_WORLDS.BRIAH);
772
+ tree.addSphereColor(SPHERES.TIPHERETH, "salmon-pink-reddish-carmine-amber-brown-mixed", {
773
+ colorDescription: "Salmon pink, reddish carmine, amber, brown, mixed",
774
+ colorNames: ["salmon-pink", "reddish-carmine", "amber", "brown", "mixed"],
775
+ colorHexCodes: ["#FF9999", "#960018", "#996515"]
776
+ }, FOUR_WORLDS.YETZIRAH);
777
+ tree.addSphereColor(SPHERES.TIPHERETH, "gold-speckled-green", {
778
+ colorDescription: "Gold speckled with green",
779
+ colorNames: ["gold", "green"],
780
+ colorHexCodes: ["#FFD700", "#BDB76B"]
781
+ }, FOUR_WORLDS.ASSIAH);
782
+ tree.addSphereColor(SPHERES.NETZACH, "amber", {
783
+ colorDescription: "Amber",
784
+ colorNames: ["amber"],
785
+ colorHexCodes: ["#FFBF00"]
786
+ }, FOUR_WORLDS.ATZILUTH);
787
+ tree.addSphereColor(SPHERES.NETZACH, "emerald-green", {
788
+ colorDescription: "Emerald green",
789
+ colorNames: ["emerald-green"],
790
+ colorHexCodes: ["#50C878"]
791
+ }, FOUR_WORLDS.BRIAH);
792
+ tree.addSphereColor(SPHERES.NETZACH, "bright-yellowish-green", {
793
+ colorDescription: "Bright yellowish green",
794
+ colorNames: ["bright-yellowish-green"],
795
+ colorHexCodes: ["#98FB98"]
796
+ }, FOUR_WORLDS.YETZIRAH);
797
+ tree.addSphereColor(SPHERES.NETZACH, "olive-green-speckled-gold", {
798
+ colorDescription: "Olive green speckled with gold",
799
+ colorNames: ["olive-green", "gold"],
800
+ colorHexCodes: ["#BAB86C", "#FFD700"]
801
+ }, FOUR_WORLDS.ASSIAH);
802
+ tree.addSphereColor(SPHERES.HOD, "violet-purple", {
803
+ colorDescription: "Violet-purple",
804
+ colorNames: ["violet-purple"],
805
+ colorHexCodes: ["#9B30FF"]
806
+ }, FOUR_WORLDS.ATZILUTH);
807
+ tree.addSphereColor(SPHERES.HOD, "orange", {
808
+ colorDescription: "Orange",
809
+ colorNames: ["orange"],
810
+ colorHexCodes: ["#FFA800"]
811
+ }, FOUR_WORLDS.BRIAH);
812
+ tree.addSphereColor(SPHERES.HOD, "red-purple", {
813
+ colorDescription: "Red-purple",
814
+ colorNames: ["red-purple"],
815
+ colorHexCodes: ["#C71585"]
816
+ }, FOUR_WORLDS.YETZIRAH);
817
+ tree.addSphereColor(SPHERES.HOD, "yellowish-black-speckled-with-white", {
818
+ colorDescription: "Yellowish black speckled with white",
819
+ colorNames: ["yellowish-black-speckled-with-white"],
820
+ colorHexCodes: ["#2B2B1B", "#FFFFFF"]
821
+ }, FOUR_WORLDS.ASSIAH);
822
+ tree.addSphereColor(SPHERES.YESOD, "indigo", {
823
+ colorDescription: "Indigo",
824
+ colorNames: ["indigo"],
825
+ colorHexCodes: ["#4B0082"]
826
+ }, FOUR_WORLDS.YETZIRAH);
827
+ tree.addSphereColor(SPHERES.YESOD, "violet", {
828
+ colorDescription: "Violet",
829
+ colorNames: ["violet"],
830
+ colorHexCodes: ["#8F00FF"]
831
+ }, FOUR_WORLDS.BRIAH);
832
+ tree.addSphereColor(SPHERES.YESOD, "purple", {
833
+ colorDescription: "Purple",
834
+ colorNames: ["purple"],
835
+ colorHexCodes: ["#800080"]
836
+ }, FOUR_WORLDS.YETZIRAH);
837
+ tree.addSphereColor(SPHERES.YESOD, "citrine-speckled-blue", {
838
+ colorDescription: "Citrine speckled with blue",
839
+ colorNames: ["citrine-speckled-blue"],
840
+ colorHexCodes: ["#E4D00A", "#1E90FF"]
841
+ }, FOUR_WORLDS.ASSIAH);
842
+ tree.addSphereColor(SPHERES.MALKUTH, "yellow", {
843
+ colorDescription: "Yellow",
844
+ colorNames: ["yellow"],
845
+ colorHexCodes: ["#FFF50F"]
846
+ }, FOUR_WORLDS.ATZILUTH);
847
+ tree.addSphereColor(SPHERES.MALKUTH, "brown", {
848
+ colorDescription: "Made up of the colors of earth, which is created from the 4 elements. Brown can be used to represent it, but, usually it is represented in a pizza-like pattern, starting with Olive on top, and going clockwise with Yellow, Black and Red, all with slightly less saturation.",
849
+ colorNames: ["brown", "olive", "yellow", "black", "red"],
850
+ colorHexCodes: ["#422E29", "#BAB86C", "#FFF659", "#000000", "#FF5454"]
851
+ }, FOUR_WORLDS.BRIAH);
852
+ tree.addSphereColor(SPHERES.MALKUTH, "olive-green", {
853
+ colorDescription: "Olive green",
854
+ colorNames: ["olive-green"],
855
+ colorHexCodes: ["#BAB86C"]
856
+ }, FOUR_WORLDS.YETZIRAH);
857
+ tree.addSphereColor(SPHERES.MALKUTH, "black", {
858
+ colorDescription: "All the colors mixed, on their lowest vibration.",
859
+ colorNames: ["black"],
860
+ colorHexCodes: ["#000000"]
861
+ }, FOUR_WORLDS.ASSIAH);
862
+ return tree;
863
+ }
864
+ function unloadColors(tree) {
865
+ const colors = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "color").map((color) => color.id));
866
+ for (let i = 0; i < colors.length; i++) {
867
+ tree.removeNode(colors[i]);
868
+ }
869
+ }
870
+ function loadMusicalNotes(tree) {
871
+ tree.addMusicalNote(SPHERES.KETHER, "The Sound of the Spheres", {
872
+ note: "The Sound of the Sphere",
873
+ noteDescription: "The sound of the sphere"
874
+ });
875
+ tree.addMusicalNote(SPHERES.CHOKMAH, "Mantras", {
876
+ note: "Mantra",
877
+ noteDescription: "All sounds considered devotional mantras"
878
+ });
879
+ tree.addMusicalNote(SPHERES.BINAH, "Si", {
880
+ note: "Si",
881
+ noteDescription: "B (Si)"
882
+ });
883
+ tree.addMusicalNote(SPHERES.CHESED, "La", {
884
+ note: "La",
885
+ noteDescription: "A (La)"
886
+ });
887
+ tree.addMusicalNote(SPHERES.GEBURAH, "Do-treble", {
888
+ note: "Do",
889
+ noteDescription: "C (Do), in the treble clef"
890
+ });
891
+ tree.addMusicalNote(SPHERES.TIPHERETH, "Sol-treble", {
892
+ note: "Sol",
893
+ noteDescription: "G (Sol), in the treble clef"
894
+ });
895
+ tree.addMusicalNote(SPHERES.NETZACH, "Do", {
896
+ note: "Do",
897
+ noteDescription: "C (Do)"
898
+ });
899
+ tree.addMusicalNote(SPHERES.HOD, "Mi", {
900
+ note: "Mi",
901
+ noteDescription: "E (Mi)"
902
+ });
903
+ tree.addMusicalNote(SPHERES.YESOD, "Mi", {
904
+ note: "Mi",
905
+ noteDescription: "E (Mi)"
906
+ });
907
+ tree.addMusicalNote(SPHERES.MALKUTH, "Fa", {
908
+ note: "Fa",
909
+ noteDescription: "F (Fa)"
910
+ });
911
+ return tree;
912
+ }
913
+ function unloadMusicalNotes(tree) {
914
+ const notes = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "musicalNote").map((note) => note.id));
915
+ for (let i = 0; i < notes.length; i++) {
916
+ tree.removeNode(notes[i]);
917
+ }
918
+ }
919
+ var linkColorsAndSigns = (t) => {
920
+ return t;
921
+ };
922
+ var loadWesternAstrology = (tree) => {
923
+ tree.addWesternAstrologyPlanet(SPHERES.KETHER, PLANETS.NEPTUNE);
924
+ tree.addWesternAstrologyPlanet(SPHERES.CHOKMAH, PLANETS.URANUS);
925
+ tree.addWesternAstrologyPlanet(SPHERES.BINAH, PLANETS.SATURN);
926
+ tree.addWesternAstrologyPlanet(SPHERES.DAATH, PLANETS.PLUTO);
927
+ tree.addWesternAstrologyPlanet(SPHERES.CHESED, PLANETS.JUPITER);
928
+ tree.addWesternAstrologyPlanet(SPHERES.GEBURAH, PLANETS.MARS);
929
+ tree.addWesternAstrologyPlanet(SPHERES.TIPHERETH, PLANETS.SUN);
930
+ tree.addWesternAstrologyPlanet(SPHERES.NETZACH, PLANETS.VENUS);
931
+ tree.addWesternAstrologyPlanet(SPHERES.HOD, PLANETS.MERCURY);
932
+ tree.addWesternAstrologyPlanet(SPHERES.YESOD, PLANETS.MOON);
933
+ tree.addWesternAstrologyPlanet(SPHERES.MALKUTH, PLANETS.EARTH);
934
+ return tree;
935
+ };
936
+ var unloadWesternAstrology = (tree) => {
937
+ const planets = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "planet").map((planet) => planet.id));
938
+ for (let i = 0; i < planets.length; i++) {
939
+ tree.removeNode(planets[i]);
940
+ }
941
+ };
942
+ var LOADERS = {
943
+ base: loadHermeticQabalah,
944
+ colors: loadColors,
945
+ music: loadMusicalNotes,
946
+ westernAstrology: loadWesternAstrology
947
+ };
948
+ var UNLOADERS = {
949
+ base: unloadHermeticQabalah,
950
+ colors: unloadColors,
951
+ music: unloadMusicalNotes,
952
+ westernAstrology: unloadWesternAstrology
953
+ };
954
+ var BRIDGES = [
955
+ {
956
+ id: "hermetic-qabalah-color-music",
957
+ needs: ["colors", "music"],
958
+ run: (t) => linkColorsAndSigns(t)
959
+ }
960
+ ];
961
+
962
+ // src/core/systems/kaabalah.ts
963
+ var kaabalah_exports = {};
964
+ __export(kaabalah_exports, {
965
+ BRIDGES: () => BRIDGES2,
966
+ LOADERS: () => LOADERS2,
967
+ SYSTEM: () => SYSTEM2,
968
+ UNLOADERS: () => UNLOADERS2,
969
+ loadColors: () => loadColors2,
970
+ loadKaabalah: () => loadKaabalah,
971
+ loadMusicalNotes: () => loadMusicalNotes2,
972
+ loadTarot: () => loadTarot,
973
+ loadWesternAstrology: () => loadWesternAstrology2,
974
+ unloadColors: () => unloadColors2,
975
+ unloadKaabalah: () => unloadKaabalah,
976
+ unloadMusicalNotes: () => unloadMusicalNotes2,
977
+ unloadTarot: () => unloadTarot,
978
+ unloadWesternAstrology: () => unloadWesternAstrology2
979
+ });
980
+ var SYSTEM2 = "kaabalah";
981
+ var loadKaabalah = (tree) => {
982
+ const kether = tree.addSphere(SPHERES.KETHER, SPHERE_DATA.KETHER, 1);
983
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, SPHERE_DATA.CHOKMAH, 2);
984
+ const binah = tree.addSphere(SPHERES.BINAH, SPHERE_DATA.BINAH, 3);
985
+ tree.addSphere(SPHERES.DAATH, SPHERE_DATA.DAATH, 11);
986
+ const chesed = tree.addSphere(SPHERES.CHESED, SPHERE_DATA.CHESED, 4);
987
+ const geburah = tree.addSphere(SPHERES.GEBURAH, SPHERE_DATA.GEBURAH, 5);
988
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, SPHERE_DATA.TIPHERETH, 6);
989
+ const netzach = tree.addSphere(SPHERES.NETZACH, SPHERE_DATA.NETZACH, 7);
990
+ const hod = tree.addSphere(SPHERES.HOD, SPHERE_DATA.HOD, 8);
991
+ const yesod = tree.addSphere(SPHERES.YESOD, SPHERE_DATA.YESOD, 9);
992
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, SPHERE_DATA.MALKUTH, 10);
993
+ const worlds = Object.entries(FOUR_WORLDS);
994
+ const worldData = {
995
+ ATZILUTH: {
996
+ element: "fire",
997
+ hebrewName: "Atzilith",
998
+ englishName: "World of Emanation"
999
+ },
1000
+ BRIAH: {
1001
+ element: "water",
1002
+ hebrewName: "Briah",
1003
+ englishName: "World of Creation"
1004
+ },
1005
+ YETZIRAH: {
1006
+ element: "air",
1007
+ hebrewName: "Yetzirah",
1008
+ englishName: "World of Formation"
1009
+ },
1010
+ ASSIAH: {
1011
+ element: "earth",
1012
+ hebrewName: "Assiah",
1013
+ englishName: "World of Action"
1014
+ }
1015
+ };
1016
+ for (const [key] of worlds) {
1017
+ tree.addWorld(
1018
+ FOUR_WORLDS[key],
1019
+ worldData[key]
1020
+ );
1021
+ }
1022
+ const path11 = tree.addPath(kether, chokmah, MELKITZEDEKI_PATHS.KETHER_CHOKMAH, {
1023
+ meaning: "Crown's wisdom"
1024
+ });
1025
+ const path12 = tree.addPath(kether, binah, MELKITZEDEKI_PATHS.KETHER_BINAH, {
1026
+ meaning: "Transparency's intelligence"
1027
+ });
1028
+ const path13 = tree.addPath(kether, tiphereth, MELKITZEDEKI_PATHS.KETHER_TIPHERETH, {
1029
+ meaning: "Great Ark Tekton (architect)"
1030
+ });
1031
+ const path14 = tree.addPath(chokmah, binah, MELKITZEDEKI_PATHS.CHOKMAH_BINAH, {
1032
+ meaning: "Light's wisdom that becomes sound"
1033
+ });
1034
+ const path15 = tree.addPath(chokmah, tiphereth, MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH, {
1035
+ meaning: "Light reaching equilibrium"
1036
+ });
1037
+ const path16 = tree.addPath(chokmah, chesed, MELKITZEDEKI_PATHS.CHOKMAH_CHESED, {
1038
+ meaning: "Expansive light"
1039
+ });
1040
+ const path17 = tree.addPath(binah, tiphereth, MELKITZEDEKI_PATHS.BINAH_TIPHERETH, {
1041
+ meaning: "Vibration that balances"
1042
+ });
1043
+ const path18 = tree.addPath(binah, geburah, MELKITZEDEKI_PATHS.BINAH_GEBURAH, {
1044
+ meaning: "Vibration that becomes dual"
1045
+ });
1046
+ const path19 = tree.addPath(chesed, geburah, MELKITZEDEKI_PATHS.CHESED_GEBURAH, {
1047
+ meaning: "Expansion towards duality"
1048
+ });
1049
+ const path20 = tree.addPath(chesed, tiphereth, MELKITZEDEKI_PATHS.CHESED_TIPHERETH, {
1050
+ meaning: "Expansion of equilibrium"
1051
+ });
1052
+ const path21 = tree.addPath(chesed, netzach, MELKITZEDEKI_PATHS.CHESED_NETZACH, {
1053
+ meaning: "Expansion of victory"
1054
+ });
1055
+ const path22 = tree.addPath(geburah, tiphereth, MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH, {
1056
+ meaning: "Harmonizing duality"
1057
+ });
1058
+ const path23 = tree.addPath(geburah, hod, MELKITZEDEKI_PATHS.GEBURAH_HOD, {
1059
+ meaning: "Duality from above with duality from below"
1060
+ });
1061
+ const path24 = tree.addPath(tiphereth, netzach, MELKITZEDEKI_PATHS.TIPHERETH_NETZACH, {
1062
+ meaning: "Illumination of victory"
1063
+ });
1064
+ const path25 = tree.addPath(tiphereth, yesod, MELKITZEDEKI_PATHS.TIPHERETH_YESOD, {
1065
+ meaning: "Illumination of foundations (secrets)"
1066
+ });
1067
+ const path26 = tree.addPath(tiphereth, hod, MELKITZEDEKI_PATHS.TIPHERETH_HOD, {
1068
+ meaning: "Illumination of reasons"
1069
+ });
1070
+ const path27 = tree.addPath(netzach, hod, MELKITZEDEKI_PATHS.NETZACH_HOD, {
1071
+ meaning: "Reason of emotions"
1072
+ });
1073
+ const path28 = tree.addPath(netzach, yesod, MELKITZEDEKI_PATHS.NETZACH_YESOD, {
1074
+ meaning: "Victory of inner emptiness"
1075
+ });
1076
+ const path29 = tree.addPath(netzach, malkuth, MELKITZEDEKI_PATHS.NETZACH_MALKUTH, {
1077
+ meaning: "Victory over matter"
1078
+ });
1079
+ const path30 = tree.addPath(hod, yesod, MELKITZEDEKI_PATHS.HOD_YESOD, {
1080
+ meaning: "Reason of foundations"
1081
+ });
1082
+ const path31 = tree.addPath(hod, malkuth, MELKITZEDEKI_PATHS.HOD_MALKUTH, {
1083
+ meaning: "Reason conquering the world"
1084
+ });
1085
+ const path32 = tree.addPath(yesod, malkuth, MELKITZEDEKI_PATHS.YESOD_MALKUTH, {
1086
+ meaning: "Filling the inner emptiness of the world"
1087
+ });
1088
+ tree.addLetters(path11, [
1089
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
1090
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
1091
+ ]);
1092
+ tree.addLetters(path12, [
1093
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
1094
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
1095
+ ]);
1096
+ tree.addLetters(path13, [
1097
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
1098
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
1099
+ ]);
1100
+ tree.addLetters(path14, [
1101
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
1102
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
1103
+ ]);
1104
+ tree.addLetters(path15, [
1105
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
1106
+ { letter: LATIN_LETTERS.\u00C3, type: "latinLetter" },
1107
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
1108
+ ]);
1109
+ tree.addLetters(path16, [
1110
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
1111
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
1112
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
1113
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
1114
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
1115
+ ]);
1116
+ tree.addLetters(path17, [
1117
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
1118
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
1119
+ ]);
1120
+ tree.addLetters(path18, [
1121
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
1122
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
1123
+ ]);
1124
+ tree.addLetters(path19, [
1125
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
1126
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
1127
+ ]);
1128
+ tree.addLetters(path20, [
1129
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
1130
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
1131
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
1132
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
1133
+ ]);
1134
+ tree.addLetters(path21, [
1135
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
1136
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
1137
+ ]);
1138
+ tree.addLetters(path22, [
1139
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
1140
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
1141
+ ]);
1142
+ tree.addLetters(path23, [
1143
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
1144
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
1145
+ ]);
1146
+ tree.addLetters(path24, [
1147
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
1148
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
1149
+ ]);
1150
+ tree.addLetters(path25, [
1151
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
1152
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
1153
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
1154
+ ]);
1155
+ tree.addLetters(path26, [
1156
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
1157
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
1158
+ ]);
1159
+ tree.addLetters(path27, [
1160
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
1161
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
1162
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
1163
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
1164
+ ]);
1165
+ tree.addLetters(path28, [
1166
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
1167
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
1168
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
1169
+ ]);
1170
+ tree.addLetters(path29, [
1171
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
1172
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
1173
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
1174
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
1175
+ ]);
1176
+ tree.addLetters(path30, [
1177
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
1178
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
1179
+ ]);
1180
+ tree.addLetters(path31, [
1181
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
1182
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
1183
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
1184
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
1185
+ ]);
1186
+ tree.addLetters(path32, [
1187
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
1188
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
1189
+ ]);
1190
+ return tree;
1191
+ };
1192
+ var unloadKaabalah = (tree) => {
1193
+ const spheres = Object.values(SPHERES);
1194
+ for (let i = 0; i < spheres.length; i++) {
1195
+ tree.removeNode(spheres[i]);
1196
+ }
1197
+ const paths = Object.values(MELKITZEDEKI_PATHS);
1198
+ for (let i = 0; i < paths.length; i++) {
1199
+ tree.removeNode(`path:${paths[i]}`);
1200
+ }
1201
+ };
1202
+ var loadColors2 = (tree) => {
1203
+ tree.addSphereColor(SPHERES.KETHER, "crystal", {
1204
+ colorDescription: "Transparent, clear, crystal-like. All the colors mixed, on their purest, most saint form",
1205
+ colorNames: ["transparent"],
1206
+ colorHexCodes: ["#cccccc"]
1207
+ });
1208
+ tree.addSphereColor(SPHERES.CHOKMAH, "iridescent", {
1209
+ colorDescription: "All the colors, in a iridescent manner. Can also be represented by all the other sphere colors in a pizza-like pattern, starting with Tiphereth on top, and going clockwise following the spheres on the right and left columns.",
1210
+ colorNames: ["iridescent", "yellow", "blue", "green", "purple", "orange", "red"],
1211
+ colorHexCodes: ["#EDBBE7", "#FFF50F", "#0000FF", "#14FF00", "#8F00FF", "#FFA800", "#FF0000"]
1212
+ });
1213
+ tree.addSphereColor(SPHERES.BINAH, "black", {
1214
+ colorDescription: "All the colors mixed, on their lowest vibration.",
1215
+ colorNames: ["black"],
1216
+ colorHexCodes: ["#000000"]
1217
+ });
1218
+ tree.addSphereColor(SPHERES.DAATH, "white", {
1219
+ colorDescription: "All the colors mixed, on their highest vibration. Can also be represented by an yin-yang pattern.",
1220
+ colorNames: ["white"],
1221
+ colorHexCodes: ["#FFFFFF"]
1222
+ });
1223
+ tree.addSphereColor(SPHERES.CHESED, "blue", {
1224
+ colorDescription: "Blue",
1225
+ colorNames: ["blue"],
1226
+ colorHexCodes: ["#0000FF"]
1227
+ });
1228
+ tree.addSphereColor(SPHERES.GEBURAH, "red", {
1229
+ colorDescription: "Red",
1230
+ colorNames: ["red"],
1231
+ colorHexCodes: ["#FF0000"]
1232
+ });
1233
+ tree.addSphereColor(SPHERES.TIPHERETH, "yellow", {
1234
+ colorDescription: "Yellow",
1235
+ colorNames: ["yellow"],
1236
+ colorHexCodes: ["#FFF50F"]
1237
+ });
1238
+ tree.addSphereColor(SPHERES.NETZACH, "green", {
1239
+ colorDescription: "Green",
1240
+ colorNames: ["green"],
1241
+ colorHexCodes: ["#14FF00"]
1242
+ });
1243
+ tree.addSphereColor(SPHERES.HOD, "orange", {
1244
+ colorDescription: "Orange",
1245
+ colorNames: ["orange"],
1246
+ colorHexCodes: ["#FFA800"]
1247
+ });
1248
+ tree.addSphereColor(SPHERES.YESOD, "purple", {
1249
+ colorDescription: "Purple",
1250
+ colorNames: ["purple"],
1251
+ colorHexCodes: ["#8F00FF"]
1252
+ });
1253
+ tree.addSphereColor(SPHERES.MALKUTH, "malkuth", {
1254
+ colorDescription: "Made up of the colors of earth, which is created from the 4 elements. Brown can be used to represent it, but, usually it is represented in a pizza-like pattern, starting with Yellow on top, and going clockwise with Green, Brown and Red, all with slightly less saturation.",
1255
+ colorNames: ["unsaturated yellow", "unsaturated green", "unsaturated brown", "unsaturated red"],
1256
+ colorHexCodes: ["#FFF659", "#70FF6E", "#422E29", "#FF5454"]
1257
+ });
1258
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
1259
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
1260
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
1261
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
1262
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
1263
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
1264
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
1265
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
1266
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
1267
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
1268
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
1269
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
1270
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
1271
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
1272
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
1273
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
1274
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
1275
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
1276
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
1277
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
1278
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
1279
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
1280
+ tree.addPathColor(path11, "gold", {
1281
+ colorDescription: "Gold",
1282
+ colorNames: ["gold"],
1283
+ colorHexCodes: ["#FFD700"]
1284
+ });
1285
+ tree.addPathColor(path12, "yellow", {
1286
+ colorDescription: "Yellow",
1287
+ colorNames: ["yellow"],
1288
+ colorHexCodes: ["#FFF50F"]
1289
+ });
1290
+ tree.addPathColor(path13, "grey", {
1291
+ colorDescription: "Grey",
1292
+ colorNames: ["grey"],
1293
+ colorHexCodes: ["#808080"]
1294
+ });
1295
+ tree.addPathColor(path14, "greenish-blue", {
1296
+ colorDescription: "Greenish blue",
1297
+ colorNames: ["greenish blue"],
1298
+ colorHexCodes: ["#5F9EA0"]
1299
+ });
1300
+ tree.addPathColor(path15, "red", {
1301
+ colorDescription: "Red",
1302
+ colorNames: ["red"],
1303
+ colorHexCodes: ["#FF0000"]
1304
+ });
1305
+ tree.addPathColor(path16, "Orange-red", {
1306
+ colorDescription: "Orange-red",
1307
+ colorNames: ["Orange-red"],
1308
+ colorHexCodes: ["#FF4500"]
1309
+ });
1310
+ tree.addPathColor(path17, "orange", {
1311
+ colorDescription: "Orange",
1312
+ colorNames: ["orange"],
1313
+ colorHexCodes: ["#FFA800"]
1314
+ });
1315
+ tree.addPathColor(path18, "amber", {
1316
+ colorDescription: "Amber",
1317
+ colorNames: ["amber"],
1318
+ colorHexCodes: ["#FF7F00"]
1319
+ });
1320
+ tree.addPathColor(path19, "greenish-yellow", {
1321
+ colorDescription: "Greenish yellow",
1322
+ colorNames: ["greenish yellow"],
1323
+ colorHexCodes: ["#D4FB19"]
1324
+ });
1325
+ tree.addPathColor(path20, "white", {
1326
+ colorDescription: "White",
1327
+ colorNames: ["white"],
1328
+ colorHexCodes: ["#FFFFFF"]
1329
+ });
1330
+ tree.addPathColor(path21, "blue", {
1331
+ colorDescription: "Blue",
1332
+ colorNames: ["blue"],
1333
+ colorHexCodes: ["#0000FF"]
1334
+ });
1335
+ tree.addPathColor(path22, "emerald-green", {
1336
+ colorDescription: "Emerald green",
1337
+ colorNames: ["emerald green"],
1338
+ colorHexCodes: ["#50C878"]
1339
+ });
1340
+ tree.addPathColor(path23, "light-blue", {
1341
+ colorDescription: "Light blue",
1342
+ colorNames: ["light blue"],
1343
+ colorHexCodes: ["#ADD8E6"]
1344
+ });
1345
+ tree.addPathColor(path24, "blueish-green", {
1346
+ colorDescription: "Greenish blue",
1347
+ colorNames: ["greenish blue"],
1348
+ colorHexCodes: ["#00ECA3"]
1349
+ });
1350
+ tree.addPathColor(path25, "blue", {
1351
+ colorDescription: "Blue",
1352
+ colorNames: ["blue"],
1353
+ colorHexCodes: ["#0000FF"]
1354
+ });
1355
+ tree.addPathColor(path26, "indigo", {
1356
+ colorDescription: "Indigo",
1357
+ colorNames: ["indigo"],
1358
+ colorHexCodes: ["#4B0082"]
1359
+ });
1360
+ tree.addPathColor(path27, "red", {
1361
+ colorDescription: "Red",
1362
+ colorNames: ["red"],
1363
+ colorHexCodes: ["#FF0000"]
1364
+ });
1365
+ tree.addPathColor(path28, "violet", {
1366
+ colorDescription: "Violet",
1367
+ colorNames: ["violet"],
1368
+ colorHexCodes: ["#8A2BE2"]
1369
+ });
1370
+ tree.addPathColor(path29, "crimson", {
1371
+ colorDescription: "Crimson",
1372
+ colorNames: ["crimson"],
1373
+ colorHexCodes: ["#DC143C"]
1374
+ });
1375
+ tree.addPathColor(path30, "orange", {
1376
+ colorDescription: "Orange",
1377
+ colorNames: ["orange"],
1378
+ colorHexCodes: ["#FFA800"]
1379
+ });
1380
+ tree.addPathColor(path31, "red", {
1381
+ colorDescription: "Red",
1382
+ colorNames: ["red"],
1383
+ colorHexCodes: ["#FF0000"]
1384
+ });
1385
+ tree.addPathColor(path32, "dark-grey", {
1386
+ colorDescription: "Dark grey",
1387
+ colorNames: ["dark grey"],
1388
+ colorHexCodes: ["#A9A9A9"]
1389
+ });
1390
+ return tree;
1391
+ };
1392
+ var unloadColors2 = (tree) => {
1393
+ const colors = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "color").map((color) => color.id));
1394
+ for (let i = 0; i < colors.length; i++) {
1395
+ tree.removeNode(colors[i]);
1396
+ }
1397
+ const letters = Object.values(HEBREW_LETTERS).flatMap((letter) => tree.related(letter, "color").map((color) => color.id));
1398
+ for (let i = 0; i < letters.length; i++) {
1399
+ tree.removeNode(letters[i]);
1400
+ }
1401
+ };
1402
+ var loadMusicalNotes2 = (tree) => {
1403
+ tree.addMusicalNote(SPHERES.KETHER, "Do", {
1404
+ note: "Do",
1405
+ noteDescription: "C (Do)"
1406
+ });
1407
+ tree.addMusicalNote(SPHERES.CHOKMAH, "Re", {
1408
+ note: "Re",
1409
+ noteDescription: "D (Re)"
1410
+ });
1411
+ tree.addMusicalNote(SPHERES.BINAH, "Mi", {
1412
+ note: "Mi",
1413
+ noteDescription: "E (Mi)"
1414
+ });
1415
+ tree.addMusicalNote(SPHERES.DAATH, "1st interval", {
1416
+ note: "Interval",
1417
+ noteDescription: "An interval"
1418
+ });
1419
+ tree.addMusicalNote(SPHERES.CHESED, "Fa", {
1420
+ note: "Fa",
1421
+ noteDescription: "F (Fa)"
1422
+ });
1423
+ tree.addMusicalNote(SPHERES.GEBURAH, "Sol", {
1424
+ note: "Sol",
1425
+ noteDescription: "G (Sol)"
1426
+ });
1427
+ tree.addMusicalNote(SPHERES.TIPHERETH, "The Thing-in-itself", {
1428
+ note: "The Thing-in-itself",
1429
+ noteDescription: "The central point of equilibrium; another interval"
1430
+ });
1431
+ tree.addMusicalNote(SPHERES.NETZACH, "La", {
1432
+ note: "La",
1433
+ noteDescription: "A (La)"
1434
+ });
1435
+ tree.addMusicalNote(SPHERES.HOD, "Si", {
1436
+ note: "Si",
1437
+ noteDescription: "B (Si)"
1438
+ });
1439
+ tree.addMusicalNote(SPHERES.YESOD, "2nd interval", {
1440
+ note: "Interval",
1441
+ noteDescription: "An interval"
1442
+ });
1443
+ tree.addMusicalNote(SPHERES.MALKUTH, "Do", {
1444
+ note: "Do",
1445
+ noteDescription: "C (Do)"
1446
+ });
1447
+ return tree;
1448
+ };
1449
+ var unloadMusicalNotes2 = (tree) => {
1450
+ const notes = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "musicalNote").map((note) => note.id));
1451
+ for (let i = 0; i < notes.length; i++) {
1452
+ tree.removeNode(notes[i]);
1453
+ }
1454
+ };
1455
+ var linkColorsAndSigns2 = (t) => {
1456
+ return t;
1457
+ };
1458
+ var loadWesternAstrology2 = (tree) => {
1459
+ tree.addWesternAstrologyPlanet(SPHERES.KETHER, PLANETS.NEPTUNE);
1460
+ tree.addWesternAstrologyPlanet(SPHERES.CHOKMAH, PLANETS.URANUS);
1461
+ tree.addWesternAstrologyPlanet(SPHERES.BINAH, PLANETS.SATURN);
1462
+ tree.addWesternAstrologyPlanet(SPHERES.DAATH, PLANETS.PLUTO);
1463
+ tree.addWesternAstrologyPlanet(SPHERES.CHESED, PLANETS.JUPITER);
1464
+ tree.addWesternAstrologyPlanet(SPHERES.GEBURAH, PLANETS.MARS);
1465
+ tree.addWesternAstrologyPlanet(SPHERES.TIPHERETH, PLANETS.SUN);
1466
+ tree.addWesternAstrologyPlanet(SPHERES.NETZACH, PLANETS.VENUS);
1467
+ tree.addWesternAstrologyPlanet(SPHERES.HOD, PLANETS.MERCURY);
1468
+ tree.addWesternAstrologyPlanet(SPHERES.YESOD, PLANETS.MOON);
1469
+ tree.addWesternAstrologyPlanet(SPHERES.MALKUTH, PLANETS.EARTH);
1470
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
1471
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
1472
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
1473
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
1474
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
1475
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
1476
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
1477
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
1478
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
1479
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
1480
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
1481
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
1482
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
1483
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
1484
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
1485
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
1486
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
1487
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
1488
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
1489
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
1490
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
1491
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
1492
+ tree.addWesternElement(path11, WESTERN_ELEMENTS.AIR);
1493
+ tree.addWesternAstrologyPlanet(path12, PLANETS.MOON);
1494
+ tree.addWesternAstrologyPlanet(path13, PLANETS.VENUS);
1495
+ tree.addWesternAstrologyPlanet(path14, PLANETS.JUPITER);
1496
+ tree.addWesternAstrologySign(path15, WESTERN_ZODIAC_SIGNS.ARIES, WESTERN_ZODIAC_SIGNS_DATA.ARIES, 1);
1497
+ tree.addWesternAstrologySign(path16, WESTERN_ZODIAC_SIGNS.TAURUS, WESTERN_ZODIAC_SIGNS_DATA.TAURUS, 2);
1498
+ tree.addWesternAstrologySign(path17, WESTERN_ZODIAC_SIGNS.GEMINI, WESTERN_ZODIAC_SIGNS_DATA.GEMINI, 3);
1499
+ tree.addWesternAstrologySign(path18, WESTERN_ZODIAC_SIGNS.CANCER, WESTERN_ZODIAC_SIGNS_DATA.CANCER, 4);
1500
+ tree.addWesternAstrologySign(path19, WESTERN_ZODIAC_SIGNS.LEO, WESTERN_ZODIAC_SIGNS_DATA.LEO, 5);
1501
+ tree.addWesternAstrologySign(path20, WESTERN_ZODIAC_SIGNS.VIRGO, WESTERN_ZODIAC_SIGNS_DATA.VIRGO, 6);
1502
+ tree.addWesternAstrologyPlanet(path21, PLANETS.MARS);
1503
+ tree.addWesternAstrologySign(path22, WESTERN_ZODIAC_SIGNS.LIBRA, WESTERN_ZODIAC_SIGNS_DATA.LIBRA, 7);
1504
+ tree.addWesternElement(path23, WESTERN_ELEMENTS.WATER);
1505
+ tree.addWesternAstrologySign(path24, WESTERN_ZODIAC_SIGNS.SCORPIO, WESTERN_ZODIAC_SIGNS_DATA.SCORPIO, 8);
1506
+ tree.addWesternAstrologySign(path25, WESTERN_ZODIAC_SIGNS.SAGITTARIUS, WESTERN_ZODIAC_SIGNS_DATA.SAGITTARIUS, 9);
1507
+ tree.addWesternAstrologySign(path26, WESTERN_ZODIAC_SIGNS.CAPRICORN, WESTERN_ZODIAC_SIGNS_DATA.CAPRICORN, 10);
1508
+ tree.addWesternAstrologyPlanet(path27, PLANETS.MERCURY);
1509
+ tree.addWesternAstrologySign(path28, WESTERN_ZODIAC_SIGNS.AQUARIUS, WESTERN_ZODIAC_SIGNS_DATA.AQUARIUS, 11);
1510
+ tree.addWesternAstrologySign(path29, WESTERN_ZODIAC_SIGNS.PISCES, WESTERN_ZODIAC_SIGNS_DATA.PISCES, 12);
1511
+ tree.addWesternAstrologyPlanet(path30, PLANETS.SATURN);
1512
+ tree.addWesternElement(path31, WESTERN_ELEMENTS.FIRE);
1513
+ tree.addWesternAstrologyPlanet(path32, PLANETS.SUN);
1514
+ return tree;
1515
+ };
1516
+ var unloadWesternAstrology2 = (tree) => {
1517
+ const planets = Object.values(SPHERES).flatMap((planet) => tree.related(planet, "planet").map((planet2) => planet2.id));
1518
+ for (let i = 0; i < planets.length; i++) {
1519
+ tree.removeNode(planets[i]);
1520
+ }
1521
+ const elements = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "westernElement").map((element) => element.id));
1522
+ for (let i = 0; i < elements.length; i++) {
1523
+ tree.removeNode(elements[i]);
1524
+ }
1525
+ const zodiacSigns = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "westernZodiacSign").map((sign) => sign.id));
1526
+ for (let i = 0; i < zodiacSigns.length; i++) {
1527
+ tree.removeNode(zodiacSigns[i]);
1528
+ }
1529
+ };
1530
+ var loadTarot = (tree) => {
1531
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
1532
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
1533
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
1534
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
1535
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
1536
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
1537
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
1538
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
1539
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
1540
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
1541
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
1542
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
1543
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
1544
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
1545
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
1546
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
1547
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
1548
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
1549
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
1550
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
1551
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
1552
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
1553
+ tree.addTarotArkAnnu(path11, TAROT_ARKANNUS.THE_MAGICIAN, TAROT_ARKANNUS_DATA.THE_MAGICIAN, 1);
1554
+ tree.addTarotArkAnnu(path12, TAROT_ARKANNUS.THE_HIGH_PRIESTESS, TAROT_ARKANNUS_DATA.THE_HIGH_PRIESTESS, 2);
1555
+ tree.addTarotArkAnnu(path13, TAROT_ARKANNUS.THE_EMPRESS, TAROT_ARKANNUS_DATA.THE_EMPRESS, 3);
1556
+ tree.addTarotArkAnnu(path14, TAROT_ARKANNUS.THE_EMPEROR, TAROT_ARKANNUS_DATA.THE_EMPEROR, 4);
1557
+ tree.addTarotArkAnnu(path15, TAROT_ARKANNUS.THE_HIEROPHANT, TAROT_ARKANNUS_DATA.THE_HIEROPHANT, 5);
1558
+ tree.addTarotArkAnnu(path16, TAROT_ARKANNUS.THE_LOVER, TAROT_ARKANNUS_DATA.THE_LOVER, 6);
1559
+ tree.addTarotArkAnnu(path17, TAROT_ARKANNUS.THE_CHARIOT, TAROT_ARKANNUS_DATA.THE_CHARIOT, 7);
1560
+ tree.addTarotArkAnnu(path18, TAROT_ARKANNUS.JUSTICE, TAROT_ARKANNUS_DATA.JUSTICE, 8);
1561
+ tree.addTarotArkAnnu(path19, TAROT_ARKANNUS.THE_HERMIT, TAROT_ARKANNUS_DATA.THE_HERMIT, 9);
1562
+ tree.addTarotArkAnnu(path20, TAROT_ARKANNUS.THE_WHEEL_OF_FORTUNE, TAROT_ARKANNUS_DATA.THE_WHEEL_OF_FORTUNE, 10);
1563
+ tree.addTarotArkAnnu(path21, TAROT_ARKANNUS.STRENGTH, TAROT_ARKANNUS_DATA.STRENGTH, 11);
1564
+ tree.addTarotArkAnnu(path22, TAROT_ARKANNUS.THE_HANGED_MAN, TAROT_ARKANNUS_DATA.THE_HANGED_MAN, 12);
1565
+ tree.addTarotArkAnnu(path23, TAROT_ARKANNUS.DEATH, TAROT_ARKANNUS_DATA.DEATH, 13);
1566
+ tree.addTarotArkAnnu(path24, TAROT_ARKANNUS.TEMPERANCE, TAROT_ARKANNUS_DATA.TEMPERANCE, 14);
1567
+ tree.addTarotArkAnnu(path25, TAROT_ARKANNUS.THE_DEVIL, TAROT_ARKANNUS_DATA.THE_DEVIL, 15);
1568
+ tree.addTarotArkAnnu(path26, TAROT_ARKANNUS.THE_TOWER, TAROT_ARKANNUS_DATA.THE_TOWER, 16);
1569
+ tree.addTarotArkAnnu(path27, TAROT_ARKANNUS.THE_STAR, TAROT_ARKANNUS_DATA.THE_STAR, 17);
1570
+ tree.addTarotArkAnnu(path28, TAROT_ARKANNUS.THE_MOON, TAROT_ARKANNUS_DATA.THE_MOON, 18);
1571
+ tree.addTarotArkAnnu(path29, TAROT_ARKANNUS.THE_SUN, TAROT_ARKANNUS_DATA.THE_SUN, 19);
1572
+ tree.addTarotArkAnnu(path30, TAROT_ARKANNUS.JUDGMENT, TAROT_ARKANNUS_DATA.JUDGMENT, 20);
1573
+ tree.addTarotArkAnnu(path31, TAROT_ARKANNUS.THE_FOOL, TAROT_ARKANNUS_DATA.THE_FOOL, 21);
1574
+ tree.addTarotArkAnnu(path32, TAROT_ARKANNUS.THE_WORLD, TAROT_ARKANNUS_DATA.THE_WORLD, 22);
1575
+ tree.addTarotSuit(TAROT_SUITS.WANDS, WESTERN_ELEMENTS.FIRE);
1576
+ tree.addTarotSuit(TAROT_SUITS.CUPS, WESTERN_ELEMENTS.WATER);
1577
+ tree.addTarotSuit(TAROT_SUITS.SWORDS, WESTERN_ELEMENTS.AIR);
1578
+ tree.addTarotSuit(TAROT_SUITS.PENTACLES, WESTERN_ELEMENTS.EARTH);
1579
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_WANDS, TAROT_ARKANNUS_DATA.KING_OF_WANDS, 23, TAROT_SUITS.WANDS);
1580
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_WANDS, TAROT_ARKANNUS_DATA.QUEEN_OF_WANDS, 24, TAROT_SUITS.WANDS);
1581
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_WANDS, TAROT_ARKANNUS_DATA.KNIGHT_OF_WANDS, 25, TAROT_SUITS.WANDS);
1582
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_WANDS, TAROT_ARKANNUS_DATA.PAGE_OF_WANDS, 26, TAROT_SUITS.WANDS);
1583
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_WANDS, TAROT_ARKANNUS_DATA.ACE_OF_WANDS, 27, TAROT_SUITS.WANDS);
1584
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_WANDS, TAROT_ARKANNUS_DATA.TWO_OF_WANDS, 28, TAROT_SUITS.WANDS);
1585
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_WANDS, TAROT_ARKANNUS_DATA.THREE_OF_WANDS, 29, TAROT_SUITS.WANDS);
1586
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_WANDS, TAROT_ARKANNUS_DATA.FOUR_OF_WANDS, 30, TAROT_SUITS.WANDS);
1587
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_WANDS, TAROT_ARKANNUS_DATA.FIVE_OF_WANDS, 31, TAROT_SUITS.WANDS);
1588
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_WANDS, TAROT_ARKANNUS_DATA.SIX_OF_WANDS, 32, TAROT_SUITS.WANDS);
1589
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_WANDS, TAROT_ARKANNUS_DATA.SEVEN_OF_WANDS, 33, TAROT_SUITS.WANDS);
1590
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_WANDS, TAROT_ARKANNUS_DATA.EIGHT_OF_WANDS, 34, TAROT_SUITS.WANDS);
1591
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_WANDS, TAROT_ARKANNUS_DATA.NINE_OF_WANDS, 35, TAROT_SUITS.WANDS);
1592
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_WANDS, TAROT_ARKANNUS_DATA.TEN_OF_WANDS, 36, TAROT_SUITS.WANDS);
1593
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_CUPS, TAROT_ARKANNUS_DATA.KING_OF_CUPS, 37, TAROT_SUITS.CUPS);
1594
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_CUPS, TAROT_ARKANNUS_DATA.QUEEN_OF_CUPS, 38, TAROT_SUITS.CUPS);
1595
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_CUPS, TAROT_ARKANNUS_DATA.KNIGHT_OF_CUPS, 39, TAROT_SUITS.CUPS);
1596
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_CUPS, TAROT_ARKANNUS_DATA.PAGE_OF_CUPS, 40, TAROT_SUITS.CUPS);
1597
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_CUPS, TAROT_ARKANNUS_DATA.ACE_OF_CUPS, 41, TAROT_SUITS.CUPS);
1598
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_CUPS, TAROT_ARKANNUS_DATA.TWO_OF_CUPS, 42, TAROT_SUITS.CUPS);
1599
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_CUPS, TAROT_ARKANNUS_DATA.THREE_OF_CUPS, 43, TAROT_SUITS.CUPS);
1600
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_CUPS, TAROT_ARKANNUS_DATA.FOUR_OF_CUPS, 44, TAROT_SUITS.CUPS);
1601
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_CUPS, TAROT_ARKANNUS_DATA.FIVE_OF_CUPS, 45, TAROT_SUITS.CUPS);
1602
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_CUPS, TAROT_ARKANNUS_DATA.SIX_OF_CUPS, 46, TAROT_SUITS.CUPS);
1603
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_CUPS, TAROT_ARKANNUS_DATA.SEVEN_OF_CUPS, 47, TAROT_SUITS.CUPS);
1604
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_CUPS, TAROT_ARKANNUS_DATA.EIGHT_OF_CUPS, 48, TAROT_SUITS.CUPS);
1605
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_CUPS, TAROT_ARKANNUS_DATA.NINE_OF_CUPS, 49, TAROT_SUITS.CUPS);
1606
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_CUPS, TAROT_ARKANNUS_DATA.TEN_OF_CUPS, 50, TAROT_SUITS.CUPS);
1607
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_SWORDS, TAROT_ARKANNUS_DATA.KING_OF_SWORDS, 51, TAROT_SUITS.SWORDS);
1608
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_SWORDS, TAROT_ARKANNUS_DATA.QUEEN_OF_SWORDS, 52, TAROT_SUITS.SWORDS);
1609
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_SWORDS, TAROT_ARKANNUS_DATA.KNIGHT_OF_SWORDS, 53, TAROT_SUITS.SWORDS);
1610
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_SWORDS, TAROT_ARKANNUS_DATA.PAGE_OF_SWORDS, 54, TAROT_SUITS.SWORDS);
1611
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_SWORDS, TAROT_ARKANNUS_DATA.ACE_OF_SWORDS, 55, TAROT_SUITS.SWORDS);
1612
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_SWORDS, TAROT_ARKANNUS_DATA.TWO_OF_SWORDS, 56, TAROT_SUITS.SWORDS);
1613
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_SWORDS, TAROT_ARKANNUS_DATA.THREE_OF_SWORDS, 57, TAROT_SUITS.SWORDS);
1614
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_SWORDS, TAROT_ARKANNUS_DATA.FOUR_OF_SWORDS, 58, TAROT_SUITS.SWORDS);
1615
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_SWORDS, TAROT_ARKANNUS_DATA.FIVE_OF_SWORDS, 59, TAROT_SUITS.SWORDS);
1616
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_SWORDS, TAROT_ARKANNUS_DATA.SIX_OF_SWORDS, 60, TAROT_SUITS.SWORDS);
1617
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_SWORDS, TAROT_ARKANNUS_DATA.SEVEN_OF_SWORDS, 61, TAROT_SUITS.SWORDS);
1618
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_SWORDS, TAROT_ARKANNUS_DATA.EIGHT_OF_SWORDS, 62, TAROT_SUITS.SWORDS);
1619
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_SWORDS, TAROT_ARKANNUS_DATA.NINE_OF_SWORDS, 63, TAROT_SUITS.SWORDS);
1620
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_SWORDS, TAROT_ARKANNUS_DATA.TEN_OF_SWORDS, 64, TAROT_SUITS.SWORDS);
1621
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_PENTACLES, TAROT_ARKANNUS_DATA.KING_OF_PENTACLES, 65, TAROT_SUITS.PENTACLES);
1622
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.QUEEN_OF_PENTACLES, 66, TAROT_SUITS.PENTACLES);
1623
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_PENTACLES, TAROT_ARKANNUS_DATA.KNIGHT_OF_PENTACLES, 67, TAROT_SUITS.PENTACLES);
1624
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_PENTACLES, TAROT_ARKANNUS_DATA.PAGE_OF_PENTACLES, 68, TAROT_SUITS.PENTACLES);
1625
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_PENTACLES, TAROT_ARKANNUS_DATA.ACE_OF_PENTACLES, 69, TAROT_SUITS.PENTACLES);
1626
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_PENTACLES, TAROT_ARKANNUS_DATA.TWO_OF_PENTACLES, 70, TAROT_SUITS.PENTACLES);
1627
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_PENTACLES, TAROT_ARKANNUS_DATA.THREE_OF_PENTACLES, 71, TAROT_SUITS.PENTACLES);
1628
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_PENTACLES, TAROT_ARKANNUS_DATA.FOUR_OF_PENTACLES, 72, TAROT_SUITS.PENTACLES);
1629
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_PENTACLES, TAROT_ARKANNUS_DATA.FIVE_OF_PENTACLES, 73, TAROT_SUITS.PENTACLES);
1630
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_PENTACLES, TAROT_ARKANNUS_DATA.SIX_OF_PENTACLES, 74, TAROT_SUITS.PENTACLES);
1631
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.SEVEN_OF_PENTACLES, 75, TAROT_SUITS.PENTACLES);
1632
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_PENTACLES, TAROT_ARKANNUS_DATA.EIGHT_OF_PENTACLES, 76, TAROT_SUITS.PENTACLES);
1633
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_PENTACLES, TAROT_ARKANNUS_DATA.NINE_OF_PENTACLES, 77, TAROT_SUITS.PENTACLES);
1634
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.TEN_OF_PENTACLES, 78, TAROT_SUITS.PENTACLES);
1635
+ return tree;
1636
+ };
1637
+ var unloadTarot = (tree) => {
1638
+ const suits = Object.values(WESTERN_ELEMENTS).flatMap((element) => tree.related(`westernElement:${element}`, "tarotSuit").map((suit) => suit.id));
1639
+ for (let i = 0; i < suits.length; i++) {
1640
+ tree.removeNode(suits[i]);
1641
+ }
1642
+ const majorArkAnnus = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "tarotArkAnnu").map((arkannus) => arkannus.id));
1643
+ for (let i = 0; i < majorArkAnnus.length; i++) {
1644
+ tree.removeNode(majorArkAnnus[i]);
1645
+ }
1646
+ const minorArkAnnus = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "tarotArkAnnu").map((arkannus) => arkannus.id));
1647
+ for (let i = 0; i < minorArkAnnus.length; i++) {
1648
+ tree.removeNode(minorArkAnnus[i]);
1649
+ }
1650
+ return tree;
1651
+ };
1652
+ var LOADERS2 = {
1653
+ base: loadKaabalah,
1654
+ colors: loadColors2,
1655
+ music: loadMusicalNotes2,
1656
+ westernAstrology: loadWesternAstrology2,
1657
+ tarot: loadTarot
1658
+ };
1659
+ var UNLOADERS2 = {
1660
+ base: unloadKaabalah,
1661
+ colors: unloadColors2,
1662
+ music: unloadMusicalNotes2,
1663
+ westernAstrology: unloadWesternAstrology2,
1664
+ tarot: unloadTarot
1665
+ };
1666
+ var BRIDGES2 = [
1667
+ {
1668
+ id: "kaabalah-color-music",
1669
+ needs: ["colors", "music"],
1670
+ run: (t) => linkColorsAndSigns2(t)
1671
+ }
1672
+ ];
1673
+
1674
+ // src/core/systems/lurianic-kabbalah.ts
1675
+ var lurianic_kabbalah_exports = {};
1676
+ __export(lurianic_kabbalah_exports, {
1677
+ BRIDGES: () => BRIDGES3,
1678
+ LOADERS: () => LOADERS3,
1679
+ SYSTEM: () => SYSTEM3,
1680
+ UNLOADERS: () => UNLOADERS3,
1681
+ loadLurianicKabbalah: () => loadLurianicKabbalah,
1682
+ unloadLurianicKabbalah: () => unloadLurianicKabbalah
1683
+ });
1684
+ var SYSTEM3 = "lurianic-kabbalah";
1685
+ function loadLurianicKabbalah(tree) {
1686
+ const kether = tree.addSphere(SPHERES.KETHER, SPHERE_DATA.KETHER, 1);
1687
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, SPHERE_DATA.CHOKMAH, 2);
1688
+ const binah = tree.addSphere(SPHERES.BINAH, SPHERE_DATA.BINAH, 3);
1689
+ const chesed = tree.addSphere(SPHERES.CHESED, SPHERE_DATA.CHESED, 4);
1690
+ const geburah = tree.addSphere(SPHERES.GEBURAH, SPHERE_DATA.GEBURAH, 5);
1691
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, SPHERE_DATA.TIPHERETH, 6);
1692
+ const netzach = tree.addSphere(SPHERES.NETZACH, SPHERE_DATA.NETZACH, 7);
1693
+ const hod = tree.addSphere(SPHERES.HOD, SPHERE_DATA.HOD, 8);
1694
+ const yesod = tree.addSphere(SPHERES.YESOD, SPHERE_DATA.YESOD, 9);
1695
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, SPHERE_DATA.MALKUTH, 10);
1696
+ const worlds = Object.entries(FOUR_WORLDS);
1697
+ const worldData = {
1698
+ ATZILUTH: {
1699
+ element: "fire",
1700
+ hebrewName: "Atzilith",
1701
+ englishName: "World of Emanation"
1702
+ },
1703
+ BRIAH: {
1704
+ element: "water",
1705
+ hebrewName: "Briah",
1706
+ englishName: "World of Creation"
1707
+ },
1708
+ YETZIRAH: {
1709
+ element: "air",
1710
+ hebrewName: "Yetzirah",
1711
+ englishName: "World of Formation"
1712
+ },
1713
+ ASSIAH: {
1714
+ element: "earth",
1715
+ hebrewName: "Assiah",
1716
+ englishName: "World of Action"
1717
+ }
1718
+ };
1719
+ for (const [key] of worlds) {
1720
+ tree.addWorld(
1721
+ FOUR_WORLDS[key],
1722
+ worldData[key]
1723
+ );
1724
+ }
1725
+ const path11 = tree.addPath(kether, chokmah, LURIANIC_PATHS.KETHER_CHOKMAH);
1726
+ const path12 = tree.addPath(kether, binah, LURIANIC_PATHS.KETHER_BINAH);
1727
+ const path13 = tree.addPath(kether, tiphereth, LURIANIC_PATHS.KETHER_TIPHERETH);
1728
+ const path14 = tree.addPath(chokmah, binah, LURIANIC_PATHS.CHOKMAH_BINAH);
1729
+ const path15 = tree.addPath(chokmah, geburah, LURIANIC_PATHS.CHOKMAH_GEBURAH);
1730
+ const path16 = tree.addPath(chokmah, tiphereth, LURIANIC_PATHS.CHOKMAH_TIPHERETH);
1731
+ const path17 = tree.addPath(chokmah, chesed, LURIANIC_PATHS.CHOKMAH_CHESED);
1732
+ const path18 = tree.addPath(binah, chesed, LURIANIC_PATHS.BINAH_CHESED);
1733
+ const path19 = tree.addPath(binah, tiphereth, LURIANIC_PATHS.BINAH_TIPHERETH);
1734
+ const path20 = tree.addPath(binah, geburah, LURIANIC_PATHS.BINAH_GEBURAH);
1735
+ const path21 = tree.addPath(chesed, geburah, LURIANIC_PATHS.CHESED_GEBURAH);
1736
+ const path22 = tree.addPath(chesed, tiphereth, LURIANIC_PATHS.CHESED_TIPHERETH);
1737
+ const path23 = tree.addPath(chesed, netzach, LURIANIC_PATHS.CHESED_NETZACH);
1738
+ const path24 = tree.addPath(geburah, tiphereth, LURIANIC_PATHS.GEBURAH_TIPHERETH);
1739
+ const path25 = tree.addPath(geburah, hod, LURIANIC_PATHS.GEBURAH_HOD);
1740
+ const path26 = tree.addPath(tiphereth, netzach, LURIANIC_PATHS.TIPHERETH_NETZACH);
1741
+ const path27 = tree.addPath(tiphereth, yesod, LURIANIC_PATHS.TIPHERETH_YESOD);
1742
+ const path28 = tree.addPath(tiphereth, hod, LURIANIC_PATHS.TIPHERETH_HOD);
1743
+ const path29 = tree.addPath(netzach, hod, LURIANIC_PATHS.NETZACH_HOD);
1744
+ const path30 = tree.addPath(netzach, yesod, LURIANIC_PATHS.NETZACH_YESOD);
1745
+ const path31 = tree.addPath(hod, yesod, LURIANIC_PATHS.HOD_YESOD);
1746
+ const path32 = tree.addPath(yesod, malkuth, LURIANIC_PATHS.YESOD_MALKUTH);
1747
+ tree.addLetters(path11, [
1748
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
1749
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
1750
+ ]);
1751
+ tree.addLetters(path12, [
1752
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
1753
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
1754
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
1755
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
1756
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
1757
+ ]);
1758
+ tree.addLetters(path13, [
1759
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
1760
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
1761
+ ]);
1762
+ tree.addLetters(path14, [
1763
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
1764
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
1765
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
1766
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
1767
+ ]);
1768
+ tree.addLetters(path15, [
1769
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
1770
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
1771
+ ]);
1772
+ tree.addLetters(path16, [
1773
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
1774
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
1775
+ ]);
1776
+ tree.addLetters(path17, [
1777
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
1778
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
1779
+ ]);
1780
+ tree.addLetters(path18, [
1781
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
1782
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
1783
+ ]);
1784
+ tree.addLetters(path19, [
1785
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
1786
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
1787
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
1788
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
1789
+ ]);
1790
+ tree.addLetters(path20, [
1791
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
1792
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
1793
+ ]);
1794
+ tree.addLetters(path21, [
1795
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
1796
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
1797
+ ]);
1798
+ tree.addLetters(path22, [
1799
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
1800
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
1801
+ ]);
1802
+ tree.addLetters(path23, [
1803
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
1804
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
1805
+ ]);
1806
+ tree.addLetters(path24, [
1807
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
1808
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
1809
+ ]);
1810
+ tree.addLetters(path25, [
1811
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
1812
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
1813
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
1814
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
1815
+ ]);
1816
+ tree.addLetters(path26, [
1817
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
1818
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
1819
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
1820
+ ]);
1821
+ tree.addLetters(path27, [
1822
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
1823
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
1824
+ ]);
1825
+ tree.addLetters(path28, [
1826
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
1827
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
1828
+ ]);
1829
+ tree.addLetters(path29, [
1830
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
1831
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
1832
+ ]);
1833
+ tree.addLetters(path30, [
1834
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
1835
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
1836
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
1837
+ ]);
1838
+ tree.addLetters(path31, [
1839
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
1840
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
1841
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
1842
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
1843
+ ]);
1844
+ tree.addLetters(path32, [
1845
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
1846
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
1847
+ ]);
1848
+ return tree;
1849
+ }
1850
+ function unloadLurianicKabbalah(tree) {
1851
+ const spheres = Object.values(SPHERES);
1852
+ for (let i = 0; i < spheres.length; i++) {
1853
+ tree.removeNode(spheres[i]);
1854
+ }
1855
+ const paths = Object.values(LURIANIC_PATHS);
1856
+ for (let i = 0; i < paths.length; i++) {
1857
+ tree.removeNode(`path:${paths[i]}`);
1858
+ }
1859
+ }
1860
+ var LOADERS3 = {
1861
+ base: loadLurianicKabbalah
1862
+ };
1863
+ var UNLOADERS3 = {
1864
+ base: unloadLurianicKabbalah
1865
+ };
1866
+ var BRIDGES3 = [];
1867
+
1868
+ // src/core/systems/registry.ts
1869
+ var SYSTEMS = [kaabalah_exports, hermetic_qabalah_exports, lurianic_kabbalah_exports];
1870
+
1871
+ // src/core/systems/module-manager.ts
1872
+ var ModuleManager = class {
1873
+ constructor(t) {
1874
+ this.t = t;
1875
+ this.activeSystem = null;
1876
+ this.loadedParts = /* @__PURE__ */ new Set();
1877
+ this.bridgedParts = /* @__PURE__ */ new Set();
1878
+ }
1879
+ /**
1880
+ * Loads the base of a system (switching if necessary)
1881
+ * @param systemKey - the key of the system to load
1882
+ */
1883
+ loadSystem(systemKey) {
1884
+ if (this.activeSystem === systemKey) {
1885
+ return;
1886
+ }
1887
+ if (this.activeSystem) {
1888
+ this.unloadSystem();
1889
+ }
1890
+ const loadedSystem = SYSTEMS.find((s) => s.SYSTEM === systemKey);
1891
+ if (!loadedSystem) {
1892
+ throw new Error(`System ${systemKey} not found`);
1893
+ }
1894
+ loadedSystem.LOADERS.base(this.t);
1895
+ this.activeSystem = systemKey;
1896
+ this.loadedParts.clear();
1897
+ this.loadedParts.add("base");
1898
+ }
1899
+ /**
1900
+ * Loads an optional part (colors, music, etc)
1901
+ * @param partKey - the key of the part to load
1902
+ */
1903
+ loadPart(partKey) {
1904
+ if (!this.activeSystem) {
1905
+ throw new Error("load a system first");
1906
+ }
1907
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
1908
+ if (!system) {
1909
+ throw new Error(`System ${this.activeSystem} not found`);
1910
+ }
1911
+ if (this.loadedParts.has(partKey)) {
1912
+ return;
1913
+ }
1914
+ system.LOADERS[partKey](this.t);
1915
+ this.loadedParts.add(partKey);
1916
+ const possiblePartBridges = system.BRIDGES.filter((b) => b.needs.includes(partKey) && !this.bridgedParts.has(b.id) && b.needs.every((n) => this.loadedParts.has(n)));
1917
+ for (const bridge of possiblePartBridges) {
1918
+ bridge.run(this.t);
1919
+ this.bridgedParts.add(bridge.id);
1920
+ }
1921
+ }
1922
+ /**
1923
+ * Unloads the active system and all its parts
1924
+ */
1925
+ unloadSystem() {
1926
+ if (!this.activeSystem) {
1927
+ return;
1928
+ }
1929
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
1930
+ if (!system) {
1931
+ throw new Error(`System ${this.activeSystem} not found`);
1932
+ }
1933
+ const reversedParts = [...this.loadedParts].reverse();
1934
+ for (const part of reversedParts) {
1935
+ system.UNLOADERS[part](this.t);
1936
+ }
1937
+ this.activeSystem = null;
1938
+ this.loadedParts.clear();
1939
+ this.bridgedParts.clear();
1940
+ }
1941
+ /**
1942
+ * Runs a bridge (that connects two parts) if it is not already run and all its needs are loaded
1943
+ * @param bridgeKey - the key of the bridge to run
1944
+ */
1945
+ runBridge(bridgeKey) {
1946
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
1947
+ if (!system) {
1948
+ throw new Error(`System ${this.activeSystem} not found`);
1949
+ }
1950
+ const bridge = system.BRIDGES.find((b) => b.id === bridgeKey);
1951
+ if (!bridge) {
1952
+ throw new Error(`Bridge ${bridgeKey} not found`);
1953
+ }
1954
+ if (!this.bridgedParts.has(bridge.id) && bridge.needs.every((n) => this.loadedParts.has(n))) {
1955
+ bridge.run(this.t);
1956
+ this.bridgedParts.add(bridge.id);
1957
+ }
1958
+ }
1959
+ listAvailableParts() {
1960
+ if (!this.activeSystem) {
1961
+ throw new Error("No system loaded");
1962
+ }
1963
+ const installedSystem = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
1964
+ if (!installedSystem) {
1965
+ throw new Error(`System ${this.activeSystem} not found`);
1966
+ }
1967
+ return Object.keys(installedSystem.LOADERS).filter((p) => p !== "base");
1968
+ }
1969
+ listAvailableBridges() {
1970
+ if (!this.activeSystem) {
1971
+ throw new Error("No system loaded");
1972
+ }
1973
+ const installedSystem = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
1974
+ if (!installedSystem) {
1975
+ throw new Error(`System ${this.activeSystem} not found`);
1976
+ }
1977
+ return installedSystem.BRIDGES;
1978
+ }
1979
+ listLoadedParts() {
1980
+ return [...this.loadedParts];
1981
+ }
1982
+ listBridgedParts() {
1983
+ return [...this.bridgedParts];
1984
+ }
1985
+ getActiveSystem() {
1986
+ return this.activeSystem;
1987
+ }
1988
+ };
1989
+
1990
+ // src/core/tree-of-life.ts
1991
+ var TreeOfLife = class {
1992
+ constructor() {
1993
+ this.nodes = /* @__PURE__ */ new Map();
1994
+ this.adjacent = /* @__PURE__ */ new Map();
1995
+ this.modules = new ModuleManager(this);
1996
+ this.activeSystem = this.modules.getActiveSystem();
1997
+ }
1998
+ /**
1999
+ * Loads the tree of life system to be used
2000
+ * @param systemKey - the key of the system to load
2001
+ */
2002
+ loadSystem(systemKey) {
2003
+ this.modules.loadSystem(systemKey);
2004
+ }
2005
+ /**
2006
+ * Loads a part of a system into the tree of life
2007
+ * @param partKey - the key of the part to load
2008
+ */
2009
+ loadPart(partKey) {
2010
+ this.modules.loadPart(partKey);
2011
+ }
2012
+ /**
2013
+ * Unloads the tree of life system and all its parts
2014
+ */
2015
+ unloadSystem() {
2016
+ this.modules.unloadSystem();
2017
+ }
2018
+ listAvailableParts() {
2019
+ return this.modules.listAvailableParts();
2020
+ }
2021
+ listLoadedParts() {
2022
+ return this.modules.listLoadedParts();
2023
+ }
2024
+ listAvailableBridges() {
2025
+ return this.modules.listAvailableBridges();
2026
+ }
2027
+ listBridgedParts() {
2028
+ return this.modules.listBridgedParts();
2029
+ }
2030
+ /**
2031
+ * Adds a node to the tree
2032
+ * @param node - the node to add
2033
+ * @returns the id of the added node
2034
+ */
2035
+ addNode(node) {
2036
+ this.nodes.set(node.id, node);
2037
+ return node.id;
2038
+ }
2039
+ getNode(id) {
2040
+ return this.nodes.get(id);
2041
+ }
2042
+ /**
2043
+ * Links two nodes bi-directionally
2044
+ * @param firstNode - the id of the first node
2045
+ * @param secondNode - the id of the second node
2046
+ */
2047
+ link(firstNode, secondNode) {
2048
+ if (!this.nodes.has(firstNode) || !this.nodes.has(secondNode)) {
2049
+ throw new Error("unknown node id");
2050
+ }
2051
+ if (firstNode === secondNode) {
2052
+ return;
2053
+ }
2054
+ if (this.adjacent.has(firstNode) && this.adjacent.get(firstNode)?.has(secondNode)) {
2055
+ return;
2056
+ }
2057
+ const put = (leftNode, rightNode) => {
2058
+ const set = this.adjacent.get(leftNode) ?? /* @__PURE__ */ new Set();
2059
+ set.add(rightNode);
2060
+ this.adjacent.set(leftNode, set);
2061
+ };
2062
+ put(firstNode, secondNode);
2063
+ put(secondNode, firstNode);
2064
+ }
2065
+ /**
2066
+ * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
2067
+ * @param id - the id of the node to get the relations for
2068
+ * @param nodeType - the node type to filter the relations by
2069
+ * @returns the current node and all its direct relations
2070
+ */
2071
+ related(id, nodeType) {
2072
+ if (!this.nodes.has(id)) {
2073
+ return [];
2074
+ }
2075
+ const node = this.nodes.get(id);
2076
+ const relations = this.adjacent.get(id);
2077
+ if (!relations) {
2078
+ return nodeType ? [] : [node];
2079
+ }
2080
+ const filteredRelations = [...relations].map((i) => this.nodes.get(i)).filter((n) => !nodeType || n.type === nodeType);
2081
+ return nodeType ? filteredRelations : [node, ...filteredRelations];
2082
+ }
2083
+ /**
2084
+ * Gets all the types of nodes that are directly connected to the given node
2085
+ * @param id - the id of the node to get related types for
2086
+ * @returns array of node types that are directly connected
2087
+ */
2088
+ relatedTypes(id) {
2089
+ if (!this.nodes.has(id)) {
2090
+ return [];
2091
+ }
2092
+ return [...new Set([...this.adjacent.get(id).values()].map((nodeId) => this.nodes.get(nodeId).type))];
2093
+ }
2094
+ /**
2095
+ * BFS up to depth k, optional type filter for the result set
2096
+ * @param id - the id of the node to get the extended relations for
2097
+ * @param depth - the depth of the walk
2098
+ * @param type - the type of the nodes to filter the result set by
2099
+ * @returns the current node and all its extended relations
2100
+ */
2101
+ walk(id, depth = 1, type) {
2102
+ const visitedNodes = /* @__PURE__ */ new Set([id]);
2103
+ const foundNodes = [];
2104
+ let queue = [[id, 0]];
2105
+ while (queue.length > 0) {
2106
+ const [current, currentDepth] = queue.shift();
2107
+ if (currentDepth >= depth) {
2108
+ continue;
2109
+ }
2110
+ const neighbors = this.adjacent.get(current) ?? /* @__PURE__ */ new Set();
2111
+ for (const neighbor of neighbors) {
2112
+ if (visitedNodes.has(neighbor)) {
2113
+ continue;
2114
+ }
2115
+ visitedNodes.add(neighbor);
2116
+ foundNodes.push(this.nodes.get(neighbor));
2117
+ queue.push([neighbor, currentDepth + 1]);
2118
+ }
2119
+ }
2120
+ return type ? foundNodes.filter((n) => n.type === type) : foundNodes;
2121
+ }
2122
+ /**
2123
+ * Removes a node and all its relations from the graph, cleaning up adjacency sets.
2124
+ * @param id - the id of the node to remove
2125
+ */
2126
+ removeNode(id) {
2127
+ if (!this.nodes.has(id)) return;
2128
+ const neighbors = this.adjacent.get(id);
2129
+ if (neighbors) {
2130
+ for (const neighbor of neighbors) {
2131
+ const set = this.adjacent.get(neighbor);
2132
+ if (!set) {
2133
+ continue;
2134
+ }
2135
+ set.delete(id);
2136
+ if (set.size === 0) {
2137
+ this.adjacent.delete(neighbor);
2138
+ } else {
2139
+ this.adjacent.set(neighbor, set);
2140
+ }
2141
+ }
2142
+ }
2143
+ this.adjacent.delete(id);
2144
+ this.nodes.delete(id);
2145
+ }
2146
+ /**
2147
+ * A helper to create two-way correspondences between nodes.
2148
+ * @param source - the source node
2149
+ * @param target - the target node
2150
+ * @param targetType - the type of the target node
2151
+ * @returns the target node
2152
+ */
2153
+ correspond(source, target, targetType, data) {
2154
+ if (!this.nodes.has(target)) {
2155
+ const node = data ? { id: target, type: targetType, data } : { id: target, type: targetType };
2156
+ this.addNode(node);
2157
+ }
2158
+ this.link(source, target);
2159
+ return target;
2160
+ }
2161
+ /**
2162
+ * Adds a sphere (sephirah) to the tree with its Hebrew and English names
2163
+ * @param sphere - the identifier for the sphere
2164
+ * @param data - the sphere's Hebrew and English names
2165
+ * @returns the sphere's id
2166
+ */
2167
+ addSphere(sphere, data, relatedNumber) {
2168
+ if (this.nodes.has(sphere)) {
2169
+ return sphere;
2170
+ }
2171
+ this.addNode({ id: sphere, type: "sphere", data });
2172
+ const numberId = `num:${relatedNumber}`;
2173
+ if (!this.nodes.has(numberId)) {
2174
+ this.addNode({ id: numberId, type: "number" });
2175
+ }
2176
+ this.link(sphere, numberId);
2177
+ return sphere;
2178
+ }
2179
+ /**
2180
+ * Adds a path between two spheres with its associated number
2181
+ * @param leftSphere - the id of the first sphere
2182
+ * @param rightSphere - the id of the second sphere
2183
+ * @param relatedNumber - the number associated with this path
2184
+ * @returns the path's id
2185
+ */
2186
+ addPath(leftSphere, rightSphere, relatedNumber, data) {
2187
+ const pathId = `path:${relatedNumber}`;
2188
+ if (this.nodes.has(pathId)) {
2189
+ return pathId;
2190
+ }
2191
+ const numberOfSpheres = 10;
2192
+ const pathNumber = relatedNumber + numberOfSpheres;
2193
+ this.addNode({ id: pathId, type: "path", data });
2194
+ this.link(leftSphere, pathId);
2195
+ this.link(rightSphere, pathId);
2196
+ const firstNumberId = `num:${relatedNumber}`;
2197
+ const secondNumberId = `num:${pathNumber}`;
2198
+ if (!this.nodes.has(firstNumberId)) {
2199
+ this.addNode({ id: firstNumberId, type: "number" });
2200
+ }
2201
+ if (!this.nodes.has(secondNumberId)) {
2202
+ this.addNode({ id: secondNumberId, type: "number" });
2203
+ }
2204
+ this.link(pathId, firstNumberId);
2205
+ this.link(pathId, secondNumberId);
2206
+ return pathId;
2207
+ }
2208
+ addLetters(path, letters) {
2209
+ for (const letter of letters) {
2210
+ const letterId = `letter:${letter.letter}`;
2211
+ this.correspond(path, letterId, letter.type, letter.data);
2212
+ if (letter.type === "hebrewLetter") {
2213
+ const data = letter.data;
2214
+ const gematriaValues = [data.gematriaValue, data.gematriaValueWhenEnding].filter(Boolean);
2215
+ for (const gematriaValue of gematriaValues) {
2216
+ if (!this.nodes.has(`num:${gematriaValue}`)) {
2217
+ this.addNode({ id: `num:${gematriaValue}`, type: "number" });
2218
+ }
2219
+ this.link(letterId, `num:${gematriaValue}`);
2220
+ }
2221
+ }
2222
+ }
2223
+ }
2224
+ addWorld(world, data) {
2225
+ if (this.nodes.has(world)) {
2226
+ return world;
2227
+ }
2228
+ this.addNode({ id: world, type: "world", data });
2229
+ return world;
2230
+ }
2231
+ addSphereColor(sphere, color, data, world) {
2232
+ const colorId = `color:${color}`;
2233
+ this.correspond(sphere, colorId, "color", data);
2234
+ if (world) {
2235
+ this.link(world, colorId);
2236
+ }
2237
+ return colorId;
2238
+ }
2239
+ addPathColor(path, color, data) {
2240
+ const colorId = `color:${color}`;
2241
+ this.correspond(path, colorId, "color", data);
2242
+ return colorId;
2243
+ }
2244
+ addMusicalNote(sphere, note, data) {
2245
+ const noteId = `note:${note}`;
2246
+ this.correspond(sphere, noteId, "musicalNote", data);
2247
+ return noteId;
2248
+ }
2249
+ addWesternAstrologyPlanet(sphereOrPath, planet, data) {
2250
+ const planetId = `planet:${planet}`;
2251
+ this.correspond(sphereOrPath, planetId, "planet", data);
2252
+ return planetId;
2253
+ }
2254
+ addWesternAstrologySign(path, sign, data, relatedNumber) {
2255
+ const signId = `westernZodiacSign:${sign}`;
2256
+ this.correspond(path, signId, "westernZodiacSign", data);
2257
+ const numberId = `num:${relatedNumber}`;
2258
+ if (!this.nodes.has(numberId)) {
2259
+ this.addNode({ id: numberId, type: "number" });
2260
+ }
2261
+ this.link(signId, numberId);
2262
+ if (data.element) {
2263
+ const elementId = `westernElement:${data.element}`;
2264
+ if (!this.nodes.has(elementId)) {
2265
+ this.addNode({ id: elementId, type: "westernElement" });
2266
+ }
2267
+ this.link(signId, elementId);
2268
+ }
2269
+ return signId;
2270
+ }
2271
+ addWesternElement(path, element, data) {
2272
+ const elementId = `westernElement:${element}`;
2273
+ if (this.nodes.has(elementId)) {
2274
+ return elementId;
2275
+ }
2276
+ this.correspond(path, elementId, "westernElement", data);
2277
+ return elementId;
2278
+ }
2279
+ addTarotArkAnnu(sphereOrPath, tarotArkAnnu, data, relatedNumber, suit) {
2280
+ if (this.nodes.has(tarotArkAnnu)) {
2281
+ return tarotArkAnnu;
2282
+ }
2283
+ this.correspond(sphereOrPath, tarotArkAnnu, "tarotArkAnnu", data);
2284
+ const numberId = `num:${relatedNumber}`;
2285
+ if (!this.nodes.has(numberId)) {
2286
+ this.addNode({ id: numberId, type: "number" });
2287
+ }
2288
+ this.link(tarotArkAnnu, numberId);
2289
+ if (suit) {
2290
+ this.link(tarotArkAnnu, `suit:${suit}`);
2291
+ }
2292
+ return tarotArkAnnu;
2293
+ }
2294
+ addTarotSuit(suit, relatedElement) {
2295
+ const suitId = `suit:${suit}`;
2296
+ if (this.nodes.has(suitId)) {
2297
+ return suitId;
2298
+ }
2299
+ this.addNode({ id: suitId, type: "tarotSuit" });
2300
+ const elementId = `westernElement:${relatedElement}`;
2301
+ if (!this.nodes.has(elementId)) {
2302
+ this.addNode({ id: elementId, type: "westernElement" });
2303
+ }
2304
+ this.link(suitId, `westernElement:${relatedElement}`);
2305
+ return suitId;
2306
+ }
2307
+ };
2308
+
2309
+ // src/core/factory.ts
2310
+ function createTree(opts = {
2311
+ system: "kaabalah",
2312
+ parts: []
2313
+ }) {
2314
+ const tree = new TreeOfLife();
2315
+ tree.loadSystem(opts.system);
2316
+ for (const part of opts.parts || []) {
2317
+ tree.loadPart(part);
2318
+ }
2319
+ return tree;
2320
+ }
2321
+ export {
2322
+ FOUR_WORLDS,
2323
+ HEBREW_LETTERS,
2324
+ HEBREW_LETTERS_DATA,
2325
+ LATIN_LETTERS,
2326
+ LURIANIC_PATHS,
2327
+ MELKITZEDEKI_PATHS,
2328
+ PLANETS,
2329
+ SPHERES,
2330
+ SPHERE_DATA,
2331
+ SYSTEMS,
2332
+ TAROT_ARKANNUS,
2333
+ TAROT_ARKANNUS_DATA,
2334
+ TAROT_SUITS,
2335
+ TreeOfLife,
2336
+ WESTERN_ELEMENTS,
2337
+ WESTERN_ZODIAC_SIGNS,
2338
+ WESTERN_ZODIAC_SIGNS_DATA,
2339
+ createTree
2340
+ };
2341
+ //# sourceMappingURL=index.mjs.map