@hebcal/rest-api 5.0.1 → 5.0.3

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.
@@ -1,13 +1,280 @@
1
- /*! @hebcal/rest-api v5.0.1 */
1
+ /*! @hebcal/rest-api v5.0.3 */
2
2
  'use strict';
3
3
 
4
4
  var core = require('@hebcal/core');
5
5
  var leyning = require('@hebcal/leyning');
6
6
  var triennial = require('@hebcal/triennial');
7
7
 
8
- const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
8
+ var holidayDescription = {
9
+ "Asara B'Tevet": "Fast commemorating the siege of Jerusalem",
10
+ "Ben-Gurion Day": "Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",
11
+ "Birkat Hachamah": "A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun",
12
+ "Chag HaBanot": "North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",
13
+ "Chanukah": "Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)",
14
+ "Days of the Omer": "7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays",
15
+ "Family Day": "Yom HaMishpacha, a day to honor the family unit",
16
+ "Herzl Day": "Commemorates the life and vision of Zionist leader Theodor Herzl",
17
+ "Jabotinsky Day": "Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky",
18
+ "Lag BaOmer": "33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings",
19
+ "Leil Selichot": "Prayers for forgiveness in preparation for the High Holidays",
20
+ "Pesach Sheni": "Second Passover, one month after Passover",
21
+ "Pesach": "Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt",
22
+ "Purim Katan": "Minor Purim celebration during Adar I on leap years",
23
+ "Purim": "Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination",
24
+ "Purim Meshulash": "Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat",
25
+ "Rosh Chodesh Nisan": "Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
26
+ "Rosh Chodesh Iyyar": "Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
27
+ "Rosh Chodesh Sivan": "Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
28
+ "Rosh Chodesh Tamuz": "Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
29
+ "Rosh Chodesh Av": "Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
30
+ "Rosh Chodesh Elul": "Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
31
+ "Rosh Chodesh Cheshvan": "Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
32
+ "Rosh Chodesh Kislev": "Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
33
+ "Rosh Chodesh Tevet": "Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
34
+ "Rosh Chodesh Sh'vat": "Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
35
+ "Rosh Chodesh Adar": "Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
36
+ "Rosh Chodesh Adar I": "Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
37
+ "Rosh Chodesh Adar II": "Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
38
+ "Rosh Hashana": "The Jewish New Year. Also spelled Rosh Hashanah",
39
+ "Rosh Hashana LaBehemot": "New Year for Tithing Animals",
40
+ "Shabbat Chazon": "Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av",
41
+ "Shabbat HaChodesh": "Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover",
42
+ "Shabbat HaGadol": "Shabbat before Pesach (The Great Shabbat)",
43
+ "Shabbat Machar Chodesh": "When Shabbat falls the day before Rosh Chodesh",
44
+ "Shabbat Nachamu": "Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")",
45
+ "Shabbat Parah": "Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover",
46
+ "Shabbat Rosh Chodesh": "When Shabbat falls on Rosh Chodesh",
47
+ "Shabbat Shekalim": "Shabbat before Rosh Chodesh Adar. Read in preparation for Purim",
48
+ "Shabbat Shirah": "Shabbat of Song. Shabbat that includes Parashat Beshalach",
49
+ "Shabbat Shuva": "Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur",
50
+ "Shabbat Zachor": "Shabbat of Remembrance. Shabbat before Purim",
51
+ "Shavuot": "Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai",
52
+ "Shmini Atzeret": "Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel",
53
+ "Shushan Purim": "Purim celebrated in Jerusalem and walled cities",
54
+ "Shushan Purim Katan": "Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",
55
+ "Sigd": "Ethiopian Jewish holiday occurring 50 days after Yom Kippur",
56
+ "Simchat Torah": "Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",
57
+ "Sukkot": "Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)",
58
+ "Ta'anit Bechorot": "Fast of the First Born",
59
+ "Ta'anit Esther": "Fast of Esther",
60
+ "Tish'a B'Av": "The Ninth of Av. Fast commemorating the destruction of the two Temples",
61
+ "Tu B'Av": "Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av",
62
+ "Tu BiShvat": "New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah",
63
+ "Tzom Gedaliah": "Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah",
64
+ "Tzom Tammuz": "Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple",
65
+ "Yitzhak Rabin Memorial Day": "Commemorates the life of Israeli Prime Minister Yitzhak Rabin",
66
+ "Yom HaAliyah": "Recognizes Aliyah, immigration to the Jewish State of Israel",
67
+ "Yom HaAliyah School Observance": "Aliyah Day observed in Israeli schools",
68
+ "Yom HaAtzma'ut": "Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat",
69
+ "Yom HaShoah": "Holocaust Memorial Day",
70
+ "Yom HaZikaron": "Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat",
71
+ "Yom Kippur": "Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer",
72
+ "Yom Kippur Katan": "Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh",
73
+ "Yom Yerushalayim": "Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"
74
+ };
9
75
 
