kaabalah 5.5.0 → 5.6.0

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.
Files changed (54) hide show
  1. package/README.md +25 -0
  2. package/dist/{chunk-T67M2WBD.js → chunk-3HYK4Q4B.js} +263 -50
  3. package/dist/chunk-3HYK4Q4B.js.map +1 -0
  4. package/dist/{chunk-5ID55YUP.mjs → chunk-3SFBJHP2.mjs} +3 -3
  5. package/dist/{chunk-5ID55YUP.mjs.map → chunk-3SFBJHP2.mjs.map} +1 -1
  6. package/dist/chunk-4NMXTZX4.mjs +525 -0
  7. package/dist/chunk-4NMXTZX4.mjs.map +1 -0
  8. package/dist/{chunk-ZZ3YMT2R.js → chunk-EVQ432JA.js} +23 -23
  9. package/dist/{chunk-ZZ3YMT2R.js.map → chunk-EVQ432JA.js.map} +1 -1
  10. package/dist/{chunk-2J6CVLH2.mjs → chunk-IHQPXEB7.mjs} +263 -51
  11. package/dist/chunk-IHQPXEB7.mjs.map +1 -0
  12. package/dist/{chunk-M7XQFDS4.mjs → chunk-OGWTKRJK.js} +236 -43
  13. package/dist/chunk-OGWTKRJK.js.map +1 -0
  14. package/dist/{chunk-XSAXO3D2.mjs → chunk-S6BFRUJQ.mjs} +3 -3
  15. package/dist/{chunk-XSAXO3D2.mjs.map → chunk-S6BFRUJQ.mjs.map} +1 -1
  16. package/dist/{chunk-G5BG73Y5.js → chunk-U3JFWP24.mjs} +225 -46
  17. package/dist/chunk-U3JFWP24.mjs.map +1 -0
  18. package/dist/chunk-XB6PXEKO.js +529 -0
  19. package/dist/chunk-XB6PXEKO.js.map +1 -0
  20. package/dist/{chunk-2WENLHIP.js → chunk-XTVGQXCL.js} +4 -4
  21. package/dist/{chunk-2WENLHIP.js.map → chunk-XTVGQXCL.js.map} +1 -1
  22. package/dist/cli.js +1061 -126
  23. package/dist/cli.js.map +1 -1
  24. package/dist/{registry-DOiHyH-r.d.mts → constants-DbFwuCjR.d.mts} +1 -177
  25. package/dist/{registry-DOiHyH-r.d.ts → constants-DbFwuCjR.d.ts} +1 -177
  26. package/dist/core/index.d.mts +66 -3
  27. package/dist/core/index.d.ts +66 -3
  28. package/dist/core/index.js +55 -39
  29. package/dist/core/index.mjs +2 -2
  30. package/dist/correspondence-model-D8c42J4c.d.mts +281 -0
  31. package/dist/correspondence-model-DhmBYoMf.d.ts +281 -0
  32. package/dist/gematria/index.d.mts +2 -1
  33. package/dist/gematria/index.d.ts +2 -1
  34. package/dist/gematria/index.js +5 -5
  35. package/dist/gematria/index.mjs +2 -2
  36. package/dist/index.d.mts +4 -3
  37. package/dist/index.d.ts +4 -3
  38. package/dist/index.js +111 -71
  39. package/dist/index.mjs +5 -5
  40. package/dist/numerology/index.js +18 -18
  41. package/dist/numerology/index.mjs +3 -3
  42. package/dist/tarot/index.d.mts +64 -2
  43. package/dist/tarot/index.d.ts +64 -2
  44. package/dist/tarot/index.js +30 -4
  45. package/dist/tarot/index.mjs +3 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-2J6CVLH2.mjs.map +0 -1
  48. package/dist/chunk-AD7T42HJ.js +0 -4
  49. package/dist/chunk-AD7T42HJ.js.map +0 -1
  50. package/dist/chunk-G5BG73Y5.js.map +0 -1
  51. package/dist/chunk-M7XQFDS4.mjs.map +0 -1
  52. package/dist/chunk-RFSO3JRG.mjs +0 -3
  53. package/dist/chunk-RFSO3JRG.mjs.map +0 -1
  54. package/dist/chunk-T67M2WBD.js.map +0 -1
