kaabalah 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3116,18 +3116,35 @@ __export(index_exports, {
3116
3116
  ARKANNUS: () => ARKANNUS,
3117
3117
  CYCLE_MEANINGS: () => CYCLE_MEANINGS,
3118
3118
  CalcFlag: () => CalcFlag,
3119
+ FOUR_WORLDS: () => FOUR_WORLDS,
3120
+ HEBREW_LETTERS: () => HEBREW_LETTERS,
3121
+ HEBREW_LETTERS_DATA: () => HEBREW_LETTERS_DATA,
3119
3122
  HouseSystem: () => HouseSystem,
3123
+ LATIN_LETTERS: () => LATIN_LETTERS,
3124
+ LURIANIC_PATHS: () => LURIANIC_PATHS,
3125
+ MELKITZEDEKI_PATHS: () => MELKITZEDEKI_PATHS,
3126
+ PLANETS: () => PLANETS,
3120
3127
  Planet: () => Planet,
3121
- VERSION: () => VERSION,
3128
+ SPHERES: () => SPHERES,
3129
+ SPHERE_DATA: () => SPHERE_DATA,
3130
+ SYSTEMS: () => SYSTEMS,
3131
+ TAROT_ARKANNUS: () => TAROT_ARKANNUS,
3132
+ TAROT_ARKANNUS_DATA: () => TAROT_ARKANNUS_DATA,
3133
+ TAROT_DECKS: () => TAROT_DECKS,
3134
+ TAROT_SUITS: () => TAROT_SUITS,
3135
+ TreeOfLife: () => TreeOfLife,
3136
+ WESTERN_ELEMENTS: () => WESTERN_ELEMENTS,
3137
+ WESTERN_ZODIAC_SIGNS: () => WESTERN_ZODIAC_SIGNS,
3138
+ WESTERN_ZODIAC_SIGNS_DATA: () => WESTERN_ZODIAC_SIGNS_DATA,
3122
3139
  calculateCycles: () => calculateCycles,
3123
3140
  calculateGematria: () => calculateGematria,
3124
3141
  calculateLifePath: () => calculateLifePath,
3125
3142
  closeSwissEph: () => closeSwissEph,
3143
+ createTree: () => createTree,
3126
3144
  formatDegreeMinutes: () => formatDegreeMinutes,
3127
3145
  getBirthChart: () => getBirthChart,
3128
3146
  getSwissEph: () => getSwissEph,
3129
3147
  getZodiacPosition: () => getZodiacPosition,
3130
- isValidDate: () => isValidDate,
3131
3148
  majorArcana: () => majorArcana,
3132
3149
  shuffleTarotDeck: () => shuffleTarotDeck
3133
3150
  });
@@ -3472,481 +3489,2331 @@ function getZodiacPosition(longitude) {
3472
3489
  };
3473
3490
  }
3474
3491
 