10
- const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const AI="Anguilla";const AL="Albania";const AM="Armenia";const AO="Angola";const AR="Argentina";const AS="American Samoa";const AT="Austria";const AU="Australia";const AW="Aruba";const AZ="Azerbaijan";const BA="Bosnia and Herzegovina";const BB="Barbados";const BD="Bangladesh";const BE="Belgium";const BF="Burkina Faso";const BG="Bulgaria";const BH="Bahrain";const BI="Burundi";const BJ="Benin";const BM="Bermuda";const BN="Brunei";const BO="Bolivia";const BR="Brazil";const BS="Bahamas";const BT="Bhutan";const BW="Botswana";const BY="Belarus";const BZ="Belize";const CA="Canada";const CD="Democratic Republic of the Congo";const CF="Central African Republic";const CG="Republic of the Congo";const CH="Switzerland";const CI="Ivory Coast";const CK="Cook Islands";const CL="Chile";const CM="Cameroon";const CN="China";const CO="Colombia";const CR="Costa Rica";const CU="Cuba";const CV="Cape Verde";const CW="Curacao";const CY="Cyprus";const CZ="Czech Republic";const DE="Germany";const DK="Denmark";const DM="Dominica";const DO="Dominican Republic";const DZ="Algeria";const EC="Ecuador";const EE="Estonia";const EG="Egypt";const ER="Eritrea";const ES="Spain";const ET="Ethiopia";const FI="Finland";const FJ="Fiji";const FK="Falkland Islands";const FO="Faroe Islands";const FR="France";const GA="Gabon";const GB="United Kingdom";const GE="Georgia";const GH="Ghana";const GI="Gibraltar";const GL="Greenland";const GM="Gambia";const GN="Guinea";const GQ="Equatorial Guinea";const GR="Greece";const GT="Guatemala";const GW="Guinea-Bissau";const GY="Guyana";const HK="Hong Kong";const HN="Honduras";const HR="Croatia";const HT="Haiti";const HU="Hungary";const ID="Indonesia";const IE="Ireland";const IL="Israel";const IM="Isle of Man";const IN="India";const IQ="Iraq";const IR="Iran";const IS="Iceland";const IT="Italy";const JM="Jamaica";const JO="Jordan";const JP="Japan";const KE="Kenya";const KG="Kyrgyzstan";const KH="Cambodia";const KM="Comoros";const KN="Saint Kitts and Nevis";const KP="North Korea";const KR="South Korea";const KW="Kuwait";const KY="Cayman Islands";const KZ="Kazakhstan";const LA="Laos";const LB="Lebanon";const LC="Saint Lucia";const LI="Liechtenstein";const LR="Liberia";const LS="Lesotho";const LT="Lithuania";const LU="Luxembourg";const LV="Latvia";const LY="Libya";const MA="Morocco";const MD="Moldova";const ME="Montenegro";const MG="Madagascar";const MK="Macedonia";const ML="Mali";const MM="Myanmar";const MN="Mongolia";const MP="Northern Mariana Islands";const MR="Mauritania";const MS="Montserrat";const MT="Malta";const MU="Mauritius";const MW="Malawi";const MX="Mexico";const MY="Malaysia";const MZ="Mozambique";const NA="Namibia";const NC="New Caledonia";const NE="Niger";const NG="Nigeria";const NI="Nicaragua";const NL="Netherlands";const NO="Norway";const NP="Nepal";const NU="Niue";const NZ="New Zealand";const OM="Oman";const PA="Panama";const PE="Peru";const PF="French Polynesia";const PG="Papua New Guinea";const PH="Philippines";const PK="Pakistan";const PL="Poland";const PR="Puerto Rico";const PT="Portugal";const PY="Paraguay";const QA="Qatar";const RO="Romania";const RS="Serbia";const RU="Russia";const RW="Rwanda";const SA="Saudi Arabia";const SB="Solomon Islands";const SC="Seychelles";const SD="Sudan";const SE="Sweden";const SG="Singapore";const SH="Saint Helena";const SI="Slovenia";const SK="Slovakia";const SL="Sierra Leone";const SN="Senegal";const SO="Somalia";const SR="Suriname";const ST="Sao Tome and Principe";const SV="El Salvador";const SY="Syria";const SZ="Swaziland";const TC="Turks and Caicos Islands";const TD="Chad";const TG="Togo";const TH="Thailand";const TJ="Tajikistan";const TM="Turkmenistan";const TN="Tunisia";const TR="Turkey";const TV="Tuvalu";const TW="Taiwan";const TZ="Tanzania";const UA="Ukraine";const UG="Uganda";const US="United States";const UY="Uruguay";const UZ="Uzbekistan";const VC="Saint Vincent and the Grenadines";const VE="Venezuela";const VG="British Virgin Islands";const VN="Vietnam";const WS="Samoa";const YE="Yemen";const YT="Mayotte";const ZA="South Africa";const ZM="Zambia";const ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
76
+ var countryNames = {
77
+ "AD": "Andorra",
78
+ "AE": "United Arab Emirates",
79
+ "AF": "Afghanistan",
80
+ "AI": "Anguilla",
81
+ "AL": "Albania",
82
+ "AM": "Armenia",
83
+ "AO": "Angola",
84
+ "AR": "Argentina",
85
+ "AS": "American Samoa",
86
+ "AT": "Austria",
87
+ "AU": "Australia",
88
+ "AW": "Aruba",
89
+ "AZ": "Azerbaijan",
90
+ "BA": "Bosnia and Herzegovina",
91
+ "BB": "Barbados",
92
+ "BD": "Bangladesh",
93
+ "BE": "Belgium",
94
+ "BF": "Burkina Faso",
95
+ "BG": "Bulgaria",
96
+ "BH": "Bahrain",
97
+ "BI": "Burundi",
98
+ "BJ": "Benin",
99
+ "BM": "Bermuda",
100
+ "BN": "Brunei",
101
+ "BO": "Bolivia",
102
+ "BR": "Brazil",
103
+ "BS": "Bahamas",
104
+ "BT": "Bhutan",
105
+ "BW": "Botswana",
106
+ "BY": "Belarus",
107
+ "BZ": "Belize",
108
+ "CA": "Canada",
109
+ "CD": "Democratic Republic of the Congo",
110
+ "CF": "Central African Republic",
111
+ "CG": "Republic of the Congo",
112
+ "CH": "Switzerland",
113
+ "CI": "Ivory Coast",
114
+ "CK": "Cook Islands",
115
+ "CL": "Chile",
116
+ "CM": "Cameroon",
117
+ "CN": "China",
118
+ "CO": "Colombia",
119
+ "CR": "Costa Rica",
120
+ "CU": "Cuba",
121
+ "CV": "Cape Verde",
122
+ "CW": "Curacao",
123
+ "CY": "Cyprus",
124
+ "CZ": "Czech Republic",
125
+ "DE": "Germany",
126
+ "DK": "Denmark",
127
+ "DM": "Dominica",
128
+ "DO": "Dominican Republic",
129
+ "DZ": "Algeria",
130
+ "EC": "Ecuador",
131
+ "EE": "Estonia",
132
+ "EG": "Egypt",
133
+ "ER": "Eritrea",
134
+ "ES": "Spain",
135
+ "ET": "Ethiopia",
136
+ "FI": "Finland",
137
+ "FJ": "Fiji",
138
+ "FK": "Falkland Islands",
139
+ "FO": "Faroe Islands",
140
+ "FR": "France",
141
+ "GA": "Gabon",
142
+ "GB": "United Kingdom",
143
+ "GE": "Georgia",
144
+ "GH": "Ghana",
145
+ "GI": "Gibraltar",
146
+ "GL": "Greenland",
147
+ "GM": "Gambia",
148
+ "GN": "Guinea",
149
+ "GQ": "Equatorial Guinea",
150
+ "GR": "Greece",
151
+ "GT": "Guatemala",
152
+ "GW": "Guinea-Bissau",
153
+ "GY": "Guyana",
154
+ "HK": "Hong Kong",
155
+ "HN": "Honduras",
156
+ "HR": "Croatia",
157
+ "HT": "Haiti",
158
+ "HU": "Hungary",
159
+ "ID": "Indonesia",
160
+ "IE": "Ireland",
161
+ "IL": "Israel",
162
+ "IM": "Isle of Man",
163
+ "IN": "India",
164
+ "IQ": "Iraq",
165
+ "IR": "Iran",
166
+ "IS": "Iceland",
167
+ "IT": "Italy",
168
+ "JM": "Jamaica",
169
+ "JO": "Jordan",
170
+ "JP": "Japan",
171
+ "KE": "Kenya",
172
+ "KG": "Kyrgyzstan",
173
+ "KH": "Cambodia",
174
+ "KM": "Comoros",
175
+ "KN": "Saint Kitts and Nevis",
176
+ "KP": "North Korea",
177
+ "KR": "South Korea",
178
+ "KW": "Kuwait",
179
+ "KY": "Cayman Islands",
180
+ "KZ": "Kazakhstan",
181
+ "LA": "Laos",
182
+ "LB": "Lebanon",
183
+ "LC": "Saint Lucia",
184
+ "LI": "Liechtenstein",
185
+ "LR": "Liberia",
186
+ "LS": "Lesotho",
187
+ "LT": "Lithuania",
188
+ "LU": "Luxembourg",
189
+ "LV": "Latvia",
190
+ "LY": "Libya",
191
+ "MA": "Morocco",
192
+ "MD": "Moldova",
193
+ "ME": "Montenegro",
194
+ "MG": "Madagascar",
195
+ "MK": "Macedonia",
196
+ "ML": "Mali",
197
+ "MM": "Myanmar",
198
+ "MN": "Mongolia",
199
+ "MP": "Northern Mariana Islands",
200
+ "MR": "Mauritania",
201
+ "MS": "Montserrat",
202
+ "MT": "Malta",
203
+ "MU": "Mauritius",
204
+ "MW": "Malawi",
205
+ "MX": "Mexico",
206
+ "MY": "Malaysia",
207
+ "MZ": "Mozambique",
208
+ "NA": "Namibia",
209
+ "NC": "New Caledonia",
210
+ "NE": "Niger",
211
+ "NG": "Nigeria",
212
+ "NI": "Nicaragua",
213
+ "NL": "Netherlands",
214
+ "NO": "Norway",
215
+ "NP": "Nepal",
216
+ "NU": "Niue",
217
+ "NZ": "New Zealand",
218
+ "OM": "Oman",
219
+ "PA": "Panama",
220
+ "PE": "Peru",
221
+ "PF": "French Polynesia",
222
+ "PG": "Papua New Guinea",
223
+ "PH": "Philippines",
224
+ "PK": "Pakistan",
225
+ "PL": "Poland",
226
+ "PR": "Puerto Rico",
227
+ "PT": "Portugal",
228
+ "PY": "Paraguay",
229
+ "QA": "Qatar",
230
+ "RO": "Romania",
231
+ "RS": "Serbia",
232
+ "RU": "Russia",
233
+ "RW": "Rwanda",
234
+ "SA": "Saudi Arabia",
235
+ "SB": "Solomon Islands",
236
+ "SC": "Seychelles",
237
+ "SD": "Sudan",
238
+ "SE": "Sweden",
239
+ "SG": "Singapore",
240
+ "SH": "Saint Helena",
241
+ "SI": "Slovenia",
242
+ "SK": "Slovakia",
243
+ "SL": "Sierra Leone",
244
+ "SN": "Senegal",
245
+ "SO": "Somalia",
246
+ "SR": "Suriname",
247
+ "ST": "Sao Tome and Principe",
248
+ "SV": "El Salvador",
249
+ "SY": "Syria",
250
+ "SZ": "Swaziland",
251
+ "TC": "Turks and Caicos Islands",
252
+ "TD": "Chad",
253
+ "TG": "Togo",
254
+ "TH": "Thailand",
255
+ "TJ": "Tajikistan",
256
+ "TM": "Turkmenistan",
257
+ "TN": "Tunisia",
258
+ "TR": "Turkey",
259
+ "TV": "Tuvalu",
260
+ "TW": "Taiwan",
261
+ "TZ": "Tanzania",
262
+ "UA": "Ukraine",
263
+ "UG": "Uganda",
264
+ "US": "United States",
265
+ "UY": "Uruguay",
266
+ "UZ": "Uzbekistan",
267
+ "VC": "Saint Vincent and the Grenadines",
268
+ "VE": "Venezuela",
269
+ "VG": "British Virgin Islands",
270
+ "VN": "Vietnam",
271
+ "WS": "Samoa",
272
+ "YE": "Yemen",
273
+ "YT": "Mayotte",
274
+ "ZA": "South Africa",
275
+ "ZM": "Zambia",
276
+ "ZW": "Zimbabwe"
277
+ };
11
278
 
