@hebcal/core 3.46.6 → 3.46.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/greg0.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  /*
3
3
  * More minimal greg routines
4
4
  */
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1889,7 +1889,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
1889
1889
  return new HDate(day, month, hyear);
1890
1890
  }
1891
1891
 
1892
- var version="3.46.6";
1892
+ var version="3.46.8";
1893
1893
 
1894
1894
  var headers={"plural-forms":"nplurals=2; plural=(n > 1);"};var contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
1895
1895
 
@@ -1,2 +1,2 @@
1
- /*! @hebcal/core v3.46.6 */
2
- var hebcal=function(e){"use strict";function t(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function r(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var r=100,n=void 0;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function n(e){var n=parseInt(e,10);if(!n)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",o=Math.floor(n/1e3);if(o>0&&5!==o){for(var u=r(o),i=0;i<u.length;i++)a+=t(u[i]);a+="׳"}var c=r(n%1e3);if(1==c.length)return a+t(c[0])+"׳";for(var s=0;s<c.length;s++)s+1===c.length&&(a+="״"),a+=t(c[s]);return a}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function i(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var h=[0,31,28,31,30,31,30,31,31,30,31,30,31],l=[h,h.slice()];function f(e,t){return e-t*Math.floor(e/t)}function y(e,t){return Math.floor(e/t)}function v(e){return!(e%4||!(e%100)&&e%400)}function m(e){return"object"===a(e)&&Date.prototype===e.__proto__}function d(e){if(!m(e))throw new TypeError("Argument not a Date: ".concat(e));return g(e.getFullYear(),e.getMonth()+1,e.getDate())}function g(e,t,r){var n=e-1;return 365*n+y(n,4)-y(n,100)+y(n,400)+y(367*t-362,12)+(t<=2?0:v(e)?-1:-2)+r}function b(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,r=y(t,146097),n=f(t,146097),a=y(n,36524),o=f(n,36524),u=y(o,1461),i=y(f(o,1461),365),c=400*r+100*a+4*u+i;return 4!=a&&4!=i?c+1:c}(e=Math.trunc(e)),r=y(12*(e-g(t,1,1)+(e<g(t,3,1)?0:v(t)?1:2))+373,367),n=e-g(t,r,1)+1,a=new Date(t,r-1,n);return t<100&&t>=0&&a.setFullYear(t),a}l[1][2]=29;var w=function(){function e(){o(this,e)}return i(e,null,[{key:"isLeapYear",value:function(e){return v(e)}},{key:"daysInMonth",value:function(e,t){return function(e,t){return l[+v(t)][e]}(e,t)}},{key:"isDate",value:function(e){return m(e)}},{key:"dayOfYear",value:function(e){if(!m(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getMonth(),r=e.getDate()+31*t;return t>1&&(r-=Math.floor((4*(t+1)+23)/10),v(e.getFullYear())&&r++),r}},{key:"greg2abs",value:function(e){return d(e)}},{key:"abs2greg",value:function(e){return b(e)}}]),e}();c(w,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);var k={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},p={h:"he",a:"ashkenazi",s:"en","":"en"},A=function(){function e(){o(this,e)}return i(e,null,[{key:"lookupTranslation",value:function(e,t){var r=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[r]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var r=this.lookupTranslation(e,t);return void 0===r?e:r}},{key:"addLocale",value:function(e,t){if("object"!==a(t.contexts)||"object"!==a(t.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=t.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),r=this.locales[t];if(!r)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=p[t]||t,this.activeLocale=r,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var r=t&&t.toLowerCase()||this.activeName;if(!r)return this.getEnOrdinal(e);switch(r){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();c(A,"locales",Object.create(null)),c(A,"activeLocale",null),c(A,"activeName",null),A.addLocale("en",k),A.addLocale("s",k),A.addLocale("",k),A.useLocale("en");var I={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},N=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],E=[N.concat(["Adar","Nisan"]),N.concat(["Adar I","Adar II","Nisan"])],T=Object.create(null),D=-1373428;function L(e,t,r){if(e<1)throw new RangeError("hebrew2abs: invalid year ".concat(e));var n=r;if(t<7){for(var a=7;a<=H(e);a++)n+=R(a,e);for(var o=1;o<t;o++)n+=R(o,e)}else for(var u=7;u<t;u++)n+=R(u,e);return D+V(e)+n-1}function M(e){return D+V(e)}function S(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));if((e=Math.trunc(e))<=D)throw new RangeError("abs2hebrew: ".concat(e," is before epoch"));for(var t=Math.floor((e-D)/365.24682220597794);M(t)<=e;)++t;for(var r=e<L(--t,1,1)?7:1;e>L(t,r,R(r,t));)++r;return{yy:t,mm:r,dd:1+e-L(t,r,1)}}function Y(e){return(1+7*e)%19<7}function H(e){return 12+Y(e)}function R(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!Y(t)||8===e&&!_(t)||9===e&&C(t)?29:30}function O(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return E[+Y(t)][e]}function V(e){var t=T[e]=T[e]||function(e){var t=e-1,r=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+r%1080*793,a=5+12*r+793*Math.floor(r/1080)+Math.floor(n/1080),o=n%1080+a%24*1080,u=1+29*r+Math.floor(a/24),i=u+(o>=19440||2==u%7&&o>=9924&&!Y(e)||1==u%7&&o>=16789&&Y(t));return i+(i%7==0||i%7==3||i%7==5)}(e);return t}function F(e){return V(e+1)-V(e)}function _(e){return F(e)%10==5}function C(e){return F(e)%10==3}function j(e){throw new TypeError(e)}var x="day",z="week",U="month",K="year",B={d:x,w:z,M:U,y:K},P={day:x,week:z,month:U,year:K},J=function(){function e(t,r,n){if(o(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,n=parseInt(n,10),isNaN(n))throw new TypeError("HDate called with bad year argument: ".concat(n));if(this.year=n,this.setMonth(r),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var a="number"!=typeof t||isNaN(t)?m(t)?d(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:j("HDate called with bad argument: ".concat(t)):t,u="number"==typeof a,i=u?S(a):a;this.day=i.dd,this.month=i.mm,this.year=i.yy,u&&(this.abs0=a)}}return i(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return Y(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=H(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return R(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return f(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Z(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Z(this),this}},{key:"setDate",value:function(e){return this.day=e,Z(this),this}},{key:"greg",value:function(){return b(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=L(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return O(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||A.getLocaleName(),a=this.getDate(),o=A.gettext(this.getMonthName(),n),u=A.ordinal(a,n),i=e.getDayOfTranslation(n),c="".concat(u).concat(i," ").concat(o);if(r){var s=this.getFullYear();return"".concat(c,", ").concat(s)}return c}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=A.gettext(this.getMonthName(),"he"),r=this.getFullYear();return n(e)+" "+t+" "+n(r)}},{key:"before",value:function(e){return q(e,this,-1)}},{key:"onOrBefore",value:function(e){return q(e,this,0)}},{key:"nearest",value:function(e){return q(e,this,3)}},{key:"onOrAfter",value:function(e){return q(e,this,6)}},{key:"after",value:function(e){return q(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((r=e.standardizeUnits(r))===x)return new e(this.abs()+t);if(r===z)return new e(this.abs()+7*t);if(r===K)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(r===U){var n=new e(this),a=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+a*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),r=this.getMonthName();return"".concat(e," ").concat(r," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,r){return L(e,t,r)}},{key:"abs2hebrew",value:function(e){return S(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=A.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=B[e]||String(e||"").toLowerCase().replace(/s$/,"");return P[t]||j("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return Y(e)}},{key:"monthsInYear",value:function(e){return H(e)}},{key:"daysInMonth",value:function(e,t){return R(e,t)}},{key:"getMonthName",value:function(e,t){return O(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return F(e)}},{key:"longCheshvan",value:function(e){return _(e)}},{key:"shortKislev",value:function(e){return C(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return I.NISAN;case"i":return I.IYYAR;case"e":return I.ELUL;case"c":case"ח":return I.CHESHVAN;case"k":case"כ":return I.KISLEV;case"s":switch(t[1]){case"i":return I.SIVAN;case"h":return I.SHVAT}case"t":switch(t[1]){case"a":return I.TAMUZ;case"i":return I.TISHREI;case"e":return I.TEVET}break;case"a":switch(t[1]){case"v":return I.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II}break;case"ס":return I.SIVAN;case"ט":return I.TEVET;case"ש":return I.SHVAT;case"א":switch(t[1]){case"ב":return I.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II;case"י":return I.IYYAR;case"ל":return I.ELUL}break;case"ת":switch(t[1]){case"מ":return I.TAMUZ;case"ש":return I.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===a(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Z(e){$(e),function(e){e.day<1&&(e.month==I.TISHREI&&(e.year-=1),e.day+=R(e.month,e.year),e.month-=1,Z(e));e.day>R(e.month,e.year)&&(e.month===I.ELUL&&(e.year+=1),e.day-=R(e.month,e.year),e.month+=1,Z(e));$(e)}(e)}function $(e){e.month!==I.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=H(e.year),e.year-=1,Z(e)):e.month>H(e.year)&&(e.month-=H(e.year),e.year+=1,Z(e)):(e.month-=1,Z(e)),delete e.abs0}function q(e,t,r){return new J(J.dayOnOrBefore(e,t.abs()+r))}var G=I.NISAN,Q=I.CHESHVAN,W=I.KISLEV,X=I.TEVET,ee=I.SHVAT,te=I.ADAR_I,re=I.ADAR_II;var ne={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}}};A.addLocale("he",ne),A.addLocale("h",ne);var ae=ne.contexts[""],oe={};return Object.keys(ae).forEach((function(e){oe[e]=[A.hebrewStripNikkud(ae[e][0])]})),A.addLocale("he-x-NoNikud",{headers:ne.headers,contexts:{"":oe}}),e.HDate=J,e.Locale=A,e.gematriya=n,e.getBirthdayOrAnniversary=function(e,t){var r=J.isHDate(t)?t:new J(t),n=r.getFullYear();if(!(e<=n)){var a=Y(n),o=r.getMonth(),u=r.getDate();return o==te&&!a||o==re&&a?o=H(e):o!=Q||30!=u||_(e)?o==W&&30==u&&C(e)?(o=X,u=1):o==te&&30==u&&a&&!Y(e)&&(o=G,u=1):(o=W,u=1),new J(u,o,e)}},e.getYahrzeit=function(e,t){var r=J.isHDate(t)?t:new J(t),n={yy:r.getFullYear(),mm:r.getMonth(),dd:r.getDate()};if(!(e<=n.yy))return n.mm!=Q||30!=n.dd||_(n.yy+1)?n.mm==W&&30==n.dd&&C(n.yy+1)?n=S(L(e,X,1)-1):n.mm==re?n.mm=H(e):n.mm!=te||30!=n.dd||Y(e)||(n.dd=30,n.mm=ee):n=S(L(e,W,1)-1),n.mm!=Q||30!=n.dd||_(e)?n.mm==W&&30==n.dd&&C(e)&&(n.mm=X,n.dd=1):(n.mm=W,n.dd=1),new J(n.dd,n.mm,e)},e.greg=w,e.months=I,e.version="3.46.6",e}({});
1
+ /*! @hebcal/core v3.46.8 */
2
+ var hebcal=function(e){"use strict";function t(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function r(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var r=100,n=void 0;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function n(e){var n=parseInt(e,10);if(!n)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",o=Math.floor(n/1e3);if(o>0&&5!==o){for(var u=r(o),i=0;i<u.length;i++)a+=t(u[i]);a+="׳"}var c=r(n%1e3);if(1==c.length)return a+t(c[0])+"׳";for(var s=0;s<c.length;s++)s+1===c.length&&(a+="״"),a+=t(c[s]);return a}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function i(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var h=[0,31,28,31,30,31,30,31,31,30,31,30,31],l=[h,h.slice()];function f(e,t){return e-t*Math.floor(e/t)}function y(e,t){return Math.floor(e/t)}function v(e){return!(e%4||!(e%100)&&e%400)}function m(e){return"object"===a(e)&&Date.prototype===e.__proto__}function d(e){if(!m(e))throw new TypeError("Argument not a Date: ".concat(e));return g(e.getFullYear(),e.getMonth()+1,e.getDate())}function g(e,t,r){var n=e-1;return 365*n+y(n,4)-y(n,100)+y(n,400)+y(367*t-362,12)+(t<=2?0:v(e)?-1:-2)+r}function b(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,r=y(t,146097),n=f(t,146097),a=y(n,36524),o=f(n,36524),u=y(o,1461),i=y(f(o,1461),365),c=400*r+100*a+4*u+i;return 4!=a&&4!=i?c+1:c}(e=Math.trunc(e)),r=y(12*(e-g(t,1,1)+(e<g(t,3,1)?0:v(t)?1:2))+373,367),n=e-g(t,r,1)+1,a=new Date(t,r-1,n);return t<100&&t>=0&&a.setFullYear(t),a}l[1][2]=29;var w=function(){function e(){o(this,e)}return i(e,null,[{key:"isLeapYear",value:function(e){return v(e)}},{key:"daysInMonth",value:function(e,t){return function(e,t){return l[+v(t)][e]}(e,t)}},{key:"isDate",value:function(e){return m(e)}},{key:"dayOfYear",value:function(e){if(!m(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getMonth(),r=e.getDate()+31*t;return t>1&&(r-=Math.floor((4*(t+1)+23)/10),v(e.getFullYear())&&r++),r}},{key:"greg2abs",value:function(e){return d(e)}},{key:"abs2greg",value:function(e){return b(e)}}]),e}();c(w,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);var k={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},p={h:"he",a:"ashkenazi",s:"en","":"en"},A=function(){function e(){o(this,e)}return i(e,null,[{key:"lookupTranslation",value:function(e,t){var r=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[r]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var r=this.lookupTranslation(e,t);return void 0===r?e:r}},{key:"addLocale",value:function(e,t){if("object"!==a(t.contexts)||"object"!==a(t.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=t.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),r=this.locales[t];if(!r)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=p[t]||t,this.activeLocale=r,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var r=t&&t.toLowerCase()||this.activeName;if(!r)return this.getEnOrdinal(e);switch(r){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();c(A,"locales",Object.create(null)),c(A,"activeLocale",null),c(A,"activeName",null),A.addLocale("en",k),A.addLocale("s",k),A.addLocale("",k),A.useLocale("en");var I={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},N=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],E=[N.concat(["Adar","Nisan"]),N.concat(["Adar I","Adar II","Nisan"])],T=Object.create(null),D=-1373428;function L(e,t,r){if(e<1)throw new RangeError("hebrew2abs: invalid year ".concat(e));var n=r;if(t<7){for(var a=7;a<=H(e);a++)n+=R(a,e);for(var o=1;o<t;o++)n+=R(o,e)}else for(var u=7;u<t;u++)n+=R(u,e);return D+V(e)+n-1}function M(e){return D+V(e)}function S(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));if((e=Math.trunc(e))<=D)throw new RangeError("abs2hebrew: ".concat(e," is before epoch"));for(var t=Math.floor((e-D)/365.24682220597794);M(t)<=e;)++t;for(var r=e<L(--t,1,1)?7:1;e>L(t,r,R(r,t));)++r;return{yy:t,mm:r,dd:1+e-L(t,r,1)}}function Y(e){return(1+7*e)%19<7}function H(e){return 12+Y(e)}function R(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!Y(t)||8===e&&!_(t)||9===e&&C(t)?29:30}function O(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return E[+Y(t)][e]}function V(e){var t=T[e]=T[e]||function(e){var t=e-1,r=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+r%1080*793,a=5+12*r+793*Math.floor(r/1080)+Math.floor(n/1080),o=n%1080+a%24*1080,u=1+29*r+Math.floor(a/24),i=u+(o>=19440||2==u%7&&o>=9924&&!Y(e)||1==u%7&&o>=16789&&Y(t));return i+(i%7==0||i%7==3||i%7==5)}(e);return t}function F(e){return V(e+1)-V(e)}function _(e){return F(e)%10==5}function C(e){return F(e)%10==3}function j(e){throw new TypeError(e)}var x="day",z="week",U="month",K="year",B={d:x,w:z,M:U,y:K},P={day:x,week:z,month:U,year:K},J=function(){function e(t,r,n){if(o(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,n=parseInt(n,10),isNaN(n))throw new TypeError("HDate called with bad year argument: ".concat(n));if(this.year=n,this.setMonth(r),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var a="number"!=typeof t||isNaN(t)?m(t)?d(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:j("HDate called with bad argument: ".concat(t)):t,u="number"==typeof a,i=u?S(a):a;this.day=i.dd,this.month=i.mm,this.year=i.yy,u&&(this.abs0=a)}}return i(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return Y(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=H(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return R(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return f(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Z(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Z(this),this}},{key:"setDate",value:function(e){return this.day=e,Z(this),this}},{key:"greg",value:function(){return b(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=L(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return O(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||A.getLocaleName(),a=this.getDate(),o=A.gettext(this.getMonthName(),n),u=A.ordinal(a,n),i=e.getDayOfTranslation(n),c="".concat(u).concat(i," ").concat(o);if(r){var s=this.getFullYear();return"".concat(c,", ").concat(s)}return c}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=A.gettext(this.getMonthName(),"he"),r=this.getFullYear();return n(e)+" "+t+" "+n(r)}},{key:"before",value:function(e){return q(e,this,-1)}},{key:"onOrBefore",value:function(e){return q(e,this,0)}},{key:"nearest",value:function(e){return q(e,this,3)}},{key:"onOrAfter",value:function(e){return q(e,this,6)}},{key:"after",value:function(e){return q(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((r=e.standardizeUnits(r))===x)return new e(this.abs()+t);if(r===z)return new e(this.abs()+7*t);if(r===K)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(r===U){var n=new e(this),a=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+a*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),r=this.getMonthName();return"".concat(e," ").concat(r," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,r){return L(e,t,r)}},{key:"abs2hebrew",value:function(e){return S(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=A.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=B[e]||String(e||"").toLowerCase().replace(/s$/,"");return P[t]||j("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return Y(e)}},{key:"monthsInYear",value:function(e){return H(e)}},{key:"daysInMonth",value:function(e,t){return R(e,t)}},{key:"getMonthName",value:function(e,t){return O(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return F(e)}},{key:"longCheshvan",value:function(e){return _(e)}},{key:"shortKislev",value:function(e){return C(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return I.NISAN;case"i":return I.IYYAR;case"e":return I.ELUL;case"c":case"ח":return I.CHESHVAN;case"k":case"כ":return I.KISLEV;case"s":switch(t[1]){case"i":return I.SIVAN;case"h":return I.SHVAT}case"t":switch(t[1]){case"a":return I.TAMUZ;case"i":return I.TISHREI;case"e":return I.TEVET}break;case"a":switch(t[1]){case"v":return I.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II}break;case"ס":return I.SIVAN;case"ט":return I.TEVET;case"ש":return I.SHVAT;case"א":switch(t[1]){case"ב":return I.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II;case"י":return I.IYYAR;case"ל":return I.ELUL}break;case"ת":switch(t[1]){case"מ":return I.TAMUZ;case"ש":return I.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===a(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Z(e){$(e),function(e){e.day<1&&(e.month==I.TISHREI&&(e.year-=1),e.day+=R(e.month,e.year),e.month-=1,Z(e));e.day>R(e.month,e.year)&&(e.month===I.ELUL&&(e.year+=1),e.day-=R(e.month,e.year),e.month+=1,Z(e));$(e)}(e)}function $(e){e.month!==I.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=H(e.year),e.year-=1,Z(e)):e.month>H(e.year)&&(e.month-=H(e.year),e.year+=1,Z(e)):(e.month-=1,Z(e)),delete e.abs0}function q(e,t,r){return new J(J.dayOnOrBefore(e,t.abs()+r))}var G=I.NISAN,Q=I.CHESHVAN,W=I.KISLEV,X=I.TEVET,ee=I.SHVAT,te=I.ADAR_I,re=I.ADAR_II;var ne={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}}};A.addLocale("he",ne),A.addLocale("h",ne);var ae=ne.contexts[""],oe={};return Object.keys(ae).forEach((function(e){oe[e]=[A.hebrewStripNikkud(ae[e][0])]})),A.addLocale("he-x-NoNikud",{headers:ne.headers,contexts:{"":oe}}),e.HDate=J,e.Locale=A,e.gematriya=n,e.getBirthdayOrAnniversary=function(e,t){var r=J.isHDate(t)?t:new J(t),n=r.getFullYear();if(!(e<=n)){var a=Y(n),o=r.getMonth(),u=r.getDate();return o==te&&!a||o==re&&a?o=H(e):o!=Q||30!=u||_(e)?o==W&&30==u&&C(e)?(o=X,u=1):o==te&&30==u&&a&&!Y(e)&&(o=G,u=1):(o=W,u=1),new J(u,o,e)}},e.getYahrzeit=function(e,t){var r=J.isHDate(t)?t:new J(t),n={yy:r.getFullYear(),mm:r.getMonth(),dd:r.getDate()};if(!(e<=n.yy))return n.mm!=Q||30!=n.dd||_(n.yy+1)?n.mm==W&&30==n.dd&&C(n.yy+1)?n=S(L(e,X,1)-1):n.mm==re?n.mm=H(e):n.mm!=te||30!=n.dd||Y(e)||(n.dd=30,n.mm=ee):n=S(L(e,W,1)-1),n.mm!=Q||30!=n.dd||_(e)?n.mm==W&&30==n.dd&&C(e)&&(n.mm=X,n.dd=1):(n.mm=W,n.dd=1),new J(n.dd,n.mm,e)},e.greg=w,e.months=I,e.version="3.46.8",e}({});
package/dist/hdate.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  'use strict';
3
3
 
4
4
  const GERESH = '׳';
@@ -1736,7 +1736,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
1736
1736
  return new HDate(day, month, hyear);
1737
1737
  }
1738
1738
 
1739
- const version="3.46.6";
1739
+ const version="3.46.8";
1740
1740
 
1741
1741
  const headers={"plural-forms":"nplurals=2; plural=(n > 1);"};const contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
1742
1742
 
package/dist/hdate.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  const GERESH = '׳';
3
3
  const GERSHAYIM = '״';
4
4
 
@@ -1767,7 +1767,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
1767
1767
  return new HDate(day, month, hyear);
1768
1768
  }
1769
1769
 
1770
- const version="3.46.6";
1770
+ const version="3.46.8";
1771
1771
 
1772
1772
  const headers={"plural-forms":"nplurals=2; plural=(n > 1);"};const contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
1773
1773
 
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1,2 +1,2 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  var hebcal=function(r){"use strict";function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(r)}var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function e(r,t){return r-t*Math.floor(r/t)}function o(r,t){return Math.floor(r/t)}function a(r){return!(r%4||!(r%100)&&r%400)}function u(r,t,n){var e=r-1;return 365*e+o(e,4)-o(e,100)+o(e,400)+o(367*t-362,12)+(t<=2?0:a(r)?-1:-2)+n}[n,n.slice()][1][2]=29;var c=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],f=[c.concat(["Adar","Nisan"]),c.concat(["Adar I","Adar II","Nisan"])],i=Object.create(null),h=-1373428;function s(r,t,n){if(r<1)throw new RangeError("hebrew2abs: invalid year ".concat(r));var e=n;if(t<7){for(var o=7;o<=y(r);o++)e+=v(o,r);for(var a=1;a<t;a++)e+=v(a,r)}else for(var u=7;u<t;u++)e+=v(u,r);return h+m(r)+e-1}function l(r){return h+m(r)}function b(r){return(1+7*r)%19<7}function y(r){return 12+b(r)}function v(r,t){switch(r){case 2:case 4:case 6:case 10:case 13:return 29}return 12===r&&!b(t)||8===r&&!w(t)||9===r&&A(t)?29:30}function m(r){var t=i[r]=i[r]||function(r){var t=r-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),e=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(e/1080),a=e%1080+o%24*1080,u=1+29*n+Math.floor(o/24),c=u+(a>=19440||2==u%7&&a>=9924&&!b(r)||1==u%7&&a>=16789&&b(t));return c+(c%7==0||c%7==3||c%7==5)}(r);return t}function p(r){return m(r+1)-m(r)}function w(r){return p(r)%10==5}function A(r){return p(r)%10==3}var I={abs2hebrew:function(r){if("number"!=typeof r||isNaN(r))throw new TypeError("invalid parameter to abs2hebrew ".concat(r));if((r=Math.trunc(r))<=h)throw new RangeError("abs2hebrew: ".concat(r," is before epoch"));for(var t=Math.floor((r-h)/365.24682220597794);l(t)<=r;)++t;for(var n=r<s(--t,1,1)?7:1;r>s(t,n,v(n,t));)++n;return{yy:t,mm:n,dd:1+r-s(t,n,1)}},daysInMonth:v,daysInYear:p,getMonthName:function(r,t){if("number"!=typeof r||isNaN(r)||r<1||r>14)throw new TypeError("bad month argument ".concat(r));return f[+b(t)][r]},hebrew2abs:s,isLeapYear:b,longCheshvan:w,months:{NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},monthsInYear:y,shortKislev:A};return r.abs2greg=function(r){if("number"!=typeof r)throw new TypeError("Argument not a Number: ".concat(r));var t=function(r){var t=r-1,n=o(t,146097),a=e(t,146097),u=o(a,36524),c=e(a,36524),f=o(c,1461),i=o(e(c,1461),365),h=400*n+100*u+4*f+i;return 4!=u&&4!=i?h+1:h}(r=Math.trunc(r)),n=o(12*(r-u(t,1,1)+(r<u(t,3,1)?0:a(t)?1:2))+373,367),c=r-u(t,n,1)+1,f=new Date(t,n-1,c);return t<100&&t>=0&&f.setFullYear(t),f},r.greg2abs=function(r){if("object"!==t(n=r)||Date.prototype!==n.__proto__)throw new TypeError("Argument not a Date: ".concat(r));var n;return u(r.getFullYear(),r.getMonth()+1,r.getDate())},r.hdate=I,r}({});
package/dist/hdate0.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  /*
3
3
  * More minimal greg routines
4
4
  */
package/dist/index.js CHANGED
@@ -1,35 +1,6 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  'use strict';
3
3
 
4
- function _defineProperty(obj, key, value) {
5
- key = _toPropertyKey(key);
6
- if (key in obj) {
7
- Object.defineProperty(obj, key, {
8
- value: value,
9
- enumerable: true,
10
- configurable: true,
11
- writable: true
12
- });
13
- } else {
14
- obj[key] = value;
15
- }
16
- return obj;
17
- }
18
- function _toPrimitive(input, hint) {
19
- if (typeof input !== "object" || input === null) return input;
20
- var prim = input[Symbol.toPrimitive];
21
- if (prim !== undefined) {
22
- var res = prim.call(input, hint || "default");
23
- if (typeof res !== "object") return res;
24
- throw new TypeError("@@toPrimitive must return a primitive value.");
25
- }
26
- return (hint === "string" ? String : Number)(input);
27
- }
28
- function _toPropertyKey(arg) {
29
- var key = _toPrimitive(arg, "string");
30
- return typeof key === "symbol" ? key : String(key);
31
- }
32
-
33
4
  /*
34
5
  * More minimal greg routines
35
6
  */
@@ -178,6 +149,27 @@ function abs2greg(abs) {
178
149
  return dt;
179
150
  }
180
151
 
152
+ /*
153
+ Hebcal - A Jewish Calendar Generator
154
+ Copyright (c) 1994-2020 Danny Sadinoff
155
+ Portions copyright Eyal Schachter and Michael J. Radwin
156
+
157
+ https://github.com/hebcal/hebcal-es6
158
+
159
+ This program is free software; you can redistribute it and/or
160
+ modify it under the terms of the GNU General Public License
161
+ as published by the Free Software Foundation; either version 2
162
+ of the License, or (at your option) any later version.
163
+
164
+ This program is distributed in the hope that it will be useful,
165
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
166
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
167
+ GNU General Public License for more details.
168
+
169
+ You should have received a copy of the GNU General Public License
170
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
171
+ */
172
+
181
173
  /**
182
174
  * Gregorian date helper functions.
183
175
  */
@@ -187,6 +179,7 @@ class greg {
187
179
  * @readonly
188
180
  * @type {string[]}
189
181
  */
182
+ static monthNames = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
190
183
 
191
184
  /**
192
185
  * Returns true if the Gregorian year is a leap year
@@ -260,7 +253,6 @@ class greg {
260
253
  return abs2greg(theDate);
261
254
  }
262
255
  }
263
- _defineProperty(greg, "monthNames", ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']);
264
256
 
265
257
  const GERESH = '׳';
266
258
  const GERSHAYIM = '״';
@@ -413,10 +405,11 @@ const alias = {
413
405
  */
414
406
  class Locale {
415
407
  /** @private */
416
-
408
+ static locales = Object.create(null);
417
409
  /** @private */
418
-
410
+ static activeLocale = null;
419
411
  /** @private */
412
+ static activeName = null;
420
413
 
421
414
  /**
422
415
  * Returns translation only if `locale` offers a non-empty translation for `id`.
@@ -546,9 +539,6 @@ class Locale {
546
539
  return str.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
547
540
  }
548
541
  }
549
- _defineProperty(Locale, "locales", Object.create(null));
550
- _defineProperty(Locale, "activeLocale", null);
551
- _defineProperty(Locale, "activeName", null);
552
542
  Locale.addLocale('en', noopLocale);
553
543
  Locale.addLocale('s', noopLocale);
554
544
  Locale.addLocale('', noopLocale);
@@ -3364,14 +3354,13 @@ class OmerEvent extends Event {
3364
3354
  * @param {number} omerDay
3365
3355
  */
3366
3356
  constructor(date, omerDay) {
3367
- super(date, `Omer ${omerDay}`, flags.OMER_COUNT, {
3368
- omer: omerDay
3369
- });
3357
+ super(date, `Omer ${omerDay}`, flags.OMER_COUNT);
3370
3358
  if (omerDay < 1 || omerDay > 49) {
3371
3359
  throw new RangeError(`Invalid Omer day ${omerDay}`);
3372
3360
  }
3373
3361
  this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;
3374
3362
  this.daysWithinWeeks = omerDay % 7 || 7;
3363
+ this.omer = omerDay;
3375
3364
  }
3376
3365
  /**
3377
3366
  * @param {string} lang
@@ -3680,9 +3669,8 @@ class DafYomiEvent extends Event {
3680
3669
  */
3681
3670
  constructor(date) {
3682
3671
  const daf = new DafYomi(date.greg());
3683
- super(date, daf.render('en'), flags.DAF_YOMI, {
3684
- daf: daf
3685
- });
3672
+ super(date, daf.render('en'), flags.DAF_YOMI);
3673
+ this.daf = daf;
3686
3674
  }
3687
3675
  /**
3688
3676
  * Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
@@ -4721,10 +4709,9 @@ class AsaraBTevetEvent extends HolidayEvent {
4721
4709
  * @param {HDate} date Hebrew date event occurs
4722
4710
  * @param {string} desc Description (not translated)
4723
4711
  * @param {number} [mask=0] optional holiday flags
4724
- * @param {Object} [attrs={}]
4725
4712
  */
4726
- constructor(date, desc, mask, attrs) {
4727
- super(date, desc, mask, attrs);
4713
+ constructor(date, desc, mask) {
4714
+ super(date, desc, mask);
4728
4715
  }
4729
4716
  /** @return {string} */
4730
4717
  urlDateSuffix() {
@@ -4774,9 +4761,7 @@ class RoshHashanaEvent extends HolidayEvent {
4774
4761
  * @param {number} mask optional holiday flags
4775
4762
  */
4776
4763
  constructor(date, hyear, mask) {
4777
- super(date, `Rosh Hashana ${hyear}`, mask, {
4778
- emoji: '🍏🍯'
4779
- });
4764
+ super(date, `Rosh Hashana ${hyear}`, mask);
4780
4765
  this.hyear = hyear;
4781
4766
  }
4782
4767
  /**
@@ -4787,10 +4772,14 @@ class RoshHashanaEvent extends HolidayEvent {
4787
4772
  render(locale) {
4788
4773
  return Locale.gettext('Rosh Hashana', locale) + ' ' + this.hyear;
4789
4774
  }
4775
+ /** @return {string} */
4776
+ getEmoji() {
4777
+ return '🍏🍯';
4778
+ }
4790
4779
  }
4791
4780
  const ykk = 'Yom Kippur Katan';
4792
4781
 
4793
- /** Represents Rosh Hashana, the Jewish New Year */
4782
+ /** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
4794
4783
  class YomKippurKatanEvent extends HolidayEvent {
4795
4784
  /**
4796
4785
  * @private
@@ -5230,9 +5219,8 @@ class MishnaYomiEvent extends Event {
5230
5219
  * @param {MishnaYomi[]} mishnaYomi
5231
5220
  */
5232
5221
  constructor(date, mishnaYomi) {
5233
- super(date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI, {
5234
- mishnaYomi
5235
- });
5222
+ super(date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI);
5223
+ this.mishnaYomi = mishnaYomi;
5236
5224
  }
5237
5225
  /**
5238
5226
  * Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
@@ -5412,9 +5400,8 @@ class YerushalmiYomiEvent extends Event {
5412
5400
  * @param {any} daf
5413
5401
  */
5414
5402
  constructor(date, daf) {
5415
- super(date, `${daf.name} ${daf.blatt}`, flags.YERUSHALMI_YOMI, {
5416
- daf
5417
- });
5403
+ super(date, `${daf.name} ${daf.blatt}`, flags.YERUSHALMI_YOMI);
5404
+ this.daf = daf;
5418
5405
  }
5419
5406
  /**
5420
5407
  * Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
@@ -5553,7 +5540,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
5553
5540
  return new HDate(day, month, hyear);
5554
5541
  }
5555
5542
 
5556
- var version="3.46.6";
5543
+ var version="3.46.8";
5557
5544
 
5558
5545
  var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
5559
5546
 
@@ -6027,7 +6014,7 @@ function getStartAndEnd(options) {
6027
6014
  // for full Hebrew year, start on Erev Rosh Hashana which
6028
6015
  // is technically in the previous Hebrew year
6029
6016
  // (but conveniently lets us get candle-lighting time for Erev)
6030
- if (!theMonth) {
6017
+ if (!theMonth && theYear > 1) {
6031
6018
  startAbs--;
6032
6019
  }
6033
6020
  return [startAbs, endAbs];
@@ -6318,7 +6305,7 @@ class HebrewCalendar {
6318
6305
  if (hyear != currentYear) {
6319
6306
  currentYear = hyear;
6320
6307
  holidaysYear = getHolidaysForYear_(currentYear);
6321
- if (options.sedrot && currentYear >= 3762) {
6308
+ if (options.sedrot) {
6322
6309
  sedra = getSedra_(currentYear, il);
6323
6310
  }
6324
6311
  if (options.omer) {
@@ -6333,7 +6320,7 @@ class HebrewCalendar {
6333
6320
  ev.forEach(e => {
6334
6321
  candlesEv = appendHolidayAndRelated(evts, e, options, candlesEv, dow);
6335
6322
  });
6336
- if (options.sedrot && dow == SAT && hyear >= 3762) {
6323
+ if (options.sedrot && dow === SAT) {
6337
6324
  const parsha0 = sedra.lookup(abs);
6338
6325
  if (!parsha0.chag) {
6339
6326
  evts.push(new ParshaEvent(hd, parsha0.parsha, il, parsha0.num));
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.46.6 */
1
+ /*! @hebcal/core v3.46.8 */
2
2
  /*
3
3
  * More minimal greg routines
4
4
  */
@@ -3352,14 +3352,13 @@ class OmerEvent extends Event {
3352
3352
  * @param {number} omerDay
3353
3353
  */
3354
3354
  constructor(date, omerDay) {
3355
- super(date, `Omer ${omerDay}`, flags.OMER_COUNT, {
3356
- omer: omerDay
3357
- });
3355
+ super(date, `Omer ${omerDay}`, flags.OMER_COUNT);
3358
3356
  if (omerDay < 1 || omerDay > 49) {
3359
3357
  throw new RangeError(`Invalid Omer day ${omerDay}`);
3360
3358
  }
3361
3359
  this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;
3362
3360
  this.daysWithinWeeks = omerDay % 7 || 7;
3361
+ this.omer = omerDay;
3363
3362
  }
3364
3363
  /**
3365
3364
  * @param {string} lang
@@ -3668,9 +3667,8 @@ class DafYomiEvent extends Event {
3668
3667
  */
3669
3668
  constructor(date) {
3670
3669
  const daf = new DafYomi(date.greg());
3671
- super(date, daf.render('en'), flags.DAF_YOMI, {
3672
- daf: daf
3673
- });
3670
+ super(date, daf.render('en'), flags.DAF_YOMI);
3671
+ this.daf = daf;
3674
3672
  }
3675
3673
  /**
3676
3674
  * Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
@@ -4709,10 +4707,9 @@ class AsaraBTevetEvent extends HolidayEvent {
4709
4707
  * @param {HDate} date Hebrew date event occurs
4710
4708
  * @param {string} desc Description (not translated)
4711
4709
  * @param {number} [mask=0] optional holiday flags
4712
- * @param {Object} [attrs={}]
4713
4710
  */
4714
- constructor(date, desc, mask, attrs) {
4715
- super(date, desc, mask, attrs);
4711
+ constructor(date, desc, mask) {
4712
+ super(date, desc, mask);
4716
4713
  }
4717
4714
  /** @return {string} */
4718
4715
  urlDateSuffix() {
@@ -4762,9 +4759,7 @@ class RoshHashanaEvent extends HolidayEvent {
4762
4759
  * @param {number} mask optional holiday flags
4763
4760
  */
4764
4761
  constructor(date, hyear, mask) {
4765
- super(date, `Rosh Hashana ${hyear}`, mask, {
4766
- emoji: '🍏🍯'
4767
- });
4762
+ super(date, `Rosh Hashana ${hyear}`, mask);
4768
4763
  this.hyear = hyear;
4769
4764
  }
4770
4765
  /**
@@ -4775,10 +4770,14 @@ class RoshHashanaEvent extends HolidayEvent {
4775
4770
  render(locale) {
4776
4771
  return Locale.gettext('Rosh Hashana', locale) + ' ' + this.hyear;
4777
4772
  }
4773
+ /** @return {string} */
4774
+ getEmoji() {
4775
+ return '🍏🍯';
4776
+ }
4778
4777
  }
4779
4778
  const ykk = 'Yom Kippur Katan';
4780
4779
 
4781
- /** Represents Rosh Hashana, the Jewish New Year */
4780
+ /** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
4782
4781
  class YomKippurKatanEvent extends HolidayEvent {
4783
4782
  /**
4784
4783
  * @private
@@ -5218,9 +5217,8 @@ class MishnaYomiEvent extends Event {
5218
5217
  * @param {MishnaYomi[]} mishnaYomi
5219
5218
  */
5220
5219
  constructor(date, mishnaYomi) {
5221
- super(date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI, {
5222
- mishnaYomi
5223
- });
5220
+ super(date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI);
5221
+ this.mishnaYomi = mishnaYomi;
5224
5222
  }
5225
5223
  /**
5226
5224
  * Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
@@ -5400,9 +5398,8 @@ class YerushalmiYomiEvent extends Event {
5400
5398
  * @param {any} daf
5401
5399
  */
5402
5400
  constructor(date, daf) {
5403
- super(date, `${daf.name} ${daf.blatt}`, flags.YERUSHALMI_YOMI, {
5404
- daf
5405
- });
5401
+ super(date, `${daf.name} ${daf.blatt}`, flags.YERUSHALMI_YOMI);
5402
+ this.daf = daf;
5406
5403
  }
5407
5404
  /**
5408
5405
  * Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
@@ -5541,7 +5538,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
5541
5538
  return new HDate(day, month, hyear);
5542
5539
  }
5543
5540
 
5544
- const version="3.46.6";
5541
+ const version="3.46.8";
5545
5542
 
5546
5543
  const headers$1={"plural-forms":"nplurals=2; plural=(n > 1);"};const contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
5547
5544
 
@@ -6015,7 +6012,7 @@ function getStartAndEnd(options) {
6015
6012
  // for full Hebrew year, start on Erev Rosh Hashana which
6016
6013
  // is technically in the previous Hebrew year
6017
6014
  // (but conveniently lets us get candle-lighting time for Erev)
6018
- if (!theMonth) {
6015
+ if (!theMonth && theYear > 1) {
6019
6016
  startAbs--;
6020
6017
  }
6021
6018
  return [startAbs, endAbs];
@@ -6306,7 +6303,7 @@ class HebrewCalendar {
6306
6303
  if (hyear != currentYear) {
6307
6304
  currentYear = hyear;
6308
6305
  holidaysYear = getHolidaysForYear_(currentYear);
6309
- if (options.sedrot && currentYear >= 3762) {
6306
+ if (options.sedrot) {
6310
6307
  sedra = getSedra_(currentYear, il);
6311
6308
  }
6312
6309
  if (options.omer) {
@@ -6321,7 +6318,7 @@ class HebrewCalendar {
6321
6318
  ev.forEach(e => {
6322
6319
  candlesEv = appendHolidayAndRelated(evts, e, options, candlesEv, dow);
6323
6320
  });
6324
- if (options.sedrot && dow == SAT && hyear >= 3762) {
6321
+ if (options.sedrot && dow === SAT) {
6325
6322
  const parsha0 = sedra.lookup(abs);
6326
6323
  if (!parsha0.chag) {
6327
6324
  evts.push(new ParshaEvent(hd, parsha0.parsha, il, parsha0.num));
package/hebcal.d.ts CHANGED
@@ -1037,7 +1037,7 @@ declare module '@hebcal/core' {
1037
1037
  readonly endEvent?: TimedEvent;
1038
1038
  }
1039
1039
  export class AsaraBTevetEvent extends HolidayEvent {
1040
- constructor(date: HDate, desc: string, mask?: number, attrs?: any);
1040
+ constructor(date: HDate, desc: string, mask?: number);
1041
1041
  urlDateSuffix(): string;
1042
1042
  }
1043
1043
  export class YomKippurKatanEvent extends HolidayEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "3.46.6",
3
+ "version": "3.46.8",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "typings": "hebcal.d.ts",
30
30
  "engines": {
31
- "node": ">=10.21.0"
31
+ "node": ">= 12.17.0"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",
@@ -72,10 +72,10 @@
72
72
  "@babel/register": "^7.18.9",
73
73
  "@hebcal/solar-calc": "^1.1.2",
74
74
  "@rollup/plugin-babel": "^6.0.3",
75
- "@rollup/plugin-commonjs": "^23.0.3",
75
+ "@rollup/plugin-commonjs": "^23.0.4",
76
76
  "@rollup/plugin-json": "^5.0.2",
77
77
  "@rollup/plugin-node-resolve": "^15.0.1",
78
- "@rollup/plugin-terser": "^0.1.0",
78
+ "@rollup/plugin-terser": "^0.2.0",
79
79
  "ava": "^5.1.0",
80
80
  "codecov": "^3.8.3",
81
81
  "core-js": "^3.26.1",
@@ -84,7 +84,7 @@
84
84
  "jsdoc": "^4.0.0",
85
85
  "jsdoc-to-markdown": "^8.0.0",
86
86
  "nyc": "^15.1.0",
87
- "rollup": "^3.5.1",
87
+ "rollup": "^3.7.4",
88
88
  "ttag-cli": "^1.10.5"
89
89
  }
90
90
  }