western-signs 1.7.0 → 1.8.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.
package/README.md CHANGED
@@ -63,6 +63,8 @@ It should returns an object with the following properties:
63
63
  ### Functions
64
64
 
65
65
  - [getHouses](https://marcmarine.github.io/western-signs/functions/getHouses)
66
+ - [getPlanet](https://marcmarine.github.io/western-signs/functions/getPlanet)
67
+ - [getPlanets](https://marcmarine.github.io/western-signs/functions/getPlanets)
66
68
  - [getSignByDate](https://marcmarine.github.io/western-signs/functions/getSignByDate)
67
69
  - [getSignByName](https://marcmarine.github.io/western-signs/functions/getSignByName)
68
70
  - [getSigns](https://marcmarine.github.io/western-signs/functions/getSigns)
@@ -70,6 +72,7 @@ It should returns an object with the following properties:
70
72
  ### Interfaces
71
73
 
72
74
  - [House](https://marcmarine.github.io/western-signs/interfaces/House)
75
+ - [Planet](https://marcmarine.github.io/western-signs/interfaces/Planet)
73
76
  - [Sign](https://marcmarine.github.io/western-signs/interfaces/Sign)
74
77
 
75
78
  For more detailed API information, please check out the [documentation](https://marcmarine.github.io/western-signs).
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M1.33334 10.3333C1.77576 9.89203 2.37513 9.64421 3.00001 9.64421C3.62489 9.64421 4.22426 9.89203 4.66668 10.3333C4.88548 10.5523 5.14529 10.726 5.43127 10.8446C5.71725 10.9631 6.02378 11.0241 6.33334 11.0241C6.64291 11.0241 6.94944 10.9631 7.23542 10.8446C7.52139 10.726 7.78121 10.5523 8.00001 10.3333C8.44242 9.89203 9.0418 9.64421 9.66668 9.64421C10.2916 9.64421 10.8909 9.89203 11.3333 10.3333C11.5521 10.5523 11.812 10.726 12.0979 10.8446C12.3839 10.9631 12.6904 11.0241 13 11.0241C13.3096 11.0241 13.6161 10.9631 13.9021 10.8446C14.1881 10.726 14.4479 10.5523 14.6667 10.3333M1.33334 5.66666C1.77576 5.22537 2.37513 4.97754 3.00001 4.97754C3.62489 4.97754 4.22426 5.22537 4.66668 5.66666C4.88548 5.88566 5.14529 6.05938 5.43127 6.17791C5.71725 6.29644 6.02378 6.35744 6.33334 6.35744C6.64291 6.35744 6.94944 6.29644 7.23542 6.17791C7.52139 6.05938 7.78121 5.88566 8.00001 5.66666C8.44242 5.22537 9.0418 4.97754 9.66668 4.97754C10.2916 4.97754 10.8909 5.22537 11.3333 5.66666C11.5521 5.88566 11.812 6.05938 12.0979 6.17791C12.3839 6.29644 12.6904 6.35744 13 6.35744C13.3096 6.35744 13.6161 6.29644 13.9021 6.17791C14.1881 6.05938 14.4479 5.88566 14.6667 5.66666"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linejoin="round"
7
7
  />
package/assets/aries.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M2.30934 7.22398C1.92181 6.83635 1.63585 6.35913 1.47679 5.83459C1.31772 5.31005 1.29046 4.75439 1.39743 4.2168C1.50439 3.67921 1.74227 3.1763 2.09 2.75259C2.43773 2.32889 2.88459 1.99748 3.39098 1.78771C3.89738 1.57793 4.44769 1.49628 4.99318 1.54997C5.53867 1.60365 6.0625 1.79103 6.51828 2.09551C6.97406 2.39998 7.34773 2.81215 7.60618 3.29552C7.86464 3.77888 7.99991 4.31852 8.00001 4.86665M8.00001 4.86665C8.00011 4.31852 8.13538 3.77888 8.39384 3.29552C8.65229 2.81215 9.02596 2.39998 9.48174 2.09551C9.93752 1.79103 10.4614 1.60365 11.0068 1.54997C11.5523 1.49628 12.1026 1.57793 12.609 1.78771C13.1154 1.99748 13.5623 2.32889 13.91 2.75259C14.2578 3.1763 14.4956 3.67921 14.6026 4.2168C14.7096 4.75439 14.6823 5.31005 14.5232 5.83459C14.3642 6.35913 14.0782 6.83635 13.6907 7.22398M8.00001 4.86665V14.8666"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
package/assets/cancer.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M14.6667 7.99996C14.6667 7.70808 14.6092 7.41905 14.4975 7.14939C14.3858 6.87972 14.2221 6.63469 14.0157 6.4283C13.8093 6.22191 13.5643 6.05819 13.2946 5.94649C13.0249 5.83479 12.7359 5.7773 12.444 5.7773C12.1521 5.7773 11.8631 5.83479 11.5934 5.94649C11.3238 6.05819 11.0787 6.22191 10.8723 6.4283C10.666 6.63469 10.5022 6.87972 10.3905 7.14939C10.2788 7.41905 10.2213 7.70808 10.2213 7.99996C10.2213 8.58945 10.4555 9.1548 10.8723 9.57163C11.2892 9.98846 11.8545 10.2226 12.444 10.2226C13.0335 10.2226 13.5988 9.98846 14.0157 9.57163C14.4325 9.1548 14.6667 8.58945 14.6667 7.99996ZM14.6667 7.99996C14.6664 6.68163 14.2753 5.39297 13.5427 4.29691C12.8101 3.20084 11.769 2.34658 10.551 1.84211C9.33304 1.33764 7.99282 1.20562 6.6998 1.46274C5.40678 1.71986 4.21902 2.35457 3.28668 3.28663M1.33334 7.99996C1.33334 8.29185 1.39083 8.58087 1.50253 8.85054C1.61423 9.12021 1.77795 9.36523 1.98435 9.57163C2.19074 9.77802 2.43577 9.94174 2.70543 10.0534C2.9751 10.1651 3.26413 10.2226 3.55601 10.2226C3.8479 10.2226 4.13692 10.1651 4.40659 10.0534C4.67625 9.94174 4.92128 9.77802 5.12767 9.57163C5.33407 9.36523 5.49779 9.12021 5.60949 8.85054C5.72119 8.58087 5.77868 8.29185 5.77868 7.99996C5.77868 7.41048 5.5445 6.84513 5.12767 6.4283C4.71084 6.01147 4.1455 5.7773 3.55601 5.7773C2.96652 5.7773 2.40118 6.01147 1.98435 6.4283C1.56752 6.84513 1.33334 7.41048 1.33334 7.99996ZM1.33334 7.99996C1.33363 9.3183 1.72477 10.607 2.45733 11.703C3.18989 12.7991 4.23098 13.6534 5.44898 14.1578C6.66698 14.6623 8.0072 14.7943 9.30022 14.5372C10.5932 14.2801 11.781 13.6454 12.7133 12.7133"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M1.13333 5.77739H3.356L5.57733 14.6667L7.8 5.77739H12.244C12.733 5.77733 13.2083 5.61593 13.5962 5.31821C13.9841 5.0205 14.2629 4.60311 14.3894 4.13078C14.5159 3.65845 14.4831 3.15757 14.2959 2.70583C14.1088 2.25409 13.7778 1.87672 13.3543 1.63225C12.9308 1.38779 12.4385 1.28989 11.9537 1.35374C11.4689 1.41758 11.0187 1.63961 10.673 1.98538C10.3272 2.33115 10.1052 2.78135 10.0414 3.26614C9.97758 3.75094 10.0755 4.24325 10.32 4.66672L14.1693 11.3334C14.3401 11.6286 14.4407 11.9593 14.4632 12.2996C14.4857 12.64 14.4295 12.9809 14.2991 13.2961C14.1687 13.6113 13.9675 13.8922 13.711 14.1172C13.4546 14.3421 13.1499 14.505 12.8204 14.5932C12.4909 14.6815 12.1455 14.6927 11.811 14.6261C11.4765 14.5594 11.1618 14.4167 10.8913 14.2089C10.6208 14.0011 10.4018 13.7338 10.2511 13.4278C10.1005 13.1217 10.0223 12.7852 10.0227 12.4441"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linejoin="round"
7
7
  />
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M5.13067 10.8693L12.4427 3.55731M1.33333 12.4426C1.3207 12.7426 1.36887 13.0419 1.47495 13.3227C1.58103 13.6035 1.74283 13.86 1.9506 14.0766C2.15838 14.2933 2.40784 14.4656 2.68396 14.5834C2.96009 14.7011 3.25718 14.7617 3.55736 14.7616C3.85754 14.7615 4.15459 14.7007 4.43065 14.5828C4.70671 14.4649 4.95606 14.2924 5.16371 14.0757C5.37135 13.8589 5.53299 13.6023 5.63891 13.3215C5.74482 13.0406 5.79281 12.7412 5.78 12.4413C5.7555 11.868 5.51046 11.3263 5.09605 10.9293C4.68164 10.5323 4.12989 10.3108 3.55603 10.311C2.98216 10.3111 2.43055 10.533 2.01637 10.9302C1.6022 11.3274 1.35748 11.8693 1.33333 12.4426Z"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
package/assets/gemini.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M4.66668 2.69598V13.304M11.3333 2.69598V13.304M14.6667 1.33331C12.64 2.50421 10.3406 3.12067 8.00001 3.12067C5.65939 3.12067 3.36005 2.50421 1.33334 1.33331M14.6667 14.6666C12.6397 13.4965 10.3405 12.8805 8.00001 12.8805C5.65955 12.8805 3.36031 13.4965 1.33334 14.6666"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M3 1.33337C3.87773 1.84007 4.6066 2.56889 5.11337 3.44658C5.62013 4.32427 5.88692 5.31989 5.88692 6.33337C5.88692 7.34686 5.62013 8.34248 5.11337 9.22017C4.6066 10.0979 3.87773 10.8267 3 11.3334H13M9.66667 8.00004V14.6667"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
package/assets/leo.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M6.33333 9.66671C6.33333 8.00004 4.66667 6.33337 4.66667 4.66671C4.66667 3.78265 5.01786 2.93481 5.64298 2.30968C6.2681 1.68456 7.11595 1.33337 8 1.33337C8.88406 1.33337 9.7319 1.68456 10.357 2.30968C10.9821 2.93481 11.3333 3.78265 11.3333 4.66671C11.3333 8.00004 9.66667 9.66671 9.66667 13C9.66667 13.4421 9.84226 13.866 10.1548 14.1786C10.4674 14.4911 10.8913 14.6667 11.3333 14.6667C11.7754 14.6667 12.1993 14.4911 12.5118 14.1786C12.8244 13.866 13 13.4421 13 13M6.33333 9.66671C6.33333 9.22468 6.15774 8.80076 5.84518 8.4882C5.53262 8.17564 5.10869 8.00004 4.66667 8.00004C4.22464 8.00004 3.80072 8.17564 3.48816 8.4882C3.17559 8.80076 3 9.22468 3 9.66671C3 10.1087 3.17559 10.5327 3.48816 10.8452C3.80072 11.1578 4.22464 11.3334 4.66667 11.3334C5.10869 11.3334 5.53262 11.1578 5.84518 10.8452C6.15774 10.5327 6.33333 10.1087 6.33333 9.66671Z"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linejoin="round"
7
7
  />
package/assets/libra.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M0.299957 8.00004H4.14998C4.14998 6.97896 4.5556 5.99969 5.27762 5.27767C5.99964 4.55565 6.97891 4.15002 8 4.15002C9.02108 4.15002 10.0004 4.55565 10.7224 5.27767C11.4444 5.99969 11.85 6.97896 11.85 8.00004H15.7M0.299957 11.8501L15.7 11.8501"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M10.4373 5.56271L14.6667 1.33337M14.6667 1.33337H12.3067M14.6667 1.33337V3.69337M12 9.33337C12 6.39071 9.60933 4.00004 6.66666 4.00004C3.72399 4.00004 1.33333 6.39071 1.33333 9.33337C1.33333 12.276 3.72399 14.6667 6.66666 14.6667C9.60933 14.6667 12 12.276 12 9.33337Z"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M7.99999 3.99998C8.70724 3.99998 9.38552 4.28093 9.88561 4.78103C10.3857 5.28113 10.6667 5.9594 10.6667 6.66665C10.6667 7.37389 10.3857 8.05217 9.88561 8.55226C9.38552 9.05236 8.70724 9.33331 7.99999 9.33331M7.99999 3.99998C7.29275 3.99998 6.61447 4.28093 6.11438 4.78103C5.61428 5.28113 5.33333 5.9594 5.33333 6.66665C5.33333 7.37389 5.61428 8.05217 6.11438 8.55226C6.61447 9.05236 7.29275 9.33331 7.99999 9.33331M7.99999 3.99998C7.29275 3.99998 6.61447 3.71903 6.11438 3.21893C5.61428 2.71883 5.33333 2.04056 5.33333 1.33331M7.99999 3.99998C8.70724 3.99998 9.38552 3.71903 9.88561 3.21893C10.3857 2.71883 10.6667 2.04056 10.6667 1.33331M7.99999 9.33331V14.6666M5.33333 12H10.6667"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M4.66667 1.33331C6.43478 1.33331 8.13047 2.03569 9.38072 3.28593C10.631 4.53618 11.3333 6.23187 11.3333 7.99998C11.3333 9.76809 10.631 11.4638 9.38072 12.714C8.13047 13.9643 6.43478 14.6666 4.66667 14.6666C7.04667 13.292 8.51601 10.7493 8.51601 7.99998C8.51601 5.25065 7.04667 2.70798 4.66667 1.33331Z"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linecap="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M8 14.6667V1.33337M4.66667 9.66671H11.3333M3 1.33337C3.03016 2.63946 3.57019 3.8819 4.50459 4.79497C5.43898 5.70803 6.69356 6.21923 8 6.21923C9.30644 6.21923 10.561 5.70803 11.4954 4.79497C12.4298 3.8819 12.9698 2.63946 13 1.33337"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M5.13067 10.8693L10.8693 5.13066M10.2187 3.55733C10.2084 3.85587 10.2584 4.15342 10.3656 4.43224C10.4728 4.71107 10.635 4.96545 10.8426 5.18024C11.0502 5.39503 11.2989 5.56582 11.5739 5.68244C11.849 5.79905 12.1446 5.8591 12.4434 5.85902C12.7421 5.85893 13.0377 5.7987 13.3127 5.68191C13.5876 5.56513 13.8362 5.39419 14.0437 5.17928C14.2512 4.96437 14.4133 4.70988 14.5203 4.431C14.6273 4.15211 14.6771 3.85453 14.6667 3.556C14.6423 2.98265 14.3975 2.44086 13.9832 2.04377C13.5689 1.64668 13.0172 1.42499 12.4433 1.42499C11.8695 1.42499 11.3178 1.64668 10.9035 2.04377C10.4892 2.44086 10.2443 2.98265 10.22 3.556L10.2187 3.55733ZM1.33333 12.4427C1.3207 12.7426 1.36887 13.0419 1.47495 13.3227C1.58103 13.6036 1.74283 13.86 1.9506 14.0766C2.15838 14.2933 2.40784 14.4657 2.68396 14.5834C2.96009 14.7011 3.25718 14.7617 3.55736 14.7617C3.85754 14.7616 4.15459 14.7007 4.43065 14.5829C4.70671 14.465 4.95606 14.2924 5.16371 14.0757C5.37135 13.8589 5.53299 13.6024 5.63891 13.3215C5.74482 13.0406 5.79281 12.7412 5.78 12.4413C5.7555 11.868 5.51046 11.3263 5.09605 10.9293C4.68164 10.5323 4.12989 10.3108 3.55603 10.311C2.98216 10.3112 2.43055 10.533 2.01637 10.9302C1.6022 11.3274 1.35748 11.8693 1.33333 12.4427Z"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
package/assets/pisces.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M12.1667 2.22668C11.1533 2.81183 10.3118 3.6534 9.72672 4.66683C9.14165 5.68026 8.83364 6.82983 8.83364 8.00002C8.83364 9.17021 9.14165 10.3198 9.72672 11.3332C10.3118 12.3466 11.1533 13.1882 12.1667 13.7734M3.83334 13.7734C4.84673 13.1882 5.68824 12.3466 6.2733 11.3332C6.85837 10.3198 7.16638 9.17021 7.16638 8.00002C7.16638 6.82983 6.85837 5.68026 6.2733 4.66683C5.68824 3.6534 4.84673 2.81183 3.83334 2.22668M1.33334 7.99735H14.6707"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linejoin="round"
7
7
  />
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M11.3333 13.3333H4.66667V2.66663H8.00001C9.83867 2.66663 11.3333 3.49329 11.3333 5.33329C11.3333 7.17329 9.83867 7.99996 8.00001 7.99996H4.66667"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.6667 14.6667H1.33333V1.33069H14.6667V14.664" stroke="currentColor" stroke-width="1" stroke-miterlimit="10" stroke-linejoin="round" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.6667 5.11328H1.33333M4.66667 10.8866L8 5.11328L11.3333 10.8866" stroke="currentColor" stroke-width="1" stroke-miterlimit="10" stroke-linejoin="round" />
3
+ </svg>
@@ -1,3 +1,3 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4.60799 4.7253L11.2747 11.392M1.27466 14.7253L14.608 1.39197M14.608 1.39197H11.2747M14.608 1.39197V4.7253" stroke="black" stroke-width="1" stroke-linejoin="round" />
2
+ <path d="M4.60799 4.7253L11.2747 11.392M1.27466 14.7253L14.608 1.39197M14.608 1.39197H11.2747M14.608 1.39197V4.7253" stroke="currentColor" stroke-width="1" stroke-linejoin="round" />
3
3
  </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M4 4.00004H9.33333M6.66667 1.33337V8.00004C6.6671 7.56196 6.77552 7.13073 6.98231 6.74453C7.18911 6.35832 7.48792 6.02905 7.85229 5.78584C8.21666 5.54263 8.63536 5.39298 9.07135 5.35014C9.50733 5.30729 9.94716 5.37258 10.3519 5.54021C10.7566 5.70785 11.1138 5.97267 11.3918 6.31123C11.6699 6.6498 11.8601 7.05167 11.9458 7.48129C12.0315 7.91091 12.01 8.35503 11.8832 8.77436C11.7563 9.19368 11.5281 9.57527 11.2187 9.88537C10.0107 11.0934 9.33333 12.96 9.33333 14.6667"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M13.3453 10.988L13.3453 9.32133H15.012M1.82134 5.84533C1.62758 5.65152 1.4846 5.41291 1.40507 5.15064C1.32553 4.88837 1.3119 4.61054 1.36539 4.34174C1.41887 4.07295 1.53781 3.82149 1.71167 3.60964C1.88554 3.39779 2.10896 3.23208 2.36216 3.1272C2.61536 3.02231 2.89052 2.98148 3.16326 3.00833C3.43601 3.03517 3.69792 3.12886 3.92581 3.2811C4.1537 3.43333 4.34054 3.63942 4.46976 3.8811C4.59899 4.12278 4.66663 4.3926 4.66668 4.66667M4.66668 4.66667L4.66668 11.3333M4.66668 4.66667C4.66668 4.22464 4.84227 3.80072 5.15483 3.48816C5.46739 3.17559 5.89132 3 6.33334 3C6.77537 3 7.19929 3.17559 7.51185 3.48816C7.82442 3.80072 8.00001 4.22464 8.00001 4.66667M8.00001 4.66667V11.3333M8.00001 4.66667C8.00001 4.22464 8.17561 3.80072 8.48817 3.48816C8.80073 3.17559 9.22465 3 9.66668 3C10.1087 3 10.5326 3.17559 10.8452 3.48816C11.1577 3.80072 11.3333 4.22464 11.3333 4.66667L11.3333 11.3333C11.3334 11.6074 11.401 11.8772 11.5303 12.1189C11.6595 12.3606 11.8463 12.5667 12.0742 12.7189C12.3021 12.8711 12.564 12.9648 12.8368 12.9917C13.1095 13.0185 13.3847 12.9777 13.6379 12.8728C13.8911 12.7679 14.1145 12.6022 14.2883 12.3904C14.4622 12.1785 14.5812 11.9271 14.6346 11.6583C14.6881 11.3895 14.6745 11.1116 14.595 10.8494C14.5154 10.5871 14.3724 10.3485 14.1787 10.1547L13.512 9.488"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.6667 10.8867H1.33333M4.66667 5.11339L8 10.8867L11.3333 5.11339" stroke="currentColor" stroke-width="1" stroke-miterlimit="10" stroke-linejoin="round" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.6667 8.00002H1.33334M4.66667 2.22668L11.3333 13.7734M11.3333 2.22668L4.66667 13.7734" stroke="currentColor" stroke-width="1" stroke-miterlimit="10" stroke-linejoin="round" />
3
+ </svg>
package/assets/sun.svg ADDED
@@ -0,0 +1,14 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M8.00001 6.80267C7.83932 6.79731 7.6792 6.82433 7.52917 6.88212C7.37914 6.93991 7.24227 7.02729 7.1267 7.13907C7.01114 7.25084 6.91924 7.38472 6.85647 7.53274C6.79371 7.68076 6.76137 7.83989 6.76137 8.00067C6.76137 8.16144 6.79371 8.32058 6.85647 8.4686C6.91924 8.61662 7.01114 8.7505 7.1267 8.86227C7.24227 8.97404 7.37914 9.06143 7.52917 9.11922C7.6792 9.17701 7.83932 9.20403 8.00001 9.19867C8.31082 9.1883 8.60543 9.05754 8.82164 8.834C9.03784 8.61047 9.1587 8.31165 9.1587 8.00067C9.1587 7.68968 9.03784 7.39087 8.82164 7.16734C8.60543 6.9438 8.31082 6.81304 8.00001 6.80267Z"
4
+ fill="currentColor"
5
+ stroke-width="1"
6
+ />
7
+ <path
8
+ d="M14.6667 7.99996C14.
9
+ 6667 4.31769 11.6823 1.33329 8 1.33329C4.31773 1.33329 1.33333 4.31769 1.33333 7.99996C1.33333 11.6822 4.31773 14.6666 8 14.6666C11.6823 14.6666 14.6667 11.6822 14.6667 7.99996Z"
10
+ stroke="currentColor"
11
+ stroke-width="1"
12
+ stroke-linejoin="round"
13
+ />
14
+ </svg>
package/assets/taurus.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M7.94743 5.54741C9.2912 5.54761 10.5798 6.08161 11.5299 7.03194C12.4799 7.98226 13.0135 9.27107 13.0133 10.6148V10.6133C13.0133 11.9571 12.4795 13.2458 11.5293 14.196C10.5792 15.1462 9.29044 15.68 7.94667 15.68C6.60291 15.68 5.31418 15.1462 4.364 14.196C3.41381 13.2458 2.88 11.9571 2.88 10.6133C2.88021 9.26955 3.41421 7.9809 4.36453 7.03086C5.31486 6.08082 6.60367 5.54721 7.94743 5.54741ZM7.94743 5.54741C6.60367 5.54741 5.31418 5.01284 4.364 4.06265C3.41381 3.11247 2.88 1.82374 2.88 0.47998M7.94743 5.54741C9.2912 5.54741 10.5792 5.01284 11.5293 4.06265C12.4795 3.11247 13.0133 1.82374 13.0133 0.47998"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linecap="square"
7
7
  stroke-linejoin="round"
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.33333 14.6627L8 3.11469L14.6667 14.6614L1.33333 14.6627Z" stroke="currentColor" stroke-width="1" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" />
3
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M8.00001 11.3334V3.00004M4.66667 1.33337V8.00004M11.3333 1.33337V8.00004M4.66667 4.66671H11.3333M9.66667 13C9.66641 12.6708 9.56855 12.349 9.38546 12.0753C9.20237 11.8017 8.94226 11.5884 8.63802 11.4626C8.33377 11.3367 7.99904 11.3038 7.67612 11.3681C7.3532 11.4324 7.05659 11.591 6.82377 11.8238C6.59095 12.0566 6.43237 12.3532 6.36807 12.6762C6.30377 12.9991 6.33664 13.3338 6.46252 13.6381C6.5884 13.9423 6.80164 14.2024 7.0753 14.3855C7.34896 14.5686 7.67075 14.6664 8.00001 14.6667C8.44203 14.6667 8.86596 14.4911 9.17852 14.1786C9.49108 13.866 9.66667 13.4421 9.66667 13Z"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M8 14.6666V9.33331M8 9.33331C9.06087 9.33331 10.0783 8.91189 10.8284 8.16174C11.5786 7.41159 12 6.39418 12 5.33331C12 4.27245 11.5786 3.25503 10.8284 2.50489C10.0783 1.75474 9.06087 1.33331 8 1.33331C6.93913 1.33331 5.92172 1.75474 5.17157 2.50489C4.42143 3.25503 4 4.27245 4 5.33331C4 6.39418 4.42143 7.41159 5.17157 8.16174C5.92172 8.91189 6.93913 9.33331 8 9.33331ZM5.33333 12H10.6667"
4
+ stroke="currentColor"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
package/assets/virgo.svg CHANGED
@@ -1,7 +1,7 @@
1
1
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
3
  d="M1.5124 5.84533C1.30895 5.65152 1.15882 5.41291 1.07531 5.15064C0.991799 4.88837 0.977489 4.61054 1.03364 4.34174C1.0898 4.07295 1.21469 3.82149 1.39725 3.60964C1.57981 3.39779 1.8144 3.23208 2.08026 3.1272C2.34612 3.02231 2.63503 2.98148 2.92141 3.00833C3.2078 3.03517 3.48281 3.12886 3.72209 3.2811C3.96138 3.43333 4.15755 3.63942 4.29324 3.8811C4.42893 4.12278 4.49995 4.3926 4.5 4.66667M4.5 4.66667V11.3333M4.5 4.66667C4.5 4.22464 4.68437 3.80072 5.01256 3.48816C5.34075 3.17559 5.78587 3 6.25 3C6.71413 3 7.15925 3.17559 7.48744 3.48816C7.81563 3.80072 8 4.22464 8 4.66667M11.5 6.33333C11.5 5.89131 11.6844 5.46738 12.0126 5.15482C12.3408 4.84226 12.7859 4.66667 13.25 4.66667C13.7141 4.66667 14.1592 4.84226 14.4874 5.15482C14.8156 5.46738 15 5.89131 15 6.33333C15 7.65942 14.4469 8.93119 13.4623 9.86887C12.4777 10.8065 11.1424 11.3333 9.75 11.3333M8 4.66667C8 4.22464 8.18437 3.80072 8.51256 3.48816C8.84075 3.17559 9.28587 3 9.75 3C10.2141 3 10.6592 3.17559 10.9874 3.48816C11.3156 3.80072 11.5 4.22464 11.5 4.66667V11.3333C11.5 12.2533 12.284 13 13.25 13M8 4.66667L8 11.3333"
4
- stroke="black"
4
+ stroke="currentColor"
5
5
  stroke-width="1"
6
6
  stroke-linejoin="round"
7
7
  />
package/dist/index.d.ts CHANGED
@@ -91,6 +91,15 @@ declare const PLANET_TYPE: {
91
91
  readonly TRANSPERSONAL: "transpersonal";
92
92
  readonly OTHER: "other";
93
93
  };
94
+ declare const ASPECTS: {
95
+ readonly 0: "conjunction";
96
+ readonly 30: "semisextile";
97
+ readonly 60: "sextile";
98
+ readonly 90: "quadrature";
99
+ readonly 120: "trigone";
100
+ readonly 150: "quincunx";
101
+ readonly 180: "opposition";
102
+ };
94
103
  declare const dictionaries: {
95
104
  en: Dictionary;
96
105
  es: Dictionary;
@@ -99,7 +108,7 @@ declare const dictionaries: {
99
108
  export type Language = keyof typeof dictionaries;
100
109
  export type ObjectValues<T> = T[keyof T];
101
110
  export type Signs = ObjectValues<typeof SIGNS>;
102
- export type Element = ObjectValues<typeof ELEMENTS>;
111
+ export type Elements = ObjectValues<typeof ELEMENTS>;
103
112
  export type Modalities = ObjectValues<typeof MODALITIES>;
104
113
  export type Planets = ObjectValues<typeof PLANETS>;
105
114
  export type Polarities = ObjectValues<typeof POLARITIES>;
@@ -109,6 +118,7 @@ export type Seasons = ObjectValues<typeof SEASONS>;
109
118
  export type Hemispheres = ObjectValues<typeof HEMISPHERES>;
110
119
  export type HouseModalities = ObjectValues<typeof HOUSE_MODALITIES>;
111
120
  export type PlanetType = ObjectValues<typeof PLANET_TYPE>;
121
+ export type Aspects = ObjectValues<typeof ASPECTS>;
112
122
  export interface Sign {
113
123
  /**
114
124
  * The body part associated with the zodiac sign.
@@ -128,7 +138,7 @@ export interface Sign {
128
138
  * Also known as triplicities in astrology.
129
139
  * Examples: "Fire" for Aries, "Earth" for Taurus.
130
140
  */
131
- element: Element;
141
+ element: Elements;
132
142
  /**
133
143
  * The end date of the zodiac sign period.
134
144
  * This date marks the end of the zodiac sign's influence for the given year.
@@ -191,7 +201,7 @@ export interface House {
191
201
  *
192
202
  * Example: "Fire" for House 1 (Aries), "Earth" for House 2 (Taurus)
193
203
  */
194
- element: Element;
204
+ element: Elements;
195
205
  /**
196
206
  * Hemisphere division based on the horizon line.
197
207
  *
@@ -279,15 +289,16 @@ export interface Planet {
279
289
  type: PlanetType;
280
290
  }
281
291
  export type Dictionary = {
282
- [key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities | PlanetType]: string;
292
+ [key in Signs | Elements | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities | PlanetType]: string;
283
293
  } & {
284
294
  houseTitles: string[];
285
295
  houseKeywords: string[][];
286
296
  };
297
+ export type Symbols = Signs | Planets | Aspects;
287
298
  /**
288
299
  * Get all astrological houses with their translations for a specified language.
289
300
  *
290
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
301
+ * @param {Language} [language='en'] - The language code for which translations are needed. Defaults to 'en'.
291
302
  * @returns {House[]} An array of House objects with translated values based on the specified language.
292
303
  *
293
304
  * @example
@@ -313,11 +324,32 @@ export type Dictionary = {
313
324
  * // ...
314
325
  * // ]
315
326
  */
316
- export declare function getHouses(lang?: Language): House[];
327
+ export declare function getHouses(language?: Language): House[];
328
+ /**
329
+ * Get a single planet with its translated properties for a specified language.
330
+ *
331
+ * @param {Planets} planetKey - The key corresponding to the desired planet.
332
+ * @param {Language} [language='en'] - The language code to use for translations. Defaults to 'en'.
333
+ * @returns {Planet | null} An object with translated values based on the specified language, or null if the planet key is invalid.
334
+ *
335
+ * @example
336
+ * import { getPlanet, PLANETS } from 'western-signs';
337
+ *
338
+ * // Retrieve information about Mars in English
339
+ * const mars = getPlanet(PLANETS.MARS);
340
+ * console.log(mars);
341
+ * // Output:
342
+ * // {
343
+ * // name: 'Mars',
344
+ * // glyph: '♂',
345
+ * // type: 'Personal'
346
+ * // }
347
+ */
348
+ export declare function getPlanet(planetKey: Planets, language?: Language): Planet | null;
317
349
  /**
318
350
  * Get all planets with their translated properties for a specified language.
319
351
  *
320
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to `'en'`.
352
+ * @param {Language} [language='en'] - The language code for which translations are needed. Defaults to `'en'`.
321
353
  * @returns {Planet[]} An array of Planet objects with translated values based on the specified language.
322
354
  *
323
355
  * @example
@@ -341,12 +373,12 @@ export declare function getHouses(lang?: Language): House[];
341
373
  * // ...
342
374
  * // ]
343
375
  */
344
- export declare function getPlanets(lang?: Language): Planet[];
376
+ export declare function getPlanets(language?: Language): Planet[];
345
377
  /**
346
378
  * Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
347
379
  *
348
380
  * @param {Date} date - The date for which the corresponding astrological sign is to be retrieved.
349
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
381
+ * @param {Language} [language='en'] - The language code for which translations are needed. Defaults to 'en'.
350
382
  * @throws {Error} Will throw an error if the provided date is invalid.
351
383
  * @returns {Sign | null} An object representing the astrological sign with translated values or null if the sign is not found.
352
384
  *
@@ -366,12 +398,12 @@ export declare function getPlanets(lang?: Language): Planet[];
366
398
  * // [...]
367
399
  * // }
368
400
  */
369
- export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
401
+ export declare function getSignByDate(date: Date, language?: Language): Sign | null;
370
402
  /**
371
403
  * Get the astrological sign by its name with translations for the specified language.
372
404
  *
373
- * @param {Signs} sign - The name of the astrological sign to retrieve.
374
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
405
+ * @param {Signs} signKey - The name of the astrological sign to retrieve.
406
+ * @param {Language} [language='en'] - The language code for which translations are needed. Defaults to 'en'.
375
407
  * @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
376
408
  *
377
409
  * @example
@@ -390,12 +422,12 @@ export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
390
422
  * // [...]
391
423
  * // }
392
424
  */
393
- export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
425
+ export declare function getSignByName(signKey: Signs, language?: Language): Sign | null;
394
426
  /**
395
427
 
396
428
  * Get all astrological signs with their translations for a specified language.
397
429
  *
398
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
430
+ * @param {Language} [language='en'] - The language code for which translations are needed. Defaults to 'en'.
399
431
  * @returns {Sign[]} An array of Sign objects with translated values based on the specified language.
400
432
  *
401
433
  * @example
@@ -423,18 +455,18 @@ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null
423
455
  * // ...
424
456
  * // ]
425
457
  */
426
- export declare function getSigns(lang?: Language): Sign[];
458
+ export declare function getSigns(language?: Language): Sign[];
427
459
  export interface SymbolOptions {
428
460
  dataUrl?: boolean;
429
461
  stroke?: string;
430
- strokeWidth?: string;
462
+ strokeWidth?: number | string;
431
463
  }
432
464
  /**
433
465
  * Gets an SVG as a string or as a Data URL, with option to modify attributes.
434
- * @param {Signs} signName Name of the icon without extension .svg
466
+ * @param {Symbols} symbolName Name of the icon without extension .svg
435
467
  * @param {SymbolOptions} options Options to modify attributes or return as a Data URL
436
468
  * @returns SVG as string or Data URL
437
469
  */
438
- export declare function getSymbol(signName: Signs, options?: SymbolOptions): string;
470
+ export declare function getSymbol(symbolName: Symbols, options?: SymbolOptions): string | undefined;
439
471
 
440
472
  export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},r={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},i={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},E={POSITIVE:"positive",NEGATIVE:"negative"},m={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},A={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},S={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],R=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],l={LOWER:"lower",UPPER:"upper"},c={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"},P={LUMINARY:"luminary",PERSONAL:"personal",SOCIAL:"social",TRANSPERSONAL:"transpersonal",OTHER:"other"};var x=[{element:n.FIRE,hemisphere:l.LOWER,keywords:R[0],number:1,phase:1,quadrant:1,rulingPlanet:r.MARS,sign:a.ARIES,title:p[0],modality:c.ANGULAR},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[1],modality:c.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:r.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:l.LOWER,keywords:R[2],modality:c.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:r.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:l.LOWER,keywords:R[3],modality:c.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:r.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:l.LOWER,keywords:R[4],modality:c.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:r.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[5],modality:c.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:r.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[6],modality:c.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:r.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[7],modality:c.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:r.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:l.UPPER,keywords:R[8],modality:c.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:r.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:l.UPPER,keywords:R[9],modality:c.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:r.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[10],modality:c.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:r.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[11],modality:c.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:r.NEPTUNE,sign:a.PISCES,title:p[11]}],h=x;var g={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent",luminary:"Luminary",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Other"},L=g;var G={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente",luminary:"Luminar",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Otro"},U=G;var V={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent",luminary:"Lluminaria",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Altres"},O=V;var d={en:L,es:U,ca:O};var F={aries:{bodyPart:m.HEAD,character:A.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:i.CARDINAL,name:a.ARIES,number:1,pole:E.POSITIVE,rulingPlanet:r.MARS,season:S.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:m.THROAT,character:A.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:i.FIXED,name:a.TAURUS,number:2,pole:E.NEGATIVE,rulingPlanet:r.VENUS,season:S.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:m.LUNGS,character:A.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:i.MUTABLE,name:a.GEMINI,number:3,pole:E.POSITIVE,rulingPlanet:r.MERCURY,season:S.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:m.STOMACH,character:A.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:i.CARDINAL,name:a.CANCER,number:4,pole:E.NEGATIVE,rulingPlanet:r.MOON,season:S.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:m.HEART,character:A.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:i.FIXED,name:a.LEO,number:5,pole:E.POSITIVE,rulingPlanet:r.SUN,season:S.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:m.BOWELS,character:A.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:i.MUTABLE,name:a.VIRGO,number:6,pole:E.NEGATIVE,rulingPlanet:r.MERCURY,season:S.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:m.REINS,character:A.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:i.CARDINAL,name:a.LIBRA,number:7,pole:E.POSITIVE,rulingPlanet:r.VENUS,season:S.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:m.SECRETS,character:A.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:i.FIXED,name:a.SCORPIO,number:8,pole:E.NEGATIVE,rulingPlanet:r.PLUTO,season:S.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:m.THIGHS,character:A.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:i.MUTABLE,name:a.SAGITTARIUS,number:9,pole:E.POSITIVE,rulingPlanet:r.JUPITER,season:S.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:m.KNEES,character:A.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:i.CARDINAL,name:a.CAPRICORN,number:10,pole:E.NEGATIVE,rulingPlanet:r.SATURN,season:S.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:m.ANKLES,character:A.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:i.FIXED,name:a.AQUARIUS,number:11,pole:E.POSITIVE,rulingPlanet:r.URANUS,season:S.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:m.FEET,character:A.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:i.MUTABLE,name:a.PISCES,number:12,pole:E.NEGATIVE,rulingPlanet:r.NEPTUNE,season:S.WINTER,startDate:new Date(2020,1,21)}},I=F;function y(e,o){let s=d[o];return{bodyPart:s[e.bodyPart],character:s[e.character],element:s[e.element],endDate:e.endDate,glyph:e.glyph,modality:s[e.modality],name:s[e.name],number:e.number,pole:s[e.pole],rulingPlanet:s[e.rulingPlanet],season:s[e.season],startDate:e.startDate}}function b(e,o,s){let t=s.getMonth()+1,u=s.getDate(),T=e.getMonth()+1,D=e.getDate(),N=o.getMonth()+1,w=o.getDate();return t===T&&u>=D||t===N&&u<=w||T>N&&(t>T||t<N)}function M(e,o){let s=d[o],[,t]=e.title.split("-"),[,u]=e.keywords.split("-");return{number:e.number,title:s.houseTitles[Number(t)-1],sign:s[e.sign],rulingPlanet:s[e.rulingPlanet],keywords:s.houseKeywords[Number(u)-1],element:s[e.element],hemisphere:s[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:s[e.modality]}}function B(e="en"){return h.map((o)=>{return M(o,e)})}var W={sun:{name:r.SUN,glyph:"☉",type:P.LUMINARY},moon:{name:r.MOON,glyph:"☽",type:P.LUMINARY},mercury:{name:r.MERCURY,glyph:"☿",type:P.PERSONAL},venus:{name:r.VENUS,glyph:"♀",type:P.PERSONAL},mars:{name:r.MARS,glyph:"♂",type:P.PERSONAL},jupiter:{name:r.JUPITER,glyph:"♃",type:P.SOCIAL},saturn:{name:r.SATURN,glyph:"♄",type:P.SOCIAL},uranus:{name:r.URANUS,glyph:"♅",type:P.TRANSPERSONAL},neptune:{name:r.NEPTUNE,glyph:"♆",type:P.TRANSPERSONAL},pluto:{name:r.PLUTO,glyph:"♇",type:P.TRANSPERSONAL}},C=W;function f(e="en"){return Object.keys(C).map((o)=>{let s={};return Object.entries(C[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}function q(e,o="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let s of Object.keys(I)){let t=I[s],{startDate:u,endDate:T}=t;if(b(u,T,e))return y(t,o)}return null}function K(e,o="en"){let s=I[e];if(!s)return null;return y(s,o)}function k(e="en"){return Object.keys(I).map((o)=>{let s={};return Object.entries(I[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}import{existsSync as v,readFileSync as Y}from"node:fs";import H from"node:path";import{fileURLToPath as _}from"node:url";var j=H.dirname(_(import.meta.url));function J(e,o={}){let s=H.join(j,"../assets",`${e}.svg`);if(!v(s))throw new Error(`Icon "${e}" not found.`);let t=Y(s,"utf8");if(o.stroke)t=t.replace(/stroke="[^"]*"/g,`stroke="${o.stroke}"`);if(o.strokeWidth)t=t.replace(/stroke-width="[^"]*"/g,`stroke-width="${o.strokeWidth}"`);if(o.dataUrl)return`data:image/svg+xml;base64,${Buffer.from(t).toString("base64")}`;return t}export{J as getSymbol,k as getSigns,K as getSignByName,q as getSignByDate,f as getPlanets,B as getHouses,a as SIGNS,r as PLANETS,i as MODALITIES,c as HOUSE_MODALITIES,l as HEMISPHERES,n as ELEMENTS};
1
+ var r={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},e={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},E={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},s={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},m={POSITIVE:"positive",NEGATIVE:"negative"},S={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},R={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},l={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},T=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],p=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],c={LOWER:"lower",UPPER:"upper"},u={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"},P={LUMINARY:"luminary",PERSONAL:"personal",SOCIAL:"social",TRANSPERSONAL:"transpersonal",OTHER:"other"};var H={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent",luminary:"Luminary",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Other"},L=H;var w={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente",luminary:"Luminar",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Otro"},d=w;var x={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent",luminary:"Lluminaria",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Altres"},O=x;var I={en:L,es:d,ca:O};var V=[{element:s.FIRE,hemisphere:c.LOWER,keywords:p[0],number:1,phase:1,quadrant:1,rulingPlanet:e.MARS,sign:r.ARIES,title:T[0],modality:u.ANGULAR},{element:s.EARTH,hemisphere:c.LOWER,keywords:p[1],modality:u.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:e.VENUS,sign:r.TAURUS,title:T[1]},{element:s.AIR,hemisphere:c.LOWER,keywords:p[2],modality:u.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:e.MERCURY,sign:r.GEMINI,title:T[2]},{element:s.WATER,hemisphere:c.LOWER,keywords:p[3],modality:u.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:e.MOON,sign:r.CANCER,title:T[3]},{element:s.FIRE,hemisphere:c.LOWER,keywords:p[4],modality:u.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:e.SUN,sign:r.LEO,title:T[4]},{element:s.EARTH,hemisphere:c.LOWER,keywords:p[5],modality:u.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:e.MERCURY,sign:r.VIRGO,title:T[5]},{element:s.AIR,hemisphere:c.UPPER,keywords:p[6],modality:u.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:e.VENUS,sign:r.LIBRA,title:T[6]},{element:s.WATER,hemisphere:c.UPPER,keywords:p[7],modality:u.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:e.PLUTO,sign:r.SCORPIO,title:T[7]},{element:s.FIRE,hemisphere:c.UPPER,keywords:p[8],modality:u.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:e.JUPITER,sign:r.SAGITTARIUS,title:T[8]},{element:s.EARTH,hemisphere:c.UPPER,keywords:p[9],modality:u.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:e.SATURN,sign:r.CAPRICORN,title:T[9]},{element:s.AIR,hemisphere:c.UPPER,keywords:p[10],modality:u.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:e.URANUS,sign:r.AQUARIUS,title:T[10]},{element:s.WATER,hemisphere:c.UPPER,keywords:p[11],modality:u.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:e.NEPTUNE,sign:r.PISCES,title:T[11]}],y=V;function G(a="en"){return y.map((n)=>{return Object.fromEntries(Object.entries(n).map(([A,i])=>[A,I[a][i]||i]))})}var F={sun:{name:e.SUN,glyph:"☉",type:P.LUMINARY},moon:{name:e.MOON,glyph:"☽",type:P.LUMINARY},mercury:{name:e.MERCURY,glyph:"☿",type:P.PERSONAL},venus:{name:e.VENUS,glyph:"♀",type:P.PERSONAL},mars:{name:e.MARS,glyph:"♂",type:P.PERSONAL},jupiter:{name:e.JUPITER,glyph:"♃",type:P.SOCIAL},saturn:{name:e.SATURN,glyph:"♄",type:P.SOCIAL},uranus:{name:e.URANUS,glyph:"♅",type:P.TRANSPERSONAL},neptune:{name:e.NEPTUNE,glyph:"♆",type:P.TRANSPERSONAL},pluto:{name:e.PLUTO,glyph:"♇",type:P.TRANSPERSONAL}},h=F;function B(a,t="en"){let n=h[a];if(!n)return null;return Object.fromEntries(Object.entries(n).map(([A,i])=>[A,I[t][i]||i]))}function W(a="en"){return Object.keys(h).map((n)=>{let o=h[n];return Object.fromEntries(Object.entries(o).map(([i,N])=>[i,I[a][N]||N]))})}var q={aries:{bodyPart:S.HEAD,character:R.RAM,element:s.FIRE,endDate:new Date(2020,3,20),glyph:"♈︎",modality:E.CARDINAL,name:r.ARIES,number:1,pole:m.POSITIVE,rulingPlanet:e.MARS,season:l.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:S.THROAT,character:R.BULL,element:s.EARTH,endDate:new Date(2020,4,21),glyph:"♉︎",modality:E.FIXED,name:r.TAURUS,number:2,pole:m.NEGATIVE,rulingPlanet:e.VENUS,season:l.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:S.LUNGS,character:R.TWINS,element:s.AIR,endDate:new Date(2020,5,22),glyph:"♊︎",modality:E.MUTABLE,name:r.GEMINI,number:3,pole:m.POSITIVE,rulingPlanet:e.MERCURY,season:l.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:S.STOMACH,character:R.CRAB,element:s.WATER,endDate:new Date(2020,6,22),glyph:"♋︎",modality:E.CARDINAL,name:r.CANCER,number:4,pole:m.NEGATIVE,rulingPlanet:e.MOON,season:l.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:S.HEART,character:R.LION,element:s.FIRE,endDate:new Date(2020,7,22),glyph:"♌︎",modality:E.FIXED,name:r.LEO,number:5,pole:m.POSITIVE,rulingPlanet:e.SUN,season:l.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:S.BOWELS,character:R.VIRGIN,element:s.EARTH,endDate:new Date(2020,8,22),glyph:"♍︎",modality:E.MUTABLE,name:r.VIRGO,number:6,pole:m.NEGATIVE,rulingPlanet:e.MERCURY,season:l.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:S.REINS,character:R.BALANCE,element:s.AIR,endDate:new Date(2020,9,22),glyph:"♎︎",modality:E.CARDINAL,name:r.LIBRA,number:7,pole:m.POSITIVE,rulingPlanet:e.VENUS,season:l.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:S.SECRETS,character:R.SCORPION,element:s.WATER,endDate:new Date(2020,10,22),glyph:"♏︎",modality:E.FIXED,name:r.SCORPIO,number:8,pole:m.NEGATIVE,rulingPlanet:e.PLUTO,season:l.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:S.THIGHS,character:R.ARCHER,element:s.FIRE,endDate:new Date(2020,11,22),glyph:"♐︎",modality:E.MUTABLE,name:r.SAGITTARIUS,number:9,pole:m.POSITIVE,rulingPlanet:e.JUPITER,season:l.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:S.KNEES,character:R.GOAT,element:s.EARTH,endDate:new Date(2021,0,21),glyph:"♑︎",modality:E.CARDINAL,name:r.CAPRICORN,number:10,pole:m.NEGATIVE,rulingPlanet:e.SATURN,season:l.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:S.ANKLES,character:R.THE_MAN,element:s.AIR,endDate:new Date(2020,1,20),glyph:"♒︎",modality:E.FIXED,name:r.AQUARIUS,number:11,pole:m.POSITIVE,rulingPlanet:e.URANUS,season:l.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:S.FEET,character:R.THE_FISHES,element:s.WATER,endDate:new Date(2020,2,19),glyph:"♓︎",modality:E.MUTABLE,name:r.PISCES,number:12,pole:m.NEGATIVE,rulingPlanet:e.NEPTUNE,season:l.WINTER,startDate:new Date(2020,1,21)}},C=q;function D(a,t,n){let o=n.getMonth()+1,A=n.getDate(),i=a.getMonth()+1,N=a.getDate(),U=t.getMonth()+1,b=t.getDate();return o===i&&A>=N||o===U&&A<=b||i>U&&(o>i||o<U)}function f(a,t="en"){if(!(a instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(C)){let o=C[n],{startDate:A,endDate:i}=o;if(D(A,i,a))return Object.fromEntries(Object.entries(o).map(([N,U])=>[N,I[t][U]||U]))}return null}function Y(a,t="en"){let n=C[a];if(!n)return null;return Object.fromEntries(Object.entries(n).map(([A,i])=>[A,I[t][i]||i]))}function _(a="en"){return Object.keys(C).map((n)=>{let o=C[n];return Object.fromEntries(Object.entries(o).map(([i,N])=>[i,I[a][N]||N]))})}import{existsSync as K,readFileSync as k}from"node:fs";import M from"node:path";import{fileURLToPath as j}from"node:url";var J=M.dirname(j(import.meta.url));function g(a,t={}){if(typeof window!=="undefined")return;let n=M.join(J,"../assets",`${a}.svg`);if(!K(n))throw new Error(`Icon "${a}" not found.`);let o=k(n,"utf8");if(t.stroke)o=o.replace(/stroke="[^"]*"/g,`stroke="${t.stroke}"`);if(t.strokeWidth)o=o.replace(/stroke-width="[^"]*"/g,`stroke-width="${Number(t.strokeWidth)}"`);if(t.dataUrl)return`data:image/svg+xml;base64,${Buffer.from(o).toString("base64")}`;return o}export{g as getSymbol,_ as getSigns,Y as getSignByName,f as getSignByDate,W as getPlanets,B as getPlanet,G as getHouses,r as SIGNS,e as PLANETS,E as MODALITIES,u as HOUSE_MODALITIES,c as HEMISPHERES,s as ELEMENTS};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "western-signs",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "author": "Marc Mariné <shenobi@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",