3475
- // src/core/index.ts
3476
- var VERSION = "0.1.0";
3477
- function isValidDate(date) {
3478
- return !isNaN(date.getTime());
3492
+ // src/core/constants.ts
3493
+ var FOUR_WORLDS = {
3494
+ ATZILUTH: "Atziluth",
3495
+ BRIAH: "Briah",
3496
+ YETZIRAH: "Yetzirah",
3497
+ ASSIAH: "Assiah"
3498
+ };
3499
+ var SPHERES = {
3500
+ KETHER: "Kether",
3501
+ CHOKMAH: "Chokmah",
3502
+ BINAH: "Binah",
3503
+ DAATH: "Daath",
3504
+ CHESED: "Chesed",
3505
+ GEBURAH: "Geburah",
3506
+ TIPHERETH: "Tiphereth",
3507
+ NETZACH: "Netzach",
3508
+ HOD: "Hod",
3509
+ YESOD: "Yesod",
3510
+ MALKUTH: "Malkuth"
3511
+ };
3512
+ var SPHERE_DATA = {
3513
+ KETHER: { hebrewName: "\u05DB\u05EA\u05E8", englishName: "Crown" },
3514
+ CHOKMAH: { hebrewName: "\u05D7\u05DB\u05DE\u05D4", englishName: "Wisdom" },
3515
+ BINAH: { hebrewName: "\u05D1\u05D9\u05E0\u05D4", englishName: "Understanding" },
3516
+ CHESED: { hebrewName: "\u05D7\u05E1\u05D3", englishName: "Mercy" },
3517
+ GEBURAH: { hebrewName: "\u05D2\u05D1\u05D5\u05E8\u05D4", englishName: "Severity" },
3518
+ TIPHERETH: { hebrewName: "\u05EA\u05E4\u05D0\u05E8\u05EA", englishName: "Beauty" },
3519
+ NETZACH: { hebrewName: "\u05E0\u05E6\u05D7", englishName: "Victory" },
3520
+ HOD: { hebrewName: "\u05D4\u05D5\u05D3", englishName: "Splendor" },
3521
+ YESOD: { hebrewName: "\u05D9\u05E1\u05D5\u05D3", englishName: "Foundation" },
3522
+ MALKUTH: { hebrewName: "\u05DE\u05DC\u05DB\u05D5\u05EA", englishName: "Kingdom" },
3523
+ DAATH: { hebrewName: "\u05D3\u05E2\u05EA", englishName: "Knowledge" }
3524
+ };
3525
+ var PLANETS = {
3526
+ EARTH: "Earth",
3527
+ MOON: "Moon",
3528
+ SUN: "Sun",
3529
+ MERCURY: "Mercury",
3530
+ VENUS: "Venus",
3531
+ MARS: "Mars",
3532
+ JUPITER: "Jupiter",
3533
+ SATURN: "Saturn",
3534
+ URANUS: "Uranus",
3535
+ NEPTUNE: "Neptune",
3536
+ PLUTO: "Pluto"
3537
+ };
3538
+ var WESTERN_ZODIAC_SIGNS = {
3539
+ ARIES: "Aries",
3540
+ TAURUS: "Taurus",
3541
+ GEMINI: "Gemini",
3542
+ CANCER: "Cancer",
3543
+ LEO: "Leo",
3544
+ VIRGO: "Virgo",
3545
+ LIBRA: "Libra",
3546
+ SCORPIO: "Scorpio",
3547
+ SAGITTARIUS: "Sagittarius",
3548
+ CAPRICORN: "Capricorn",
3549
+ AQUARIUS: "Aquarius",
3550
+ PISCES: "Pisces"
3551
+ };
3552
+ var WESTERN_ELEMENTS = {
3553
+ FIRE: "Fire",
3554
+ AIR: "Air",
3555
+ WATER: "Water",
3556
+ EARTH: "Earth",
3557
+ ETHER: "Ether"
3558
+ };
3559
+ var WESTERN_ZODIAC_SIGNS_DATA = {
3560
+ ARIES: { element: WESTERN_ELEMENTS.FIRE, type: "cardinal", rulingPlanets: [PLANETS.MARS] },
3561
+ TAURUS: { element: WESTERN_ELEMENTS.EARTH, type: "fixed", rulingPlanets: [PLANETS.VENUS] },
3562
+ GEMINI: { element: WESTERN_ELEMENTS.AIR, type: "mutable", rulingPlanets: [PLANETS.MERCURY] },
3563
+ CANCER: { element: WESTERN_ELEMENTS.WATER, type: "cardinal", rulingPlanets: [PLANETS.MOON] },
3564
+ LEO: { element: WESTERN_ELEMENTS.FIRE, type: "fixed", rulingPlanets: [PLANETS.SUN] },
3565
+ VIRGO: { element: WESTERN_ELEMENTS.EARTH, type: "mutable", rulingPlanets: [PLANETS.MERCURY] },
3566
+ LIBRA: { element: WESTERN_ELEMENTS.AIR, type: "cardinal", rulingPlanets: [PLANETS.VENUS] },
3567
+ SCORPIO: { element: WESTERN_ELEMENTS.WATER, type: "fixed", rulingPlanets: [PLANETS.MARS, PLANETS.PLUTO] },
3568
+ SAGITTARIUS: { element: WESTERN_ELEMENTS.FIRE, type: "mutable", rulingPlanets: [PLANETS.JUPITER] },
3569
+ CAPRICORN: { element: WESTERN_ELEMENTS.EARTH, type: "cardinal", rulingPlanets: [PLANETS.SATURN] },
3570
+ AQUARIUS: { element: WESTERN_ELEMENTS.AIR, type: "fixed", rulingPlanets: [PLANETS.SATURN, PLANETS.URANUS] },
3571
+ PISCES: { element: WESTERN_ELEMENTS.WATER, type: "mutable", rulingPlanets: [PLANETS.JUPITER, PLANETS.NEPTUNE] }
3572
+ };
3573
+ var MELKITZEDEKI_PATHS = {
3574
+ KETHER_CHOKMAH: 1,
3575
+ KETHER_BINAH: 2,
3576
+ KETHER_TIPHERETH: 3,
3577
+ CHOKMAH_BINAH: 4,
3578
+ CHOKMAH_TIPHERETH: 5,
3579
+ CHOKMAH_CHESED: 6,
3580
+ BINAH_TIPHERETH: 7,
3581
+ BINAH_GEBURAH: 8,
3582
+ CHESED_GEBURAH: 9,
3583
+ CHESED_TIPHERETH: 10,
3584
+ CHESED_NETZACH: 11,
3585
+ GEBURAH_TIPHERETH: 12,
3586
+ GEBURAH_HOD: 13,
3587
+ TIPHERETH_NETZACH: 14,
3588
+ TIPHERETH_YESOD: 15,
3589
+ TIPHERETH_HOD: 16,
3590
+ NETZACH_HOD: 17,
3591
+ NETZACH_YESOD: 18,
3592
+ NETZACH_MALKUTH: 19,
3593
+ HOD_YESOD: 20,
3594
+ HOD_MALKUTH: 21,
3595
+ YESOD_MALKUTH: 22
3596
+ };
3597
+ var LURIANIC_PATHS = {
3598
+ KETHER_CHOKMAH: 1,
3599
+ KETHER_BINAH: 2,
3600
+ KETHER_TIPHERETH: 3,
3601
+ CHOKMAH_BINAH: 4,
3602
+ CHOKMAH_GEBURAH: 5,
3603
+ CHOKMAH_TIPHERETH: 6,
3604
+ CHOKMAH_CHESED: 7,
3605
+ BINAH_CHESED: 8,
3606
+ BINAH_TIPHERETH: 9,
3607
+ BINAH_GEBURAH: 10,
3608
+ CHESED_GEBURAH: 11,
3609
+ CHESED_TIPHERETH: 12,
3610
+ CHESED_NETZACH: 13,
3611
+ GEBURAH_TIPHERETH: 14,
3612
+ GEBURAH_HOD: 15,
3613
+ TIPHERETH_NETZACH: 16,
3614
+ TIPHERETH_YESOD: 17,
3615
+ TIPHERETH_HOD: 18,
3616
+ NETZACH_HOD: 19,
3617
+ NETZACH_YESOD: 20,
3618
+ HOD_YESOD: 21,
3619
+ YESOD_MALKUTH: 22
3620
+ };
3621
+ var LATIN_LETTERS = {
3622
+ A: "A",
3623
+ B: "B",
3624
+ C: "C",
3625
+ D: "D",
3626
+ E: "E",
3627
+ F: "F",
3628
+ G: "G",
3629
+ H: "H",
3630
+ I: "I",
3631
+ J: "J",
3632
+ K: "K",
3633
+ L: "L",
3634
+ M: "M",
3635
+ N: "N",
3636
+ O: "O",
3637
+ P: "P",
3638
+ Q: "Q",
3639
+ R: "R",
3640
+ S: "S",
3641
+ T: "T",
3642
+ U: "U",
3643
+ V: "V",
3644
+ W: "W",
3645
+ X: "X",
3646
+ Y: "Y",
3647
+ Z: "Z",
3648
+ PH: "Ph",
3649
+ TS: "Ts",
3650
+ TZ: "Tz",
3651
+ TH: "Th",
3652
+ CH: "Ch",
3653
+ SH: "Sh",
3654
+ KH: "Kh",
3655
+ \u00C7: "\xC7",
3656
+ \u00C3: "\xC3"
3657
+ };
3658
+ var HEBREW_LETTERS = {
3659
+ ALEPH: "\u05D0",
3660
+ BETH: "\u05D1",
3661
+ GIMEL: "\u05D2",
3662
+ DALET: "\u05D3",
3663
+ HE: "\u05D4",
3664
+ VAV: "\u05D5",
3665
+ ZAYIN: "\u05D6",
3666
+ HET: "\u05D7",
3667
+ TET: "\u05D8",
3668
+ YOD: "\u05D9",
3669
+ KAF: "\u05DB",
3670
+ LAMED: "\u05DC",
3671
+ MEM: "\u05DE",
3672
+ NUN: "\u05E0",
3673
+ SAMEKH: "\u05E1",
3674
+ AIN: "\u05E2",
3675
+ PE: "\u05E4",
3676
+ TSADI: "\u05E6",
3677
+ QOF: "\u05E7",
3678
+ RESH: "\u05E8",
3679
+ SHIN: "\u05E9",
3680
+ TAV: "\u05EA"
3681
+ };
3682
+ var HEBREW_LETTERS_DATA = {
3683
+ ALEPH: { gematriaValue: 1, type: "mother", symbol: "Man", hieroglyph: "Unity, central point, abstract principle", yvritMeaning: "Universal man and the human gender", transliteration: "Aleph" },
3684
+ BETH: { gematriaValue: 2, type: "double", symbol: "Mouth", hieroglyph: "Woman's duality", yvritMeaning: "Man's mouth, habitation, interior", transliteration: "Beth" },
3685
+ GIMEL: { gematriaValue: 3, type: "double", symbol: "Grasping hand", hieroglyph: "Expansion and growth", yvritMeaning: "Man's throat, channel", transliteration: "Gimel" },
3686
+ DALET: { gematriaValue: 4, type: "double", symbol: "Breast", hieroglyph: "Universal quaternary, source of physical existence", yvritMeaning: "Abundance and nourishment", transliteration: "Daleth" },
3687
+ HE: { gematriaValue: 5, type: "simple", symbol: "Breath", hieroglyph: "Universal life, men's breath, the breath, everything that animates and vivifies", yvritMeaning: "Window", transliteration: "He" },
3688
+ VAV: { gematriaValue: 6, type: "simple", symbol: "Eye, ear", hieroglyph: "A point connection that separates being and non-being", yvritMeaning: "Construction nail", transliteration: "Vav" },
3689
+ ZAYIN: { gematriaValue: 7, type: "simple", symbol: "Arrow", hieroglyph: "Goal, objective to achieve", yvritMeaning: "Dart, sword", transliteration: "Zayin" },
3690
+ HET: { gematriaValue: 8, type: "simple", symbol: "Field", hieroglyph: "Elemental existence", yvritMeaning: "Fence", transliteration: "Het" },
3691
+ TET: { gematriaValue: 9, type: "simple", symbol: "A house covering", hieroglyph: "Men's shelter, roof, shield, protection, resistance", yvritMeaning: "Serpent", transliteration: "Tet" },
3692
+ YOD: { gematriaValue: 10, type: "simple", symbol: "Index finger", hieroglyph: "Potential manifestation, eternal worship", yvritMeaning: "Hand, index finger", transliteration: "Yod" },
3693
+ 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" },
3694
+ LAMED: { gematriaValue: 30, type: "simple", symbol: "Extending arm", hieroglyph: "Extension, elevation", yvritMeaning: "Sting rod, human arm representing extension, elevation", transliteration: "Lamed" },
3695
+ 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" },
3696
+ NUN: { gematriaValue: 50, type: "simple", gematriaValueWhenEnding: 700, symbol: "Fruit", hieroglyph: "Novelty, youth, grace, beauty", yvritMeaning: "Fish", transliteration: "Nun" },
3697
+ SAMEKH: { gematriaValue: 60, type: "simple", symbol: "Serpent", hieroglyph: "Cyclical circular movement", yvritMeaning: "Support, brace, crutch", transliteration: "Samekh" },
3698
+ AIN: { gematriaValue: 70, type: "simple", symbol: "Binding", hieroglyph: "Material side of things, emptiness, nothingness, all evil", yvritMeaning: "Eye", transliteration: "Ain" },
3699
+ PE: { gematriaValue: 80, type: "double", gematriaValueWhenEnding: 800, symbol: "Mouth, tongue", hieroglyph: "Power of the verb, spoken word", yvritMeaning: "Mouth releasing", transliteration: "Pe" },
3700
+ TSADI: { gematriaValue: 90, type: "simple", gematriaValueWhenEnding: 900, symbol: "Roof", hieroglyph: "Fixed thought upon a purpose", yvritMeaning: "Fishhook", transliteration: "Tsadi" },
3701
+ QOF: { gematriaValue: 100, type: "simple", symbol: "Axe", hieroglyph: "Repressive pressure", yvritMeaning: "Back of the head", transliteration: "Qof" },
3702
+ RESH: { gematriaValue: 200, type: "double", symbol: "Head", hieroglyph: "Feeling, wanting, thinking, movement, reflection, origin, repetition", yvritMeaning: "Illuminated head", transliteration: "Resh" },
3703
+ SHIN: { gematriaValue: 300, type: "mother", symbol: "Crown", hieroglyph: "Relative duration, existence", yvritMeaning: "Part of the bow from which the arrow is released", transliteration: "Shin" },
3704
+ TAV: { gematriaValue: 400, type: "double", symbol: "Thorax", hieroglyph: "Universal soul, reciprocity, protection, perfection, abundance", yvritMeaning: "Ankh Cross", transliteration: "Tav" }
3705
+ };
3706
+ var TAROT_SUITS = {
3707
+ WANDS: "Wands",
3708
+ CUPS: "Cups",
3709
+ SWORDS: "Swords",
3710
+ PENTACLES: "Pentacles"
3711
+ };
3712
+ var TAROT_ARKANNUS = {
3713
+ THE_MAGICIAN: "The Magician",
3714
+ THE_HIGH_PRIESTESS: "The High Priestess",
3715
+ THE_EMPRESS: "The Empress",
3716
+ THE_EMPEROR: "The Emperor",
3717
+ THE_HIEROPHANT: "The Hierophant",
3718
+ THE_LOVER: "The Lover",
3719
+ THE_CHARIOT: "The Chariot",
3720
+ JUSTICE: "Justice",
3721
+ THE_HERMIT: "The Hermit",
3722
+ THE_WHEEL_OF_FORTUNE: "The Wheel of Fortune",
3723
+ STRENGTH: "Strength",
3724
+ THE_HANGED_MAN: "The Hanged Man",
3725
+ DEATH: "Death",
3726
+ TEMPERANCE: "Temperance",
3727
+ THE_DEVIL: "The Devil",
3728
+ THE_TOWER: "The Tower",
3729
+ THE_STAR: "The Star",
3730
+ THE_MOON: "The Moon",
3731
+ THE_SUN: "The Sun",
3732
+ JUDGMENT: "Judgment",
3733
+ THE_FOOL: "The Fool",
3734
+ THE_WORLD: "The World",
3735
+ KING_OF_WANDS: "King of Wands",
3736
+ QUEEN_OF_WANDS: "Queen of Wands",
3737
+ KNIGHT_OF_WANDS: "Knight of Wands",
3738
+ PAGE_OF_WANDS: "Page of Wands",
3739
+ ACE_OF_WANDS: "Ace of Wands",
3740
+ TWO_OF_WANDS: "Two of Wands",
3741
+ THREE_OF_WANDS: "Three of Wands",
3742
+ FOUR_OF_WANDS: "Four of Wands",
3743
+ FIVE_OF_WANDS: "Five of Wands",
3744
+ SIX_OF_WANDS: "Six of Wands",
3745
+ SEVEN_OF_WANDS: "Seven of Wands",
3746
+ EIGHT_OF_WANDS: "Eight of Wands",
3747
+ NINE_OF_WANDS: "Nine of Wands",
3748
+ TEN_OF_WANDS: "Ten of Wands",
3749
+ KING_OF_CUPS: "King of Cups",
3750
+ QUEEN_OF_CUPS: "Queen of Cups",
3751
+ KNIGHT_OF_CUPS: "Knight of Cups",
3752
+ PAGE_OF_CUPS: "Page of Cups",
3753
+ ACE_OF_CUPS: "Ace of Cups",
3754
+ TWO_OF_CUPS: "Two of Cups",
3755
+ THREE_OF_CUPS: "Three of Cups",
3756
+ FOUR_OF_CUPS: "Four of Cups",
3757
+ FIVE_OF_CUPS: "Five of Cups",
3758
+ SIX_OF_CUPS: "Six of Cups",
3759
+ SEVEN_OF_CUPS: "Seven of Cups",
3760
+ EIGHT_OF_CUPS: "Eight of Cups",
3761
+ NINE_OF_CUPS: "Nine of Cups",
3762
+ TEN_OF_CUPS: "Ten of Cups",
3763
+ KING_OF_SWORDS: "King of Swords",
3764
+ QUEEN_OF_SWORDS: "Queen of Swords",
3765
+ KNIGHT_OF_SWORDS: "Knight of Swords",
3766
+ PAGE_OF_SWORDS: "Page of Swords",
3767
+ ACE_OF_SWORDS: "Ace of Swords",
3768
+ TWO_OF_SWORDS: "Two of Swords",
3769
+ THREE_OF_SWORDS: "Three of Swords",
3770
+ FOUR_OF_SWORDS: "Four of Swords",
3771
+ FIVE_OF_SWORDS: "Five of Swords",
3772
+ SIX_OF_SWORDS: "Six of Swords",
3773
+ SEVEN_OF_SWORDS: "Seven of Swords",
3774
+ EIGHT_OF_SWORDS: "Eight of Swords",
3775
+ NINE_OF_SWORDS: "Nine of Swords",
3776
+ TEN_OF_SWORDS: "Ten of Swords",
3777
+ KING_OF_PENTACLES: "King of Pentacles",
3778
+ QUEEN_OF_PENTACLES: "Queen of Pentacles",
3779
+ KNIGHT_OF_PENTACLES: "Knight of Pentacles",
3780
+ PAGE_OF_PENTACLES: "Page of Pentacles",
3781
+ ACE_OF_PENTACLES: "Ace of Pentacles",
3782
+ TWO_OF_PENTACLES: "Two of Pentacles",
3783
+ THREE_OF_PENTACLES: "Three of Pentacles",
3784
+ FOUR_OF_PENTACLES: "Four of Pentacles",
3785
+ FIVE_OF_PENTACLES: "Five of Pentacles",
3786
+ SIX_OF_PENTACLES: "Six of Pentacles",
3787
+ SEVEN_OF_PENTACLES: "Seven of Pentacles",
3788
+ EIGHT_OF_PENTACLES: "Eight of Pentacles",
3789
+ NINE_OF_PENTACLES: "Nine of Pentacles",
3790
+ TEN_OF_PENTACLES: "Ten of Pentacles"
3791
+ };
3792
+ var TAROT_DECKS = {
3793
+ PAPUS_KAABALISTIC: "Papus Kaabalistic",
3794
+ KIER_EGYPTIAN: "Kier Egyptian"
3795
+ };
3796
+ var TAROT_ARKANNUS_DATA = {
3797
+ THE_MAGICIAN: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Abracadabra, the power to create reality through voice" }] },
3798
+ THE_HIGH_PRIESTESS: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Intuition, the power to rewrite your book of life improving your life every instant" }] },
3799
+ THE_EMPRESS: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Adaptation, the power to geometrize through emotions" }] },
3800
+ THE_EMPEROR: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Authority, the power to mark your territory with the sacred fire" }] },
3801
+ THE_HIEROPHANT: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Magnetism, the power to ritualize life and circulate the quintessence" }] },
3802
+ THE_LOVER: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Dichotomy, stay on the middle path by being neither a victim nor a villain" }] },
3803
+ THE_CHARIOT: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Merkaabah, take control and build your merkaabah (mind vehicle)" }] },
3804
+ JUSTICE: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Justice, be just with yourself to be just with others" }] },
3805
+ THE_HERMIT: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Introspection, seek within, retreat" }] },
3806
+ THE_WHEEL_OF_FORTUNE: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Loops, extroversion, break the great wheel and ascend, seek externally" }] },
3807
+ STRENGTH: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "The strength of your subconscious, unity brings strength" }] },
3808
+ THE_HANGED_MAN: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Make valid sacrifices, adopt a new perspective" }] },
3809
+ DEATH: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Merkaabah, take control and build your merkaabah (mind vehicle)" }] },
3810
+ TEMPERANCE: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Balance, harmonize differences" }] },
3811
+ THE_DEVIL: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Indecision between vice and virtue, transmute weakness and passions into strengths" }] },
3812
+ THE_TOWER: { type: "major", descriptiveData: [{ name: "The House of God", deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Separation, destruction, separate from what's harmful and connect with what's helpful, make room for the new" }] },
3813
+ THE_STAR: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Fecundation, ecology, ecstasy, hope, renew yourself to maintain help, act according to your spiritual purpose" }] },
3814
+ THE_MOON: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Hidden enemies, be vigilant, recognize where you're self sabotaging" }] },
3815
+ THE_SUN: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Be conscious of your alchemical band, transmute money into knowledge and vice versa" }] },
3816
+ JUDGMENT: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Make retrospectives and learn from mistakes and successes" }] },
3817
+ THE_FOOL: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Stop walking in circles, create connections of knowledge" }] },
3818
+ THE_WORLD: { type: "major", descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Win the world, start acting on the world of causes" }] },
3819
+ KING_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Get's the best out of every one, Idealism, Magnanimity" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Laborer" }] },
3820
+ QUEEN_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Hold the line while the king goes to work, Preserve what was conquered" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Weaver" }] },
3821
+ KNIGHT_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Dreams that become reality" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Argonaut" }] },
3822
+ PAGE_OF_WANDS: { type: "court", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Don't rush, the precipitations are the doors to failure" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Prodigy" }] },
3823
+ ACE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Ignite the flames of ideals, Trust in your inner divinity" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Unexpected" }] },
3824
+ TWO_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Formulate a strategy to use your own talents" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Uncertainty" }] },
3825
+ THREE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Keep going despite losing something apparently important" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Domesticity" }] },
3826
+ FOUR_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Work in teams" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Exchange" }] },
3827
+ FIVE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Strengthen the root chakra, overcome internal fears" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Impediment" }] },
3828
+ SIX_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "External victory, internal lack of internal self realization" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Magnificence" }] },
3829
+ SEVEN_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Face competitors in an ethical and loyal way" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Alliance" }] },
3830
+ EIGHT_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Travel to the center of peace and intelligence" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Innovation" }] },
3831
+ NINE_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Obstacle that precedes total victory, gather hidden forces" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Desolation" }] },
3832
+ TEN_OF_WANDS: { type: "minor", suit: TAROT_SUITS.WANDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Get out of apathy, create a new tree of life using the Lightning Path" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Initiation" }] },
3833
+ KING_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Stop hurting yourself (related to The Lover), heals everyone and forgets about yourself, balm for your own wound" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Art and Science" }] },
3834
+ QUEEN_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Work with subtlety, positive challenges" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Duplicity" }] },
3835
+ KNIGHT_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Alternative healing" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Testimony" }] },
3836
+ PAGE_OF_CUPS: { type: "court", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Increase of self-esteem, emotional courage" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Premonition" }] },
3837
+ ACE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Renewal or new affection, alternative treatment for health" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Dissension" }] },
3838
+ TWO_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Do not poison yourself or the other person" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Preeminence" }] },
3839
+ THREE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Harmony between instinct and emotion, Be discreet" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Premonition" }] },
3840
+ FOUR_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Abundance in emotional life, do not listen to slander" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Expressiveness" }] },
3841
+ FIVE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Do not break your spiritual commitment (your purpose)" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Regeneration" }] },
3842
+ SIX_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Do not have self-pity" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Patrimony" }] },
3843
+ SEVEN_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Gestations, related to The Star" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Conjecture" }] },
3844
+ EIGHT_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Reflect on your emotional life after 18 hours" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Consummation" }] },
3845
+ NINE_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Reconciliations and forgiveness" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Versatility" }] },
3846
+ TEN_OF_CUPS: { type: "minor", suit: TAROT_SUITS.CUPS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Marriage of the spirit with the soul, Alchemical Weddings" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Attraction" }] },
3847
+ KING_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Actions of victorious strategies" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Advice" }] },
3848
+ QUEEN_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Supremacy of the feminine, related to Justice" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Premeditation" }] },
3849
+ KNIGHT_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Joint victorious actions" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Hostility" }] },
3850
+ PAGE_OF_SWORDS: { type: "court", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Follow your intuition" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Examination" }] },
3851
+ ACE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Conflicts before victory" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Contrition" }] },
3852
+ TWO_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Traumas and conflicts to overcome" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Pilgrimage" }] },
3853
+ THREE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Death of yang, Fire, tendencies to depression" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Rivalry" }] },
3854
+ FOUR_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Reflection, related to The Hermit" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Meditation" }] },
3855
+ FIVE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Healthy self-challenge, Self-demands" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Revelation" }] },
3856
+ SIX_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "External daily strategies, Future perspectives" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Evolution" }] },
3857
+ SEVEN_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Internal nocturnal strategies, related to The Hermit" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Solitude" }] },
3858
+ EIGHT_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Appeal to superior forces, Internal and external conflicts" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Proscription" }] },
3859
+ NINE_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "The problems being imagined will never happen" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Communion" }] },
3860
+ TEN_OF_SWORDS: { type: "minor", suit: TAROT_SUITS.SWORDS, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Death and rebirth, related to Death and The Tower" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Vehemence" }] },
3861
+ KING_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Turns everything into gold" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Apprenticeship" }] },
3862
+ QUEEN_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Act with diplomacy" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Perplexity" }] },
3863
+ KNIGHT_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Invest into new things" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Veneration" }] },
3864
+ PAGE_OF_PENTACLES: { type: "court", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Prudence in the material life" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Speculation" }] },
3865
+ ACE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Rebirth through a single material goal, Form clear material goals" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Unforeseen" }] },
3866
+ TWO_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Light forming shadows, Duality asking for synthesis in the trinity, Don't put all the eggs in the same basket" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Cooperation" }] },
3867
+ THREE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.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: TAROT_DECKS.KIER_EGYPTIAN, name: "Avarice" }] },
3868
+ FOUR_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Avoid avarice / greed" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Purification" }] },
3869
+ FIVE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Only order will bring progress, Do not kick the barn without having something concrete in front of you" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Love and Desire" }] },
3870
+ SIX_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Act with prudence" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Offering" }] },
3871
+ SEVEN_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Don't boast about your proposal or project" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Generosity" }] },
3872
+ EIGHT_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Keep doing what you always did" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "The Provider" }] },
3873
+ NINE_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Work with what you like and earn something with it" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Confusion" }] },
3874
+ TEN_OF_PENTACLES: { type: "minor", suit: TAROT_SUITS.PENTACLES, descriptiveData: [{ deck: TAROT_DECKS.PAPUS_KAABALISTIC, meaning: "Prosperity, Prosperous inheritance" }, { deck: TAROT_DECKS.KIER_EGYPTIAN, name: "Rebirth" }] }
3875
+ };
3876
+
3877
+ // src/core/systems/hermetic-qabalah.ts
3878
+ var hermetic_qabalah_exports = {};
3879
+ __export(hermetic_qabalah_exports, {
3880
+ BRIDGES: () => BRIDGES,
3881
+ LOADERS: () => LOADERS,
3882
+ SYSTEM: () => SYSTEM,
3883
+ UNLOADERS: () => UNLOADERS,
3884
+ loadColors: () => loadColors,
3885
+ loadHermeticQabalah: () => loadHermeticQabalah,
3886
+ loadMusicalNotes: () => loadMusicalNotes,
3887
+ loadWesternAstrology: () => loadWesternAstrology,
3888
+ unloadColors: () => unloadColors,
3889
+ unloadHermeticQabalah: () => unloadHermeticQabalah,
3890
+ unloadMusicalNotes: () => unloadMusicalNotes,
3891
+ unloadWesternAstrology: () => unloadWesternAstrology
3892
+ });
3893
+ var SYSTEM = "hermetic-qabalah";
3894
+ function loadHermeticQabalah(tree) {
3895
+ const kether = tree.addSphere(SPHERES.KETHER, {
3896
+ ...SPHERE_DATA.KETHER,
3897
+ divineName: "Eheieh",
3898
+ archangelicName: "Metraton",
3899
+ angelicName: "Chayouth Ha-Qadesh",
3900
+ mundaneName: "Rashith Ha-Gilgalim"
3901
+ }, 1);
3902
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, {
3903
+ ...SPHERE_DATA.CHOKMAH,
3904
+ divineName: "Yahve El Yah",
3905
+ archangelicName: "Raziel",
3906
+ angelicName: "Auphanim",
3907
+ mundaneName: "Mazloth"
3908
+ }, 2);
3909
+ const binah = tree.addSphere(SPHERES.BINAH, {
3910
+ ...SPHERE_DATA.BINAH,
3911
+ divineName: "Yahve Elohim",
3912
+ archangelicName: "Tzaphqiel",
3913
+ angelicName: "Aralim",
3914
+ mundaneName: "Shabbathai"
3915
+ }, 3);
3916
+ tree.addSphere(SPHERES.DAATH, SPHERE_DATA.DAATH, 11);
3917
+ const chesed = tree.addSphere(SPHERES.CHESED, {
3918
+ ...SPHERE_DATA.CHESED,
3919
+ divineName: "El",
3920
+ archangelicName: "Tzadqiel",
3921
+ angelicName: "Chasmalim",
3922
+ mundaneName: "Tzedeq"
3923
+ }, 4);
3924
+ const geburah = tree.addSphere(SPHERES.GEBURAH, {
3925
+ ...SPHERE_DATA.GEBURAH,
3926
+ divineName: "Elohim Gibor",
3927
+ archangelicName: "Kamael",
3928
+ angelicName: "Seraphim",
3929
+ mundaneName: "Madim"
3930
+ }, 5);
3931
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, {
3932
+ ...SPHERE_DATA.TIPHERETH,
3933
+ divineName: "Yahve Eloah Ve-Daath",
3934
+ archangelicName: "Raphael",
3935
+ angelicName: "Melekim",
3936
+ mundaneName: "Shemesh"
3937
+ }, 6);
3938
+ const netzach = tree.addSphere(SPHERES.NETZACH, {
3939
+ ...SPHERE_DATA.NETZACH,
3940
+ divineName: "Yahve Tzabaoth",
3941
+ archangelicName: "Haniel",
3942
+ angelicName: "Elohim",
3943
+ mundaneName: "Nogah"
3944
+ }, 7);
3945
+ const hod = tree.addSphere(SPHERES.HOD, {
3946
+ ...SPHERE_DATA.HOD,
3947
+ divineName: "Elohim Tzabaoth",
3948
+ archangelicName: "Mikael",
3949
+ angelicName: "Beni Elohim",
3950
+ mundaneName: "Kokab"
3951
+ }, 8);
3952
+ const yesod = tree.addSphere(SPHERES.YESOD, {
3953
+ ...SPHERE_DATA.YESOD,
3954
+ divineName: "Shadai El Chai",
3955
+ archangelicName: "Gabriel",
3956
+ angelicName: "Kerubim",
3957
+ mundaneName: "Levanah"
3958
+ }, 9);
3959
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, {
3960
+ ...SPHERE_DATA.MALKUTH,
3961
+ divineName: "Adonai Malek",
3962
+ archangelicName: "Sandalphon",
3963
+ angelicName: "Ashim",
3964
+ mundaneName: "Olam Yesodot"
3965
+ }, 10);
3966
+ const worlds = Object.entries(FOUR_WORLDS);
3967
+ const worldData = {
3968
+ ATZILUTH: {
3969
+ element: "fire",
3970
+ hebrewName: "Atzilith",
3971
+ englishName: "World of Emanation"
3972
+ },
3973
+ BRIAH: {
3974
+ element: "water",
3975
+ hebrewName: "Briah",
3976
+ englishName: "World of Creation"
3977
+ },
3978
+ YETZIRAH: {
3979
+ element: "air",
3980
+ hebrewName: "Yetzirah",
3981
+ englishName: "World of Formation"
3982
+ },
3983
+ ASSIAH: {
3984
+ element: "earth",
3985
+ hebrewName: "Assiah",
3986
+ englishName: "World of Action"
3987
+ }
3988
+ };
3989
+ for (const [key] of worlds) {
3990
+ tree.addWorld(
3991
+ FOUR_WORLDS[key],
3992
+ worldData[key]
3993
+ );
3994
+ }
3995
+ const path11 = tree.addPath(kether, chokmah, MELKITZEDEKI_PATHS.KETHER_CHOKMAH);
3996
+ const path12 = tree.addPath(kether, binah, MELKITZEDEKI_PATHS.KETHER_BINAH);
3997
+ const path13 = tree.addPath(kether, tiphereth, MELKITZEDEKI_PATHS.KETHER_TIPHERETH);
3998
+ const path14 = tree.addPath(chokmah, binah, MELKITZEDEKI_PATHS.CHOKMAH_BINAH);
3999
+ const path15 = tree.addPath(chokmah, tiphereth, MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH);
4000
+ const path16 = tree.addPath(chokmah, chesed, MELKITZEDEKI_PATHS.CHOKMAH_CHESED);
4001
+ const path17 = tree.addPath(binah, tiphereth, MELKITZEDEKI_PATHS.BINAH_TIPHERETH);
4002
+ const path18 = tree.addPath(binah, geburah, MELKITZEDEKI_PATHS.BINAH_GEBURAH);
4003
+ const path19 = tree.addPath(chesed, geburah, MELKITZEDEKI_PATHS.CHESED_GEBURAH);
4004
+ const path20 = tree.addPath(chesed, tiphereth, MELKITZEDEKI_PATHS.CHESED_TIPHERETH);
4005
+ const path21 = tree.addPath(chesed, netzach, MELKITZEDEKI_PATHS.CHESED_NETZACH);
4006
+ const path22 = tree.addPath(geburah, tiphereth, MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH);
4007
+ const path23 = tree.addPath(geburah, hod, MELKITZEDEKI_PATHS.GEBURAH_HOD);
4008
+ const path24 = tree.addPath(tiphereth, netzach, MELKITZEDEKI_PATHS.TIPHERETH_NETZACH);
4009
+ const path25 = tree.addPath(tiphereth, yesod, MELKITZEDEKI_PATHS.TIPHERETH_YESOD);
4010
+ const path26 = tree.addPath(tiphereth, hod, MELKITZEDEKI_PATHS.TIPHERETH_HOD);
4011
+ const path27 = tree.addPath(netzach, hod, MELKITZEDEKI_PATHS.NETZACH_HOD);
4012
+ const path28 = tree.addPath(netzach, yesod, MELKITZEDEKI_PATHS.NETZACH_YESOD);
4013
+ const path29 = tree.addPath(netzach, malkuth, MELKITZEDEKI_PATHS.NETZACH_MALKUTH);
4014
+ const path30 = tree.addPath(hod, yesod, MELKITZEDEKI_PATHS.HOD_YESOD);
4015
+ const path31 = tree.addPath(hod, malkuth, MELKITZEDEKI_PATHS.HOD_MALKUTH);
4016
+ const path32 = tree.addPath(yesod, malkuth, MELKITZEDEKI_PATHS.YESOD_MALKUTH);
4017
+ tree.addLetters(path11, [
4018
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
4019
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
4020
+ ]);
4021
+ tree.addLetters(path12, [
4022
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
4023
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
4024
+ ]);
4025
+ tree.addLetters(path13, [
4026
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
4027
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
4028
+ ]);
4029
+ tree.addLetters(path14, [
4030
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
4031
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
4032
+ ]);
4033
+ tree.addLetters(path15, [
4034
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
4035
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
4036
+ ]);
4037
+ tree.addLetters(path16, [
4038
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
4039
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
4040
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
4041
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
4042
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
4043
+ ]);
4044
+ tree.addLetters(path17, [
4045
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
4046
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
4047
+ ]);
4048
+ tree.addLetters(path18, [
4049
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
4050
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
4051
+ ]);
4052
+ tree.addLetters(path19, [
4053
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
4054
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
4055
+ ]);
4056
+ tree.addLetters(path20, [
4057
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
4058
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
4059
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
4060
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
4061
+ ]);
4062
+ tree.addLetters(path21, [
4063
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
4064
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
4065
+ ]);
4066
+ tree.addLetters(path22, [
4067
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
4068
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
4069
+ ]);
4070
+ tree.addLetters(path23, [
4071
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
4072
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
4073
+ ]);
4074
+ tree.addLetters(path24, [
4075
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
4076
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
4077
+ ]);
4078
+ tree.addLetters(path25, [
4079
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
4080
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
4081
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
4082
+ ]);
4083
+ tree.addLetters(path26, [
4084
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
4085
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
4086
+ ]);
4087
+ tree.addLetters(path27, [
4088
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
4089
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
4090
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
4091
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
4092
+ ]);
4093
+ tree.addLetters(path28, [
4094
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
4095
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
4096
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
4097
+ ]);
4098
+ tree.addLetters(path29, [
4099
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
4100
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
4101
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
4102
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
4103
+ ]);
4104
+ tree.addLetters(path30, [
4105
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
4106
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
4107
+ ]);
4108
+ tree.addLetters(path31, [
4109
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
4110
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
4111
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
4112
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
4113
+ ]);
4114
+ tree.addLetters(path32, [
4115
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
4116
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
4117
+ ]);
4118
+ return tree;
4119
+ }
4120
+ function unloadHermeticQabalah(tree) {
4121
+ const spheres = Object.values(SPHERES);
4122
+ for (let i = 0; i < spheres.length; i++) {
4123
+ tree.removeNode(spheres[i]);
4124
+ }
4125
+ const paths = Object.values(MELKITZEDEKI_PATHS);
4126
+ for (let i = 0; i < paths.length; i++) {
4127
+ tree.removeNode(`path:${paths[i]}`);
4128
+ }
4129
+ }
4130
+ function loadColors(tree) {
4131
+ tree.addSphereColor(SPHERES.KETHER, "splendor", {
4132
+ colorDescription: "Splendor",
4133
+ colorNames: ["transparent"],
4134
+ colorHexCodes: ["#ffffff"]
4135
+ }, FOUR_WORLDS.ATZILUTH);
4136
+ tree.addSphereColor(SPHERES.KETHER, "white-splendor", {
4137
+ colorDescription: "White splendor, pure",
4138
+ colorNames: ["white"],
4139
+ colorHexCodes: ["#ffffff"]
4140
+ }, FOUR_WORLDS.BRIAH);
4141
+ tree.addSphereColor(SPHERES.KETHER, "white-splendor", {
4142
+ colorDescription: "White splendor, pure",
4143
+ colorNames: ["white"],
4144
+ colorHexCodes: ["#ffffff"]
4145
+ }, FOUR_WORLDS.YETZIRAH);
4146
+ tree.addSphereColor(SPHERES.KETHER, "white-speckled-gold", {
4147
+ colorDescription: "White speckled with gold",
4148
+ colorNames: ["white", "gold"],
4149
+ colorHexCodes: ["#ffffff", "#FFD700"]
4150
+ }, FOUR_WORLDS.ASSIAH);
4151
+ tree.addSphereColor(SPHERES.CHOKMAH, "blue", {
4152
+ colorDescription: "Smooth blue, pure",
4153
+ colorNames: ["blue"],
4154
+ colorHexCodes: ["#0000FF"]
4155
+ }, FOUR_WORLDS.ATZILUTH);
4156
+ tree.addSphereColor(SPHERES.CHOKMAH, "grey", {
4157
+ colorDescription: "Grey",
4158
+ colorNames: ["grey"],
4159
+ colorHexCodes: ["#808080"]
4160
+ }, FOUR_WORLDS.BRIAH);
4161
+ tree.addSphereColor(SPHERES.CHOKMAH, "grey-iridescent", {
4162
+ colorDescription: "Pearl grey iridescent",
4163
+ colorNames: ["grey", "iridescent"],
4164
+ colorHexCodes: ["#808080", "#EDBBE7"]
4165
+ }, FOUR_WORLDS.YETZIRAH);
4166
+ tree.addSphereColor(SPHERES.CHOKMAH, "white-speckled-red-blue-yellow", {
4167
+ colorDescription: "White speckled with red, blue and yellow",
4168
+ colorNames: ["white", "red", "blue", "yellow"],
4169
+ colorHexCodes: ["#FFFFFF", "#FF0000", "#0000FF", "#FFF50F"]
4170
+ }, FOUR_WORLDS.ASSIAH);
4171
+ tree.addSphereColor(SPHERES.BINAH, "crimson", {
4172
+ colorDescription: "Crimson",
4173
+ colorNames: ["crimson"],
4174
+ colorHexCodes: ["#DC143C"]
4175
+ }, FOUR_WORLDS.ATZILUTH);
4176
+ tree.addSphereColor(SPHERES.BINAH, "black", {
4177
+ colorDescription: "Black",
4178
+ colorNames: ["black"],
4179
+ colorHexCodes: ["#000000"]
4180
+ }, FOUR_WORLDS.BRIAH);
4181
+ tree.addSphereColor(SPHERES.BINAH, "dark-brown", {
4182
+ colorDescription: "Dark brown",
4183
+ colorNames: ["dark-brown"],
4184
+ colorHexCodes: ["#422E29"]
4185
+ }, FOUR_WORLDS.YETZIRAH);
4186
+ tree.addSphereColor(SPHERES.BINAH, "grey-speckled-pink", {
4187
+ colorDescription: "Grey speckled with pink",
4188
+ colorNames: ["grey", "pink"],
4189
+ colorHexCodes: ["#808080", "#FFC0CB"]
4190
+ }, FOUR_WORLDS.ASSIAH);
4191
+ tree.addSphereColor(SPHERES.DAATH, "lavender", {
4192
+ colorDescription: "Lavender",
4193
+ colorNames: ["lavender"],
4194
+ colorHexCodes: ["#E6E6FA"]
4195
+ }, FOUR_WORLDS.ATZILUTH);
4196
+ tree.addSphereColor(SPHERES.DAATH, "dark-grey", {
4197
+ colorDescription: "Dark grey",
4198
+ colorNames: ["dark-grey"],
4199
+ colorHexCodes: ["#808080"]
4200
+ }, FOUR_WORLDS.BRIAH);
4201
+ tree.addSphereColor(SPHERES.DAATH, "pure-violet", {
4202
+ colorDescription: "Pure violet",
4203
+ colorNames: ["violet"],
4204
+ colorHexCodes: ["#8F00FF"]
4205
+ }, FOUR_WORLDS.YETZIRAH);
4206
+ tree.addSphereColor(SPHERES.DAATH, "grey-speckled-gold", {
4207
+ colorDescription: "Grey speckled with gold",
4208
+ colorNames: ["grey", "gold"],
4209
+ colorHexCodes: ["#808080", "#FFD700"]
4210
+ }, FOUR_WORLDS.ASSIAH);
4211
+ tree.addSphereColor(SPHERES.CHESED, "intense-violet", {
4212
+ colorDescription: "Intense violet",
4213
+ colorNames: ["intense-violet"],
4214
+ colorHexCodes: ["#9400D3"]
4215
+ }, FOUR_WORLDS.ATZILUTH);
4216
+ tree.addSphereColor(SPHERES.CHESED, "blue", {
4217
+ colorDescription: "Blue",
4218
+ colorNames: ["blue"],
4219
+ colorHexCodes: ["#0000FF"]
4220
+ }, FOUR_WORLDS.BRIAH);
4221
+ tree.addSphereColor(SPHERES.CHESED, "intense-purple", {
4222
+ colorDescription: "Intense purple",
4223
+ colorNames: ["intense-purple"],
4224
+ colorHexCodes: ["#800080"]
4225
+ }, FOUR_WORLDS.YETZIRAH);
4226
+ tree.addSphereColor(SPHERES.CHESED, "intense-blue-speckled-yellow", {
4227
+ colorDescription: "Intense blue speckled with yellow",
4228
+ colorNames: ["intense-blue", "yellow"],
4229
+ colorHexCodes: ["#0000FF", "#FFF50F"]
4230
+ }, FOUR_WORLDS.ASSIAH);
4231
+ tree.addSphereColor(SPHERES.GEBURAH, "orange", {
4232
+ colorDescription: "Orange",
4233
+ colorNames: ["orange"],
4234
+ colorHexCodes: ["#FFA800"]
4235
+ }, FOUR_WORLDS.ATZILUTH);
4236
+ tree.addSphereColor(SPHERES.GEBURAH, "scarlet-red", {
4237
+ colorDescription: "Scarlet red",
4238
+ colorNames: ["scarlet-red"],
4239
+ colorHexCodes: ["#FF2400"]
4240
+ }, FOUR_WORLDS.BRIAH);
4241
+ tree.addSphereColor(SPHERES.GEBURAH, "bright-scarlet", {
4242
+ colorDescription: "Bright scarlet",
4243
+ colorNames: ["bright-scarlet"],
4244
+ colorHexCodes: ["#FF2400"]
4245
+ }, FOUR_WORLDS.YETZIRAH);
4246
+ tree.addSphereColor(SPHERES.GEBURAH, "red-speckled-black", {
4247
+ colorDescription: "Red speckled with black",
4248
+ colorNames: ["red", "black"],
4249
+ colorHexCodes: ["#FF0000", "#000000"]
4250
+ }, FOUR_WORLDS.ASSIAH);
4251
+ tree.addSphereColor(SPHERES.TIPHERETH, "gold-yellow", {
4252
+ colorDescription: "gold yellow",
4253
+ colorNames: ["gold-yellow"],
4254
+ colorHexCodes: ["#FFD700"]
4255
+ }, FOUR_WORLDS.ATZILUTH);
4256
+ tree.addSphereColor(SPHERES.TIPHERETH, "rose-pink", {
4257
+ colorDescription: "Rose pink",
4258
+ colorNames: ["rose-pink"],
4259
+ colorHexCodes: ["#FFC0CB"]
4260
+ }, FOUR_WORLDS.BRIAH);
4261
+ tree.addSphereColor(SPHERES.TIPHERETH, "salmon-pink-reddish-carmine-amber-brown-mixed", {
4262
+ colorDescription: "Salmon pink, reddish carmine, amber, brown, mixed",
4263
+ colorNames: ["salmon-pink", "reddish-carmine", "amber", "brown", "mixed"],
4264
+ colorHexCodes: ["#FF9999", "#960018", "#996515"]
4265
+ }, FOUR_WORLDS.YETZIRAH);
4266
+ tree.addSphereColor(SPHERES.TIPHERETH, "gold-speckled-green", {
4267
+ colorDescription: "Gold speckled with green",
4268
+ colorNames: ["gold", "green"],
4269
+ colorHexCodes: ["#FFD700", "#BDB76B"]
4270
+ }, FOUR_WORLDS.ASSIAH);
4271
+ tree.addSphereColor(SPHERES.NETZACH, "amber", {
4272
+ colorDescription: "Amber",
4273
+ colorNames: ["amber"],
4274
+ colorHexCodes: ["#FFBF00"]
4275
+ }, FOUR_WORLDS.ATZILUTH);
4276
+ tree.addSphereColor(SPHERES.NETZACH, "emerald-green", {
4277
+ colorDescription: "Emerald green",
4278
+ colorNames: ["emerald-green"],
4279
+ colorHexCodes: ["#50C878"]
4280
+ }, FOUR_WORLDS.BRIAH);
4281
+ tree.addSphereColor(SPHERES.NETZACH, "bright-yellowish-green", {
4282
+ colorDescription: "Bright yellowish green",
4283
+ colorNames: ["bright-yellowish-green"],
4284
+ colorHexCodes: ["#98FB98"]
4285
+ }, FOUR_WORLDS.YETZIRAH);
4286
+ tree.addSphereColor(SPHERES.NETZACH, "olive-green-speckled-gold", {
4287
+ colorDescription: "Olive green speckled with gold",
4288
+ colorNames: ["olive-green", "gold"],
4289
+ colorHexCodes: ["#BAB86C", "#FFD700"]
4290
+ }, FOUR_WORLDS.ASSIAH);
4291
+ tree.addSphereColor(SPHERES.HOD, "violet-purple", {
4292
+ colorDescription: "Violet-purple",
4293
+ colorNames: ["violet-purple"],
4294
+ colorHexCodes: ["#9B30FF"]
4295
+ }, FOUR_WORLDS.ATZILUTH);
4296
+ tree.addSphereColor(SPHERES.HOD, "orange", {
4297
+ colorDescription: "Orange",
4298
+ colorNames: ["orange"],
4299
+ colorHexCodes: ["#FFA800"]
4300
+ }, FOUR_WORLDS.BRIAH);
4301
+ tree.addSphereColor(SPHERES.HOD, "red-purple", {
4302
+ colorDescription: "Red-purple",
4303
+ colorNames: ["red-purple"],
4304
+ colorHexCodes: ["#C71585"]
4305
+ }, FOUR_WORLDS.YETZIRAH);
4306
+ tree.addSphereColor(SPHERES.HOD, "yellowish-black-speckled-with-white", {
4307
+ colorDescription: "Yellowish black speckled with white",
4308
+ colorNames: ["yellowish-black-speckled-with-white"],
4309
+ colorHexCodes: ["#2B2B1B", "#FFFFFF"]
4310
+ }, FOUR_WORLDS.ASSIAH);
4311
+ tree.addSphereColor(SPHERES.YESOD, "indigo", {
4312
+ colorDescription: "Indigo",
4313
+ colorNames: ["indigo"],
4314
+ colorHexCodes: ["#4B0082"]
4315
+ }, FOUR_WORLDS.YETZIRAH);
4316
+ tree.addSphereColor(SPHERES.YESOD, "violet", {
4317
+ colorDescription: "Violet",
4318
+ colorNames: ["violet"],
4319
+ colorHexCodes: ["#8F00FF"]
4320
+ }, FOUR_WORLDS.BRIAH);
4321
+ tree.addSphereColor(SPHERES.YESOD, "purple", {
4322
+ colorDescription: "Purple",
4323
+ colorNames: ["purple"],
4324
+ colorHexCodes: ["#800080"]
4325
+ }, FOUR_WORLDS.YETZIRAH);
4326
+ tree.addSphereColor(SPHERES.YESOD, "citrine-speckled-blue", {
4327
+ colorDescription: "Citrine speckled with blue",
4328
+ colorNames: ["citrine-speckled-blue"],
4329
+ colorHexCodes: ["#E4D00A", "#1E90FF"]
4330
+ }, FOUR_WORLDS.ASSIAH);
4331
+ tree.addSphereColor(SPHERES.MALKUTH, "yellow", {
4332
+ colorDescription: "Yellow",
4333
+ colorNames: ["yellow"],
4334
+ colorHexCodes: ["#FFF50F"]
4335
+ }, FOUR_WORLDS.ATZILUTH);
4336
+ tree.addSphereColor(SPHERES.MALKUTH, "brown", {
4337
+ 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.",
4338
+ colorNames: ["brown", "olive", "yellow", "black", "red"],
4339
+ colorHexCodes: ["#422E29", "#BAB86C", "#FFF659", "#000000", "#FF5454"]
4340
+ }, FOUR_WORLDS.BRIAH);
4341
+ tree.addSphereColor(SPHERES.MALKUTH, "olive-green", {
4342
+ colorDescription: "Olive green",
4343
+ colorNames: ["olive-green"],
4344
+ colorHexCodes: ["#BAB86C"]
4345
+ }, FOUR_WORLDS.YETZIRAH);
4346
+ tree.addSphereColor(SPHERES.MALKUTH, "black", {
4347
+ colorDescription: "All the colors mixed, on their lowest vibration.",
4348
+ colorNames: ["black"],
4349
+ colorHexCodes: ["#000000"]
4350
+ }, FOUR_WORLDS.ASSIAH);
4351
+ return tree;
4352
+ }
4353
+ function unloadColors(tree) {
4354
+ const colors = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "color").map((color) => color.id));
4355
+ for (let i = 0; i < colors.length; i++) {
4356
+ tree.removeNode(colors[i]);
4357
+ }
4358
+ }
4359
+ function loadMusicalNotes(tree) {
4360
+ tree.addMusicalNote(SPHERES.KETHER, "The Sound of the Spheres", {
4361
+ note: "The Sound of the Sphere",
4362
+ noteDescription: "The sound of the sphere"
4363
+ });
4364
+ tree.addMusicalNote(SPHERES.CHOKMAH, "Mantras", {
4365
+ note: "Mantra",
4366
+ noteDescription: "All sounds considered devotional mantras"
4367
+ });
4368
+ tree.addMusicalNote(SPHERES.BINAH, "Si", {
4369
+ note: "Si",
4370
+ noteDescription: "B (Si)"
4371
+ });
4372
+ tree.addMusicalNote(SPHERES.CHESED, "La", {
4373
+ note: "La",
4374
+ noteDescription: "A (La)"
4375
+ });
4376
+ tree.addMusicalNote(SPHERES.GEBURAH, "Do-treble", {
4377
+ note: "Do",
4378
+ noteDescription: "C (Do), in the treble clef"
4379
+ });
4380
+ tree.addMusicalNote(SPHERES.TIPHERETH, "Sol-treble", {
4381
+ note: "Sol",
4382
+ noteDescription: "G (Sol), in the treble clef"
4383
+ });
4384
+ tree.addMusicalNote(SPHERES.NETZACH, "Do", {
4385
+ note: "Do",
4386
+ noteDescription: "C (Do)"
4387
+ });
4388
+ tree.addMusicalNote(SPHERES.HOD, "Mi", {
4389
+ note: "Mi",
4390
+ noteDescription: "E (Mi)"
4391
+ });
4392
+ tree.addMusicalNote(SPHERES.YESOD, "Mi", {
4393
+ note: "Mi",
4394
+ noteDescription: "E (Mi)"
4395
+ });
4396
+ tree.addMusicalNote(SPHERES.MALKUTH, "Fa", {
4397
+ note: "Fa",
4398
+ noteDescription: "F (Fa)"
4399
+ });
4400
+ return tree;
4401
+ }
4402
+ function unloadMusicalNotes(tree) {
4403
+ const notes = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "musicalNote").map((note) => note.id));
4404
+ for (let i = 0; i < notes.length; i++) {
4405
+ tree.removeNode(notes[i]);
4406
+ }
3479
4407
  }
