kaabalah 0.2.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/dist/core/index.d.mts +15 -0
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.js +2379 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +2341 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/gematria/index.d.mts +39 -0
- package/dist/gematria/index.d.ts +39 -0
- package/dist/gematria/index.js +2484 -0
- package/dist/gematria/index.js.map +1 -0
- package/dist/gematria/index.mjs +2463 -0
- package/dist/gematria/index.mjs.map +1 -0
- package/dist/ifa/index.d.mts +16 -0
- package/dist/ifa/index.d.ts +16 -0
- package/dist/ifa/index.js +75 -0
- package/dist/ifa/index.js.map +1 -0
- package/dist/ifa/index.mjs +50 -0
- package/dist/ifa/index.mjs.map +1 -0
- package/dist/index.d.mts +3 -9
- package/dist/index.d.ts +3 -9
- package/dist/index.js +2384 -466
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2370 -464
- package/dist/index.mjs.map +1 -1
- package/dist/registry-Cz3t3ylv.d.mts +479 -0
- package/dist/registry-Cz3t3ylv.d.ts +479 -0
- package/package.json +13 -7
- package/dist/kaabalah/index.d.mts +0 -26
- package/dist/kaabalah/index.d.ts +0 -26
- package/dist/kaabalah/index.js +0 -590
- package/dist/kaabalah/index.js.map +0 -1
- package/dist/kaabalah/index.mjs +0 -565
- package/dist/kaabalah/index.mjs.map +0 -1
package/dist/kaabalah/index.mjs
DELETED
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
// src/kaabalah/index.ts
|
|
2
|
-
var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
3
|
-
[
|
|
4
|
-
"A",
|
|
5
|
-
{
|
|
6
|
-
letter: "A",
|
|
7
|
-
hebrewName: "Aleph",
|
|
8
|
-
hebrewCharacter: "\u05D0",
|
|
9
|
-
numericValue: 1,
|
|
10
|
-
majorArcana: 1,
|
|
11
|
-
astrologicalEnergy: "Air",
|
|
12
|
-
letterType: "mother"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
[
|
|
16
|
-
"\xC3",
|
|
17
|
-
{
|
|
18
|
-
letter: "\xC3",
|
|
19
|
-
hebrewName: "Aleph",
|
|
20
|
-
hebrewCharacter: "\u05D0",
|
|
21
|
-
numericValue: 5,
|
|
22
|
-
majorArcana: 1,
|
|
23
|
-
astrologicalEnergy: "Air",
|
|
24
|
-
letterType: "mother"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
"B",
|
|
29
|
-
{
|
|
30
|
-
letter: "B",
|
|
31
|
-
hebrewName: "Beth",
|
|
32
|
-
hebrewCharacter: "\u05D1",
|
|
33
|
-
numericValue: 2,
|
|
34
|
-
majorArcana: 2,
|
|
35
|
-
astrologicalEnergy: "Moon",
|
|
36
|
-
letterType: "double"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
[
|
|
40
|
-
"G",
|
|
41
|
-
{
|
|
42
|
-
letter: "G",
|
|
43
|
-
hebrewName: "Gimel",
|
|
44
|
-
hebrewCharacter: "\u05D2",
|
|
45
|
-
numericValue: 3,
|
|
46
|
-
majorArcana: 3,
|
|
47
|
-
astrologicalEnergy: "Venus",
|
|
48
|
-
letterType: "double"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
"D",
|
|
53
|
-
{
|
|
54
|
-
letter: "D",
|
|
55
|
-
hebrewName: "Daleth",
|
|
56
|
-
hebrewCharacter: "\u05D3",
|
|
57
|
-
numericValue: 4,
|
|
58
|
-
majorArcana: 4,
|
|
59
|
-
astrologicalEnergy: "Jupiter",
|
|
60
|
-
letterType: "double"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
[
|
|
64
|
-
"E",
|
|
65
|
-
{
|
|
66
|
-
letter: "E",
|
|
67
|
-
hebrewName: "He",
|
|
68
|
-
hebrewCharacter: "\u05D4",
|
|
69
|
-
numericValue: 5,
|
|
70
|
-
majorArcana: 5,
|
|
71
|
-
astrologicalEnergy: "Aries",
|
|
72
|
-
letterType: "simple"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
[
|
|
76
|
-
"V",
|
|
77
|
-
{
|
|
78
|
-
letter: "V",
|
|
79
|
-
hebrewName: "Vav",
|
|
80
|
-
hebrewCharacter: "\u05D5",
|
|
81
|
-
numericValue: 6,
|
|
82
|
-
majorArcana: 6,
|
|
83
|
-
astrologicalEnergy: "Taurus",
|
|
84
|
-
letterType: "simple"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
[
|
|
88
|
-
"U",
|
|
89
|
-
{
|
|
90
|
-
letter: "U",
|
|
91
|
-
hebrewName: "Vav",
|
|
92
|
-
hebrewCharacter: "\u05D5",
|
|
93
|
-
numericValue: 6,
|
|
94
|
-
majorArcana: 6,
|
|
95
|
-
astrologicalEnergy: "Taurus",
|
|
96
|
-
letterType: "simple"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
"W",
|
|
101
|
-
{
|
|
102
|
-
letter: "W",
|
|
103
|
-
hebrewName: "Vav",
|
|
104
|
-
hebrewCharacter: "\u05D5",
|
|
105
|
-
numericValue: 6,
|
|
106
|
-
majorArcana: 6,
|
|
107
|
-
astrologicalEnergy: "Taurus",
|
|
108
|
-
letterType: "simple"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
[
|
|
112
|
-
"O",
|
|
113
|
-
{
|
|
114
|
-
letter: "O",
|
|
115
|
-
hebrewName: "Vav",
|
|
116
|
-
hebrewCharacter: "\u05D5",
|
|
117
|
-
numericValue: 6,
|
|
118
|
-
majorArcana: 6,
|
|
119
|
-
astrologicalEnergy: "Taurus",
|
|
120
|
-
letterType: "simple"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
"Z",
|
|
125
|
-
{
|
|
126
|
-
letter: "Z",
|
|
127
|
-
hebrewName: "Zayin",
|
|
128
|
-
hebrewCharacter: "\u05D6",
|
|
129
|
-
numericValue: 7,
|
|
130
|
-
majorArcana: 7,
|
|
131
|
-
astrologicalEnergy: "Gemini",
|
|
132
|
-
letterType: "simple"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
[
|
|
136
|
-
"H",
|
|
137
|
-
{
|
|
138
|
-
letter: "H",
|
|
139
|
-
hebrewName: "Cheth",
|
|
140
|
-
hebrewCharacter: "\u05D7",
|
|
141
|
-
numericValue: 8,
|
|
142
|
-
majorArcana: 8,
|
|
143
|
-
astrologicalEnergy: "Cancer",
|
|
144
|
-
letterType: "simple"
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
[
|
|
148
|
-
"T",
|
|
149
|
-
{
|
|
150
|
-
letter: "T",
|
|
151
|
-
hebrewName: "Teth",
|
|
152
|
-
hebrewCharacter: "\u05D8",
|
|
153
|
-
numericValue: 9,
|
|
154
|
-
majorArcana: 9,
|
|
155
|
-
astrologicalEnergy: "Leo",
|
|
156
|
-
letterType: "simple"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
[
|
|
160
|
-
"TH",
|
|
161
|
-
{
|
|
162
|
-
letter: "Th",
|
|
163
|
-
hebrewName: "Tav",
|
|
164
|
-
hebrewCharacter: "\u05EA",
|
|
165
|
-
numericValue: 400,
|
|
166
|
-
majorArcana: 22,
|
|
167
|
-
astrologicalEnergy: "Sun",
|
|
168
|
-
letterType: "double"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
[
|
|
172
|
-
"TS",
|
|
173
|
-
{
|
|
174
|
-
letter: "Ts",
|
|
175
|
-
hebrewName: "Tzaddi",
|
|
176
|
-
hebrewCharacter: "\u05E6",
|
|
177
|
-
numericValue: 90,
|
|
178
|
-
numericValueWhenEnding: 900,
|
|
179
|
-
majorArcana: 18,
|
|
180
|
-
astrologicalEnergy: "Aquarius",
|
|
181
|
-
letterType: "simple"
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
[
|
|
185
|
-
"TZ",
|
|
186
|
-
{
|
|
187
|
-
letter: "Tz",
|
|
188
|
-
hebrewName: "Tzaddi",
|
|
189
|
-
hebrewCharacter: "\u05E6",
|
|
190
|
-
numericValue: 90,
|
|
191
|
-
numericValueWhenEnding: 900,
|
|
192
|
-
majorArcana: 18,
|
|
193
|
-
astrologicalEnergy: "Aquarius",
|
|
194
|
-
letterType: "simple"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
[
|
|
198
|
-
"I",
|
|
199
|
-
{
|
|
200
|
-
letter: "I",
|
|
201
|
-
hebrewName: "Yod",
|
|
202
|
-
hebrewCharacter: "\u05D9",
|
|
203
|
-
numericValue: 10,
|
|
204
|
-
majorArcana: 10,
|
|
205
|
-
astrologicalEnergy: "Virgo",
|
|
206
|
-
letterType: "simple"
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
[
|
|
210
|
-
"J",
|
|
211
|
-
{
|
|
212
|
-
letter: "J",
|
|
213
|
-
hebrewName: "Yod",
|
|
214
|
-
hebrewCharacter: "\u05D9",
|
|
215
|
-
numericValue: 10,
|
|
216
|
-
majorArcana: 10,
|
|
217
|
-
astrologicalEnergy: "Virgo",
|
|
218
|
-
letterType: "simple"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
[
|
|
222
|
-
"Y",
|
|
223
|
-
{
|
|
224
|
-
letter: "Y",
|
|
225
|
-
hebrewName: "Yod",
|
|
226
|
-
hebrewCharacter: "\u05D9",
|
|
227
|
-
numericValue: 10,
|
|
228
|
-
majorArcana: 10,
|
|
229
|
-
astrologicalEnergy: "Virgo",
|
|
230
|
-
letterType: "simple"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
[
|
|
234
|
-
"C",
|
|
235
|
-
{
|
|
236
|
-
letter: "C",
|
|
237
|
-
hebrewName: "Kaph",
|
|
238
|
-
hebrewCharacter: "\u05DB",
|
|
239
|
-
numericValue: 20,
|
|
240
|
-
numericValueWhenEnding: 500,
|
|
241
|
-
majorArcana: 11,
|
|
242
|
-
astrologicalEnergy: "Mars",
|
|
243
|
-
letterType: "double"
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
|
-
[
|
|
247
|
-
"L",
|
|
248
|
-
{
|
|
249
|
-
letter: "L",
|
|
250
|
-
hebrewName: "Lamed",
|
|
251
|
-
hebrewCharacter: "\u05DC",
|
|
252
|
-
numericValue: 30,
|
|
253
|
-
majorArcana: 12,
|
|
254
|
-
astrologicalEnergy: "Libra",
|
|
255
|
-
letterType: "simple"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
[
|
|
259
|
-
"M",
|
|
260
|
-
{
|
|
261
|
-
letter: "M",
|
|
262
|
-
hebrewName: "Mem",
|
|
263
|
-
hebrewCharacter: "\u05DE",
|
|
264
|
-
numericValue: 40,
|
|
265
|
-
numericValueWhenEnding: 600,
|
|
266
|
-
majorArcana: 13,
|
|
267
|
-
astrologicalEnergy: "Water",
|
|
268
|
-
letterType: "mother"
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
"N",
|
|
273
|
-
{
|
|
274
|
-
letter: "N",
|
|
275
|
-
hebrewName: "Nun",
|
|
276
|
-
hebrewCharacter: "\u05E0",
|
|
277
|
-
numericValue: 50,
|
|
278
|
-
numericValueWhenEnding: 700,
|
|
279
|
-
majorArcana: 14,
|
|
280
|
-
astrologicalEnergy: "Scorpio",
|
|
281
|
-
letterType: "simple"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
[
|
|
285
|
-
"S",
|
|
286
|
-
{
|
|
287
|
-
letter: "S",
|
|
288
|
-
hebrewName: "Samekh",
|
|
289
|
-
hebrewCharacter: "\u05E1",
|
|
290
|
-
numericValue: 60,
|
|
291
|
-
majorArcana: 15,
|
|
292
|
-
astrologicalEnergy: "Sagittarius",
|
|
293
|
-
letterType: "simple"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
[
|
|
297
|
-
"\xC7",
|
|
298
|
-
{
|
|
299
|
-
letter: "\xC7",
|
|
300
|
-
hebrewName: "Samekh",
|
|
301
|
-
hebrewCharacter: "\u05E1",
|
|
302
|
-
numericValue: 60,
|
|
303
|
-
majorArcana: 15,
|
|
304
|
-
astrologicalEnergy: "Sagittarius",
|
|
305
|
-
letterType: "simple"
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
[
|
|
309
|
-
"P",
|
|
310
|
-
{
|
|
311
|
-
letter: "P",
|
|
312
|
-
hebrewName: "Pe",
|
|
313
|
-
hebrewCharacter: "\u05E4",
|
|
314
|
-
numericValue: 80,
|
|
315
|
-
numericValueWhenEnding: 800,
|
|
316
|
-
majorArcana: 17,
|
|
317
|
-
astrologicalEnergy: "Mercury",
|
|
318
|
-
letterType: "double"
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
[
|
|
322
|
-
"PH",
|
|
323
|
-
{
|
|
324
|
-
letter: "Ph",
|
|
325
|
-
hebrewName: "Pe",
|
|
326
|
-
hebrewCharacter: "\u05E4",
|
|
327
|
-
numericValue: 80,
|
|
328
|
-
numericValueWhenEnding: 800,
|
|
329
|
-
majorArcana: 17,
|
|
330
|
-
astrologicalEnergy: "Mercury",
|
|
331
|
-
letterType: "double"
|
|
332
|
-
}
|
|
333
|
-
],
|
|
334
|
-
[
|
|
335
|
-
"F",
|
|
336
|
-
{
|
|
337
|
-
letter: "F",
|
|
338
|
-
hebrewName: "Pe",
|
|
339
|
-
hebrewCharacter: "\u05E4",
|
|
340
|
-
numericValue: 80,
|
|
341
|
-
numericValueWhenEnding: 800,
|
|
342
|
-
majorArcana: 17,
|
|
343
|
-
astrologicalEnergy: "Mercury",
|
|
344
|
-
letterType: "double"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
[
|
|
348
|
-
"K",
|
|
349
|
-
{
|
|
350
|
-
letter: "K",
|
|
351
|
-
hebrewName: "Qoph",
|
|
352
|
-
hebrewCharacter: "\u05E7",
|
|
353
|
-
numericValue: 100,
|
|
354
|
-
majorArcana: 19,
|
|
355
|
-
astrologicalEnergy: "Pisces",
|
|
356
|
-
letterType: "simple"
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
[
|
|
360
|
-
"KH",
|
|
361
|
-
{
|
|
362
|
-
letter: "Kh",
|
|
363
|
-
hebrewName: "Qoph",
|
|
364
|
-
hebrewCharacter: "\u05E7",
|
|
365
|
-
numericValue: 100,
|
|
366
|
-
majorArcana: 19,
|
|
367
|
-
astrologicalEnergy: "Pisces",
|
|
368
|
-
letterType: "simple"
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
[
|
|
372
|
-
"Q",
|
|
373
|
-
{
|
|
374
|
-
letter: "Q",
|
|
375
|
-
hebrewName: "Qoph",
|
|
376
|
-
hebrewCharacter: "\u05E7",
|
|
377
|
-
numericValue: 100,
|
|
378
|
-
majorArcana: 19,
|
|
379
|
-
astrologicalEnergy: "Pisces",
|
|
380
|
-
letterType: "simple"
|
|
381
|
-
}
|
|
382
|
-
],
|
|
383
|
-
[
|
|
384
|
-
"R",
|
|
385
|
-
{
|
|
386
|
-
letter: "R",
|
|
387
|
-
hebrewName: "Resh",
|
|
388
|
-
hebrewCharacter: "\u05E8",
|
|
389
|
-
numericValue: 200,
|
|
390
|
-
majorArcana: 20,
|
|
391
|
-
astrologicalEnergy: "Saturn",
|
|
392
|
-
letterType: "double"
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
[
|
|
396
|
-
"SH",
|
|
397
|
-
{
|
|
398
|
-
letter: "Sh",
|
|
399
|
-
hebrewName: "Shin",
|
|
400
|
-
hebrewCharacter: "\u05E9",
|
|
401
|
-
numericValue: 300,
|
|
402
|
-
majorArcana: 21,
|
|
403
|
-
astrologicalEnergy: "Fire",
|
|
404
|
-
letterType: "mother"
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
[
|
|
408
|
-
"CH",
|
|
409
|
-
{
|
|
410
|
-
letter: "Ch",
|
|
411
|
-
hebrewName: "Shin",
|
|
412
|
-
hebrewCharacter: "\u05E9",
|
|
413
|
-
numericValue: 300,
|
|
414
|
-
majorArcana: 21,
|
|
415
|
-
astrologicalEnergy: "Fire",
|
|
416
|
-
letterType: "mother"
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
[
|
|
420
|
-
"X",
|
|
421
|
-
{
|
|
422
|
-
letter: "X",
|
|
423
|
-
hebrewName: "Shin",
|
|
424
|
-
hebrewCharacter: "\u05E9",
|
|
425
|
-
numericValue: 300,
|
|
426
|
-
majorArcana: 21,
|
|
427
|
-
astrologicalEnergy: "Fire",
|
|
428
|
-
letterType: "mother"
|
|
429
|
-
}
|
|
430
|
-
]
|
|
431
|
-
]);
|
|
432
|
-
hebrewLetterMapping.set("O_START", {
|
|
433
|
-
letter: "O",
|
|
434
|
-
hebrewName: "Ayin",
|
|
435
|
-
hebrewCharacter: "\u05E2",
|
|
436
|
-
numericValue: 70,
|
|
437
|
-
majorArcana: 16,
|
|
438
|
-
astrologicalEnergy: "Capricorn",
|
|
439
|
-
letterType: "simple"
|
|
440
|
-
});
|
|
441
|
-
var allGematriaNumbers = /* @__PURE__ */ new Map([
|
|
442
|
-
[1, /* @__PURE__ */ new Set(["A"])],
|
|
443
|
-
[2, /* @__PURE__ */ new Set(["B"])],
|
|
444
|
-
[3, /* @__PURE__ */ new Set(["G"])],
|
|
445
|
-
[4, /* @__PURE__ */ new Set(["D"])],
|
|
446
|
-
[5, /* @__PURE__ */ new Set(["E", "\xC3"])],
|
|
447
|
-
[6, /* @__PURE__ */ new Set(["V", "U", "W", "O"])],
|
|
448
|
-
[7, /* @__PURE__ */ new Set(["Z"])],
|
|
449
|
-
[8, /* @__PURE__ */ new Set(["H"])],
|
|
450
|
-
[9, /* @__PURE__ */ new Set(["T"])],
|
|
451
|
-
[10, /* @__PURE__ */ new Set(["I", "J", "Y"])],
|
|
452
|
-
[20, /* @__PURE__ */ new Set(["C"])],
|
|
453
|
-
[30, /* @__PURE__ */ new Set(["L"])],
|
|
454
|
-
[40, /* @__PURE__ */ new Set(["M"])],
|
|
455
|
-
[50, /* @__PURE__ */ new Set(["N"])],
|
|
456
|
-
[60, /* @__PURE__ */ new Set(["S"])],
|
|
457
|
-
[70, /* @__PURE__ */ new Set(["O"])],
|
|
458
|
-
[80, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
|
|
459
|
-
[90, /* @__PURE__ */ new Set(["Ts", "Tz"])],
|
|
460
|
-
[100, /* @__PURE__ */ new Set(["K", "Kh", "Q"])],
|
|
461
|
-
[200, /* @__PURE__ */ new Set(["R"])],
|
|
462
|
-
[300, /* @__PURE__ */ new Set(["Sh", "Ch", "X", "\xC7"])],
|
|
463
|
-
[400, /* @__PURE__ */ new Set(["Th"])],
|
|
464
|
-
[500, /* @__PURE__ */ new Set(["C"])],
|
|
465
|
-
[600, /* @__PURE__ */ new Set(["M"])],
|
|
466
|
-
[700, /* @__PURE__ */ new Set(["N"])],
|
|
467
|
-
[800, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
|
|
468
|
-
[900, /* @__PURE__ */ new Set(["Ts", "Tz"])]
|
|
469
|
-
]);
|
|
470
|
-
var reduceToSingleDigitWithSteps = (num) => {
|
|
471
|
-
const steps = [num];
|
|
472
|
-
let currentNum = num;
|
|
473
|
-
while (currentNum > 9) {
|
|
474
|
-
currentNum = String(currentNum).split("").reduce((acc, digit) => acc + parseInt(digit), 0);
|
|
475
|
-
steps.push(currentNum);
|
|
476
|
-
}
|
|
477
|
-
return {
|
|
478
|
-
steps,
|
|
479
|
-
finalValue: currentNum
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
var isVowel = (letter) => {
|
|
483
|
-
return ["A", "\xC3", "E", "I", "O", "U", "Y", "W"].includes(letter);
|
|
484
|
-
};
|
|
485
|
-
var calculateGematria = (word) => {
|
|
486
|
-
const letters = word.toUpperCase().split("");
|
|
487
|
-
let vowelsSum = 0;
|
|
488
|
-
let consonantsSum = 0;
|
|
489
|
-
const presentGematriaNumbers = /* @__PURE__ */ new Set();
|
|
490
|
-
for (let i = 0; i < letters.length; i++) {
|
|
491
|
-
const letter = letters[i];
|
|
492
|
-
const nextLetter = letters[i + 1] || "";
|
|
493
|
-
if (["P", "T", "K", "S", "C"].includes(letter) && nextLetter) {
|
|
494
|
-
const combinedLetter = (letter + nextLetter).toUpperCase();
|
|
495
|
-
const isEnding2 = i > 0 && i === letters.length - 2;
|
|
496
|
-
const mapping2 = hebrewLetterMapping.get(combinedLetter);
|
|
497
|
-
if (mapping2) {
|
|
498
|
-
let value = mapping2.numericValue;
|
|
499
|
-
if (isEnding2 && mapping2.numericValueWhenEnding !== void 0) {
|
|
500
|
-
value = mapping2.numericValueWhenEnding;
|
|
501
|
-
}
|
|
502
|
-
presentGematriaNumbers.add(value);
|
|
503
|
-
consonantsSum += value;
|
|
504
|
-
i++;
|
|
505
|
-
continue;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
let mapping;
|
|
509
|
-
if (letter === "O" && i === 0 && hebrewLetterMapping.has("O_START")) {
|
|
510
|
-
mapping = hebrewLetterMapping.get("O_START");
|
|
511
|
-
} else {
|
|
512
|
-
mapping = hebrewLetterMapping.get(letter);
|
|
513
|
-
}
|
|
514
|
-
const isEnding = i > 0 && i === letters.length - 1;
|
|
515
|
-
if (mapping) {
|
|
516
|
-
let value = mapping.numericValue;
|
|
517
|
-
if (isEnding && mapping.numericValueWhenEnding !== void 0) {
|
|
518
|
-
value = mapping.numericValueWhenEnding;
|
|
519
|
-
}
|
|
520
|
-
presentGematriaNumbers.add(value);
|
|
521
|
-
if (isVowel(letter)) {
|
|
522
|
-
vowelsSum += value;
|
|
523
|
-
} else {
|
|
524
|
-
consonantsSum += value;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
const vowelsReduction = reduceToSingleDigitWithSteps(vowelsSum);
|
|
529
|
-
const consonantsReduction = reduceToSingleDigitWithSteps(consonantsSum);
|
|
530
|
-
const synthesisReduction = reduceToSingleDigitWithSteps(
|
|
531
|
-
vowelsSum + consonantsSum
|
|
532
|
-
);
|
|
533
|
-
const missingGematriaNumbers = [];
|
|
534
|
-
for (const [num, lettersSet] of allGematriaNumbers.entries()) {
|
|
535
|
-
if (!presentGematriaNumbers.has(num)) {
|
|
536
|
-
missingGematriaNumbers.push({
|
|
537
|
-
number: num,
|
|
538
|
-
letters: Array.from(lettersSet)
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
missingGematriaNumbers.sort((a, b) => a.number - b.number);
|
|
543
|
-
return {
|
|
544
|
-
vowels: {
|
|
545
|
-
originalSum: vowelsSum,
|
|
546
|
-
reductionSteps: vowelsReduction.steps,
|
|
547
|
-
finalValue: vowelsReduction.finalValue
|
|
548
|
-
},
|
|
549
|
-
consonants: {
|
|
550
|
-
originalSum: consonantsSum,
|
|
551
|
-
reductionSteps: consonantsReduction.steps,
|
|
552
|
-
finalValue: consonantsReduction.finalValue
|
|
553
|
-
},
|
|
554
|
-
synthesis: {
|
|
555
|
-
originalSum: vowelsSum + consonantsSum,
|
|
556
|
-
reductionSteps: synthesisReduction.steps,
|
|
557
|
-
finalValue: synthesisReduction.finalValue
|
|
558
|
-
},
|
|
559
|
-
missingGematriaNumbers
|
|
560
|
-
};
|
|
561
|
-
};
|
|
562
|
-
export {
|
|
563
|
-
calculateGematria
|
|
564
|
-
};
|
|
565
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/kaabalah/index.ts"],"sourcesContent":["/**\n * Kaabalah-related functions\n */\n\nconst hebrewLetterMapping = new Map([\n [\n \"A\",\n {\n letter: \"A\",\n hebrewName: \"Aleph\",\n hebrewCharacter: \"א\",\n numericValue: 1,\n majorArcana: 1,\n astrologicalEnergy: \"Air\",\n letterType: \"mother\"\n }\n ],\n [\n \"\\u00C3\",\n {\n letter: \"Ã\",\n hebrewName: \"Aleph\",\n hebrewCharacter: \"א\",\n numericValue: 5,\n majorArcana: 1,\n astrologicalEnergy: \"Air\",\n letterType: \"mother\"\n }\n ],\n [\n \"B\",\n {\n letter: \"B\",\n hebrewName: \"Beth\",\n hebrewCharacter: \"ב\",\n numericValue: 2,\n majorArcana: 2,\n astrologicalEnergy: \"Moon\",\n letterType: \"double\"\n }\n ],\n [\n \"G\",\n {\n letter: \"G\",\n hebrewName: \"Gimel\",\n hebrewCharacter: \"ג\",\n numericValue: 3,\n majorArcana: 3,\n astrologicalEnergy: \"Venus\",\n letterType: \"double\"\n }\n ],\n [\n \"D\",\n {\n letter: \"D\",\n hebrewName: \"Daleth\",\n hebrewCharacter: \"ד\",\n numericValue: 4,\n majorArcana: 4,\n astrologicalEnergy: \"Jupiter\",\n letterType: \"double\"\n }\n ],\n [\n \"E\",\n {\n letter: \"E\",\n hebrewName: \"He\",\n hebrewCharacter: \"ה\",\n numericValue: 5,\n majorArcana: 5,\n astrologicalEnergy: \"Aries\",\n letterType: \"simple\"\n }\n ],\n [\n \"V\",\n {\n letter: \"V\",\n hebrewName: \"Vav\",\n hebrewCharacter: \"ו\",\n numericValue: 6,\n majorArcana: 6,\n astrologicalEnergy: \"Taurus\",\n letterType: \"simple\"\n }\n ],\n [\n \"U\",\n {\n letter: \"U\",\n hebrewName: \"Vav\",\n hebrewCharacter: \"ו\",\n numericValue: 6,\n majorArcana: 6,\n astrologicalEnergy: \"Taurus\",\n letterType: \"simple\"\n }\n ],\n [\n \"W\",\n {\n letter: \"W\",\n hebrewName: \"Vav\",\n hebrewCharacter: \"ו\",\n numericValue: 6,\n majorArcana: 6,\n astrologicalEnergy: \"Taurus\",\n letterType: \"simple\"\n }\n ],\n [\n \"O\",\n {\n letter: \"O\",\n hebrewName: \"Vav\",\n hebrewCharacter: \"ו\",\n numericValue: 6,\n majorArcana: 6,\n astrologicalEnergy: \"Taurus\",\n letterType: \"simple\"\n }\n ],\n [\n \"Z\",\n {\n letter: \"Z\",\n hebrewName: \"Zayin\",\n hebrewCharacter: \"ז\",\n numericValue: 7,\n majorArcana: 7,\n astrologicalEnergy: \"Gemini\",\n letterType: \"simple\"\n }\n ],\n [\n \"H\",\n {\n letter: \"H\",\n hebrewName: \"Cheth\",\n hebrewCharacter: \"ח\",\n numericValue: 8,\n majorArcana: 8,\n astrologicalEnergy: \"Cancer\",\n letterType: \"simple\"\n }\n ],\n [\n \"T\",\n {\n letter: \"T\",\n hebrewName: \"Teth\",\n hebrewCharacter: \"ט\",\n numericValue: 9,\n majorArcana: 9,\n astrologicalEnergy: \"Leo\",\n letterType: \"simple\"\n }\n ],\n [\n \"TH\",\n {\n letter: \"Th\",\n hebrewName: \"Tav\",\n hebrewCharacter: \"ת\",\n numericValue: 400,\n majorArcana: 22,\n astrologicalEnergy: \"Sun\",\n letterType: \"double\"\n }\n ],\n [\n \"TS\",\n {\n letter: \"Ts\",\n hebrewName: \"Tzaddi\",\n hebrewCharacter: \"צ\",\n numericValue: 90,\n numericValueWhenEnding: 900,\n majorArcana: 18,\n astrologicalEnergy: \"Aquarius\",\n letterType: \"simple\"\n }\n ],\n [\n \"TZ\",\n {\n letter: \"Tz\",\n hebrewName: \"Tzaddi\",\n hebrewCharacter: \"צ\",\n numericValue: 90,\n numericValueWhenEnding: 900,\n majorArcana: 18,\n astrologicalEnergy: \"Aquarius\",\n letterType: \"simple\"\n }\n ],\n [\n \"I\",\n {\n letter: \"I\",\n hebrewName: \"Yod\",\n hebrewCharacter: \"י\",\n numericValue: 10,\n majorArcana: 10,\n astrologicalEnergy: \"Virgo\",\n letterType: \"simple\"\n }\n ],\n [\n \"J\",\n {\n letter: \"J\",\n hebrewName: \"Yod\",\n hebrewCharacter: \"י\",\n numericValue: 10,\n majorArcana: 10,\n astrologicalEnergy: \"Virgo\",\n letterType: \"simple\"\n }\n ],\n [\n \"Y\",\n {\n letter: \"Y\",\n hebrewName: \"Yod\",\n hebrewCharacter: \"י\",\n numericValue: 10,\n majorArcana: 10,\n astrologicalEnergy: \"Virgo\",\n letterType: \"simple\"\n }\n ],\n [\n \"C\",\n {\n letter: \"C\",\n hebrewName: \"Kaph\",\n hebrewCharacter: \"כ\",\n numericValue: 20,\n numericValueWhenEnding: 500,\n majorArcana: 11,\n astrologicalEnergy: \"Mars\",\n letterType: \"double\"\n }\n ],\n [\n \"L\",\n {\n letter: \"L\",\n hebrewName: \"Lamed\",\n hebrewCharacter: \"ל\",\n numericValue: 30,\n majorArcana: 12,\n astrologicalEnergy: \"Libra\",\n letterType: \"simple\"\n }\n ],\n [\n \"M\",\n {\n letter: \"M\",\n hebrewName: \"Mem\",\n hebrewCharacter: \"מ\",\n numericValue: 40,\n numericValueWhenEnding: 600,\n majorArcana: 13,\n astrologicalEnergy: \"Water\",\n letterType: \"mother\"\n }\n ],\n [\n \"N\",\n {\n letter: \"N\",\n hebrewName: \"Nun\",\n hebrewCharacter: \"נ\",\n numericValue: 50,\n numericValueWhenEnding: 700,\n majorArcana: 14,\n astrologicalEnergy: \"Scorpio\",\n letterType: \"simple\"\n }\n ],\n [\n \"S\",\n {\n letter: \"S\",\n hebrewName: \"Samekh\",\n hebrewCharacter: \"ס\",\n numericValue: 60,\n majorArcana: 15,\n astrologicalEnergy: \"Sagittarius\",\n letterType: \"simple\"\n }\n ],\n [\n \"\\u00C7\",\n {\n letter: \"Ç\",\n hebrewName: \"Samekh\",\n hebrewCharacter: \"ס\",\n numericValue: 60,\n majorArcana: 15,\n astrologicalEnergy: \"Sagittarius\",\n letterType: \"simple\"\n }\n ],\n [\n \"P\",\n {\n letter: \"P\",\n hebrewName: \"Pe\",\n hebrewCharacter: \"פ\",\n numericValue: 80,\n numericValueWhenEnding: 800,\n majorArcana: 17,\n astrologicalEnergy: \"Mercury\",\n letterType: \"double\"\n }\n ],\n [\n \"PH\",\n {\n letter: \"Ph\",\n hebrewName: \"Pe\",\n hebrewCharacter: \"פ\",\n numericValue: 80,\n numericValueWhenEnding: 800,\n majorArcana: 17,\n astrologicalEnergy: \"Mercury\",\n letterType: \"double\"\n }\n ],\n [\n \"F\",\n {\n letter: \"F\",\n hebrewName: \"Pe\",\n hebrewCharacter: \"פ\",\n numericValue: 80,\n numericValueWhenEnding: 800,\n majorArcana: 17,\n astrologicalEnergy: \"Mercury\",\n letterType: \"double\"\n }\n ],\n [\n \"K\",\n {\n letter: \"K\",\n hebrewName: \"Qoph\",\n hebrewCharacter: \"ק\",\n numericValue: 100,\n majorArcana: 19,\n astrologicalEnergy: \"Pisces\",\n letterType: \"simple\"\n }\n ],\n [\n \"KH\",\n {\n letter: \"Kh\",\n hebrewName: \"Qoph\",\n hebrewCharacter: \"ק\",\n numericValue: 100,\n majorArcana: 19,\n astrologicalEnergy: \"Pisces\",\n letterType: \"simple\"\n }\n ],\n [\n \"Q\",\n {\n letter: \"Q\",\n hebrewName: \"Qoph\",\n hebrewCharacter: \"ק\",\n numericValue: 100,\n majorArcana: 19,\n astrologicalEnergy: \"Pisces\",\n letterType: \"simple\"\n }\n ],\n [\n \"R\",\n {\n letter: \"R\",\n hebrewName: \"Resh\",\n hebrewCharacter: \"ר\",\n numericValue: 200,\n majorArcana: 20,\n astrologicalEnergy: \"Saturn\",\n letterType: \"double\"\n }\n ],\n [\n \"SH\",\n {\n letter: \"Sh\",\n hebrewName: \"Shin\",\n hebrewCharacter: \"ש\",\n numericValue: 300,\n majorArcana: 21,\n astrologicalEnergy: \"Fire\",\n letterType: \"mother\"\n }\n ],\n [\n \"CH\",\n {\n letter: \"Ch\",\n hebrewName: \"Shin\",\n hebrewCharacter: \"ש\",\n numericValue: 300,\n majorArcana: 21,\n astrologicalEnergy: \"Fire\",\n letterType: \"mother\"\n }\n ],\n [\n \"X\",\n {\n letter: \"X\",\n hebrewName: \"Shin\",\n hebrewCharacter: \"ש\",\n numericValue: 300,\n majorArcana: 21,\n astrologicalEnergy: \"Fire\",\n letterType: \"mother\"\n }\n ]\n])\n\n// Add special mapping for O at start (Ayin)\nhebrewLetterMapping.set('O_START', {\n letter: 'O',\n hebrewName: 'Ayin',\n hebrewCharacter: 'ע',\n numericValue: 70,\n majorArcana: 16,\n astrologicalEnergy: \"Capricorn\",\n letterType: \"simple\"\n})\n\nconst allGematriaNumbers = new Map<number, Set<string>>([\n [1, new Set([\"A\"])],\n [2, new Set([\"B\"])],\n [3, new Set([\"G\"])],\n [4, new Set([\"D\"])],\n [5, new Set([\"E\", \"Ã\"])],\n [6, new Set([\"V\", \"U\", \"W\", \"O\"])],\n [7, new Set([\"Z\"])],\n [8, new Set([\"H\"])],\n [9, new Set([\"T\"])],\n [10, new Set([\"I\", \"J\", \"Y\"])],\n [20, new Set([\"C\"])],\n [30, new Set([\"L\"])],\n [40, new Set([\"M\"])],\n [50, new Set([\"N\"])],\n [60, new Set([\"S\"])],\n [70, new Set([\"O\"])],\n [80, new Set([\"P\", \"F\", \"Ph\"])],\n [90, new Set([\"Ts\", \"Tz\"])],\n [100, new Set([\"K\", \"Kh\", \"Q\"])],\n [200, new Set([\"R\"])],\n [300, new Set([\"Sh\", \"Ch\", \"X\", \"Ç\"])],\n [400, new Set([\"Th\"])],\n [500, new Set([\"C\"])],\n [600, new Set([\"M\"])],\n [700, new Set([\"N\"])],\n [800, new Set([\"P\", \"F\", \"Ph\"])],\n [900, new Set([\"Ts\", \"Tz\"])],\n])\n\nconst reduceToSingleDigitWithSteps = (num: number) => {\n const steps = [num]\n let currentNum = num\n\n while (currentNum > 9) {\n currentNum = String(currentNum)\n .split(\"\")\n .reduce((acc, digit) => acc + parseInt(digit), 0)\n steps.push(currentNum)\n }\n\n return {\n steps,\n finalValue: currentNum\n }\n}\n\nconst isVowel = (letter: string) => {\n return [\"A\", \"Ã\", \"E\", \"I\", \"O\", \"U\", \"Y\", \"W\"].includes(letter)\n}\n\nexport const calculateGematria = (word: string) => {\n const letters = word.toUpperCase().split(\"\")\n let vowelsSum = 0\n let consonantsSum = 0\n\n const presentGematriaNumbers = new Set<number>()\n\n for (let i = 0; i < letters.length; i++) {\n const letter = letters[i]\n const nextLetter = letters[i + 1] || \"\"\n\n // Digraphs\n if ([\"P\", \"T\", \"K\", \"S\", \"C\"].includes(letter) && nextLetter) {\n const combinedLetter = (letter + nextLetter).toUpperCase()\n // -2 here since we're checking 2 letters\n const isEnding = i > 0 && i === letters.length - 2\n\n const mapping = hebrewLetterMapping.get(combinedLetter)\n if (mapping) {\n let value = mapping.numericValue\n if (isEnding && mapping.numericValueWhenEnding !== undefined) {\n value = mapping.numericValueWhenEnding\n }\n presentGematriaNumbers.add(value)\n consonantsSum += value\n i++\n continue\n }\n }\n\n // Special case: O at start (Ayin)\n let mapping\n if (letter === 'O' && i === 0 && hebrewLetterMapping.has('O_START')) {\n mapping = hebrewLetterMapping.get('O_START')\n } else {\n mapping = hebrewLetterMapping.get(letter)\n }\n\n const isEnding = i > 0 && i === letters.length - 1\n if (mapping) {\n let value = mapping.numericValue\n if (isEnding && mapping.numericValueWhenEnding !== undefined) {\n value = mapping.numericValueWhenEnding\n }\n\n presentGematriaNumbers.add(value)\n\n if (isVowel(letter)) {\n vowelsSum += value\n } else {\n consonantsSum += value\n }\n }\n }\n\n const vowelsReduction = reduceToSingleDigitWithSteps(vowelsSum)\n const consonantsReduction = reduceToSingleDigitWithSteps(consonantsSum)\n const synthesisReduction = reduceToSingleDigitWithSteps(\n vowelsSum + consonantsSum\n )\n\n const missingGematriaNumbers: { number: number, letters: string[] }[] = []\n for (const [num, lettersSet] of allGematriaNumbers.entries()) {\n if (!presentGematriaNumbers.has(num)) {\n missingGematriaNumbers.push({\n number: num,\n letters: Array.from(lettersSet)\n })\n }\n }\n missingGematriaNumbers.sort((a, b) => a.number - b.number)\n\n return {\n vowels: {\n originalSum: vowelsSum,\n reductionSteps: vowelsReduction.steps,\n finalValue: vowelsReduction.finalValue\n },\n consonants: {\n originalSum: consonantsSum,\n reductionSteps: consonantsReduction.steps,\n finalValue: consonantsReduction.finalValue\n },\n synthesis: {\n originalSum: vowelsSum + consonantsSum,\n reductionSteps: synthesisReduction.steps,\n finalValue: synthesisReduction.finalValue\n },\n missingGematriaNumbers\n }\n}"],"mappings":";AAIA,IAAM,sBAAsB,oBAAI,IAAI;AAAA,EAClC;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA;A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