@hebcal/rest-api 6.1.3 → 6.1.4

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
2
2
  var hebcal__rest_api = (function (exports, event, reformatTimeStr, hdate, leyning, getLeyningForHoliday, sedra, zmanim, pkgVersion, locale, common) {
3
3
  'use strict';
4
4
 
@@ -159,6 +159,7 @@ function getDownloadFilename(options) {
159
159
  }
160
160
  /**
161
161
  * Returns just the date portion as YYYY-MM-DD
162
+ * @deprecated use `isoDateString` instead
162
163
  */
163
164
  function toISOString(d) {
164
165
  return hdate.isoDateString(d);
@@ -175,11 +176,12 @@ function getEventCategories(ev) {
175
176
  }
176
177
  /**
177
178
  * Renders the event title in default locale, but strips off time
179
+ * @deprecated
178
180
  */
179
- function renderTitleWithoutTime(ev) {
181
+ function renderTitleWithoutTime(ev, locale) {
180
182
  return typeof ev.eventTime === 'undefined'
181
- ? ev.render()
182
- : ev.renderBrief();
183
+ ? ev.render(locale)
184
+ : ev.renderBrief(locale);
183
185
  }
184
186
  function shortLocationName(options) {
185
187
  const loc = options.location;
@@ -545,9 +547,9 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
545
547
  if (title !== desc) {
546
548
  result.title_orig = desc;
547
549
  }
548
- const hebrew = ev.renderBrief('he');
550
+ const hebrew = ev.renderBrief('he-x-NoNikud');
549
551
  if (hebrew) {
550
- result.hebrew = locale.Locale.hebrewStripNikkud(hebrew);
552
+ result.hebrew = hebrew;
551
553
  }
552
554
  if (!candles) {
553
555
  if (leyning$1) {
@@ -777,8 +779,9 @@ function eventToRssItem2(ev, options) {
777
779
  if (candles) {
778
780
  const colon = subj.indexOf(': ');
779
781
  if (colon !== -1) {
780
- const options = { location, il, locale: locale.Locale.getLocaleName() };
781
- const time = reformatTimeStr.reformatTimeStr(ev.eventTimeStr, 'pm', options);
782
+ const locale$1 = options.locale || locale.Locale.getLocaleName();
783
+ const opts = { location, il, locale: locale$1 };
784
+ const time = reformatTimeStr.reformatTimeStr(ev.eventTimeStr, 'pm', opts);
782
785
  subj = subj.substring(0, colon) + ': ' + time;
783
786
  }
784
787
  }
@@ -825,9 +828,9 @@ function eventToFullCalendar(ev, tzid, il) {
825
828
  allDay: !timed,
826
829
  className: classes.join(' '),
827
830
  };
828
- const hebrew = ev.renderBrief('he');
831
+ const hebrew = ev.renderBrief('he-x-NoNikud');
829
832
  if (hebrew) {
830
- result.hebrew = locale.Locale.hebrewStripNikkud(hebrew);
833
+ result.hebrew = hebrew;
831
834
  }
832
835
  const url = ev.url();
833
836
  if (url) {
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v6.1.3 */
2
- var hebcal__rest_api=function(e,a,t,o,n,r,i,h,s,l,d){"use strict";var c={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"};var m={"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","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 Tamuz 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"};function f(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const g=new Map;for(let e=0;e<i.parshiot.length;e++){const a=i.parshiot[e];g.set(f(a),e+1)}const u=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],b=new Set;for(const e of u){const a=f(e);b.add(a);const[t]=a.split("-"),o=g.get(t);g.set(a,o)}function y(e){const a=e.pathname,t=a.lastIndexOf("-"),n=a.substring(t+1),r=a.substring(8,t);if(g.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+="/"+g.get(r),b.has(r)&&(t+="d"),e.pathname=t}else e.pathname="/s/"+a.substring(8)}const p=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"],S=m,w=c;function v(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:w[a]};for(const a of p){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function H(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function A(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].getDate().greg(),o=e[e.length-1].getDate().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}function T(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?S["Shabbat Mevarchim Chodesh"]:S[e.getDesc()]||S[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!==e)return o.substring(0,e)}return o}const C=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function I(e,t){var o;const i=e.getFlags();if(i&C||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 M(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=I(e,t);if(a)return a}catch(e){}return e.memo?e.memo:T(e)}function R(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?y(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()}function D(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&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const B='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',k={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 P(e,o){const n=e.getDate().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,g=Boolean(f.eventTime);let u=D(e)?e.renderBrief(o.locale):e.render(o.locale);if(g){d=l=`"${t.reformatTimeStr(f.eventTimeStr," PM",o)}"`,c=s,m='"false"'}let b="Jewish Holidays";const y=e.getFlags();if(g&&"object"==typeof o.location){const e=o.location.getShortName();e&&(b=e)}else{const a=H(e);for(const e of a){const a=k[e];if("string"==typeof a){b=a;break}}}if(u=u.replace(/,/g,"").replace(/"/g,"''"),o.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=` / ${a}`)}let p=e.memo||T(e,!0);p||void 0===f.linkedEvent||(p=f.linkedEvent.render(o.locale));const S=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),w=Boolean(y&a.flags.CHAG);return`"${u}",${s},${l},${c},${d},${m},"${S}","${g||w?4:3}","${b}"`}function N(e){return o.isoDateString(e.getDate().greg())}function E(e,a){const t={title:A(e,a),date:(new Date).toISOString(),version:s.version};return t.location=v(a.location),e.length&&(t.range={start:N(e[0]),end:N(e[e.length-1])}),t}function F(e,i,s=!0){const c=e,m=c.eventTime,f=Boolean(m),g=e.getDate(),u=g.greg(),b="object"==typeof i.location?i.location.getTzid():"UTC",y=f?h.Zmanim.formatISOWithTimeZone(b,m):o.isoDateString(u),p=H(e),S=e.getFlags();let w=D(e)?e.renderBrief(i.locale):e.render(i.locale);const v=e.getDesc(),A="Havdalah"===v||"Candle lighting"===v;if(A){w+=": "+t.reformatTimeStr(c.eventTimeStr,"pm",i)}const C={title:w,date:y};f||(C.hdate=g.toString()),C.category=p[0],p.length>1&&(C.subcat=p[1]),"holiday"===p[0]&&S&a.flags.CHAG&&(C.yomtov=!0),w!==v&&(C.title_orig=v);const I=e.renderBrief("he");if(I&&(C.hebrew=l.Locale.hebrewStripNikkud(I)),!A){if(s){const t=i.il,o=S===a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);o&&(C.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.fullkriyah&&function(e,a){for(const[t,o]of Object.entries(a))if(void 0!==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,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;C.link=R(t,Boolean(i.il),e,a,o)}}if(S&a.flags.OMER_COUNT){const a=e;C.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")}}}if(S&a.flags.MOLAD){const a=e.molad,t=a.getYear();C.molad={hy:t,hm:o.HDate.getMonthName(a.getMonth(),t),dow:a.getDow(),hour:a.getHour(),minutes:a.getMinutes(),chalakim:a.getChalakim()},delete C.hebrew}if(i.heDateParts&&!f||S&a.flags.HEBREW_DATE){const e=g.getFullYear(),a=g.getMonthName(),t=g.getDate();C.heDateParts={y:o.gematriya(e),m:l.Locale.gettext(a,"he-x-NoNikud"),d:o.gematriya(t)}}const M=e.memo||T(e);return"string"==typeof M&&0!==M.length?C.memo=M.normalize():void 0!==c.linkedEvent&&(C.memo=c.linkedEvent.render(i.locale)),i.includeEvent&&(C.ev=e),C}const Y={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function G(e,a){let o=e.render();const n=e.getDate().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(),d=i?i.getTzid():"UTC";let c=a.utmSource;if(!c){const a=e.url();if(a){"www.hebcal.com"===new URL(a).host&&(c="shabbat1c")}else c="shabbat1c"}const m=a.utmMedium||"rss",g=function(e,a,t,o,n,r){let i,s;const l=e.eventTime||e.getDate().greg(),d=h.Zmanim.formatISOWithTimeZone(t,l),c=d.substring(0,d.indexOf("T")),m=`${c.replace(/-/g,"")}-${f(e.getDesc())}`,g=e.url();if(g)i=R(g,a,n,r).replace(/&/g,"&amp;"),s=`${g}#${m}`;else{const e=`${o}&dt=${c}`,t=R(e,a,n,r).replace(/&/g,"&amp;");s=e.replace(/&/g,"&amp;")+`#${m}`,i=`${t}#${m}`}return[i,s]}(e,s,d,a.mainUrl||"",c,m),u=g[0],b=g[1],y=H(e)[0],p=e.getDesc();let S;if("Havdalah"===p||"Candle lighting"===p){const a=o.indexOf(": ");if(-1!==a){const n={location:i,il:s,locale:l.Locale.getLocaleName()},r=t.reformatTimeStr(e.eventTimeStr,"pm",n);o=o.substring(0,a)+": "+r}}else S=M(e,s);const w=a.dayFormat,v=S||w.format(n);return`<item>\n<title>${o}</title>\n<link>${u}</link>\n<guid isPermaLink="false">${b}</guid>\n<description>${-1===v.indexOf("<")?v:`<![CDATA[${v}]]>`}</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.appendIsraelAndTracking=R,e.countryNames=w,e.eventToClassicApiObject=F,e.eventToCsv=P,e.eventToFullCalendar=function(e,t,n){const r=H(e),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===r[0]&&r.push("yomtov");const s=e,d=s.eventTime,c=Boolean(d),m={title:D(e)?e.renderBrief():e.render(),start:c?h.Zmanim.formatISOWithTimeZone(t,d):o.isoDateString(e.getDate().greg()),allDay:!c,className:r.join(" ")},f=e.renderBrief("he");f&&(m.hebrew=l.Locale.hebrewStripNikkud(f));const g=e.url();if(g){const e="www.hebcal.com"===new URL(g).host?"js":void 0;m.url=R(g,n,e,"fc")}const u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){const a=M(e,n);a?m.description=a:void 0!==s.linkedEvent&&(m.description=s.linkedEvent.render())}return m},e.eventToRssItem2=G,e.eventsToClassicApi=function(e,a,t=!0){const o=E(e,a);return o.items=e.map((e=>F(e,a,t))),o},e.eventsToClassicApiHeader=E,e.eventsToCsv=function(e,a){return[B].concat(e.map((e=>P(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||A(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>${R(a.mainUrl,Boolean(null==t?void 0:t.getIsrael()),s,l,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||Y[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=A,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+="_"+f(o).replace(/[-]/g,"_"))}return a},e.getEventCategories=H,e.getHolidayDescription=T,e.holidayDescription=S,e.locationToPlainObj=v,e.makeAnchor=f,e.makeMemo=M,e.makeTorahMemoText=I,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=D,e.toISOString=function(e){return o.isoDateString(e)},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal,hebcal,hebcal,hebcal,hebcal__leyning);
1
+ /*! @hebcal/rest-api v6.1.4 */
2
+ var hebcal__rest_api=function(e,a,t,o,n,r,i,h,s,l,d){"use strict";var c={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"};var m={"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","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 Tamuz 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"};function f(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const g=new Map;for(let e=0;e<i.parshiot.length;e++){const a=i.parshiot[e];g.set(f(a),e+1)}const u=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],b=new Set;for(const e of u){const a=f(e);b.add(a);const[t]=a.split("-"),o=g.get(t);g.set(a,o)}function y(e){const a=e.pathname,t=a.lastIndexOf("-"),n=a.substring(t+1),r=a.substring(8,t);if(g.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+="/"+g.get(r),b.has(r)&&(t+="d"),e.pathname=t}else e.pathname="/s/"+a.substring(8)}const p=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"],S=m,w=c;function v(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:w[a]};for(const a of p){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function H(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function A(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].getDate().greg(),o=e[e.length-1].getDate().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}function T(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?S["Shabbat Mevarchim Chodesh"]:S[e.getDesc()]||S[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!==e)return o.substring(0,e)}return o}const C=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function I(e,t){var o;const i=e.getFlags();if(i&C||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 M(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=I(e,t);if(a)return a}catch(e){}return e.memo?e.memo:T(e)}function R(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?y(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()}function D(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&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const B='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',k={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 P(e,o){const n=e.getDate().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,g=Boolean(f.eventTime);let u=D(e)?e.renderBrief(o.locale):e.render(o.locale);if(g){d=l=`"${t.reformatTimeStr(f.eventTimeStr," PM",o)}"`,c=s,m='"false"'}let b="Jewish Holidays";const y=e.getFlags();if(g&&"object"==typeof o.location){const e=o.location.getShortName();e&&(b=e)}else{const a=H(e);for(const e of a){const a=k[e];if("string"==typeof a){b=a;break}}}if(u=u.replace(/,/g,"").replace(/"/g,"''"),o.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=` / ${a}`)}let p=e.memo||T(e,!0);p||void 0===f.linkedEvent||(p=f.linkedEvent.render(o.locale));const S=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),w=Boolean(y&a.flags.CHAG);return`"${u}",${s},${l},${c},${d},${m},"${S}","${g||w?4:3}","${b}"`}function N(e){return o.isoDateString(e.getDate().greg())}function E(e,a){const t={title:A(e,a),date:(new Date).toISOString(),version:s.version};return t.location=v(a.location),e.length&&(t.range={start:N(e[0]),end:N(e[e.length-1])}),t}function F(e,i,s=!0){const c=e,m=c.eventTime,f=Boolean(m),g=e.getDate(),u=g.greg(),b="object"==typeof i.location?i.location.getTzid():"UTC",y=f?h.Zmanim.formatISOWithTimeZone(b,m):o.isoDateString(u),p=H(e),S=e.getFlags();let w=D(e)?e.renderBrief(i.locale):e.render(i.locale);const v=e.getDesc(),A="Havdalah"===v||"Candle lighting"===v;if(A){w+=": "+t.reformatTimeStr(c.eventTimeStr,"pm",i)}const C={title:w,date:y};f||(C.hdate=g.toString()),C.category=p[0],p.length>1&&(C.subcat=p[1]),"holiday"===p[0]&&S&a.flags.CHAG&&(C.yomtov=!0),w!==v&&(C.title_orig=v);const I=e.renderBrief("he-x-NoNikud");if(I&&(C.hebrew=I),!A){if(s){const t=i.il,o=S===a.flags.PARSHA_HASHAVUA?n.getLeyningForParshaHaShavua(e,t):r.getLeyningForHoliday(e,t);o&&(C.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.fullkriyah&&function(e,a){for(const[t,o]of Object.entries(a))if(void 0!==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,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;C.link=R(t,Boolean(i.il),e,a,o)}}if(S&a.flags.OMER_COUNT){const a=e;C.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")}}}if(S&a.flags.MOLAD){const a=e.molad,t=a.getYear();C.molad={hy:t,hm:o.HDate.getMonthName(a.getMonth(),t),dow:a.getDow(),hour:a.getHour(),minutes:a.getMinutes(),chalakim:a.getChalakim()},delete C.hebrew}if(i.heDateParts&&!f||S&a.flags.HEBREW_DATE){const e=g.getFullYear(),a=g.getMonthName(),t=g.getDate();C.heDateParts={y:o.gematriya(e),m:l.Locale.gettext(a,"he-x-NoNikud"),d:o.gematriya(t)}}const M=e.memo||T(e);return"string"==typeof M&&0!==M.length?C.memo=M.normalize():void 0!==c.linkedEvent&&(C.memo=c.linkedEvent.render(i.locale)),i.includeEvent&&(C.ev=e),C}const Y={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function G(e,a){let o=e.render();const n=e.getDate().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(),d=i?i.getTzid():"UTC";let c=a.utmSource;if(!c){const a=e.url();if(a){"www.hebcal.com"===new URL(a).host&&(c="shabbat1c")}else c="shabbat1c"}const m=a.utmMedium||"rss",g=function(e,a,t,o,n,r){let i,s;const l=e.eventTime||e.getDate().greg(),d=h.Zmanim.formatISOWithTimeZone(t,l),c=d.substring(0,d.indexOf("T")),m=`${c.replace(/-/g,"")}-${f(e.getDesc())}`,g=e.url();if(g)i=R(g,a,n,r).replace(/&/g,"&amp;"),s=`${g}#${m}`;else{const e=`${o}&dt=${c}`,t=R(e,a,n,r).replace(/&/g,"&amp;");s=e.replace(/&/g,"&amp;")+`#${m}`,i=`${t}#${m}`}return[i,s]}(e,s,d,a.mainUrl||"",c,m),u=g[0],b=g[1],y=H(e)[0],p=e.getDesc();let S;if("Havdalah"===p||"Candle lighting"===p){const n=o.indexOf(": ");if(-1!==n){const r={location:i,il:s,locale:a.locale||l.Locale.getLocaleName()},h=t.reformatTimeStr(e.eventTimeStr,"pm",r);o=o.substring(0,n)+": "+h}}else S=M(e,s);const w=a.dayFormat,v=S||w.format(n);return`<item>\n<title>${o}</title>\n<link>${u}</link>\n<guid isPermaLink="false">${b}</guid>\n<description>${-1===v.indexOf("<")?v:`<![CDATA[${v}]]>`}</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.appendIsraelAndTracking=R,e.countryNames=w,e.eventToClassicApiObject=F,e.eventToCsv=P,e.eventToFullCalendar=function(e,t,n){const r=H(e),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===r[0]&&r.push("yomtov");const s=e,l=s.eventTime,d=Boolean(l),c={title:D(e)?e.renderBrief():e.render(),start:d?h.Zmanim.formatISOWithTimeZone(t,l):o.isoDateString(e.getDate().greg()),allDay:!d,className:r.join(" ")},m=e.renderBrief("he-x-NoNikud");m&&(c.hebrew=m);const f=e.url();if(f){const e="www.hebcal.com"===new URL(f).host?"js":void 0;c.url=R(f,n,e,"fc")}const g=e.getDesc();if(!("Havdalah"===g||"Candle lighting"===g)){const a=M(e,n);a?c.description=a:void 0!==s.linkedEvent&&(c.description=s.linkedEvent.render())}return c},e.eventToRssItem2=G,e.eventsToClassicApi=function(e,a,t=!0){const o=E(e,a);return o.items=e.map((e=>F(e,a,t))),o},e.eventsToClassicApiHeader=E,e.eventsToCsv=function(e,a){return[B].concat(e.map((e=>P(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||A(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>${R(a.mainUrl,Boolean(null==t?void 0:t.getIsrael()),s,l,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||Y[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=A,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+="_"+f(o).replace(/[-]/g,"_"))}return a},e.getEventCategories=H,e.getHolidayDescription=T,e.holidayDescription=S,e.locationToPlainObj=v,e.makeAnchor=f,e.makeMemo=M,e.makeTorahMemoText=I,e.renderTitleWithoutTime=function(e,a){return void 0===e.eventTime?e.render(a):e.renderBrief(a)},e.shouldRenderBrief=D,e.toISOString=function(e){return o.isoDateString(e)},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal,hebcal,hebcal,hebcal,hebcal__leyning);
package/dist/common.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare function locationToPlainObj(location: Location | undefined): Loca
54
54
  export declare function getDownloadFilename(options: RestApiOptions): string;
55
55
  /**
56
56
  * Returns just the date portion as YYYY-MM-DD
57
+ * @deprecated use `isoDateString` instead
57
58
  */
58
59
  export declare function toISOString(d: Date): string;
59
60
  /**
@@ -62,8 +63,9 @@ export declare function toISOString(d: Date): string;
62
63
  export declare function getEventCategories(ev: Event): string[];
63
64
  /**
64
65
  * Renders the event title in default locale, but strips off time
66
+ * @deprecated
65
67
  */
66
- export declare function renderTitleWithoutTime(ev: Event): string;
68
+ export declare function renderTitleWithoutTime(ev: Event, locale?: string): string;
67
69
  /**
68
70
  * Generates a title like "Hebcal 2020 Israel" or "Hebcal May 1993 Providence"
69
71
  */
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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';
@@ -77,9 +77,9 @@ function eventToClassicApiObject(ev, options, leyning = true) {
77
77
  if (title !== desc) {
78
78
  result.title_orig = desc;
79
79
  }
80
- const hebrew = ev.renderBrief('he');
80
+ const hebrew = ev.renderBrief('he-x-NoNikud');
81
81
  if (hebrew) {
82
- result.hebrew = Locale.hebrewStripNikkud(hebrew);
82
+ result.hebrew = hebrew;
83
83
  }
84
84
  if (!candles) {
85
85
  if (leyning) {
@@ -54,6 +54,7 @@ export declare function locationToPlainObj(location: Location | undefined): Loca
54
54
  export declare function getDownloadFilename(options: RestApiOptions): string;
55
55
  /**
56
56
  * Returns just the date portion as YYYY-MM-DD
57
+ * @deprecated use `isoDateString` instead
57
58
  */
58
59
  export declare function toISOString(d: Date): string;
59
60
  /**
@@ -62,8 +63,9 @@ export declare function toISOString(d: Date): string;
62
63
  export declare function getEventCategories(ev: Event): string[];
63
64
  /**
64
65
  * Renders the event title in default locale, but strips off time
66
+ * @deprecated
65
67
  */
66
- export declare function renderTitleWithoutTime(ev: Event): string;
68
+ export declare function renderTitleWithoutTime(ev: Event, locale?: string): string;
67
69
  /**
68
70
  * Generates a title like "Hebcal 2020 Israel" or "Hebcal May 1993 Providence"
69
71
  */
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
2
2
  import { flags } from '@hebcal/core/dist/esm/event';
3
3
  import { HDate, isoDateString } from '@hebcal/hdate';
4
4
  import { getLeyningForParshaHaShavua } from '@hebcal/leyning/dist/esm/leyning';
@@ -84,6 +84,7 @@ function getDownloadFilename(options) {
84
84
  }
85
85
  /**
86
86
  * Returns just the date portion as YYYY-MM-DD
87
+ * @deprecated use `isoDateString` instead
87
88
  */
88
89
  function toISOString(d) {
89
90
  return isoDateString(d);
@@ -100,11 +101,12 @@ function getEventCategories(ev) {
100
101
  }
101
102
  /**
102
103
  * Renders the event title in default locale, but strips off time
104
+ * @deprecated
103
105
  */
104
- function renderTitleWithoutTime(ev) {
106
+ function renderTitleWithoutTime(ev, locale) {
105
107
  return typeof ev.eventTime === 'undefined'
106
- ? ev.render()
107
- : ev.renderBrief();
108
+ ? ev.render(locale)
109
+ : ev.renderBrief(locale);
108
110
  }
109
111
  function shortLocationName(options) {
110
112
  const loc = options.location;
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
3
3
 
4
4
  export { AD, AE, AF, AI, AL, AM, AO, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, 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 };
package/dist/esm/csv.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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, getHolidayDescription } from './common.js';
@@ -1,8 +1,7 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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';
5
- import { Locale } from '@hebcal/core/dist/esm/locale';
6
5
  import { getEventCategories, shouldRenderBrief, appendIsraelAndTracking, makeMemo } from './common.js';
7
6
 
8
7
  /**
@@ -28,9 +27,9 @@ function eventToFullCalendar(ev, tzid, il) {
28
27
  allDay: !timed,
29
28
  className: classes.join(' '),
30
29
  };
31
- const hebrew = ev.renderBrief('he');
30
+ const hebrew = ev.renderBrief('he-x-NoNikud');
32
31
  if (hebrew) {
33
- result.hebrew = Locale.hebrewStripNikkud(hebrew);
32
+ result.hebrew = hebrew;
34
33
  }
35
34
  const url = ev.url();
36
35
  if (url) {
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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","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 Tamuz 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 };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
2
2
  export { eventToCsv, eventsToCsv } from './csv.js';
3
3
  export { makeAnchor } from './makeAnchor.js';
4
4
  export { appendIsraelAndTracking, countryNames, getCalendarTitle, getDownloadFilename, getEventCategories, getHolidayDescription, holidayDescription, locationToPlainObj, makeMemo, makeTorahMemoText, renderTitleWithoutTime, shouldRenderBrief, toISOString } from './common.js';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
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 ('-').
package/dist/esm/rss.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
2
2
  import { Zmanim } from '@hebcal/core/dist/esm/zmanim';
3
3
  import { Locale } from '@hebcal/core/dist/esm/locale';
4
4
  import { reformatTimeStr } from '@hebcal/core/dist/esm/reformatTimeStr';
@@ -117,8 +117,9 @@ function eventToRssItem2(ev, options) {
117
117
  if (candles) {
118
118
  const colon = subj.indexOf(': ');
119
119
  if (colon !== -1) {
120
- const options = { location, il, locale: Locale.getLocaleName() };
121
- const time = reformatTimeStr(ev.eventTimeStr, 'pm', options);
120
+ const locale = options.locale || Locale.getLocaleName();
121
+ const opts = { location, il, locale };
122
+ const time = reformatTimeStr(ev.eventTimeStr, 'pm', opts);
122
123
  subj = subj.substring(0, colon) + ': ' + time;
123
124
  }
124
125
  }
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v6.1.3 */
1
+ /*! @hebcal/rest-api v6.1.4 */
2
2
  import { HDate } from '@hebcal/hdate';
3
3
  import { parshiot } from '@hebcal/core/dist/esm/sedra';
4
4
  import { makeAnchor } from './makeAnchor.js';
@@ -1,5 +1,5 @@
1
- /*! @hebcal/rest-api v6.1.3 */
2
- var hebcalFullCalendar = (function (exports, event, zmanim, hdate, locale, leyning, getLeyningForHoliday, sedra) {
1
+ /*! @hebcal/rest-api v6.1.4 */
2
+ var hebcalFullCalendar = (function (exports, event, zmanim, hdate, leyning, getLeyningForHoliday, sedra) {
3
3
  'use strict';
4
4
 
5
5
  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","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 Tamuz 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"};
@@ -265,9 +265,9 @@ function eventToFullCalendar(ev, tzid, il) {
265
265
  allDay: !timed,
266
266
  className: classes.join(' '),
267
267
  };
268
- const hebrew = ev.renderBrief('he');
268
+ const hebrew = ev.renderBrief('he-x-NoNikud');
269
269
  if (hebrew) {
270
- result.hebrew = locale.Locale.hebrewStripNikkud(hebrew);
270
+ result.hebrew = hebrew;
271
271
  }
272
272
  const url = ev.url();
273
273
  if (url) {
@@ -293,4 +293,4 @@ exports.eventToFullCalendar = eventToFullCalendar;
293
293
 
294
294
  return exports;
295
295
 
296
- })({}, hebcal, hebcal, hebcal, hebcal, hebcal__leyning, hebcal__leyning, hebcal);
296
+ })({}, hebcal, hebcal, hebcal, hebcal__leyning, hebcal__leyning, hebcal);
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v6.1.3 */
2
- var hebcalFullCalendar=function(e,a,t,o,r,h,n,s){"use strict";var i={"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","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 Tamuz 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"};function l(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const d=new Map;for(let e=0;e<s.parshiot.length;e++){const a=s.parshiot[e];d.set(l(a),e+1)}const m=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],c=new Set;for(const e of m){const a=l(e);c.add(a);const[t]=a.split("-"),o=d.get(t);d.set(a,o)}function b(e){const a=e.pathname,t=a.lastIndexOf("-"),r=a.substring(t+1),h=a.substring(8,t);if(d.get(h)&&8===r.length){const a=function(e){const a=e.substring(0,4),t=e.substring(4,6),o=e.substring(6,8),r=parseInt(a,10),h=parseInt(t,10),n=parseInt(o,10),s=new Date(r,h-1,n);return r<100&&s.setFullYear(r),s}(r);let t="/s/"+new o.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(t+="i",e.searchParams.delete("i"));t+="/"+d.get(h),c.has(h)&&(t+="d"),e.pathname=t}else e.pathname="/s/"+a.substring(8)}const f=i;const y=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function u(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const o=function(e,t){var o;const r=e.getFlags();if(r&y||void 0!==e.eventTime)return"";const s=r&a.flags.PARSHA_HASHAVUA?h.getLeyningForParshaHaShavua(e,t):n.getLeyningForHoliday(e,t);let i="";return s&&(s.summary||s.haftara)&&(s.summary&&(i+=`Torah: ${s.summary}`),s.summary&&s.haftara&&(i+="\n"),s.haftara&&(i+="Haftarah: "+s.haftara,(null===(o=s.reason)||void 0===o?void 0:o.haftara)&&(i+=" | "+s.reason.haftara))),(null==s?void 0:s.sephardic)&&(i+="\nHaftarah for Sephardim: "+s.sephardic),i}(e,t);if(o)return o}catch(e){}return e.memo?e.memo:function(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?f["Shabbat Mevarchim Chodesh"]:f[e.getDesc()]||f[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!==e)return o.substring(0,e)}return o}(e)}return e.eventToFullCalendar=function(e,h,n){const s=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"===s[0]&&s.push("yomtov");const l=e,d=l.eventTime,m=Boolean(d),c={title:function(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&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:m?t.Zmanim.formatISOWithTimeZone(h,d):o.isoDateString(e.getDate().greg()),allDay:!m,className:s.join(" ")},f=e.renderBrief("he");f&&(c.hebrew=r.Locale.hebrewStripNikkud(f));const y=e.url();if(y){const e="www.hebcal.com"===new URL(y).host?"js":void 0;c.url=function(e,a,t,o){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?b(r):r.pathname="/o/"+e.substring(6),t&&r.searchParams.set("us",t),r.searchParams.set("um",o),r.toString()}return t||h||(t="hebcal.com"),t&&r.searchParams.set("utm_source",t),r.searchParams.set("utm_medium",o),r.toString()}(y,n,e,"fc")}const g=e.getDesc();if(!("Havdalah"===g||"Candle lighting"===g)){const a=u(e,n);a?c.description=a:void 0!==l.linkedEvent&&(c.description=l.linkedEvent.render())}return c},e}({},hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal);
1
+ /*! @hebcal/rest-api v6.1.4 */
2
+ var hebcalFullCalendar=function(e,a,o,t,r,h,n){"use strict";var s={"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","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 Tamuz 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"};function i(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const l=new Map;for(let e=0;e<n.parshiot.length;e++){const a=n.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),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=s;const f=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function y(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const t=function(e,o){var t;const n=e.getFlags();if(n&f||void 0!==e.eventTime)return"";const s=n&a.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,o):h.getLeyningForHoliday(e,o);let i="";return s&&(s.summary||s.haftara)&&(s.summary&&(i+=`Torah: ${s.summary}`),s.summary&&s.haftara&&(i+="\n"),s.haftara&&(i+="Haftarah: "+s.haftara,(null===(t=s.reason)||void 0===t?void 0:t.haftara)&&(i+=" | "+s.reason.haftara))),(null==s?void 0:s.sephardic)&&(i+="\nHaftarah for Sephardim: "+s.sephardic),i}(e,o);if(t)return t}catch(e){}return e.memo?e.memo:function(e,o=!1){const t=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?b["Shabbat Mevarchim Chodesh"]:b[e.getDesc()]||b[e.basename()]||"").normalize();if(o&&t){const e=t.indexOf(".");if(-1!==e)return t.substring(0,e)}return t}(e)}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),s=e.getFlags();Boolean(s&a.flags.CHAG)&&"holiday"===n[0]&&n.push("yomtov");const i=e,l=i.eventTime,d=Boolean(l),m={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&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:d?o.Zmanim.formatISOWithTimeZone(r,l):t.isoDateString(e.getDate().greg()),allDay:!d,className:n.join(" ")},b=e.renderBrief("he-x-NoNikud");b&&(m.hebrew=b);const f=e.url();if(f){const e="www.hebcal.com"===new URL(f).host?"js":void 0;m.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()}(f,h,e,"fc")}const u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){const a=y(e,h);a?m.description=a:void 0!==i.linkedEvent&&(m.description=i.linkedEvent.render())}return m},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/rest-api",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
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": "^5.9.5",
32
- "@hebcal/hdate": "^0.14.0",
33
- "@hebcal/leyning": "^9.1.0"
31
+ "@hebcal/core": "^5.9.8",
32
+ "@hebcal/hdate": "^0.14.2",
33
+ "@hebcal/leyning": "^9.2.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "rollup -c",
@@ -50,11 +50,11 @@
50
50
  "@rollup/plugin-node-resolve": "^16.0.1",
51
51
  "@rollup/plugin-terser": "^0.4.4",
52
52
  "@rollup/plugin-typescript": "^12.1.2",
53
- "@types/node": "^22.15.14",
53
+ "@types/node": "^22.15.21",
54
54
  "gts": "^5.3.1",
55
- "rollup": "^4.40.2",
56
- "typedoc": "^0.28.4",
55
+ "rollup": "^4.41.1",
56
+ "typedoc": "^0.28.5",
57
57
  "typescript": "^5.8.3",
58
- "vitest": "^3.1.3"
58
+ "vitest": "^3.1.4"
59
59
  }
60
60
  }