4408
+ var linkColorsAndSigns = (t) => {
4409
+ return t;
4410
+ };
4411
+ var loadWesternAstrology = (tree) => {
4412
+ tree.addWesternAstrologyPlanet(SPHERES.KETHER, PLANETS.NEPTUNE);
4413
+ tree.addWesternAstrologyPlanet(SPHERES.CHOKMAH, PLANETS.URANUS);
4414
+ tree.addWesternAstrologyPlanet(SPHERES.BINAH, PLANETS.SATURN);
4415
+ tree.addWesternAstrologyPlanet(SPHERES.DAATH, PLANETS.PLUTO);
4416
+ tree.addWesternAstrologyPlanet(SPHERES.CHESED, PLANETS.JUPITER);
4417
+ tree.addWesternAstrologyPlanet(SPHERES.GEBURAH, PLANETS.MARS);
4418
+ tree.addWesternAstrologyPlanet(SPHERES.TIPHERETH, PLANETS.SUN);
4419
+ tree.addWesternAstrologyPlanet(SPHERES.NETZACH, PLANETS.VENUS);
4420
+ tree.addWesternAstrologyPlanet(SPHERES.HOD, PLANETS.MERCURY);
4421
+ tree.addWesternAstrologyPlanet(SPHERES.YESOD, PLANETS.MOON);
4422
+ tree.addWesternAstrologyPlanet(SPHERES.MALKUTH, PLANETS.EARTH);
4423
+ return tree;
4424
+ };
4425
+ var unloadWesternAstrology = (tree) => {
4426
+ const planets = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "planet").map((planet) => planet.id));
4427
+ for (let i = 0; i < planets.length; i++) {
4428
+ tree.removeNode(planets[i]);
4429
+ }
4430
+ };
4431
+ var LOADERS = {
4432
+ base: loadHermeticQabalah,
4433
+ colors: loadColors,
4434
+ music: loadMusicalNotes,
4435
+ westernAstrology: loadWesternAstrology
4436
+ };
4437
+ var UNLOADERS = {
4438
+ base: unloadHermeticQabalah,
4439
+ colors: unloadColors,
4440
+ music: unloadMusicalNotes,
4441
+ westernAstrology: unloadWesternAstrology
4442
+ };
4443
+ var BRIDGES = [
4444
+ {
4445
+ id: "hermetic-qabalah-color-music",
4446
+ needs: ["colors", "music"],
4447
+ run: (t) => linkColorsAndSigns(t)
4448
+ }
4449
+ ];
3480
4450
 