12
279
  /**
13
280
  * Location information
@@ -44,7 +311,7 @@ function locationToPlainObj(location) {
44
311
  latitude: location.getLatitude(),
45
312
  longitude: location.getLongitude(),
46
313
  cc: location.getCountryCode(),
47
- country: countryNames[location.getCountryCode()]
314
+ country: countryNames[location.getCountryCode()],
48
315
  };
49
316
  for (const k of LOC_FIELDS) {
50
317
  if (location[k]) {
@@ -53,9 +320,7 @@ function locationToPlainObj(location) {
53
320
  }
54
321
  return o;
55
322
  } else {
56
- return {
57
- geo: 'none'
58
- };
323
+ return {geo: 'none'};
59
324
  }
60
325
  }
61
326
 
@@ -68,7 +333,12 @@ function locationToPlainObj(location) {
68
333
  * @return {string}
69
334
  */
70
335
  function makeAnchor(s) {
71
- return s.toLowerCase().replace(/'/g, '').replace(/[^\w]/g, '-').replace(/-+/g, '-').replace(/^-/g, '').replace(/-$/g, '');
336
+ return s.toLowerCase()
337
+ .replace(/'/g, '')
338
+ .replace(/[^\w]/g, '-')
339
+ .replace(/-+/g, '-')
340
+ .replace(/^-/g, '')
341
+ .replace(/-$/g, '');
72
342
  }
73
343
 
74
344
  /**
@@ -174,12 +444,12 @@ function renderTitleWithoutTime(ev) {
174
444
  function getCalendarTitle(events, options) {
175
445
  let title = 'Hebcal';
176
446
  const location = options.location;
177
- const locationName = location === null || location === void 0 ? void 0 : location.getName();
447
+ const locationName = location?.getName();
178
448
  if (options.yahrzeit) {
179
449
  title += ' Yahrzeits and Anniversaries';
180
450
  } else if (locationName) {
181
451
  const comma = locationName.indexOf(',');
182
- const name = comma == -1 ? locationName : locationName.substring(0, comma);
452
+ const name = (comma == -1) ? locationName : locationName.substring(0, comma);
183
453
  title += ' ' + name;
184
454
  } else if (options.il) {
185
455
  title += ' Israel';
@@ -197,9 +467,7 @@ function getCalendarTitle(events, options) {
197
467
  if (start.getFullYear() != end.getFullYear()) {
198
468
  title += ' ' + start.getFullYear() + '-' + end.getFullYear();
199
469
  } else if (start.getMonth() == end.getMonth()) {
200
- const monthFormat = new Intl.DateTimeFormat('en-US', {
201
- month: 'long'
202
- });
470
+ const monthFormat = new Intl.DateTimeFormat('en-US', {month: 'long'});
203
471
  const startMonth = monthFormat.format(start);
204
472
  title += ' ' + startMonth + ' ' + start.getFullYear();
205
473
  } else {
@@ -215,7 +483,7 @@ function getCalendarTitle(events, options) {
215
483
  * @param {boolean} [firstSentence=false]
216
484
  * @return {string}
217
485
  */
218
- function getHolidayDescription(ev, firstSentence = false) {
486
+ function getHolidayDescription(ev, firstSentence=false) {
219
487
  const str0 = holidayDescription[ev.getDesc()] || holidayDescription[ev.basename()] || '';
220
488
  const str = str0.normalize();
221
489
  if (firstSentence && str) {
@@ -226,7 +494,11 @@ function getHolidayDescription(ev, firstSentence = false) {
226
494
  }
227
495
  return str;
228
496
  }
229
- const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.NACH_YOMI | core.flags.HEBREW_DATE | core.flags.YERUSHALMI_YOMI;
497
+
498
+ const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT |
499
+ core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT |
500
+ core.flags.NACH_YOMI | core.flags.DAILY_LEARNING |
501
+ core.flags.HEBREW_DATE | core.flags.YERUSHALMI_YOMI;
230
502
 
231
503
  /**
232
504
  * Makes mulit-line text that summarizes Torah & Haftarah
@@ -236,10 +508,12 @@ const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.f
236
508
  */
237
509
  function makeTorahMemoText(ev, il) {
238
510
  const mask = ev.getFlags();
239
- if (mask & HOLIDAY_IGNORE_MASK || typeof ev.eventTime !== 'undefined') {
511
+ if ((mask & HOLIDAY_IGNORE_MASK) || (typeof ev.eventTime !== 'undefined')) {
240
512
  return '';
241
513
  }
242
- const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
514
+ const reading = (mask & core.flags.PARSHA_HASHAVUA) ?
515
+ leyning.getLeyningForParshaHaShavua(ev, il) :
516
+ leyning.getLeyningForHoliday(ev, il);
243
517
  let memo = '';
244
518
  if (reading && (reading.summary || reading.haftara)) {
245
519
  if (reading.summary) {
@@ -249,14 +523,13 @@ function makeTorahMemoText(ev, il) {
249
523
  memo += '\n';
250
524
  }
251
525
  if (reading.haftara) {
252
- var _reading$reason;
253
526
  memo += 'Haftarah: ' + reading.haftara;
254
- if ((_reading$reason = reading.reason) !== null && _reading$reason !== void 0 && _reading$reason.haftara) {
527
+ if (reading.reason?.haftara) {
255
528
  memo += ' | ' + reading.reason.haftara;
256
529
  }
257
530
  }
258
531
  }
259
- if (reading !== null && reading !== void 0 && reading.sephardic) {
532
+ if (reading?.sephardic) {
260
533
  memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
261
534
  }
262
535
  return memo;
@@ -308,8 +581,7 @@ function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
308
581
  u.pathname = '/h/' + path.substring(10);
309
582
  } else if (isSedrot) {
310
583
  u.pathname = '/s/' + path.substring(8);
311
- } else {
312
- // isOmer
584
+ } else { // isOmer
313
585
  u.pathname = '/o/' + path.substring(6);
314
586
  }
315
587
  if (!utmCampaign || !(utmCampaign.startsWith('ical-') || utmCampaign.startsWith('pdf-'))) {
@@ -349,8 +621,8 @@ function shouldRenderBrief(ev) {
349
621
  const mask = ev.getFlags();
350
622
  if (mask & core.flags.HEBREW_DATE) {
351
623
  const hd = ev.getDate();
352
- return hd.getDate() === 1 ? false : true;
353
- } else if (mask & (core.flags.DAF_YOMI | core.flags.YERUSHALMI_YOMI)) {
624
+ return (hd.getDate() === 1) ? false : true;
625
+ } else if (mask & (core.flags.DAILY_LEARNING | core.flags.DAF_YOMI | core.flags.YERUSHALMI_YOMI)) {
354
626
  return true;
355
627
  } else if (mask & core.flags.MINOR_FAST && ev.getDesc().substring(0, 16) === 'Yom Kippur Katan') {
356
628
  return true;
@@ -363,6 +635,7 @@ function shouldRenderBrief(ev) {
363
635
 
364
636
  // eslint-disable-next-line max-len
365
637
  const csvHeader = '"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';
638
+
366
639
  const CATEGORY = {
367
640
  dafyomi: 'Daf Yomi',
368
641
  mishnayomi: 'Mishna Yomi',
@@ -376,7 +649,7 @@ const CATEGORY = {
376
649
  parashat: 'Torah Reading',
377
650
  roshchodesh: 'Jewish Holidays',
378
651
  user: 'Personal',
379
- zmanim: ''
652
+ zmanim: '',
380
653
  };
381
654
 
382
655
  /**
@@ -391,10 +664,12 @@ function eventToCsv(e, options) {
391
664
  const mon = d.getMonth() + 1;
392
665
  const year = String(d.getFullYear()).padStart(4, '0');
393
666
  const date = options.euro ? `"${mday}/${mon}/${year}"` : `"${mon}/${mday}/${year}"`;
667
+
394
668
  let startTime = '';
395
669
  let endTime = '';
396
670
  let endDate = '';
397
671
  let allDay = '"true"';
672
+
398
673
  const timed = Boolean(e.eventTime);
399
674
  let subj = shouldRenderBrief(e) ? e.renderBrief(options.locale) : e.render(options.locale);
400
675
  if (e.eventTime) {
@@ -403,31 +678,36 @@ function eventToCsv(e, options) {
403
678
  endDate = date;
404
679
  allDay = '"false"';
405
680
  }
681
+
406
682
  let loc = 'Jewish Holidays';
407
683
  const mask = e.getFlags();
408
684
  if (timed && typeof options.location === 'object') {
409
685
  const locationName = options.location.getShortName();
410
686
  const comma = locationName.indexOf(',');
411
- loc = comma === -1 ? locationName : locationName.substring(0, comma);
687
+ loc = (comma === -1) ? locationName : locationName.substring(0, comma);
412
688
  } else {
413
689
  const category = CATEGORY[getEventCategories(e)[0]];
414
690
  if (typeof category === 'string') {
415
691
  loc = category;
416
692
  }
417
693
  }
694
+
418
695
  subj = subj.replace(/,/g, '').replace(/"/g, '\'\'');
696
+
419
697
  if (options.appendHebrewToSubject) {
420
698
  const hebrew = e.renderBrief('he');
421
699
  if (hebrew) {
422
700
  subj += ` / ${hebrew}`;
423
701
  }
424
702
  }
703
+
425
704
  let memo0 = e.memo || getHolidayDescription(e, true);
426
705
  if (!memo0 && typeof e.linkedEvent !== 'undefined') {
427
706
  memo0 = e.linkedEvent.render(options.locale);
428
707
  }
429
708
  const memo = memo0.replace(/,/g, ';').replace(/"/g, '\'\'').replace(/\n/g, ' / ');
430
- const showTimeAs = timed || mask & core.flags.CHAG ? 4 : 3;
709
+
710
+ const showTimeAs = (timed || (mask & core.flags.CHAG)) ? 4 : 3;
431
711
  return `"${subj}",${date},${startTime},${endDate},${endTime},${allDay},"${memo}","${showTimeAs}","${loc}"`;
432
712
  }
433
713
 
@@ -437,7 +717,7 @@ function eventToCsv(e, options) {
437
717
  * @return {string}
438
718
  */
439
719
  function eventsToCsv(events, options) {
440
- return [csvHeader].concat(events.map(e => eventToCsv(e, options))).join('\r\n') + '\r\n';
720
+ return [csvHeader].concat(events.map((e) => eventToCsv(e, options))).join('\r\n') + '\r\n';
441
721
  }
442
722
 
443
723
  /**
@@ -456,19 +736,19 @@ function eventIsoDate(ev) {
456
736
  * @param {boolean} [leyning=true]
457
737
  * @return {Object}
458
738
  */
459
- function eventsToClassicApi(events, options, leyning = true) {
739
+ function eventsToClassicApi(events, options, leyning=true) {
460
740
  const result = {
461
741
  title: getCalendarTitle(events, options),
462
- date: new Date().toISOString()
742
+ date: new Date().toISOString(),
463
743
  };
464
744
  result.location = locationToPlainObj(options.location);
465
745
  if (events.length) {
466
746
  result.range = {
467
747
  start: eventIsoDate(events[0]),
468
- end: eventIsoDate(events[events.length - 1])
748
+ end: eventIsoDate(events[events.length - 1]),
469
749
  };
470
750
  }
471
- result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
751
+ result.items = events.map((ev) => eventToClassicApiObject(ev, options, leyning));
472
752
  return result;
473
753
  }
474
754
 
@@ -479,12 +759,14 @@ function eventsToClassicApi(events, options, leyning = true) {
479
759
  * @param {boolean} [leyning=true]
480
760
  * @return {Object}
481
761
  */
482
- function eventToClassicApiObject(ev, options, leyning$1 = true) {
762
+ function eventToClassicApiObject(ev, options, leyning$1=true) {
483
763
  const timed = Boolean(ev.eventTime);
484
764
  const hd = ev.getDate();
485
765
  const dt = hd.greg();
486
766
  const tzid = typeof options.location === 'object' ? options.location.getTzid() : 'UTC';
487
- const date = timed ? core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) : toISOString(dt);
767
+ const date = timed ?
768
+ core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) :
769
+ toISOString(dt);
488
770
  const categories = getEventCategories(ev);
489
771
  const mask = ev.getFlags();
490
772
  let title = shouldRenderBrief(ev) ? ev.renderBrief(options.locale) : ev.render(options.locale);
@@ -496,7 +778,7 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
496
778
  }
497
779
  const result = {
498
780
  title: title,
499
- date: date
781
+ date: date,
500
782
  };
501
783
  if (!timed) {
502
784
  result.hdate = hd.toString();
@@ -505,7 +787,7 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
505
787
  if (categories.length > 1) {
506
788
  result.subcat = categories[1];
507
789
  }
508
- if (categories[0] === 'holiday' && mask & core.flags.CHAG) {
790
+ if (categories[0] === 'holiday' && (mask & core.flags.CHAG)) {
509
791
  result.yomtov = true;
510
792
  }
511
793
  if (title != desc) {
@@ -518,8 +800,10 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
518
800
  if (!candles) {
519
801
  if (leyning$1) {
520
802
  const il = options.il;
521
- const isParsha = mask === core.flags.PARSHA_HASHAVUA;
522
- const reading = isParsha ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
803
+ const isParsha = (mask === core.flags.PARSHA_HASHAVUA);
804
+ const reading = isParsha ?
805
+ leyning.getLeyningForParshaHaShavua(ev, il) :
806
+ leyning.getLeyningForHoliday(ev, il);
523
807
  if (reading) {
524
808
  result.leyning = formatLeyningResult(reading);
525
809
  const hyear = hd.getFullYear();
@@ -536,20 +820,21 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
536
820
  const utmSource = options.utmSource || 'js';
537
821
  const utmMedium = options.utmMedium || 'api';
538
822
  const utmCampaign = options.utmCampaign;
539
- result.link = appendIsraelAndTracking(url, options.il, utmSource, utmMedium, utmCampaign);
823
+ result.link = appendIsraelAndTracking(url, options.il,
824
+ utmSource, utmMedium, utmCampaign);
540
825
  }
541
826
  }
542
827
  if (mask & core.flags.OMER_COUNT) {
543
828
  result.omer = {
544
829
  count: {
545
830
  he: ev.getTodayIs('he'),
546
- en: ev.getTodayIs('en')
831
+ en: ev.getTodayIs('en'),
547
832
  },
548
833
  sefira: {
549
834
  he: ev.sefira('he'),
550
835
  translit: ev.sefira('translit'),
551
- en: ev.sefira('en')
552
- }
836
+ en: ev.sefira('en'),
837
+ },
553
838
  };
554
839
  }
555
840
  if (mask & core.flags.MOLAD) {
@@ -560,18 +845,18 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
560
845
  dow: m.dow,
561
846
  hour: m.hour,
562
847
  minutes: m.minutes,
563
- chalakim: m.chalakim
848
+ chalakim: m.chalakim,
564
849
  };
565
850
  delete result.hebrew;
566
851
  }
567
- if (options.heDateParts && !timed || mask & core.flags.HEBREW_DATE) {
852
+ if ((options.heDateParts && !timed) || (mask & core.flags.HEBREW_DATE)) {
568
853
  const yy = hd.getFullYear();
569
854
  const mm = hd.getMonthName();
570
855
  const dd = hd.getDate();
571
856
  result.heDateParts = {
572
857
  y: core.gematriya(yy),
573
858
  m: core.Locale.gettext(mm, 'he-x-NoNikud'),
574
- d: core.gematriya(dd)
859
+ d: core.gematriya(dd),
575
860
  };
576
861
  }
577
862
  const memo = ev.memo || holidayDescription[ev.basename()];
@@ -664,13 +949,14 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
664
949
  }
665
950
  return [link, guid];
666
951
  }
952
+
667
953
  const localeToLg = {
668
954
  's': 'en',
669
955
  'a': 'en',
670
956
  'he-x-NoNikud': 'he',
671
957
  'h': 'he',
672
958
  'ah': 'en',
673
- 'sh': 'en'
959
+ 'sh': 'en',
674
960
  };
675
961
 
676
962
  /**
@@ -683,7 +969,7 @@ function eventsToRss2(events, options) {
683
969
  weekday: 'long',
684
970
  day: '2-digit',
685
971
  month: 'long',
686
- year: 'numeric'
972
+ year: 'numeric',
687
973
  });
688
974
  const location = options.location;
689
975
  const mainUrl = options.mainUrl;
@@ -694,7 +980,9 @@ function eventsToRss2(events, options) {
694
980
  const description = options.description || title;
695
981
  const utmSource = options.utmSource || 'shabbat1c';
696
982
  const utmMedium = options.utmMedium || 'rss';
697
- const mainUrlEsc = appendIsraelAndTracking(mainUrl, location === null || location === void 0 ? void 0 : location.getIsrael(), utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&');
983
+ const mainUrlEsc = appendIsraelAndTracking(mainUrl,
984
+ location?.getIsrael(),
985
+ utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&');
698
986
  const selfUrlEsc = options.selfUrl.replace(/&/g, '&');
699
987
  const lang = options.lang || localeToLg[options.locale] || options.locale || 'en-US';
700
988
  let str = `<?xml version="1.0" encoding="UTF-8"?>
@@ -759,11 +1047,7 @@ function eventToRssItem2(ev, options) {
759
1047
  if (candles) {
760
1048
  const colon = subj.indexOf(': ');
761
1049
  if (colon != -1) {
762
- const options = {
763
- location,
764
- il,
765
- locale: core.Locale.getLocaleName()
766
- };
1050
+ const options = {location, il, locale: core.Locale.getLocaleName()};
767
1051
  const time = core.HebrewCalendar.reformatTimeStr(ev.eventTimeStr, 'pm', options);
768
1052
  subj = subj.substring(0, colon) + ': ' + time;
769
1053
  }
@@ -773,7 +1057,9 @@ function eventToRssItem2(ev, options) {
773
1057
  const dayFormat = options.dayFormat;
774
1058
  const description0 = memo || dayFormat.format(evDate);
775
1059
  const description = description0.indexOf('<') === -1 ? description0 : `<![CDATA[${description0}]]>`;
776
- const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : '';
1060
+ const geoTags = (cat0 == 'candles') ?
1061
+ `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` :
1062
+ '';
777
1063
  return `<item>
778
1064
  <title>${subj}</title>
779
1065
  <link>${link}</link>
@@ -800,12 +1086,14 @@ function eventToFullCalendar(ev, tzid, il) {
800
1086
  }
801
1087
  const timed = Boolean(ev.eventTime);
802
1088
  const title = shouldRenderBrief(ev) ? ev.renderBrief() : ev.render();
803
- const start = timed ? core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) : toISOString(ev.getDate().greg());
1089
+ const start = timed ?
1090
+ core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) :
1091
+ toISOString(ev.getDate().greg());
804
1092
  const result = {
805
1093
  title,
806
1094
  start,
807
1095
  allDay: !timed,
808
- className: classes.join(' ')
1096
+ className: classes.join(' '),
809
1097
  };
810
1098
  const hebrew = ev.renderBrief('he');
811
1099
  if (hebrew) {