western-signs 1.4.1 → 1.5.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
@@ -4,6 +4,8 @@ Simple interface for [western astrological](https://en.wikipedia.org/wiki/Wester
4
4
 
5
5
  [![NPM Version](https://img.shields.io/npm/v/western-signs)](https://www.npmjs.com/package/western-signs)
6
6
  [![GitHub License](https://img.shields.io/github/license/marcmarine/western-signs)](LICENSE)
7
+ [![View Changelog](https://img.shields.io/badge/view-CHANGELOG.md-red.svg)](https://github.com/marcmarine/western-signs/releases)
8
+ [![TypeDoc](https://img.shields.io/badge/view-docs-yellow.svg)](https://marcmarine.github.io/western-signs)
7
9
 
8
10
  The **Western Signs** library provides detailed information about each astrological sign, including its `name`, `element`, `modality`, `rulingPlanet` and `glyph`, among other things. Additionally, you can specify the language for translations.
9
11
 
@@ -53,12 +55,23 @@ It should returns an object with the following properties:
53
55
  season: 'Spring',
54
56
  startDate: 2020-04-20T22:00:00.000Z
55
57
  }
56
-
57
58
  ```
58
59
 
59
60
  ## API Reference
60
61
 
61
- For detailed API information, please check out the [documentation generated with TypeDoc](https://marcmarine.github.io/western-signs).
62
+ ### Functions
63
+
64
+ - [getHouses](https://marcmarine.github.io/western-signs/functions/getHouses)
65
+ - [getSignByDate](https://marcmarine.github.io/western-signs/functions/getSignByDate)
66
+ - [getSignByName](https://marcmarine.github.io/western-signs/functions/getSignByName)
67
+ - [getSigns](https://marcmarine.github.io/western-signs/functions/getSigns)
68
+
69
+ ### Interfaces
70
+
71
+ - [House](https://marcmarine.github.io/western-signs/interfaces/House)
72
+ - [Sign](https://marcmarine.github.io/western-signs/interfaces/Sign)
73
+
74
+ For more detailed API information, please check out the [documentation](https://marcmarine.github.io/western-signs).
62
75
 
63
76
  ## License
64
77
 
@@ -0,0 +1,318 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export declare const SIGNS: {
4
+ readonly ARIES: "aries";
5
+ readonly TAURUS: "taurus";
6
+ readonly GEMINI: "gemini";
7
+ readonly CANCER: "cancer";
8
+ readonly LEO: "leo";
9
+ readonly VIRGO: "virgo";
10
+ readonly LIBRA: "libra";
11
+ readonly SCORPIO: "scorpio";
12
+ readonly SAGITTARIUS: "sagittarius";
13
+ readonly CAPRICORN: "capricorn";
14
+ readonly AQUARIUS: "aquarius";
15
+ readonly PISCES: "pisces";
16
+ };
17
+ export declare const PLANETS: {
18
+ readonly MARS: "mars";
19
+ readonly VENUS: "venus";
20
+ readonly MERCURY: "mercury";
21
+ readonly MOON: "moon";
22
+ readonly SUN: "sun";
23
+ readonly PLUTO: "pluto";
24
+ readonly JUPITER: "jupiter";
25
+ readonly SATURN: "saturn";
26
+ readonly URANUS: "uranus";
27
+ readonly NEPTUNE: "neptune";
28
+ };
29
+ export declare const MODALITIES: {
30
+ readonly CARDINAL: "cardinal";
31
+ readonly FIXED: "fixed";
32
+ readonly MUTABLE: "mutable";
33
+ };
34
+ export declare const ELEMENTS: {
35
+ readonly FIRE: "fire";
36
+ readonly EARTH: "earth";
37
+ readonly AIR: "air";
38
+ readonly WATER: "water";
39
+ };
40
+ declare const POLARITIES: {
41
+ readonly POSITIVE: "positive";
42
+ readonly NEGATIVE: "negative";
43
+ };
44
+ declare const BODY_PARTS: {
45
+ readonly HEAD: "head";
46
+ readonly THROAT: "throat";
47
+ readonly LUNGS: "lungs";
48
+ readonly STOMACH: "stomach";
49
+ readonly HEART: "heart";
50
+ readonly BOWELS: "bowels";
51
+ readonly REINS: "reins";
52
+ readonly SECRETS: "secrets";
53
+ readonly THIGHS: "thighs";
54
+ readonly KNEES: "knees";
55
+ readonly ANKLES: "ankles";
56
+ readonly FEET: "feet";
57
+ };
58
+ declare const CHARACTERS: {
59
+ readonly RAM: "ram";
60
+ readonly BULL: "bull";
61
+ readonly TWINS: "twins";
62
+ readonly CRAB: "crab";
63
+ readonly LION: "lion";
64
+ readonly VIRGIN: "virgin";
65
+ readonly BALANCE: "balance";
66
+ readonly SCORPION: "scorpion";
67
+ readonly ARCHER: "archer";
68
+ readonly GOAT: "goat";
69
+ readonly THE_MAN: "the-man";
70
+ readonly THE_FISHES: "the-fishes";
71
+ };
72
+ declare const SEASONS: {
73
+ readonly SPRING: "spring";
74
+ readonly SUMMER: "summer";
75
+ readonly AUTUMN: "autumn";
76
+ readonly WINTER: "winter";
77
+ };
78
+ declare const dictionaries: {
79
+ en: Dictionary;
80
+ es: Dictionary;
81
+ ca: Dictionary;
82
+ };
83
+ export type Language = keyof typeof dictionaries;
84
+ export type ObjectValues<T> = T[keyof T];
85
+ export type Signs = ObjectValues<typeof SIGNS>;
86
+ export type Elements = ObjectValues<typeof ELEMENTS>;
87
+ export type Modalities = ObjectValues<typeof MODALITIES>;
88
+ export type Planets = ObjectValues<typeof PLANETS>;
89
+ export type Polarities = ObjectValues<typeof POLARITIES>;
90
+ export type BodyParts = ObjectValues<typeof BODY_PARTS>;
91
+ export type Characters = ObjectValues<typeof CHARACTERS>;
92
+ export type Seasons = ObjectValues<typeof SEASONS>;
93
+ export interface Sign extends Record<string, any> {
94
+ /**
95
+ * The body part associated with the zodiac sign.
96
+ * Indicates the areas of the body influenced by the sign.
97
+ * Examples: "Head" for Aries, "Throat" for Taurus.
98
+ */
99
+ bodyPart: string;
100
+ /**
101
+ * The character associated with the zodiac sign.
102
+ * A visual representation or icon associated with the sign.
103
+ * Examples: "The Ram" for Aries, "The Bull" for Taurus.
104
+ */
105
+ character: string;
106
+ /**
107
+ * The element associated with the zodiac sign.
108
+ * Represents one of the four classical elements: Fire, Earth, Air, Water.
109
+ * Also known as triplicities in astrology.
110
+ * Examples: "Fire" for Aries, "Earth" for Taurus.
111
+ */
112
+ element: string;
113
+ /**
114
+ * The end date of the zodiac sign period.
115
+ * This date marks the end of the zodiac sign's influence for the given year.
116
+ * Examples: new Date(2020, 3, 20) for Aries (April 20, 2020), new Date(2020, 4, 21) for Taurus (May 21, 2020).
117
+ */
118
+ endDate: Date;
119
+ /**
120
+ * The glyph representing the zodiac sign.
121
+ * A symbolic character or drawing associated with the sign.
122
+ * Examples: "♈" for Aries, "♉" for Taurus.
123
+ */
124
+ glyph: string;
125
+ /**
126
+ * The modality of the sign.
127
+ * Indicates its mode of operation: Cardinal, Fixed, or Mutable.
128
+ * Examples: "Cardinal" for Aries, "Fixed" for Taurus.
129
+ */
130
+ modality: string;
131
+ /**
132
+ * The name of the zodiac sign.
133
+ * Examples: "Aries", "Taurus".
134
+ */
135
+ name: string;
136
+ /**
137
+ * The number associated with the zodiac sign.
138
+ * Reflects its order in the zodiac cycle.
139
+ * Examples: 1 for Aries (the first sign), 2 for Taurus (the second sign).
140
+ */
141
+ number: number;
142
+ /**
143
+ * The polarity of the sign.
144
+ * Indicates its active (Positive) or passive (Negative) nature.
145
+ * Examples: "Positive" for Aries, "Negative" for Taurus.
146
+ */
147
+ pole: string;
148
+ /**
149
+ * The ruling planet of the zodiac sign.
150
+ * Represents the guiding celestial body influencing the sign.
151
+ * Examples: "Mars" for Aries, "Venus" for Taurus.
152
+ */
153
+ rulingPlanet: string;
154
+ /**
155
+ * The season in which the zodiac sign occurs.
156
+ * Indicates the time of year the sign predominates.
157
+ * Examples: "Spring" for Aries, "Spring" for Taurus.
158
+ */
159
+ season: string;
160
+ /**
161
+ * The start date of the zodiac sign period.
162
+ * This date marks the beginning of the zodiac sign's influence for the given year.
163
+ * Examples: new Date(2020, 2, 20) for Aries (March 20, 2020), new Date(2020, 3, 21) for Taurus (April 21, 2020).
164
+ */
165
+ startDate: Date;
166
+ }
167
+ export interface House extends Record<string, any> {
168
+ /**
169
+ * Number of the astrological house (1-12).
170
+ * Represents different areas of life experience.
171
+ * Example: House 1 (The individual personality), House 7 (Relating).
172
+ */
173
+ number: number;
174
+ /**
175
+ * Descriptive title of the house.
176
+ * Provides an official or formal name representing the area of life it governs.
177
+ * Examples: "The individual personality", "Values and Possessions".
178
+ */
179
+ title: string;
180
+ /**
181
+ * Zodiac sign associated with this house.
182
+ * Represents the natural energy of the house.
183
+ * Example: "Aries", "Taurus".
184
+ */
185
+ sign: string;
186
+ /**
187
+ * Ruling planet of the house.
188
+ * Indicates the dominant planetary influence.
189
+ * Example: "Mars", "Venus".
190
+ */
191
+ rulingPlanet: string;
192
+ /**
193
+ * Representative keywords.
194
+ * Fundamental concepts associated.
195
+ * Example: ['Self-image', 'Identity', 'Impressions on others', 'Personality'].
196
+ */
197
+ keywords: string[] | string;
198
+ }
199
+ export type Dictionary = {
200
+ [key in Signs | Elements | Modalities | Planets | Polarities | BodyParts | Characters | Seasons]: string;
201
+ } & {
202
+ houseTitles: string[];
203
+ houseKeywords: string[][];
204
+ };
205
+ /**
206
+ * Get the astrological sign by its name with translations for the specified language.
207
+ *
208
+ * @param {Signs} sign - The name of the astrological sign to retrieve.
209
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
210
+ * @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
211
+ *
212
+ * @example
213
+ * import { getSignByName, SIGNS } from 'western-signs';
214
+ *
215
+ * // Retrieve information about Taurus in English
216
+ * const taurusData = getSignByName(SIGNS.TAURUS);
217
+ * console.log(taurusData);
218
+ * // Output:
219
+ * // {
220
+ * // name: 'Taurus',
221
+ * // element: 'Earth',
222
+ * // modality: 'Fixed',
223
+ * // rulingPlanet: 'Venus',
224
+ * // symbol: '♉'
225
+ * // [...]
226
+ * // }
227
+ */
228
+ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
229
+ /**
230
+ * Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
231
+ *
232
+ * @param {Date} date - The date for which the corresponding astrological sign is to be retrieved.
233
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
234
+ * @throws {Error} Will throw an error if the provided date is invalid.
235
+ * @returns {Sign | null} An object representing the astrological sign with translated values or null if the sign is not found.
236
+ *
237
+ * @example
238
+ * import { getSignByDate } from 'western-signs';
239
+ *
240
+ * // Retrieve the sign for May 15 in English
241
+ * const signData = getSignByDate(new Date(1813, 4, 5));
242
+ * console.log(signData);
243
+ * // Output:
244
+ * // {
245
+ * // name: 'Taurus',
246
+ * // element: 'Earth',
247
+ * // modality: 'Fixed',
248
+ * // rulingPlanet: 'Venus',
249
+ * // symbol: '♉',
250
+ * // [...]
251
+ * // }
252
+ */
253
+ export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
254
+ /**
255
+
256
+ * Get all astrological signs with their translations for a specified language.
257
+ *
258
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
259
+ * @returns {Sign[]} An array of Sign objects with translated values based on the specified language.
260
+ *
261
+ * @example
262
+ * import { getSigns } from 'western-signs';
263
+ *
264
+ * // Retrieve information about all signs in English
265
+ * const data = getSigns();
266
+ * console.log(data);
267
+ * // Output:
268
+ * // [
269
+ * // {
270
+ * // name: 'Aries',
271
+ * // element: 'Air',
272
+ * // modality: 'Cardinal',
273
+ * // rulingPlanet: 'Mars',
274
+ * // symbol: '♈'
275
+ * // },
276
+ * // {
277
+ * // name: 'Taurus',
278
+ * // element: 'Earth',
279
+ * // modality: 'Fixed',
280
+ * // rulingPlanet: 'Venus',
281
+ * // symbol: '♉'
282
+ * // },
283
+ * // ...
284
+ * // ]
285
+ */
286
+ export declare function getSigns(lang?: Language): Sign[];
287
+ /**
288
+ * Get all astrological houses with their translations for a specified language.
289
+ *
290
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
291
+ * @returns {House[]} An array of House objects with translated values based on the specified language.
292
+ *
293
+ * @example
294
+ * import { getHouses } from 'western-houses';
295
+ *
296
+ * // Retrieve information about all houses in English
297
+ * const data = getHouses();
298
+ * console.log(data);
299
+ * // Output:
300
+ * // [
301
+ * // {
302
+ * // number: 1,
303
+ * // title: 'The individual personality',
304
+ * // sign: 'Aries',
305
+ * // rulingPlanet: 'Mars',
306
+ * // keywords: [
307
+ * // 'Self-image',
308
+ * // 'Identity',
309
+ * // 'Impressions on others',
310
+ * // 'Personality'
311
+ * // ]
312
+ * // },
313
+ * // ...
314
+ * // ]
315
+ */
316
+ export declare function getHouses(lang?: Language): House[];
317
+
318
+ export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var V=Object.create;var{getPrototypeOf:F,defineProperty:R,getOwnPropertyNames:x}=Object;var j=Object.prototype.hasOwnProperty;var W=(e,a,n)=>{n=e!=null?V(F(e)):{};let m=a||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n;for(let o of x(e))if(!j.call(m,o))R(m,o,{get:()=>e[o],enumerable:!0});return m};var p=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var g=p((te,P)=>{var q={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"اَلْعَرَبِيَّةُ"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}};P.exports=q});var U=p((me,w)=>{var h=g(),b={},d={},C=[],k=[],L=[];for(let e in h){let{name:a,nativeName:n}=h[e];b[e]=d[a.toLowerCase()]=d[n.toLowerCase()]={code:e,name:a,nativeName:n},C.push(e),k.push(a),L.push(n)}w.exports=class e{static getLanguages(a=[]){return a.map((n)=>e.validate(n)?Object.assign({},b[n]):{code:n,name:"",nativeName:""})}static getName(a){return e.validate(a)?h[a].name:""}static getAllNames(){return k.slice()}static getNativeName(a){return e.validate(a)?h[a].nativeName:""}static getAllNativeNames(){return L.slice()}static getCode(a){return a=a.toLowerCase(),d.hasOwnProperty(a)?d[a].code:""}static getAllCodes(){return C.slice()}static validate(a){return h.hasOwnProperty(a)}}});var i={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},r={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},s={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},N={POSITIVE:"positive",NEGATIVE:"negative"},l={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},u={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"},v={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},c=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"];var z={aries:{bodyPart:l.HEAD,character:u.RAM,element:s.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:r.CARDINAL,name:i.ARIES,number:1,pole:N.POSITIVE,rulingPlanet:t.MARS,season:v.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:l.THROAT,character:u.BULL,element:s.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:r.FIXED,name:i.TAURUS,number:2,pole:N.NEGATIVE,rulingPlanet:t.VENUS,season:v.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:l.LUNGS,character:u.TWINS,element:s.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:r.MUTABLE,name:i.GEMINI,number:3,pole:N.POSITIVE,rulingPlanet:t.MERCURY,season:v.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:l.STOMACH,character:u.CRAB,element:s.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:r.CARDINAL,name:i.CANCER,number:4,pole:N.NEGATIVE,rulingPlanet:t.MOON,season:v.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:l.HEART,character:u.LION,element:s.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:r.FIXED,name:i.LEO,number:5,pole:N.POSITIVE,rulingPlanet:t.SUN,season:v.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:l.BOWELS,character:u.VIRGIN,element:s.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:r.MUTABLE,name:i.VIRGO,number:6,pole:N.NEGATIVE,rulingPlanet:t.MERCURY,season:v.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:l.REINS,character:u.BALANCE,element:s.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:r.CARDINAL,name:i.LIBRA,number:7,pole:N.POSITIVE,rulingPlanet:t.VENUS,season:v.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:l.SECRETS,character:u.SCORPION,element:s.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:r.FIXED,name:i.SCORPIO,number:8,pole:N.NEGATIVE,rulingPlanet:t.PLUTO,season:v.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:l.THIGHS,character:u.ARCHER,element:s.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:r.MUTABLE,name:i.SAGITTARIUS,number:9,pole:N.POSITIVE,rulingPlanet:t.JUPITER,season:v.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:l.KNEES,character:u.GOAT,element:s.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:r.CARDINAL,name:i.CAPRICORN,number:10,pole:N.NEGATIVE,rulingPlanet:t.SATURN,season:v.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:l.ANKLES,character:u.THE_MAN,element:s.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:r.FIXED,name:i.AQUARIUS,number:11,pole:N.POSITIVE,rulingPlanet:t.URANUS,season:v.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:l.FEET,character:u.THE_FISHES,element:s.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:r.MUTABLE,name:i.PISCES,number:12,pole:N.NEGATIVE,rulingPlanet:t.NEPTUNE,season:v.WINTER,startDate:new Date(2020,1,21)}},E=z;var D=W(U(),1);var Y={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"]]},O=Y;var _={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"]]},M=_;var T={en:O,es:M};var ce=D.default.getName;function y(e,a){let n=T[a];return{bodyPart:n[e.bodyPart],character:n[e.character],element:n[e.element],endDate:e.endDate,glyph:e.glyph,modality:n[e.modality],name:n[e.name],number:e.number,pole:n[e.pole],rulingPlanet:n[e.rulingPlanet],season:n[e.season],startDate:e.startDate}}function G(e,a,n){let m=n.getMonth()+1,o=n.getDate(),A=e.getMonth()+1,f=e.getDate(),I=a.getMonth()+1,B=a.getDate();return m===A&&o>=f||m===I&&o<=B||A>I&&(m>A||m<I)}function H(e,a){let n=T[a],[,m]=e.title.split("-"),[,o]=e.keywords.split("-");return{number:e.number,title:n.houseTitles[Number(m)-1],sign:n[e.sign],rulingPlanet:n[e.rulingPlanet],keywords:n.houseKeywords[Number(o)-1]}}function J(e,a="en"){let n=E[e];if(!n)return null;return y(n,a)}function X(e,a="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(E)){let m=E[n],{startDate:o,endDate:A}=m;if(G(o,A,e))return y(m,a)}return null}function Q(e="en"){return Object.keys(E).map((a)=>{let n={};return Object.entries(E[a]).forEach(([m,o])=>{let A=T[e][o];n[m]=A??o}),n})}var Z=[{number:1,sign:i.ARIES,rulingPlanet:t.MARS,title:c[0],keywords:S[0]},{number:2,sign:i.TAURUS,rulingPlanet:t.VENUS,title:c[1],keywords:S[1]},{number:3,sign:i.GEMINI,rulingPlanet:t.MERCURY,title:c[2],keywords:S[2]},{number:4,sign:i.CANCER,rulingPlanet:t.MOON,title:c[3],keywords:S[3]},{number:5,sign:i.LEO,rulingPlanet:t.SUN,title:c[4],keywords:S[4]},{number:6,sign:i.VIRGO,rulingPlanet:t.MERCURY,title:c[5],keywords:S[5]},{number:7,sign:i.LIBRA,rulingPlanet:t.VENUS,title:c[6],keywords:S[6]},{number:8,sign:i.SCORPIO,rulingPlanet:t.PLUTO,title:c[7],keywords:S[7]},{number:9,sign:i.SAGITTARIUS,rulingPlanet:t.JUPITER,title:c[8],keywords:S[8]},{number:10,sign:i.CAPRICORN,rulingPlanet:t.SATURN,title:c[9],keywords:S[9]},{number:11,sign:i.AQUARIUS,rulingPlanet:t.URANUS,title:c[10],keywords:S[10]},{number:12,sign:i.PISCES,rulingPlanet:t.NEPTUNE,title:c[11],keywords:S[11]}],K=Z;function $(e="en"){return K.map((a)=>{return H(a,e)})}export{Q as getSigns,J as getSignByName,X as getSignByDate,$ as getHouses,i as SIGNS,t as PLANETS,r as MODALITIES,s as ELEMENTS};
1
+ var x=Object.create;var{getPrototypeOf:F,defineProperty:y,getOwnPropertyNames:j}=Object;var W=Object.prototype.hasOwnProperty;var z=(e,a,n)=>{n=e!=null?x(F(e)):{};let r=a||!e||!e.__esModule?y(n,"default",{value:e,enumerable:!0}):n;for(let m of j(e))if(!W.call(r,m))y(r,m,{get:()=>e[m],enumerable:!0});return r};var I=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var R=I((se,P)=>{var Y={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"العربية"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"Čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"Slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}};P.exports=Y});var U=I((oe,w)=>{var h=R(),b={},d={},C=[],k=[],L=[];for(let e in h){let{name:a,nativeName:n}=h[e];b[e]=d[a.toLowerCase()]=d[n.toLowerCase()]={code:e,name:a,nativeName:n},C.push(e),k.push(a),L.push(n)}w.exports=class e{static getLanguages(a=[]){return a.map((n)=>e.validate(n)?Object.assign({},b[n]):{code:n,name:"",nativeName:""})}static getName(a){return e.validate(a)?h[a].name:""}static getAllNames(){return k.slice()}static getNativeName(a){return e.validate(a)?h[a].nativeName:""}static getAllNativeNames(){return L.slice()}static getCode(a){return a=a.toLowerCase(),d.hasOwnProperty(a)?d[a].code:""}static getAllCodes(){return C.slice()}static validate(a){return h.hasOwnProperty(a)}}});var i={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},s={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},o={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},l={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},N={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"},c={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},v=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"];var q={aries:{bodyPart:u.HEAD,character:N.RAM,element:o.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:s.CARDINAL,name:i.ARIES,number:1,pole:l.POSITIVE,rulingPlanet:t.MARS,season:c.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:N.BULL,element:o.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:s.FIXED,name:i.TAURUS,number:2,pole:l.NEGATIVE,rulingPlanet:t.VENUS,season:c.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:N.TWINS,element:o.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:s.MUTABLE,name:i.GEMINI,number:3,pole:l.POSITIVE,rulingPlanet:t.MERCURY,season:c.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:N.CRAB,element:o.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:s.CARDINAL,name:i.CANCER,number:4,pole:l.NEGATIVE,rulingPlanet:t.MOON,season:c.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:N.LION,element:o.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:s.FIXED,name:i.LEO,number:5,pole:l.POSITIVE,rulingPlanet:t.SUN,season:c.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:N.VIRGIN,element:o.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:s.MUTABLE,name:i.VIRGO,number:6,pole:l.NEGATIVE,rulingPlanet:t.MERCURY,season:c.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:N.BALANCE,element:o.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:s.CARDINAL,name:i.LIBRA,number:7,pole:l.POSITIVE,rulingPlanet:t.VENUS,season:c.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:N.SCORPION,element:o.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:s.FIXED,name:i.SCORPIO,number:8,pole:l.NEGATIVE,rulingPlanet:t.PLUTO,season:c.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:N.ARCHER,element:o.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:s.MUTABLE,name:i.SAGITTARIUS,number:9,pole:l.POSITIVE,rulingPlanet:t.JUPITER,season:c.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:N.GOAT,element:o.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:s.CARDINAL,name:i.CAPRICORN,number:10,pole:l.NEGATIVE,rulingPlanet:t.SATURN,season:c.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:N.THE_MAN,element:o.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:s.FIXED,name:i.AQUARIUS,number:11,pole:l.POSITIVE,rulingPlanet:t.URANUS,season:c.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:N.THE_FISHES,element:o.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:s.MUTABLE,name:i.PISCES,number:12,pole:l.NEGATIVE,rulingPlanet:t.NEPTUNE,season:c.WINTER,startDate:new Date(2020,1,21)}},A=q;var G=z(U(),1);var _={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"]]},O=_;var J={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"]]},M=J;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ó"]]},D=X;var p={en:O,es:M,ca:D};var he=G.default.getName;function T(e,a){let n=p[a];return{bodyPart:n[e.bodyPart],character:n[e.character],element:n[e.element],endDate:e.endDate,glyph:e.glyph,modality:n[e.modality],name:n[e.name],number:e.number,pole:n[e.pole],rulingPlanet:n[e.rulingPlanet],season:n[e.season],startDate:e.startDate}}function f(e,a,n){let r=n.getMonth()+1,m=n.getDate(),E=e.getMonth()+1,V=e.getDate(),g=a.getMonth()+1,B=a.getDate();return r===E&&m>=V||r===g&&m<=B||E>g&&(r>E||r<g)}function H(e,a){let n=p[a],[,r]=e.title.split("-"),[,m]=e.keywords.split("-");return{number:e.number,title:n.houseTitles[Number(r)-1],sign:n[e.sign],rulingPlanet:n[e.rulingPlanet],keywords:n.houseKeywords[Number(m)-1]}}function Q(e,a="en"){let n=A[e];if(!n)return null;return T(n,a)}function Z(e,a="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(A)){let r=A[n],{startDate:m,endDate:E}=r;if(f(m,E,e))return T(r,a)}return null}function $(e="en"){return Object.keys(A).map((a)=>{let n={};return Object.entries(A[a]).forEach(([r,m])=>{let E=p[e][m];n[r]=E??m}),n})}var ee=[{number:1,sign:i.ARIES,rulingPlanet:t.MARS,title:v[0],keywords:S[0]},{number:2,sign:i.TAURUS,rulingPlanet:t.VENUS,title:v[1],keywords:S[1]},{number:3,sign:i.GEMINI,rulingPlanet:t.MERCURY,title:v[2],keywords:S[2]},{number:4,sign:i.CANCER,rulingPlanet:t.MOON,title:v[3],keywords:S[3]},{number:5,sign:i.LEO,rulingPlanet:t.SUN,title:v[4],keywords:S[4]},{number:6,sign:i.VIRGO,rulingPlanet:t.MERCURY,title:v[5],keywords:S[5]},{number:7,sign:i.LIBRA,rulingPlanet:t.VENUS,title:v[6],keywords:S[6]},{number:8,sign:i.SCORPIO,rulingPlanet:t.PLUTO,title:v[7],keywords:S[7]},{number:9,sign:i.SAGITTARIUS,rulingPlanet:t.JUPITER,title:v[8],keywords:S[8]},{number:10,sign:i.CAPRICORN,rulingPlanet:t.SATURN,title:v[9],keywords:S[9]},{number:11,sign:i.AQUARIUS,rulingPlanet:t.URANUS,title:v[10],keywords:S[10]},{number:12,sign:i.PISCES,rulingPlanet:t.NEPTUNE,title:v[11],keywords:S[11]}],K=ee;function ae(e="en"){return K.map((a)=>{return H(a,e)})}export{$ as getSigns,Q as getSignByName,Z as getSignByDate,ae as getHouses,i as SIGNS,t as PLANETS,s as MODALITIES,o as ELEMENTS};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "western-signs",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "author": "Marc Mariné <shenobi@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,18 +10,20 @@
10
10
  "@semantic-release/changelog": "^6.0.3",
11
11
  "@semantic-release/git": "^10.0.1",
12
12
  "@types/bun": "latest",
13
- "iso-639-1": "^3.1.2",
14
- "semantic-release": "^24.0.0",
15
- "typedoc": "0.27.5",
16
- "upgradeps": "^2.0.6",
17
- "varvara-typedoc-theme": "^0.1.3"
13
+ "bun-plugin-dts": "^0.3.0",
14
+ "iso-639-1": "^3.1.5",
15
+ "semantic-release": "^24.2.5",
16
+ "typedoc": "^0.28.5",
17
+ "upgradeps": "^2.0.8",
18
+ "varvara-typedoc-theme": "^0.3.6"
18
19
  },
19
20
  "peerDependencies": {
20
- "typescript": "^5.5.3"
21
+ "typescript": "^5.8.3"
21
22
  },
22
23
  "exports": {
23
24
  ".": "./dist/index.js"
24
25
  },
26
+ "types": "./dist/index.d.ts",
25
27
  "bugs": "https://github.com/marcmarine/western-signs/issues/new",
26
28
  "description": "Simple interface for western astrological signs.",
27
29
  "files": [
@@ -35,11 +37,9 @@
35
37
  "western-signs"
36
38
  ],
37
39
  "license": "MIT",
38
- "publishConfig": {
39
- "access": "public"
40
- },
41
40
  "scripts": {
42
- "build": "bun build.ts"
41
+ "build": "bun build.ts",
42
+ "build:docs": "bunx typedoc"
43
43
  },
44
44
  "type": "module"
45
45
  }