kaabalah 1.1.3 → 1.1.5

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.
@@ -1,4 +1,4 @@
1
- import { x as TreeOfLife } from '../registry-ikCBCocm.mjs';
1
+ import { x as TreeOfLife } from '../registry-BEf1897h.mjs';
2
2
 
3
3
  declare const calculateGematria: (word: string, options?: {
4
4
  calculateMissingGematriaValues?: boolean;
@@ -23,6 +23,7 @@ declare const calculateGematria: (word: string, options?: {
23
23
  latinLetterId: string;
24
24
  value: number;
25
25
  hebrewLetterId: string;
26
+ hebrewCharacter: string;
26
27
  isVowel: boolean;
27
28
  }[];
28
29
  missingGematriaValues: {
@@ -1,4 +1,4 @@
1
- import { x as TreeOfLife } from '../registry-ikCBCocm.js';
1
+ import { x as TreeOfLife } from '../registry-BEf1897h.js';
2
2
 
3
3
  declare const calculateGematria: (word: string, options?: {
4
4
  calculateMissingGematriaValues?: boolean;
@@ -23,6 +23,7 @@ declare const calculateGematria: (word: string, options?: {
23
23
  latinLetterId: string;
24
24
  value: number;
25
25
  hebrewLetterId: string;
26
+ hebrewCharacter: string;
26
27
  isVowel: boolean;
27
28
  }[];
28
29
  missingGematriaValues: {
@@ -191,52 +191,52 @@ var LATIN_LETTERS = {
191
191
  \u00C3: "\xC3"
192
192
  };
193
193
  var HEBREW_LETTERS = {
194
- ALEPH: "\u05D0",
195
- BETH: "\u05D1",
196
- GIMEL: "\u05D2",
197
- DALET: "\u05D3",
198
- HE: "\u05D4",
199
- VAV: "\u05D5",
200
- ZAYIN: "\u05D6",
201
- HET: "\u05D7",
202
- TET: "\u05D8",
203
- YOD: "\u05D9",
204
- KAPH: "\u05DB",
205
- LAMED: "\u05DC",
206
- MEM: "\u05DE",
207
- NUN: "\u05E0",
208
- SAMEKH: "\u05E1",
209
- AYIN: "\u05E2",
210
- PE: "\u05E4",
211
- TSADI: "\u05E6",
212
- QOPH: "\u05E7",
213
- RESH: "\u05E8",
214
- SHIN: "\u05E9",
215
- TAV: "\u05EA"
194
+ ALEPH: "Aleph",
195
+ BETH: "Beth",
196
+ GIMEL: "Gimel",
197
+ DALET: "Dalet",
198
+ HE: "He",
199
+ VAV: "Vav",
200
+ ZAYIN: "Zayin",
201
+ HET: "Het",
202
+ TET: "Tet",
203
+ YOD: "Yod",
204
+ KAPH: "Kaph",
205
+ LAMED: "Lamed",
206
+ MEM: "Mem",
207
+ NUN: "Nun",
208
+ SAMEKH: "Samekh",
209
+ AYIN: "Ayin",
210
+ PE: "Pe",
211
+ TSADI: "Tsadi",
212
+ QOPH: "Qoph",
213
+ RESH: "Resh",
214
+ SHIN: "Shin",
215
+ TAV: "Tav"
216
216
  };
217
217
  var HEBREW_LETTERS_DATA = {
218
- ALEPH: { gematriaValue: 1, type: "mother", symbol: "Man", hieroglyph: "Unity, central point, abstract principle", yvritMeaning: "Universal man and the human gender", transliteration: "Aleph" },
219
- BETH: { gematriaValue: 2, type: "double", symbol: "Mouth", hieroglyph: "Woman's duality", yvritMeaning: "Man's mouth, habitation, interior", transliteration: "Beth" },
220
- GIMEL: { gematriaValue: 3, type: "double", symbol: "Grasping hand", hieroglyph: "Expansion and growth", yvritMeaning: "Man's throat, channel", transliteration: "Gimel" },
221
- DALET: { gematriaValue: 4, type: "double", symbol: "Breast", hieroglyph: "Universal quaternary, source of physical existence", yvritMeaning: "Abundance and nourishment", transliteration: "Dalet" },
222
- HE: { gematriaValue: 5, type: "simple", symbol: "Breath", hieroglyph: "Universal life, men's breath, the breath, everything that animates and vivifies", yvritMeaning: "Window", transliteration: "He" },
223
- VAV: { gematriaValue: 6, type: "simple", symbol: "Eye, ear", hieroglyph: "A point connection that separates being and non-being", yvritMeaning: "Construction nail", transliteration: "Vav" },
224
- ZAYIN: { gematriaValue: 7, type: "simple", symbol: "Arrow", hieroglyph: "Goal, objective to achieve", yvritMeaning: "Dart, sword", transliteration: "Zayin" },
225
- HET: { gematriaValue: 8, type: "simple", symbol: "Field", hieroglyph: "Elemental existence", yvritMeaning: "Fence", transliteration: "Het" },
226
- TET: { gematriaValue: 9, type: "simple", symbol: "A house covering", hieroglyph: "Men's shelter, roof, shield, protection, resistance", yvritMeaning: "Serpent", transliteration: "Tet" },
227
- YOD: { gematriaValue: 10, type: "simple", symbol: "Index finger", hieroglyph: "Potential manifestation, eternal worship", yvritMeaning: "Hand, index finger", transliteration: "Yod" },
228
- KAPH: { gematriaValue: 20, type: "double", gematriaValueWhenEnding: 500, symbol: "Closing hand", hieroglyph: "Reflective and fleeting life", yvritMeaning: "Palm closing in the act of grasping something", transliteration: "Kaph" },
229
- LAMED: { gematriaValue: 30, type: "simple", symbol: "Extending arm", hieroglyph: "Extension, elevation", yvritMeaning: "Sting rod, human arm representing extension, elevation", transliteration: "Lamed" },
230
- 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" },
231
- NUN: { gematriaValue: 50, type: "simple", gematriaValueWhenEnding: 700, symbol: "Fruit", hieroglyph: "Novelty, youth, grace, beauty", yvritMeaning: "Fish", transliteration: "Nun" },
232
- SAMEKH: { gematriaValue: 60, type: "simple", symbol: "Serpent", hieroglyph: "Cyclical circular movement", yvritMeaning: "Support, brace, crutch", transliteration: "Samekh" },
233
- AYIN: { gematriaValue: 70, type: "simple", symbol: "Binding", hieroglyph: "Material side of things, emptiness, nothingness, all evil", yvritMeaning: "Eye", transliteration: "Ayin" },
234
- PE: { gematriaValue: 80, type: "double", gematriaValueWhenEnding: 800, symbol: "Mouth, tongue", hieroglyph: "Power of the verb, spoken word", yvritMeaning: "Mouth releasing", transliteration: "Pe" },
235
- TSADI: { gematriaValue: 90, type: "simple", gematriaValueWhenEnding: 900, symbol: "Roof", hieroglyph: "Fixed thought upon a purpose", yvritMeaning: "Fishhook", transliteration: "Tsadi" },
236
- QOPH: { gematriaValue: 100, type: "simple", symbol: "Axe", hieroglyph: "Repressive pressure", yvritMeaning: "Back of the head", transliteration: "Qoph" },
237
- RESH: { gematriaValue: 200, type: "double", symbol: "Head", hieroglyph: "Feeling, wanting, thinking, movement, reflection, origin, repetition", yvritMeaning: "Illuminated head", transliteration: "Resh" },
238
- SHIN: { gematriaValue: 300, type: "mother", symbol: "Crown", hieroglyph: "Relative duration, existence", yvritMeaning: "Part of the bow from which the arrow is released", transliteration: "Shin" },
239
- TAV: { gematriaValue: 400, type: "double", symbol: "Thorax", hieroglyph: "Universal soul, reciprocity, protection, perfection, abundance", yvritMeaning: "Ankh Cross", transliteration: "Tav" }
218
+ ALEPH: { gematriaValue: 1, type: "mother", symbol: "Man", hieroglyph: "Unity, central point, abstract principle", yvritMeaning: "Universal man and the human gender", character: "\u05D0" },
219
+ BETH: { gematriaValue: 2, type: "double", symbol: "Mouth", hieroglyph: "Woman's duality", yvritMeaning: "Man's mouth, habitation, interior", character: "\u05D1" },
220
+ GIMEL: { gematriaValue: 3, type: "double", symbol: "Grasping hand", hieroglyph: "Expansion and growth", yvritMeaning: "Man's throat, channel", character: "\u05D2" },
221
+ DALET: { gematriaValue: 4, type: "double", symbol: "Breast", hieroglyph: "Universal quaternary, source of physical existence", yvritMeaning: "Abundance and nourishment", character: "\u05D3" },
222
+ HE: { gematriaValue: 5, type: "simple", symbol: "Breath", hieroglyph: "Universal life, men's breath, the breath, everything that animates and vivifies", yvritMeaning: "Window", character: "\u05D4" },
223
+ VAV: { gematriaValue: 6, type: "simple", symbol: "Eye, ear", hieroglyph: "A point connection that separates being and non-being", yvritMeaning: "Construction nail", character: "\u05D5" },
224
+ ZAYIN: { gematriaValue: 7, type: "simple", symbol: "Arrow", hieroglyph: "Goal, objective to achieve", yvritMeaning: "Dart, sword", character: "\u05D6" },
225
+ HET: { gematriaValue: 8, type: "simple", symbol: "Field", hieroglyph: "Elemental existence", yvritMeaning: "Fence", character: "\u05D7" },
226
+ TET: { gematriaValue: 9, type: "simple", symbol: "A house covering", hieroglyph: "Men's shelter, roof, shield, protection, resistance", yvritMeaning: "Serpent", character: "\u05D8" },
227
+ YOD: { gematriaValue: 10, type: "simple", symbol: "Index finger", hieroglyph: "Potential manifestation, eternal worship", yvritMeaning: "Hand, index finger", character: "\u05D9" },
228
+ KAPH: { gematriaValue: 20, type: "double", gematriaValueWhenEnding: 500, symbol: "Closing hand", hieroglyph: "Reflective and fleeting life", yvritMeaning: "Palm closing in the act of grasping something", character: "\u05DB", characterWhenEnding: "\u05DA" },
229
+ LAMED: { gematriaValue: 30, type: "simple", symbol: "Extending arm", hieroglyph: "Extension, elevation", yvritMeaning: "Sting rod, human arm representing extension, elevation", character: "\u05DC" },
230
+ 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", character: "\u05DE", characterWhenEnding: "\u05DD" },
231
+ NUN: { gematriaValue: 50, type: "simple", gematriaValueWhenEnding: 700, symbol: "Fruit", hieroglyph: "Novelty, youth, grace, beauty", yvritMeaning: "Fish", character: "\u05E0", characterWhenEnding: "\u05DF" },
232
+ SAMEKH: { gematriaValue: 60, type: "simple", symbol: "Serpent", hieroglyph: "Cyclical circular movement", yvritMeaning: "Support, brace, crutch", character: "\u05E1" },
233
+ AYIN: { gematriaValue: 70, type: "simple", symbol: "Binding", hieroglyph: "Material side of things, emptiness, nothingness, all evil", yvritMeaning: "Eye", character: "\u05E2" },
234
+ PE: { gematriaValue: 80, type: "double", gematriaValueWhenEnding: 800, symbol: "Mouth, tongue", hieroglyph: "Power of the verb, spoken word", yvritMeaning: "Mouth releasing", character: "\u05E4", characterWhenEnding: "\u05E3" },
235
+ TSADI: { gematriaValue: 90, type: "simple", gematriaValueWhenEnding: 900, symbol: "Roof", hieroglyph: "Fixed thought upon a purpose", yvritMeaning: "Fishhook", character: "\u05E6", characterWhenEnding: "\u05E5" },
236
+ QOPH: { gematriaValue: 100, type: "simple", symbol: "Axe", hieroglyph: "Repressive pressure", yvritMeaning: "Back of the head", character: "\u05E7" },
237
+ RESH: { gematriaValue: 200, type: "double", symbol: "Head", hieroglyph: "Feeling, wanting, thinking, movement, reflection, origin, repetition", yvritMeaning: "Illuminated head", character: "\u05E8" },
238
+ SHIN: { gematriaValue: 300, type: "mother", symbol: "Crown", hieroglyph: "Relative duration, existence", yvritMeaning: "Part of the bow from which the arrow is released", character: "\u05E9" },
239
+ TAV: { gematriaValue: 400, type: "double", symbol: "Thorax", hieroglyph: "Universal soul, reciprocity, protection, perfection, abundance", yvritMeaning: "Ankh Cross", character: "\u05EA" }
240
240
  };
241
241
  var TAROT_SUITS = {
242
242
  WANDS: "Wands",
@@ -2398,12 +2398,14 @@ var calculateGematria = (word, options = {}, tree) => {
2398
2398
  const latinLetterId2 = `letter:${combinedLetter}`;
2399
2399
  const [mapping2] = tree.walk(latinLetterId2, 2, "hebrewLetter");
2400
2400
  if (mapping2?.data) {
2401
+ let hebrewCharacter = mapping2.data.character;
2401
2402
  let value = mapping2.data.gematriaValue;
2402
- if (isEnding2 && mapping2.data.gematriaValueWhenEnding !== void 0) {
2403
+ if (isEnding2 && mapping2.data.gematriaValueWhenEnding !== void 0 && mapping2.data.characterWhenEnding !== void 0) {
2404
+ hebrewCharacter = mapping2.data.characterWhenEnding;
2403
2405
  value = mapping2.data.gematriaValueWhenEnding;
2404
2406
  }
2405
2407
  includedGematriaValues.add(value);
2406
- includedLetters.push({ latinLetterId: latinLetterId2, value, hebrewLetterId: mapping2.id, isVowel: isVowel(letter) });
2408
+ includedLetters.push({ latinLetterId: latinLetterId2, value, hebrewLetterId: mapping2.id, hebrewCharacter, isVowel: isVowel(letter) });
2407
2409
  consonantsSum += value;
2408
2410
  i++;
2409
2411
  continue;
@@ -2420,11 +2422,13 @@ var calculateGematria = (word, options = {}, tree) => {
2420
2422
  const isEnding = i > 0 && i === letters.length - 1;
2421
2423
  if (mapping?.data) {
2422
2424
  let value = mapping.data.gematriaValue;
2423
- if (isEnding && mapping.data.gematriaValueWhenEnding !== void 0) {
2425
+ let hebrewCharacter = mapping.data.character;
2426
+ if (isEnding && mapping.data.gematriaValueWhenEnding !== void 0 && mapping.data.characterWhenEnding !== void 0) {
2424
2427
  value = mapping.data.gematriaValueWhenEnding;
2428
+ hebrewCharacter = mapping.data.characterWhenEnding;
2425
2429
  }
2426
2430
  includedGematriaValues.add(value);
2427
- includedLetters.push({ latinLetterId, value, hebrewLetterId: mapping.id, isVowel: isVowel(letter) });
2431
+ includedLetters.push({ latinLetterId, value, hebrewLetterId: mapping.id, hebrewCharacter, isVowel: isVowel(letter) });
2428
2432
  if (isVowel(letter)) {
2429
2433
  vowelsSum += value;
2430
2434
  } else {