3481
- // src/kaabalah/index.ts
3482
- var hebrewLetterMapping = /* @__PURE__ */ new Map([
3483
- [
3484
- "A",
3485
- {
3486
- letter: "A",
3487
- hebrewName: "Aleph",
3488
- hebrewCharacter: "\u05D0",
3489
- numericValue: 1,
3490
- majorArcana: 1,
3491
- astrologicalEnergy: "Air",
3492
- letterType: "mother"
4451
+ // src/core/systems/kaabalah.ts
4452
+ var kaabalah_exports = {};
4453
+ __export(kaabalah_exports, {
4454
+ BRIDGES: () => BRIDGES2,
4455
+ LOADERS: () => LOADERS2,
4456
+ SYSTEM: () => SYSTEM2,
4457
+ UNLOADERS: () => UNLOADERS2,
4458
+ loadColors: () => loadColors2,
4459
+ loadKaabalah: () => loadKaabalah,
4460
+ loadMusicalNotes: () => loadMusicalNotes2,
4461
+ loadTarot: () => loadTarot,
4462
+ loadWesternAstrology: () => loadWesternAstrology2,
4463
+ unloadColors: () => unloadColors2,
4464
+ unloadKaabalah: () => unloadKaabalah,
4465
+ unloadMusicalNotes: () => unloadMusicalNotes2,
4466
+ unloadTarot: () => unloadTarot,
4467
+ unloadWesternAstrology: () => unloadWesternAstrology2
4468
+ });
4469
+ var SYSTEM2 = "kaabalah";
4470
+ var loadKaabalah = (tree) => {
4471
+ const kether = tree.addSphere(SPHERES.KETHER, SPHERE_DATA.KETHER, 1);
4472
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, SPHERE_DATA.CHOKMAH, 2);
4473
+ const binah = tree.addSphere(SPHERES.BINAH, SPHERE_DATA.BINAH, 3);
4474
+ tree.addSphere(SPHERES.DAATH, SPHERE_DATA.DAATH, 11);
4475
+ const chesed = tree.addSphere(SPHERES.CHESED, SPHERE_DATA.CHESED, 4);
4476
+ const geburah = tree.addSphere(SPHERES.GEBURAH, SPHERE_DATA.GEBURAH, 5);
4477
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, SPHERE_DATA.TIPHERETH, 6);
4478
+ const netzach = tree.addSphere(SPHERES.NETZACH, SPHERE_DATA.NETZACH, 7);
4479
+ const hod = tree.addSphere(SPHERES.HOD, SPHERE_DATA.HOD, 8);
4480
+ const yesod = tree.addSphere(SPHERES.YESOD, SPHERE_DATA.YESOD, 9);
4481
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, SPHERE_DATA.MALKUTH, 10);
4482
+ const worlds = Object.entries(FOUR_WORLDS);
4483
+ const worldData = {
4484
+ ATZILUTH: {
4485
+ element: "fire",
4486
+ hebrewName: "Atzilith",
4487
+ englishName: "World of Emanation"
4488
+ },
4489
+ BRIAH: {
4490
+ element: "water",
4491
+ hebrewName: "Briah",
4492
+ englishName: "World of Creation"
4493
+ },
4494
+ YETZIRAH: {
4495
+ element: "air",
4496
+ hebrewName: "Yetzirah",
4497
+ englishName: "World of Formation"
4498
+ },
4499
+ ASSIAH: {
4500
+ element: "earth",
4501
+ hebrewName: "Assiah",
4502
+ englishName: "World of Action"
4503
+ }
4504
+ };
4505
+ for (const [key] of worlds) {
4506
+ tree.addWorld(
4507
+ FOUR_WORLDS[key],
4508
+ worldData[key]
4509
+ );
4510
+ }
4511
+ const path11 = tree.addPath(kether, chokmah, MELKITZEDEKI_PATHS.KETHER_CHOKMAH, {
4512
+ meaning: "Crown's wisdom"
4513
+ });
4514
+ const path12 = tree.addPath(kether, binah, MELKITZEDEKI_PATHS.KETHER_BINAH, {
4515
+ meaning: "Transparency's intelligence"
4516
+ });
4517
+ const path13 = tree.addPath(kether, tiphereth, MELKITZEDEKI_PATHS.KETHER_TIPHERETH, {
4518
+ meaning: "Great Ark Tekton (architect)"
4519
+ });
4520
+ const path14 = tree.addPath(chokmah, binah, MELKITZEDEKI_PATHS.CHOKMAH_BINAH, {
4521
+ meaning: "Light's wisdom that becomes sound"
4522
+ });
4523
+ const path15 = tree.addPath(chokmah, tiphereth, MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH, {
4524
+ meaning: "Light reaching equilibrium"
4525
+ });
4526
+ const path16 = tree.addPath(chokmah, chesed, MELKITZEDEKI_PATHS.CHOKMAH_CHESED, {
4527
+ meaning: "Expansive light"
4528
+ });
4529
+ const path17 = tree.addPath(binah, tiphereth, MELKITZEDEKI_PATHS.BINAH_TIPHERETH, {
4530
+ meaning: "Vibration that balances"
4531
+ });
4532
+ const path18 = tree.addPath(binah, geburah, MELKITZEDEKI_PATHS.BINAH_GEBURAH, {
4533
+ meaning: "Vibration that becomes dual"
4534
+ });
4535
+ const path19 = tree.addPath(chesed, geburah, MELKITZEDEKI_PATHS.CHESED_GEBURAH, {
4536
+ meaning: "Expansion towards duality"
4537
+ });
4538
+ const path20 = tree.addPath(chesed, tiphereth, MELKITZEDEKI_PATHS.CHESED_TIPHERETH, {
4539
+ meaning: "Expansion of equilibrium"
4540
+ });
4541
+ const path21 = tree.addPath(chesed, netzach, MELKITZEDEKI_PATHS.CHESED_NETZACH, {
4542
+ meaning: "Expansion of victory"
4543
+ });
4544
+ const path22 = tree.addPath(geburah, tiphereth, MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH, {
4545
+ meaning: "Harmonizing duality"
4546
+ });
4547
+ const path23 = tree.addPath(geburah, hod, MELKITZEDEKI_PATHS.GEBURAH_HOD, {
4548
+ meaning: "Duality from above with duality from below"
4549
+ });
4550
+ const path24 = tree.addPath(tiphereth, netzach, MELKITZEDEKI_PATHS.TIPHERETH_NETZACH, {
4551
+ meaning: "Illumination of victory"
4552
+ });
4553
+ const path25 = tree.addPath(tiphereth, yesod, MELKITZEDEKI_PATHS.TIPHERETH_YESOD, {
4554
+ meaning: "Illumination of foundations (secrets)"
4555
+ });
4556
+ const path26 = tree.addPath(tiphereth, hod, MELKITZEDEKI_PATHS.TIPHERETH_HOD, {
4557
+ meaning: "Illumination of reasons"
4558
+ });
4559
+ const path27 = tree.addPath(netzach, hod, MELKITZEDEKI_PATHS.NETZACH_HOD, {
4560
+ meaning: "Reason of emotions"
4561
+ });
4562
+ const path28 = tree.addPath(netzach, yesod, MELKITZEDEKI_PATHS.NETZACH_YESOD, {
4563
+ meaning: "Victory of inner emptiness"
4564
+ });
4565
+ const path29 = tree.addPath(netzach, malkuth, MELKITZEDEKI_PATHS.NETZACH_MALKUTH, {
4566
+ meaning: "Victory over matter"
4567
+ });
4568
+ const path30 = tree.addPath(hod, yesod, MELKITZEDEKI_PATHS.HOD_YESOD, {
4569
+ meaning: "Reason of foundations"
4570
+ });
4571
+ const path31 = tree.addPath(hod, malkuth, MELKITZEDEKI_PATHS.HOD_MALKUTH, {
4572
+ meaning: "Reason conquering the world"
4573
+ });
4574
+ const path32 = tree.addPath(yesod, malkuth, MELKITZEDEKI_PATHS.YESOD_MALKUTH, {
4575
+ meaning: "Filling the inner emptiness of the world"
4576
+ });
4577
+ tree.addLetters(path11, [
4578
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
4579
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
4580
+ ]);
4581
+ tree.addLetters(path12, [
4582
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
4583
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
4584
+ ]);
4585
+ tree.addLetters(path13, [
4586
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
4587
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
4588
+ ]);
4589
+ tree.addLetters(path14, [
4590
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
4591
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
4592
+ ]);
4593
+ tree.addLetters(path15, [
4594
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
4595
+ { letter: LATIN_LETTERS.\u00C3, type: "latinLetter" },
4596
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
4597
+ ]);
4598
+ tree.addLetters(path16, [
4599
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
4600
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
4601
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
4602
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
4603
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
4604
+ ]);
4605
+ tree.addLetters(path17, [
4606
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
4607
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
4608
+ ]);
4609
+ tree.addLetters(path18, [
4610
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
4611
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
4612
+ ]);
4613
+ tree.addLetters(path19, [
4614
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
4615
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
4616
+ ]);
4617
+ tree.addLetters(path20, [
4618
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
4619
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
4620
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
4621
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
4622
+ ]);
4623
+ tree.addLetters(path21, [
4624
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
4625
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
4626
+ ]);
4627
+ tree.addLetters(path22, [
4628
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
4629
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
4630
+ ]);
4631
+ tree.addLetters(path23, [
4632
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
4633
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
4634
+ ]);
4635
+ tree.addLetters(path24, [
4636
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
4637
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
4638
+ ]);
4639
+ tree.addLetters(path25, [
4640
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
4641
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
4642
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
4643
+ ]);
4644
+ tree.addLetters(path26, [
4645
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
4646
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
4647
+ ]);
4648
+ tree.addLetters(path27, [
4649
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
4650
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
4651
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
4652
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
4653
+ ]);
4654
+ tree.addLetters(path28, [
4655
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
4656
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
4657
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
4658
+ ]);
4659
+ tree.addLetters(path29, [
4660
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
4661
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
4662
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
4663
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
4664
+ ]);
4665
+ tree.addLetters(path30, [
4666
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
4667
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
4668
+ ]);
4669
+ tree.addLetters(path31, [
4670
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
4671
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
4672
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
4673
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
4674
+ ]);
4675
+ tree.addLetters(path32, [
4676
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
4677
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
4678
+ ]);
4679
+ return tree;
4680
+ };
4681
+ var unloadKaabalah = (tree) => {
4682
+ const spheres = Object.values(SPHERES);
4683
+ for (let i = 0; i < spheres.length; i++) {
4684
+ tree.removeNode(spheres[i]);
4685
+ }
4686
+ const paths = Object.values(MELKITZEDEKI_PATHS);
4687
+ for (let i = 0; i < paths.length; i++) {
4688
+ tree.removeNode(`path:${paths[i]}`);
4689
+ }
4690
+ };
4691
+ var loadColors2 = (tree) => {
4692
+ tree.addSphereColor(SPHERES.KETHER, "crystal", {
4693
+ colorDescription: "Transparent, clear, crystal-like. All the colors mixed, on their purest, most saint form",
4694
+ colorNames: ["transparent"],
4695
+ colorHexCodes: ["#cccccc"]
4696
+ });
4697
+ tree.addSphereColor(SPHERES.CHOKMAH, "iridescent", {
4698
+ 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.",
4699
+ colorNames: ["iridescent", "yellow", "blue", "green", "purple", "orange", "red"],
4700
+ colorHexCodes: ["#EDBBE7", "#FFF50F", "#0000FF", "#14FF00", "#8F00FF", "#FFA800", "#FF0000"]
4701
+ });
4702
+ tree.addSphereColor(SPHERES.BINAH, "black", {
4703
+ colorDescription: "All the colors mixed, on their lowest vibration.",
4704
+ colorNames: ["black"],
4705
+ colorHexCodes: ["#000000"]
4706
+ });
4707
+ tree.addSphereColor(SPHERES.DAATH, "white", {
4708
+ colorDescription: "All the colors mixed, on their highest vibration. Can also be represented by an yin-yang pattern.",
4709
+ colorNames: ["white"],
4710
+ colorHexCodes: ["#FFFFFF"]
4711
+ });
4712
+ tree.addSphereColor(SPHERES.CHESED, "blue", {
4713
+ colorDescription: "Blue",
4714
+ colorNames: ["blue"],
4715
+ colorHexCodes: ["#0000FF"]
4716
+ });
4717
+ tree.addSphereColor(SPHERES.GEBURAH, "red", {
4718
+ colorDescription: "Red",
4719
+ colorNames: ["red"],
4720
+ colorHexCodes: ["#FF0000"]
4721
+ });
4722
+ tree.addSphereColor(SPHERES.TIPHERETH, "yellow", {
4723
+ colorDescription: "Yellow",
4724
+ colorNames: ["yellow"],
4725
+ colorHexCodes: ["#FFF50F"]
4726
+ });
4727
+ tree.addSphereColor(SPHERES.NETZACH, "green", {
4728
+ colorDescription: "Green",
4729
+ colorNames: ["green"],
4730
+ colorHexCodes: ["#14FF00"]
4731
+ });
4732
+ tree.addSphereColor(SPHERES.HOD, "orange", {
4733
+ colorDescription: "Orange",
4734
+ colorNames: ["orange"],
4735
+ colorHexCodes: ["#FFA800"]
4736
+ });
4737
+ tree.addSphereColor(SPHERES.YESOD, "purple", {
4738
+ colorDescription: "Purple",
4739
+ colorNames: ["purple"],
4740
+ colorHexCodes: ["#8F00FF"]
4741
+ });
4742
+ tree.addSphereColor(SPHERES.MALKUTH, "malkuth", {
4743
+ 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.",
4744
+ colorNames: ["unsaturated yellow", "unsaturated green", "unsaturated brown", "unsaturated red"],
4745
+ colorHexCodes: ["#FFF659", "#70FF6E", "#422E29", "#FF5454"]
4746
+ });
4747
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
4748
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
4749
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
4750
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
4751
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
4752
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
4753
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
4754
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
4755
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
4756
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
4757
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
4758
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
4759
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
4760
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
4761
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
4762
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
4763
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
4764
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
4765
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
4766
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
4767
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
4768
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
4769
+ tree.addPathColor(path11, "gold", {
4770
+ colorDescription: "Gold",
4771
+ colorNames: ["gold"],
4772
+ colorHexCodes: ["#FFD700"]
4773
+ });
4774
+ tree.addPathColor(path12, "yellow", {
4775
+ colorDescription: "Yellow",
4776
+ colorNames: ["yellow"],
4777
+ colorHexCodes: ["#FFF50F"]
4778
+ });
4779
+ tree.addPathColor(path13, "grey", {
4780
+ colorDescription: "Grey",
4781
+ colorNames: ["grey"],
4782
+ colorHexCodes: ["#808080"]
4783
+ });
4784
+ tree.addPathColor(path14, "greenish-blue", {
4785
+ colorDescription: "Greenish blue",
4786
+ colorNames: ["greenish blue"],
4787
+ colorHexCodes: ["#5F9EA0"]
4788
+ });
4789
+ tree.addPathColor(path15, "red", {
4790
+ colorDescription: "Red",
4791
+ colorNames: ["red"],
4792
+ colorHexCodes: ["#FF0000"]
4793
+ });
4794
+ tree.addPathColor(path16, "Orange-red", {
4795
+ colorDescription: "Orange-red",
4796
+ colorNames: ["Orange-red"],
4797
+ colorHexCodes: ["#FF4500"]
4798
+ });
4799
+ tree.addPathColor(path17, "orange", {
4800
+ colorDescription: "Orange",
4801
+ colorNames: ["orange"],
4802
+ colorHexCodes: ["#FFA800"]
4803
+ });
4804
+ tree.addPathColor(path18, "amber", {
4805
+ colorDescription: "Amber",
4806
+ colorNames: ["amber"],
4807
+ colorHexCodes: ["#FF7F00"]
4808
+ });
4809
+ tree.addPathColor(path19, "greenish-yellow", {
4810
+ colorDescription: "Greenish yellow",
4811
+ colorNames: ["greenish yellow"],
4812
+ colorHexCodes: ["#D4FB19"]
4813
+ });
4814
+ tree.addPathColor(path20, "white", {
4815
+ colorDescription: "White",
4816
+ colorNames: ["white"],
4817
+ colorHexCodes: ["#FFFFFF"]
4818
+ });
4819
+ tree.addPathColor(path21, "blue", {
4820
+ colorDescription: "Blue",
4821
+ colorNames: ["blue"],
4822
+ colorHexCodes: ["#0000FF"]
4823
+ });
4824
+ tree.addPathColor(path22, "emerald-green", {
4825
+ colorDescription: "Emerald green",
4826
+ colorNames: ["emerald green"],
4827
+ colorHexCodes: ["#50C878"]
4828
+ });
4829
+ tree.addPathColor(path23, "light-blue", {
4830
+ colorDescription: "Light blue",
4831
+ colorNames: ["light blue"],
4832
+ colorHexCodes: ["#ADD8E6"]
4833
+ });
4834
+ tree.addPathColor(path24, "blueish-green", {
4835
+ colorDescription: "Greenish blue",
4836
+ colorNames: ["greenish blue"],
4837
+ colorHexCodes: ["#00ECA3"]
4838
+ });
4839
+ tree.addPathColor(path25, "blue", {
4840
+ colorDescription: "Blue",
4841
+ colorNames: ["blue"],
4842
+ colorHexCodes: ["#0000FF"]
4843
+ });
4844
+ tree.addPathColor(path26, "indigo", {
4845
+ colorDescription: "Indigo",
4846
+ colorNames: ["indigo"],
4847
+ colorHexCodes: ["#4B0082"]
4848
+ });
4849
+ tree.addPathColor(path27, "red", {
4850
+ colorDescription: "Red",
4851
+ colorNames: ["red"],
4852
+ colorHexCodes: ["#FF0000"]
4853
+ });
4854
+ tree.addPathColor(path28, "violet", {
4855
+ colorDescription: "Violet",
4856
+ colorNames: ["violet"],
4857
+ colorHexCodes: ["#8A2BE2"]
4858
+ });
4859
+ tree.addPathColor(path29, "crimson", {
4860
+ colorDescription: "Crimson",
4861
+ colorNames: ["crimson"],
4862
+ colorHexCodes: ["#DC143C"]
4863
+ });
4864
+ tree.addPathColor(path30, "orange", {
4865
+ colorDescription: "Orange",
4866
+ colorNames: ["orange"],
4867
+ colorHexCodes: ["#FFA800"]
4868
+ });
4869
+ tree.addPathColor(path31, "red", {
4870
+ colorDescription: "Red",
4871
+ colorNames: ["red"],
4872
+ colorHexCodes: ["#FF0000"]
4873
+ });
4874
+ tree.addPathColor(path32, "dark-grey", {
4875
+ colorDescription: "Dark grey",
4876
+ colorNames: ["dark grey"],
4877
+ colorHexCodes: ["#A9A9A9"]
4878
+ });
4879
+ return tree;
4880
+ };
4881
+ var unloadColors2 = (tree) => {
4882
+ const colors = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "color").map((color) => color.id));
4883
+ for (let i = 0; i < colors.length; i++) {
4884
+ tree.removeNode(colors[i]);
4885
+ }
4886
+ const letters = Object.values(HEBREW_LETTERS).flatMap((letter) => tree.related(letter, "color").map((color) => color.id));
4887
+ for (let i = 0; i < letters.length; i++) {
4888
+ tree.removeNode(letters[i]);
4889
+ }
4890
+ };
4891
+ var loadMusicalNotes2 = (tree) => {
4892
+ tree.addMusicalNote(SPHERES.KETHER, "Do", {
4893
+ note: "Do",
4894
+ noteDescription: "C (Do)"
4895
+ });
4896
+ tree.addMusicalNote(SPHERES.CHOKMAH, "Re", {
4897
+ note: "Re",
4898
+ noteDescription: "D (Re)"
4899
+ });
4900
+ tree.addMusicalNote(SPHERES.BINAH, "Mi", {
4901
+ note: "Mi",
4902
+ noteDescription: "E (Mi)"
4903
+ });
4904
+ tree.addMusicalNote(SPHERES.DAATH, "1st interval", {
4905
+ note: "Interval",
4906
+ noteDescription: "An interval"
4907
+ });
4908
+ tree.addMusicalNote(SPHERES.CHESED, "Fa", {
4909
+ note: "Fa",
4910
+ noteDescription: "F (Fa)"
4911
+ });
4912
+ tree.addMusicalNote(SPHERES.GEBURAH, "Sol", {
4913
+ note: "Sol",
4914
+ noteDescription: "G (Sol)"
4915
+ });
4916
+ tree.addMusicalNote(SPHERES.TIPHERETH, "The Thing-in-itself", {
4917
+ note: "The Thing-in-itself",
4918
+ noteDescription: "The central point of equilibrium; another interval"
4919
+ });
4920
+ tree.addMusicalNote(SPHERES.NETZACH, "La", {
4921
+ note: "La",
4922
+ noteDescription: "A (La)"
4923
+ });
4924
+ tree.addMusicalNote(SPHERES.HOD, "Si", {
4925
+ note: "Si",
4926
+ noteDescription: "B (Si)"
4927
+ });
4928
+ tree.addMusicalNote(SPHERES.YESOD, "2nd interval", {
4929
+ note: "Interval",
4930
+ noteDescription: "An interval"
4931
+ });
4932
+ tree.addMusicalNote(SPHERES.MALKUTH, "Do", {
4933
+ note: "Do",
4934
+ noteDescription: "C (Do)"
4935
+ });
4936
+ return tree;
4937
+ };
4938
+ var unloadMusicalNotes2 = (tree) => {
4939
+ const notes = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "musicalNote").map((note) => note.id));
4940
+ for (let i = 0; i < notes.length; i++) {
4941
+ tree.removeNode(notes[i]);
4942
+ }
4943
+ };
4944
+ var linkColorsAndSigns2 = (t) => {
4945
+ return t;
4946
+ };
4947
+ var loadWesternAstrology2 = (tree) => {
4948
+ tree.addWesternAstrologyPlanet(SPHERES.KETHER, PLANETS.NEPTUNE);
4949
+ tree.addWesternAstrologyPlanet(SPHERES.CHOKMAH, PLANETS.URANUS);
4950
+ tree.addWesternAstrologyPlanet(SPHERES.BINAH, PLANETS.SATURN);
4951
+ tree.addWesternAstrologyPlanet(SPHERES.DAATH, PLANETS.PLUTO);
4952
+ tree.addWesternAstrologyPlanet(SPHERES.CHESED, PLANETS.JUPITER);
4953
+ tree.addWesternAstrologyPlanet(SPHERES.GEBURAH, PLANETS.MARS);
4954
+ tree.addWesternAstrologyPlanet(SPHERES.TIPHERETH, PLANETS.SUN);
4955
+ tree.addWesternAstrologyPlanet(SPHERES.NETZACH, PLANETS.VENUS);
4956
+ tree.addWesternAstrologyPlanet(SPHERES.HOD, PLANETS.MERCURY);
4957
+ tree.addWesternAstrologyPlanet(SPHERES.YESOD, PLANETS.MOON);
4958
+ tree.addWesternAstrologyPlanet(SPHERES.MALKUTH, PLANETS.EARTH);
4959
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
4960
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
4961
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
4962
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
4963
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
4964
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
4965
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
4966
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
4967
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
4968
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
4969
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
4970
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
4971
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
4972
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
4973
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
4974
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
4975
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
4976
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
4977
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
4978
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
4979
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
4980
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
4981
+ tree.addWesternElement(path11, WESTERN_ELEMENTS.AIR);
4982
+ tree.addWesternAstrologyPlanet(path12, PLANETS.MOON);
4983
+ tree.addWesternAstrologyPlanet(path13, PLANETS.VENUS);
4984
+ tree.addWesternAstrologyPlanet(path14, PLANETS.JUPITER);
4985
+ tree.addWesternAstrologySign(path15, WESTERN_ZODIAC_SIGNS.ARIES, WESTERN_ZODIAC_SIGNS_DATA.ARIES, 1);
4986
+ tree.addWesternAstrologySign(path16, WESTERN_ZODIAC_SIGNS.TAURUS, WESTERN_ZODIAC_SIGNS_DATA.TAURUS, 2);
4987
+ tree.addWesternAstrologySign(path17, WESTERN_ZODIAC_SIGNS.GEMINI, WESTERN_ZODIAC_SIGNS_DATA.GEMINI, 3);
4988
+ tree.addWesternAstrologySign(path18, WESTERN_ZODIAC_SIGNS.CANCER, WESTERN_ZODIAC_SIGNS_DATA.CANCER, 4);
4989
+ tree.addWesternAstrologySign(path19, WESTERN_ZODIAC_SIGNS.LEO, WESTERN_ZODIAC_SIGNS_DATA.LEO, 5);
4990
+ tree.addWesternAstrologySign(path20, WESTERN_ZODIAC_SIGNS.VIRGO, WESTERN_ZODIAC_SIGNS_DATA.VIRGO, 6);
4991
+ tree.addWesternAstrologyPlanet(path21, PLANETS.MARS);
4992
+ tree.addWesternAstrologySign(path22, WESTERN_ZODIAC_SIGNS.LIBRA, WESTERN_ZODIAC_SIGNS_DATA.LIBRA, 7);
4993
+ tree.addWesternElement(path23, WESTERN_ELEMENTS.WATER);
4994
+ tree.addWesternAstrologySign(path24, WESTERN_ZODIAC_SIGNS.SCORPIO, WESTERN_ZODIAC_SIGNS_DATA.SCORPIO, 8);
4995
+ tree.addWesternAstrologySign(path25, WESTERN_ZODIAC_SIGNS.SAGITTARIUS, WESTERN_ZODIAC_SIGNS_DATA.SAGITTARIUS, 9);
4996
+ tree.addWesternAstrologySign(path26, WESTERN_ZODIAC_SIGNS.CAPRICORN, WESTERN_ZODIAC_SIGNS_DATA.CAPRICORN, 10);
4997
+ tree.addWesternAstrologyPlanet(path27, PLANETS.MERCURY);
4998
+ tree.addWesternAstrologySign(path28, WESTERN_ZODIAC_SIGNS.AQUARIUS, WESTERN_ZODIAC_SIGNS_DATA.AQUARIUS, 11);
4999
+ tree.addWesternAstrologySign(path29, WESTERN_ZODIAC_SIGNS.PISCES, WESTERN_ZODIAC_SIGNS_DATA.PISCES, 12);
5000
+ tree.addWesternAstrologyPlanet(path30, PLANETS.SATURN);
5001
+ tree.addWesternElement(path31, WESTERN_ELEMENTS.FIRE);
5002
+ tree.addWesternAstrologyPlanet(path32, PLANETS.SUN);
5003
+ return tree;
5004
+ };
5005
+ var unloadWesternAstrology2 = (tree) => {
5006
+ const planets = Object.values(SPHERES).flatMap((planet) => tree.related(planet, "planet").map((planet2) => planet2.id));
5007
+ for (let i = 0; i < planets.length; i++) {
5008
+ tree.removeNode(planets[i]);
5009
+ }
5010
+ const elements = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "westernElement").map((element) => element.id));
5011
+ for (let i = 0; i < elements.length; i++) {
5012
+ tree.removeNode(elements[i]);
5013
+ }
5014
+ const zodiacSigns = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "westernZodiacSign").map((sign) => sign.id));
5015
+ for (let i = 0; i < zodiacSigns.length; i++) {
5016
+ tree.removeNode(zodiacSigns[i]);
5017
+ }
5018
+ };
5019
+ var loadTarot = (tree) => {
5020
+ const path11 = `path:${MELKITZEDEKI_PATHS.KETHER_CHOKMAH}`;
5021
+ const path12 = `path:${MELKITZEDEKI_PATHS.KETHER_BINAH}`;
5022
+ const path13 = `path:${MELKITZEDEKI_PATHS.KETHER_TIPHERETH}`;
5023
+ const path14 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_BINAH}`;
5024
+ const path15 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_TIPHERETH}`;
5025
+ const path16 = `path:${MELKITZEDEKI_PATHS.CHOKMAH_CHESED}`;
5026
+ const path17 = `path:${MELKITZEDEKI_PATHS.BINAH_TIPHERETH}`;
5027
+ const path18 = `path:${MELKITZEDEKI_PATHS.BINAH_GEBURAH}`;
5028
+ const path19 = `path:${MELKITZEDEKI_PATHS.CHESED_GEBURAH}`;
5029
+ const path20 = `path:${MELKITZEDEKI_PATHS.CHESED_TIPHERETH}`;
5030
+ const path21 = `path:${MELKITZEDEKI_PATHS.CHESED_NETZACH}`;
5031
+ const path22 = `path:${MELKITZEDEKI_PATHS.GEBURAH_TIPHERETH}`;
5032
+ const path23 = `path:${MELKITZEDEKI_PATHS.GEBURAH_HOD}`;
5033
+ const path24 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_NETZACH}`;
5034
+ const path25 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_YESOD}`;
5035
+ const path26 = `path:${MELKITZEDEKI_PATHS.TIPHERETH_HOD}`;
5036
+ const path27 = `path:${MELKITZEDEKI_PATHS.NETZACH_HOD}`;
5037
+ const path28 = `path:${MELKITZEDEKI_PATHS.NETZACH_YESOD}`;
5038
+ const path29 = `path:${MELKITZEDEKI_PATHS.NETZACH_MALKUTH}`;
5039
+ const path30 = `path:${MELKITZEDEKI_PATHS.HOD_YESOD}`;
5040
+ const path31 = `path:${MELKITZEDEKI_PATHS.HOD_MALKUTH}`;
5041
+ const path32 = `path:${MELKITZEDEKI_PATHS.YESOD_MALKUTH}`;
5042
+ tree.addTarotArkAnnu(path11, TAROT_ARKANNUS.THE_MAGICIAN, TAROT_ARKANNUS_DATA.THE_MAGICIAN, 1);
5043
+ tree.addTarotArkAnnu(path12, TAROT_ARKANNUS.THE_HIGH_PRIESTESS, TAROT_ARKANNUS_DATA.THE_HIGH_PRIESTESS, 2);
5044
+ tree.addTarotArkAnnu(path13, TAROT_ARKANNUS.THE_EMPRESS, TAROT_ARKANNUS_DATA.THE_EMPRESS, 3);
5045
+ tree.addTarotArkAnnu(path14, TAROT_ARKANNUS.THE_EMPEROR, TAROT_ARKANNUS_DATA.THE_EMPEROR, 4);
5046
+ tree.addTarotArkAnnu(path15, TAROT_ARKANNUS.THE_HIEROPHANT, TAROT_ARKANNUS_DATA.THE_HIEROPHANT, 5);
5047
+ tree.addTarotArkAnnu(path16, TAROT_ARKANNUS.THE_LOVER, TAROT_ARKANNUS_DATA.THE_LOVER, 6);
5048
+ tree.addTarotArkAnnu(path17, TAROT_ARKANNUS.THE_CHARIOT, TAROT_ARKANNUS_DATA.THE_CHARIOT, 7);
5049
+ tree.addTarotArkAnnu(path18, TAROT_ARKANNUS.JUSTICE, TAROT_ARKANNUS_DATA.JUSTICE, 8);
5050
+ tree.addTarotArkAnnu(path19, TAROT_ARKANNUS.THE_HERMIT, TAROT_ARKANNUS_DATA.THE_HERMIT, 9);
5051
+ tree.addTarotArkAnnu(path20, TAROT_ARKANNUS.THE_WHEEL_OF_FORTUNE, TAROT_ARKANNUS_DATA.THE_WHEEL_OF_FORTUNE, 10);
5052
+ tree.addTarotArkAnnu(path21, TAROT_ARKANNUS.STRENGTH, TAROT_ARKANNUS_DATA.STRENGTH, 11);
5053
+ tree.addTarotArkAnnu(path22, TAROT_ARKANNUS.THE_HANGED_MAN, TAROT_ARKANNUS_DATA.THE_HANGED_MAN, 12);
5054
+ tree.addTarotArkAnnu(path23, TAROT_ARKANNUS.DEATH, TAROT_ARKANNUS_DATA.DEATH, 13);
5055
+ tree.addTarotArkAnnu(path24, TAROT_ARKANNUS.TEMPERANCE, TAROT_ARKANNUS_DATA.TEMPERANCE, 14);
5056
+ tree.addTarotArkAnnu(path25, TAROT_ARKANNUS.THE_DEVIL, TAROT_ARKANNUS_DATA.THE_DEVIL, 15);
5057
+ tree.addTarotArkAnnu(path26, TAROT_ARKANNUS.THE_TOWER, TAROT_ARKANNUS_DATA.THE_TOWER, 16);
5058
+ tree.addTarotArkAnnu(path27, TAROT_ARKANNUS.THE_STAR, TAROT_ARKANNUS_DATA.THE_STAR, 17);
5059
+ tree.addTarotArkAnnu(path28, TAROT_ARKANNUS.THE_MOON, TAROT_ARKANNUS_DATA.THE_MOON, 18);
5060
+ tree.addTarotArkAnnu(path29, TAROT_ARKANNUS.THE_SUN, TAROT_ARKANNUS_DATA.THE_SUN, 19);
5061
+ tree.addTarotArkAnnu(path30, TAROT_ARKANNUS.JUDGMENT, TAROT_ARKANNUS_DATA.JUDGMENT, 20);
5062
+ tree.addTarotArkAnnu(path31, TAROT_ARKANNUS.THE_FOOL, TAROT_ARKANNUS_DATA.THE_FOOL, 21);
5063
+ tree.addTarotArkAnnu(path32, TAROT_ARKANNUS.THE_WORLD, TAROT_ARKANNUS_DATA.THE_WORLD, 22);
5064
+ tree.addTarotSuit(TAROT_SUITS.WANDS, WESTERN_ELEMENTS.FIRE);
5065
+ tree.addTarotSuit(TAROT_SUITS.CUPS, WESTERN_ELEMENTS.WATER);
5066
+ tree.addTarotSuit(TAROT_SUITS.SWORDS, WESTERN_ELEMENTS.AIR);
5067
+ tree.addTarotSuit(TAROT_SUITS.PENTACLES, WESTERN_ELEMENTS.EARTH);
5068
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_WANDS, TAROT_ARKANNUS_DATA.KING_OF_WANDS, 23, TAROT_SUITS.WANDS);
5069
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_WANDS, TAROT_ARKANNUS_DATA.QUEEN_OF_WANDS, 24, TAROT_SUITS.WANDS);
5070
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_WANDS, TAROT_ARKANNUS_DATA.KNIGHT_OF_WANDS, 25, TAROT_SUITS.WANDS);
5071
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_WANDS, TAROT_ARKANNUS_DATA.PAGE_OF_WANDS, 26, TAROT_SUITS.WANDS);
5072
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_WANDS, TAROT_ARKANNUS_DATA.ACE_OF_WANDS, 27, TAROT_SUITS.WANDS);
5073
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_WANDS, TAROT_ARKANNUS_DATA.TWO_OF_WANDS, 28, TAROT_SUITS.WANDS);
5074
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_WANDS, TAROT_ARKANNUS_DATA.THREE_OF_WANDS, 29, TAROT_SUITS.WANDS);
5075
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_WANDS, TAROT_ARKANNUS_DATA.FOUR_OF_WANDS, 30, TAROT_SUITS.WANDS);
5076
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_WANDS, TAROT_ARKANNUS_DATA.FIVE_OF_WANDS, 31, TAROT_SUITS.WANDS);
5077
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_WANDS, TAROT_ARKANNUS_DATA.SIX_OF_WANDS, 32, TAROT_SUITS.WANDS);
5078
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_WANDS, TAROT_ARKANNUS_DATA.SEVEN_OF_WANDS, 33, TAROT_SUITS.WANDS);
5079
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_WANDS, TAROT_ARKANNUS_DATA.EIGHT_OF_WANDS, 34, TAROT_SUITS.WANDS);
5080
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_WANDS, TAROT_ARKANNUS_DATA.NINE_OF_WANDS, 35, TAROT_SUITS.WANDS);
5081
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_WANDS, TAROT_ARKANNUS_DATA.TEN_OF_WANDS, 36, TAROT_SUITS.WANDS);
5082
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_CUPS, TAROT_ARKANNUS_DATA.KING_OF_CUPS, 37, TAROT_SUITS.CUPS);
5083
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_CUPS, TAROT_ARKANNUS_DATA.QUEEN_OF_CUPS, 38, TAROT_SUITS.CUPS);
5084
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_CUPS, TAROT_ARKANNUS_DATA.KNIGHT_OF_CUPS, 39, TAROT_SUITS.CUPS);
5085
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_CUPS, TAROT_ARKANNUS_DATA.PAGE_OF_CUPS, 40, TAROT_SUITS.CUPS);
5086
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_CUPS, TAROT_ARKANNUS_DATA.ACE_OF_CUPS, 41, TAROT_SUITS.CUPS);
5087
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_CUPS, TAROT_ARKANNUS_DATA.TWO_OF_CUPS, 42, TAROT_SUITS.CUPS);
5088
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_CUPS, TAROT_ARKANNUS_DATA.THREE_OF_CUPS, 43, TAROT_SUITS.CUPS);
5089
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_CUPS, TAROT_ARKANNUS_DATA.FOUR_OF_CUPS, 44, TAROT_SUITS.CUPS);
5090
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_CUPS, TAROT_ARKANNUS_DATA.FIVE_OF_CUPS, 45, TAROT_SUITS.CUPS);
5091
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_CUPS, TAROT_ARKANNUS_DATA.SIX_OF_CUPS, 46, TAROT_SUITS.CUPS);
5092
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_CUPS, TAROT_ARKANNUS_DATA.SEVEN_OF_CUPS, 47, TAROT_SUITS.CUPS);
5093
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_CUPS, TAROT_ARKANNUS_DATA.EIGHT_OF_CUPS, 48, TAROT_SUITS.CUPS);
5094
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_CUPS, TAROT_ARKANNUS_DATA.NINE_OF_CUPS, 49, TAROT_SUITS.CUPS);
5095
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_CUPS, TAROT_ARKANNUS_DATA.TEN_OF_CUPS, 50, TAROT_SUITS.CUPS);
5096
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_SWORDS, TAROT_ARKANNUS_DATA.KING_OF_SWORDS, 51, TAROT_SUITS.SWORDS);
5097
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_SWORDS, TAROT_ARKANNUS_DATA.QUEEN_OF_SWORDS, 52, TAROT_SUITS.SWORDS);
5098
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_SWORDS, TAROT_ARKANNUS_DATA.KNIGHT_OF_SWORDS, 53, TAROT_SUITS.SWORDS);
5099
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_SWORDS, TAROT_ARKANNUS_DATA.PAGE_OF_SWORDS, 54, TAROT_SUITS.SWORDS);
5100
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_SWORDS, TAROT_ARKANNUS_DATA.ACE_OF_SWORDS, 55, TAROT_SUITS.SWORDS);
5101
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_SWORDS, TAROT_ARKANNUS_DATA.TWO_OF_SWORDS, 56, TAROT_SUITS.SWORDS);
5102
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_SWORDS, TAROT_ARKANNUS_DATA.THREE_OF_SWORDS, 57, TAROT_SUITS.SWORDS);
5103
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_SWORDS, TAROT_ARKANNUS_DATA.FOUR_OF_SWORDS, 58, TAROT_SUITS.SWORDS);
5104
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_SWORDS, TAROT_ARKANNUS_DATA.FIVE_OF_SWORDS, 59, TAROT_SUITS.SWORDS);
5105
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_SWORDS, TAROT_ARKANNUS_DATA.SIX_OF_SWORDS, 60, TAROT_SUITS.SWORDS);
5106
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_SWORDS, TAROT_ARKANNUS_DATA.SEVEN_OF_SWORDS, 61, TAROT_SUITS.SWORDS);
5107
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_SWORDS, TAROT_ARKANNUS_DATA.EIGHT_OF_SWORDS, 62, TAROT_SUITS.SWORDS);
5108
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_SWORDS, TAROT_ARKANNUS_DATA.NINE_OF_SWORDS, 63, TAROT_SUITS.SWORDS);
5109
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_SWORDS, TAROT_ARKANNUS_DATA.TEN_OF_SWORDS, 64, TAROT_SUITS.SWORDS);
5110
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KING_OF_PENTACLES, TAROT_ARKANNUS_DATA.KING_OF_PENTACLES, 65, TAROT_SUITS.PENTACLES);
5111
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.QUEEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.QUEEN_OF_PENTACLES, 66, TAROT_SUITS.PENTACLES);
5112
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.KNIGHT_OF_PENTACLES, TAROT_ARKANNUS_DATA.KNIGHT_OF_PENTACLES, 67, TAROT_SUITS.PENTACLES);
5113
+ tree.addTarotArkAnnu(SPHERES.DAATH, TAROT_ARKANNUS.PAGE_OF_PENTACLES, TAROT_ARKANNUS_DATA.PAGE_OF_PENTACLES, 68, TAROT_SUITS.PENTACLES);
5114
+ tree.addTarotArkAnnu(SPHERES.KETHER, TAROT_ARKANNUS.ACE_OF_PENTACLES, TAROT_ARKANNUS_DATA.ACE_OF_PENTACLES, 69, TAROT_SUITS.PENTACLES);
5115
+ tree.addTarotArkAnnu(SPHERES.CHOKMAH, TAROT_ARKANNUS.TWO_OF_PENTACLES, TAROT_ARKANNUS_DATA.TWO_OF_PENTACLES, 70, TAROT_SUITS.PENTACLES);
5116
+ tree.addTarotArkAnnu(SPHERES.BINAH, TAROT_ARKANNUS.THREE_OF_PENTACLES, TAROT_ARKANNUS_DATA.THREE_OF_PENTACLES, 71, TAROT_SUITS.PENTACLES);
5117
+ tree.addTarotArkAnnu(SPHERES.CHESED, TAROT_ARKANNUS.FOUR_OF_PENTACLES, TAROT_ARKANNUS_DATA.FOUR_OF_PENTACLES, 72, TAROT_SUITS.PENTACLES);
5118
+ tree.addTarotArkAnnu(SPHERES.GEBURAH, TAROT_ARKANNUS.FIVE_OF_PENTACLES, TAROT_ARKANNUS_DATA.FIVE_OF_PENTACLES, 73, TAROT_SUITS.PENTACLES);
5119
+ tree.addTarotArkAnnu(SPHERES.TIPHERETH, TAROT_ARKANNUS.SIX_OF_PENTACLES, TAROT_ARKANNUS_DATA.SIX_OF_PENTACLES, 74, TAROT_SUITS.PENTACLES);
5120
+ tree.addTarotArkAnnu(SPHERES.NETZACH, TAROT_ARKANNUS.SEVEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.SEVEN_OF_PENTACLES, 75, TAROT_SUITS.PENTACLES);
5121
+ tree.addTarotArkAnnu(SPHERES.HOD, TAROT_ARKANNUS.EIGHT_OF_PENTACLES, TAROT_ARKANNUS_DATA.EIGHT_OF_PENTACLES, 76, TAROT_SUITS.PENTACLES);
5122
+ tree.addTarotArkAnnu(SPHERES.YESOD, TAROT_ARKANNUS.NINE_OF_PENTACLES, TAROT_ARKANNUS_DATA.NINE_OF_PENTACLES, 77, TAROT_SUITS.PENTACLES);
5123
+ tree.addTarotArkAnnu(SPHERES.MALKUTH, TAROT_ARKANNUS.TEN_OF_PENTACLES, TAROT_ARKANNUS_DATA.TEN_OF_PENTACLES, 78, TAROT_SUITS.PENTACLES);
5124
+ return tree;
5125
+ };
5126
+ var unloadTarot = (tree) => {
5127
+ const suits = Object.values(WESTERN_ELEMENTS).flatMap((element) => tree.related(`westernElement:${element}`, "tarotSuit").map((suit) => suit.id));
5128
+ for (let i = 0; i < suits.length; i++) {
5129
+ tree.removeNode(suits[i]);
5130
+ }
5131
+ const majorArkAnnus = Object.values(MELKITZEDEKI_PATHS).flatMap((path) => tree.related(`path:${path}`, "tarotArkAnnu").map((arkannus) => arkannus.id));
5132
+ for (let i = 0; i < majorArkAnnus.length; i++) {
5133
+ tree.removeNode(majorArkAnnus[i]);
5134
+ }
5135
+ const minorArkAnnus = Object.values(SPHERES).flatMap((sphere) => tree.related(sphere, "tarotArkAnnu").map((arkannus) => arkannus.id));
5136
+ for (let i = 0; i < minorArkAnnus.length; i++) {
5137
+ tree.removeNode(minorArkAnnus[i]);
5138
+ }
5139
+ return tree;
5140
+ };
5141
+ var LOADERS2 = {
5142
+ base: loadKaabalah,
5143
+ colors: loadColors2,
5144
+ music: loadMusicalNotes2,
5145
+ westernAstrology: loadWesternAstrology2,
5146
+ tarot: loadTarot
5147
+ };
5148
+ var UNLOADERS2 = {
5149
+ base: unloadKaabalah,
5150
+ colors: unloadColors2,
5151
+ music: unloadMusicalNotes2,
5152
+ westernAstrology: unloadWesternAstrology2,
5153
+ tarot: unloadTarot
5154
+ };
5155
+ var BRIDGES2 = [
5156
+ {
5157
+ id: "kaabalah-color-music",
5158
+ needs: ["colors", "music"],
5159
+ run: (t) => linkColorsAndSigns2(t)
5160
+ }
5161
+ ];
5162
+
5163
+ // src/core/systems/lurianic-kabbalah.ts
5164
+ var lurianic_kabbalah_exports = {};
5165
+ __export(lurianic_kabbalah_exports, {
5166
+ BRIDGES: () => BRIDGES3,
5167
+ LOADERS: () => LOADERS3,
5168
+ SYSTEM: () => SYSTEM3,
5169
+ UNLOADERS: () => UNLOADERS3,
5170
+ loadLurianicKabbalah: () => loadLurianicKabbalah,
5171
+ unloadLurianicKabbalah: () => unloadLurianicKabbalah
5172
+ });
5173
+ var SYSTEM3 = "lurianic-kabbalah";
5174
+ function loadLurianicKabbalah(tree) {
5175
+ const kether = tree.addSphere(SPHERES.KETHER, SPHERE_DATA.KETHER, 1);
5176
+ const chokmah = tree.addSphere(SPHERES.CHOKMAH, SPHERE_DATA.CHOKMAH, 2);
5177
+ const binah = tree.addSphere(SPHERES.BINAH, SPHERE_DATA.BINAH, 3);
5178
+ const chesed = tree.addSphere(SPHERES.CHESED, SPHERE_DATA.CHESED, 4);
5179
+ const geburah = tree.addSphere(SPHERES.GEBURAH, SPHERE_DATA.GEBURAH, 5);
5180
+ const tiphereth = tree.addSphere(SPHERES.TIPHERETH, SPHERE_DATA.TIPHERETH, 6);
5181
+ const netzach = tree.addSphere(SPHERES.NETZACH, SPHERE_DATA.NETZACH, 7);
5182
+ const hod = tree.addSphere(SPHERES.HOD, SPHERE_DATA.HOD, 8);
5183
+ const yesod = tree.addSphere(SPHERES.YESOD, SPHERE_DATA.YESOD, 9);
5184
+ const malkuth = tree.addSphere(SPHERES.MALKUTH, SPHERE_DATA.MALKUTH, 10);
5185
+ const worlds = Object.entries(FOUR_WORLDS);
5186
+ const worldData = {
5187
+ ATZILUTH: {
5188
+ element: "fire",
5189
+ hebrewName: "Atzilith",
5190
+ englishName: "World of Emanation"
5191
+ },
5192
+ BRIAH: {
5193
+ element: "water",
5194
+ hebrewName: "Briah",
5195
+ englishName: "World of Creation"
5196
+ },
5197
+ YETZIRAH: {
5198
+ element: "air",
5199
+ hebrewName: "Yetzirah",
5200
+ englishName: "World of Formation"
5201
+ },
5202
+ ASSIAH: {
5203
+ element: "earth",
5204
+ hebrewName: "Assiah",
5205
+ englishName: "World of Action"
5206
+ }
5207
+ };
5208
+ for (const [key] of worlds) {
5209
+ tree.addWorld(
5210
+ FOUR_WORLDS[key],
5211
+ worldData[key]
5212
+ );
5213
+ }
5214
+ const path11 = tree.addPath(kether, chokmah, LURIANIC_PATHS.KETHER_CHOKMAH);
5215
+ const path12 = tree.addPath(kether, binah, LURIANIC_PATHS.KETHER_BINAH);
5216
+ const path13 = tree.addPath(kether, tiphereth, LURIANIC_PATHS.KETHER_TIPHERETH);
5217
+ const path14 = tree.addPath(chokmah, binah, LURIANIC_PATHS.CHOKMAH_BINAH);
5218
+ const path15 = tree.addPath(chokmah, geburah, LURIANIC_PATHS.CHOKMAH_GEBURAH);
5219
+ const path16 = tree.addPath(chokmah, tiphereth, LURIANIC_PATHS.CHOKMAH_TIPHERETH);
5220
+ const path17 = tree.addPath(chokmah, chesed, LURIANIC_PATHS.CHOKMAH_CHESED);
5221
+ const path18 = tree.addPath(binah, chesed, LURIANIC_PATHS.BINAH_CHESED);
5222
+ const path19 = tree.addPath(binah, tiphereth, LURIANIC_PATHS.BINAH_TIPHERETH);
5223
+ const path20 = tree.addPath(binah, geburah, LURIANIC_PATHS.BINAH_GEBURAH);
5224
+ const path21 = tree.addPath(chesed, geburah, LURIANIC_PATHS.CHESED_GEBURAH);
5225
+ const path22 = tree.addPath(chesed, tiphereth, LURIANIC_PATHS.CHESED_TIPHERETH);
5226
+ const path23 = tree.addPath(chesed, netzach, LURIANIC_PATHS.CHESED_NETZACH);
5227
+ const path24 = tree.addPath(geburah, tiphereth, LURIANIC_PATHS.GEBURAH_TIPHERETH);
5228
+ const path25 = tree.addPath(geburah, hod, LURIANIC_PATHS.GEBURAH_HOD);
5229
+ const path26 = tree.addPath(tiphereth, netzach, LURIANIC_PATHS.TIPHERETH_NETZACH);
5230
+ const path27 = tree.addPath(tiphereth, yesod, LURIANIC_PATHS.TIPHERETH_YESOD);
5231
+ const path28 = tree.addPath(tiphereth, hod, LURIANIC_PATHS.TIPHERETH_HOD);
5232
+ const path29 = tree.addPath(netzach, hod, LURIANIC_PATHS.NETZACH_HOD);
5233
+ const path30 = tree.addPath(netzach, yesod, LURIANIC_PATHS.NETZACH_YESOD);
5234
+ const path31 = tree.addPath(hod, yesod, LURIANIC_PATHS.HOD_YESOD);
5235
+ const path32 = tree.addPath(yesod, malkuth, LURIANIC_PATHS.YESOD_MALKUTH);
5236
+ tree.addLetters(path11, [
5237
+ { letter: LATIN_LETTERS.E, type: "latinLetter" },
5238
+ { letter: HEBREW_LETTERS.HE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HE }
5239
+ ]);
5240
+ tree.addLetters(path12, [
5241
+ { letter: LATIN_LETTERS.V, type: "latinLetter" },
5242
+ { letter: LATIN_LETTERS.U, type: "latinLetter" },
5243
+ { letter: LATIN_LETTERS.W, type: "latinLetter" },
5244
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
5245
+ { letter: HEBREW_LETTERS.VAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.VAV }
5246
+ ]);
5247
+ tree.addLetters(path13, [
5248
+ { letter: LATIN_LETTERS.D, type: "latinLetter" },
5249
+ { letter: HEBREW_LETTERS.DALET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.DALET }
5250
+ ]);
5251
+ tree.addLetters(path14, [
5252
+ { letter: LATIN_LETTERS.CH, type: "latinLetter" },
5253
+ { letter: LATIN_LETTERS.SH, type: "latinLetter" },
5254
+ { letter: LATIN_LETTERS.X, type: "latinLetter" },
5255
+ { letter: HEBREW_LETTERS.SHIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SHIN }
5256
+ ]);
5257
+ tree.addLetters(path15, [
5258
+ { letter: LATIN_LETTERS.Z, type: "latinLetter" },
5259
+ { letter: HEBREW_LETTERS.ZAYIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ZAYIN }
5260
+ ]);
5261
+ tree.addLetters(path16, [
5262
+ { letter: LATIN_LETTERS.T, type: "latinLetter" },
5263
+ { letter: HEBREW_LETTERS.TET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TET }
5264
+ ]);
5265
+ tree.addLetters(path17, [
5266
+ { letter: LATIN_LETTERS.B, type: "latinLetter" },
5267
+ { letter: HEBREW_LETTERS.BETH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.BETH }
5268
+ ]);
5269
+ tree.addLetters(path18, [
5270
+ { letter: LATIN_LETTERS.H, type: "latinLetter" },
5271
+ { letter: HEBREW_LETTERS.HET, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.HET }
5272
+ ]);
5273
+ tree.addLetters(path19, [
5274
+ { letter: LATIN_LETTERS.I, type: "latinLetter" },
5275
+ { letter: LATIN_LETTERS.J, type: "latinLetter" },
5276
+ { letter: LATIN_LETTERS.Y, type: "latinLetter" },
5277
+ { letter: HEBREW_LETTERS.YOD, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.YOD }
5278
+ ]);
5279
+ tree.addLetters(path20, [
5280
+ { letter: LATIN_LETTERS.G, type: "latinLetter" },
5281
+ { letter: HEBREW_LETTERS.GIMEL, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.GIMEL }
5282
+ ]);
5283
+ tree.addLetters(path21, [
5284
+ { letter: LATIN_LETTERS.A, type: "latinLetter" },
5285
+ { letter: HEBREW_LETTERS.ALEPH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.ALEPH }
5286
+ ]);
5287
+ tree.addLetters(path22, [
5288
+ { letter: LATIN_LETTERS.L, type: "latinLetter" },
5289
+ { letter: HEBREW_LETTERS.LAMED, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.LAMED }
5290
+ ]);
5291
+ tree.addLetters(path23, [
5292
+ { letter: LATIN_LETTERS.C, type: "latinLetter" },
5293
+ { letter: HEBREW_LETTERS.KAF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.KAF }
5294
+ ]);
5295
+ tree.addLetters(path24, [
5296
+ { letter: LATIN_LETTERS.N, type: "latinLetter" },
5297
+ { letter: HEBREW_LETTERS.NUN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.NUN }
5298
+ ]);
5299
+ tree.addLetters(path25, [
5300
+ { letter: LATIN_LETTERS.P, type: "latinLetter" },
5301
+ { letter: LATIN_LETTERS.F, type: "latinLetter" },
5302
+ { letter: LATIN_LETTERS.PH, type: "latinLetter" },
5303
+ { letter: HEBREW_LETTERS.PE, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.PE }
5304
+ ]);
5305
+ tree.addLetters(path26, [
5306
+ { letter: LATIN_LETTERS.S, type: "latinLetter" },
5307
+ { letter: LATIN_LETTERS.\u00C7, type: "latinLetter" },
5308
+ { letter: HEBREW_LETTERS.SAMEKH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.SAMEKH }
5309
+ ]);
5310
+ tree.addLetters(path27, [
5311
+ { letter: LATIN_LETTERS.R, type: "latinLetter" },
5312
+ { letter: HEBREW_LETTERS.RESH, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.RESH }
5313
+ ]);
5314
+ tree.addLetters(path28, [
5315
+ { letter: LATIN_LETTERS.O, type: "latinLetter" },
5316
+ { letter: HEBREW_LETTERS.AIN, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.AIN }
5317
+ ]);
5318
+ tree.addLetters(path29, [
5319
+ { letter: LATIN_LETTERS.M, type: "latinLetter" },
5320
+ { letter: HEBREW_LETTERS.MEM, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.MEM }
5321
+ ]);
5322
+ tree.addLetters(path30, [
5323
+ { letter: LATIN_LETTERS.TS, type: "latinLetter" },
5324
+ { letter: LATIN_LETTERS.TZ, type: "latinLetter" },
5325
+ { letter: HEBREW_LETTERS.TSADI, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TSADI }
5326
+ ]);
5327
+ tree.addLetters(path31, [
5328
+ { letter: LATIN_LETTERS.K, type: "latinLetter" },
5329
+ { letter: LATIN_LETTERS.Q, type: "latinLetter" },
5330
+ { letter: LATIN_LETTERS.KH, type: "latinLetter" },
5331
+ { letter: HEBREW_LETTERS.QOF, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.QOF }
5332
+ ]);
5333
+ tree.addLetters(path32, [
5334
+ { letter: LATIN_LETTERS.TH, type: "latinLetter" },
5335
+ { letter: HEBREW_LETTERS.TAV, type: "hebrewLetter", data: HEBREW_LETTERS_DATA.TAV }
5336
+ ]);
5337
+ return tree;
5338
+ }
5339
+ function unloadLurianicKabbalah(tree) {
5340
+ const spheres = Object.values(SPHERES);
5341
+ for (let i = 0; i < spheres.length; i++) {
5342
+ tree.removeNode(spheres[i]);
5343
+ }
5344
+ const paths = Object.values(LURIANIC_PATHS);
5345
+ for (let i = 0; i < paths.length; i++) {
5346
+ tree.removeNode(`path:${paths[i]}`);
5347
+ }
5348
+ }
5349
+ var LOADERS3 = {
5350
+ base: loadLurianicKabbalah
5351
+ };
5352
+ var UNLOADERS3 = {
5353
+ base: unloadLurianicKabbalah
5354
+ };
5355
+ var BRIDGES3 = [];
5356
+
5357
+ // src/core/systems/registry.ts
5358
+ var SYSTEMS = [kaabalah_exports, hermetic_qabalah_exports, lurianic_kabbalah_exports];
5359
+
5360
+ // src/core/systems/module-manager.ts
5361
+ var ModuleManager = class {
5362
+ constructor(t) {
5363
+ this.t = t;
5364
+ this.activeSystem = null;
5365
+ this.loadedParts = /* @__PURE__ */ new Set();
5366
+ this.bridgedParts = /* @__PURE__ */ new Set();
5367
+ }
5368
+ /**
5369
+ * Loads the base of a system (switching if necessary)
5370
+ * @param systemKey - the key of the system to load
5371
+ */
5372
+ loadSystem(systemKey) {
5373
+ if (this.activeSystem === systemKey) {
5374
+ return;
5375
+ }
5376
+ if (this.activeSystem) {
5377
+ this.unloadSystem();
5378
+ }
5379
+ const loadedSystem = SYSTEMS.find((s) => s.SYSTEM === systemKey);
5380
+ if (!loadedSystem) {
5381
+ throw new Error(`System ${systemKey} not found`);
5382
+ }
5383
+ loadedSystem.LOADERS.base(this.t);
5384
+ this.activeSystem = systemKey;
5385
+ this.loadedParts.clear();
5386
+ this.loadedParts.add("base");
5387
+ }
5388
+ /**
5389
+ * Loads an optional part (colors, music, etc)
5390
+ * @param partKey - the key of the part to load
5391
+ */
5392
+ loadPart(partKey) {
5393
+ if (!this.activeSystem) {
5394
+ throw new Error("load a system first");
5395
+ }
5396
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
5397
+ if (!system) {
5398
+ throw new Error(`System ${this.activeSystem} not found`);
3493
5399
  }
3494
- ],
3495
- [
3496
- "\xC3",
3497
- {
3498
- letter: "\xC3",
3499
- hebrewName: "Aleph",
3500
- hebrewCharacter: "\u05D0",
3501
- numericValue: 5,
3502
- majorArcana: 1,
3503
- astrologicalEnergy: "Air",
3504
- letterType: "mother"
5400
+ if (this.loadedParts.has(partKey)) {
5401
+ return;
3505
5402
  }
3506
- ],
3507
- [
3508
- "B",
3509
- {
3510
- letter: "B",
3511
- hebrewName: "Beth",
3512
- hebrewCharacter: "\u05D1",
3513
- numericValue: 2,
3514
- majorArcana: 2,
3515
- astrologicalEnergy: "Moon",
3516
- letterType: "double"
5403
+ system.LOADERS[partKey](this.t);
5404
+ this.loadedParts.add(partKey);
5405
+ const possiblePartBridges = system.BRIDGES.filter((b) => b.needs.includes(partKey) && !this.bridgedParts.has(b.id) && b.needs.every((n) => this.loadedParts.has(n)));
5406
+ for (const bridge of possiblePartBridges) {
5407
+ bridge.run(this.t);
5408
+ this.bridgedParts.add(bridge.id);
3517
5409
  }
3518
- ],
3519
- [
3520
- "G",
3521
- {
3522
- letter: "G",
3523
- hebrewName: "Gimel",
3524
- hebrewCharacter: "\u05D2",
3525
- numericValue: 3,
3526
- majorArcana: 3,
3527
- astrologicalEnergy: "Venus",
3528
- letterType: "double"
5410
+ }
5411
+ /**
5412
+ * Unloads the active system and all its parts
5413
+ */
5414
+ unloadSystem() {
5415
+ if (!this.activeSystem) {
5416
+ return;
3529
5417
  }
3530
- ],
3531
- [
3532
- "D",
3533
- {
3534
- letter: "D",
3535
- hebrewName: "Daleth",
3536
- hebrewCharacter: "\u05D3",
3537
- numericValue: 4,
3538
- majorArcana: 4,
3539
- astrologicalEnergy: "Jupiter",
3540
- letterType: "double"
5418
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
5419
+ if (!system) {
5420
+ throw new Error(`System ${this.activeSystem} not found`);
3541
5421
  }
3542
- ],
3543
- [
3544
- "E",
3545
- {
3546
- letter: "E",
3547
- hebrewName: "He",
3548
- hebrewCharacter: "\u05D4",
3549
- numericValue: 5,
3550
- majorArcana: 5,
3551
- astrologicalEnergy: "Aries",
3552
- letterType: "simple"
5422
+ const reversedParts = [...this.loadedParts].reverse();
5423
+ for (const part of reversedParts) {
5424
+ system.UNLOADERS[part](this.t);
3553
5425
  }
3554
- ],
3555
- [
3556
- "V",
3557
- {
3558
- letter: "V",
3559
- hebrewName: "Vav",
3560
- hebrewCharacter: "\u05D5",
3561
- numericValue: 6,
3562
- majorArcana: 6,
3563
- astrologicalEnergy: "Taurus",
3564
- letterType: "simple"
5426
+ this.activeSystem = null;
5427
+ this.loadedParts.clear();
5428
+ this.bridgedParts.clear();
5429
+ }
5430
+ /**
5431
+ * Runs a bridge (that connects two parts) if it is not already run and all its needs are loaded
5432
+ * @param bridgeKey - the key of the bridge to run
5433
+ */
5434
+ runBridge(bridgeKey) {
5435
+ const system = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
5436
+ if (!system) {
5437
+ throw new Error(`System ${this.activeSystem} not found`);
3565
5438
  }
3566
- ],
3567
- [
3568
- "U",
3569
- {
3570
- letter: "U",
3571
- hebrewName: "Vav",
3572
- hebrewCharacter: "\u05D5",
3573
- numericValue: 6,
3574
- majorArcana: 6,
3575
- astrologicalEnergy: "Taurus",
3576
- letterType: "simple"
5439
+ const bridge = system.BRIDGES.find((b) => b.id === bridgeKey);
5440
+ if (!bridge) {
5441
+ throw new Error(`Bridge ${bridgeKey} not found`);
3577
5442
  }
3578
- ],
3579
- [
3580
- "W",
3581
- {
3582
- letter: "W",
3583
- hebrewName: "Vav",
3584
- hebrewCharacter: "\u05D5",
3585
- numericValue: 6,
3586
- majorArcana: 6,
3587
- astrologicalEnergy: "Taurus",
3588
- letterType: "simple"
5443
+ if (!this.bridgedParts.has(bridge.id) && bridge.needs.every((n) => this.loadedParts.has(n))) {
5444
+ bridge.run(this.t);
5445
+ this.bridgedParts.add(bridge.id);
3589
5446
  }
3590
- ],
3591
- [
3592
- "O",
3593
- {
3594
- letter: "O",
3595
- hebrewName: "Vav",
3596
- hebrewCharacter: "\u05D5",
3597
- numericValue: 6,
3598
- majorArcana: 6,
3599
- astrologicalEnergy: "Taurus",
3600
- letterType: "simple"
5447
+ }
5448
+ listAvailableParts() {
5449
+ if (!this.activeSystem) {
5450
+ throw new Error("No system loaded");
3601
5451
  }
3602
- ],
3603
- [
3604
- "Z",
3605
- {
3606
- letter: "Z",
3607
- hebrewName: "Zayin",
3608
- hebrewCharacter: "\u05D6",
3609
- numericValue: 7,
3610
- majorArcana: 7,
3611
- astrologicalEnergy: "Gemini",
3612
- letterType: "simple"
5452
+ const installedSystem = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
5453
+ if (!installedSystem) {
5454
+ throw new Error(`System ${this.activeSystem} not found`);
3613
5455
  }
3614
- ],
3615
- [
3616
- "H",
3617
- {
3618
- letter: "H",
3619
- hebrewName: "Cheth",
3620
- hebrewCharacter: "\u05D7",
3621
- numericValue: 8,
3622
- majorArcana: 8,
3623
- astrologicalEnergy: "Cancer",
3624
- letterType: "simple"
5456
+ return Object.keys(installedSystem.LOADERS).filter((p) => p !== "base");
5457
+ }
5458
+ listAvailableBridges() {
5459
+ if (!this.activeSystem) {
5460
+ throw new Error("No system loaded");
3625
5461
  }
3626
- ],
3627
- [
3628
- "T",
3629
- {
3630
- letter: "T",
3631
- hebrewName: "Teth",
3632
- hebrewCharacter: "\u05D8",
3633
- numericValue: 9,
3634
- majorArcana: 9,
3635
- astrologicalEnergy: "Leo",
3636
- letterType: "simple"
5462
+ const installedSystem = SYSTEMS.find((s) => s.SYSTEM === this.activeSystem);
5463
+ if (!installedSystem) {
5464
+ throw new Error(`System ${this.activeSystem} not found`);
3637
5465
  }
3638
- ],
3639
- [
3640
- "TH",
3641
- {
3642
- letter: "Th",
3643
- hebrewName: "Tav",
3644
- hebrewCharacter: "\u05EA",
3645
- numericValue: 400,
3646
- majorArcana: 22,
3647
- astrologicalEnergy: "Sun",
3648
- letterType: "double"
5466
+ return installedSystem.BRIDGES;
5467
+ }
5468
+ listLoadedParts() {
5469
+ return [...this.loadedParts];
5470
+ }
5471
+ listBridgedParts() {
5472
+ return [...this.bridgedParts];
5473
+ }
5474
+ getActiveSystem() {
5475
+ return this.activeSystem;
5476
+ }
5477
+ };
5478
+
5479
+ // src/core/tree-of-life.ts
5480
+ var TreeOfLife = class {
5481
+ constructor() {
5482
+ this.nodes = /* @__PURE__ */ new Map();
5483
+ this.adjacent = /* @__PURE__ */ new Map();
5484
+ this.modules = new ModuleManager(this);
5485
+ }
5486
+ /**
5487
+ * Loads the tree of life system to be used
5488
+ * @param systemKey - the key of the system to load
5489
+ */
5490
+ loadSystem(systemKey) {
5491
+ this.modules.loadSystem(systemKey);
5492
+ }
5493
+ /**
5494
+ * Loads a part of a system into the tree of life
5495
+ * @param partKey - the key of the part to load
5496
+ */
5497
+ loadPart(partKey) {
5498
+ this.modules.loadPart(partKey);
5499
+ }
5500
+ /**
5501
+ * Unloads the tree of life system and all its parts
5502
+ */
5503
+ unloadSystem() {
5504
+ this.modules.unloadSystem();
5505
+ }
5506
+ get activeSystem() {
5507
+ return this.modules.getActiveSystem();
5508
+ }
5509
+ get availableParts() {
5510
+ return this.modules.listAvailableParts();
5511
+ }
5512
+ get loadedParts() {
5513
+ return this.modules.listLoadedParts();
5514
+ }
5515
+ get availableBridges() {
5516
+ return this.modules.listAvailableBridges();
5517
+ }
5518
+ get bridgedParts() {
5519
+ return this.modules.listBridgedParts();
5520
+ }
5521
+ /**
5522
+ * Adds a node to the tree
5523
+ * @param node - the node to add
5524
+ * @returns the id of the added node
5525
+ */
5526
+ addNode(node) {
5527
+ this.nodes.set(node.id, node);
5528
+ return node.id;
5529
+ }
5530
+ getNode(id) {
5531
+ return this.nodes.get(id);
5532
+ }
5533
+ getNodes() {
5534
+ return [...this.nodes.values()];
5535
+ }
5536
+ /**
5537
+ * Links two nodes bi-directionally
5538
+ * @param firstNode - the id of the first node
5539
+ * @param secondNode - the id of the second node
5540
+ */
5541
+ link(firstNode, secondNode) {
5542
+ if (!this.nodes.has(firstNode) || !this.nodes.has(secondNode)) {
5543
+ throw new Error("unknown node id");
3649
5544
  }
3650
- ],
3651
- [
3652
- "TS",
3653
- {
3654
- letter: "Ts",
3655
- hebrewName: "Tzaddi",
3656
- hebrewCharacter: "\u05E6",
3657
- numericValue: 90,
3658
- numericValueWhenEnding: 900,
3659
- majorArcana: 18,
3660
- astrologicalEnergy: "Aquarius",
3661
- letterType: "simple"
5545
+ if (firstNode === secondNode) {
5546
+ return;
3662
5547
  }
3663
- ],
3664
- [
3665
- "TZ",
3666
- {
3667
- letter: "Tz",
3668
- hebrewName: "Tzaddi",
3669
- hebrewCharacter: "\u05E6",
3670
- numericValue: 90,
3671
- numericValueWhenEnding: 900,
3672
- majorArcana: 18,
3673
- astrologicalEnergy: "Aquarius",
3674
- letterType: "simple"
5548
+ if (this.adjacent.has(firstNode) && this.adjacent.get(firstNode)?.has(secondNode)) {
5549
+ return;
3675
5550
  }
3676
- ],
3677
- [
3678
- "I",
3679
- {
3680
- letter: "I",
3681
- hebrewName: "Yod",
3682
- hebrewCharacter: "\u05D9",
3683
- numericValue: 10,
3684
- majorArcana: 10,
3685
- astrologicalEnergy: "Virgo",
3686
- letterType: "simple"
5551
+ const put = (leftNode, rightNode) => {
5552
+ const set = this.adjacent.get(leftNode) ?? /* @__PURE__ */ new Set();
5553
+ set.add(rightNode);
5554
+ this.adjacent.set(leftNode, set);
5555
+ };
5556
+ put(firstNode, secondNode);
5557
+ put(secondNode, firstNode);
5558
+ }
5559
+ /**
5560
+ * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
5561
+ * @param id - the id of the node to get the relations for
5562
+ * @param nodeType - the node type to filter the relations by
5563
+ * @returns the current node and all its direct relations
5564
+ */
5565
+ related(id, nodeType) {
5566
+ if (!this.nodes.has(id)) {
5567
+ return [];
3687
5568
  }
3688
- ],
3689
- [
3690
- "J",
3691
- {
3692
- letter: "J",
3693
- hebrewName: "Yod",
3694
- hebrewCharacter: "\u05D9",
3695
- numericValue: 10,
3696
- majorArcana: 10,
3697
- astrologicalEnergy: "Virgo",
3698
- letterType: "simple"
5569
+ const node = this.nodes.get(id);
5570
+ const relations = this.adjacent.get(id);
5571
+ if (!relations) {
5572
+ return nodeType ? [] : [node];
3699
5573
  }
3700
- ],
3701
- [
3702
- "Y",
3703
- {
3704
- letter: "Y",
3705
- hebrewName: "Yod",
3706
- hebrewCharacter: "\u05D9",
3707
- numericValue: 10,
3708
- majorArcana: 10,
3709
- astrologicalEnergy: "Virgo",
3710
- letterType: "simple"
5574
+ const filteredRelations = [...relations].map((i) => this.nodes.get(i)).filter((n) => !nodeType || n.type === nodeType);
5575
+ return nodeType ? filteredRelations : [node, ...filteredRelations];
5576
+ }
5577
+ /**
5578
+ * Gets all the types of nodes that are directly connected to the given node
5579
+ * @param id - the id of the node to get related types for
5580
+ * @returns array of node types that are directly connected
5581
+ */
5582
+ relatedTypes(id) {
5583
+ if (!this.nodes.has(id)) {
5584
+ return [];
3711
5585
  }
3712
- ],
3713
- [
3714
- "C",
3715
- {
3716
- letter: "C",
3717
- hebrewName: "Kaph",
3718
- hebrewCharacter: "\u05DB",
3719
- numericValue: 20,
3720
- numericValueWhenEnding: 500,
3721
- majorArcana: 11,
3722
- astrologicalEnergy: "Mars",
3723
- letterType: "double"
5586
+ return [...new Set([...this.adjacent.get(id).values()].map((nodeId) => this.nodes.get(nodeId).type))];
5587
+ }
5588
+ /**
5589
+ * BFS up to depth k, optional type filter for the result set
5590
+ * @param id - the id of the node to get the extended relations for
5591
+ * @param depth - the depth of the walk
5592
+ * @param type - the type of the nodes to filter the result set by
5593
+ * @returns the current node and all its extended relations
5594
+ */
5595
+ walk(id, depth = 1, type) {
5596
+ const visitedNodes = /* @__PURE__ */ new Set([id]);
5597
+ const foundNodes = [];
5598
+ let queue = [[id, 0]];
5599
+ while (queue.length > 0) {
5600
+ const [current, currentDepth] = queue.shift();
5601
+ if (currentDepth >= depth) {
5602
+ continue;
5603
+ }
5604
+ const neighbors = this.adjacent.get(current) ?? /* @__PURE__ */ new Set();
5605
+ for (const neighbor of neighbors) {
5606
+ if (visitedNodes.has(neighbor)) {
5607
+ continue;
5608
+ }
5609
+ visitedNodes.add(neighbor);
5610
+ foundNodes.push(this.nodes.get(neighbor));
5611
+ queue.push([neighbor, currentDepth + 1]);
5612
+ }
3724
5613
  }
3725
- ],
3726
- [
3727
- "L",
3728
- {
3729
- letter: "L",
3730
- hebrewName: "Lamed",
3731
- hebrewCharacter: "\u05DC",
3732
- numericValue: 30,
3733
- majorArcana: 12,
3734
- astrologicalEnergy: "Libra",
3735
- letterType: "simple"
5614
+ return type ? foundNodes.filter((n) => n.type === type) : foundNodes;
5615
+ }
5616
+ /**
5617
+ * Removes a node and all its relations from the graph, cleaning up adjacency sets.
5618
+ * @param id - the id of the node to remove
5619
+ */
5620
+ removeNode(id) {
5621
+ if (!this.nodes.has(id)) return;
5622
+ const neighbors = this.adjacent.get(id);
5623
+ if (neighbors) {
5624
+ for (const neighbor of neighbors) {
5625
+ const set = this.adjacent.get(neighbor);
5626
+ if (!set) {
5627
+ continue;
5628
+ }
5629
+ set.delete(id);
5630
+ if (set.size === 0) {
5631
+ this.adjacent.delete(neighbor);
5632
+ } else {
5633
+ this.adjacent.set(neighbor, set);
5634
+ }
5635
+ }
3736
5636
  }
3737
- ],
3738
- [
3739
- "M",
3740
- {
3741
- letter: "M",
3742
- hebrewName: "Mem",
3743
- hebrewCharacter: "\u05DE",
3744
- numericValue: 40,
3745
- numericValueWhenEnding: 600,
3746
- majorArcana: 13,
3747
- astrologicalEnergy: "Water",
3748
- letterType: "mother"
5637
+ this.adjacent.delete(id);
5638
+ this.nodes.delete(id);
5639
+ }
5640
+ /**
5641
+ * A helper to create two-way correspondences between nodes.
5642
+ * @param source - the source node
5643
+ * @param target - the target node
5644
+ * @param targetType - the type of the target node
5645
+ * @returns the target node
5646
+ */
5647
+ correspond(source, target, targetType, data) {
5648
+ if (!this.nodes.has(target)) {
5649
+ const node = data ? { id: target, type: targetType, data } : { id: target, type: targetType };
5650
+ this.addNode(node);
3749
5651
  }
3750
- ],
3751
- [
3752
- "N",
3753
- {
3754
- letter: "N",
3755
- hebrewName: "Nun",
3756
- hebrewCharacter: "\u05E0",
3757
- numericValue: 50,
3758
- numericValueWhenEnding: 700,
3759
- majorArcana: 14,
3760
- astrologicalEnergy: "Scorpio",
3761
- letterType: "simple"
5652
+ this.link(source, target);
5653
+ return target;
5654
+ }
5655
+ /**
5656
+ * Adds a sphere (sephirah) to the tree with its Hebrew and English names
5657
+ * @param sphere - the identifier for the sphere
5658
+ * @param data - the sphere's Hebrew and English names
5659
+ * @returns the sphere's id
5660
+ */
5661
+ addSphere(sphere, data, relatedNumber) {
5662
+ if (this.nodes.has(sphere)) {
5663
+ return sphere;
3762
5664
  }
3763
- ],
3764
- [
3765
- "S",
3766
- {
3767
- letter: "S",
3768
- hebrewName: "Samekh",
3769
- hebrewCharacter: "\u05E1",
3770
- numericValue: 60,
3771
- majorArcana: 15,
3772
- astrologicalEnergy: "Sagittarius",
3773
- letterType: "simple"
5665
+ this.addNode({ id: sphere, type: "sphere", data });
5666
+ const numberId = `num:${relatedNumber}`;
5667
+ if (!this.nodes.has(numberId)) {
5668
+ this.addNode({ id: numberId, type: "number" });
3774
5669
  }
3775
- ],
3776
- [
3777
- "\xC7",
3778
- {
3779
- letter: "\xC7",
3780
- hebrewName: "Samekh",
3781
- hebrewCharacter: "\u05E1",
3782
- numericValue: 60,
3783
- majorArcana: 15,
3784
- astrologicalEnergy: "Sagittarius",
3785
- letterType: "simple"
5670
+ this.link(sphere, numberId);
5671
+ return sphere;
5672
+ }
5673
+ /**
5674
+ * Adds a path between two spheres with its associated number
5675
+ * @param leftSphere - the id of the first sphere
5676
+ * @param rightSphere - the id of the second sphere
5677
+ * @param relatedNumber - the number associated with this path
5678
+ * @returns the path's id
5679
+ */
5680
+ addPath(leftSphere, rightSphere, relatedNumber, data) {
5681
+ const pathId = `path:${relatedNumber}`;
5682
+ if (this.nodes.has(pathId)) {
5683
+ return pathId;
3786
5684
  }
3787
- ],
3788
- [
3789
- "P",
3790
- {
3791
- letter: "P",
3792
- hebrewName: "Pe",
3793
- hebrewCharacter: "\u05E4",
3794
- numericValue: 80,
3795
- numericValueWhenEnding: 800,
3796
- majorArcana: 17,
3797
- astrologicalEnergy: "Mercury",
3798
- letterType: "double"
5685
+ const numberOfSpheres = 10;
5686
+ const pathNumber = relatedNumber + numberOfSpheres;
5687
+ this.addNode({ id: pathId, type: "path", data });
5688
+ this.link(leftSphere, pathId);
5689
+ this.link(rightSphere, pathId);
5690
+ const firstNumberId = `num:${relatedNumber}`;
5691
+ const secondNumberId = `num:${pathNumber}`;
5692
+ if (!this.nodes.has(firstNumberId)) {
5693
+ this.addNode({ id: firstNumberId, type: "number" });
3799
5694
  }
3800
- ],
3801
- [
3802
- "PH",
3803
- {
3804
- letter: "Ph",
3805
- hebrewName: "Pe",
3806
- hebrewCharacter: "\u05E4",
3807
- numericValue: 80,
3808
- numericValueWhenEnding: 800,
3809
- majorArcana: 17,
3810
- astrologicalEnergy: "Mercury",
3811
- letterType: "double"
5695
+ if (!this.nodes.has(secondNumberId)) {
5696
+ this.addNode({ id: secondNumberId, type: "number" });
3812
5697
  }
3813
- ],
3814
- [
3815
- "F",
3816
- {
3817
- letter: "F",
3818
- hebrewName: "Pe",
3819
- hebrewCharacter: "\u05E4",
3820
- numericValue: 80,
3821
- numericValueWhenEnding: 800,
3822
- majorArcana: 17,
3823
- astrologicalEnergy: "Mercury",
3824
- letterType: "double"
5698
+ this.link(pathId, firstNumberId);
5699
+ this.link(pathId, secondNumberId);
5700
+ return pathId;
5701
+ }
5702
+ addLetters(path, letters) {
5703
+ for (const letter of letters) {
5704
+ const letterId = `letter:${letter.letter}`;
5705
+ this.correspond(path, letterId, letter.type, letter.data);
5706
+ if (letter.type === "hebrewLetter") {
5707
+ const data = letter.data;
5708
+ const gematriaValues = [data.gematriaValue, data.gematriaValueWhenEnding].filter(Boolean);
5709
+ for (const gematriaValue of gematriaValues) {
5710
+ if (!this.nodes.has(`num:${gematriaValue}`)) {
5711
+ this.addNode({ id: `num:${gematriaValue}`, type: "number" });
5712
+ }
5713
+ this.link(letterId, `num:${gematriaValue}`);
5714
+ }
5715
+ }
3825
5716
  }
3826
- ],
3827
- [
3828
- "K",
3829
- {
3830
- letter: "K",
3831
- hebrewName: "Qoph",
3832
- hebrewCharacter: "\u05E7",
3833
- numericValue: 100,
3834
- majorArcana: 19,
3835
- astrologicalEnergy: "Pisces",
3836
- letterType: "simple"
5717
+ }
5718
+ addWorld(world, data) {
5719
+ if (this.nodes.has(world)) {
5720
+ return world;
3837
5721
  }
3838
- ],
3839
- [
3840
- "KH",
3841
- {
3842
- letter: "Kh",
3843
- hebrewName: "Qoph",
3844
- hebrewCharacter: "\u05E7",
3845
- numericValue: 100,
3846
- majorArcana: 19,
3847
- astrologicalEnergy: "Pisces",
3848
- letterType: "simple"
5722
+ this.addNode({ id: world, type: "world", data });
5723
+ return world;
5724
+ }
5725
+ addSphereColor(sphere, color, data, world) {
5726
+ const colorId = `color:${color}`;
5727
+ this.correspond(sphere, colorId, "color", data);
5728
+ if (world) {
5729
+ this.link(world, colorId);
3849
5730
  }
3850
- ],
3851
- [
3852
- "Q",
3853
- {
3854
- letter: "Q",
3855
- hebrewName: "Qoph",
3856
- hebrewCharacter: "\u05E7",
3857
- numericValue: 100,
3858
- majorArcana: 19,
3859
- astrologicalEnergy: "Pisces",
3860
- letterType: "simple"
5731
+ return colorId;
5732
+ }
5733
+ addPathColor(path, color, data) {
5734
+ const colorId = `color:${color}`;
5735
+ this.correspond(path, colorId, "color", data);
5736
+ return colorId;
5737
+ }
5738
+ addMusicalNote(sphere, note, data) {
5739
+ const noteId = `note:${note}`;
5740
+ this.correspond(sphere, noteId, "musicalNote", data);
5741
+ return noteId;
5742
+ }
5743
+ addWesternAstrologyPlanet(sphereOrPath, planet, data) {
5744
+ const planetId = `planet:${planet}`;
5745
+ this.correspond(sphereOrPath, planetId, "planet", data);
5746
+ return planetId;
5747
+ }
5748
+ addWesternAstrologySign(path, sign, data, relatedNumber) {
5749
+ const signId = `westernZodiacSign:${sign}`;
5750
+ this.correspond(path, signId, "westernZodiacSign", data);
5751
+ const numberId = `num:${relatedNumber}`;
5752
+ if (!this.nodes.has(numberId)) {
5753
+ this.addNode({ id: numberId, type: "number" });
3861
5754
  }
3862
- ],
3863
- [
3864
- "R",
3865
- {
3866
- letter: "R",
3867
- hebrewName: "Resh",
3868
- hebrewCharacter: "\u05E8",
3869
- numericValue: 200,
3870
- majorArcana: 20,
3871
- astrologicalEnergy: "Saturn",
3872
- letterType: "double"
5755
+ this.link(signId, numberId);
5756
+ if (data.element) {
5757
+ const elementId = `westernElement:${data.element}`;
5758
+ if (!this.nodes.has(elementId)) {
5759
+ this.addNode({ id: elementId, type: "westernElement" });
5760
+ }
5761
+ this.link(signId, elementId);
3873
5762
  }
3874
- ],
3875
- [
3876
- "SH",
3877
- {
3878
- letter: "Sh",
3879
- hebrewName: "Shin",
3880
- hebrewCharacter: "\u05E9",
3881
- numericValue: 300,
3882
- majorArcana: 21,
3883
- astrologicalEnergy: "Fire",
3884
- letterType: "mother"
5763
+ return signId;
5764
+ }
5765
+ addWesternElement(path, element, data) {
5766
+ const elementId = `westernElement:${element}`;
5767
+ if (this.nodes.has(elementId)) {
5768
+ return elementId;
3885
5769
  }
3886
- ],
3887
- [
3888
- "CH",
3889
- {
3890
- letter: "Ch",
3891
- hebrewName: "Shin",
3892
- hebrewCharacter: "\u05E9",
3893
- numericValue: 300,
3894
- majorArcana: 21,
3895
- astrologicalEnergy: "Fire",
3896
- letterType: "mother"
5770
+ this.correspond(path, elementId, "westernElement", data);
5771
+ return elementId;
5772
+ }
5773
+ addTarotArkAnnu(sphereOrPath, tarotArkAnnu, data, relatedNumber, suit) {
5774
+ if (this.nodes.has(tarotArkAnnu)) {
5775
+ return tarotArkAnnu;
3897
5776
  }
3898
- ],
3899
- [
3900
- "X",
3901
- {
3902
- letter: "X",
3903
- hebrewName: "Shin",
3904
- hebrewCharacter: "\u05E9",
3905
- numericValue: 300,
3906
- majorArcana: 21,
3907
- astrologicalEnergy: "Fire",
3908
- letterType: "mother"
5777
+ this.correspond(sphereOrPath, tarotArkAnnu, "tarotArkAnnu", data);
5778
+ const numberId = `num:${relatedNumber}`;
5779
+ if (!this.nodes.has(numberId)) {
5780
+ this.addNode({ id: numberId, type: "number" });
3909
5781
  }
3910
- ]
3911
- ]);
3912
- hebrewLetterMapping.set("O_START", {
3913
- letter: "O",
3914
- hebrewName: "Ayin",
3915
- hebrewCharacter: "\u05E2",
3916
- numericValue: 70,
3917
- majorArcana: 16,
3918
- astrologicalEnergy: "Capricorn",
3919
- letterType: "simple"
3920
- });
3921
- var allGematriaNumbers = /* @__PURE__ */ new Map([
3922
- [1, /* @__PURE__ */ new Set(["A"])],
3923
- [2, /* @__PURE__ */ new Set(["B"])],
3924
- [3, /* @__PURE__ */ new Set(["G"])],
3925
- [4, /* @__PURE__ */ new Set(["D"])],
3926
- [5, /* @__PURE__ */ new Set(["E", "\xC3"])],
3927
- [6, /* @__PURE__ */ new Set(["V", "U", "W", "O"])],
3928
- [7, /* @__PURE__ */ new Set(["Z"])],
3929
- [8, /* @__PURE__ */ new Set(["H"])],
3930
- [9, /* @__PURE__ */ new Set(["T"])],
3931
- [10, /* @__PURE__ */ new Set(["I", "J", "Y"])],
3932
- [20, /* @__PURE__ */ new Set(["C"])],
3933
- [30, /* @__PURE__ */ new Set(["L"])],
3934
- [40, /* @__PURE__ */ new Set(["M"])],
3935
- [50, /* @__PURE__ */ new Set(["N"])],
3936
- [60, /* @__PURE__ */ new Set(["S"])],
3937
- [70, /* @__PURE__ */ new Set(["O"])],
3938
- [80, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
3939
- [90, /* @__PURE__ */ new Set(["Ts", "Tz"])],
3940
- [100, /* @__PURE__ */ new Set(["K", "Kh", "Q"])],
3941
- [200, /* @__PURE__ */ new Set(["R"])],
3942
- [300, /* @__PURE__ */ new Set(["Sh", "Ch", "X", "\xC7"])],
3943
- [400, /* @__PURE__ */ new Set(["Th"])],
3944
- [500, /* @__PURE__ */ new Set(["C"])],
3945
- [600, /* @__PURE__ */ new Set(["M"])],
3946
- [700, /* @__PURE__ */ new Set(["N"])],
3947
- [800, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
3948
- [900, /* @__PURE__ */ new Set(["Ts", "Tz"])]
3949
- ]);
5782
+ this.link(tarotArkAnnu, numberId);
5783
+ if (suit) {
5784
+ this.link(tarotArkAnnu, `suit:${suit}`);
5785
+ }
5786
+ return tarotArkAnnu;
5787
+ }
5788
+ addTarotSuit(suit, relatedElement) {
5789
+ const suitId = `suit:${suit}`;
5790
+ if (this.nodes.has(suitId)) {
5791
+ return suitId;
5792
+ }
5793
+ this.addNode({ id: suitId, type: "tarotSuit" });
5794
+ const elementId = `westernElement:${relatedElement}`;
5795
+ if (!this.nodes.has(elementId)) {
5796
+ this.addNode({ id: elementId, type: "westernElement" });
5797
+ }
5798
+ this.link(suitId, `westernElement:${relatedElement}`);
5799
+ return suitId;
5800
+ }
5801
+ };
5802
+
5803
+ // src/core/factory.ts
5804
+ function createTree(opts = {
5805
+ system: "kaabalah",
5806
+ parts: []
5807
+ }) {
5808
+ const tree = new TreeOfLife();
5809
+ tree.loadSystem(opts.system);
5810
+ for (const part of opts.parts || []) {
5811
+ tree.loadPart(part);
5812
+ }
5813
+ return tree;
5814
+ }
5815
+
5816
+ // src/gematria/index.ts
3950
5817
  var reduceToSingleDigitWithSteps = (num) => {
3951
5818
  const steps = [num];
3952
5819
  let currentNum = num;
@@ -3962,42 +5829,52 @@ var reduceToSingleDigitWithSteps = (num) => {
3962
5829
  var isVowel = (letter) => {
3963
5830
  return ["A", "\xC3", "E", "I", "O", "U", "Y", "W"].includes(letter);
3964
5831
  };
3965
- var calculateGematria = (word) => {
5832
+ var calculateGematria = (word, options = {}, tree) => {
5833
+ if (tree && tree.activeSystem !== SYSTEM2) {
5834
+ throw new Error(`Gematria calculations require the ${SYSTEM2} system to be loaded`);
5835
+ }
5836
+ if (!tree) {
5837
+ tree = createTree({ system: SYSTEM2, parts: [] });
5838
+ }
5839
+ const includedLetters = /* @__PURE__ */ new Map();
3966
5840
  const letters = word.toUpperCase().split("");
3967
5841
  let vowelsSum = 0;
3968
5842
  let consonantsSum = 0;
3969
5843
  const presentGematriaNumbers = /* @__PURE__ */ new Set();
3970
5844
  for (let i = 0; i < letters.length; i++) {
3971
- const letter = letters[i];
3972
- const nextLetter = letters[i + 1] || "";
5845
+ const letter = letters[i].toLocaleUpperCase();
5846
+ const nextLetter = letters[i + 1]?.toLocaleLowerCase() || "";
3973
5847
  if (["P", "T", "K", "S", "C"].includes(letter) && nextLetter) {
3974
- const combinedLetter = (letter + nextLetter).toUpperCase();
5848
+ const combinedLetter = letter + nextLetter;
3975
5849
  const isEnding2 = i > 0 && i === letters.length - 2;
3976
- const mapping2 = hebrewLetterMapping.get(combinedLetter);
3977
- if (mapping2) {
3978
- let value = mapping2.numericValue;
3979
- if (isEnding2 && mapping2.numericValueWhenEnding !== void 0) {
3980
- value = mapping2.numericValueWhenEnding;
5850
+ const [mapping2] = tree.walk(`letter:${combinedLetter}`, 2, "hebrewLetter");
5851
+ if (mapping2?.data) {
5852
+ let value = mapping2.data.gematriaValue;
5853
+ if (isEnding2 && mapping2.data.gematriaValueWhenEnding !== void 0) {
5854
+ value = mapping2.data.gematriaValueWhenEnding;
3981
5855
  }
3982
5856
  presentGematriaNumbers.add(value);
5857
+ includedLetters.set(mapping2.id, { letter: combinedLetter, value, hebrewLetter: mapping2.data, isVowel: isVowel(letter) });
3983
5858
  consonantsSum += value;
3984
5859
  i++;
3985
5860
  continue;
3986
5861
  }
3987
5862
  }
3988
5863
  let mapping;
3989
- if (letter === "O" && i === 0 && hebrewLetterMapping.has("O_START")) {
3990
- mapping = hebrewLetterMapping.get("O_START");
5864
+ const isStarting = i === 0;
5865
+ if (isStarting && letter === "O") {
5866
+ mapping = tree.getNode(`letter:${HEBREW_LETTERS.AIN}`);
3991
5867
  } else {
3992
- mapping = hebrewLetterMapping.get(letter);
5868
+ mapping = tree.walk(`letter:${letter}`, 2, "hebrewLetter").at(0);
3993
5869
  }
3994
5870
  const isEnding = i > 0 && i === letters.length - 1;
3995
- if (mapping) {
3996
- let value = mapping.numericValue;
3997
- if (isEnding && mapping.numericValueWhenEnding !== void 0) {
3998
- value = mapping.numericValueWhenEnding;
5871
+ if (mapping?.data) {
5872
+ let value = mapping.data.gematriaValue;
5873
+ if (isEnding && mapping.data.gematriaValueWhenEnding !== void 0) {
5874
+ value = mapping.data.gematriaValueWhenEnding;
3999
5875
  }
4000
5876
  presentGematriaNumbers.add(value);
5877
+ includedLetters.set(mapping.id, { letter, value, hebrewLetter: mapping.data, isVowel: isVowel(letter) });
4001
5878
  if (isVowel(letter)) {
4002
5879
  vowelsSum += value;
4003
5880
  } else {
@@ -4011,15 +5888,48 @@ var calculateGematria = (word) => {
4011
5888
  vowelsSum + consonantsSum
4012
5889
  );
4013
5890
  const missingGematriaNumbers = [];
4014
- for (const [num, lettersSet] of allGematriaNumbers.entries()) {
4015
- if (!presentGematriaNumbers.has(num)) {
4016
- missingGematriaNumbers.push({
4017
- number: num,
4018
- letters: Array.from(lettersSet)
4019
- });
5891
+ if (options?.calculateMissingGematriaNumbers) {
5892
+ for (const hebrewLetter of Object.values(HEBREW_LETTERS)) {
5893
+ const hebrewLetterNode = tree.getNode(`letter:${hebrewLetter}`);
5894
+ if (!hebrewLetterNode?.data) {
5895
+ continue;
5896
+ }
5897
+ if (!presentGematriaNumbers.has(hebrewLetterNode.data.gematriaValue)) {
5898
+ missingGematriaNumbers.push({
5899
+ number: hebrewLetterNode.data.gematriaValue,
5900
+ letter: hebrewLetter
5901
+ });
5902
+ }
5903
+ if (hebrewLetterNode.data.gematriaValueWhenEnding && !presentGematriaNumbers.has(hebrewLetterNode.data.gematriaValueWhenEnding)) {
5904
+ missingGematriaNumbers.push({
5905
+ number: hebrewLetterNode.data.gematriaValueWhenEnding,
5906
+ letter: `${hebrewLetter} (on ending)`
5907
+ });
5908
+ }
5909
+ }
5910
+ missingGematriaNumbers.sort((a, b) => a.number - b.number);
5911
+ }
5912
+ const letterPercentages = {
5913
+ percentageOfVowels: 0,
5914
+ percentageOfConsonants: 0,
5915
+ letters: {}
5916
+ };
5917
+ if (options?.calculateLetterPercentage) {
5918
+ const letterCount = letters.length;
5919
+ let vowelsCount = 0;
5920
+ let consonantsCount = 0;
5921
+ for (const [_, letter] of includedLetters) {
5922
+ const occurrences = letters.filter((l) => l === letter.letter).length;
5923
+ letterPercentages.letters[letter.letter] = occurrences / letterCount * 100;
5924
+ if (letter.isVowel) {
5925
+ vowelsCount += occurrences;
5926
+ } else {
5927
+ consonantsCount += occurrences;
5928
+ }
4020
5929
  }
5930
+ letterPercentages.percentageOfVowels = vowelsCount / letterCount * 100;
5931
+ letterPercentages.percentageOfConsonants = consonantsCount / letterCount * 100;
4021
5932
  }
4022
- missingGematriaNumbers.sort((a, b) => a.number - b.number);
4023
5933
  return {
4024
5934
  vowels: {
4025
5935
  originalSum: vowelsSum,
@@ -4036,7 +5946,9 @@ var calculateGematria = (word) => {
4036
5946
  reductionSteps: synthesisReduction.steps,
4037
5947
  finalValue: synthesisReduction.finalValue
4038
5948
  },
4039
- missingGematriaNumbers
5949
+ includedLetters,
5950
+ missingGematriaNumbers: options?.calculateMissingGematriaNumbers ? missingGematriaNumbers : void 0,
5951
+ letterPercentages: options?.calculateLetterPercentage ? letterPercentages : void 0
4040
5952
  };
4041
5953
  };
4042
5954
 
@@ -4997,18 +6909,35 @@ async function shuffleTarotDeck(cards, includeInvertedCards = false, shuffleCoun
4997
6909
  ARKANNUS,
4998
6910
  CYCLE_MEANINGS,
4999
6911
  CalcFlag,
6912
+ FOUR_WORLDS,
6913
+ HEBREW_LETTERS,
6914
+ HEBREW_LETTERS_DATA,
5000
6915
  HouseSystem,
6916
+ LATIN_LETTERS,
6917
+ LURIANIC_PATHS,
6918
+ MELKITZEDEKI_PATHS,
6919
+ PLANETS,
5001
6920
  Planet,
5002
- VERSION,
6921
+ SPHERES,
6922
+ SPHERE_DATA,
6923
+ SYSTEMS,
6924
+ TAROT_ARKANNUS,
6925
+ TAROT_ARKANNUS_DATA,
6926
+ TAROT_DECKS,
6927
+ TAROT_SUITS,
6928
+ TreeOfLife,
6929
+ WESTERN_ELEMENTS,
6930
+ WESTERN_ZODIAC_SIGNS,
6931
+ WESTERN_ZODIAC_SIGNS_DATA,
5003
6932
  calculateCycles,
5004
6933
  calculateGematria,
5005
6934
  calculateLifePath,
5006
6935
  closeSwissEph,
6936
+ createTree,
5007
6937
  formatDegreeMinutes,
5008
6938
  getBirthChart,
5009
6939
  getSwissEph,
5010
6940
  getZodiacPosition,
5011
- isValidDate,
5012
6941
  majorArcana,
5013
6942
  shuffleTarotDeck
5014
6943
  });