western-signs 1.8.0 → 1.9.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 +24 -0
- package/assets/sun.svg +1 -2
- package/dist/index.d.ts +19 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,6 +58,30 @@ It should returns an object with the following properties:
|
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
### Translations
|
|
62
|
+
|
|
63
|
+
You can easily translate aspects and other astrology-related terms using the `t` function provided by the library. The `t` function takes template strings and values to be translated based on the current language setting.
|
|
64
|
+
|
|
65
|
+
To translate an aspect into the current language:
|
|
66
|
+
|
|
67
|
+
```js
|
|
68
|
+
import { ASPECTS, i18n } from 'western-signs'
|
|
69
|
+
|
|
70
|
+
const aspect = i18n.t`${ASPECTS.CONJUNCTION}`
|
|
71
|
+
console.log(aspect)
|
|
72
|
+
// Output: Conjunction
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
To change the language, use the `setLanguage` function:
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
i18n.setLanguage('es')
|
|
79
|
+
const aspectInSpanish = i18n.t`${ASPECTS.CONJUNCTION}`
|
|
80
|
+
console.log(aspectInSpanish)
|
|
81
|
+
// Output: Conjunción
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
61
85
|
## API Reference
|
|
62
86
|
|
|
63
87
|
### Functions
|
package/assets/sun.svg
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
stroke-width="1"
|
|
6
6
|
/>
|
|
7
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"
|
|
8
|
+
d="M14.6667 7.99996C14.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
9
|
stroke="currentColor"
|
|
11
10
|
stroke-width="1"
|
|
12
11
|
stroke-linejoin="round"
|
package/dist/index.d.ts
CHANGED
|
@@ -91,14 +91,14 @@ declare const PLANET_TYPE: {
|
|
|
91
91
|
readonly TRANSPERSONAL: "transpersonal";
|
|
92
92
|
readonly OTHER: "other";
|
|
93
93
|
};
|
|
94
|
-
declare const ASPECTS: {
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
94
|
+
export declare const ASPECTS: {
|
|
95
|
+
readonly CONJUNCTION: "conjunction";
|
|
96
|
+
readonly SEMISEXTILE: "semisextile";
|
|
97
|
+
readonly SEXTILE: "sextile";
|
|
98
|
+
readonly QUADRATURE: "quadrature";
|
|
99
|
+
readonly TRIGONE: "trigone";
|
|
100
|
+
readonly QUINCUNX: "quincunx";
|
|
101
|
+
readonly OPPOSITION: "opposition";
|
|
102
102
|
};
|
|
103
103
|
declare const dictionaries: {
|
|
104
104
|
en: Dictionary;
|
|
@@ -468,5 +468,16 @@ export interface SymbolOptions {
|
|
|
468
468
|
* @returns SVG as string or Data URL
|
|
469
469
|
*/
|
|
470
470
|
export declare function getSymbol(symbolName: Symbols, options?: SymbolOptions): string | undefined;
|
|
471
|
+
declare function setLanguage(language: Language): void;
|
|
472
|
+
declare function getLanguage(): Language;
|
|
473
|
+
declare function t(strings: TemplateStringsArray, ...values: string[]): string;
|
|
474
|
+
|
|
475
|
+
declare namespace i18n {
|
|
476
|
+
export { getLanguage, setLanguage, t };
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export {
|
|
480
|
+
i18n,
|
|
481
|
+
};
|
|
471
482
|
|
|
472
483
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
var V=Object.defineProperty;var G=(i,a)=>{for(var n in a)V(i,n,{get:a[n],enumerable:!0,configurable:!0,set:(s)=>a[n]=()=>s})};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"},u={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},o={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},m={POSITIVE:"positive",NEGATIVE:"negative"},R={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},l={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"},T={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"],I=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],A={LOWER:"lower",UPPER:"upper"},S={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"},P={LUMINARY:"luminary",PERSONAL:"personal",SOCIAL:"social",TRANSPERSONAL:"transpersonal",OTHER:"other"},F={CONJUNCTION:"conjunction",SEMISEXTILE:"semisextile",SEXTILE:"sextile",QUADRATURE:"quadrature",TRIGONE:"trigone",QUINCUNX:"quincunx",OPPOSITION:"opposition"};var q={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",conjunction:"Conjunction",semisextile:"Semisextile",sextile:"Sextile",quadrature:"Quadrature",trigone:"Trigone",quincunx:"Quincunx",opposition:"Opposition"},L=q;var B={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",conjunction:"Conjunción",semisextile:"Semisextil",sextile:"Sextil",quadrature:"Cuadratura",trigone:"Trigono",quincunx:"Quincuncio",opposition:"Oposición"},h=B;var W={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",conjunction:"Conjunció",semisextile:"Semisextil",sextile:"Sextil",quadrature:"Quadratura",trigone:"Trigó",quincunx:"Quincunci",opposition:"Oposició"},y=W;var E={en:L,es:h,ca:y};var f=[{element:o.FIRE,hemisphere:A.LOWER,keywords:I[0],number:1,phase:1,quadrant:1,rulingPlanet:e.MARS,sign:r.ARIES,title:p[0],modality:S.ANGULAR},{element:o.EARTH,hemisphere:A.LOWER,keywords:I[1],modality:S.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:e.VENUS,sign:r.TAURUS,title:p[1]},{element:o.AIR,hemisphere:A.LOWER,keywords:I[2],modality:S.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:e.MERCURY,sign:r.GEMINI,title:p[2]},{element:o.WATER,hemisphere:A.LOWER,keywords:I[3],modality:S.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:e.MOON,sign:r.CANCER,title:p[3]},{element:o.FIRE,hemisphere:A.LOWER,keywords:I[4],modality:S.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:e.SUN,sign:r.LEO,title:p[4]},{element:o.EARTH,hemisphere:A.LOWER,keywords:I[5],modality:S.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:e.MERCURY,sign:r.VIRGO,title:p[5]},{element:o.AIR,hemisphere:A.UPPER,keywords:I[6],modality:S.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:e.VENUS,sign:r.LIBRA,title:p[6]},{element:o.WATER,hemisphere:A.UPPER,keywords:I[7],modality:S.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:e.PLUTO,sign:r.SCORPIO,title:p[7]},{element:o.FIRE,hemisphere:A.UPPER,keywords:I[8],modality:S.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:e.JUPITER,sign:r.SAGITTARIUS,title:p[8]},{element:o.EARTH,hemisphere:A.UPPER,keywords:I[9],modality:S.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:e.SATURN,sign:r.CAPRICORN,title:p[9]},{element:o.AIR,hemisphere:A.UPPER,keywords:I[10],modality:S.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:e.URANUS,sign:r.AQUARIUS,title:p[10]},{element:o.WATER,hemisphere:A.UPPER,keywords:I[11],modality:S.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:e.NEPTUNE,sign:r.PISCES,title:p[11]}],d=f;function Y(i="en"){return d.map((n)=>{return Object.fromEntries(Object.entries(n).map(([c,t])=>[c,E[i][t]||t]))})}var j={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}},O=j;function _(i,a="en"){let n=O[i];if(!n)return null;return Object.fromEntries(Object.entries(n).map(([c,t])=>[c,E[a][t]||t]))}function K(i="en"){return Object.keys(O).map((n)=>{let s=O[n];return Object.fromEntries(Object.entries(s).map(([t,C])=>[t,E[i][C]||C]))})}var k={aries:{bodyPart:R.HEAD,character:l.RAM,element:o.FIRE,endDate:new Date(2020,3,20),glyph:"♈︎",modality:u.CARDINAL,name:r.ARIES,number:1,pole:m.POSITIVE,rulingPlanet:e.MARS,season:T.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:R.THROAT,character:l.BULL,element:o.EARTH,endDate:new Date(2020,4,21),glyph:"♉︎",modality:u.FIXED,name:r.TAURUS,number:2,pole:m.NEGATIVE,rulingPlanet:e.VENUS,season:T.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:R.LUNGS,character:l.TWINS,element:o.AIR,endDate:new Date(2020,5,22),glyph:"♊︎",modality:u.MUTABLE,name:r.GEMINI,number:3,pole:m.POSITIVE,rulingPlanet:e.MERCURY,season:T.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:R.STOMACH,character:l.CRAB,element:o.WATER,endDate:new Date(2020,6,22),glyph:"♋︎",modality:u.CARDINAL,name:r.CANCER,number:4,pole:m.NEGATIVE,rulingPlanet:e.MOON,season:T.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:R.HEART,character:l.LION,element:o.FIRE,endDate:new Date(2020,7,22),glyph:"♌︎",modality:u.FIXED,name:r.LEO,number:5,pole:m.POSITIVE,rulingPlanet:e.SUN,season:T.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:R.BOWELS,character:l.VIRGIN,element:o.EARTH,endDate:new Date(2020,8,22),glyph:"♍︎",modality:u.MUTABLE,name:r.VIRGO,number:6,pole:m.NEGATIVE,rulingPlanet:e.MERCURY,season:T.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:R.REINS,character:l.BALANCE,element:o.AIR,endDate:new Date(2020,9,22),glyph:"♎︎",modality:u.CARDINAL,name:r.LIBRA,number:7,pole:m.POSITIVE,rulingPlanet:e.VENUS,season:T.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:R.SECRETS,character:l.SCORPION,element:o.WATER,endDate:new Date(2020,10,22),glyph:"♏︎",modality:u.FIXED,name:r.SCORPIO,number:8,pole:m.NEGATIVE,rulingPlanet:e.PLUTO,season:T.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:R.THIGHS,character:l.ARCHER,element:o.FIRE,endDate:new Date(2020,11,22),glyph:"♐︎",modality:u.MUTABLE,name:r.SAGITTARIUS,number:9,pole:m.POSITIVE,rulingPlanet:e.JUPITER,season:T.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:R.KNEES,character:l.GOAT,element:o.EARTH,endDate:new Date(2021,0,21),glyph:"♑︎",modality:u.CARDINAL,name:r.CAPRICORN,number:10,pole:m.NEGATIVE,rulingPlanet:e.SATURN,season:T.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:R.ANKLES,character:l.THE_MAN,element:o.AIR,endDate:new Date(2020,1,20),glyph:"♒︎",modality:u.FIXED,name:r.AQUARIUS,number:11,pole:m.POSITIVE,rulingPlanet:e.URANUS,season:T.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:R.FEET,character:l.THE_FISHES,element:o.WATER,endDate:new Date(2020,2,19),glyph:"♓︎",modality:u.MUTABLE,name:r.PISCES,number:12,pole:m.NEGATIVE,rulingPlanet:e.NEPTUNE,season:T.WINTER,startDate:new Date(2020,1,21)}},N=k;function D(i,a,n){let s=n.getMonth()+1,c=n.getDate(),t=i.getMonth()+1,C=i.getDate(),U=a.getMonth()+1,w=a.getDate();return s===t&&c>=C||s===U&&c<=w||t>U&&(s>t||s<U)}function Q(i,a="en"){if(!(i instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(N)){let s=N[n],{startDate:c,endDate:t}=s;if(D(c,t,i))return Object.fromEntries(Object.entries(s).map(([C,U])=>[C,E[a][U]||U]))}return null}function J(i,a="en"){let n=N[i];if(!n)return null;return Object.fromEntries(Object.entries(n).map(([c,t])=>[c,E[a][t]||t]))}function X(i="en"){return Object.keys(N).map((n)=>{let s=N[n];return Object.fromEntries(Object.entries(s).map(([t,C])=>[t,E[i][C]||C]))})}import{existsSync as z,readFileSync as Z}from"node:fs";import M from"node:path";import{fileURLToPath as $}from"node:url";var v=M.dirname($(import.meta.url));function g(i,a={}){if(typeof window!=="undefined")return;let n=M.join(v,"../assets",`${i}.svg`);if(!z(n))throw new Error(`Icon "${i}" not found.`);let s=Z(n,"utf8");if(a.stroke)s=s.replace(/stroke="[^"]*"/g,`stroke="${a.stroke}"`);if(a.strokeWidth)s=s.replace(/stroke-width="[^"]*"/g,`stroke-width="${Number(a.strokeWidth)}"`);if(a.dataUrl)return`data:image/svg+xml;base64,${Buffer.from(s).toString("base64")}`;return s}var H={};G(H,{t:()=>re,setLanguage:()=>ee,getLanguage:()=>x});var b="en";function ee(i){b=i}function x(){return b}function re(i,...a){let n=x();return i.map((s,c)=>{let t=a[c-1]||"";return(E[n][t]||t)+s}).join("")}export{H as i18n,g as getSymbol,X as getSigns,J as getSignByName,Q as getSignByDate,K as getPlanets,_ as getPlanet,Y as getHouses,r as SIGNS,e as PLANETS,u as MODALITIES,S as HOUSE_MODALITIES,A as HEMISPHERES,o as ELEMENTS,F as ASPECTS};
|