@hebcal/core 5.6.1 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +23 -1
  2. package/dist/CalOptions.d.ts +1 -1
  3. package/dist/HolidayEvent.d.ts +0 -5
  4. package/dist/YomKippurKatanEvent.d.ts +0 -1
  5. package/dist/bundle.js +9739 -9578
  6. package/dist/bundle.js.map +1 -1
  7. package/dist/bundle.min.js +2 -2
  8. package/dist/bundle.min.js.map +1 -1
  9. package/dist/calendar.d.ts +110 -0
  10. package/dist/candles.d.ts +10 -1
  11. package/dist/es/CalOptions.d.ts +158 -0
  12. package/dist/es/DailyLearning.d.ts +21 -0
  13. package/dist/es/DailyLearning.js +36 -0
  14. package/dist/es/DailyLearning.js.map +1 -0
  15. package/dist/es/HebrewDateEvent.d.ts +37 -0
  16. package/dist/es/HebrewDateEvent.js +77 -0
  17. package/dist/es/HebrewDateEvent.js.map +1 -0
  18. package/dist/es/HolidayEvent.d.ts +76 -0
  19. package/dist/es/HolidayEvent.js +165 -0
  20. package/dist/es/HolidayEvent.js.map +1 -0
  21. package/dist/es/MevarchimChodeshEvent.d.ts +25 -0
  22. package/dist/es/MevarchimChodeshEvent.js +54 -0
  23. package/dist/es/MevarchimChodeshEvent.js.map +1 -0
  24. package/dist/es/ParshaEvent.d.ts +23 -0
  25. package/dist/es/ParshaEvent.js +53 -0
  26. package/dist/es/ParshaEvent.js.map +1 -0
  27. package/dist/es/TimedEvent.d.ts +47 -0
  28. package/dist/es/TimedEvent.js +97 -0
  29. package/dist/es/TimedEvent.js.map +1 -0
  30. package/dist/es/YomKippurKatanEvent.d.ts +23 -0
  31. package/dist/es/YomKippurKatanEvent.js +43 -0
  32. package/dist/es/YomKippurKatanEvent.js.map +1 -0
  33. package/dist/es/ashkenazi.po.d.ts +67 -0
  34. package/dist/es/ashkenazi.po.js +5 -0
  35. package/dist/es/ashkenazi.po.js.map +1 -0
  36. package/dist/es/calendar.d.ts +110 -0
  37. package/dist/es/calendar.js +615 -0
  38. package/dist/es/calendar.js.map +1 -0
  39. package/dist/es/candles.d.ts +37 -0
  40. package/dist/es/candles.js +161 -0
  41. package/dist/es/candles.js.map +1 -0
  42. package/dist/es/event.d.ts +187 -0
  43. package/dist/es/event.js +243 -0
  44. package/dist/es/event.js.map +1 -0
  45. package/dist/es/getStartAndEnd.d.ts +6 -0
  46. package/dist/es/getStartAndEnd.js +102 -0
  47. package/dist/es/getStartAndEnd.js.map +1 -0
  48. package/dist/es/hallel.d.ts +6 -0
  49. package/dist/es/hallel.js +52 -0
  50. package/dist/es/hallel.js.map +1 -0
  51. package/dist/es/he.po.d.ts +246 -0
  52. package/dist/es/he.po.js +5 -0
  53. package/dist/es/he.po.js.map +1 -0
  54. package/dist/es/hebcal.d.ts +259 -0
  55. package/dist/es/hebcal.js +336 -0
  56. package/dist/es/hebcal.js.map +1 -0
  57. package/dist/es/holidays.d.ts +22 -0
  58. package/dist/es/holidays.js +321 -0
  59. package/dist/es/holidays.js.map +1 -0
  60. package/dist/es/index.d.ts +23 -0
  61. package/dist/es/index.js +22 -0
  62. package/dist/es/index.js.map +1 -0
  63. package/dist/es/locale.d.ts +1 -0
  64. package/dist/es/locale.js +21 -0
  65. package/dist/es/locale.js.map +1 -0
  66. package/dist/es/location.d.ts +73 -0
  67. package/dist/es/location.js +306 -0
  68. package/dist/es/location.js.map +1 -0
  69. package/dist/es/modern.d.ts +18 -0
  70. package/dist/es/modern.js +64 -0
  71. package/dist/es/modern.js.map +1 -0
  72. package/dist/es/molad.d.ts +62 -0
  73. package/dist/es/molad.js +141 -0
  74. package/dist/es/molad.js.map +1 -0
  75. package/dist/es/omer.d.ts +37 -0
  76. package/dist/es/omer.js +88 -0
  77. package/dist/es/omer.js.map +1 -0
  78. package/dist/es/parshaName.d.ts +3 -0
  79. package/dist/es/parshaName.js +19 -0
  80. package/dist/es/parshaName.js.map +1 -0
  81. package/dist/es/pkgVersion.d.ts +2 -0
  82. package/dist/es/pkgVersion.js +6 -0
  83. package/dist/es/pkgVersion.js.map +1 -0
  84. package/dist/es/reformatTimeStr.d.ts +8 -0
  85. package/dist/es/reformatTimeStr.js +52 -0
  86. package/dist/es/reformatTimeStr.js.map +1 -0
  87. package/dist/es/sedra.d.ts +107 -0
  88. package/dist/es/sedra.js +494 -0
  89. package/dist/es/sedra.js.map +1 -0
  90. package/dist/es/staticHolidays.d.ts +176 -0
  91. package/dist/es/staticHolidays.js +626 -0
  92. package/dist/es/staticHolidays.js.map +1 -0
  93. package/dist/es/tachanun.d.ts +29 -0
  94. package/dist/es/tachanun.js +125 -0
  95. package/dist/es/tachanun.js.map +1 -0
  96. package/dist/es/zmanim.d.ts +341 -0
  97. package/dist/es/zmanim.js +573 -0
  98. package/dist/es/zmanim.js.map +1 -0
  99. package/dist/event.d.ts +1 -0
  100. package/dist/holidays.d.ts +13 -0
  101. package/dist/index.cjs +2762 -10041
  102. package/dist/index.cjs.map +1 -1
  103. package/dist/index.d.ts +3 -2
  104. package/dist/module.d.ts +101 -80
  105. package/dist/pkgVersion.d.ts +1 -1
  106. package/dist/sedra.d.ts +4 -4
  107. package/dist/tachanun.d.ts +17 -1
  108. package/package.json +18 -6
  109. package/dist/index.mjs +0 -11998
  110. package/dist/index.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"molad.js","sources":["../../../src/molad.ts"],"sourcesContent":["/* eslint-disable camelcase */\nimport {Event, flags} from './event';\nimport {CalOptions} from './CalOptions';\nimport {HDate, Locale, molad, Molad as MoladBase} from '@hebcal/hdate';\nimport {reformatTimeStr} from './reformatTimeStr';\nimport './locale'; // Adds Hebrew and Ashkenazic translations\n\nconst shortDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\nconst heDayNames = [\n 'רִאשׁוֹן',\n 'שֵׁנִי',\n 'שְׁלִישִׁי',\n 'רְבִיעִי',\n 'חֲמִישִׁי',\n 'שִׁישִּׁי',\n 'שַׁבָּת',\n];\n\nconst night = 'בַּלַּ֥יְלָה';\n\nfunction getHebrewTimeOfDay(hour: number): string {\n if (hour < 5) return night;\n else if (hour < 12) return 'בַּבֹּקֶר';\n else if (hour < 17) return 'בַּצׇּהֳרַיִים';\n else if (hour < 21) return 'בָּעֶרֶב';\n return night;\n}\n\n/**\n * Represents a molad, the moment when the new moon is \"born\"\n */\nexport class Molad {\n private readonly m: MoladBase;\n /**\n * Calculates the molad for a Hebrew month\n * @param year\n * @param month\n */\n constructor(year: number, month: number) {\n this.m = molad(year, month);\n }\n /**\n */\n getYear(): number {\n return this.m.year;\n }\n /**\n */\n getMonth(): number {\n return this.m.month;\n }\n /**\n */\n getMonthName(): string {\n return HDate.getMonthName(this.m.month, this.m.year);\n }\n /**\n * @returns Day of Week (0=Sunday, 6=Saturday)\n */\n getDow(): number {\n return this.m.dayOfWeek;\n }\n /**\n * @returns hour of day (0-23)\n */\n getHour(): number {\n return this.m.hour;\n }\n /**\n * @returns minutes past hour (0-59)\n */\n getMinutes(): number {\n return this.m.minutes;\n }\n /**\n * @returns parts of a minute (0-17)\n */\n getChalakim(): number {\n return this.m.chalakim;\n }\n /**\n * @param [locale] Optional locale name (defaults to active locale)\n * @param options\n */\n render(locale?: string, options?: CalOptions): string {\n locale = locale ?? Locale.getLocaleName();\n if (typeof locale === 'string') {\n locale = locale.toLowerCase();\n }\n const isHebrewLocale =\n locale === 'he' || locale === 'he-x-nonikud' || locale === 'h';\n const monthName = Locale.gettext(this.getMonthName(), locale);\n const dayNames = isHebrewLocale ? heDayNames : shortDayNames;\n const dow = dayNames[this.getDow()];\n const minutes = this.getMinutes();\n const hour = this.getHour();\n const chalakim = this.getChalakim();\n const moladStr = Locale.gettext('Molad', locale);\n const minutesStr = Locale.lookupTranslation('min', locale) ?? 'minutes';\n const chalakimStr = Locale.gettext('chalakim', locale);\n if (isHebrewLocale) {\n const ampm = getHebrewTimeOfDay(hour);\n const result =\n `${moladStr} ${monthName} יִהְיֶה בַּיּוֹם ${dow} בשָׁבוּעַ, ` +\n `בְּשָׁעָה ${hour} ${ampm}, ` +\n `ו-${minutes} ${minutesStr} ` +\n `ו-${chalakim} ${chalakimStr}`;\n if (locale === 'he-x-nonikud') {\n return Locale.hebrewStripNikkud(result);\n }\n return result;\n }\n const fmtTime = reformatTimeStr(`${hour}:00`, 'pm', options);\n const month = monthName.replace(/'/g, '’');\n return `${moladStr} ${month}: ${dow}, ${minutes} ${minutesStr} and ${chalakim} ${chalakimStr} after ${fmtTime}`;\n }\n}\n\n/** Represents a Molad announcement on Shabbat Mevarchim */\nexport class MoladEvent extends Event {\n readonly molad: Molad;\n private readonly options: CalOptions;\n /**\n * @param date Hebrew date event occurs\n * @param hyear molad year\n * @param hmonth molad month\n * @param options\n */\n constructor(date: HDate, hyear: number, hmonth: number, options: CalOptions) {\n const m = new Molad(hyear, hmonth);\n const monthName = m.getMonthName();\n super(date, `Molad ${monthName} ${hyear}`, flags.MOLAD);\n this.molad = m;\n this.options = options;\n }\n /**\n * @param [locale] Optional locale name (defaults to active locale).\n */\n render(locale?: string): string {\n return this.molad.render(locale, this.options);\n }\n}\n"],"names":[],"mappings":";;;;;;AAAA;AAOA,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACvE,MAAM,UAAU,GAAG;IACjB,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,WAAW;IACX,WAAW;IACX,SAAS;CACV;AAED,MAAM,KAAK,GAAG,cAAc;AAE5B,SAAS,kBAAkB,CAAC,IAAY,EAAA;IACtC,IAAI,IAAI,GAAG,CAAC;AAAE,QAAA,OAAO,KAAK;SACrB,IAAI,IAAI,GAAG,EAAE;AAAE,QAAA,OAAO,WAAW;SACjC,IAAI,IAAI,GAAG,EAAE;AAAE,QAAA,OAAO,gBAAgB;SACtC,IAAI,IAAI,GAAG,EAAE;AAAE,Q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A,IAAI,CAAK,GAAA,CAAA,EAAE,IAAI,EAAE,OAAO,CAAC;QAC5D,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AAC1C,QAAA,OAAO,GAAG,QAAQ,CAAA,CAAA,EAAI,KAAK,CAAA,EAAA,EAAK,GAAG,CAAK,EAAA,EAAA,OAAO,CAAI,CAAA,EAAA,UAAU,QAAQ,QAAQ,CAAA,CAAA,EAAI,WAAW,CAAU,OAAA,EAAA,OAAO,EAAE;;AAElH;AAED;AACM,MAAO,UAAW,SAAQ,KAAK,CAAA;AAGnC;;;;;AAKG;AACH,IAAA,WAAA,CAAY,IAAW,EAAE,KAAa,EAAE,MAAc,EAAE,OAAmB,EAAA;QACzE,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC;AAClC,QAAA,MAAM,SAAS,GAAG,CAAC,CAAC,YAAY,EAAE;AAClC,QAAA,KAAK,CAAC,IAAI,EAAE,CAAA,MAAA,EAAS,SAAS,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE,EAAE,KAAK,CAAC,KAAK,CAAC;AACvD,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC;AACd,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;;AAExB;;AAEG;AACH,IAAA,MAAM,CAAC,MAAe,EAAA;AACpB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;;AAEjD;;;;"}