@@ -1,3 +1,8 @@
1
+ 'use strict';
2
+
3
+ var chunkXB6PXEKO_js = require('./chunk-XB6PXEKO.js');
4
+ var chunk3HYK4Q4B_js = require('./chunk-3HYK4Q4B.js');
5
+
1
6
  // src/tarot/index.ts
2
7
  var majorArcana = [
3
8
  "01_the_magician",
@@ -273,7 +278,7 @@ var ARKANNUS = [
273
278
  number: 27,
274
279
  tarotCard: "Ace of Wands",
275
280
  tarotCardFilename: "ace_wands",
276
- egyptianCardName: "The Unexpected",
281
+ egyptianCardName: "Initiation",
277
282
  meaning: "Ignite the flames of ideals, Trust in your inner divinity",
278
283
  papusMeaning: "Commencement of an enterprise.",
279
284
  type: "minor",
@@ -284,7 +289,7 @@ var ARKANNUS = [
284
289
  number: 28,
285
290
  tarotCard: "Two of Wands",
286
291
  tarotCardFilename: "2_wands",
287
- egyptianCardName: "Uncertainty",
292
+ egyptianCardName: "Desolation",
288
293
  meaning: "Formulate a strategy to use your own talents",
289
294
  papusMeaning: "Opposition to the commencement of the enterprise. The enterprise is commenced when an unexpected obstacle suddenly prevents its execution.",
290
295
  type: "minor",
@@ -295,7 +300,7 @@ var ARKANNUS = [
295
300
  number: 29,
296
301
  tarotCard: "Three of Wands",
297
302
  tarotCardFilename: "3_wands",
298
- egyptianCardName: "Domesticity",
303
+ egyptianCardName: "Innovation",
299
304
  meaning: "Keep going despite losing something apparently important",
300
305
  papusMeaning: "Realization of the commencement of the enterprise. The basis of the work is now definitely established, and the undertaking can be fearlessly continued.",
301
306
  type: "minor",
@@ -306,7 +311,7 @@ var ARKANNUS = [
306
311
  number: 30,
307
312
  tarotCard: "Four of Wands",
308
313
  tarotCardFilename: "4_wands",
309
- egyptianCardName: "Exchange",
314
+ egyptianCardName: "Alliance",
310
315
  meaning: "Work in teams",
311
316
  papusMeaning: "Obstacles to the enterprise.",
312
317
  type: "minor",
@@ -317,7 +322,7 @@ var ARKANNUS = [
317
322
  number: 31,
318
323
  tarotCard: "Five of Wands",
319
324
  tarotCardFilename: "5_wands",
320
- egyptianCardName: "Impediment",
325
+ egyptianCardName: "Magnificence",
321
326
  meaning: "Strengthen the root chakra, overcome internal fears",
322
327
  papusMeaning: "Opposition to the obstacles. Victory after surmounting them.",
323
328
  type: "minor",
@@ -328,7 +333,7 @@ var ARKANNUS = [
328
333
  number: 32,
329
334
  tarotCard: "Six of Wands",
330
335
  tarotCardFilename: "6_wands",
331
- egyptianCardName: "Magnificence",
336
+ egyptianCardName: "Impediment",
332
337
  meaning: "External victory, internal lack of internal self realization",
333
338
  papusMeaning: "Realization of the opposition. At last the obstacles succeed. Failure of the enterprise in the midst of its execution.",
334
339
  type: "minor",
@@ -339,7 +344,7 @@ var ARKANNUS = [
339
344
  number: 33,
340
345
  tarotCard: "Seven of Wands",
341
346
  tarotCardFilename: "7_wands",
342
- egyptianCardName: "Alliance",
347
+ egyptianCardName: "Exchange",
343
348
  meaning: "Face competitors in an ethical and loyal way",
344
349
  papusMeaning: "Certain success to the enterprise.",
345
350
  type: "minor",
@@ -350,7 +355,7 @@ var ARKANNUS = [
350
355
  number: 34,
351
356
  tarotCard: "Eight of Wands",
352
357
  tarotCardFilename: "8_wands",
353
- egyptianCardName: "Innovation",
358
+ egyptianCardName: "Domesticity",
354
359
  meaning: "Travel to the center of peace and intelligence",
355
360
  papusMeaning: "Opposition to its success. The enterprise will only partially succeed.",
356
361
  type: "minor",
@@ -361,7 +366,7 @@ var ARKANNUS = [
361
366
  number: 35,
362
367
  tarotCard: "Nine of Wands",
363
368
  tarotCardFilename: "9_wands",
364
- egyptianCardName: "Desolation",
369
+ egyptianCardName: "Uncertainty",
365
370
  meaning: "Obstacle that precedes total victory, gather hidden forces",
366
371
  papusMeaning: "Realization of success. Success is continued.",
367
372
  type: "minor",
@@ -372,7 +377,7 @@ var ARKANNUS = [
372
377
  number: 36,
373
378
  tarotCard: "Ten of Wands",
374
379
  tarotCardFilename: "10_wands",
375
- egyptianCardName: "Initiation",
380
+ egyptianCardName: "The Unexpected",
376
381
  meaning: "Get out of apathy, create a new tree of life using the Lightning Path",
377
382
  papusMeaning: "Uncertainty in the management of the enterprise.",
378
383
  type: "minor",
@@ -429,7 +434,7 @@ var ARKANNUS = [
429
434
  number: 41,
430
435
  tarotCard: "Ace of Cups",
431
436
  tarotCardFilename: "ace_cups",
432
- egyptianCardName: "Dissension",
437
+ egyptianCardName: "Attraction",
433
438
  meaning: "Renewal or new affection, alternative treatment for health",
434
439
  papusMeaning: "Commencement of a love affair.",
435
440
  type: "minor",
@@ -440,7 +445,7 @@ var ARKANNUS = [
440
445
  number: 42,
441
446
  tarotCard: "Two of Cups",
442
447
  tarotCardFilename: "2_cups",
443
- egyptianCardName: "Preeminence",
448
+ egyptianCardName: "Versatility",
444
449
  meaning: "Do not poison yourself or the other person",
445
450
  papusMeaning: "Opposition to this commencement. Unimportant obstacles raised by one of the lovers.",
446
451
  type: "minor",
@@ -451,7 +456,7 @@ var ARKANNUS = [
451
456
  number: 43,
452
457
  tarotCard: "Three of Cups",
453
458
  tarotCardFilename: "3_cups",
454
- egyptianCardName: "Delusion",
459
+ egyptianCardName: "Consummation",
455
460
  meaning: "Harmony between instinct and emotion, Be discreet",
456
461
  papusMeaning: "Realization of this commencement. The love is mutual.",
457
462
  type: "minor",
@@ -462,7 +467,7 @@ var ARKANNUS = [
462
467
  number: 44,
463
468
  tarotCard: "Four of Cups",
464
469
  tarotCardFilename: "4_cups",
465
- egyptianCardName: "Expressiveness",
470
+ egyptianCardName: "Conjecture",
466
471
  meaning: "Abundance in emotional life, do not listen to slander",
467
472
  papusMeaning: "Serious obstacles to the love. They arise from other persons, not from the lovers.",
468
473
  type: "minor",
@@ -473,7 +478,7 @@ var ARKANNUS = [
473
478
  number: 45,
474
479
  tarotCard: "Five of Cups",
475
480
  tarotCardFilename: "5_cups",
476
- egyptianCardName: "Regeneration",
481
+ egyptianCardName: "Patrimony",
477
482
  meaning: "Do not break your spiritual commitment (your purpose)",
478
483
  papusMeaning: "Opposition to the obstacles. Victory over the obstacles after a struggle.",
479
484
  type: "minor",
@@ -484,7 +489,7 @@ var ARKANNUS = [
484
489
  number: 46,
485
490
  tarotCard: "Six of Cups",
486
491
  tarotCardFilename: "6_cups",
487
- egyptianCardName: "Patrimony",
492
+ egyptianCardName: "Regeneration",
488
493
  meaning: "Do not have self-pity",
489
494
  papusMeaning: "The obstacles triumph. Love destroyed in the midst of happiness. Widowhood.",
490
495
  type: "minor",
@@ -495,7 +500,7 @@ var ARKANNUS = [
495
500
  number: 47,
496
501
  tarotCard: "Seven of Cups",
497
502
  tarotCardFilename: "7_cups",
498
- egyptianCardName: "Conjecture",
503
+ egyptianCardName: "Expressiveness",
499
504
  meaning: "Gestations, related to The Star",
500
505
  papusMeaning: "Success assured to the lovers.",
501
506
  type: "minor",
@@ -506,7 +511,7 @@ var ARKANNUS = [
506
511
  number: 48,
507
512
  tarotCard: "Eight of Cups",
508
513
  tarotCardFilename: "8_cups",
509
- egyptianCardName: "Consummation",
514
+ egyptianCardName: "Delusion",
510
515
  meaning: "Reflect on your emotional life after 18 hours",
511
516
  papusMeaning: "Partial failure of love. Love only partially succeeds.",
512
517
  type: "minor",
@@ -517,7 +522,7 @@ var ARKANNUS = [
517
522
  number: 49,
518
523
  tarotCard: "Nine of Cups",
519
524
  tarotCardFilename: "9_cups",
520
- egyptianCardName: "Versatility",
525
+ egyptianCardName: "Preeminence",
521
526
  meaning: "Reconciliations and forgiveness",
522
527
  papusMeaning: "Motherhood.",
523
528
  type: "minor",
@@ -528,7 +533,7 @@ var ARKANNUS = [
528
533
  number: 50,
529
534
  tarotCard: "Ten of Cups",
530
535
  tarotCardFilename: "10_cups",
531
- egyptianCardName: "Attraction",
536
+ egyptianCardName: "Dissension",
532
537
  meaning: "Marriage of the spirit with the soul, Alchemical Weddings",
533
538
  papusMeaning: "Uncertainty in the management of the love affair.",
534
539
  type: "minor",
@@ -585,7 +590,7 @@ var ARKANNUS = [
585
590
  number: 55,
586
591
  tarotCard: "Ace of Swords",
587
592
  tarotCardFilename: "ace_swords",
588
- egyptianCardName: "Contrition",
593
+ egyptianCardName: "Vehemence",
589
594
  meaning: "Conflicts before victory",
590
595
  papusMeaning: "Commencement of enmity.",
591
596
  type: "minor",
@@ -596,7 +601,7 @@ var ARKANNUS = [
596
601
  number: 56,
597
602
  tarotCard: "Two of Swords",
598
603
  tarotCardFilename: "2_swords",
599
- egyptianCardName: "Pilgrimage",
604
+ egyptianCardName: "Communion",
600
605
  meaning: "Traumas and conflicts to be overcome",
601
606
  papusMeaning: "Opposition to this commencement. The enmity does not last.",
602
607
  type: "minor",
@@ -607,7 +612,7 @@ var ARKANNUS = [
607
612
  number: 57,
608
613
  tarotCard: "Three of Swords",
609
614
  tarotCardFilename: "3_swords",
610
- egyptianCardName: "Rivalry",
615
+ egyptianCardName: "Proscription",
611
616
  meaning: "Death of yang, Fire, tendencies to depression",
612
617
  papusMeaning: "Realization of the enmity. Hatred.",
613
618
  type: "minor",
@@ -618,7 +623,7 @@ var ARKANNUS = [
618
623
  number: 58,
619
624
  tarotCard: "Four of Swords",
620
625
  tarotCardFilename: "4_swords",
621
- egyptianCardName: "Meditation",
626
+ egyptianCardName: "Solitude",
622
627
  meaning: "Reflection, related to The Hermit",
623
628
  papusMeaning: "Opposition to the hatred. Success against the enemy.",
624
629
  type: "minor",
@@ -629,7 +634,7 @@ var ARKANNUS = [
629
634
  number: 59,
630
635
  tarotCard: "Five of Swords",
631
636
  tarotCardFilename: "5_swords",
632
- egyptianCardName: "Revelation",
637
+ egyptianCardName: "Evolution",
633
638
  meaning: "Healthy self-challenge, Self-demands",
634
639
  papusMeaning: "Opposition to this opposition. The enemy triumphs at the moment one fancies the victory is secured.",
635
640
  type: "minor",
@@ -640,7 +645,7 @@ var ARKANNUS = [
640
645
  number: 60,
641
646
  tarotCard: "Six of Swords",
642
647
  tarotCardFilename: "6_swords",
643
- egyptianCardName: "Evolution",
648
+ egyptianCardName: "Revelation",
644
649
  meaning: "External daily strategies, Future perspectives",
645
650
  papusMeaning: "Equilibrium of the opposition. The enemy is rendered powerless at last.",
646
651
  type: "minor",
@@ -651,7 +656,7 @@ var ARKANNUS = [
651
656
  number: 61,
652
657
  tarotCard: "Seven of Swords",
653
658
  tarotCardFilename: "7_swords",
654
- egyptianCardName: "Solitude",
659
+ egyptianCardName: "Meditation",
655
660
  meaning: "Internal nocturnal strategies, related to The Hermit",
656
661
  papusMeaning: "Success assured to the enemy.",
657
662
  type: "minor",
@@ -662,7 +667,7 @@ var ARKANNUS = [
662
667
  number: 62,
663
668
  tarotCard: "Eight of Swords",
664
669
  tarotCardFilename: "8_swords",
665
- egyptianCardName: "Proscription",
670
+ egyptianCardName: "Rivalry",
666
671
  meaning: "Appeal to superior forces, Internal and external conflicts",
667
672
  papusMeaning: "Partial opposition to this success. The enemy only partially triumphs.",
668
673
  type: "minor",
@@ -673,7 +678,7 @@ var ARKANNUS = [
673
678
  number: 63,
674
679
  tarotCard: "Nine of Swords",
675
680
  tarotCardFilename: "9_swords",
676
- egyptianCardName: "Communion",
681
+ egyptianCardName: "Pilgrimage",
677
682
  meaning: "The problems being imagined will never happen",
678
683
  papusMeaning: "Certain duration of the hatred.",
679
684
  type: "minor",
@@ -684,7 +689,7 @@ var ARKANNUS = [
684
689
  number: 64,
685
690
  tarotCard: "Ten of Swords",
686
691
  tarotCardFilename: "10_swords",
687
- egyptianCardName: "Vehemence",
692
+ egyptianCardName: "Contrition",
688
693
  meaning: "Death and rebirth, related to Death and The Tower",
689
694
  papusMeaning: "Uncertainty in the enmity.",
690
695
  type: "minor",
@@ -741,7 +746,7 @@ var ARKANNUS = [
741
746
  number: 69,
742
747
  tarotCard: "Ace of Pentacles",
743
748
  tarotCardFilename: "ace_pentacles",
744
- egyptianCardName: "The Unforeseen",
749
+ egyptianCardName: "Rebirth",
745
750
  meaning: "Rebirth through a single material goal, Form clear material goals",
746
751
  papusMeaning: "Commencement of fortune. Inheritance. Gifts. Economy.",
747
752
  type: "minor",
@@ -752,7 +757,7 @@ var ARKANNUS = [
752
757
  number: 70,
753
758
  tarotCard: "Two of Pentacles",
754
759
  tarotCardFilename: "2_pentacles",
755
- egyptianCardName: "Cooperation",
760
+ egyptianCardName: "Confusion",
756
761
  meaning: "Light forming shadows, Duality asking for synthesis in the trinity, Don't put all the eggs in the same basket",
757
762
  papusMeaning: "Opposition to this commencement. Difficulty in well establishing the first landmarks of good fortune.",
758
763
  type: "minor",
@@ -763,7 +768,7 @@ var ARKANNUS = [
763
768
  number: 71,
764
769
  tarotCard: "Three of Pentacles",
765
770
  tarotCardFilename: "3_pentacles",
766
- egyptianCardName: "Avarice",
771
+ egyptianCardName: "The Provider",
767
772
  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",
768
773
  papusMeaning: "Realization of this commencement of fortune. A small sum.",
769
774
  type: "minor",
@@ -774,7 +779,7 @@ var ARKANNUS = [
774
779
  number: 72,
775
780
  tarotCard: "Four of Pentacles",
776
781
  tarotCardFilename: "4_pentacles",
777
- egyptianCardName: "Purification",
782
+ egyptianCardName: "Generosity",
778
783
  meaning: "Avoid avarice / greed",
779
784
  papusMeaning: "Opposition of fortune. Loss of money.",
780
785
  type: "minor",
@@ -785,7 +790,7 @@ var ARKANNUS = [
785
790
  number: 73,
786
791
  tarotCard: "Five of Pentacles",
787
792
  tarotCardFilename: "5_pentacles",
788
- egyptianCardName: "Love and Desire",
793
+ egyptianCardName: "Offering",
789
794
  meaning: "Only order will bring progress, Do not kick the barn without having something concrete in front of you",
790
795
  papusMeaning: "Opposition to this opposition. A success coming which will balance the low.",
791
796
  type: "minor",
@@ -796,7 +801,7 @@ var ARKANNUS = [
796
801
  number: 74,
797
802
  tarotCard: "Six of Pentacles",
798
803
  tarotCardFilename: "6_pentacles",
799
- egyptianCardName: "Offering",
804
+ egyptianCardName: "Love and Desire",
800
805
  meaning: "Act with prudence",
801
806
  papusMeaning: "Realization of the opposition. Ruin.",
802
807
  type: "minor",
@@ -807,7 +812,7 @@ var ARKANNUS = [
807
812
  number: 75,
808
813
  tarotCard: "Seven of Pentacles",
809
814
  tarotCardFilename: "7_pentacles",
810
- egyptianCardName: "Generosity",
815
+ egyptianCardName: "Purification",
811
816
  meaning: "Don't boast about your proposal or project",
812
817
  papusMeaning: "Success assured. A large fortune.",
813
818
  type: "minor",
@@ -818,7 +823,7 @@ var ARKANNUS = [
818
823
  number: 76,
819
824
  tarotCard: "Eight of Pentacles",
820
825
  tarotCardFilename: "8_pentacles",
821
- egyptianCardName: "The Provider",
826
+ egyptianCardName: "Avarice",
822
827
  meaning: "Keep doing what you always did",
823
828
  papusMeaning: "Partial success. Great loss of money at the moment apparently of definitely securing the fortune.",
824
829
  type: "minor",
@@ -829,7 +834,7 @@ var ARKANNUS = [
829
834
  number: 77,
830
835
  tarotCard: "Nine of Pentacles",
831
836
  tarotCardFilename: "9_pentacles",
832
- egyptianCardName: "Confusion",
837
+ egyptianCardName: "Cooperation",
833
838
  meaning: "Work with what you like and earn something with it",
834
839
  papusMeaning: "Equilibrium of equilibrium. A durable fortune.",
835
840
  type: "minor",
@@ -840,7 +845,7 @@ var ARKANNUS = [
840
845
  number: 78,
841
846
  tarotCard: "Ten of Pentacles",
842
847
  tarotCardFilename: "10_pentacles",
843
- egyptianCardName: "Rebirth",
848
+ egyptianCardName: "The Unforeseen",
844
849
  meaning: "Prosperity, Prosperous inheritance",
845
850
  papusMeaning: "Uncertainty in the fortune. Great success and great reverses.",
846
851
  type: "minor",
@@ -872,7 +877,195 @@ async function shuffleTarotDeck(cards, includeInvertedCards = false, shuffleCoun
872
877
  }
873
878
  return shuffledCards;
874
879
  }
880
+ var TAROT_IMAGE_BASE_URL = "https://kaabalah-app.s3.us-east-1.amazonaws.com/tarot";
881
+ var TAROT_DECK_METADATA = [
882
+ {
883
+ id: "papus_pt",
884
+ label: "Papus Kaabalistic",
885
+ imagePath: "major",
886
+ descriptiveDataKey: "PAPUS_KAABALISTIC"
887
+ },
888
+ {
889
+ id: "papus",
890
+ label: "Papus Divinatory",
891
+ imagePath: "major",
892
+ descriptiveDataKey: "PAPUS_DIVINATORY"
893
+ },
894
+ {
895
+ id: "mythic",
896
+ label: "Mythic",
897
+ imagePath: "major"
898
+ },
899
+ {
900
+ id: "egyptian",
901
+ label: "Egyptian",
902
+ imagePath: "major",
903
+ descriptiveDataKey: "KIER_EGYPTIAN"
904
+ },
905
+ {
906
+ id: "rider-waite",
907
+ label: "Rider Waite",
908
+ imagePath: "major"
909
+ }
910
+ ];
911
+ var MAJOR_ARCANA_CARDS = ARKANNUS.filter(
912
+ (card) => card.type === "major" && majorArcana.includes(card.tarotCardFilename)
913
+ );
914
+ var tarotArchetypeCache;
915
+ function normalizePathSlug(pathSlug) {
916
+ return pathSlug.trim().replace(/^\/?path\//i, "").toLowerCase();
917
+ }
918
+ function toAstrologyCorrespondence(node) {
919
+ return {
920
+ type: node.type,
921
+ id: node.id,
922
+ label: chunk3HYK4Q4B_js.parseId(node.id)
923
+ };
924
+ }
925
+ function buildDescriptionsByDeck(tarotArkAnnu) {
926
+ const descriptions = {};
927
+ for (const deck of TAROT_DECK_METADATA) {
928
+ if (!deck.descriptiveDataKey) {
929
+ continue;
930
+ }
931
+ const description = tarotArkAnnu.data?.descriptiveData?.[deck.descriptiveDataKey];
932
+ if (!description) {
933
+ continue;
934
+ }
935
+ descriptions[deck.id] = { ...description };
936
+ }
937
+ return descriptions;
938
+ }
939
+ function getTarotArchetypeCache() {
940
+ if (tarotArchetypeCache) {
941
+ return tarotArchetypeCache;
942
+ }
943
+ const tree = chunkXB6PXEKO_js.getCanonicalTree({
944
+ system: "kaabalah",
945
+ parts: ["westernAstrology", "tarot"]
946
+ });
947
+ const archetypes = MAJOR_ARCANA_CARDS.map((card) => {
948
+ const pathId = chunk3HYK4Q4B_js.id("path" /* PATH */, card.number);
949
+ const path = tree.getNode(pathId);
950
+ const hebrewLetter = tree.getCorrespondences(pathId, {
951
+ type: "hebrewLetter" /* HEBREW_LETTER */,
952
+ limit: 1
953
+ })[0]?.node;
954
+ const tarotArkAnnu = tree.getCorrespondences(pathId, {
955
+ type: "tarotArkAnnu" /* TAROT_ARK_ANNU */,
956
+ limit: 1
957
+ })[0]?.node;
958
+ if (!path || !hebrewLetter || !tarotArkAnnu) {
959
+ throw new Error(
960
+ `Missing canonical tarot archetype metadata for ${pathId}.`
961
+ );
962
+ }
963
+ const astrology = tree.getCorrespondences(pathId, {
964
+ type: [
965
+ "westernElement" /* WESTERN_ELEMENT */,
966
+ "planet" /* PLANET */,
967
+ "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */
968
+ ]
969
+ }).map(
970
+ ({ node }) => toAstrologyCorrespondence(
971
+ node
972
+ )
973
+ );
974
+ const descriptionsByDeck = buildDescriptionsByDeck(tarotArkAnnu);
975
+ return {
976
+ canonicalId: pathId,
977
+ kind: "major",
978
+ pathId,
979
+ pathNumber: card.number,
980
+ pathSlug: chunk3HYK4Q4B_js.parseId(hebrewLetter.id).toLowerCase(),
981
+ hebrewLetterId: hebrewLetter.id,
982
+ hebrewLetter: chunk3HYK4Q4B_js.parseId(hebrewLetter.id),
983
+ pathMeaning: path.data?.meaning,
984
+ tarotArkAnnuId: tarotArkAnnu.id,
985
+ tarotCardNumber: card.number,
986
+ tarotCardName: chunk3HYK4Q4B_js.parseId(tarotArkAnnu.id),
987
+ tarotCardFilename: card.tarotCardFilename,
988
+ tarotMeaning: descriptionsByDeck.papus_pt?.meaning ?? card.meaning,
989
+ astrology,
990
+ availableDeckIds: TAROT_DECK_METADATA.map((deck) => deck.id),
991
+ descriptionsByDeck
992
+ };
993
+ });
994
+ tarotArchetypeCache = {
995
+ archetypes,
996
+ byPathId: new Map(archetypes.map((archetype) => [archetype.pathId, archetype])),
997
+ byPathSlug: new Map(
998
+ archetypes.map((archetype) => [archetype.pathSlug, archetype])
999
+ ),
1000
+ byTarotCardFilename: new Map(
1001
+ archetypes.map((archetype) => [archetype.tarotCardFilename, archetype])
1002
+ ),
1003
+ byTarotCardNumber: new Map(
1004
+ archetypes.map((archetype) => [archetype.tarotCardNumber, archetype])
1005
+ )
1006
+ };
1007
+ return tarotArchetypeCache;
1008
+ }
1009
+ function buildTarotRepresentation(archetype, deck) {
1010
+ const description = archetype.descriptionsByDeck[deck.id];
1011
+ const imageUrl = `${TAROT_IMAGE_BASE_URL}/${deck.id}/${deck.imagePath}/${archetype.tarotCardFilename}.jpg`;
1012
+ return {
1013
+ archetype,
1014
+ deck: { id: deck.id, label: deck.label },
1015
+ imageUrl,
1016
+ label: `${archetype.tarotCardName} - ${deck.label}`,
1017
+ altText: `${archetype.tarotCardName} - ${deck.label}`,
1018
+ cardLabel: description?.name ?? archetype.tarotCardName,
1019
+ description
1020
+ };
1021
+ }
1022
+ function listTarotDecks() {
1023
+ return TAROT_DECK_METADATA.map(({ id: id2, label }) => ({ id: id2, label }));
1024
+ }
1025
+ function getTarotArchetype(lookup) {
1026
+ const cache = getTarotArchetypeCache();
1027
+ if ("pathSlug" in lookup) {
1028
+ return cache.byPathSlug.get(normalizePathSlug(lookup.pathSlug));
1029
+ }
1030
+ if ("pathId" in lookup) {
1031
+ return cache.byPathId.get(String(lookup.pathId));
1032
+ }
1033
+ if ("tarotCardFilename" in lookup) {
1034
+ return cache.byTarotCardFilename.get(
1035
+ lookup.tarotCardFilename.toLowerCase()
1036
+ );
1037
+ }
1038
+ return cache.byTarotCardNumber.get(lookup.tarotCardNumber);
1039
+ }
1040
+ function getTarotRepresentations(lookup) {
1041
+ const archetype = getTarotArchetype(lookup);
1042
+ if (!archetype) {
1043
+ return [];
1044
+ }
1045
+ return TAROT_DECK_METADATA.map(
1046
+ (deck) => buildTarotRepresentation(archetype, deck)
1047
+ );
1048
+ }
1049
+ function getTarotRepresentation(lookup, deckId) {
1050
+ const archetype = getTarotArchetype(lookup);
1051
+ const deck = TAROT_DECK_METADATA.find((candidate) => candidate.id === deckId);
1052
+ if (!archetype || !deck) {
1053
+ return void 0;
1054
+ }
1055
+ return buildTarotRepresentation(archetype, deck);
1056
+ }
1057
+ function resolveTarotImageUrl(lookup, deckId) {
1058
+ return getTarotRepresentation(lookup, deckId)?.imageUrl;
1059
+ }
875
1060
 
876
- export { ARKANNUS, majorArcana, shuffleTarotDeck };
877
- //# sourceMappingURL=chunk-M7XQFDS4.mjs.map
878
- //# sourceMappingURL=chunk-M7XQFDS4.mjs.map
1061
+ exports.ARKANNUS = ARKANNUS;
1062
+ exports.TAROT_IMAGE_BASE_URL = TAROT_IMAGE_BASE_URL;
1063
+ exports.getTarotArchetype = getTarotArchetype;
1064
+ exports.getTarotRepresentation = getTarotRepresentation;
1065
+ exports.getTarotRepresentations = getTarotRepresentations;
1066
+ exports.listTarotDecks = listTarotDecks;
1067
+ exports.majorArcana = majorArcana;
1068
+ exports.resolveTarotImageUrl = resolveTarotImageUrl;
1069
+ exports.shuffleTarotDeck = shuffleTarotDeck;
1070
+ //# sourceMappingURL=chunk-OGWTKRJK.js.map
1071
+ //# sourceMappingURL=chunk-OGWTKRJK.js.map