@hebcal/rest-api 6.4.3 → 6.4.5
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/dist/bundle.js +12 -9
- package/dist/bundle.min.js +2 -2
- package/dist/esm/classic-rest-api.d.ts +59 -3
- package/dist/esm/classic-rest-api.js +8 -2
- package/dist/esm/classic-rest-api.js.map +1 -0
- package/dist/esm/common.js +2 -1
- package/dist/esm/common.js.map +1 -0
- package/dist/esm/countryNames.json.js +2 -1
- package/dist/esm/countryNames.json.js.map +1 -0
- package/dist/esm/csv.js +2 -1
- package/dist/esm/csv.js.map +1 -0
- package/dist/esm/fullcalendar.d.ts +10 -1
- package/dist/esm/fullcalendar.js +3 -2
- package/dist/esm/fullcalendar.js.map +1 -0
- package/dist/esm/holiday.js +2 -1
- package/dist/esm/holiday.js.map +1 -0
- package/dist/esm/holidays-he.json.js +2 -1
- package/dist/esm/holidays-he.json.js.map +1 -0
- package/dist/esm/holidays.json.js +2 -1
- package/dist/esm/holidays.json.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/location.js +2 -1
- package/dist/esm/location.js.map +1 -0
- package/dist/esm/makeAnchor.js +2 -1
- package/dist/esm/makeAnchor.js.map +1 -0
- package/dist/esm/memo.js +5 -6
- package/dist/esm/memo.js.map +1 -0
- package/dist/esm/rss.js +3 -2
- package/dist/esm/rss.js.map +1 -0
- package/dist/esm/url.js +2 -1
- package/dist/esm/url.js.map +1 -0
- package/dist/fullcalendar.js +5 -7
- package/dist/fullcalendar.min.js +2 -2
- package/package.json +6 -6
- package/dist/classic-rest-api.d.ts +0 -11
- package/dist/common.d.ts +0 -49
- package/dist/csv.d.ts +0 -7
- package/dist/fullcalendar.d.ts +0 -6
- package/dist/holiday.d.ts +0 -5
- package/dist/index.d.ts +0 -11
- package/dist/location.d.ts +0 -26
- package/dist/makeAnchor.d.ts +0 -7
- package/dist/memo.d.ts +0 -6
- package/dist/rss.d.ts +0 -4
- package/dist/url.d.ts +0 -5
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
var hebcal__rest_api = (function (exports, event, reformatTimeStr, hdate, leyning, getLeyningForHoliday, sedra, zmanim, pkgVersion, locale, common, summary) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -280,7 +280,6 @@ const HOLIDAY_IGNORE_MASK = event.flags.OMER_COUNT |
|
|
|
280
280
|
* Makes mulit-line text that summarizes Torah & Haftarah
|
|
281
281
|
*/
|
|
282
282
|
function makeTorahMemoText(ev, il) {
|
|
283
|
-
var _a;
|
|
284
283
|
const mask = ev.getFlags();
|
|
285
284
|
if (mask & HOLIDAY_IGNORE_MASK ||
|
|
286
285
|
ev.eventTime !== undefined) {
|
|
@@ -299,12 +298,12 @@ function makeTorahMemoText(ev, il) {
|
|
|
299
298
|
}
|
|
300
299
|
if (reading.haftara) {
|
|
301
300
|
memo += 'Haftarah: ' + reading.haftara;
|
|
302
|
-
if (
|
|
301
|
+
if (reading.reason?.haftara) {
|
|
303
302
|
memo += ' | ' + reading.reason.haftara;
|
|
304
303
|
}
|
|
305
304
|
}
|
|
306
305
|
}
|
|
307
|
-
if (reading
|
|
306
|
+
if (reading?.sephardic) {
|
|
308
307
|
memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
|
|
309
308
|
}
|
|
310
309
|
return memo;
|
|
@@ -316,9 +315,8 @@ function makeMemo(ev, il) {
|
|
|
316
315
|
if (memo) {
|
|
317
316
|
return memo;
|
|
318
317
|
}
|
|
319
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
320
318
|
}
|
|
321
|
-
catch
|
|
319
|
+
catch {
|
|
322
320
|
// fallthru
|
|
323
321
|
}
|
|
324
322
|
}
|
|
@@ -503,8 +501,8 @@ function eventsToClassicApiHeader(events, options) {
|
|
|
503
501
|
title: getCalendarTitle(events, options),
|
|
504
502
|
date: new Date().toISOString(),
|
|
505
503
|
version: pkgVersion.version,
|
|
504
|
+
location: locationToPlainObj(options.location),
|
|
506
505
|
};
|
|
507
|
-
result.location = locationToPlainObj(options.location);
|
|
508
506
|
if (events.length) {
|
|
509
507
|
result.range = {
|
|
510
508
|
start: eventIsoDate(events[0]),
|
|
@@ -595,6 +593,9 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
|
|
|
595
593
|
translit: omerEv.sefira('translit'),
|
|
596
594
|
en: omerEv.sefira('en'),
|
|
597
595
|
},
|
|
596
|
+
anaBekoachWord: omerEv.getAnaBekoachWord(),
|
|
597
|
+
lamnatzeachWord: omerEv.getLamnatzeachWord(),
|
|
598
|
+
lamnatzeachLetter: omerEv.getLamnatzeachLetter(),
|
|
598
599
|
};
|
|
599
600
|
}
|
|
600
601
|
if (mask & event.flags.MOLAD) {
|
|
@@ -608,6 +609,8 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
|
|
|
608
609
|
hour: m.getHour(),
|
|
609
610
|
minutes: m.getMinutes(),
|
|
610
611
|
chalakim: m.getChalakim(),
|
|
612
|
+
hdate: m.getMoladDate().toString(),
|
|
613
|
+
instant: m.getInstant().toInstant().toJSON(),
|
|
611
614
|
};
|
|
612
615
|
delete result.hebrew;
|
|
613
616
|
}
|
|
@@ -732,7 +735,7 @@ function eventsToRss2(events, options) {
|
|
|
732
735
|
const description = options.description || title;
|
|
733
736
|
const utmSource = options.utmSource || 'shabbat1c';
|
|
734
737
|
const utmMedium = options.utmMedium || 'rss';
|
|
735
|
-
const mainUrlEsc = appendIsraelAndTracking(options.mainUrl, Boolean(location
|
|
738
|
+
const mainUrlEsc = appendIsraelAndTracking(options.mainUrl, Boolean(location?.getIsrael()), utmSource, utmMedium, options.utmCampaign).replaceAll('&', '&');
|
|
736
739
|
const selfUrlEsc = options.selfUrl.replaceAll('&', '&');
|
|
737
740
|
const lang = options.lang || localeToLg[options.locale] || options.locale || 'en-US';
|
|
738
741
|
let str = `<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -825,7 +828,7 @@ ${geoTags}</item>
|
|
|
825
828
|
* Converts a Hebcal event to a FullCalendar.io object
|
|
826
829
|
*/
|
|
827
830
|
function eventToFullCalendar(ev, tzid, options) {
|
|
828
|
-
const classes = getEventCategories(ev);
|
|
831
|
+
const classes = getEventCategories(ev).slice();
|
|
829
832
|
const mask = ev.getFlags();
|
|
830
833
|
const isChag = Boolean(mask & event.flags.CHAG);
|
|
831
834
|
if (isChag && classes[0] === 'holiday') {
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
2
|
-
var hebcal__rest_api=function(e,a,t,o,n,r,i,h,s,l,d,c){"use strict";function m(e){return e.toLowerCase().replaceAll("'","").replaceAll(/[^\w]/g,"-").replaceAll(/-+/g,"-").replaceAll(/^-/g,"").replaceAll(/-$/g,"")}function u(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function f(e,a){let t="Hebcal";const o=function(e){const a=e.location;if(!a)return null;if(e.preferAsciiName){const e=a.asciiname;if("string"==typeof e)return e}return a.getShortName()}(a);a.yahrzeit?t+=" Yahrzeits and Anniversaries":o?t+=" "+o:a.il?t+=" Israel":t+=" Diaspora";const n=a.subscribe;if("1"===n||1===n||!0===n)return t;if(a.year&&(a.isHebrewYear||0===e.length))t+=" "+a.year;else if(e.length){const a=e[0].greg(),o=e[e.length-1].greg();if(a.getFullYear()!==o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()===o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}const b=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI;function g(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(b|a.flags.SHABBAT_MEVARCHIM))||!!(t&a.flags.MINOR_FAST&&e.getDesc().startsWith("Yom Kippur Katan"))}const y={"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:"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)","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","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It 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 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It 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 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It 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 Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It 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 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It 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 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It 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 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It 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 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It 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 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It 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 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 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 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 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It 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 Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"},S={"Asara B'Tevet":"צום המציין את המצור על ירושלים","Ben-Gurion Day":"יום המציין את חייו וחזונו של ראש הממשלה הראשון של ישראל, דוד בן-גוריון","Birkat Hachamah":"ברכה יהודית נדירה הנאמרת אחת ל-28 שנים כהודיה לאל על בריאת החמה","Chag HaBanot":"חג הבנות של חנוכה (עיד אל-בנאת), שמקורו ביהדות צפון אפריקה ונשתמר בעיקר בתוניסיה",Chanukah:"חנוכה, חג החנוכה מחדש היהודי. ידוע גם כחג האורים; החג נחגג במשך שמונה ימים על ידי הדלקת נרות בחנוכייה","Days of the Omer":"7 שבועות מהלילה השני של פסח ועד ליום לפני שבועות. נקרא גם ספירת העומר; מנהג הכולל ספירה מילולית של כל אחד מארבעים ותשעה הימים בין שני החגים","Erev Yom Kippur":"ערב יום הכיפורים, הכולל את תפילת כל נדרי. צום יום הכיפורים מתחיל עם שקיעת החמה ונמשך 25 שעות","Family Day":"יום המשפחה, יום להוקרת התא המשפחתי","Hebrew Language Day":"יום לקידום השפה העברית בישראל וברחבי העולם. חל ביום הולדתו של אליעזר בן יהודה, מחייה השפה העברית","Herzl Day":"יום המציין את חייו וחזונו של המנהיג הציוני בנימין זאב הרצל","Jabotinsky Day":"יום המציין את חייו וחזונו של המנהיג הציוני זאב ז'בוטינסקי","Lag BaOmer":"היום ה-33 לספירת העומר. החג מהווה הפוגה זמנית ממנהגי האבלות של תקופת ספירת העומר. המנהגים כוללים הדלקת מדורות, תספורות וחתונות","Leil Selichot":"תפילות סליחה כהכנה לימים הנוראים","Pesach Sheni":"פסח שני, חודש לאחר חג הפסח",Pesach:"פסח, חג המצות. מציין את יציאת מצרים ושחרור בני ישראל ממצרים העתיקה","Purim Katan":"חגיגת פורים קטן המצוינת במהלך חודש אדר א' בשנים מעוברות",Purim:"חגיגת ההצלה היהודית כפי שמסופר במגילת אסתר. מציין תקופה שבה העם היהודי שחי בפרס ניצל מהשמדה","Purim Meshulash":"פורים משולש, הנפרש על פני 3 ימים בירושלים ובערים מוקפות חומה. חל כאשר ט״ו באדר נופל בשבת","Rosh Chodesh Nisan":"תחילת חודש ניסן בלוח העברי. ניסן הוא החודש ה-7 בשנה העברית האזרחית (ה-8 בשנים מעוברות) והחודש ה-1 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למרץ או אפריל בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Iyyar":"תחילת חודש אייר בלוח העברי. אייר הוא החודש ה-8 בשנה העברית האזרחית (ה-9 בשנים מעוברות) והחודש ה-2 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאפריל או מאי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sivan":"תחילת חודש סיוון בלוח העברי. סיוון הוא החודש ה-9 בשנה העברית האזרחית (ה-10 בשנים מעוברות) והחודש ה-3 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למאי או יוני בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tamuz":"תחילת חודש תמוז בלוח העברי. תמוז הוא החודש ה-10 בשנה העברית האזרחית (ה-11 בשנים מעוברות) והחודש ה-4 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל ליוני או יולי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Av":"תחילת חודש אב בלוח העברי. אב הוא החודש ה-11 בשנה העברית האזרחית (ה-12 בשנים מעוברות) והחודש ה-5 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל ליולי או אוגוסט בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Elul":"תחילת חודש אלול בלוח העברי. אלול הוא החודש ה-12 בשנה העברית האזרחית (ה-13 בשנים מעוברות) והחודש ה-6 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאוגוסט או ספטמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Cheshvan":"תחילת חודש חשוון בלוח העברי. חשוון הוא החודש ה-2 בשנה העברית האזרחית והחודש ה-8 בשנה העברית המקראית. יש בו 29 או 30 ימים והוא מקביל לאוקטובר או נובמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Kislev":"תחילת חודש כסלו בלוח העברי. כסלו הוא החודש ה-3 בשנה העברית האזרחית והחודש ה-9 בשנה העברית המקראית. יש בו 30 או 29 ימים והוא מקביל לנובמבר או דצמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tevet":"תחילת חודש טבת בלוח העברי. טבת הוא החודש ה-4 בשנה העברית האזרחית והחודש ה-10 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לדצמבר או ינואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sh'vat":"תחילת חודש שבט בלוח העברי. שבט הוא החודש ה-5 בשנה העברית האזרחית והחודש ה-11 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל לינואר או פברואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar":"תחילת חודש אדר בלוח העברי. אדר הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar I":"תחילת חודש אדר א' (בשנים מעוברות) בלוח העברי. אדר א' הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 30 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar II":"תחילת חודש אדר ב' (בשנים מעוברות) בלוח העברי. אדר ב', נקרא לעיתים “אדר שני”, הוא החודש ה-7 בשנה העברית האזרחית והחודש ה-13 בשנה העברית. יש בו 29 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Hashana":"ראש השנה היהודי","Rosh Hashana LaBehemot":"ראש השנה למעשר בהמה","Shabbat Chazon":"שבת חזון (שבת הנבואה). השבת שלפני תשעה באב","Shabbat HaChodesh":"שבת החודש. השבת שלפני ראש חודש ניסן. נקראת כהכנה לפסח","Shabbat HaGadol":"שבת הגדול. השבת שלפני חג הפסח","Shabbat Machar Chodesh":"שבת מחר חודש. כאשר שבת חלה ביום שלפני ראש חודש","Shabbat Mevarchim Chodesh":"שבת מברכים. השבת שקודמת לראש חודש, בה הקהל מברך את החודש החדש שבפתח","Shabbat Nachamu":"שבת נחמו. השבת שלאחר תשעה באב (שבת של נחמה). הראשונה מבין שבע שבתות המובילות לראש השנה. נקראת על שם ההפטרה (ישעיהו מ') הפותחת בפסוק “נַחֲמוּ נַחֲמוּ, עַמִּי”","Shabbat Parah":"שבת פרה (אדומה). השבת שלפני שבת החודש, כהכנה לפסח","Shabbat Rosh Chodesh":"שבת ראש חודש. כאשר שבת חלה בראש חודש","Shabbat Shekalim":"שבת שקלים. השבת שלפני ראש חודש אדר. נקראת כהכנה לפורים","Shabbat Shirah":"שבת שירה. השבת הכוללת את פרשת בשלח (ושירת הים)","Shabbat Shuva":"שבת שובה. השבת שחלה במהלך עשרת ימי תשובה בין ראש השנה ליום כיפור","Shabbat Zachor":"שבת זכור. השבת שלפני פורים",Shavuot:"חג השבועות. מציין את מתן תורה בהר סיני","Shmini Atzeret":"שמיני עצרת. חל מיד לאחר סוכות; בתפוצות נחגג כחג נפרד ובישראל משולב עם שמחת תורה","Shushan Purim":"פורים הנחגג בירושלים ובערים מוקxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxים ובערים מוקפות חומה (בשנה מעוברת)",Sigd:"הסיגד, חג של יהדות אתיופיה החל 50 יום לאחר יום הכיפורים","Simchat Torah":"שמחת תורה. חגיגה המציינת את סיום המחזור השנתי של קריאת התורה בציבור, ותחילתו של מחזור חדש",Sukkot:"חג הסוכות. החג שנמשך שבעה ימים הוא אחד משלושת הרגלים","Ta'anit Bechorot":"תענית בכורות","Ta'anit Esther":"תענית אסתר","Tish'a B'Av":"תשעה באב. צום המציין את חורבן שני בתי המקדש","Tu B'Av":"ט״ו באב, חג האהבה היהודי. מצוין בט״ו בחודש אב העברי","Tu BiShvat":"ראש השנה לאילנות. ט״ו בשבט הוא אחד מארבעת “ראשי השנה” המוזכרים במשנה","Tzom Gedaliah":"צום גדליה (צום החודש השביעי). מציין את רצח המושל היהודי של יהודה","Tzom Tammuz":"צום י״ז בתמוז. צום המציין את הבקעת חומות ירושלים לפני חורבן בית המקדש השני","Yitzhak Rabin Memorial Day":"יום הזיכרון ליצחק רבין. מציין את חייו של ראש ממשלת ישראל יצחק רבין","Yom HaAliyah":"מציין את העלייה למדינת ישראל","Yom HaAliyah School Observance":"יום העלייה כפי שמצוין בבתי הספר בישראל","Yom HaAtzma'ut":"יום העצמאות. מציין את הכרזת העצמאות של ישראל בשנת 1948. למרות שיום העצמאות מצוין בדרך כלל בה' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום החג (או יום הזיכרון שתמיד קודם לו) יתנגש עם השבת","Yom HaShoah":"יום הזיכרון לשואה ולגבורה","Yom HaZikaron":"יום הזיכרון לחללי מערכות ישראל. זוכר את אלו שנפלו במלחמת העצמאות ובמלחמות ישראל האחרות. השם המלא של החג הוא “יום הזיכרון לחללי מערכות ישראל ולנפגעי פעולות האיבה״. למרות שיום הזיכרון מצוין בדרך כלל בד' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום היום (או יום העצמאות שבא תמיד אחריו) יתנגש עם השבת","Yom Kippur":"יום הכיפורים. היום הקדוש ביותר בשנה ביהדות, המצוין באופן מסורתי בצום של 25 שעות ותפילה אינטנסיבית","Yom Kippur Katan":"יום כיפור קטן. יום כפרה החל מדי חודש ביום שלפני כל ראש חודש","Yom Yerushalayim":"יום ירושלים. מציין את איחודה מחדש של ירושלים בשנת 1967"};function p(e,t=!1,o){const n="h"===o||"he"===o||"he-x-NoNikud"===o?S:y,r=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?n["Shabbat Mevarchim Chodesh"]:n[e.getDesc()]||n[e.basename()]||"").normalize();if(t&&r){const e=r.indexOf(".");if(-1!==e)return r.substring(0,e)}return r}const v='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',w={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function H(e,o){const n=e.greg(),r=n.getDate(),i=n.getMonth()+1,h=String(n.getFullYear()).padStart(4,"0"),s=o.euro?`"${r}/${i}/${h}"`:`"${i}/${r}/${h}"`;let l="",d="",c="",m='"true"';const f=e,b=Boolean(f.eventTime);let y=g(e)?e.renderBrief(o.locale):e.render(o.locale);if(b){d=l=`"${t.reformatTimeStr(f.eventTimeStr," PM",o)}"`,c=s,m='"false"'}let S="Jewish Holidays";const v=e.getFlags();if(b&&"object"==typeof o.location){const e=o.location.getShortName();e&&(S=e)}else{const a=u(e);for(const e of a){const a=w[e];if("string"==typeof a){S=a;break}}}if(y=y.replaceAll(",","").replaceAll('"',"''"),o.appendHebrewToSubject){const a=e.renderBrief("he");a&&(y+=` / ${a}`)}let H=e.memo||p(e,!0,o.locale);H||void 0===f.linkedEvent||(H=f.linkedEvent.render(o.locale));const A=H.replaceAll(",",";").replaceAll('"',"''").replaceAll("\n"," / "),C=Boolean(v&a.flags.CHAG);return`"${y}",${s},${l},${c},${d},${m},"${A}","${b||C?4:3}","${S}"`}const A=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|b;function C(e,t){var o;const i=e.getFlags();if(i&A||void 0!==e.eventTime)return"";const h=i&a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);let s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+=`Torah: ${h.summary}`),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,(null===(o=h.reason)||void 0===o?void 0:o.haftara)&&(s+=" | "+h.reason.haftara))),(null==h?void 0:h.sephardic)&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}function T(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=C(e,t);if(a)return a}catch(e){}return e.memo?e.memo:p(e,!1,"en")}const I=new Map;for(let e=0;e<i.parshiot.length;e++){const a=i.parshiot[e];I.set(m(a),e+1)}const R=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],M=new Set;for(const e of R){const a=m(e);M.add(a);const[t]=a.split("-"),o=I.get(t);I.set(a,o)}function B(e){const a=e.pathname,t=a.lastIndexOf("-"),n=a.substring(t+1),r=a.substring(8,t);if(I.get(r)&&8===n.length){const a=function(e){const a=e.substring(0,4),t=e.substring(4,6),o=e.substring(6,8),n=parseInt(a,10),r=parseInt(t,10),i=parseInt(o,10),h=new Date(n,r-1,i);return n<100&&h.setFullYear(n),h}(n);let t="/s/"+new o.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(t+="i",e.searchParams.delete("i"));t+="/"+I.get(r),M.has(r)&&(t+="d"),e.pathname=t}else e.pathname="/s/"+a.substring(8)}function D(e,a,t,o,n){const r=new URL(e),i="www.hebcal.com"===r.host;if(i){a&&r.searchParams.set("i","on");const e=r.pathname,i=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(i||h||s)return r.host="hebcal.com",i?r.pathname="/h/"+e.substring(10):h?B(r):r.pathname="/o/"+e.substring(6),n&&(n.startsWith("ical-")||n.startsWith("pdf-"))||(t&&r.searchParams.set("us",t),o&&r.searchParams.set("um",o)),n&&r.searchParams.set("uc",n),r.toString()}return t||i||(t="hebcal.com"),t&&r.searchParams.set("utm_source",t),o&&r.searchParams.set("utm_medium",o),n&&r.searchParams.set("utm_campaign",n),r.toString()}const k={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},P=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"];function N(e){if("object"==typeof e&&null!==e&&"function"==typeof e.getLatitude){const a=e.getCountryCode(),t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:a,country:k[a]};for(const a of P){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function x(e){return o.isoDateString(e.greg())}function Y(e,a){const t={title:f(e,a),date:(new Date).toISOString(),version:s.version};return t.location=N(a.location),e.length&&(t.range={start:x(e[0]),end:x(e[e.length-1])}),t}function E(e,i,s=!0){const m=e,f=m.eventTime,b=Boolean(f),y=e.getDate(),S=y.greg(),v="object"==typeof i.location?i.location.getTzid():"UTC",w=b?h.Zmanim.formatISOWithTimeZone(v,f):o.isoDateString(S),H=u(e),A=e.getFlags();let C=g(e)?e.renderBrief(i.locale):e.render(i.locale);const T=e.getDesc(),I="Havdalah"===T||"Candle lighting"===T;if(I){C+=": "+t.reformatTimeStr(m.eventTimeStr,"pm",i)}const R={title:C,date:w};b||(R.hdate=y.toString()),R.category=H[0],H.length>1&&(R.subcat=H[1]),"holiday"===H[0]&&A&a.flags.CHAG&&(R.yomtov=!0),C!==T&&(R.title_orig=T);const M=e.renderBrief("he-x-NoNikud");if(M&&(R.hebrew=M),!I){if(s){const t=i.il,o=A===a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);o&&(R.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.chabad&&(a.haftarah_chabad=c.makeSummaryFromParts(e.chabad));e.fullkriyah&&function(e,a){for(const[t,o]of Object.entries(a))if(o){e["M"===t?"maftir":t]=d.formatAliyahWithBook(o)}}(a,e.fullkriyah);e.reason&&function(e,a){for(const t of["7","8","M"])if(a[t]){e["M"===t?"maftir":t]+=" | "+a[t]}a.haftara&&(e.haftarah+=" | "+a.haftara);a.sephardic&&(e.haftarah_sephardic+=" | "+a.sephardic);a.chabad&&(e.haftarah_chabad+=" | "+a.chabad)}(a,e.reason);return a}(o))}const t=e.url();if(t){let e=i.utmSource;if(!e){"www.hebcal.com"===new URL(t).host&&(e="js")}const a=i.utmMedium||"api",o=i.utmCampaign;R.link=D(t,Boolean(i.il),e,a,o)}}if(A&a.flags.OMER_COUNT){const a=e;R.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")}}}if(A&a.flags.MOLAD){const a=e.molad,t=a.getYear();R.molad={hy:t,hm:o.HDate.getMonthName(a.getMonth(),t),dow:a.getDow(),hour:a.getHour(),minutes:a.getMinutes(),chalakim:a.getChalakim()},delete R.hebrew}if(i.heDateParts&&!b||A&a.flags.HEBREW_DATE){const e=y.getFullYear(),a=y.getMonthName(),t=y.getDate();R.heDateParts={y:o.gematriya(e),m:l.Locale.gettext(a,"he-x-NoNikud"),d:o.gematriya(t)}}const B=e.memo||p(e,!1,i.locale);return"string"==typeof B&&0!==B.length?R.memo=B.normalize():m.linkedEvent&&(R.memo=m.linkedEvent.render(i.locale)),i.includeEvent&&(R.ev=e),R}const F={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function G(e,a){let o=e.render(a.locale);const n=e.greg(),r=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,a.evPubDate,n,a.lastBuildDate),i=a.location,s=!!i&&i.getIsrael(),l=i?i.getTzid():"UTC";let d=a.utmSource;if(!d){const a=e.url();if(a){"www.hebcal.com"===new URL(a).host&&(d="shabbat1c")}else d="shabbat1c"}const c=a.utmMedium||"rss",f=function(e,a,t,o,n,r){let i,s;const l=e.eventTime||e.greg(),d=h.Zmanim.formatISOWithTimeZone(t,l),c=d.substring(0,d.indexOf("T")),u=`${c.replaceAll("-","")}-${m(e.getDesc())}`,f=e.url();if(f)i=D(f,a,n,r).replaceAll("&","&"),s=`${f}#${u}`;else{const e=`${o}&dt=${c}`,t=D(e,a,n,r).replaceAll("&","&");s=e.replaceAll("&","&")+`#${u}`,i=`${t}#${u}`}return[i,s]}(e,s,l,a.mainUrl||"",d,c),b=f[0],g=f[1],y=u(e)[0],S=e.getDesc();let p;if("Havdalah"===S||"Candle lighting"===S){const n=o.indexOf(": ");if(-1!==n){const r={location:i,il:s,locale:a.locale||"en"},h=t.reformatTimeStr(e.eventTimeStr,"pm",r);o=o.substring(0,n)+": "+h}}else p=T(e,s);const v=a.dayFormat,w=p||v.format(n);return`<item>\n<title>${o}</title>\n<link>${b}</link>\n<guid isPermaLink="false">${g}</guid>\n<description>${-1===w.indexOf("<")?w:`<![CDATA[${w}]]>`}</description>\n<category>${y}</category>\n<pubDate>${r}</pubDate>\n${"candles"===y?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return Object.defineProperty(e,"pad2",{enumerable:!0,get:function(){return o.pad2}}),Object.defineProperty(e,"pad4",{enumerable:!0,get:function(){return o.pad4}}),e.LEARNING_MASK=b,e.appendIsraelAndTracking=D,e.countryNames=k,e.eventToClassicApiObject=E,e.eventToCsv=H,e.eventToFullCalendar=function(e,t,n){const r=u(e),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===r[0]&&r.push("yomtov"),i&b&&r.push("learning");const s=e,l=s.eventTime,d=Boolean(l),c={title:g(e)?e.renderBrief(n.locale):e.render(n.locale),start:d?h.Zmanim.formatISOWithTimeZone(t,l):o.isoDateString(e.greg()),allDay:!d,className:r.join(" ")},m=e.renderBrief("he-x-NoNikud");m&&(c.hebrew=m);const f=e.url(),y=Boolean(n.il);if(f){const e="www.hebcal.com"===new URL(f).host?"js":void 0;c.url=D(f,y,e,"fc")}const S=e.getDesc();if(!("Havdalah"===S||"Candle lighting"===S)){const a=T(e,y);a?c.description=a:void 0!==s.linkedEvent&&(c.description=s.linkedEvent.render(n.locale))}return c},e.eventToRssItem2=G,e.eventsToClassicApi=function(e,a,t=!0){const o=Y(e,a);return o.items=e.map(e=>E(e,a,t)),o},e.eventsToClassicApiHeader=Y,e.eventsToCsv=function(e,a){return[v].concat(e.map(e=>H(e,a))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location;if(!a.mainUrl||!a.selfUrl)throw new TypeError("mainUrl cannot be empty or blank");const o=a.buildDate=a.buildDate||new Date,n=o.getFullYear(),r=a.lastBuildDate=o.toUTCString(),i=a.title||f(e,a),h=a.description||i,s=a.utmSource||"shabbat1c",l=a.utmMedium||"rss";let d=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${i}</title>\n<link>${D(a.mainUrl,Boolean(null==t?void 0:t.getIsrael()),s,l,a.utmCampaign).replaceAll("&","&")}</link>\n<atom:link href="${a.selfUrl.replaceAll("&","&")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||F[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${n} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${r}</lastBuildDate>\n`;for(const t of e)d+=G(t,a);return d+="</channel>\n</rss>\n",d},e.getCalendarTitle=f,e.getDownloadFilename=function(e){let a="hebcal";if(e.year)a+="_"+e.year,e.isHebrewYear&&(a+="h"),e.month&&(a+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const t=new o.HDate(e.start),n=new o.HDate(e.end),r=t.greg().getFullYear(),i=n.greg().getFullYear();a+=r===i?"_"+r:"_"+r+"_"+i}if("object"==typeof e.location){const t=e.location,o=t.zip||t.asciiname||t.getShortName()||"";o&&(a+="_"+m(o).replaceAll(/[-]/g,"_"))}return a},e.getEventCategories=u,e.getHolidayDescription=p,e.locationToPlainObj=N,e.makeAnchor=m,e.makeTorahMemoText=C,e.renderTitleWithoutTime=function(e,a){return void 0===e.eventTime?e.render(a):e.renderBrief(a)},e.shouldRenderBrief=g,e.toISOString=function(e){return o.isoDateString(e)},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning);
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
|
+
var hebcal__rest_api=function(e,a,t,o,n,r,i,h,s,l,d,c){"use strict";function m(e){return e.toLowerCase().replaceAll("'","").replaceAll(/[^\w]/g,"-").replaceAll(/-+/g,"-").replaceAll(/^-/g,"").replaceAll(/-$/g,"")}function u(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function f(e,a){let t="Hebcal";const o=function(e){const a=e.location;if(!a)return null;if(e.preferAsciiName){const e=a.asciiname;if("string"==typeof e)return e}return a.getShortName()}(a);a.yahrzeit?t+=" Yahrzeits and Anniversaries":o?t+=" "+o:a.il?t+=" Israel":t+=" Diaspora";const n=a.subscribe;if("1"===n||1===n||!0===n)return t;if(a.year&&(a.isHebrewYear||0===e.length))t+=" "+a.year;else if(e.length){const a=e[0].greg(),o=e[e.length-1].greg();if(a.getFullYear()!==o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()===o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}const b=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI;function g(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(b|a.flags.SHABBAT_MEVARCHIM))||!!(t&a.flags.MINOR_FAST&&e.getDesc().startsWith("Yom Kippur Katan"))}const y={"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:"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)","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","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It 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 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It 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 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It 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 Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It 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 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It 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 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It 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 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It 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 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It 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 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It 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 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 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 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 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It 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 Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"},S={"Asara B'Tevet":"צום המציין את המצור על ירושלים","Ben-Gurion Day":"יום המציין את חייו וחזונו של ראש הממשלה הראשון של ישראל, דוד בן-גוריון","Birkat Hachamah":"ברכה יהודית נדירה הנאמרת אחת ל-28 שנים כהודיה לאל על בריאת החמה","Chag HaBanot":"חג הבנות של חנוכה (עיד אל-בנאת), שמקורו ביהדות צפון אפריקה ונשתמר בעיקר בתוניסיה",Chanukah:"חנוכה, חג החנוכה מחדש היהודי. ידוע גם כחג האורים; החג נחגג במשך שמונה ימים על ידי הדלקת נרות בחנוכייה","Days of the Omer":"7 שבועות מהלילה השני של פסח ועד ליום לפני שבועות. נקרא גם ספירת העומר; מנהג הכולל ספירה מילולית של כל אחד מארבעים ותשעה הימים בין שני החגים","Erev Yom Kippur":"ערב יום הכיפורים, הכולל את תפילת כל נדרי. צום יום הכיפורים מתחיל עם שקיעת החמה ונמשך 25 שעות","Family Day":"יום המשפחה, יום להוקרת התא המשפחתי","Hebrew Language Day":"יום לקידום השפה העברית בישראל וברחבי העולם. חל ביום הולדתו של אליעזר בן יהודה, מחייה השפה העברית","Herzl Day":"יום המציין את חייו וחזונו של המנהיג הציוני בנימין זאב הרצל","Jabotinsky Day":"יום המציין את חייו וחזונו של המנהיג הציוני זאב ז'בוטינסקי","Lag BaOmer":"היום ה-33 לספירת העומר. החג מהווה הפוגה זמנית ממנהגי האבלות של תקופת ספירת העומר. המנהגים כוללים הדלקת מדורות, תספורות וחתונות","Leil Selichot":"תפילות סליחה כהכנה לימים הנוראים","Pesach Sheni":"פסח שני, חודש לאחר חג הפסח",Pesach:"פסח, חג המצות. מציין את יציאת מצרים ושחרור בני ישראל ממצרים העתיקה","Purim Katan":"חגיגת פורים קטן המצוינת במהלך חודש אדר א' בשנים מעוברות",Purim:"חגיגת ההצלה היהודית כפי שמסופר במגילת אסתר. מציין תקופה שבה העם היהודי שחי בפרס ניצל מהשמדה","Purim Meshulash":"פורים משולש, הנפרש על פני 3 ימים בירושלים ובערים מוקפות חומה. חל כאשר ט״ו באדר נופל בשבת","Rosh Chodesh Nisan":"תחילת חודש ניסן בלוח העברי. ניסן הוא החודש ה-7 בשנה העברית האזרחית (ה-8 בשנים מעוברות) והחודש ה-1 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למרץ או אפריל בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Iyyar":"תחילת חודש אייר בלוח העברי. אייר הוא החודש ה-8 בשנה העברית האזרחית (ה-9 בשנים מעוברות) והחודש ה-2 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאפריל או מאי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sivan":"תחילת חודש סיוון בלוח העברי. סיוון הוא החודש ה-9 בשנה העברית האזרחית (ה-10 בשנים מעוברות) והחודש ה-3 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למאי או יוני בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tamuz":"תחילת חודש תמוז בלוח העברי. תמוז הוא החודש ה-10 בשנה העברית האזרחית (ה-11 בשנים מעוברות) והחודש ה-4 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל ליוני או יולי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Av":"תחילת חודש אב בלוח העברי. אב הוא החודש ה-11 בשנה העברית האזרחית (ה-12 בשנים מעוברות) והחודש ה-5 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל ליולי או אוגוסט בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Elul":"תחילת חודש אלול בלוח העברי. אלול הוא החודש ה-12 בשנה העברית האזרחית (ה-13 בשנים מעוברות) והחודש ה-6 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאוגוסט או ספטמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Cheshvan":"תחילת חודש חשוון בלוח העברי. חשוון הוא החודש ה-2 בשנה העברית האזרחית והחודש ה-8 בשנה העברית המקראית. יש בו 29 או 30 ימים והוא מקביל לאוקטובר או נובמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Kislev":"תחילת חודש כסלו בלוח העברי. כסלו הוא החודש ה-3 בשנה העברית האזרחית והחודש ה-9 בשנה העברית המקראית. יש בו 30 או 29 ימים והוא מקביל לנובמבר או דצמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tevet":"תחילת חודש טבת בלוח העברי. טבת הוא החודש ה-4 בשנה העברית האזרחית והחודש ה-10 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לדצמבר או ינואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sh'vat":"תחילת חודש שבט בלוח העברי. שבט הוא החודש ה-5 בשנה העברית האזרחית והחודש ה-11 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל לינואר או פברואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar":"תחילת חודש אדר בלוח העברי. אדר הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar I":"תחילת חודש אדר א' (בשנים מעוברות) בלוח העברי. אדר א' הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 30 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar II":"תחילת חודש אדר ב' (בשנים מעוברות) בלוח העברי. אדר ב', נקרא לעיתים “אדר שני”, הוא החודש ה-7 בשנה העברית האזרחית והחודש ה-13 בשנה העברית. יש בו 29 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Hashana":"ראש השנה היהודי","Rosh Hashana LaBehemot":"ראש השנה למעשר בהמה","Shabbat Chazon":"שבת חזון (שבת הנבואה). השבת שלפני תשעה באב","Shabbat HaChodesh":"שבת החודש. השבת שלפני ראש חודש ניסן. נקראת כהכנה לפסח","Shabbat HaGadol":"שבת הגדול. השבת שלפני חג הפסח","Shabbat Machar Chodesh":"שבת מחר חודש. כאשר שבת חלה ביום שלפני ראש חודש","Shabbat Mevarchim Chodesh":"שבת מברכים. השבת שקודמת לראש חודש, בה הקהל מברך את החודש החדש שבפתח","Shabbat Nachamu":"שבת נחמו. השבת שלאחר תשעה באב (שבת של נחמה). הראשונה מבין שבע שבתות המובילות לראש השנה. נקראת על שם ההפטרה (ישעיהו מ') הפותחת בפסוק “נַחֲמוּ נַחֲמוּ, עַמִּי”","Shabbat Parah":"שבת פרה (אדומה). השבת שלפני שבת החודש, כהכנה לפסח","Shabbat Rosh Chodesh":"שבת ראש חודש. כאשר שבת חלה בראש חודש","Shabbat Shekalim":"שבת שקלים. השבת שלפני ראש חודש אדר. נקראת כהכנה לפורים","Shabbat Shirah":"שבת שירה. השבת הכוללת את פרשת בשלח (ושירת הים)","Shabbat Shuva":"שבת שובה. השבת שחלה במהלך עשרת ימי תשובה בין ראש השנה ליום כיפור","Shabbat Zachor":"שבת זכור. השבת שלפני פורים",Shavuot:"חג השבועות. מציין את מתן תורה בהר סיני","Shmini Atzeret":"שמיני עצרת. חל מיד לאחר סוכות; בתפוצות נחגג כחג נפרד ובישראל משולב עם שמחת תורה","Shushan Purim":"פורים הנחגג בירושלים ובערים מוקxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxים ובערים מוקפות חומה (בשנה מעוברת)",Sigd:"הסיגד, חג של יהדות אתיופיה החל 50 יום לאחר יום הכיפורים","Simchat Torah":"שמחת תורה. חגיגה המציינת את סיום המחזור השנתי של קריאת התורה בציבור, ותחילתו של מחזור חדש",Sukkot:"חג הסוכות. החג שנמשך שבעה ימים הוא אחד משלושת הרגלים","Ta'anit Bechorot":"תענית בכורות","Ta'anit Esther":"תענית אסתר","Tish'a B'Av":"תשעה באב. צום המציין את חורבן שני בתי המקדש","Tu B'Av":"ט״ו באב, חג האהבה היהודי. מצוין בט״ו בחודש אב העברי","Tu BiShvat":"ראש השנה לאילנות. ט״ו בשבט הוא אחד מארבעת “ראשי השנה” המוזכרים במשנה","Tzom Gedaliah":"צום גדליה (צום החודש השביעי). מציין את רצח המושל היהודי של יהודה","Tzom Tammuz":"צום י״ז בתמוז. צום המציין את הבקעת חומות ירושלים לפני חורבן בית המקדש השני","Yitzhak Rabin Memorial Day":"יום הזיכרון ליצחק רבין. מציין את חייו של ראש ממשלת ישראל יצחק רבין","Yom HaAliyah":"מציין את העלייה למדינת ישראל","Yom HaAliyah School Observance":"יום העלייה כפי שמצוין בבתי הספר בישראל","Yom HaAtzma'ut":"יום העצמאות. מציין את הכרזת העצמאות של ישראל בשנת 1948. למרות שיום העצמאות מצוין בדרך כלל בה' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום החג (או יום הזיכרון שתמיד קודם לו) יתנגש עם השבת","Yom HaShoah":"יום הזיכרון לשואה ולגבורה","Yom HaZikaron":"יום הזיכרון לחללי מערכות ישראל. זוכר את אלו שנפלו במלחמת העצמאות ובמלחמות ישראל האחרות. השם המלא של החג הוא “יום הזיכרון לחללי מערכות ישראל ולנפגעי פעולות האיבה״. למרות שיום הזיכרון מצוין בדרך כלל בד' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום היום (או יום העצמאות שבא תמיד אחריו) יתנגש עם השבת","Yom Kippur":"יום הכיפורים. היום הקדוש ביותר בשנה ביהדות, המצוין באופן מסורתי בצום של 25 שעות ותפילה אינטנסיבית","Yom Kippur Katan":"יום כיפור קטן. יום כפרה החל מדי חודש ביום שלפני כל ראש חודש","Yom Yerushalayim":"יום ירושלים. מציין את איחודה מחדש של ירושלים בשנת 1967"};function p(e,t=!1,o){const n="h"===o||"he"===o||"he-x-NoNikud"===o?S:y,r=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?n["Shabbat Mevarchim Chodesh"]:n[e.getDesc()]||n[e.basename()]||"").normalize();if(t&&r){const e=r.indexOf(".");if(-1!==e)return r.substring(0,e)}return r}const v='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',w={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function H(e,o){const n=e.greg(),r=n.getDate(),i=n.getMonth()+1,h=String(n.getFullYear()).padStart(4,"0"),s=o.euro?`"${r}/${i}/${h}"`:`"${i}/${r}/${h}"`;let l="",d="",c="",m='"true"';const f=e,b=Boolean(f.eventTime);let y=g(e)?e.renderBrief(o.locale):e.render(o.locale);if(b){d=l=`"${t.reformatTimeStr(f.eventTimeStr," PM",o)}"`,c=s,m='"false"'}let S="Jewish Holidays";const v=e.getFlags();if(b&&"object"==typeof o.location){const e=o.location.getShortName();e&&(S=e)}else{const a=u(e);for(const e of a){const a=w[e];if("string"==typeof a){S=a;break}}}if(y=y.replaceAll(",","").replaceAll('"',"''"),o.appendHebrewToSubject){const a=e.renderBrief("he");a&&(y+=` / ${a}`)}let H=e.memo||p(e,!0,o.locale);H||void 0===f.linkedEvent||(H=f.linkedEvent.render(o.locale));const A=H.replaceAll(",",";").replaceAll('"',"''").replaceAll("\n"," / "),C=Boolean(v&a.flags.CHAG);return`"${y}",${s},${l},${c},${d},${m},"${A}","${b||C?4:3}","${S}"`}const A=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|b;function C(e,t){const o=e.getFlags();if(o&A||void 0!==e.eventTime)return"";const i=o&a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);let h="";return i&&(i.summary||i.haftara)&&(i.summary&&(h+=`Torah: ${i.summary}`),i.summary&&i.haftara&&(h+="\n"),i.haftara&&(h+="Haftarah: "+i.haftara,i.reason?.haftara&&(h+=" | "+i.reason.haftara))),i?.sephardic&&(h+="\nHaftarah for Sephardim: "+i.sephardic),h}function T(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=C(e,t);if(a)return a}catch{}return e.memo?e.memo:p(e,!1,"en")}const I=new Map;for(let e=0;e<i.parshiot.length;e++){const a=i.parshiot[e];I.set(m(a),e+1)}const R=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],M=new Set;for(const e of R){const a=m(e);M.add(a);const[t]=a.split("-"),o=I.get(t);I.set(a,o)}function B(e){const a=e.pathname,t=a.lastIndexOf("-"),n=a.substring(t+1),r=a.substring(8,t);if(I.get(r)&&8===n.length){const a=function(e){const a=e.substring(0,4),t=e.substring(4,6),o=e.substring(6,8),n=parseInt(a,10),r=parseInt(t,10),i=parseInt(o,10),h=new Date(n,r-1,i);return n<100&&h.setFullYear(n),h}(n);let t="/s/"+new o.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(t+="i",e.searchParams.delete("i"));t+="/"+I.get(r),M.has(r)&&(t+="d"),e.pathname=t}else e.pathname="/s/"+a.substring(8)}function D(e,a,t,o,n){const r=new URL(e),i="www.hebcal.com"===r.host;if(i){a&&r.searchParams.set("i","on");const e=r.pathname,i=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(i||h||s)return r.host="hebcal.com",i?r.pathname="/h/"+e.substring(10):h?B(r):r.pathname="/o/"+e.substring(6),n&&(n.startsWith("ical-")||n.startsWith("pdf-"))||(t&&r.searchParams.set("us",t),o&&r.searchParams.set("um",o)),n&&r.searchParams.set("uc",n),r.toString()}return t||i||(t="hebcal.com"),t&&r.searchParams.set("utm_source",t),o&&r.searchParams.set("utm_medium",o),n&&r.searchParams.set("utm_campaign",n),r.toString()}const k={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},P=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"];function N(e){if("object"==typeof e&&null!==e&&"function"==typeof e.getLatitude){const a=e.getCountryCode(),t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:a,country:k[a]};for(const a of P){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function x(e){return o.isoDateString(e.greg())}function Y(e,a){const t={title:f(e,a),date:(new Date).toISOString(),version:s.version,location:N(a.location)};return e.length&&(t.range={start:x(e[0]),end:x(e[e.length-1])}),t}function E(e,i,s=!0){const m=e,f=m.eventTime,b=Boolean(f),y=e.getDate(),S=y.greg(),v="object"==typeof i.location?i.location.getTzid():"UTC",w=b?h.Zmanim.formatISOWithTimeZone(v,f):o.isoDateString(S),H=u(e),A=e.getFlags();let C=g(e)?e.renderBrief(i.locale):e.render(i.locale);const T=e.getDesc(),I="Havdalah"===T||"Candle lighting"===T;if(I){C+=": "+t.reformatTimeStr(m.eventTimeStr,"pm",i)}const R={title:C,date:w};b||(R.hdate=y.toString()),R.category=H[0],H.length>1&&(R.subcat=H[1]),"holiday"===H[0]&&A&a.flags.CHAG&&(R.yomtov=!0),C!==T&&(R.title_orig=T);const M=e.renderBrief("he-x-NoNikud");if(M&&(R.hebrew=M),!I){if(s){const t=i.il,o=A===a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);o&&(R.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.chabad&&(a.haftarah_chabad=c.makeSummaryFromParts(e.chabad));e.fullkriyah&&function(e,a){for(const[t,o]of Object.entries(a))if(o){e["M"===t?"maftir":t]=d.formatAliyahWithBook(o)}}(a,e.fullkriyah);e.reason&&function(e,a){for(const t of["7","8","M"])if(a[t]){e["M"===t?"maftir":t]+=" | "+a[t]}a.haftara&&(e.haftarah+=" | "+a.haftara);a.sephardic&&(e.haftarah_sephardic+=" | "+a.sephardic);a.chabad&&(e.haftarah_chabad+=" | "+a.chabad)}(a,e.reason);return a}(o))}const t=e.url();if(t){let e=i.utmSource;if(!e){"www.hebcal.com"===new URL(t).host&&(e="js")}const a=i.utmMedium||"api",o=i.utmCampaign;R.link=D(t,Boolean(i.il),e,a,o)}}if(A&a.flags.OMER_COUNT){const a=e;R.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")},anaBekoachWord:a.getAnaBekoachWord(),lamnatzeachWord:a.getLamnatzeachWord(),lamnatzeachLetter:a.getLamnatzeachLetter()}}if(A&a.flags.MOLAD){const a=e.molad,t=a.getYear();R.molad={hy:t,hm:o.HDate.getMonthName(a.getMonth(),t),dow:a.getDow(),hour:a.getHour(),minutes:a.getMinutes(),chalakim:a.getChalakim(),hdate:a.getMoladDate().toString(),instant:a.getInstant().toInstant().toJSON()},delete R.hebrew}if(i.heDateParts&&!b||A&a.flags.HEBREW_DATE){const e=y.getFullYear(),a=y.getMonthName(),t=y.getDate();R.heDateParts={y:o.gematriya(e),m:l.Locale.gettext(a,"he-x-NoNikud"),d:o.gematriya(t)}}const B=e.memo||p(e,!1,i.locale);return"string"==typeof B&&0!==B.length?R.memo=B.normalize():m.linkedEvent&&(R.memo=m.linkedEvent.render(i.locale)),i.includeEvent&&(R.ev=e),R}const F={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function G(e,a){let o=e.render(a.locale);const n=e.greg(),r=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,a.evPubDate,n,a.lastBuildDate),i=a.location,s=!!i&&i.getIsrael(),l=i?i.getTzid():"UTC";let d=a.utmSource;if(!d){const a=e.url();if(a){"www.hebcal.com"===new URL(a).host&&(d="shabbat1c")}else d="shabbat1c"}const c=a.utmMedium||"rss",f=function(e,a,t,o,n,r){let i,s;const l=e.eventTime||e.greg(),d=h.Zmanim.formatISOWithTimeZone(t,l),c=d.substring(0,d.indexOf("T")),u=`${c.replaceAll("-","")}-${m(e.getDesc())}`,f=e.url();if(f)i=D(f,a,n,r).replaceAll("&","&"),s=`${f}#${u}`;else{const e=`${o}&dt=${c}`,t=D(e,a,n,r).replaceAll("&","&");s=e.replaceAll("&","&")+`#${u}`,i=`${t}#${u}`}return[i,s]}(e,s,l,a.mainUrl||"",d,c),b=f[0],g=f[1],y=u(e)[0],S=e.getDesc();let p;if("Havdalah"===S||"Candle lighting"===S){const n=o.indexOf(": ");if(-1!==n){const r={location:i,il:s,locale:a.locale||"en"},h=t.reformatTimeStr(e.eventTimeStr,"pm",r);o=o.substring(0,n)+": "+h}}else p=T(e,s);const v=a.dayFormat,w=p||v.format(n);return`<item>\n<title>${o}</title>\n<link>${b}</link>\n<guid isPermaLink="false">${g}</guid>\n<description>${-1===w.indexOf("<")?w:`<![CDATA[${w}]]>`}</description>\n<category>${y}</category>\n<pubDate>${r}</pubDate>\n${"candles"===y?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return Object.defineProperty(e,"pad2",{enumerable:!0,get:function(){return o.pad2}}),Object.defineProperty(e,"pad4",{enumerable:!0,get:function(){return o.pad4}}),e.LEARNING_MASK=b,e.appendIsraelAndTracking=D,e.countryNames=k,e.eventToClassicApiObject=E,e.eventToCsv=H,e.eventToFullCalendar=function(e,t,n){const r=u(e).slice(),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===r[0]&&r.push("yomtov"),i&b&&r.push("learning");const s=e,l=s.eventTime,d=Boolean(l),c={title:g(e)?e.renderBrief(n.locale):e.render(n.locale),start:d?h.Zmanim.formatISOWithTimeZone(t,l):o.isoDateString(e.greg()),allDay:!d,className:r.join(" ")},m=e.renderBrief("he-x-NoNikud");m&&(c.hebrew=m);const f=e.url(),y=Boolean(n.il);if(f){const e="www.hebcal.com"===new URL(f).host?"js":void 0;c.url=D(f,y,e,"fc")}const S=e.getDesc();if(!("Havdalah"===S||"Candle lighting"===S)){const a=T(e,y);a?c.description=a:void 0!==s.linkedEvent&&(c.description=s.linkedEvent.render(n.locale))}return c},e.eventToRssItem2=G,e.eventsToClassicApi=function(e,a,t=!0){const o=Y(e,a);return o.items=e.map(e=>E(e,a,t)),o},e.eventsToClassicApiHeader=Y,e.eventsToCsv=function(e,a){return[v].concat(e.map(e=>H(e,a))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location;if(!a.mainUrl||!a.selfUrl)throw new TypeError("mainUrl cannot be empty or blank");const o=a.buildDate=a.buildDate||new Date,n=o.getFullYear(),r=a.lastBuildDate=o.toUTCString(),i=a.title||f(e,a),h=a.description||i,s=a.utmSource||"shabbat1c",l=a.utmMedium||"rss";let d=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${i}</title>\n<link>${D(a.mainUrl,Boolean(t?.getIsrael()),s,l,a.utmCampaign).replaceAll("&","&")}</link>\n<atom:link href="${a.selfUrl.replaceAll("&","&")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||F[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${n} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${r}</lastBuildDate>\n`;for(const t of e)d+=G(t,a);return d+="</channel>\n</rss>\n",d},e.getCalendarTitle=f,e.getDownloadFilename=function(e){let a="hebcal";if(e.year)a+="_"+e.year,e.isHebrewYear&&(a+="h"),e.month&&(a+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const t=new o.HDate(e.start),n=new o.HDate(e.end),r=t.greg().getFullYear(),i=n.greg().getFullYear();a+=r===i?"_"+r:"_"+r+"_"+i}if("object"==typeof e.location){const t=e.location,o=t.zip||t.asciiname||t.getShortName()||"";o&&(a+="_"+m(o).replaceAll(/[-]/g,"_"))}return a},e.getEventCategories=u,e.getHolidayDescription=p,e.locationToPlainObj=N,e.makeAnchor=m,e.makeTorahMemoText=C,e.renderTitleWithoutTime=function(e,a){return void 0===e.eventTime?e.render(a):e.renderBrief(a)},e.shouldRenderBrief=g,e.toISOString=function(e){return o.isoDateString(e)},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning);
|
|
@@ -1,11 +1,67 @@
|
|
|
1
1
|
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
+
import { StringMap } from '@hebcal/leyning/dist/esm/types';
|
|
2
3
|
import { RestApiOptions } from './common';
|
|
4
|
+
import type { LocationPlainObj } from './location';
|
|
5
|
+
export type ClassicApiItem = {
|
|
6
|
+
title: string;
|
|
7
|
+
date: string;
|
|
8
|
+
hdate?: string;
|
|
9
|
+
category: string;
|
|
10
|
+
subcat?: string;
|
|
11
|
+
yomtov?: boolean;
|
|
12
|
+
title_orig?: string;
|
|
13
|
+
hebrew?: string;
|
|
14
|
+
leyning?: StringMap;
|
|
15
|
+
link?: string;
|
|
16
|
+
omer?: {
|
|
17
|
+
count: {
|
|
18
|
+
he: string;
|
|
19
|
+
en: string;
|
|
20
|
+
};
|
|
21
|
+
sefira: {
|
|
22
|
+
he: string;
|
|
23
|
+
translit: string;
|
|
24
|
+
en: string;
|
|
25
|
+
};
|
|
26
|
+
anaBekoachWord: string;
|
|
27
|
+
lamnatzeachWord: string;
|
|
28
|
+
lamnatzeachLetter: string;
|
|
29
|
+
};
|
|
30
|
+
molad?: {
|
|
31
|
+
hy: number;
|
|
32
|
+
hm: string;
|
|
33
|
+
dow: number;
|
|
34
|
+
hour: number;
|
|
35
|
+
minutes: number;
|
|
36
|
+
chalakim: number;
|
|
37
|
+
hdate: string;
|
|
38
|
+
instant: string;
|
|
39
|
+
};
|
|
40
|
+
heDateParts?: {
|
|
41
|
+
y: string;
|
|
42
|
+
m: string;
|
|
43
|
+
d: string;
|
|
44
|
+
};
|
|
45
|
+
memo?: string;
|
|
46
|
+
ev?: Event;
|
|
47
|
+
};
|
|
48
|
+
export type ClassicApiResult = {
|
|
49
|
+
title: string;
|
|
50
|
+
date: string;
|
|
51
|
+
version: string;
|
|
52
|
+
location: LocationPlainObj;
|
|
53
|
+
range?: {
|
|
54
|
+
start: string;
|
|
55
|
+
end: string;
|
|
56
|
+
};
|
|
57
|
+
items?: ClassicApiItem[];
|
|
58
|
+
};
|
|
3
59
|
/**
|
|
4
60
|
* Formats a list events for the classic Hebcal.com JSON API response
|
|
5
61
|
*/
|
|
6
|
-
export declare function eventsToClassicApi(events: Event[], options: RestApiOptions, leyning?: boolean):
|
|
7
|
-
export declare function eventsToClassicApiHeader(events: Event[], options: RestApiOptions):
|
|
62
|
+
export declare function eventsToClassicApi(events: Event[], options: RestApiOptions, leyning?: boolean): ClassicApiResult;
|
|
63
|
+
export declare function eventsToClassicApiHeader(events: Event[], options: RestApiOptions): ClassicApiResult;
|
|
8
64
|
/**
|
|
9
65
|
* Converts a Hebcal event to a classic Hebcal.com JSON API object
|
|
10
66
|
*/
|
|
11
|
-
export declare function eventToClassicApiObject(ev: Event, options: RestApiOptions, leyning?: boolean):
|
|
67
|
+
export declare function eventToClassicApiObject(ev: Event, options: RestApiOptions, leyning?: boolean): ClassicApiItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { isoDateString, HDate, gematriya } from '@hebcal/hdate';
|
|
3
3
|
import { Zmanim } from '@hebcal/core/dist/esm/zmanim';
|
|
4
4
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
@@ -30,8 +30,8 @@ function eventsToClassicApiHeader(events, options) {
|
|
|
30
30
|
title: getCalendarTitle(events, options),
|
|
31
31
|
date: new Date().toISOString(),
|
|
32
32
|
version,
|
|
33
|
+
location: locationToPlainObj(options.location),
|
|
33
34
|
};
|
|
34
|
-
result.location = locationToPlainObj(options.location);
|
|
35
35
|
if (events.length) {
|
|
36
36
|
result.range = {
|
|
37
37
|
start: eventIsoDate(events[0]),
|
|
@@ -122,6 +122,9 @@ function eventToClassicApiObject(ev, options, leyning = true) {
|
|
|
122
122
|
translit: omerEv.sefira('translit'),
|
|
123
123
|
en: omerEv.sefira('en'),
|
|
124
124
|
},
|
|
125
|
+
anaBekoachWord: omerEv.getAnaBekoachWord(),
|
|
126
|
+
lamnatzeachWord: omerEv.getLamnatzeachWord(),
|
|
127
|
+
lamnatzeachLetter: omerEv.getLamnatzeachLetter(),
|
|
125
128
|
};
|
|
126
129
|
}
|
|
127
130
|
if (mask & flags.MOLAD) {
|
|
@@ -135,6 +138,8 @@ function eventToClassicApiObject(ev, options, leyning = true) {
|
|
|
135
138
|
hour: m.getHour(),
|
|
136
139
|
minutes: m.getMinutes(),
|
|
137
140
|
chalakim: m.getChalakim(),
|
|
141
|
+
hdate: m.getMoladDate().toString(),
|
|
142
|
+
instant: m.getInstant().toInstant().toJSON(),
|
|
138
143
|
};
|
|
139
144
|
delete result.hebrew;
|
|
140
145
|
}
|
|
@@ -211,3 +216,4 @@ function formatLeyningResult(reading) {
|
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
export { eventToClassicApiObject, eventsToClassicApi, eventsToClassicApiHeader };
|
|
219
|
+
//# sourceMappingURL=classic-rest-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classic-rest-api.js","sources":["../../../src/classic-rest-api.ts"],"sourcesContent":[null],"names":[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AM,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO;IACnC;AACA,IAAA,IAAI,OAAO,CAAC,SAAS,EAAE;AACrB,QAAA,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,SAAS;IAC/C;AACA,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,MAAM,CAAC,eAAe,GAAG,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/D;AACA,IAAA,IAAI,OAAO,CAAC,UAAU,EAAE;AACtB,QAAA,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC;IAC1C;AACA,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;AAClB,QAAA,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;IACvC;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
package/dist/esm/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import { HDate, isoDateString } from '@hebcal/hdate';
|
|
4
4
|
import { makeAnchor } from './makeAnchor.js';
|
|
@@ -147,3 +147,4 @@ function shouldRenderBrief(ev) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export { LEARNING_MASK, getCalendarTitle, getDownloadFilename, getEventCategories, renderTitleWithoutTime, shouldRenderBrief, toISOString };
|
|
150
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sources":["../../../src/common.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAgCM,SAAU,mBAAmB,CAAC,OAAuB,EAAA;IACzD,IAAI,QAAQ,GAAG,QAAQ;AACvB,IAAA,IAAI,OAAO,CAAC,IAAI,EAAE;AAChB,QAAA,QAAQ,IAAI,GAAG,GAAG,OAAO,CAAC,IAAI;AAC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AK,CAAC,SAAS;AACf,IAAA,KAAK,CAAC,WAAW;AACjB,IAAA,KAAK,CAAC,cAAc;IACpB,KAAK,CAAC;AAEF,SAAU,iBAAiB,CAAC,EAAS,EAAA;AACzC,IAAA,IAAK,EAAiB,CAAC,SAAS,KAAK,SAAS,EAAE;AAC9C,QAAA,OAAO,IAAI;IACb;AACA,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,EAAE;AAC1B,IAAA,IAAI,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE;AAC5B,QAAA,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;AACvB,QAAA,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;IAC3B;SAAO,IAAI,IAAI,IAAI,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC,EAAE;AAC3D,QAAA,OAAO,IAAI;IACb;AAAO,SAAA,IACL,IAAI,GAAG,KAAK,CAAC,UAAU;QACvB,EAAE,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAC3C;AACA,QAAA,OAAO,IAAI;IACb;SAAO;AACL,QAAA,OAAO,KAAK;IACd;AACF;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
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 countryNames0 = {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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R, CU, CV, CW, CY, CZ, DE, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FO, FR, GA, GB, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LR, LS, LT, LU, LV, LY, MA, MD, ME, MG, MK, ML, MM, MN, MP, MR, MS, MT, MU, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PR, PT, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TM, TN, TR, TV, TW, TZ, UA, UG, US, UY, UZ, VC, VE, VG, VN, WS, YE, YT, ZA, ZM, ZW, countryNames0 as default };
|
|
5
|
+
//# sourceMappingURL=countryNames.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryNames.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/esm/csv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import { reformatTimeStr } from '@hebcal/core/dist/esm/reformatTimeStr';
|
|
4
4
|
import { shouldRenderBrief, getEventCategories } from './common.js';
|
|
@@ -89,3 +89,4 @@ function eventsToCsv(events, options) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export { eventToCsv, eventsToCsv };
|
|
92
|
+
//# sourceMappingURL=csv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv.js","sources":["../../../src/csv.ts"],"sourcesContent":[null],"names":[],"m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AAE;QACxB;IACF;AAEA,IAAA,IAAI,KAAK,GAAG,EAAE,CAAC,IAAI,IAAI,qBAAqB,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACtE,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;QAC/C,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;IACpD;IACA,MAAM,IAAI,GAAG;AACV,SAAA,UAAU,CAAC,GAAG,EAAE,GAAG;AACnB,SAAA,UAAU,CAAC,GAAG,EAAE,IAAI;AACpB,SAAA,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC;IAE1B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;AACzC,IAAA,MAAM,UAAU,GAAG,KAAK,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC;AAC1C,IAAA,OAAO,IAAI,IAAI,CAAA,EAAA,EAAK,IAAI,CAAA,CAAA,EAAI,SAAS,IAAI,OAAO,CAAA,CAAA,EAAI,OAAO,CAAA,CAAA,EAAI,MAAM,KAAK,IAAI,CAAA,GAAA,EAAM,UAAU,CAAA,GAAA,EAAM,GAAG,GAAG;AAC5G;AAEM,SAAU,WAAW,CAAC,MAAe,EAAE,OAAuB,EAAA;IAClE,QACE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;AAC1E,QAAA,MAAM;AAEV;;;;"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
2
|
import { CalOptions } from '@hebcal/core/dist/esm/CalOptions';
|
|
3
|
+
export type FullCalendarEvent = {
|
|
4
|
+
title: string;
|
|
5
|
+
start: string;
|
|
6
|
+
allDay: boolean;
|
|
7
|
+
className: string;
|
|
8
|
+
hebrew?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* Converts a Hebcal event to a FullCalendar.io object
|
|
5
14
|
*/
|
|
6
|
-
export declare function eventToFullCalendar(ev: Event, tzid: string, options: CalOptions):
|
|
15
|
+
export declare function eventToFullCalendar(ev: Event, tzid: string, options: CalOptions): FullCalendarEvent;
|
package/dist/esm/fullcalendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import { Zmanim } from '@hebcal/core/dist/esm/zmanim';
|
|
4
4
|
import { isoDateString } from '@hebcal/hdate';
|
|
@@ -10,7 +10,7 @@ import { makeMemo } from './memo.js';
|
|
|
10
10
|
* Converts a Hebcal event to a FullCalendar.io object
|
|
11
11
|
*/
|
|
12
12
|
function eventToFullCalendar(ev, tzid, options) {
|
|
13
|
-
const classes = getEventCategories(ev);
|
|
13
|
+
const classes = getEventCategories(ev).slice();
|
|
14
14
|
const mask = ev.getFlags();
|
|
15
15
|
const isChag = Boolean(mask & flags.CHAG);
|
|
16
16
|
if (isChag && classes[0] === 'holiday') {
|
|
@@ -60,3 +60,4 @@ function eventToFullCalendar(ev, tzid, options) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export { eventToFullCalendar };
|
|
63
|
+
//# sourceMappingURL=fullcalendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullcalendar.js","sources":["../../../src/fullcalendar.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAmBA;;AAEG;SACa,mBAAmB,CACjC,EAAS,EACT,IAAY,EACZ,OAAmB,EAAA;IAEnB,MAAM,OAAO,GAAG,kBAAkB,CAAC,EA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AG,IAAI,GAAG,CAAC,GAAG,CAAC;AACtB,QAAA,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,KAAK,gBAAgB,GAAG,IAAI,GAAG,SAAS;AAChE,QAAA,MAAM,CAAC,GAAG,GAAG,uBAAuB,CAAC,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC;IAChE;AACA,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE;IACzB,MAAM,OAAO,GAAG,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,iBAAiB;IACjE,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;QAC7B,IAAI,IAAI,EAAE;AACR,YAAA,MAAM,CAAC,WAAW,GAAG,IAAI;QAC3B;AAAO,aAAA,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;AAC5C,YAAA,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;QACjE;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
package/dist/esm/holiday.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import holidayDescription0 from './holidays.json.js';
|
|
4
4
|
import holidayDescHe0 from './holidays-he.json.js';
|
|
@@ -25,3 +25,4 @@ function getHolidayDescription(ev, firstSentence = false, locale) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export { getHolidayDescription };
|
|
28
|
+
//# sourceMappingURL=holiday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holiday.js","sources":["../../../src/holiday.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAKA,MAAM,kBAAkB,GAAc,mBAAgC;AACtE,MAAM,oBAAoB,GAAc,cAA2B;AAEnE;;AAEG;AAEG,SAAU,qBAAqB,CACnC,EAAS,EACT,aAAa,GAAG,KAAK,EACrB,MAAe,EAAA;AAEf,IAAA,MAAM,EAAE,GAAG,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,cAAc;IACzE,MAAM,IAAI,GAAG,EAAE,GAAG,oBAAoB,GAAG,kBAAkB;IAC3D,MAAM,IAAI,GACR,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC;AACpB,UAAE,IAAI,CAAC,2BAA2B;AAClC,UAAE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;AACrD,IAAA,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE;AAC5B,IAAA,IAAI,aAAa,IAAI,GAAG,EAAE;QACxB,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;AAC5B,QAAA,IAAI,GAAG,KAAK,EAAE,EAAE;YACd,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC;QAC9B;IACF;AACA,IAAA,OAAO,GAAG;AACZ;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
const Chanukah="חנוכה, חג החנוכה מחדש היהודי. ידוע גם כחג האורים; החג נחגג במשך שמונה ימים על ידי הדלקת נרות בחנוכייה";const Pesach="פסח, חג המצות. מציין את יציאת מצרים ושחרור בני ישראל ממצרים העתיקה";const Purim="חגיגת ההצלה היהודית כפי שמסופר במגילת אסתר. מציין תקופה שבה העם היהודי שחי בפרס ניצל מהשמדה";const Shavuot="חג השבועות. מציין את מתן תורה בהר סיני";const Sigd="הסיגד, חג של יהדות אתיופיה החל 50 יום לאחר יום הכיפורים";const Sukkot="חג הסוכות. החג שנמשך שבעה ימים הוא אחד משלושת הרגלים";var holidayDescHe0 = {"Asara B'Tevet":"צום המציין את המצור על ירושלים","Ben-Gurion Day":"יום המציין את חייו וחזונו של ראש הממשלה הראשון של ישראל, דוד בן-גוריון","Birkat Hachamah":"ברכה יהודית נדירה הנאמרת אחת ל-28 שנים כהודיה לאל על בריאת החמה","Chag HaBanot":"חג הבנות של חנוכה (עיד אל-בנאת), שמקורו ביהדות צפון אפריקה ונשתמר בעיקר בתוניסיה",Chanukah:Chanukah,"Days of the Omer":"7 שבועות מהלילה השני של פסח ועד ליום לפני שבועות. נקרא גם ספירת העומר; מנהג הכולל ספירה מילולית של כל אחד מארבעים ותשעה הימים בין שני החגים","Erev Yom Kippur":"ערב יום הכיפורים, הכולל את תפילת כל נדרי. צום יום הכיפורים מתחיל עם שקיעת החמה ונמשך 25 שעות","Family Day":"יום המשפחה, יום להוקרת התא המשפחתי","Hebrew Language Day":"יום לקידום השפה העברית בישראל וברחבי העולם. חל ביום הולדתו של אליעזר בן יהודה, מחייה השפה העברית","Herzl Day":"יום המציין את חייו וחזונו של המנהיג הציוני בנימין זאב הרצל","Jabotinsky Day":"יום המציין את חייו וחזונו של המנהיג הציוני זאב ז'בוטינסקי","Lag BaOmer":"היום ה-33 לספירת העומר. החג מהווה הפוגה זמנית ממנהגי האבלות של תקופת ספירת העומר. המנהגים כוללים הדלקת מדורות, תספורות וחתונות","Leil Selichot":"תפילות סליחה כהכנה לימים הנוראים","Pesach Sheni":"פסח שני, חודש לאחר חג הפסח",Pesach:Pesach,"Purim Katan":"חגיגת פורים קטן המצוינת במהלך חודש אדר א' בשנים מעוברות",Purim:Purim,"Purim Meshulash":"פורים משולש, הנפרש על פני 3 ימים בירושלים ובערים מוקפות חומה. חל כאשר ט״ו באדר נופל בשבת","Rosh Chodesh Nisan":"תחילת חודש ניסן בלוח העברי. ניסן הוא החודש ה-7 בשנה העברית האזרחית (ה-8 בשנים מעוברות) והחודש ה-1 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למרץ או אפריל בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Iyyar":"תחילת חודש אייר בלוח העברי. אייר הוא החודש ה-8 בשנה העברית האזרחית (ה-9 בשנים מעוברות) והחודש ה-2 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאפריל או מאי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sivan":"תחילת חודש סיוון בלוח העברי. סיוון הוא החודש ה-9 בשנה העברית האזרחית (ה-10 בשנים מעוברות) והחודש ה-3 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל למאי או יוני בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tamuz":"תחילת חודש תמוז בלוח העברי. תמוז הוא החודש ה-10 בשנה העברית האזרחית (ה-11 בשנים מעוברות) והחודש ה-4 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל ליוני או יולי בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Av":"תחילת חודש אב בלוח העברי. אב הוא החודש ה-11 בשנה העברית האזרחית (ה-12 בשנים מעוברות) והחודש ה-5 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל ליולי או אוגוסט בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Elul":"תחילת חודש אלול בלוח העברי. אלול הוא החודש ה-12 בשנה העברית האזרחית (ה-13 בשנים מעוברות) והחודש ה-6 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לאוגוסט או ספטמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Cheshvan":"תחילת חודש חשוון בלוח העברי. חשוון הוא החודש ה-2 בשנה העברית האזרחית והחודש ה-8 בשנה העברית המקראית. יש בו 29 או 30 ימים והוא מקביל לאוקטובר או נובמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Kislev":"תחילת חודש כסלו בלוח העברי. כסלו הוא החודש ה-3 בשנה העברית האזרחית והחודש ה-9 בשנה העברית המקראית. יש בו 30 או 29 ימים והוא מקביל לנובמבר או דצמבר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Tevet":"תחילת חודש טבת בלוח העברי. טבת הוא החודש ה-4 בשנה העברית האזרחית והחודש ה-10 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לדצמבר או ינואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Sh'vat":"תחילת חודש שבט בלוח העברי. שבט הוא החודש ה-5 בשנה העברית האזרחית והחודש ה-11 בשנה העברית המקראית. יש בו 30 ימים והוא מקביל לינואר או פברואר בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar":"תחילת חודש אדר בלוח העברי. אדר הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 29 ימים והוא מקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar I":"תחילת חודש אדר א' (בשנים מעוברות) בלוח העברי. אדר א' הוא החודש ה-6 בשנה העברית האזרחית והחודש ה-12 בשנה העברית המקראית. יש בו 30 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Chodesh Adar II":"תחילת חודש אדר ב' (בשנים מעוברות) בלוח העברי. אדר ב', נקרא לעיתים “אדר שני”, הוא החודש ה-7 בשנה העברית האזרחית והחודש ה-13 בשנה העברית. יש בו 29 ימים, הוא חל רק בשנים מעוברות ומקביל לפברואר או מרץ בלוח הגרגוריאני. ראש חודש הוא מועד המצוין בתחילת כל חודש בלוח העברי ומסומן על ידי מולד הלבנה","Rosh Hashana":"ראש השנה היהודי","Rosh Hashana LaBehemot":"ראש השנה למעשר בהמה","Shabbat Chazon":"שבת חזון (שבת הנבואה). השבת שלפני תשעה באב","Shabbat HaChodesh":"שבת החודש. השבת שלפני ראש חודש ניסן. נקראת כהכנה לפסח","Shabbat HaGadol":"שבת הגדול. השבת שלפני חג הפסח","Shabbat Machar Chodesh":"שבת מחר חודש. כאשר שבת חלה ביום שלפני ראש חודש","Shabbat Mevarchim Chodesh":"שבת מברכים. השבת שקודמת לראש חודש, בה הקהל מברך את החודש החדש שבפתח","Shabbat Nachamu":"שבת נחמו. השבת שלאחר תשעה באב (שבת של נחמה). הראשונה מבין שבע שבתות המובילות לראש השנה. נקראת על שם ההפטרה (ישעיהו מ') הפותחת בפסוק “נַחֲמוּ נַחֲמוּ, עַמִּי”","Shabbat Parah":"שבת פרה (אדומה). השבת שלפני שבת החודש, כהכנה לפסח","Shabbat Rosh Chodesh":"שבת ראש חודש. כאשר שבת חלה בראש חודש","Shabbat Shekalim":"שבת שקלים. השבת שלפני ראש חודש אדר. נקראת כהכנה לפורים","Shabbat Shirah":"שבת שירה. השבת הכוללת את פרשת בשלח (ושירת הים)","Shabbat Shuva":"שבת שובה. השבת שחלה במהלך עשרת ימי תשובה בין ראש השנה ליום כיפור","Shabbat Zachor":"שבת זכור. השבת שלפני פורים",Shavuot:Shavuot,"Shmini Atzeret":"שמיני עצרת. חל מיד לאחר סוכות; בתפוצות נחגג כחג נפרד ובישראל משולב עם שמחת תורה","Shushan Purim":"פורים הנחגג בירושלים ובערים מוקxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxים ובערים מוקפות חומה (בשנה מעוברת)",Sigd:Sigd,"Simchat Torah":"שמחת תורה. חגיגה המציינת את סיום המחזור השנתי של קריאת התורה בציבור, ותחילתו של מחזור חדש",Sukkot:Sukkot,"Ta'anit Bechorot":"תענית בכורות","Ta'anit Esther":"תענית אסתר","Tish'a B'Av":"תשעה באב. צום המציין את חורבן שני בתי המקדש","Tu B'Av":"ט״ו באב, חג האהבה היהודי. מצוין בט״ו בחודש אב העברי","Tu BiShvat":"ראש השנה לאילנות. ט״ו בשבט הוא אחד מארבעת “ראשי השנה” המוזכרים במשנה","Tzom Gedaliah":"צום גדליה (צום החודש השביעי). מציין את רצח המושל היהודי של יהודה","Tzom Tammuz":"צום י״ז בתמוז. צום המציין את הבקעת חומות ירושלים לפני חורבן בית המקדש השני","Yitzhak Rabin Memorial Day":"יום הזיכרון ליצחק רבין. מציין את חייו של ראש ממשלת ישראל יצחק רבין","Yom HaAliyah":"מציין את העלייה למדינת ישראל","Yom HaAliyah School Observance":"יום העלייה כפי שמצוין בבתי הספר בישראל","Yom HaAtzma'ut":"יום העצמאות. מציין את הכרזת העצמאות של ישראל בשנת 1948. למרות שיום העצמאות מצוין בדרך כלל בה' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום החג (או יום הזיכרון שתמיד קודם לו) יתנגש עם השבת","Yom HaShoah":"יום הזיכרון לשואה ולגבורה","Yom HaZikaron":"יום הזיכרון לחללי מערכות ישראל. זוכר את אלו שנפלו במלחמת העצמאות ובמלחמות ישראל האחרות. השם המלא של החג הוא “יום הזיכרון לחללי מערכות ישראל ולנפגעי פעולות האיבה״. למרות שיום הזיכרון מצוין בדרך כלל בד' באייר, הוא עשוי להיות מוקדם או להידחות אם קיום היום (או יום העצמאות שבא תמיד אחריו) יתנגש עם השבת","Yom Kippur":"יום הכיפורים. היום הקדוש ביותר בשנה ביהדות, המצוין באופן מסורתי בצום של 25 שעות ותפילה אינטנסיבית","Yom Kippur Katan":"יום כיפור קטן. יום כפרה החל מדי חודש ביום שלפני כל ראש חודש","Yom Yerushalayim":"יום ירושלים. מציין את איחודה מחדש של ירושלים בשנת 1967"};
|
|
3
3
|
|
|
4
4
|
export { Chanukah, Pesach, Purim, Shavuot, Sigd, Sukkot, holidayDescHe0 as default };
|
|
5
|
+
//# sourceMappingURL=holidays-he.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holidays-he.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
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 holidayDescription0 = {"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","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","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 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It 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 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It 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 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It 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 Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It 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 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It 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 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It 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 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It 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 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It 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 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It 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 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 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 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 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It 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 Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","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"};
|
|
3
3
|
|
|
4
4
|
export { Chanukah, Pesach, Purim, Shavuot, Sigd, Sukkot, holidayDescription0 as default };
|
|
5
|
+
//# sourceMappingURL=holidays.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holidays.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
export { eventToCsv, eventsToCsv } from './csv.js';
|
|
3
3
|
export { makeAnchor } from './makeAnchor.js';
|
|
4
4
|
export { LEARNING_MASK, getCalendarTitle, getDownloadFilename, getEventCategories, renderTitleWithoutTime, shouldRenderBrief, toISOString } from './common.js';
|
|
@@ -10,3 +10,4 @@ export { eventToClassicApiObject, eventsToClassicApi, eventsToClassicApiHeader }
|
|
|
10
10
|
export { eventToRssItem2, eventsToRss2 } from './rss.js';
|
|
11
11
|
export { eventToFullCalendar } from './fullcalendar.js';
|
|
12
12
|
export { pad2, pad4 } from '@hebcal/hdate';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/esm/location.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import countryNames0 from './countryNames.json.js';
|
|
3
3
|
|
|
4
4
|
const countryNames = countryNames0;
|
|
@@ -43,3 +43,4 @@ function locationToPlainObj(location) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export { countryNames, locationToPlainObj };
|
|
46
|
+
//# sourceMappingURL=location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.js","sources":["../../../src/location.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIO,MAAM,YAAY,GAAc;AAsBvC,MAAM,UAAU,GAAG;IACjB,WAAW;IACX,QAAQ;IACR,WAAW;IACX,KAAK;IACL,KAAK;IACL,OAAO;IACP,WAAW;IACX,WAAW;CACZ;AAED;;AAEG;AACG,SAAU,kBAAkB,CAChC,QAA8B,EAAA;IAE9B,IACE,OAAO,QAAQ,KAAK,QAAQ;AAC5B,QAAA,QAAQ,KAAK,IAAI;AACjB,QAAA,OAAO,QAAQ,CAAC,WAAW,KAAK,UAAU,EAC1C;AACA,QAAA,MAAM,EAAE,GAAW,QAAQ,CAAC,cAAc,EAAG;AAC7C,QAAA,MAAM,CAAC,GAAqB;AAC1B,YAAA,KAAK,EAAE,QAAQ,CAAC,OAAO,EAAE;AACzB,YAAA,IAAI,EAAE,QAAQ,CAAC,YAAY,EAAE;AAC7B,YAAA,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE;AACxB,YAAA,QAAQ,EAAE,QAAQ,CAAC,WAAW,EAAE;AAChC,YAAA,SAAS,EAAE,QAAQ,CAAC,YAAY,EAAE;AAClC,YAAA,EAAE,EAAE,EAAE;AACN,YAAA,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC;SAC1B;AACD,QAAA,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;AAC1B,YAAA,MAAM,GAAG,GAAI,QAAgB,CAAC,CAAC,CAAC;YAChC,IAAI,GAAG,EAAE;AACN,gBAAA,CAAS,CAAC,CAAC,CAAC,GAAG,GAAG;YACrB;QACF;AACA,QAAA,OAAO,CAAC;IACV;SAAO;AACL,QAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAC;IACtB;AACF;;;;"}
|
package/dist/esm/makeAnchor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
/**
|
|
3
3
|
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
4
4
|
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
@@ -16,3 +16,4 @@ function makeAnchor(s) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export { makeAnchor };
|
|
19
|
+
//# sourceMappingURL=makeAnchor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeAnchor.js","sources":["../../../src/makeAnchor.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;;AAKG;AACG,SAAU,UAAU,CAAC,CAAS,EAAA;AAClC,IAAA,OAAO;AACJ,SAAA,WAAW;AACX,SAAA,UAAU,CAAC,GAAG,EAAE,EAAE;AAClB,SAAA,UAAU,CAAC,QAAQ,EAAE,GAAG;AACxB,SAAA,UAAU,CAAC,KAAK,EAAE,GAAG;AACrB,SAAA,UAAU,CAAC,KAAK,EAAE,EAAE;AACpB,SAAA,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC;AAC1B;;;;"}
|
package/dist/esm/memo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import { getLeyningForParshaHaShavua } from '@hebcal/leyning/dist/esm/leyning';
|
|
4
4
|
import { getLeyningForHoliday } from '@hebcal/leyning/dist/esm/getLeyningForHoliday';
|
|
@@ -15,7 +15,6 @@ const HOLIDAY_IGNORE_MASK = flags.OMER_COUNT |
|
|
|
15
15
|
* Makes mulit-line text that summarizes Torah & Haftarah
|
|
16
16
|
*/
|
|
17
17
|
function makeTorahMemoText(ev, il) {
|
|
18
|
-
var _a;
|
|
19
18
|
const mask = ev.getFlags();
|
|
20
19
|
if (mask & HOLIDAY_IGNORE_MASK ||
|
|
21
20
|
ev.eventTime !== undefined) {
|
|
@@ -34,12 +33,12 @@ function makeTorahMemoText(ev, il) {
|
|
|
34
33
|
}
|
|
35
34
|
if (reading.haftara) {
|
|
36
35
|
memo += 'Haftarah: ' + reading.haftara;
|
|
37
|
-
if (
|
|
36
|
+
if (reading.reason?.haftara) {
|
|
38
37
|
memo += ' | ' + reading.reason.haftara;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
if (reading
|
|
41
|
+
if (reading?.sephardic) {
|
|
43
42
|
memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
|
|
44
43
|
}
|
|
45
44
|
return memo;
|
|
@@ -51,9 +50,8 @@ function makeMemo(ev, il) {
|
|
|
51
50
|
if (memo) {
|
|
52
51
|
return memo;
|
|
53
52
|
}
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
53
|
}
|
|
56
|
-
catch
|
|
54
|
+
catch {
|
|
57
55
|
// fallthru
|
|
58
56
|
}
|
|
59
57
|
}
|
|
@@ -64,3 +62,4 @@ function makeMemo(ev, il) {
|
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
export { makeMemo, makeTorahMemoText };
|
|
65
|
+
//# sourceMappingURL=memo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memo.js","sources":["../../../src/memo.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAOA,MAAM,mBAAmB,GACvB,KAAK,CAAC,UAAU;AAChB,IAAA,KAAK,CAAC,iBAAiB;AACvB,IAAA,KAAK,CAAC,KAAK;AACX,IAAA,KAAK,CAAC,UAAU;AAChB,IAAA,KAAK,CAAC,WAAW;AACjB,IAAA,aAAa;AAEf;;AAEG;AACG,SAAU,iBAAiB,CAAC,EAAS,EAAE,EAAW,EAAA;AACtD,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1B,IACE,IAAI,GAAG,mBAAmB;AACzB,Q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,CAAC,IAAI;IAChB;IACA,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC;AAC/C;;;;"}
|
package/dist/esm/rss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
2
|
import { Zmanim } from '@hebcal/core/dist/esm/zmanim';
|
|
3
3
|
import { reformatTimeStr } from '@hebcal/core/dist/esm/reformatTimeStr';
|
|
4
4
|
import { getEventCategories, getCalendarTitle } from './common.js';
|
|
@@ -55,7 +55,7 @@ function eventsToRss2(events, options) {
|
|
|
55
55
|
const description = options.description || title;
|
|
56
56
|
const utmSource = options.utmSource || 'shabbat1c';
|
|
57
57
|
const utmMedium = options.utmMedium || 'rss';
|
|
58
|
-
const mainUrlEsc = appendIsraelAndTracking(options.mainUrl, Boolean(location
|
|
58
|
+
const mainUrlEsc = appendIsraelAndTracking(options.mainUrl, Boolean(location?.getIsrael()), utmSource, utmMedium, options.utmCampaign).replaceAll('&', '&');
|
|
59
59
|
const selfUrlEsc = options.selfUrl.replaceAll('&', '&');
|
|
60
60
|
const lang = options.lang || localeToLg[options.locale] || options.locale || 'en-US';
|
|
61
61
|
let str = `<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -145,3 +145,4 @@ ${geoTags}</item>
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export { eventToRssItem2, eventsToRss2 };
|
|
148
|
+
//# sourceMappingURL=rss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rss.js","sources":["../../../src/rss.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAcA,SAAS,cAAc,CACrB,EAAS,EACT,EAAW,EACX,IAAY,EACZ,OAAe,EACf,SAAkB,EAClB,SAAkB,EAAA;AAElB,IAAA,IAAI,IAAI;AACR,IAAA,IAAI,IAAI;AACR,IAAA,MAAM,SAAS,GAAU,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hebcal/hdate';
|
|
3
3
|
import { parshiot } from '@hebcal/core/dist/esm/sedra';
|
|
4
4
|
import { makeAnchor } from './makeAnchor.js';
|
|
@@ -120,3 +120,4 @@ function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export { appendIsraelAndTracking, shortenSedrotUrl };
|
|
123
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.js","sources":["../../../src/url.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB;AAC3C,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE;AAC3C,IAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC;AACzB,IAAA,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AACzC;AAEA,MAAM,gBAAgB,GAAa;IACjC,kBAAkB;IAClB,gBAAgB;IAChB,qBAAqB;IACrB,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,oBAAoB;CACZ;AAEV,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU;AACjC,KAAK,MAAM,IAAI,IAAI,gBAAgB,EAAE;AACnC,IAAA,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;AAC/B,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;IAC9B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;AAC5B,IAAA,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,EAAG,CAAC;AAC5B;AAEA,SAAS,kBAAkB,CAAC,IAAY,EAAA;IACtC,MAA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v6.4.5 */
|
|
2
2
|
var hebcalFullCalendar = (function (exports, event, zmanim, hdate, sedra, leyning, getLeyningForHoliday) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -197,7 +197,6 @@ const HOLIDAY_IGNORE_MASK = event.flags.OMER_COUNT |
|
|
|
197
197
|
* Makes mulit-line text that summarizes Torah & Haftarah
|
|
198
198
|
*/
|
|
199
199
|
function makeTorahMemoText(ev, il) {
|
|
200
|
-
var _a;
|
|
201
200
|
const mask = ev.getFlags();
|
|
202
201
|
if (mask & HOLIDAY_IGNORE_MASK ||
|
|
203
202
|
ev.eventTime !== undefined) {
|
|
@@ -216,12 +215,12 @@ function makeTorahMemoText(ev, il) {
|
|
|
216
215
|
}
|
|
217
216
|
if (reading.haftara) {
|
|
218
217
|
memo += 'Haftarah: ' + reading.haftara;
|
|
219
|
-
if (
|
|
218
|
+
if (reading.reason?.haftara) {
|
|
220
219
|
memo += ' | ' + reading.reason.haftara;
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
|
-
if (reading
|
|
223
|
+
if (reading?.sephardic) {
|
|
225
224
|
memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
|
|
226
225
|
}
|
|
227
226
|
return memo;
|
|
@@ -233,9 +232,8 @@ function makeMemo(ev, il) {
|
|
|
233
232
|
if (memo) {
|
|
234
233
|
return memo;
|
|
235
234
|
}
|
|
236
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
237
235
|
}
|
|
238
|
-
catch
|
|
236
|
+
catch {
|
|
239
237
|
// fallthru
|
|
240
238
|
}
|
|
241
239
|
}
|
|
@@ -249,7 +247,7 @@ function makeMemo(ev, il) {
|
|
|
249
247
|
* Converts a Hebcal event to a FullCalendar.io object
|
|
250
248
|
*/
|
|
251
249
|
function eventToFullCalendar(ev, tzid, options) {
|
|
252
|
-
const classes = getEventCategories(ev);
|
|
250
|
+
const classes = getEventCategories(ev).slice();
|
|
253
251
|
const mask = ev.getFlags();
|
|
254
252
|
const isChag = Boolean(mask & event.flags.CHAG);
|
|
255
253
|
if (isChag && classes[0] === 'holiday') {
|
package/dist/fullcalendar.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.4.
|
|
2
|
-
var hebcalFullCalendar=function(e,a,o,t,r,h,n){"use strict";function i(e){return e.toLowerCase().replaceAll("'","").replaceAll(/[^\w]/g,"-").replaceAll(/-+/g,"-").replaceAll(/^-/g,"").replaceAll(/-$/g,"")}const s=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI;const l=new Map;for(let e=0;e<r.parshiot.length;e++){const a=r.parshiot[e];l.set(i(a),e+1)}const d=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],m=new Set;for(const e of d){const a=i(e);m.add(a);const[o]=a.split("-"),t=l.get(o);l.set(a,t)}function c(e){const a=e.pathname,o=a.lastIndexOf("-"),r=a.substring(o+1),h=a.substring(8,o);if(l.get(h)&&8===r.length){const a=function(e){const a=e.substring(0,4),o=e.substring(4,6),t=e.substring(6,8),r=parseInt(a,10),h=parseInt(o,10),n=parseInt(t,10),i=new Date(r,h-1,n);return r<100&&i.setFullYear(r),i}(r);let o="/s/"+new t.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(o+="i",e.searchParams.delete("i"));o+="/"+l.get(h),m.has(h)&&(o+="d"),e.pathname=o}else e.pathname="/s/"+a.substring(8)}const b={"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:"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)","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","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It 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 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It 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 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It 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 Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It 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 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It 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 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It 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 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It 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 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It 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 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It 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 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 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 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 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It 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 Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"};const f=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|s;function y(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const t=function(e,o){var t;const r=e.getFlags();if(r&f||void 0!==e.eventTime)return"";const i=r&a.flags.PARSHA_HASHAVUA?h.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);let s="";return i&&(i.summary||i.haftara)&&(i.summary&&(s+=`Torah: ${i.summary}`),i.summary&&i.haftara&&(s+="\n"),i.haftara&&(s+="Haftarah: "+i.haftara,(null===(t=i.reason)||void 0===t?void 0:t.haftara)&&(s+=" | "+i.reason.haftara))),(null==i?void 0:i.sephardic)&&(s+="\nHaftarah for Sephardim: "+i.sephardic),s}(e,o);if(t)return t}catch(e){}return e.memo?e.memo:function(e,o=!1){const t=b,r=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?t["Shabbat Mevarchim Chodesh"]:t[e.getDesc()]||t[e.basename()]||"").normalize();if(o&&r){const e=r.indexOf(".");if(-1!==e)return r.substring(0,e)}return r}(e,!1)}return e.eventToFullCalendar=function(e,r,h){const n=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===n[0]&&n.push("yomtov"),i&s&&n.push("learning");const l=e,d=l.eventTime,m=Boolean(d),b={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(s|a.flags.SHABBAT_MEVARCHIM))||!!(o&a.flags.MINOR_FAST&&e.getDesc().startsWith("Yom Kippur Katan"))}(e)?e.renderBrief(h.locale):e.render(h.locale),start:m?o.Zmanim.formatISOWithTimeZone(r,d):t.isoDateString(e.greg()),allDay:!m,className:n.join(" ")},f=e.renderBrief("he-x-NoNikud");f&&(b.hebrew=f);const u=e.url(),g=Boolean(h.il);if(u){const e="www.hebcal.com"===new URL(u).host?"js":void 0;b.url=function(e,a,o,t){const r=new URL(e),h="www.hebcal.com"===r.host;if(h){a&&r.searchParams.set("i","on");const e=r.pathname,h=e.startsWith("/holidays/"),n=e.startsWith("/sedrot/"),i=e.startsWith("/omer/");if(h||n||i)return r.host="hebcal.com",h?r.pathname="/h/"+e.substring(10):n?c(r):r.pathname="/o/"+e.substring(6),o&&r.searchParams.set("us",o),r.searchParams.set("um",t),r.toString()}return o||h||(o="hebcal.com"),o&&r.searchParams.set("utm_source",o),r.searchParams.set("utm_medium",t),r.toString()}(u,g,e,"fc")}const w=e.getDesc();if(!("Havdalah"===w||"Candle lighting"===w)){const a=y(e,g);a?b.description=a:void 0!==l.linkedEvent&&(b.description=l.linkedEvent.render(h.locale))}return b},e}({},hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning);
|
|
1
|
+
/*! @hebcal/rest-api v6.4.5 */
|
|
2
|
+
var hebcalFullCalendar=function(e,a,o,t,r,h,n){"use strict";function s(e){return e.toLowerCase().replaceAll("'","").replaceAll(/[^\w]/g,"-").replaceAll(/-+/g,"-").replaceAll(/^-/g,"").replaceAll(/-$/g,"")}const i=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI;const l=new Map;for(let e=0;e<r.parshiot.length;e++){const a=r.parshiot[e];l.set(s(a),e+1)}const d=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],m=new Set;for(const e of d){const a=s(e);m.add(a);const[o]=a.split("-"),t=l.get(o);l.set(a,t)}function c(e){const a=e.pathname,o=a.lastIndexOf("-"),r=a.substring(o+1),h=a.substring(8,o);if(l.get(h)&&8===r.length){const a=function(e){const a=e.substring(0,4),o=e.substring(4,6),t=e.substring(6,8),r=parseInt(a,10),h=parseInt(o,10),n=parseInt(t,10),s=new Date(r,h-1,n);return r<100&&s.setFullYear(r),s}(r);let o="/s/"+new t.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(o+="i",e.searchParams.delete("i"));o+="/"+l.get(h),m.has(h)&&(o+="d"),e.pathname=o}else e.pathname="/s/"+a.substring(8)}const b={"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:"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)","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","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It 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 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It 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 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It 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 Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It 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 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It 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 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It 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 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It 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 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It 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 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It 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 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It 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 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 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 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 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It 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 Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"};const f=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|i;function y(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const t=function(e,o){const t=e.getFlags();if(t&f||void 0!==e.eventTime)return"";const r=t&a.flags.PARSHA_HASHAVUA?h.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);let s="";return r&&(r.summary||r.haftara)&&(r.summary&&(s+=`Torah: ${r.summary}`),r.summary&&r.haftara&&(s+="\n"),r.haftara&&(s+="Haftarah: "+r.haftara,r.reason?.haftara&&(s+=" | "+r.reason.haftara))),r?.sephardic&&(s+="\nHaftarah for Sephardim: "+r.sephardic),s}(e,o);if(t)return t}catch{}return e.memo?e.memo:function(e,o=!1){const t=b,r=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?t["Shabbat Mevarchim Chodesh"]:t[e.getDesc()]||t[e.basename()]||"").normalize();if(o&&r){const e=r.indexOf(".");if(-1!==e)return r.substring(0,e)}return r}(e,!1)}return e.eventToFullCalendar=function(e,r,h){const n=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e).slice(),s=e.getFlags();Boolean(s&a.flags.CHAG)&&"holiday"===n[0]&&n.push("yomtov"),s&i&&n.push("learning");const l=e,d=l.eventTime,m=Boolean(d),b={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(i|a.flags.SHABBAT_MEVARCHIM))||!!(o&a.flags.MINOR_FAST&&e.getDesc().startsWith("Yom Kippur Katan"))}(e)?e.renderBrief(h.locale):e.render(h.locale),start:m?o.Zmanim.formatISOWithTimeZone(r,d):t.isoDateString(e.greg()),allDay:!m,className:n.join(" ")},f=e.renderBrief("he-x-NoNikud");f&&(b.hebrew=f);const u=e.url(),g=Boolean(h.il);if(u){const e="www.hebcal.com"===new URL(u).host?"js":void 0;b.url=function(e,a,o,t){const r=new URL(e),h="www.hebcal.com"===r.host;if(h){a&&r.searchParams.set("i","on");const e=r.pathname,h=e.startsWith("/holidays/"),n=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(h||n||s)return r.host="hebcal.com",h?r.pathname="/h/"+e.substring(10):n?c(r):r.pathname="/o/"+e.substring(6),o&&r.searchParams.set("us",o),r.searchParams.set("um",t),r.toString()}return o||h||(o="hebcal.com"),o&&r.searchParams.set("utm_source",o),r.searchParams.set("utm_medium",t),r.toString()}(u,g,e,"fc")}const w=e.getDesc();if(!("Havdalah"===w||"Candle lighting"===w)){const a=y(e,g);a?b.description=a:void 0!==l.linkedEvent&&(b.description=l.linkedEvent.render(h.locale))}return b},e}({},hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/rest-api",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.5",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://hebcal.github.io/api/rest-api/",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@hebcal/core": "^6.
|
|
31
|
+
"@hebcal/core": "^6.3.0",
|
|
32
32
|
"@hebcal/hdate": "^0.22.0",
|
|
33
|
-
"@hebcal/leyning": "^9.5.
|
|
33
|
+
"@hebcal/leyning": "^9.5.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "rollup -c",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"license": "BSD-2-Clause",
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@hebcal/learning": "^6.
|
|
47
|
+
"@hebcal/learning": "^6.8.0",
|
|
48
48
|
"@hebcal/locales": "^6.4.3",
|
|
49
49
|
"@rollup/plugin-json": "^6.1.0",
|
|
50
50
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@types/node": "^25.6.0",
|
|
54
54
|
"gts": "^7.0.0",
|
|
55
55
|
"rollup": "^4.60.1",
|
|
56
|
-
"typedoc": "^0.28.
|
|
57
|
-
"typescript": "^
|
|
56
|
+
"typedoc": "^0.28.19",
|
|
57
|
+
"typescript": "^6.0.2",
|
|
58
58
|
"vitest": "^4.1.4"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
-
import { RestApiOptions } from './common';
|
|
3
|
-
/**
|
|
4
|
-
* Formats a list events for the classic Hebcal.com JSON API response
|
|
5
|
-
*/
|
|
6
|
-
export declare function eventsToClassicApi(events: Event[], options: RestApiOptions, leyning?: boolean): any;
|
|
7
|
-
export declare function eventsToClassicApiHeader(events: Event[], options: RestApiOptions): any;
|
|
8
|
-
/**
|
|
9
|
-
* Converts a Hebcal event to a classic Hebcal.com JSON API object
|
|
10
|
-
*/
|
|
11
|
-
export declare function eventToClassicApiObject(ev: Event, options: RestApiOptions, leyning?: boolean): any;
|
package/dist/common.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
-
import { CalOptions } from '@hebcal/core/dist/esm/CalOptions';
|
|
3
|
-
export type StringMap = Record<string, string>;
|
|
4
|
-
export type RestApiEventOptions = {
|
|
5
|
-
utmSource?: string;
|
|
6
|
-
utmMedium?: string;
|
|
7
|
-
utmCampaign?: string;
|
|
8
|
-
appendHebrewToSubject?: boolean;
|
|
9
|
-
yahrzeit?: boolean;
|
|
10
|
-
subscribe?: string | number | boolean;
|
|
11
|
-
heDateParts?: boolean;
|
|
12
|
-
includeEvent?: boolean;
|
|
13
|
-
euro?: boolean;
|
|
14
|
-
title?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
dayFormat?: Intl.DateTimeFormat;
|
|
17
|
-
mainUrl?: string;
|
|
18
|
-
selfUrl?: string;
|
|
19
|
-
buildDate?: Date;
|
|
20
|
-
lastBuildDate?: string;
|
|
21
|
-
evPubDate?: boolean;
|
|
22
|
-
lang?: string;
|
|
23
|
-
preferAsciiName?: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type RestApiOptions = CalOptions & RestApiEventOptions;
|
|
26
|
-
export declare function getDownloadFilename(options: RestApiOptions): string;
|
|
27
|
-
/**
|
|
28
|
-
* Returns just the date portion as YYYY-MM-DD
|
|
29
|
-
* @deprecated use `isoDateString` instead
|
|
30
|
-
*/
|
|
31
|
-
export declare function toISOString(d: Date): string;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a category and subcategory name
|
|
34
|
-
*/
|
|
35
|
-
export declare function getEventCategories(ev: Event): string[];
|
|
36
|
-
/**
|
|
37
|
-
* Renders the event title in default locale, but strips off time
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
export declare function renderTitleWithoutTime(ev: Event, locale?: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* Generates a title like "Hebcal 2020 Israel" or "Hebcal May 1993 Providence"
|
|
43
|
-
*/
|
|
44
|
-
export declare function getCalendarTitle(events: Event[], options: RestApiOptions): string;
|
|
45
|
-
/**
|
|
46
|
-
* Bitmask for learning events (Daf Yomi, Nach Yomi, Mishna Yomi, Daily Learning, Yerushalmi Yomi)
|
|
47
|
-
*/
|
|
48
|
-
export declare const LEARNING_MASK: number;
|
|
49
|
-
export declare function shouldRenderBrief(ev: Event): boolean;
|
package/dist/csv.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
-
import { RestApiOptions } from './common';
|
|
3
|
-
/**
|
|
4
|
-
* Renders an Event as a string
|
|
5
|
-
*/
|
|
6
|
-
export declare function eventToCsv(ev: Event, options: RestApiOptions): string;
|
|
7
|
-
export declare function eventsToCsv(events: Event[], options: RestApiOptions): string;
|
package/dist/fullcalendar.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
-
import { CalOptions } from '@hebcal/core/dist/esm/CalOptions';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a Hebcal event to a FullCalendar.io object
|
|
5
|
-
*/
|
|
6
|
-
export declare function eventToFullCalendar(ev: Event, tzid: string, options: CalOptions): any;
|
package/dist/holiday.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './csv';
|
|
2
|
-
export * from './makeAnchor';
|
|
3
|
-
export * from './common';
|
|
4
|
-
export { makeTorahMemoText } from './memo';
|
|
5
|
-
export { getHolidayDescription } from './holiday';
|
|
6
|
-
export { appendIsraelAndTracking } from './url';
|
|
7
|
-
export * from './location';
|
|
8
|
-
export * from './classic-rest-api';
|
|
9
|
-
export * from './rss';
|
|
10
|
-
export * from './fullcalendar';
|
|
11
|
-
export { pad2, pad4 } from '@hebcal/hdate';
|
package/dist/location.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Location } from '@hebcal/core/dist/esm/location';
|
|
2
|
-
import type { StringMap } from './common';
|
|
3
|
-
export declare const countryNames: StringMap;
|
|
4
|
-
/**
|
|
5
|
-
* Location information
|
|
6
|
-
*/
|
|
7
|
-
export type LocationPlainObj = {
|
|
8
|
-
title?: string | null;
|
|
9
|
-
city?: string | null;
|
|
10
|
-
tzid?: string;
|
|
11
|
-
latitude?: number;
|
|
12
|
-
longitude?: number;
|
|
13
|
-
cc?: string;
|
|
14
|
-
country?: string;
|
|
15
|
-
admin1?: string;
|
|
16
|
-
asciiname?: string;
|
|
17
|
-
geo?: string;
|
|
18
|
-
zip?: string;
|
|
19
|
-
state?: string;
|
|
20
|
-
stateName?: string;
|
|
21
|
-
geonameid?: number;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Converts a @hebcal/core `Location` to a plain JS object.
|
|
25
|
-
*/
|
|
26
|
-
export declare function locationToPlainObj(location: Location | undefined): LocationPlainObj;
|
package/dist/makeAnchor.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
3
|
-
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
4
|
-
* @example
|
|
5
|
-
* makeAnchor('Rosh Chodesh Adar II') // 'rosh-chodesh-adar-ii'
|
|
6
|
-
*/
|
|
7
|
-
export declare function makeAnchor(s: string): string;
|
package/dist/memo.d.ts
DELETED
package/dist/rss.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
|
-
import { RestApiOptions } from './common';
|
|
3
|
-
export declare function eventsToRss2(events: Event[], options: RestApiOptions): string;
|
|
4
|
-
export declare function eventToRssItem2(ev: Event, options: RestApiOptions): string;
|
package/dist/url.d.ts
DELETED