@@ -0,0 +1,37 @@
1
+ import { HDate } from '@hebcal/hdate';
2
+ import { Event } from './event';
3
+ import './locale';
4
+ /** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */
5
+ export declare class OmerEvent extends Event {
6
+ private readonly weekNumber;
7
+ private readonly daysWithinWeeks;
8
+ readonly omer: number;
9
+ emoji?: string;
10
+ /**
11
+ * @param date
12
+ * @param omerDay
13
+ */
14
+ constructor(date: HDate, omerDay: number);
15
+ /**
16
+ * @param lang
17
+ */
18
+ sefira(lang?: string): string;
19
+ /**
20
+ * @todo use gettext()
21
+ * @param [locale] Optional locale name (defaults to active locale).
22
+ */
23
+ render(locale?: string): string;
24
+ /**
25
+ * Returns translation of "Omer day 22" without ordinal numbers.
26
+ * @param [locale] Optional locale name (defaults to active locale).
27
+ */
28
+ renderBrief(locale?: string): string;
29
+ getEmoji(): string;
30
+ getWeeks(): number;
31
+ getDaysWithinWeeks(): number;
32
+ /**
33
+ * @param locale
34
+ */
35
+ getTodayIs(locale: string): string;
36
+ url(): string;
37
+ }
@@ -0,0 +1,88 @@
1
+ /*! @hebcal/core v5.7.1 */
2
+ import { omerSefira, Locale, gematriya, omerEmoji, omerTodayIs } from '@hebcal/hdate';
3
+ import { Event, flags } from './event.js';
4
+ import './locale.js';
5
+
6
+ /** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */
7
+ class OmerEvent extends Event {
8
+ /**
9
+ * @param date
10
+ * @param omerDay
11
+ */
12
+ constructor(date, omerDay) {
13
+ super(date, `Omer ${omerDay}`, flags.OMER_COUNT);
14
+ if (omerDay < 1 || omerDay > 49) {
15
+ throw new RangeError(`Invalid Omer day ${omerDay}`);
16
+ }
17
+ this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;
18
+ this.daysWithinWeeks = omerDay % 7 || 7;
19
+ this.omer = omerDay;
20
+ }
21
+ /**
22
+ * @param lang
23
+ */
24
+ sefira(lang = 'en') {
25
+ if (lang !== 'he' && lang !== 'translit') {
26
+ lang = 'en';
27
+ }
28
+ return omerSefira(this.omer, lang);
29
+ }
30
+ /**
31
+ * @todo use gettext()
32
+ * @param [locale] Optional locale name (defaults to active locale).
33
+ */
34
+ render(locale) {
35
+ locale = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
36
+ if (typeof locale === 'string') {
37
+ locale = locale.toLowerCase();
38
+ }
39
+ const isHebrewLocale = locale === 'he' || locale === 'he-x-nonikud' || locale === 'h';
40
+ const omer = this.omer;
41
+ const nth = isHebrewLocale ? gematriya(omer) : Locale.ordinal(omer, locale);
42
+ return nth + ' ' + Locale.gettext('day of the Omer', locale);
43
+ }
44
+ /**
45
+ * Returns translation of "Omer day 22" without ordinal numbers.
46
+ * @param [locale] Optional locale name (defaults to active locale).
47
+ */
48
+ renderBrief(locale) {
49
+ return (Locale.gettext('Omer', locale) +
50
+ ' ' +
51
+ Locale.gettext('day', locale) +
52
+ ' ' +
53
+ this.omer);
54
+ }
55
+ getEmoji() {
56
+ if (typeof this.emoji === 'string')
57
+ return this.emoji;
58
+ return omerEmoji(this.omer);
59
+ }
60
+ getWeeks() {
61
+ const day7 = this.daysWithinWeeks === 7;
62
+ return day7 ? this.weekNumber : this.weekNumber - 1;
63
+ }
64
+ getDaysWithinWeeks() {
65
+ return this.daysWithinWeeks;
66
+ }
67
+ /**
68
+ * @param locale
69
+ */
70
+ getTodayIs(locale) {
71
+ locale = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
72
+ if (typeof locale === 'string') {
73
+ locale = locale.toLowerCase();
74
+ }
75
+ const omerLang = locale === 'he' || locale === 'he-x-nonikud' ? 'he' : 'en';
76
+ const str = omerTodayIs(this.omer, omerLang);
77
+ if (locale === 'he-x-nonikud') {
78
+ return Locale.hebrewStripNikkud(str);
79
+ }
80
+ return str;
81
+ }
82
+ url() {
83
+ return `https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`;
84
+ }
85
+ }
86
+
87
+ export { OmerEvent };
88
+ //# sourceMappingURL=omer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omer.js","sources":["../../../src/omer.ts"],"sourcesContent":["import {\n HDate,\n Locale,\n OmerLang,\n gematriya,\n omerEmoji,\n omerSefira,\n omerTodayIs,\n} from '@hebcal/hdate';\nimport {Event, flags} from './event';\nimport './locale'; // Adds Hebrew and Ashkenazic translations\n\n/** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */\nexport class OmerEvent extends Event {\n private readonly weekNumber: number;\n private readonly daysWithinWeeks: number;\n readonly omer: number;\n emoji?: string;\n\n /**\n * @param date\n * @param omerDay\n */\n constructor(date: HDate, omerDay: number) {\n super(date, `Omer ${omerDay}`, flags.OMER_COUNT);\n if (omerDay < 1 || omerDay > 49) {\n throw new RangeError(`Invalid Omer day ${omerDay}`);\n }\n this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;\n this.daysWithinWeeks = omerDay % 7 || 7;\n this.omer = omerDay;\n }\n /**\n * @param lang\n */\n sefira(lang = 'en'): string {\n if (lang !== 'he' && lang !== 'translit') {\n lang = 'en';\n }\n return omerSefira(this.omer, lang as OmerLang);\n }\n /**\n * @todo use gettext()\n * @param [locale] Optional locale name (defaults to active locale).\n */\n render(locale?: string): string {\n locale = locale ?? Locale.getLocaleName();\n if (typeof locale === 'string') {\n locale = locale.toLowerCase();\n }\n const isHebrewLocale =\n locale === 'he' || locale === 'he-x-nonikud' || locale === 'h';\n const omer = this.omer;\n const nth = isHebrewLocale ? gematriya(omer) : Locale.ordinal(omer, locale);\n return nth + ' ' + Locale.gettext('day of the Omer', locale);\n }\n /**\n * Returns translation of \"Omer day 22\" without ordinal numbers.\n * @param [locale] Optional locale name (defaults to active locale).\n */\n renderBrief(locale?: string): string {\n return (\n Locale.gettext('Omer', locale) +\n ' ' +\n Locale.gettext('day', locale) +\n ' ' +\n this.omer\n );\n }\n\n getEmoji(): string {\n if (typeof this.emoji === 'string') return this.emoji;\n return omerEmoji(this.omer);\n }\n\n getWeeks(): number {\n const day7 = this.daysWithinWeeks === 7;\n return day7 ? this.weekNumber : this.weekNumber - 1;\n }\n\n getDaysWithinWeeks(): number {\n return this.daysWithinWeeks;\n }\n /**\n * @param locale\n */\n getTodayIs(locale: string): string {\n locale = locale ?? Locale.getLocaleName();\n if (typeof locale === 'string') {\n locale = locale.toLowerCase();\n }\n const omerLang = locale === 'he' || locale === 'he-x-nonikud' ? 'he' : 'en';\n const str = omerTodayIs(this.omer, omerLang) as string;\n if (locale === 'he-x-nonikud') {\n return Locale.hebrewStripNikkud(str);\n }\n return str;\n }\n\n url(): string {\n return `https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`;\n }\n}\n"],"names":[],"mappings":";;;;;AAYA;AACM,MAAO,SAAU,SAAQ,KAAK,CAAA;AAMlC;;;AAGG;IACH,WAAY,CAAA,IAAW,EAAE,OAAe,EAAA;QACtC,KAAK,CAAC,IAAI,EAAE,CAAQ,KAAA,EAAA,OAAO,CAAE,CAAA,EAAE,KAAK,CAAC,UAAU,CAAC;QAChD,IAAI,OAAO,GAAG,CAAC,IAAI,OAAO,GAAG,EAAE,EAAE;AAC/B,YAAA,MAAM,IAAI,UAAU,CAAC,oBAAoB,OAAO,CAAA,CAAE,CAAC;;AAErD,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QACnD,IAAI,CAAC,eAAe,GAAG,OAAO,GAAG,CAAC,IAAI,CAAC;AACvC,QAAA,IAAI,CAAC,IAAI,GAAG,OAAO;;AAErB;;AAEG;IACH,MAAM,CAAC,IAAI,GAAG,IAAI,EAAA;QAChB,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,UAAU,EAAE;YACxC,IAAI,GAAG,IAAI;;QAEb,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAgB,CAAC;;AAEhD;;;AAGG;AACH,IAAA,MAAM,CAAC,MAAe,EAAA;QACpB,MAAM,GAAG,MAAM,KAAA,IAAA,IAAN,MAAM,KAAA,KAAA,CAAA,GAAN,MAAM,GAAI,MAAM,CAAC,aAAa,EAAE;AACzC,QAAA,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AAC9B,YAAA,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE;;AAE/B,QAAA,MAAM,cAAc,GAClB,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,cAAc,IAAI,MAAM,KAAK,GA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GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAW;AACtD,QAAA,IAAI,MAAM,KAAK,cAAc,EAAE;AAC7B,YAAA,OAAO,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC;;AAEtC,QAAA,OAAO,GAAG;;IAGZ,GAAG,GAAA;AACD,QAAA,OAAO,CAA+B,4BAAA,EAAA,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAI,CAAA,EAAA,IAAI,CAAC,IAAI,EAAE;;AAEpF;;;;"}
@@ -0,0 +1,3 @@
1
+ import './locale';
2
+ /** @private */
3
+ export declare function renderParshaName(parsha: string[], locale?: string): string;
@@ -0,0 +1,19 @@
1
+ /*! @hebcal/core v5.7.1 */
2
+ import { Locale } from '@hebcal/hdate';
3
+ import './locale.js';
4
+
5
+ /** @private */
6
+ function renderParshaName(parsha, locale) {
7
+ const locale0 = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
8
+ let name = Locale.gettext(parsha[0], locale0);
9
+ if (parsha.length === 2) {
10
+ const hyphen = locale0 === 'he' ? '־' : '-';
11
+ name += hyphen + Locale.gettext(parsha[1], locale0);
12
+ }
13
+ name = name.replace(/'/g, '’');
14
+ const str = Locale.gettext('Parashat', locale) + ' ' + name;
15
+ return str.normalize();
16
+ }
17
+
18
+ export { renderParshaName };
19
+ //# sourceMappingURL=parshaName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parshaName.js","sources":["../../../src/parshaName.ts"],"sourcesContent":["import {Locale} from '@hebcal/hdate';\nimport './locale'; // Adds Hebrew and Ashkenazic translations\n\n/** @private */\nexport function renderParshaName(parsha: string[], locale?: string): string {\n const locale0 = locale ?? Locale.getLocaleName();\n let name = Locale.gettext(parsha[0], locale0);\n if (parsha.length === 2) {\n const hyphen = locale0 === 'he' ? '־' : '-';\n name += hyphen + Locale.gettext(parsha[1], locale0);\n }\n name = name.replace(/'/g, '’');\n const str = Locale.gettext('Parashat', locale) + ' ' + name;\n return str.normalize();\n}\n"],"names":[],"mappings":";;;;AAGA;AACgB,SAAA,gBAAgB,CAAC,MAAgB,EAAE,MAAe,EAAA;AAChE,IAAA,MAAM,OAAO,GAAG,MAAM,KAAA,IAAA,IAAN,MAAM,KAAA,KAAA,CAAA,GAAN,MAAM,GAAI,MAAM,CAAC,aAAa,EAAE;AAChD,IAAA,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;AAC7C,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;AACvB,QAAA,MAAM,MAAM,GAAG,OAAO,KAAK,IAAI,GAAG,GAAG,GAAG,GAAG;AAC3C,QAAA,IAAI,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;;IAErD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AAC9B,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,GAAG,GAAG,IAAI;AAC3D,IAAA,OAAO,GAAG,CAAC,SAAS,EAAE;AACxB;;;;"}
@@ -0,0 +1,2 @@
1
+ /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
2
+ export declare const version = "5.7.1";
@@ -0,0 +1,6 @@
1
+ /*! @hebcal/core v5.7.1 */
2
+ /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
3
+ const version = '5.7.1';
4
+
5
+ export { version };
6
+ //# sourceMappingURL=pkgVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkgVersion.js","sources":["../../../src/pkgVersion.ts"],"sourcesContent":["/** DO NOT EDIT THIS AUTO-GENERATED FILE! */\nexport const version = '5.7.1';\n"],"names":[],"mappings":";AAAA;AACO,MAAM,OAAO,GAAG;;;;"}
@@ -0,0 +1,8 @@
1
+ import { CalOptions } from './CalOptions';
2
+ /**
3
+ * @private
4
+ * @param timeStr - original time like "20:30"
5
+ * @param suffix - "p" or "pm" or " P.M.". Add leading space if you want it
6
+ * @param options
7
+ */
8
+ export declare function reformatTimeStr(timeStr: string, suffix: string, options?: CalOptions): string;
@@ -0,0 +1,52 @@
1
+ /*! @hebcal/core v5.7.1 */
2
+ const hour12cc = {
3
+ US: 1,
4
+ CA: 1,
5
+ BR: 1,
6
+ AU: 1,
7
+ NZ: 1,
8
+ DO: 1,
9
+ PR: 1,
10
+ GR: 1,
11
+ IN: 1,
12
+ KR: 1,
13
+ NP: 1,
14
+ ZA: 1,
15
+ };
16
+ /**
17
+ * @private
18
+ * @param timeStr - original time like "20:30"
19
+ * @param suffix - "p" or "pm" or " P.M.". Add leading space if you want it
20
+ * @param options
21
+ */
22
+ function reformatTimeStr(timeStr, suffix, options) {
23
+ var _a;
24
+ if (typeof timeStr !== 'string')
25
+ throw new TypeError(`Bad timeStr: ${timeStr}`);
26
+ const cc = ((_a = options === null || options === void 0 ? void 0 : options.location) === null || _a === void 0 ? void 0 : _a.getCountryCode()) || ((options === null || options === void 0 ? void 0 : options.il) ? 'IL' : 'US');
27
+ const hour12 = options === null || options === void 0 ? void 0 : options.hour12;
28
+ if (typeof hour12 !== 'undefined' && !hour12) {
29
+ return timeStr;
30
+ }
31
+ if (!hour12 && typeof hour12cc[cc] === 'undefined') {
32
+ return timeStr;
33
+ }
34
+ const hm = timeStr.split(':');
35
+ let hour = parseInt(hm[0], 10);
36
+ if (hour < 12 && suffix) {
37
+ suffix = suffix.replace('p', 'a').replace('P', 'A');
38
+ if (hour === 0) {
39
+ hour = 12;
40
+ }
41
+ }
42
+ else if (hour > 12) {
43
+ hour = hour % 12;
44
+ }
45
+ else if (hour === 0) {
46
+ hour = '00';
47
+ }
48
+ return `${hour}:${hm[1]}${suffix}`;
49
+ }
50
+
51
+ export { reformatTimeStr };
52
+ //# sourceMappingURL=reformatTimeStr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reformatTimeStr.js","sources":["../../../src/reformatTimeStr.ts"],"sourcesContent":["import {CalOptions} from './CalOptions';\n\nconst hour12cc: {[key: string]: number} = {\n US: 1,\n CA: 1,\n BR: 1,\n AU: 1,\n NZ: 1,\n DO: 1,\n PR: 1,\n GR: 1,\n IN: 1,\n KR: 1,\n NP: 1,\n ZA: 1,\n} as const;\n\n/**\n * @private\n * @param timeStr - original time like \"20:30\"\n * @param suffix - \"p\" or \"pm\" or \" P.M.\". Add leading space if you want it\n * @param options\n */\nexport function reformatTimeStr(\n timeStr: string,\n suffix: string,\n options?: CalOptions\n): string {\n if (typeof timeStr !== 'string')\n throw new TypeError(`Bad timeStr: ${timeStr}`);\n const cc = options?.location?.getCountryCode() || (options?.il ? 'IL' : 'US');\n const hour12 = options?.hour12;\n if (typeof hour12 !== 'undefined' && !hour12) {\n return timeStr;\n }\n if (!hour12 && typeof hour12cc[cc] === 'undefined') {\n return timeStr;\n }\n const hm = timeStr.split(':');\n let hour: string | number = parseInt(hm[0], 10);\n if (hour < 12 && suffix) {\n suffix = suffix.replace('p', 'a').replace('P', 'A');\n if (hour === 0) {\n hour = 12;\n }\n } else if (hour > 12) {\n hour = hour % 12;\n } else if (hour === 0) {\n hour = '00';\n }\n return `${hour}:${hm[1]}${suffix}`;\n}\n"],"names":[],"mappings":";AAEA,MAAM,QAAQ,GAA4B;AACxC,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,CAAC;CACG;AAEV;;;;;AAKG;SACa,eAAe,CAC7B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,EAAE,EAAE;AACpB,QAAA,IAAI,GAAG,IAAI,GAAG,EAAE;;AACX,SAAA,IAAI,IAAI,KAAK,CAAC,EAAE;QACrB,IAAI,GAAG,IAAI;;IAEb,OAAO,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,EAAE,CAAC,CAAC,CAAC,CAAA,EAAG,MAAM,CAAA,CAAE;AACpC;;;;"}
@@ -0,0 +1,107 @@
1
+ import { HDate } from '@hebcal/hdate';
2
+ import './locale';
3
+ /** The result from `Sedra.lookup()` */
4
+ export type SedraResult = {
5
+ /**
6
+ * Name of the parsha (or parshiyot) read on
7
+ * Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
8
+ */
9
+ parsha: string[];
10
+ /**
11
+ * True if this is a regular parasha HaShavua
12
+ * Torah reading, false if it's a special holiday reading
13
+ */
14
+ chag: boolean;
15
+ /**
16
+ * The parsha number (or numbers) using 1-indexing.
17
+ * A `number` for a regular (single) parsha, and a `number[]`
18
+ * for a doubled parsha.
19
+ * For Parashat *Bereshit*, `num` would be equal to `1`, and for
20
+ * *Matot-Masei* it would be `[42, 43]`
21
+ */
22
+ num?: number | number[];
23
+ /** The date of the Shabbat this parsha is read */
24
+ hdate: HDate;
25
+ };
26
+ /**
27
+ * Represents Parashah HaShavua for an entire Hebrew year
28
+ */
29
+ export declare class Sedra {
30
+ private readonly year;
31
+ private readonly il;
32
+ private readonly firstSaturday;
33
+ private readonly theSedraArray;
34
+ /**
35
+ * Caculates the Parashah HaShavua for an entire Hebrew year
36
+ * @param hyear - Hebrew year (e.g. 5749)
37
+ * @param il - Use Israel sedra schedule (false for Diaspora)
38
+ */
39
+ constructor(hyear: number, il: boolean);
40
+ /**
41
+ * Returns the parsha (or parshiyot) read on Hebrew date
42
+ * @deprecated Use {@link lookup} instead
43
+ * @param hd Hebrew date or R.D. days
44
+ */
45
+ get(hd: HDate | number): string[];
46
+ /**
47
+ * Looks up parsha for the date, then returns a translated or transliterated string
48
+ * @deprecated Use {@link lookup} instead
49
+ * @param hd Hebrew date or R.D. days
50
+ * @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale
51
+ */
52
+ getString(hd: HDate | number, locale?: string): string;
53
+ /**
54
+ * Checks to see if this day would be a regular parasha HaShavua
55
+ * Torah reading or special holiday reading
56
+ * @deprecated Use {@link lookup} instead
57
+ * @param hd Hebrew date or R.D. days
58
+ */
59
+ isParsha(hd: HDate | number): boolean;
60
+ /**
61
+ * Returns the date that a parsha occurs
62
+ * or `null` if the parsha doesn't occur this year
63
+ * @param parsha if a `string`, specified with Sephardic transliterations
64
+ * like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
65
+ * array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
66
+ * be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
67
+ * number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
68
+ */
69
+ find(parsha: number | string | string[]): HDate | null;
70
+ private findInternal;
71
+ /**
72
+ * Returns the date that a parsha (or its doubled or undoubled counterpart)
73
+ * occurs, or `null` if the parsha doesn't occur this year
74
+ */
75
+ findContaining(parsha: number | string): HDate | null;
76
+ /**
77
+ * Returns the underlying annual sedra schedule.
78
+ * Used by `@hebcal/triennial`
79
+ */
80
+ getSedraArray(): readonly NumberOrString[];
81
+ /**
82
+ * R.D. date of the first Saturday on or after Rosh Hashana
83
+ */
84
+ getFirstSaturday(): number;
85
+ getYear(): number;
86
+ /**
87
+ * Returns an object describing the parsha on the first Saturday on or after `hd`
88
+ * @param hd Hebrew date or R.D. days
89
+ */
90
+ lookup(hd: HDate | number): SedraResult;
91
+ }
92
+ /**
93
+ * The 54 parshiyot of the Torah as transilterated strings.
94
+ * parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu".
95
+ * @readonly
96
+ * @type {string[]}
97
+ */
98
+ export declare const parshiot: readonly string[];
99
+ type NumberOrString = number | string;
100
+ /**
101
+ * Convenience function to create an instance of `Sedra` or reuse a previously
102
+ * created and cached instance.
103
+ * @param hyear
104
+ * @param il
105
+ */
106
+ export declare function getSedra(hyear: number, il: boolean): Sedra;
107
+ export {};