@hebcal/rest-api
Advanced tools
Comparing version 3.4.5 to 3.5.0
@@ -1,2 +0,2 @@ | ||
/*! @hebcal/rest-api v3.4.5 */ | ||
/*! @hebcal/rest-api v3.5.0 */ | ||
var hebcal__rest_api = (function (exports, core, leyn) { | ||
@@ -751,3 +751,2 @@ 'use strict'; | ||
const guid = linkGuid[1]; | ||
const description = dayFormat.format(evDate); | ||
const categories = getEventCategories(ev); | ||
@@ -757,2 +756,3 @@ const cat0 = categories[0]; | ||
const candles = desc === 'Havdalah' || desc === 'Candle lighting'; | ||
let memo; | ||
@@ -771,4 +771,7 @@ if (candles) { | ||
} | ||
} else { | ||
memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()]; | ||
} | ||
const description = memo || dayFormat.format(evDate); | ||
const geoTags = cat0 == 'candles' ? "<geo:lat>".concat(location.getLatitude(), "</geo:lat>\n<geo:long>").concat(location.getLongitude(), "</geo:long>\n") : ''; | ||
@@ -775,0 +778,0 @@ return "<item>\n<title>".concat(subj, "</title>\n<link>").concat(link, "</link>\n<guid isPermaLink=\"false\">").concat(guid, "</guid>\n<description>").concat(description, "</description>\n<category>").concat(cat0, "</category>\n<pubDate>").concat(pubDate, "</pubDate>\n").concat(geoTags, "</item>\n"); |
@@ -1,2 +0,2 @@ | ||
/*! @hebcal/rest-api v3.4.5 */ | ||
var hebcal__rest_api=function(e,a,t){"use strict";function o(e){if(e&&e.__esModule)return e;var a=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),a.default=e,Object.freeze(a)}var n=o(hebcal__leyning),r={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","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,"")}function s(e){return e<10?"0"+e:String(e)}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function l(e){return h(e.getFullYear())+"-"+s(e.getMonth()+1)+"-"+s(e.getDate())}function c(e){const t=e.getDesc();if("Fast begins"===t||"Fast ends"===t)return["zmanim","fast"];switch(e.getFlags()){case a.flags.OMER_COUNT:return["omer"];case a.flags.HEBREW_DATE:return["hebdate"];case a.flags.PARSHA_HASHAVUA:return["parashat"];case a.flags.DAF_YOMI:return["dafyomi"];case a.flags.ROSH_CHODESH:return["roshchodesh"];case a.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case a.flags.MINOR_FAST:return["holiday","fast"];case a.flags.MAJOR_FAST:return["holiday","fast","major"];case a.flags.MODERN_HOLIDAY:return["holiday","modern"];case a.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case a.flags.MOLAD:return["molad"];case a.flags.USER_EVENT:return["user"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(t){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function d(e,a){let t="Hebcal";const o=a.location;if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(o&&o.name){const e=o.name.indexOf(",");t+=" "+(-1==e?o.name:o.name.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if(a.isHebrewYear||0==e.length)t+=" "+a.year;else{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 m(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=r[e.getDesc()]||r[e.basename()]||"";if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const g=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;function f(e,t){const o=e.getFlags();if(o&g)return"";let r,i="";if(o&a.flags.PARSHA_HASHAVUA)r=n.getLeyningForParshaHaShavua(e,t),i="Torah: ".concat(r.summary),r.reason&&["7","M"].forEach(e=>{const a=r.reason[e];if(a){const t="7"===e?"7th aliyah":"Maftir",o=n.formatAliyahWithBook(r.fullkriyah[e]);i+="\n".concat(t,": ").concat(o," | ").concat(a)}}),r.haftara&&(i+="\nHaftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara));else if(r=n.getLeyningForHoliday(e,t),r&&(r.summary||r.haftara))return r.summary&&(i+="Torah: ".concat(r.summary)),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara),i;return r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}function u(e,a,t,o){"https://www.hebcal.com"!==e.substring(0,22)?t="hebcal.com":a&&-1===e.indexOf("?")&&(e+="?i=on");const n=-1===e.indexOf("?")?"?":"&";return e+n+"utm_source=".concat(t,"&utm_medium=").concat(o)}const b='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',y={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function S(e,t){const o=e.getDate().greg(),n=o.getDate(),r=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?'"'.concat(n,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(n,"/").concat(i,'"');let h="",l="",d="",g='"true"';const f=Boolean(e.eventTime);let u=f?e.renderBrief():e.render();if(e.eventTime){const o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t);l=h='"'.concat(o,'"'),d=s,g='"false"'}let b="Jewish Holidays";const S=e.getFlags();if(f&&t.location&&t.location.name){const e=t.location.name,a=e.indexOf(",");b=-1===a?e:e.substring(0,a)}else if(S&a.flags.DAF_YOMI){const e=u.indexOf(": ");-1!=e&&(b=u.substring(0,e),u=u.substring(e+2))}else{const a=y[c(e)[0]];a&&(b=a)}if(u=u.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=" / ".concat(a))}let H=e.memo||m(e,!0);H||void 0===e.linkedEvent||(H=e.linkedEvent.render());const p=H.replace(/,/g,";").replace(/"/g,"''"),v=f||S&a.flags.CHAG?4:3;return'"'.concat(u,'",').concat(s,",").concat(h,",").concat(d,",").concat(l,",").concat(g,',"').concat(p,'","').concat(v,'","').concat(b,'"')}var H={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"};function p(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),d="object"==typeof t.location?t.location.getTzid():"UTC",m=i?a.Zmanim.formatISOWithTimeZone(d,e.eventTime):l(h),g=c(e);let f=i?e.renderBrief():e.render();const b=e.getDesc(),y="Havdalah"===b||"Candle lighting"===b;if(y){f+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",t)}const S={title:f,date:m,category:g[0]};g.length>1&&(S.subcat=g[1]),"holiday"==g[0]&&e.getFlags()&a.flags.CHAG&&(S.yomtov=!0),f!=b&&(S.title_orig=b);const H=e.renderBrief("he");if(H&&(S.hebrew=a.Locale.hebrewStripNikkud(H)),!y){if(o){const o=t.il,r=e.getFlags()==a.flags.PARSHA_HASHAVUA,i=r?n.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);if(i){S.leyning=A(i);const a=s.getFullYear();if(r&&!o&&a>=5745&&a<=5830){const a=n.getTriennialForParshaHaShavua(e);a&&(S.leyning.triennial=v({},a))}}}const r=e.url();r&&(S.link=u(r,t.il,"js","api"))}const p=e.memo||r[e.basename()];return p?S.memo=p:void 0!==e.linkedEvent&&(S.memo=e.linkedEvent.render()),S}function v(e,a){return Object.keys(a).forEach(t=>{const o=a[t];if(void 0!==o){e["M"==t?"maftir":t]=n.formatAliyahWithBook(o)}}),e}function A(e){const a={};return e.summary&&(a.torah=e.summary),e.haftara&&(a.haftarah=e.haftara),e.sephardic&&(a.haftarah_sephardic=e.sephardic),e.fullkriyah&&v(a,e.fullkriyah),e.reason&&(["7","8","M"].forEach(t=>{if(e.reason[t]){a["M"==t?"maftir":t]+=" | "+e.reason[t]}}),e.reason.haftara&&(a.haftarah+=" | "+e.reason.haftara)),a}function w(e,t,o,n,r,s){let h=e.render();const l=e.getDate().greg(),d=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,t,l,o),m=!!r&&r.getIsrael(),g=function(e,t,o,n){let r,s;const h=e.eventTime||e.getDate().greg(),l=a.Zmanim.formatISOWithTimeZone(o,h),c=l.substring(0,l.indexOf("T")),d=c.replace(/-/g,""),m=i(e.getDesc()),g="".concat(d,"-").concat(m),f=e.url();if(f)r=u(f,t,"shabbat1c","rss").replace(/&/g,"&"),s="".concat(f,"#").concat(g);else{const e="".concat(n,"&dt=").concat(c),a=u(e,t,"shabbat1c","rss").replace(/&/g,"&");s=e.replace(/&/g,"&")+"#".concat(g),r="".concat(a,"#").concat(g)}return[r,s]}(e,m,r?r.getTzid():"UTC",s),f=g[0],b=g[1],y=n.format(l),S=c(e)[0],H=e.getDesc();if("Havdalah"===H||"Candle lighting"===H){const t=h.indexOf(": ");if(-1!=t){const o={location:r,il:m,locale:a.Locale.getLocaleName()},n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",o);h=h.substring(0,t)+": "+n}}const p="candles"==S?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(h,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(b,"</guid>\n<description>").concat(y,"</description>\n<category>").concat(S,"</category>\n<pubDate>").concat(d,"</pubDate>\n").concat(p,"</item>\n")}return e.appendIsraelAndTracking=u,e.countryNames=H,e.eventToClassicApiObject=p,e.eventToCsv=S,e.eventToFullCalendar=function(e,t,o){const n=c(e);"holiday"==n[0]&&e.getFlags()&a.flags.CHAG&&n.push("yomtov");const i=Boolean(e.eventTime),s={title:i||e.getFlags()&a.flags.DAF_YOMI?e.renderBrief():e.render(),start:i?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):l(e.getDate().greg()),allDay:!i,className:n.join(" ")};let h=e.renderBrief("he");if(h){const t=h.indexOf(":");-1!=t&&e.getFlags()&a.flags.DAF_YOMI&&(h=h.substring(t+1)),s.hebrew=a.Locale.hebrewStripNikkud(h)}const d=e.url();d&&(s.url=u(d,o,"js","fc"));const m=e.getDesc();if(!("Havdalah"===m||"Candle lighting"===m)){const t=e.getFlags()&a.flags.PARSHA_HASHAVUA?f(e,o):e.memo||r[e.basename()];t?s.description=t:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem=w,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o={title:d(e,a),date:(new Date).toISOString()},n=a.location;return"object"==typeof n&&"string"==typeof n.name?(o.location={title:n.getName(),city:n.getShortName(),tzid:n.getTzid(),latitude:n.getLatitude(),longitude:n.getLongitude(),cc:n.getCountryCode(),country:H[n.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{n[e]&&(o.location[e]=n[e])})):o.location={geo:"none"},o.items=e.map(e=>p(e,a,t)),o},e.eventsToCsv=function(e,a){return[b].concat(e.map(e=>S(e,a))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,o,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=t.getName(),h=(new Date).getFullYear(),l=a.Locale.gettext("Shabbat")+" Times for "+s,c=(new Date).toUTCString(),d=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"}),m=u(o,t.getIsrael(),"shabbat1c","rss").replace(/&/g,"&");n=n.replace(/&/g,"&");let g='<?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>'.concat(l,"</title>\n<link>").concat(m,'</link>\n<atom:link href="').concat(n,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(s,"</description>\n<language>").concat(r,"</language>\n<copyright>Copyright (c) ").concat(h," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(c,"</lastBuildDate>\n");return e.forEach(e=>{g+=w(e,i,c,d,t,o)}),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=d,e.getDownloadFilename=function(e){let a="hebcal_"+e.year;if(e.isHebrewYear&&(a+="H"),e.month&&(a+="_"+e.month),e.location){a+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return a},e.getEventCategories=c,e.getHolidayDescription=m,e.holidayDescription=r,e.makeAnchor=i,e.makeTorahMemoText=f,e.pad2=s,e.pad4=h,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.timeZoneOffsetStr=function(e,t){return a.Zmanim.timeZoneOffset(e,t)},e.toISOString=l,e.toISOStringWithTimezone=function(e,t,o){const n=l(e);return t?n+"T"+t+":00"+a.Zmanim.timeZoneOffset(o,e):n},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal); | ||
/*! @hebcal/rest-api v3.5.0 */ | ||
var hebcal__rest_api=function(e,a,t){"use strict";function o(e){if(e&&e.__esModule)return e;var a=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),a.default=e,Object.freeze(a)}var n=o(hebcal__leyning),r={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","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,"")}function s(e){return e<10?"0"+e:String(e)}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function l(e){return h(e.getFullYear())+"-"+s(e.getMonth()+1)+"-"+s(e.getDate())}function c(e){const t=e.getDesc();if("Fast begins"===t||"Fast ends"===t)return["zmanim","fast"];switch(e.getFlags()){case a.flags.OMER_COUNT:return["omer"];case a.flags.HEBREW_DATE:return["hebdate"];case a.flags.PARSHA_HASHAVUA:return["parashat"];case a.flags.DAF_YOMI:return["dafyomi"];case a.flags.ROSH_CHODESH:return["roshchodesh"];case a.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case a.flags.MINOR_FAST:return["holiday","fast"];case a.flags.MAJOR_FAST:return["holiday","fast","major"];case a.flags.MODERN_HOLIDAY:return["holiday","modern"];case a.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case a.flags.MOLAD:return["molad"];case a.flags.USER_EVENT:return["user"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(t){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function d(e,a){let t="Hebcal";const o=a.location;if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(o&&o.name){const e=o.name.indexOf(",");t+=" "+(-1==e?o.name:o.name.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if(a.isHebrewYear||0==e.length)t+=" "+a.year;else{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 m(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=r[e.getDesc()]||r[e.basename()]||"";if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const g=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;function f(e,t){const o=e.getFlags();if(o&g)return"";let r,i="";if(o&a.flags.PARSHA_HASHAVUA)r=n.getLeyningForParshaHaShavua(e,t),i="Torah: ".concat(r.summary),r.reason&&["7","M"].forEach(e=>{const a=r.reason[e];if(a){const t="7"===e?"7th aliyah":"Maftir",o=n.formatAliyahWithBook(r.fullkriyah[e]);i+="\n".concat(t,": ").concat(o," | ").concat(a)}}),r.haftara&&(i+="\nHaftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara));else if(r=n.getLeyningForHoliday(e,t),r&&(r.summary||r.haftara))return r.summary&&(i+="Torah: ".concat(r.summary)),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara),i;return r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}function u(e,a,t,o){"https://www.hebcal.com"!==e.substring(0,22)?t="hebcal.com":a&&-1===e.indexOf("?")&&(e+="?i=on");const n=-1===e.indexOf("?")?"?":"&";return e+n+"utm_source=".concat(t,"&utm_medium=").concat(o)}const b='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',y={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function S(e,t){const o=e.getDate().greg(),n=o.getDate(),r=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?'"'.concat(n,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(n,"/").concat(i,'"');let h="",l="",d="",g='"true"';const f=Boolean(e.eventTime);let u=f?e.renderBrief():e.render();if(e.eventTime){const o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t);l=h='"'.concat(o,'"'),d=s,g='"false"'}let b="Jewish Holidays";const S=e.getFlags();if(f&&t.location&&t.location.name){const e=t.location.name,a=e.indexOf(",");b=-1===a?e:e.substring(0,a)}else if(S&a.flags.DAF_YOMI){const e=u.indexOf(": ");-1!=e&&(b=u.substring(0,e),u=u.substring(e+2))}else{const a=y[c(e)[0]];a&&(b=a)}if(u=u.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=" / ".concat(a))}let H=e.memo||m(e,!0);H||void 0===e.linkedEvent||(H=e.linkedEvent.render());const p=H.replace(/,/g,";").replace(/"/g,"''"),v=f||S&a.flags.CHAG?4:3;return'"'.concat(u,'",').concat(s,",").concat(h,",").concat(d,",").concat(l,",").concat(g,',"').concat(p,'","').concat(v,'","').concat(b,'"')}var H={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"};function p(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),d="object"==typeof t.location?t.location.getTzid():"UTC",m=i?a.Zmanim.formatISOWithTimeZone(d,e.eventTime):l(h),g=c(e);let f=i?e.renderBrief():e.render();const b=e.getDesc(),y="Havdalah"===b||"Candle lighting"===b;if(y){f+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",t)}const S={title:f,date:m,category:g[0]};g.length>1&&(S.subcat=g[1]),"holiday"==g[0]&&e.getFlags()&a.flags.CHAG&&(S.yomtov=!0),f!=b&&(S.title_orig=b);const H=e.renderBrief("he");if(H&&(S.hebrew=a.Locale.hebrewStripNikkud(H)),!y){if(o){const o=t.il,r=e.getFlags()==a.flags.PARSHA_HASHAVUA,i=r?n.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);if(i){S.leyning=A(i);const a=s.getFullYear();if(r&&!o&&a>=5745&&a<=5830){const a=n.getTriennialForParshaHaShavua(e);a&&(S.leyning.triennial=v({},a))}}}const r=e.url();r&&(S.link=u(r,t.il,"js","api"))}const p=e.memo||r[e.basename()];return p?S.memo=p:void 0!==e.linkedEvent&&(S.memo=e.linkedEvent.render()),S}function v(e,a){return Object.keys(a).forEach(t=>{const o=a[t];if(void 0!==o){e["M"==t?"maftir":t]=n.formatAliyahWithBook(o)}}),e}function A(e){const a={};return e.summary&&(a.torah=e.summary),e.haftara&&(a.haftarah=e.haftara),e.sephardic&&(a.haftarah_sephardic=e.sephardic),e.fullkriyah&&v(a,e.fullkriyah),e.reason&&(["7","8","M"].forEach(t=>{if(e.reason[t]){a["M"==t?"maftir":t]+=" | "+e.reason[t]}}),e.reason.haftara&&(a.haftarah+=" | "+e.reason.haftara)),a}function w(e,t,o,n,s,h){let l=e.render();const d=e.getDate().greg(),m=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,t,d,o),g=!!s&&s.getIsrael(),b=function(e,t,o,n){let r,s;const h=e.eventTime||e.getDate().greg(),l=a.Zmanim.formatISOWithTimeZone(o,h),c=l.substring(0,l.indexOf("T")),d=c.replace(/-/g,""),m=i(e.getDesc()),g="".concat(d,"-").concat(m),f=e.url();if(f)r=u(f,t,"shabbat1c","rss").replace(/&/g,"&"),s="".concat(f,"#").concat(g);else{const e="".concat(n,"&dt=").concat(c),a=u(e,t,"shabbat1c","rss").replace(/&/g,"&");s=e.replace(/&/g,"&")+"#".concat(g),r="".concat(a,"#").concat(g)}return[r,s]}(e,g,s?s.getTzid():"UTC",h),y=b[0],S=b[1],H=c(e)[0],p=e.getDesc();let v;if("Havdalah"===p||"Candle lighting"===p){const t=l.indexOf(": ");if(-1!=t){const o={location:s,il:g,locale:a.Locale.getLocaleName()},n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",o);l=l.substring(0,t)+": "+n}}else v=e.getFlags()&a.flags.PARSHA_HASHAVUA?f(e,g):e.memo||r[e.basename()];const A=v||n.format(d),w="candles"==H?"<geo:lat>".concat(s.getLatitude(),"</geo:lat>\n<geo:long>").concat(s.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(l,"</title>\n<link>").concat(y,'</link>\n<guid isPermaLink="false">').concat(S,"</guid>\n<description>").concat(A,"</description>\n<category>").concat(H,"</category>\n<pubDate>").concat(m,"</pubDate>\n").concat(w,"</item>\n")}return e.appendIsraelAndTracking=u,e.countryNames=H,e.eventToClassicApiObject=p,e.eventToCsv=S,e.eventToFullCalendar=function(e,t,o){const n=c(e);"holiday"==n[0]&&e.getFlags()&a.flags.CHAG&&n.push("yomtov");const i=Boolean(e.eventTime),s={title:i||e.getFlags()&a.flags.DAF_YOMI?e.renderBrief():e.render(),start:i?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):l(e.getDate().greg()),allDay:!i,className:n.join(" ")};let h=e.renderBrief("he");if(h){const t=h.indexOf(":");-1!=t&&e.getFlags()&a.flags.DAF_YOMI&&(h=h.substring(t+1)),s.hebrew=a.Locale.hebrewStripNikkud(h)}const d=e.url();d&&(s.url=u(d,o,"js","fc"));const m=e.getDesc();if(!("Havdalah"===m||"Candle lighting"===m)){const t=e.getFlags()&a.flags.PARSHA_HASHAVUA?f(e,o):e.memo||r[e.basename()];t?s.description=t:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem=w,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o={title:d(e,a),date:(new Date).toISOString()},n=a.location;return"object"==typeof n&&"string"==typeof n.name?(o.location={title:n.getName(),city:n.getShortName(),tzid:n.getTzid(),latitude:n.getLatitude(),longitude:n.getLongitude(),cc:n.getCountryCode(),country:H[n.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{n[e]&&(o.location[e]=n[e])})):o.location={geo:"none"},o.items=e.map(e=>p(e,a,t)),o},e.eventsToCsv=function(e,a){return[b].concat(e.map(e=>S(e,a))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,o,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=t.getName(),h=(new Date).getFullYear(),l=a.Locale.gettext("Shabbat")+" Times for "+s,c=(new Date).toUTCString(),d=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"}),m=u(o,t.getIsrael(),"shabbat1c","rss").replace(/&/g,"&");n=n.replace(/&/g,"&");let g='<?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>'.concat(l,"</title>\n<link>").concat(m,'</link>\n<atom:link href="').concat(n,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(s,"</description>\n<language>").concat(r,"</language>\n<copyright>Copyright (c) ").concat(h," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(c,"</lastBuildDate>\n");return e.forEach(e=>{g+=w(e,i,c,d,t,o)}),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=d,e.getDownloadFilename=function(e){let a="hebcal_"+e.year;if(e.isHebrewYear&&(a+="H"),e.month&&(a+="_"+e.month),e.location){a+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return a},e.getEventCategories=c,e.getHolidayDescription=m,e.holidayDescription=r,e.makeAnchor=i,e.makeTorahMemoText=f,e.pad2=s,e.pad4=h,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.timeZoneOffsetStr=function(e,t){return a.Zmanim.timeZoneOffset(e,t)},e.toISOString=l,e.toISOStringWithTimezone=function(e,t,o){const n=l(e);return t?n+"T"+t+":00"+a.Zmanim.timeZoneOffset(o,e):n},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal); |
@@ -1,2 +0,2 @@ | ||
/*! @hebcal/rest-api v3.4.5 */ | ||
/*! @hebcal/rest-api v3.5.0 */ | ||
'use strict'; | ||
@@ -760,3 +760,2 @@ | ||
const guid = linkGuid[1]; | ||
const description = dayFormat.format(evDate); | ||
const categories = getEventCategories(ev); | ||
@@ -766,2 +765,3 @@ const cat0 = categories[0]; | ||
const candles = desc === 'Havdalah' || desc === 'Candle lighting'; | ||
let memo; | ||
@@ -780,4 +780,7 @@ if (candles) { | ||
} | ||
} else { | ||
memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()]; | ||
} | ||
const description = memo || dayFormat.format(evDate); | ||
const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : ''; | ||
@@ -784,0 +787,0 @@ return `<item> |
{ | ||
"name": "@hebcal/rest-api", | ||
"version": "3.4.5", | ||
"version": "3.5.0", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -63,3 +63,3 @@ "keywords": [ | ||
"ava": "^3.15.0", | ||
"core-js": "^3.12.1", | ||
"core-js": "^3.13.0", | ||
"eslint": "^7.27.0", | ||
@@ -69,5 +69,5 @@ "eslint-config-google": "^0.14.0", | ||
"jsdoc-to-markdown": "^5.0.3", | ||
"rollup": "^2.49.0", | ||
"rollup": "^2.50.2", | ||
"rollup-plugin-terser": "^7.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152048
2456