@hebcal/core 3.41.1 → 3.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -178,7 +178,7 @@ Gregorian date helper functions.
178
178
  * [.isLeapYear(year)](#greg.isLeapYear) ⇒ <code>boolean</code>
179
179
  * [.daysInMonth(month, year)](#greg.daysInMonth) ⇒ <code>number</code>
180
180
  * [.isDate(obj)](#greg.isDate) ⇒ <code>boolean</code>
181
- * [.dayOfYear(date)](#greg.dayOfYear) ⇒ <code>number</code>
181
+ * ~~[.dayOfYear(date)](#greg.dayOfYear) ⇒ <code>number</code>~~
182
182
  * [.greg2abs(date)](#greg.greg2abs) ⇒ <code>number</code>
183
183
  * [.abs2greg(theDate)](#greg.abs2greg) ⇒ <code>Date</code>
184
184
 
@@ -218,7 +218,9 @@ Returns true if the object is a Javascript Date
218
218
 
219
219
  <a name="greg.dayOfYear"></a>
220
220
 
221
- ### greg.dayOfYear(date) ⇒ <code>number</code>
221
+ ### ~~greg.dayOfYear(date) ⇒ <code>number</code>~~
222
+ ***Deprecated***
223
+
222
224
  Returns number of days since January 1 of that year
223
225
 
224
226
  **Kind**: static method of [<code>greg</code>](#greg)
@@ -1443,7 +1445,7 @@ Class representing Location
1443
1445
  * [.lookup(name)](#Location.lookup) ⇒ [<code>Location</code>](#Location)
1444
1446
  * [.legacyTzToTzid(tz, dst)](#Location.legacyTzToTzid) ⇒ <code>string</code>
1445
1447
  * [.getUsaTzid(state, tz, dst)](#Location.getUsaTzid) ⇒ <code>string</code>
1446
- * [.geonameCityDescr(cityName, admin1, countryName)](#Location.geonameCityDescr) ⇒ <code>string</code>
1448
+ * ~~[.geonameCityDescr(cityName, admin1, countryName)](#Location.geonameCityDescr) ⇒ <code>string</code>~~
1447
1449
  * [.addLocation(cityName, location)](#Location.addLocation) ⇒ <code>boolean</code>
1448
1450
 
1449
1451
  <a name="new_Location_new"></a>
@@ -1585,7 +1587,9 @@ Location.getUsaTzid('AZ', 7, 'Y') // 'America/Denver'
1585
1587
  ```
1586
1588
  <a name="Location.geonameCityDescr"></a>
1587
1589
 
1588
- ### Location.geonameCityDescr(cityName, admin1, countryName) ⇒ <code>string</code>
1590
+ ### ~~Location.geonameCityDescr(cityName, admin1, countryName) ⇒ <code>string</code>~~
1591
+ ***Deprecated***
1592
+
1589
1593
  Builds a city description from geonameid string components
1590
1594
 
1591
1595
  **Kind**: static method of [<code>Location</code>](#Location)
@@ -2263,6 +2267,7 @@ Represents Mevarchim haChodesh, the announcement of the new month
2263
2267
 
2264
2268
  * [MevarchimChodeshEvent](#MevarchimChodeshEvent)
2265
2269
  * [new MevarchimChodeshEvent(date, monthName)](#new_MevarchimChodeshEvent_new)
2270
+ * [.basename()](#MevarchimChodeshEvent+basename) ⇒ <code>string</code>
2266
2271
  * [.render([locale])](#MevarchimChodeshEvent+render) ⇒ <code>string</code>
2267
2272
 
2268
2273
  <a name="new_MevarchimChodeshEvent_new"></a>
@@ -2276,6 +2281,10 @@ Constructs Mevarchim haChodesh event
2276
2281
  | date | [<code>HDate</code>](#HDate) | Hebrew date event occurs |
2277
2282
  | monthName | <code>string</code> | Hebrew month name (not translated) |
2278
2283
 
2284
+ <a name="MevarchimChodeshEvent+basename"></a>
2285
+
2286
+ ### mevarchimChodeshEvent.basename() ⇒ <code>string</code>
2287
+ **Kind**: instance method of [<code>MevarchimChodeshEvent</code>](#MevarchimChodeshEvent)
2279
2288
  <a name="MevarchimChodeshEvent+render"></a>
2280
2289
 
2281
2290
  ### mevarchimChodeshEvent.render([locale]) ⇒ <code>string</code>
@@ -2416,6 +2425,7 @@ Additional non-default event types can be specified:
2416
2425
  * Mishna Yomi (`options.mishnaYomi`)
2417
2426
  * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
2418
2427
  * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
2428
+ * Yom Kippur Katan (`options.yomKippurKatan`)
2419
2429
 
2420
2430
  Candle-lighting and Havdalah times are approximated using latitude and longitude
2421
2431
  specified by the [Location](#Location) class. The `Location` class contains a small
@@ -2694,6 +2704,7 @@ Holiday flags for Event
2694
2704
  | EREV | <code>number</code> | <code>1048576</code> | Evening before a major or minor holiday |
2695
2705
  | CHOL_HAMOED | <code>number</code> | <code>2097152</code> | Chol haMoed, intermediate days of Pesach or Sukkot |
2696
2706
  | MISHNA_YOMI | <code>number</code> | <code>4194304</code> | Mishna Yomi |
2707
+ | YOM_KIPPUR_KATAN | <code>number</code> | <code>8388608</code> | Yom Kippur Katan, minor day of atonement on the day preceeding each Rosh Chodesh |
2697
2708
 
2698
2709
  <a name="parshiot"></a>
2699
2710
 
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.41.1 */
1
+ /*! @hebcal/core v3.41.3 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -513,10 +513,10 @@ var store$2 = sharedStore;
513
513
  (shared$3.exports = function (key, value) {
514
514
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
515
515
  })('versions', []).push({
516
- version: '3.23.2',
516
+ version: '3.23.3',
517
517
  mode: 'global',
518
518
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
519
- license: 'https://github.com/zloirock/core-js/blob/v3.23.2/LICENSE',
519
+ license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',
520
520
  source: 'https://github.com/zloirock/core-js'
521
521
  });
522
522
 
@@ -890,7 +890,8 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
890
890
  if (options && options.getter) name = 'get ' + name;
891
891
  if (options && options.setter) name = 'set ' + name;
892
892
  if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
893
- defineProperty(value, 'name', { value: name, configurable: true });
893
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
894
+ else value.name = name;
894
895
  }
895
896
  if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
896
897
  defineProperty(value, 'length', { value: options.arity });
@@ -927,8 +928,10 @@ var defineBuiltIn$1 = function (O, key, value, options) {
927
928
  if (simple) O[key] = value;
928
929
  else defineGlobalProperty$1(key, value);
929
930
  } else {
930
- if (!options.unsafe) delete O[key];
931
- else if (O[key]) simple = true;
931
+ try {
932
+ if (!options.unsafe) delete O[key];
933
+ else if (O[key]) simple = true;
934
+ } catch (error) { /* empty */ }
932
935
  if (simple) O[key] = value;
933
936
  else definePropertyModule$2.f(O, key, {
934
937
  value: value,
@@ -1432,32 +1435,11 @@ function daysInMonth$1(month, year) {
1432
1435
  function isDate(obj) {
1433
1436
  return _typeof(obj) === 'object' && Date.prototype === obj.__proto__;
1434
1437
  }
1435
- /**
1436
- * Returns number of days since January 1 of that year
1437
- * @private
1438
- * @param {Date} date Gregorian date
1439
- * @return {number}
1440
- */
1441
-
1442
- function dayOfYear(date) {
1443
- if (!isDate(date)) {
1444
- throw new TypeError("Argument not a Date: ".concat(date));
1445
- }
1446
-
1447
- var month = date.getMonth();
1448
- var doy = date.getDate() + 31 * month;
1449
-
1450
- if (month > 1) {
1451
- // FEB
1452
- doy -= Math.floor((4 * (month + 1) + 23) / 10);
1453
-
1454
- if (isLeapYear$1(date.getFullYear())) {
1455
- doy++;
1456
- }
1457
- }
1438
+ /*
1439
+ const ABS_14SEP1752 = 639797;
1440
+ const ABS_2SEP1752 = 639785;
1441
+ */
1458
1442
 
1459
- return doy;
1460
- }
1461
1443
  /**
1462
1444
  * Converts Gregorian date to absolute R.D. (Rata Die) days
1463
1445
  * @private
@@ -1470,12 +1452,14 @@ function greg2abs(date) {
1470
1452
  throw new TypeError("Argument not a Date: ".concat(date));
1471
1453
  }
1472
1454
 
1473
- var year = date.getFullYear() - 1;
1474
- return dayOfYear(date) + // days this year
1475
- 365 * year + ( // + days in prior years
1476
- Math.floor(year / 4) - // + Julian Leap years
1477
- Math.floor(year / 100) + // - century years
1478
- Math.floor(year / 400)); // + Gregorian leap years
1455
+ var abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
1456
+ /*
1457
+ if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
1458
+ throw new RangeError(`Invalid Date: ${date}`);
1459
+ }
1460
+ */
1461
+
1462
+ return abs;
1479
1463
  }
1480
1464
  /**
1481
1465
  * @private
@@ -1498,8 +1482,8 @@ function yearFromFixed(abs) {
1498
1482
  /**
1499
1483
  * @private
1500
1484
  * @param {number} year
1501
- * @param {number} month
1502
- * @param {number} day
1485
+ * @param {number} month (1-12)
1486
+ * @param {number} day (1-31)
1503
1487
  * @return {number}
1504
1488
  */
1505
1489
 
@@ -1526,6 +1510,12 @@ function abs2greg(abs) {
1526
1510
  }
1527
1511
 
1528
1512
  abs = Math.trunc(abs);
1513
+ /*
1514
+ if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
1515
+ throw new RangeError(`Invalid Date: ${abs}`);
1516
+ }
1517
+ */
1518
+
1529
1519
  var year = yearFromFixed(abs);
1530
1520
  var priorDays = abs - toFixed(year, 1, 1);
1531
1521
  var correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear$1(year) ? 1 : 2;
@@ -1591,14 +1581,31 @@ var greg = /*#__PURE__*/function () {
1591
1581
  }
1592
1582
  /**
1593
1583
  * Returns number of days since January 1 of that year
1584
+ * @deprecated
1594
1585
  * @param {Date} date Gregorian date
1595
1586
  * @return {number}
1596
1587
  */
1597
1588
 
1598
1589
  }, {
1599
1590
  key: "dayOfYear",
1600
- value: function dayOfYear$1(date) {
1601
- return dayOfYear(date);
1591
+ value: function dayOfYear(date) {
1592
+ if (!isDate(date)) {
1593
+ throw new TypeError("Argument not a Date: ".concat(date));
1594
+ }
1595
+
1596
+ var month = date.getMonth();
1597
+ var doy = date.getDate() + 31 * month;
1598
+
1599
+ if (month > 1) {
1600
+ // FEB
1601
+ doy -= Math.floor((4 * (month + 1) + 23) / 10);
1602
+
1603
+ if (isLeapYear$1(date.getFullYear())) {
1604
+ doy++;
1605
+ }
1606
+ }
1607
+
1608
+ return doy;
1602
1609
  }
1603
1610
  /**
1604
1611
  * Converts Gregorian date to absolute R.D. (Rata Die) days
@@ -3554,7 +3561,10 @@ var flags = {
3554
3561
  CHOL_HAMOED: 0x200000,
3555
3562
 
3556
3563
  /** Mishna Yomi */
3557
- MISHNA_YOMI: 0x400000
3564
+ MISHNA_YOMI: 0x400000,
3565
+
3566
+ /** Yom Kippur Katan, minor day of atonement on the day preceeding each Rosh Chodesh */
3567
+ YOM_KIPPUR_KATAN: 0x800000
3558
3568
  };
3559
3569
  /** Represents an Event with a title, date, and flags */
3560
3570
 
@@ -5083,6 +5093,7 @@ var Location = /*#__PURE__*/function () {
5083
5093
  }
5084
5094
  /**
5085
5095
  * Builds a city description from geonameid string components
5096
+ * @deprecated
5086
5097
  * @param {string} cityName e.g. 'Tel Aviv' or 'Chicago'
5087
5098
  * @param {string} admin1 e.g. 'England' or 'Massachusetts'
5088
5099
  * @param {string} countryName full country name, e.g. 'Israel' or 'United States'
@@ -7013,14 +7024,21 @@ var MevarchimChodeshEvent = /*#__PURE__*/function (_Event2) {
7013
7024
  _this.memo = molad.render();
7014
7025
  return _this;
7015
7026
  }
7016
- /**
7017
- * Returns (translated) description of this event
7018
- * @param {string} [locale] Optional locale name (defaults to active locale).
7019
- * @return {string}
7020
- */
7027
+ /** @return {string} */
7021
7028
 
7022
7029
 
7023
7030
  _createClass(MevarchimChodeshEvent, [{
7031
+ key: "basename",
7032
+ value: function basename() {
7033
+ return this.getDesc();
7034
+ }
7035
+ /**
7036
+ * Returns (translated) description of this event
7037
+ * @param {string} [locale] Optional locale name (defaults to active locale).
7038
+ * @return {string}
7039
+ */
7040
+
7041
+ }, {
7024
7042
  key: "render",
7025
7043
  value: function render(locale) {
7026
7044
  return Locale.gettext(mevarchimChodeshStr, locale) + ' ' + Locale.gettext(this.monthName, locale);
@@ -7087,18 +7105,25 @@ var YomKippurKatanEvent = /*#__PURE__*/function (_HolidayEvent4) {
7087
7105
 
7088
7106
  _classCallCheck(this, YomKippurKatanEvent);
7089
7107
 
7090
- _this3 = _super6.call(this, date, "".concat(ykk, " ").concat(nextMonthName), flags.MINOR_FAST);
7108
+ _this3 = _super6.call(this, date, "".concat(ykk, " ").concat(nextMonthName), flags.MINOR_FAST | flags.YOM_KIPPUR_KATAN);
7091
7109
  _this3.nextMonthName = nextMonthName;
7092
7110
  _this3.memo = "Minor Day of Atonement on the day preceeding Rosh Chodesh ".concat(nextMonthName);
7093
7111
  return _this3;
7094
7112
  }
7095
- /**
7096
- * @param {string} [locale] Optional locale name (defaults to active locale).
7097
- * @return {string}
7098
- */
7113
+ /** @return {string} */
7099
7114
 
7100
7115
 
7101
7116
  _createClass(YomKippurKatanEvent, [{
7117
+ key: "basename",
7118
+ value: function basename() {
7119
+ return this.getDesc();
7120
+ }
7121
+ /**
7122
+ * @param {string} [locale] Optional locale name (defaults to active locale).
7123
+ * @return {string}
7124
+ */
7125
+
7126
+ }, {
7102
7127
  key: "render",
7103
7128
  value: function render(locale) {
7104
7129
  return Locale.gettext(ykk, locale) + ' ' + Locale.gettext(this.nextMonthName, locale);
@@ -7116,11 +7141,9 @@ var YomKippurKatanEvent = /*#__PURE__*/function (_HolidayEvent4) {
7116
7141
  /** @return {string} */
7117
7142
 
7118
7143
  }, {
7119
- key: "urlDateSuffix",
7120
- value: function urlDateSuffix() {
7121
- var isoDateTime = this.getDate().greg().toISOString();
7122
- var isoDate = isoDateTime.substring(0, isoDateTime.indexOf('T'));
7123
- return isoDate.replace(/-/g, '');
7144
+ key: "url",
7145
+ value: function url() {
7146
+ return undefined;
7124
7147
  }
7125
7148
  }]);
7126
7149
 
@@ -7853,9 +7876,9 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
7853
7876
  return new HDate(day, month, hyear);
7854
7877
  }
7855
7878
 
7856
- var version="3.41.1";
7879
+ var version="3.41.3";
7857
7880
 
7858
- var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};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"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
7881
+ var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};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"],Misheyakir:["Misheyakir"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Chatzot hayom":["Chatzos"],"Tzait HaKochavim":["Tzeis HaKochavim"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
7859
7882
 
7860
7883
  Locale.addLocale('ashkenazi', poAshkenazi);
7861
7884
  Locale.addLocale('a', poAshkenazi);
@@ -8164,6 +8187,7 @@ function getMaskFromOptions(options) {
8164
8187
  if (m & OMER_COUNT) options.omer = true;
8165
8188
  if (m & SHABBAT_MEVARCHIM) options.shabbatMevarchim = true;
8166
8189
  if (m & flags.MISHNA_YOMI) options.mishnaYomi = true;
8190
+ if (m & flags.YOM_KIPPUR_KATAN) options.yomKippurKatan = true;
8167
8191
  options.userMask = true;
8168
8192
  return m;
8169
8193
  }
@@ -8224,6 +8248,10 @@ function getMaskFromOptions(options) {
8224
8248
  mask |= SHABBAT_MEVARCHIM;
8225
8249
  }
8226
8250
 
8251
+ if (options.yomKippurKatan) {
8252
+ mask |= flags.YOM_KIPPUR_KATAN;
8253
+ }
8254
+
8227
8255
  return mask;
8228
8256
  }
8229
8257
 
@@ -8313,6 +8341,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
8313
8341
  * * Mishna Yomi (`options.mishnaYomi`)
8314
8342
  * * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
8315
8343
  * * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
8344
+ * * Yom Kippur Katan (`options.yomKippurKatan`)
8316
8345
  *
8317
8346
  * Candle-lighting and Havdalah times are approximated using latitude and longitude
8318
8347
  * specified by the {@link Location} class. The `Location` class contains a small
@@ -8740,11 +8769,12 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
8740
8769
  return candlesEv; // holiday isn't observed here; bail out early
8741
8770
  }
8742
8771
 
8743
- if (ev instanceof YomKippurKatanEvent && !options.yomKippurKatan) {
8772
+ var eFlags = ev.getFlags();
8773
+
8774
+ if (!options.yomKippurKatan && eFlags & flags.YOM_KIPPUR_KATAN) {
8744
8775
  return candlesEv; // bail out early
8745
8776
  }
8746
8777
 
8747
- var eFlags = ev.getFlags();
8748
8778
  var location = options.location;
8749
8779
  var isMajorFast = Boolean(eFlags & MAJOR_FAST);
8750
8780
  var isMinorFast = Boolean(eFlags & MINOR_FAST);
@@ -8778,7 +8808,9 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
8778
8808
  }
8779
8809
  }
8780
8810
 
8781
- if (!options.noHolidays) {
8811
+ if (options.yomKippurKatan && eFlags & flags.YOM_KIPPUR_KATAN) {
8812
+ events.push(ev);
8813
+ } else if (!options.noHolidays) {
8782
8814
  events.push(ev); // the original event itself
8783
8815
  }
8784
8816
  }