Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hebcal/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/rest-api - npm Package Compare versions

Comparing version 3.7.0 to 3.7.2

4

dist/bundle.min.js

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v3.7.0 */
var hebcal__rest_api=function(e,a,t){"use strict";function n(e){if(e&&e.__esModule)return e;var a=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),a.default=e,Object.freeze(a)}var o=n(hebcal__leyning),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||function(){return this}()||Function("return this")(),h={},c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={},u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,m=f&&!u.call({1:2},1);d.f=m?function(e){var a=f(this,e);return!!a&&a.enumerable}:u;var g=function(e,a){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:a}},b={}.toString,y=function(e){return b.call(e).slice(8,-1)},p="".split,S=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==y(e)?p.call(e,""):Object(e)}:Object,w=S,A=function(e){return v(w(e))},H=function(e){return"object"==typeof e?null!==e:"function"==typeof e},T=H,C=function(e,a){if(!T(e))return e;var t,n;if(a&&"function"==typeof(t=e.toString)&&!T(n=t.call(e)))return n;if("function"==typeof(t=e.valueOf)&&!T(n=t.call(e)))return n;if(!a&&"function"==typeof(t=e.toString)&&!T(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")},I=S,R=function(e){return Object(I(e))},M={}.hasOwnProperty,O=Object.hasOwn||function(e,a){return M.call(R(e),a)},E=H,B=s.document,D=E(B)&&E(B.createElement),P=function(e){return D?B.createElement(e):{}},k=P,F=!l&&!c((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),N=l,x=d,L=g,G=A,Y=C,_=O,j=F,z=Object.getOwnPropertyDescriptor;h.f=N?z:function(e,a){if(e=G(e),a=Y(a,!0),j)try{return z(e,a)}catch(e){}if(_(e,a))return L(!x.f.call(e,a),e[a])};var U={},K=H,J=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},Z=l,W=F,V=J,q=C,Q=Object.defineProperty;U.f=Z?Q:function(e,a,t){if(V(e),a=q(a,!0),V(t),W)try{return Q(e,a,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[a]=t.value),e};var $=U,X=g,ee=l?function(e,a,t){return $.f(e,a,X(1,t))}:function(e,a,t){return e[a]=t,e},ae={exports:{}},te=s,ne=ee,oe=function(e,a){try{ne(te,e,a)}catch(t){te[e]=a}return a},re=oe,ie="__core-js_shared__",se=s[ie]||re(ie,{}),he=se,ce=Function.toString;"function"!=typeof he.inspectSource&&(he.inspectSource=function(e){return ce.call(e)});var le=he.inspectSource,de=le,ue=s.WeakMap,fe="function"==typeof ue&&/native code/.test(de(ue)),me={exports:{}},ge=se;(me.exports=function(e,a){return ge[e]||(ge[e]=void 0!==a?a:{})})("versions",[]).push({version:"3.15.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var be,ye,pe,Se=0,ve=Math.random(),we=me.exports,Ae=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Se+ve).toString(36)},He=we("keys"),Te=function(e){return He[e]||(He[e]=Ae(e))},Ce={},Ie=fe,Re=H,Me=ee,Oe=O,Ee=se,Be=Te,De=Ce,Pe="Object already initialized",ke=s.WeakMap;if(Ie||Ee.state){var Fe=Ee.state||(Ee.state=new ke),Ne=Fe.get,xe=Fe.has,Le=Fe.set;be=function(e,a){if(xe.call(Fe,e))throw new TypeError(Pe);return a.facade=e,Le.call(Fe,e,a),a},ye=function(e){return Ne.call(Fe,e)||{}},pe=function(e){return xe.call(Fe,e)}}else{var Ge=Be("state");De[Ge]=!0,be=function(e,a){if(Oe(e,Ge))throw new TypeError(Pe);return a.facade=e,Me(e,Ge,a),a},ye=function(e){return Oe(e,Ge)?e[Ge]:{}},pe=function(e){return Oe(e,Ge)}}var Ye={set:be,get:ye,has:pe,enforce:function(e){return pe(e)?ye(e):be(e,{})},getterFor:function(e){return function(a){var t;if(!Re(a)||(t=ye(a)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}},_e=s,je=ee,ze=O,Ue=oe,Ke=le,Je=Ye.get,Ze=Ye.enforce,We=String(String).split("String");(ae.exports=function(e,a,t,n){var o,r=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet;"function"==typeof t&&("string"!=typeof a||ze(t,"name")||je(t,"name",a),(o=Ze(t)).source||(o.source=We.join("string"==typeof a?a:""))),e!==_e?(r?!s&&e[a]&&(i=!0):delete e[a],i?e[a]=t:je(e,a,t)):i?e[a]=t:Ue(a,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Je(this).source||Ke(this)}));var Ve=s,qe=s,Qe=function(e){return"function"==typeof e?e:void 0},$e=function(e,a){return arguments.length<2?Qe(Ve[e])||Qe(qe[e]):Ve[e]&&Ve[e][a]||qe[e]&&qe[e][a]},Xe={},ea=Math.ceil,aa=Math.floor,ta=function(e){return isNaN(e=+e)?0:(e>0?aa:ea)(e)},na=ta,oa=Math.min,ra=ta,ia=Math.max,sa=Math.min,ha=A,ca=function(e){return e>0?oa(na(e),9007199254740991):0},la=function(e,a){var t=ra(e);return t<0?ia(t+a,0):sa(t,a)},da=function(e){return function(a,t,n){var o,r=ha(a),i=ca(r.length),s=la(n,i);if(e&&t!=t){for(;i>s;)if((o=r[s++])!=o)return!0}else for(;i>s;s++)if((e||s in r)&&r[s]===t)return e||s||0;return!e&&-1}},ua={includes:da(!0),indexOf:da(!1)},fa=O,ma=A,ga=ua.indexOf,ba=Ce,ya=function(e,a){var t,n=ma(e),o=0,r=[];for(t in n)!fa(ba,t)&&fa(n,t)&&r.push(t);for(;a.length>o;)fa(n,t=a[o++])&&(~ga(r,t)||r.push(t));return r},pa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sa=ya,va=pa.concat("length","prototype");Xe.f=Object.getOwnPropertyNames||function(e){return Sa(e,va)};var wa={};wa.f=Object.getOwnPropertySymbols;var Aa=Xe,Ha=wa,Ta=J,Ca=$e("Reflect","ownKeys")||function(e){var a=Aa.f(Ta(e)),t=Ha.f;return t?a.concat(t(e)):a},Ia=O,Ra=Ca,Ma=h,Oa=U,Ea=c,Ba=/#|\.prototype\./,Da=function(e,a){var t=ka[Pa(e)];return t==Na||t!=Fa&&("function"==typeof a?Ea(a):!!a)},Pa=Da.normalize=function(e){return String(e).replace(Ba,".").toLowerCase()},ka=Da.data={},Fa=Da.NATIVE="N",Na=Da.POLYFILL="P",xa=Da,La=s,Ga=h.f,Ya=ee,_a=ae.exports,ja=oe,za=function(e,a){for(var t=Ra(a),n=Oa.f,o=Ma.f,r=0;r<t.length;r++){var i=t[r];Ia(e,i)||n(e,i,o(a,i))}},Ua=xa,Ka=J,Ja={},Za=c,Wa=function(e,a){return RegExp(e,a)};Ja.UNSUPPORTED_Y=Za((function(){var e=Wa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ja.BROKEN_CARET=Za((function(){var e=Wa("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var Va,qa=ya,Qa=pa,$a=Object.keys||function(e){return qa(e,Qa)},Xa=U,et=J,at=$a,tt=l?Object.defineProperties:function(e,a){et(e);for(var t,n=at(a),o=n.length,r=0;o>r;)Xa.f(e,t=n[r++],a[t]);return e},nt=$e("document","documentElement"),ot=J,rt=tt,it=pa,st=Ce,ht=nt,ct=P,lt=Te("IE_PROTO"),dt=function(){},ut=function(e){return"<script>"+e+"</"+"script>"},ft=function(){try{Va=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,a;ft=Va?function(e){e.write(ut("")),e.close();var a=e.parentWindow.Object;return e=null,a}(Va):((a=ct("iframe")).style.display="none",ht.appendChild(a),a.src=String("javascript:"),(e=a.contentWindow.document).open(),e.write(ut("document.F=Object")),e.close(),e.F);for(var t=it.length;t--;)delete ft.prototype[it[t]];return ft()};st[lt]=!0;var mt,gt,bt=Object.create||function(e,a){var t;return null!==e?(dt.prototype=ot(e),t=new dt,dt.prototype=null,t[lt]=e):t=ft(),void 0===a?t:rt(t,a)},yt=c((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pt=c((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),St=function(){var e=Ka(this),a="";return e.global&&(a+="g"),e.ignoreCase&&(a+="i"),e.multiline&&(a+="m"),e.dotAll&&(a+="s"),e.unicode&&(a+="u"),e.sticky&&(a+="y"),a},vt=Ja,wt=me.exports,At=bt,Ht=Ye.get,Tt=yt,Ct=pt,It=RegExp.prototype.exec,Rt=wt("native-string-replace",String.prototype.replace),Mt=It,Ot=(mt=/a/,gt=/b*/g,It.call(mt,"a"),It.call(gt,"a"),0!==mt.lastIndex||0!==gt.lastIndex),Et=vt.UNSUPPORTED_Y||vt.BROKEN_CARET,Bt=void 0!==/()??/.exec("")[1];(Ot||Bt||Et||Tt||Ct)&&(Mt=function(e){var a,t,n,o,r,i,s,h=this,c=Ht(h),l=c.raw;if(l)return l.lastIndex=h.lastIndex,a=Mt.call(l,e),h.lastIndex=l.lastIndex,a;var d=c.groups,u=Et&&h.sticky,f=St.call(h),m=h.source,g=0,b=e;if(u&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),b=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(m="(?: "+m+")",b=" "+b,g++),t=new RegExp("^(?:"+m+")",f)),Bt&&(t=new RegExp("^"+m+"$(?!\\s)",f)),Ot&&(n=h.lastIndex),o=It.call(u?t:h,b),u?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:Ot&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),Bt&&o&&o.length>1&&Rt.call(o[0],t,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o&&d)for(o.groups=i=At(null),r=0;r<d.length;r++)i[(s=d[r])[0]]=o[s[1]];return o});(function(e,a){var t,n,o,r,i,s=e.target,h=e.global,c=e.stat;if(t=h?La:c?La[s]||ja(s,{}):(La[s]||{}).prototype)for(n in a){if(r=a[n],o=e.noTargetGet?(i=Ga(t,n))&&i.value:t[n],!Ua(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;za(r,o)}(e.sham||o&&o.sham)&&Ya(r,"sham",!0),_a(t,n,r,e)}})({target:"RegExp",proto:!0,forced:/./.exec!==Mt},{exec:Mt});var Dt={"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","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Pt(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function kt(e){return e<10?"0"+e:String(e)}function Ft(e){return e<0?"-00"+Ft(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Nt(e){return Ft(e.getFullYear())+"-"+kt(e.getMonth()+1)+"-"+kt(e.getDate())}function xt(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"];case a.flags.MINOR_HOLIDAY:return["holiday","minor"]}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":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}function Lt(e,a){let t="Hebcal";const n=a.location;if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");t+=" "+(-1==e?n.name:n.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(),n=e[e.length-1].getDate().greg();if(a.getFullYear()!=n.getFullYear())t+=" "+a.getFullYear()+"-"+n.getFullYear();else if(a.getMonth()==n.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function Gt(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=Dt[e.getDesc()]||Dt[e.basename()]||"";if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const Yt=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;function _t(e,t){const n=e.getFlags();if(n&Yt)return"";let r,i="";if(n&a.flags.PARSHA_HASHAVUA)r=o.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",n=o.formatAliyahWithBook(r.fullkriyah[e]);i+="\n".concat(t,": ").concat(n," | ").concat(a)}}),r.haftara&&(i+="\nHaftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara));else if(r=o.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 jt(e,a,t,n){"https://www.hebcal.com"!==e.substring(0,22)?t="hebcal.com":a&&-1===e.indexOf("?")&&(e+="?i=on");const o=-1===e.indexOf("?")?"?":"&";return e+o+"utm_source=".concat(t,"&utm_medium=").concat(n)}const zt='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',Ut={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function Kt(e,t){const n=e.getDate().greg(),o=n.getDate(),r=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=t.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let h="",c="",l="",d='"true"';const u=Boolean(e.eventTime);let f=u?e.renderBrief():e.render();if(e.eventTime){const n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t);c=h='"'.concat(n,'"'),l=s,d='"false"'}let m="Jewish Holidays";const g=e.getFlags();if(u&&t.location&&t.location.name){const e=t.location.name,a=e.indexOf(",");m=-1===a?e:e.substring(0,a)}else if(g&a.flags.DAF_YOMI){const e=f.indexOf(": ");-1!=e&&(m=f.substring(0,e),f=f.substring(e+2))}else{const a=Ut[xt(e)[0]];a&&(m=a)}if(f=f.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(f+=" / ".concat(a))}let b=e.memo||Gt(e,!0);b||void 0===e.linkedEvent||(b=e.linkedEvent.render());const y=b.replace(/,/g,";").replace(/"/g,"''"),p=u||g&a.flags.CHAG?4:3;return'"'.concat(f,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(d,',"').concat(y,'","').concat(p,'","').concat(m,'"')}var Jt={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 Zt(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),h="object"==typeof t.location?t.location.getTzid():"UTC",c=r?a.Zmanim.formatISOWithTimeZone(h,e.eventTime):Nt(s),l=xt(e);let d=r?e.renderBrief():e.render();const u=e.getDesc(),f="Havdalah"===u||"Candle lighting"===u;if(f){d+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",t)}const m={title:d,date:c,category:l[0]};l.length>1&&(m.subcat=l[1]),"holiday"==l[0]&&e.getFlags()&a.flags.CHAG&&(m.yomtov=!0),d!=u&&(m.title_orig=u);const g=e.renderBrief("he");if(g&&(m.hebrew=a.Locale.hebrewStripNikkud(g)),!f){if(n){const n=t.il,r=e.getFlags()==a.flags.PARSHA_HASHAVUA,s=r?o.getLeyningForParshaHaShavua(e,n):o.getLeyningForHoliday(e,n);if(s){m.leyning=Vt(s);const a=i.getFullYear();if(r&&!n&&a>=5745&&a<=5830){const a=o.getTriennialForParshaHaShavua(e);a&&(m.leyning.triennial=Wt({},a))}}}const r=e.url();r&&(m.link=jt(r,t.il,"js","api"))}const b=e.memo||Dt[e.basename()];return b?m.memo=b:void 0!==e.linkedEvent&&(m.memo=e.linkedEvent.render()),m}function Wt(e,a){return Object.keys(a).forEach(t=>{const n=a[t];if(void 0!==n){e["M"==t?"maftir":t]=o.formatAliyahWithBook(n)}}),e}function Vt(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&&Wt(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 qt(e,t,n,o,r,i){let s=e.render();const h=e.getDate().greg(),c=function(e,a,t,n){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,t,h,n),l=!!r&&r.getIsrael(),d=function(e,t,n,o){let r,i;const s=e.eventTime||e.getDate().greg(),h=a.Zmanim.formatISOWithTimeZone(n,s),c=h.substring(0,h.indexOf("T")),l=c.replace(/-/g,""),d=Pt(e.getDesc()),u="".concat(l,"-").concat(d),f=e.url();if(f)r=jt(f,t,"shabbat1c","rss").replace(/&/g,"&amp;"),i="".concat(f,"#").concat(u);else{const e="".concat(o,"&dt=").concat(c),a=jt(e,t,"shabbat1c","rss").replace(/&/g,"&amp;");i=e.replace(/&/g,"&amp;")+"#".concat(u),r="".concat(a,"#").concat(u)}return[r,i]}(e,l,r?r.getTzid():"UTC",i),u=d[0],f=d[1],m=xt(e)[0],g=e.getDesc();let b;if("Havdalah"===g||"Candle lighting"===g){const t=s.indexOf(": ");if(-1!=t){const n={location:r,il:l,locale:a.Locale.getLocaleName()},o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);s=s.substring(0,t)+": "+o}}else b=e.getFlags()&a.flags.PARSHA_HASHAVUA?_t(e,l):e.memo||Dt[e.basename()];const y=b||o.format(h),p="candles"==m?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(s,"</title>\n<link>").concat(u,'</link>\n<guid isPermaLink="false">').concat(f,"</guid>\n<description>").concat(y,"</description>\n<category>").concat(m,"</category>\n<pubDate>").concat(c,"</pubDate>\n").concat(p,"</item>\n")}return e.appendIsraelAndTracking=jt,e.countryNames=Jt,e.eventToClassicApiObject=Zt,e.eventToCsv=Kt,e.eventToFullCalendar=function(e,t,n){const o=xt(e);"holiday"==o[0]&&e.getFlags()&a.flags.CHAG&&o.push("yomtov");const r=Boolean(e.eventTime),i={title:r||e.getFlags()&a.flags.DAF_YOMI?e.renderBrief():e.render(),start:r?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):Nt(e.getDate().greg()),allDay:!r,className:o.join(" ")};let s=e.renderBrief("he");if(s){const t=s.indexOf(":");-1!=t&&e.getFlags()&a.flags.DAF_YOMI&&(s=s.substring(t+1)),i.hebrew=a.Locale.hebrewStripNikkud(s)}const h=e.url();h&&(i.url=jt(h,n,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const t=e.getFlags()&a.flags.PARSHA_HASHAVUA?_t(e,n):e.memo||Dt[e.basename()];t?i.description=t:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e.eventToRssItem=qt,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:Lt(e,a),date:(new Date).toISOString()},o=a.location;return"object"==typeof o&&"string"==typeof o.name?(n.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:Jt[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(n.location[e]=o[e])})):n.location={geo:"none"},n.items=e.map(e=>Zt(e,a,t)),n},e.eventsToCsv=function(e,a){return[zt].concat(e.map(e=>Kt(e,a))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,n,o){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(),c=a.Locale.gettext("Shabbat")+" Times for "+s,l=(new Date).toUTCString(),d=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"}),u=jt(n,t.getIsrael(),"shabbat1c","rss").replace(/&/g,"&amp;");o=o.replace(/&/g,"&amp;");let f='<?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(c,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(o,'" 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(l,"</lastBuildDate>\n");return e.forEach(e=>{f+=qt(e,i,l,d,t,n)}),f+="</channel>\n</rss>\n",f},e.getCalendarTitle=Lt,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=xt,e.getHolidayDescription=Gt,e.holidayDescription=Dt,e.makeAnchor=Pt,e.makeTorahMemoText=_t,e.pad2=kt,e.pad4=Ft,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=Nt,e.toISOStringWithTimezone=function(e,t,n){const o=Nt(e);return t?o+"T"+t+":00"+a.Zmanim.timeZoneOffset(n,e):o},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal);
/*! @hebcal/rest-api v3.7.2 */
var hebcal__rest_api=function(e,a,t){"use strict";function n(e){if(e&&e.__esModule)return e;var a=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),a.default=e,Object.freeze(a)}var o=n(hebcal__leyning),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||function(){return this}()||Function("return this")(),h={},c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={},u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,m=f&&!u.call({1:2},1);d.f=m?function(e){var a=f(this,e);return!!a&&a.enumerable}:u;var g=function(e,a){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:a}},b={}.toString,y=function(e){return b.call(e).slice(8,-1)},p="".split,S=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==y(e)?p.call(e,""):Object(e)}:Object,w=S,A=function(e){return v(w(e))},H=function(e){return"object"==typeof e?null!==e:"function"==typeof e},T=H,C=function(e,a){if(!T(e))return e;var t,n;if(a&&"function"==typeof(t=e.toString)&&!T(n=t.call(e)))return n;if("function"==typeof(t=e.valueOf)&&!T(n=t.call(e)))return n;if(!a&&"function"==typeof(t=e.toString)&&!T(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")},I=S,R=function(e){return Object(I(e))},M={}.hasOwnProperty,O=Object.hasOwn||function(e,a){return M.call(R(e),a)},E=H,B=s.document,D=E(B)&&E(B.createElement),P=function(e){return D?B.createElement(e):{}},F=P,k=!l&&!c((function(){return 7!=Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a})),N=l,x=d,L=g,G=A,Y=C,_=O,j=k,z=Object.getOwnPropertyDescriptor;h.f=N?z:function(e,a){if(e=G(e),a=Y(a,!0),j)try{return z(e,a)}catch(e){}if(_(e,a))return L(!x.f.call(e,a),e[a])};var U={},K=H,J=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},Z=l,W=k,V=J,q=C,Q=Object.defineProperty;U.f=Z?Q:function(e,a,t){if(V(e),a=q(a,!0),V(t),W)try{return Q(e,a,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[a]=t.value),e};var $=U,X=g,ee=l?function(e,a,t){return $.f(e,a,X(1,t))}:function(e,a,t){return e[a]=t,e},ae={exports:{}},te=s,ne=ee,oe=function(e,a){try{ne(te,e,a)}catch(t){te[e]=a}return a},re=oe,ie="__core-js_shared__",se=s[ie]||re(ie,{}),he=se,ce=Function.toString;"function"!=typeof he.inspectSource&&(he.inspectSource=function(e){return ce.call(e)});var le=he.inspectSource,de=le,ue=s.WeakMap,fe="function"==typeof ue&&/native code/.test(de(ue)),me={exports:{}},ge=se;(me.exports=function(e,a){return ge[e]||(ge[e]=void 0!==a?a:{})})("versions",[]).push({version:"3.15.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var be,ye,pe,Se=0,ve=Math.random(),we=me.exports,Ae=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Se+ve).toString(36)},He=we("keys"),Te=function(e){return He[e]||(He[e]=Ae(e))},Ce={},Ie=fe,Re=H,Me=ee,Oe=O,Ee=se,Be=Te,De=Ce,Pe="Object already initialized",Fe=s.WeakMap;if(Ie||Ee.state){var ke=Ee.state||(Ee.state=new Fe),Ne=ke.get,xe=ke.has,Le=ke.set;be=function(e,a){if(xe.call(ke,e))throw new TypeError(Pe);return a.facade=e,Le.call(ke,e,a),a},ye=function(e){return Ne.call(ke,e)||{}},pe=function(e){return xe.call(ke,e)}}else{var Ge=Be("state");De[Ge]=!0,be=function(e,a){if(Oe(e,Ge))throw new TypeError(Pe);return a.facade=e,Me(e,Ge,a),a},ye=function(e){return Oe(e,Ge)?e[Ge]:{}},pe=function(e){return Oe(e,Ge)}}var Ye={set:be,get:ye,has:pe,enforce:function(e){return pe(e)?ye(e):be(e,{})},getterFor:function(e){return function(a){var t;if(!Re(a)||(t=ye(a)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}},_e=s,je=ee,ze=O,Ue=oe,Ke=le,Je=Ye.get,Ze=Ye.enforce,We=String(String).split("String");(ae.exports=function(e,a,t,n){var o,r=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet;"function"==typeof t&&("string"!=typeof a||ze(t,"name")||je(t,"name",a),(o=Ze(t)).source||(o.source=We.join("string"==typeof a?a:""))),e!==_e?(r?!s&&e[a]&&(i=!0):delete e[a],i?e[a]=t:je(e,a,t)):i?e[a]=t:Ue(a,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Je(this).source||Ke(this)}));var Ve=s,qe=s,Qe=function(e){return"function"==typeof e?e:void 0},$e=function(e,a){return arguments.length<2?Qe(Ve[e])||Qe(qe[e]):Ve[e]&&Ve[e][a]||qe[e]&&qe[e][a]},Xe={},ea=Math.ceil,aa=Math.floor,ta=function(e){return isNaN(e=+e)?0:(e>0?aa:ea)(e)},na=ta,oa=Math.min,ra=ta,ia=Math.max,sa=Math.min,ha=A,ca=function(e){return e>0?oa(na(e),9007199254740991):0},la=function(e,a){var t=ra(e);return t<0?ia(t+a,0):sa(t,a)},da=function(e){return function(a,t,n){var o,r=ha(a),i=ca(r.length),s=la(n,i);if(e&&t!=t){for(;i>s;)if((o=r[s++])!=o)return!0}else for(;i>s;s++)if((e||s in r)&&r[s]===t)return e||s||0;return!e&&-1}},ua={includes:da(!0),indexOf:da(!1)},fa=O,ma=A,ga=ua.indexOf,ba=Ce,ya=function(e,a){var t,n=ma(e),o=0,r=[];for(t in n)!fa(ba,t)&&fa(n,t)&&r.push(t);for(;a.length>o;)fa(n,t=a[o++])&&(~ga(r,t)||r.push(t));return r},pa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sa=ya,va=pa.concat("length","prototype");Xe.f=Object.getOwnPropertyNames||function(e){return Sa(e,va)};var wa={};wa.f=Object.getOwnPropertySymbols;var Aa=Xe,Ha=wa,Ta=J,Ca=$e("Reflect","ownKeys")||function(e){var a=Aa.f(Ta(e)),t=Ha.f;return t?a.concat(t(e)):a},Ia=O,Ra=Ca,Ma=h,Oa=U,Ea=c,Ba=/#|\.prototype\./,Da=function(e,a){var t=Fa[Pa(e)];return t==Na||t!=ka&&("function"==typeof a?Ea(a):!!a)},Pa=Da.normalize=function(e){return String(e).replace(Ba,".").toLowerCase()},Fa=Da.data={},ka=Da.NATIVE="N",Na=Da.POLYFILL="P",xa=Da,La=s,Ga=h.f,Ya=ee,_a=ae.exports,ja=oe,za=function(e,a){for(var t=Ra(a),n=Oa.f,o=Ma.f,r=0;r<t.length;r++){var i=t[r];Ia(e,i)||n(e,i,o(a,i))}},Ua=xa,Ka=J,Ja={},Za=c,Wa=function(e,a){return RegExp(e,a)};Ja.UNSUPPORTED_Y=Za((function(){var e=Wa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ja.BROKEN_CARET=Za((function(){var e=Wa("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var Va,qa=ya,Qa=pa,$a=Object.keys||function(e){return qa(e,Qa)},Xa=U,et=J,at=$a,tt=l?Object.defineProperties:function(e,a){et(e);for(var t,n=at(a),o=n.length,r=0;o>r;)Xa.f(e,t=n[r++],a[t]);return e},nt=$e("document","documentElement"),ot=J,rt=tt,it=pa,st=Ce,ht=nt,ct=P,lt=Te("IE_PROTO"),dt=function(){},ut=function(e){return"<script>"+e+"</"+"script>"},ft=function(){try{Va=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,a;ft=Va?function(e){e.write(ut("")),e.close();var a=e.parentWindow.Object;return e=null,a}(Va):((a=ct("iframe")).style.display="none",ht.appendChild(a),a.src=String("javascript:"),(e=a.contentWindow.document).open(),e.write(ut("document.F=Object")),e.close(),e.F);for(var t=it.length;t--;)delete ft.prototype[it[t]];return ft()};st[lt]=!0;var mt,gt,bt=Object.create||function(e,a){var t;return null!==e?(dt.prototype=ot(e),t=new dt,dt.prototype=null,t[lt]=e):t=ft(),void 0===a?t:rt(t,a)},yt=c((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pt=c((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),St=function(){var e=Ka(this),a="";return e.global&&(a+="g"),e.ignoreCase&&(a+="i"),e.multiline&&(a+="m"),e.dotAll&&(a+="s"),e.unicode&&(a+="u"),e.sticky&&(a+="y"),a},vt=Ja,wt=me.exports,At=bt,Ht=Ye.get,Tt=yt,Ct=pt,It=RegExp.prototype.exec,Rt=wt("native-string-replace",String.prototype.replace),Mt=It,Ot=(mt=/a/,gt=/b*/g,It.call(mt,"a"),It.call(gt,"a"),0!==mt.lastIndex||0!==gt.lastIndex),Et=vt.UNSUPPORTED_Y||vt.BROKEN_CARET,Bt=void 0!==/()??/.exec("")[1];(Ot||Bt||Et||Tt||Ct)&&(Mt=function(e){var a,t,n,o,r,i,s,h=this,c=Ht(h),l=c.raw;if(l)return l.lastIndex=h.lastIndex,a=Mt.call(l,e),h.lastIndex=l.lastIndex,a;var d=c.groups,u=Et&&h.sticky,f=St.call(h),m=h.source,g=0,b=e;if(u&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),b=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(m="(?: "+m+")",b=" "+b,g++),t=new RegExp("^(?:"+m+")",f)),Bt&&(t=new RegExp("^"+m+"$(?!\\s)",f)),Ot&&(n=h.lastIndex),o=It.call(u?t:h,b),u?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:Ot&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),Bt&&o&&o.length>1&&Rt.call(o[0],t,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o&&d)for(o.groups=i=At(null),r=0;r<d.length;r++)i[(s=d[r])[0]]=o[s[1]];return o});(function(e,a){var t,n,o,r,i,s=e.target,h=e.global,c=e.stat;if(t=h?La:c?La[s]||ja(s,{}):(La[s]||{}).prototype)for(n in a){if(r=a[n],o=e.noTargetGet?(i=Ga(t,n))&&i.value:t[n],!Ua(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;za(r,o)}(e.sham||o&&o.sham)&&Ya(r,"sham",!0),_a(t,n,r,e)}})({target:"RegExp",proto:!0,forced:/./.exec!==Mt},{exec:Mt});var Dt={"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","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Pt(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Ft(e){return e<10?"0"+e:String(e)}function kt(e){return e<0?"-00"+kt(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Nt(e){return kt(e.getFullYear())+"-"+Ft(e.getMonth()+1)+"-"+Ft(e.getDate())}function xt(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"];case a.flags.MINOR_HOLIDAY:return["holiday","minor"]}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":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}function Lt(e,a){let t="Hebcal";const n=a.location;if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");t+=" "+(-1==e?n.name:n.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(),n=e[e.length-1].getDate().greg();if(a.getFullYear()!=n.getFullYear())t+=" "+a.getFullYear()+"-"+n.getFullYear();else if(a.getMonth()==n.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function Gt(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=Dt[e.getDesc()]||Dt[e.basename()]||"";if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const Yt=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;function _t(e,t){const n=e.getFlags();if(n&Yt)return"";const r=n&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t);let i="";return r&&(r.summary||r.haftara)&&(r.summary&&(i+="Torah: ".concat(r.summary)),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara))),r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}function jt(e,a,t,n){"https://www.hebcal.com"!==e.substring(0,22)?t="hebcal.com":a&&-1===e.indexOf("?")&&(e+="?i=on");const o=-1===e.indexOf("?")?"?":"&";return e+o+"utm_source=".concat(t,"&utm_medium=").concat(n)}const zt='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',Ut={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function Kt(e,t){const n=e.getDate().greg(),o=n.getDate(),r=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=t.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let h="",c="",l="",d='"true"';const u=Boolean(e.eventTime);let f=u?e.renderBrief():e.render();if(e.eventTime){const n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t);c=h='"'.concat(n,'"'),l=s,d='"false"'}let m="Jewish Holidays";const g=e.getFlags();if(u&&t.location&&t.location.name){const e=t.location.name,a=e.indexOf(",");m=-1===a?e:e.substring(0,a)}else if(g&a.flags.DAF_YOMI){const e=f.indexOf(": ");-1!=e&&(m=f.substring(0,e),f=f.substring(e+2))}else{const a=Ut[xt(e)[0]];a&&(m=a)}if(f=f.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(f+=" / ".concat(a))}let b=e.memo||Gt(e,!0);b||void 0===e.linkedEvent||(b=e.linkedEvent.render());const y=b.replace(/,/g,";").replace(/"/g,"''"),p=u||g&a.flags.CHAG?4:3;return'"'.concat(f,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(d,',"').concat(y,'","').concat(p,'","').concat(m,'"')}var Jt={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 Zt(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),h="object"==typeof t.location?t.location.getTzid():"UTC",c=r?a.Zmanim.formatISOWithTimeZone(h,e.eventTime):Nt(s),l=xt(e);let d=r?e.renderBrief():e.render();const u=e.getDesc(),f="Havdalah"===u||"Candle lighting"===u;if(f){d+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",t)}const m={title:d,date:c,category:l[0]};l.length>1&&(m.subcat=l[1]),"holiday"==l[0]&&e.getFlags()&a.flags.CHAG&&(m.yomtov=!0),d!=u&&(m.title_orig=u);const g=e.renderBrief("he");if(g&&(m.hebrew=a.Locale.hebrewStripNikkud(g)),!f){if(n){const n=t.il,r=e.getFlags()==a.flags.PARSHA_HASHAVUA,s=r?o.getLeyningForParshaHaShavua(e,n):o.getLeyningForHoliday(e,n);if(s){m.leyning=Vt(s);const a=i.getFullYear();if(r&&!n&&a>=5745&&a<=5830){const a=o.getTriennialForParshaHaShavua(e);a&&(m.leyning.triennial=Wt({},a))}}}const r=e.url();r&&(m.link=jt(r,t.il,"js","api"))}const b=e.memo||Dt[e.basename()];return b?m.memo=b:void 0!==e.linkedEvent&&(m.memo=e.linkedEvent.render()),m}function Wt(e,a){return Object.keys(a).forEach(t=>{const n=a[t];if(void 0!==n){e["M"==t?"maftir":t]=o.formatAliyahWithBook(n)}}),e}function Vt(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&&Wt(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 qt(e,t,n,o,r,i){let s=e.render();const h=e.getDate().greg(),c=function(e,a,t,n){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,t,h,n),l=!!r&&r.getIsrael(),d=function(e,t,n,o){let r,i;const s=e.eventTime||e.getDate().greg(),h=a.Zmanim.formatISOWithTimeZone(n,s),c=h.substring(0,h.indexOf("T")),l=c.replace(/-/g,""),d=Pt(e.getDesc()),u="".concat(l,"-").concat(d),f=e.url();if(f)r=jt(f,t,"shabbat1c","rss").replace(/&/g,"&amp;"),i="".concat(f,"#").concat(u);else{const e="".concat(o,"&dt=").concat(c),a=jt(e,t,"shabbat1c","rss").replace(/&/g,"&amp;");i=e.replace(/&/g,"&amp;")+"#".concat(u),r="".concat(a,"#").concat(u)}return[r,i]}(e,l,r?r.getTzid():"UTC",i),u=d[0],f=d[1],m=xt(e)[0],g=e.getDesc();let b;if("Havdalah"===g||"Candle lighting"===g){const t=s.indexOf(": ");if(-1!=t){const n={location:r,il:l,locale:a.Locale.getLocaleName()},o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);s=s.substring(0,t)+": "+o}}else b=e.getFlags()&a.flags.PARSHA_HASHAVUA?_t(e,l):e.memo||Dt[e.basename()];const y=b||o.format(h),p="candles"==m?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(s,"</title>\n<link>").concat(u,'</link>\n<guid isPermaLink="false">').concat(f,"</guid>\n<description>").concat(y,"</description>\n<category>").concat(m,"</category>\n<pubDate>").concat(c,"</pubDate>\n").concat(p,"</item>\n")}return e.appendIsraelAndTracking=jt,e.countryNames=Jt,e.eventToClassicApiObject=Zt,e.eventToCsv=Kt,e.eventToFullCalendar=function(e,t,n){const o=xt(e);"holiday"==o[0]&&e.getFlags()&a.flags.CHAG&&o.push("yomtov");const r=Boolean(e.eventTime),i={title:r||e.getFlags()&a.flags.DAF_YOMI?e.renderBrief():e.render(),start:r?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):Nt(e.getDate().greg()),allDay:!r,className:o.join(" ")};let s=e.renderBrief("he");if(s){const t=s.indexOf(":");-1!=t&&e.getFlags()&a.flags.DAF_YOMI&&(s=s.substring(t+1)),i.hebrew=a.Locale.hebrewStripNikkud(s)}const h=e.url();h&&(i.url=jt(h,n,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const t=e.getFlags()&a.flags.PARSHA_HASHAVUA?_t(e,n):e.memo||Dt[e.basename()];t?i.description=t:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e.eventToRssItem=qt,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:Lt(e,a),date:(new Date).toISOString()},o=a.location;return"object"==typeof o&&"string"==typeof o.name?(n.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:Jt[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(n.location[e]=o[e])})):n.location={geo:"none"},n.items=e.map(e=>Zt(e,a,t)),n},e.eventsToCsv=function(e,a){return[zt].concat(e.map(e=>Kt(e,a))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,n,o){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(),c=a.Locale.gettext("Shabbat")+" Times for "+s,l=(new Date).toUTCString(),d=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"}),u=jt(n,t.getIsrael(),"shabbat1c","rss").replace(/&/g,"&amp;");o=o.replace(/&/g,"&amp;");let f='<?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(c,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(o,'" 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(l,"</lastBuildDate>\n");return e.forEach(e=>{f+=qt(e,i,l,d,t,n)}),f+="</channel>\n</rss>\n",f},e.getCalendarTitle=Lt,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=xt,e.getHolidayDescription=Gt,e.holidayDescription=Dt,e.makeAnchor=Pt,e.makeTorahMemoText=_t,e.pad2=Ft,e.pad4=kt,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=Nt,e.toISOStringWithTimezone=function(e,t,n){const o=Nt(e);return t?o+"T"+t+":00"+a.Zmanim.timeZoneOffset(n,e):o},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal);

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v3.7.0 */
/*! @hebcal/rest-api v3.7.2 */
'use strict';

@@ -301,23 +301,16 @@

let reading;
const reading = mask & core.flags.PARSHA_HASHAVUA ? leyn__namespace.getLeyningForParshaHaShavua(ev, il) : leyn__namespace.getLeyningForHoliday(ev, il);
let memo = '';
if (mask & core.flags.PARSHA_HASHAVUA) {
reading = leyn__namespace.getLeyningForParshaHaShavua(ev, il);
memo = `Torah: ${reading.summary}`;
if (reading && (reading.summary || reading.haftara)) {
if (reading.summary) {
memo += `Torah: ${reading.summary}`;
}
if (reading.reason) {
['7', 'M'].forEach(num => {
const special = reading.reason[num];
if (special) {
const aname = num === '7' ? '7th aliyah' : 'Maftir';
const verses = leyn__namespace.formatAliyahWithBook(reading.fullkriyah[num]);
memo += `\n${aname}: ${verses} | ${special}`;
}
});
if (reading.summary && reading.haftara) {
memo += '\n';
}
if (reading.haftara) {
memo += '\nHaftarah: ' + reading.haftara;
memo += 'Haftarah: ' + reading.haftara;

@@ -328,20 +321,2 @@ if (reading.reason && reading.reason.haftara) {

}
} else {
reading = leyn__namespace.getLeyningForHoliday(ev, il);
if (reading && (reading.summary || reading.haftara)) {
if (reading.summary) {
memo += `Torah: ${reading.summary}`;
}
if (reading.summary && reading.haftara) {
memo += '\n';
}
if (reading.haftara) {
memo += 'Haftarah: ' + reading.haftara;
}
return memo;
}
}

@@ -348,0 +323,0 @@

{
"name": "@hebcal/rest-api",
"version": "3.7.0",
"version": "3.7.2",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -24,5 +24,5 @@ "keywords": [

"dependencies": {
"@hebcal/core": "^3.19.0",
"@hebcal/core": "^3.21.0",
"@hebcal/geo-sqlite": "^3.4.1",
"@hebcal/leyning": "^4.6.1"
"@hebcal/leyning": "^4.6.2"
},

@@ -55,3 +55,3 @@ "scripts": {

"devDependencies": {
"@ava/babel": "^1.0.1",
"@ava/babel": "^2.0.0",
"@babel/core": "^7.14.6",

@@ -65,10 +65,10 @@ "@babel/preset-env": "^7.14.7",

"ava": "^3.15.0",
"core-js": "^3.15.1",
"eslint": "^7.29.0",
"core-js": "^3.15.2",
"eslint": "^7.30.0",
"eslint-config-google": "^0.14.0",
"jsdoc": "^3.6.7",
"jsdoc-to-markdown": "^5.0.3",
"rollup": "^2.52.3",
"jsdoc-to-markdown": "^7.0.1",
"rollup": "^2.52.8",
"rollup-plugin-terser": "^7.0.2"
}
}
# @hebcal/rest-api
Jewish holidays and Hebrew calendar as plain JSON objects, RSS, and CSV export
[![Build Status](https://circleci.com/gh/hebcal/hebcal-rest-api.svg?style=svg)](https://circleci.com/gh/hebcal/hebcal-rest-api)
## Installation

@@ -5,0 +7,0 @@ ```bash

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc