@hebcal/core 3.37.1 → 3.38.1
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 +39 -37
- package/dist/bundle.js +1367 -1149
- package/dist/bundle.min.js +2 -2
- package/dist/hdate-bundle.js +473 -312
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +494 -307
- package/dist/hdate.mjs +494 -307
- package/dist/hdate0-bundle.js +469 -0
- package/dist/hdate0-bundle.min.js +2 -0
- package/dist/index.js +510 -369
- package/dist/index.mjs +530 -369
- package/package.json +9 -9
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.38.0 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -71,18 +71,17 @@ function _inherits(subClass, superClass) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function _getPrototypeOf(o) {
|
|
74
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
74
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
75
75
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
76
76
|
};
|
|
77
77
|
return _getPrototypeOf(o);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function _setPrototypeOf(o, p) {
|
|
81
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
81
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
82
82
|
o.__proto__ = p;
|
|
83
83
|
return o;
|
|
84
84
|
};
|
|
85
|
-
|
|
86
85
|
return _setPrototypeOf(o, p);
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -210,746 +209,362 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
210
209
|
};
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
|
|
214
|
-
Hebcal - A Jewish Calendar Generator
|
|
215
|
-
Copyright (c) 1994-2020 Danny Sadinoff
|
|
216
|
-
Portions copyright Eyal Schachter and Michael J. Radwin
|
|
217
|
-
|
|
218
|
-
https://github.com/hebcal/hebcal-es6
|
|
212
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
219
213
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
of the License, or (at your option) any later version.
|
|
214
|
+
var check = function (it) {
|
|
215
|
+
return it && it.Math == Math && it;
|
|
216
|
+
};
|
|
224
217
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
218
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
219
|
+
var global$a =
|
|
220
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
221
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
222
|
+
check(typeof window == 'object' && window) ||
|
|
223
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
224
|
+
check(typeof self == 'object' && self) ||
|
|
225
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
226
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
227
|
+
(function () { return this; })() || Function('return this')();
|
|
229
228
|
|
|
230
|
-
|
|
231
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
232
|
-
*/
|
|
233
|
-
var monthLengths = [[0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]];
|
|
234
|
-
/**
|
|
235
|
-
* @private
|
|
236
|
-
* @param {number} x
|
|
237
|
-
* @param {number} y
|
|
238
|
-
* @return {number}
|
|
239
|
-
*/
|
|
229
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
240
230
|
|
|
241
|
-
function
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
* @return {number}
|
|
249
|
-
*/
|
|
231
|
+
var fails$d = function (exec) {
|
|
232
|
+
try {
|
|
233
|
+
return !!exec();
|
|
234
|
+
} catch (error) {
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
250
238
|
|
|
251
|
-
|
|
252
|
-
return Math.floor(x / y);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Gregorian date helper functions.
|
|
256
|
-
*/
|
|
239
|
+
var fails$c = fails$d;
|
|
257
240
|
|
|
241
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
242
|
+
var descriptors = !fails$c(function () {
|
|
243
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
244
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
245
|
+
});
|
|
258
246
|
|
|
259
|
-
var
|
|
260
|
-
function greg() {
|
|
261
|
-
_classCallCheck(this, greg);
|
|
262
|
-
}
|
|
247
|
+
var fails$b = fails$d;
|
|
263
248
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
* @type {string[]}
|
|
271
|
-
*/
|
|
249
|
+
var functionBindNative = !fails$b(function () {
|
|
250
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
251
|
+
var test = (function () { /* empty */ }).bind();
|
|
252
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
253
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
254
|
+
});
|
|
272
255
|
|
|
273
|
-
|
|
274
|
-
* Returns true if the Gregorian year is a leap year
|
|
275
|
-
* @param {number} year Gregorian year
|
|
276
|
-
* @return {boolean}
|
|
277
|
-
*/
|
|
278
|
-
function isLeapYear(year) {
|
|
279
|
-
return !(year % 4) && (!!(year % 100) || !(year % 400));
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Number of days in the Gregorian month for given year
|
|
283
|
-
* @param {number} month Gregorian month (1=January, 12=December)
|
|
284
|
-
* @param {number} year Gregorian year
|
|
285
|
-
* @return {number}
|
|
286
|
-
*/
|
|
256
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
287
257
|
|
|
288
|
-
|
|
289
|
-
key: "daysInMonth",
|
|
290
|
-
value: function daysInMonth(month, year) {
|
|
291
|
-
// 1 based months
|
|
292
|
-
return monthLengths[+this.isLeapYear(year)][month];
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Returns true if the object is a Javascript Date
|
|
296
|
-
* @param {Object} obj
|
|
297
|
-
* @return {boolean}
|
|
298
|
-
*/
|
|
258
|
+
var call$7 = Function.prototype.call;
|
|
299
259
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return _typeof(obj) === 'object' && Date.prototype === obj.__proto__;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Returns number of days since January 1 of that year
|
|
307
|
-
* @param {Date} date Gregorian date
|
|
308
|
-
* @return {number}
|
|
309
|
-
*/
|
|
260
|
+
var functionCall = NATIVE_BIND$2 ? call$7.bind(call$7) : function () {
|
|
261
|
+
return call$7.apply(call$7, arguments);
|
|
262
|
+
};
|
|
310
263
|
|
|
311
|
-
|
|
312
|
-
key: "dayOfYear",
|
|
313
|
-
value: function dayOfYear(date) {
|
|
314
|
-
if (!this.isDate(date)) {
|
|
315
|
-
throw new TypeError('Argument to greg.dayOfYear not a Date');
|
|
316
|
-
}
|
|
264
|
+
var objectPropertyIsEnumerable = {};
|
|
317
265
|
|
|
318
|
-
|
|
266
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
267
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
268
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
319
269
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
doy -= Math.floor((4 * (date.getMonth() + 1) + 23) / 10);
|
|
270
|
+
// Nashorn ~ JDK8 bug
|
|
271
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
323
272
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
273
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
274
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
275
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
276
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
277
|
+
return !!descriptor && descriptor.enumerable;
|
|
278
|
+
} : $propertyIsEnumerable;
|
|
328
279
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
280
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
281
|
+
return {
|
|
282
|
+
enumerable: !(bitmap & 1),
|
|
283
|
+
configurable: !(bitmap & 2),
|
|
284
|
+
writable: !(bitmap & 4),
|
|
285
|
+
value: value
|
|
286
|
+
};
|
|
287
|
+
};
|
|
336
288
|
|
|
337
|
-
|
|
338
|
-
key: "greg2abs",
|
|
339
|
-
value: function greg2abs(date) {
|
|
340
|
-
if (!this.isDate(date)) {
|
|
341
|
-
throw new TypeError('Argument to greg.greg2abs not a Date');
|
|
342
|
-
}
|
|
289
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
343
290
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
Math.floor(year / 100) + // - century years
|
|
349
|
-
Math.floor(year / 400)); // + Gregorian leap years
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* @private
|
|
353
|
-
* @param {number} theDate - R.D. number of days
|
|
354
|
-
* @return {number}
|
|
355
|
-
*/
|
|
291
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
292
|
+
var bind$2 = FunctionPrototype$1.bind;
|
|
293
|
+
var call$6 = FunctionPrototype$1.call;
|
|
294
|
+
var uncurryThis$f = NATIVE_BIND$1 && bind$2.bind(call$6, call$6);
|
|
356
295
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
var d2 = mod(d1, 36524);
|
|
365
|
-
var n4 = quotient(d2, 1461);
|
|
366
|
-
var d3 = mod(d2, 1461);
|
|
367
|
-
var n1 = quotient(d3, 365);
|
|
368
|
-
var year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
|
|
369
|
-
return n100 != 4 && n1 != 4 ? year + 1 : year;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* @private
|
|
373
|
-
* @param {number} year
|
|
374
|
-
* @param {number} month
|
|
375
|
-
* @param {number} day
|
|
376
|
-
* @return {number}
|
|
377
|
-
*/
|
|
296
|
+
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
297
|
+
return fn && uncurryThis$f(fn);
|
|
298
|
+
} : function (fn) {
|
|
299
|
+
return fn && function () {
|
|
300
|
+
return call$6.apply(fn, arguments);
|
|
301
|
+
};
|
|
302
|
+
};
|
|
378
303
|
|
|
379
|
-
|
|
380
|
-
key: "toFixed",
|
|
381
|
-
value: function toFixed(year, month, day) {
|
|
382
|
-
var py = year - 1;
|
|
383
|
-
return 0 + 365 * py + quotient(py, 4) - quotient(py, 100) + quotient(py, 400) + quotient(367 * month - 362, 12) + Math.floor(month <= 2 ? 0 : this.isLeapYear(year) ? -1 : -2) + day;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
387
|
-
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
388
|
-
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
389
|
-
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
390
|
-
* (April, 1993), pages 383-404 for an explanation.
|
|
391
|
-
* @param {number} theDate - R.D. number of days
|
|
392
|
-
* @return {Date}
|
|
393
|
-
*/
|
|
304
|
+
var uncurryThis$e = functionUncurryThis;
|
|
394
305
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
value: function abs2greg(theDate) {
|
|
398
|
-
if (typeof theDate !== 'number') {
|
|
399
|
-
throw new TypeError('Argument to greg.abs2greg not a Number');
|
|
400
|
-
}
|
|
306
|
+
var toString$4 = uncurryThis$e({}.toString);
|
|
307
|
+
var stringSlice = uncurryThis$e(''.slice);
|
|
401
308
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
var correction = theDate < this.toFixed(year, 3, 1) ? 0 : this.isLeapYear(year) ? 1 : 2;
|
|
406
|
-
var month = quotient(12 * (priorDays + correction) + 373, 367);
|
|
407
|
-
var day = theDate - this.toFixed(year, month, 1) + 1;
|
|
408
|
-
var dt = new Date(year, month - 1, day);
|
|
309
|
+
var classofRaw$1 = function (it) {
|
|
310
|
+
return stringSlice(toString$4(it), 8, -1);
|
|
311
|
+
};
|
|
409
312
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
313
|
+
var uncurryThis$d = functionUncurryThis;
|
|
314
|
+
var fails$a = fails$d;
|
|
315
|
+
var classof$5 = classofRaw$1;
|
|
413
316
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}]);
|
|
317
|
+
var $Object$3 = Object;
|
|
318
|
+
var split = uncurryThis$d(''.split);
|
|
417
319
|
|
|
418
|
-
|
|
419
|
-
|
|
320
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
321
|
+
var indexedObject = fails$a(function () {
|
|
322
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
323
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
324
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
325
|
+
}) ? function (it) {
|
|
326
|
+
return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
327
|
+
} : $Object$3;
|
|
420
328
|
|
|
421
|
-
|
|
329
|
+
var $TypeError$7 = TypeError;
|
|
422
330
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
*/
|
|
331
|
+
// `RequireObjectCoercible` abstract operation
|
|
332
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
333
|
+
var requireObjectCoercible$3 = function (it) {
|
|
334
|
+
if (it == undefined) throw $TypeError$7("Can't call method on " + it);
|
|
335
|
+
return it;
|
|
336
|
+
};
|
|
430
337
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
return 'א';
|
|
338
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
339
|
+
var IndexedObject = indexedObject;
|
|
340
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
435
341
|
|
|
436
|
-
|
|
437
|
-
|
|
342
|
+
var toIndexedObject$4 = function (it) {
|
|
343
|
+
return IndexedObject(requireObjectCoercible$2(it));
|
|
344
|
+
};
|
|
438
345
|
|
|
439
|
-
|
|
440
|
-
|
|
346
|
+
// `IsCallable` abstract operation
|
|
347
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
348
|
+
var isCallable$c = function (argument) {
|
|
349
|
+
return typeof argument == 'function';
|
|
350
|
+
};
|
|
441
351
|
|
|
442
|
-
|
|
443
|
-
return 'ד';
|
|
352
|
+
var isCallable$b = isCallable$c;
|
|
444
353
|
|
|
445
|
-
|
|
446
|
-
|
|
354
|
+
var isObject$6 = function (it) {
|
|
355
|
+
return typeof it == 'object' ? it !== null : isCallable$b(it);
|
|
356
|
+
};
|
|
447
357
|
|
|
448
|
-
|
|
449
|
-
|
|
358
|
+
var global$9 = global$a;
|
|
359
|
+
var isCallable$a = isCallable$c;
|
|
450
360
|
|
|
451
|
-
|
|
452
|
-
|
|
361
|
+
var aFunction = function (argument) {
|
|
362
|
+
return isCallable$a(argument) ? argument : undefined;
|
|
363
|
+
};
|
|
453
364
|
|
|
454
|
-
|
|
455
|
-
|
|
365
|
+
var getBuiltIn$4 = function (namespace, method) {
|
|
366
|
+
return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
|
|
367
|
+
};
|
|
456
368
|
|
|
457
|
-
|
|
458
|
-
return 'ט';
|
|
369
|
+
var uncurryThis$c = functionUncurryThis;
|
|
459
370
|
|
|
460
|
-
|
|
461
|
-
return 'י';
|
|
371
|
+
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
462
372
|
|
|
463
|
-
|
|
464
|
-
return 'כ';
|
|
373
|
+
var getBuiltIn$3 = getBuiltIn$4;
|
|
465
374
|
|
|
466
|
-
|
|
467
|
-
return 'ל';
|
|
375
|
+
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
468
376
|
|
|
469
|
-
|
|
470
|
-
|
|
377
|
+
var global$8 = global$a;
|
|
378
|
+
var userAgent$2 = engineUserAgent;
|
|
471
379
|
|
|
472
|
-
|
|
473
|
-
|
|
380
|
+
var process = global$8.process;
|
|
381
|
+
var Deno = global$8.Deno;
|
|
382
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
383
|
+
var v8 = versions && versions.v8;
|
|
384
|
+
var match, version$1;
|
|
474
385
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
case 80:
|
|
482
|
-
return 'פ';
|
|
483
|
-
|
|
484
|
-
case 90:
|
|
485
|
-
return 'צ';
|
|
486
|
-
|
|
487
|
-
case 100:
|
|
488
|
-
return 'ק';
|
|
489
|
-
|
|
490
|
-
case 200:
|
|
491
|
-
return 'ר';
|
|
492
|
-
|
|
493
|
-
case 300:
|
|
494
|
-
return 'ש';
|
|
495
|
-
|
|
496
|
-
case 400:
|
|
497
|
-
return 'ת';
|
|
386
|
+
if (v8) {
|
|
387
|
+
match = v8.split('.');
|
|
388
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
389
|
+
// but their correct versions are not interesting for us
|
|
390
|
+
version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
391
|
+
}
|
|
498
392
|
|
|
499
|
-
|
|
500
|
-
|
|
393
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
394
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
395
|
+
if (!version$1 && userAgent$2) {
|
|
396
|
+
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
397
|
+
if (!match || match[1] >= 74) {
|
|
398
|
+
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
399
|
+
if (match) version$1 = +match[1];
|
|
501
400
|
}
|
|
502
401
|
}
|
|
503
|
-
/**
|
|
504
|
-
* @private
|
|
505
|
-
* @param {number} num
|
|
506
|
-
* @return {number[]}
|
|
507
|
-
*/
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
function num2digits(num) {
|
|
511
|
-
var digits = [];
|
|
512
|
-
|
|
513
|
-
while (num > 0) {
|
|
514
|
-
if (num === 15 || num === 16) {
|
|
515
|
-
digits.push(9);
|
|
516
|
-
digits.push(num - 9);
|
|
517
|
-
break;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
var incr = 100;
|
|
521
|
-
var i = void 0;
|
|
522
402
|
|
|
523
|
-
|
|
524
|
-
if (i === incr) {
|
|
525
|
-
incr = incr / 10;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
403
|
+
var engineV8Version = version$1;
|
|
528
404
|
|
|
529
|
-
|
|
530
|
-
num -= i;
|
|
531
|
-
}
|
|
405
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
532
406
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Converts a numerical value to a string of Hebrew letters.
|
|
537
|
-
*
|
|
538
|
-
* When specifying years of the Hebrew calendar in the present millennium,
|
|
539
|
-
* we omit the thousands (which is presently 5 [ה]).
|
|
540
|
-
* @example
|
|
541
|
-
* gematriya(5774) // 'תשע״ד' - cropped to 774
|
|
542
|
-
* gematriya(25) // 'כ״ה'
|
|
543
|
-
* gematriya(60) // 'ס׳'
|
|
544
|
-
* gematriya(3761) // 'ג׳תשס״א'
|
|
545
|
-
* gematriya(1123) // 'א׳קכ״ג'
|
|
546
|
-
* @param {number} number
|
|
547
|
-
* @return {string}
|
|
548
|
-
*/
|
|
407
|
+
var V8_VERSION$1 = engineV8Version;
|
|
408
|
+
var fails$9 = fails$d;
|
|
549
409
|
|
|
410
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
411
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
|
412
|
+
var symbol = Symbol();
|
|
413
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
414
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
415
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
416
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
417
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
418
|
+
});
|
|
550
419
|
|
|
551
|
-
|
|
552
|
-
var num = parseInt(number, 10);
|
|
420
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
553
421
|
|
|
554
|
-
|
|
555
|
-
throw new TypeError("invalid parameter to gematriya ".concat(number));
|
|
556
|
-
}
|
|
422
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
557
423
|
|
|
558
|
-
|
|
559
|
-
|
|
424
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
425
|
+
&& !Symbol.sham
|
|
426
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
560
427
|
|
|
561
|
-
|
|
562
|
-
|
|
428
|
+
var getBuiltIn$2 = getBuiltIn$4;
|
|
429
|
+
var isCallable$9 = isCallable$c;
|
|
430
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
431
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
563
432
|
|
|
564
|
-
|
|
565
|
-
str += num2heb(tdigits[i]);
|
|
566
|
-
}
|
|
433
|
+
var $Object$2 = Object;
|
|
567
434
|
|
|
568
|
-
|
|
569
|
-
|
|
435
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
436
|
+
return typeof it == 'symbol';
|
|
437
|
+
} : function (it) {
|
|
438
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
439
|
+
return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
440
|
+
};
|
|
570
441
|
|
|
571
|
-
|
|
442
|
+
var $String$2 = String;
|
|
572
443
|
|
|
573
|
-
|
|
574
|
-
|
|
444
|
+
var tryToString$3 = function (argument) {
|
|
445
|
+
try {
|
|
446
|
+
return $String$2(argument);
|
|
447
|
+
} catch (error) {
|
|
448
|
+
return 'Object';
|
|
575
449
|
}
|
|
450
|
+
};
|
|
576
451
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
str += GERSHAYIM;
|
|
580
|
-
}
|
|
452
|
+
var isCallable$8 = isCallable$c;
|
|
453
|
+
var tryToString$2 = tryToString$3;
|
|
581
454
|
|
|
582
|
-
|
|
583
|
-
}
|
|
455
|
+
var $TypeError$6 = TypeError;
|
|
584
456
|
|
|
585
|
-
|
|
586
|
-
|
|
457
|
+
// `Assert: IsCallable(argument) is true`
|
|
458
|
+
var aCallable$4 = function (argument) {
|
|
459
|
+
if (isCallable$8(argument)) return argument;
|
|
460
|
+
throw $TypeError$6(tryToString$2(argument) + ' is not a function');
|
|
461
|
+
};
|
|
587
462
|
|
|
588
|
-
var
|
|
463
|
+
var aCallable$3 = aCallable$4;
|
|
589
464
|
|
|
590
|
-
|
|
591
|
-
|
|
465
|
+
// `GetMethod` abstract operation
|
|
466
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
467
|
+
var getMethod$3 = function (V, P) {
|
|
468
|
+
var func = V[P];
|
|
469
|
+
return func == null ? undefined : aCallable$3(func);
|
|
592
470
|
};
|
|
593
471
|
|
|
594
|
-
|
|
595
|
-
var
|
|
596
|
-
|
|
597
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
598
|
-
check(typeof window == 'object' && window) ||
|
|
599
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
600
|
-
check(typeof self == 'object' && self) ||
|
|
601
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
602
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
603
|
-
(function () { return this; })() || Function('return this')();
|
|
472
|
+
var call$5 = functionCall;
|
|
473
|
+
var isCallable$7 = isCallable$c;
|
|
474
|
+
var isObject$5 = isObject$6;
|
|
604
475
|
|
|
605
|
-
var
|
|
476
|
+
var $TypeError$5 = TypeError;
|
|
606
477
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
478
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
479
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
480
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
481
|
+
var fn, val;
|
|
482
|
+
if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$5(fn, input))) return val;
|
|
483
|
+
if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$5(fn, input))) return val;
|
|
484
|
+
if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$5(fn, input))) return val;
|
|
485
|
+
throw $TypeError$5("Can't convert object to primitive value");
|
|
613
486
|
};
|
|
614
487
|
|
|
615
|
-
var
|
|
488
|
+
var shared$3 = {exports: {}};
|
|
616
489
|
|
|
617
|
-
|
|
618
|
-
var descriptors = !fails$b(function () {
|
|
619
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
620
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
621
|
-
});
|
|
490
|
+
var global$7 = global$a;
|
|
622
491
|
|
|
623
|
-
|
|
492
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
493
|
+
var defineProperty$1 = Object.defineProperty;
|
|
624
494
|
|
|
625
|
-
var
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
495
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
496
|
+
try {
|
|
497
|
+
defineProperty$1(global$7, key, { value: value, configurable: true, writable: true });
|
|
498
|
+
} catch (error) {
|
|
499
|
+
global$7[key] = value;
|
|
500
|
+
} return value;
|
|
501
|
+
};
|
|
631
502
|
|
|
632
|
-
var
|
|
503
|
+
var global$6 = global$a;
|
|
504
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
633
505
|
|
|
634
|
-
var
|
|
506
|
+
var SHARED = '__core-js_shared__';
|
|
507
|
+
var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
635
508
|
|
|
636
|
-
var
|
|
637
|
-
return call$7.apply(call$7, arguments);
|
|
638
|
-
};
|
|
509
|
+
var sharedStore = store$3;
|
|
639
510
|
|
|
640
|
-
var
|
|
511
|
+
var store$2 = sharedStore;
|
|
641
512
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
513
|
+
(shared$3.exports = function (key, value) {
|
|
514
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
515
|
+
})('versions', []).push({
|
|
516
|
+
version: '3.23.1',
|
|
517
|
+
mode: 'global',
|
|
518
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
519
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE',
|
|
520
|
+
source: 'https://github.com/zloirock/core-js'
|
|
521
|
+
});
|
|
645
522
|
|
|
646
|
-
|
|
647
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
523
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
648
524
|
|
|
649
|
-
|
|
650
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
651
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
652
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
653
|
-
return !!descriptor && descriptor.enumerable;
|
|
654
|
-
} : $propertyIsEnumerable;
|
|
525
|
+
var $Object$1 = Object;
|
|
655
526
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
writable: !(bitmap & 4),
|
|
661
|
-
value: value
|
|
662
|
-
};
|
|
527
|
+
// `ToObject` abstract operation
|
|
528
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
529
|
+
var toObject$3 = function (argument) {
|
|
530
|
+
return $Object$1(requireObjectCoercible$1(argument));
|
|
663
531
|
};
|
|
664
532
|
|
|
665
|
-
var
|
|
533
|
+
var uncurryThis$b = functionUncurryThis;
|
|
534
|
+
var toObject$2 = toObject$3;
|
|
666
535
|
|
|
667
|
-
var
|
|
668
|
-
var bind$2 = FunctionPrototype$1.bind;
|
|
669
|
-
var call$6 = FunctionPrototype$1.call;
|
|
670
|
-
var uncurryThis$e = NATIVE_BIND$1 && bind$2.bind(call$6, call$6);
|
|
536
|
+
var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
|
|
671
537
|
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
};
|
|
538
|
+
// `HasOwnProperty` abstract operation
|
|
539
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
540
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
541
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
542
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
678
543
|
};
|
|
679
544
|
|
|
680
|
-
var uncurryThis$
|
|
545
|
+
var uncurryThis$a = functionUncurryThis;
|
|
681
546
|
|
|
682
|
-
var
|
|
683
|
-
var
|
|
547
|
+
var id$1 = 0;
|
|
548
|
+
var postfix = Math.random();
|
|
549
|
+
var toString$3 = uncurryThis$a(1.0.toString);
|
|
684
550
|
|
|
685
|
-
var
|
|
686
|
-
return
|
|
551
|
+
var uid$2 = function (key) {
|
|
552
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id$1 + postfix, 36);
|
|
687
553
|
};
|
|
688
554
|
|
|
689
|
-
var global$
|
|
690
|
-
var
|
|
691
|
-
var
|
|
692
|
-
var
|
|
555
|
+
var global$5 = global$a;
|
|
556
|
+
var shared$2 = shared$3.exports;
|
|
557
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
558
|
+
var uid$1 = uid$2;
|
|
559
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
560
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
693
561
|
|
|
694
|
-
var
|
|
695
|
-
var
|
|
562
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
563
|
+
var Symbol$1 = global$5.Symbol;
|
|
564
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
565
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
696
566
|
|
|
697
|
-
|
|
698
|
-
var indexedObject = fails$9(function () {
|
|
699
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
700
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
701
|
-
return !Object$4('z').propertyIsEnumerable(0);
|
|
702
|
-
}) ? function (it) {
|
|
703
|
-
return classof$4(it) == 'String' ? split(it, '') : Object$4(it);
|
|
704
|
-
} : Object$4;
|
|
705
|
-
|
|
706
|
-
var global$p = global$r;
|
|
707
|
-
|
|
708
|
-
var TypeError$8 = global$p.TypeError;
|
|
709
|
-
|
|
710
|
-
// `RequireObjectCoercible` abstract operation
|
|
711
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
712
|
-
var requireObjectCoercible$3 = function (it) {
|
|
713
|
-
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
|
714
|
-
return it;
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
718
|
-
var IndexedObject = indexedObject;
|
|
719
|
-
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
720
|
-
|
|
721
|
-
var toIndexedObject$3 = function (it) {
|
|
722
|
-
return IndexedObject(requireObjectCoercible$2(it));
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
// `IsCallable` abstract operation
|
|
726
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
727
|
-
var isCallable$c = function (argument) {
|
|
728
|
-
return typeof argument == 'function';
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
var isCallable$b = isCallable$c;
|
|
732
|
-
|
|
733
|
-
var isObject$5 = function (it) {
|
|
734
|
-
return typeof it == 'object' ? it !== null : isCallable$b(it);
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
var global$o = global$r;
|
|
738
|
-
var isCallable$a = isCallable$c;
|
|
739
|
-
|
|
740
|
-
var aFunction = function (argument) {
|
|
741
|
-
return isCallable$a(argument) ? argument : undefined;
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
var getBuiltIn$4 = function (namespace, method) {
|
|
745
|
-
return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
var uncurryThis$b = functionUncurryThis;
|
|
749
|
-
|
|
750
|
-
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
751
|
-
|
|
752
|
-
var getBuiltIn$3 = getBuiltIn$4;
|
|
753
|
-
|
|
754
|
-
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
755
|
-
|
|
756
|
-
var global$n = global$r;
|
|
757
|
-
var userAgent$2 = engineUserAgent;
|
|
758
|
-
|
|
759
|
-
var process = global$n.process;
|
|
760
|
-
var Deno = global$n.Deno;
|
|
761
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
762
|
-
var v8 = versions && versions.v8;
|
|
763
|
-
var match, version$1;
|
|
764
|
-
|
|
765
|
-
if (v8) {
|
|
766
|
-
match = v8.split('.');
|
|
767
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
768
|
-
// but their correct versions are not interesting for us
|
|
769
|
-
version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
773
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
774
|
-
if (!version$1 && userAgent$2) {
|
|
775
|
-
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
776
|
-
if (!match || match[1] >= 74) {
|
|
777
|
-
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
778
|
-
if (match) version$1 = +match[1];
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
var engineV8Version = version$1;
|
|
783
|
-
|
|
784
|
-
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
785
|
-
|
|
786
|
-
var V8_VERSION = engineV8Version;
|
|
787
|
-
var fails$8 = fails$c;
|
|
788
|
-
|
|
789
|
-
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
790
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
791
|
-
var symbol = Symbol();
|
|
792
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
793
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
794
|
-
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
795
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
796
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
797
|
-
});
|
|
798
|
-
|
|
799
|
-
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
800
|
-
|
|
801
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
802
|
-
|
|
803
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
804
|
-
&& !Symbol.sham
|
|
805
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
806
|
-
|
|
807
|
-
var global$m = global$r;
|
|
808
|
-
var getBuiltIn$2 = getBuiltIn$4;
|
|
809
|
-
var isCallable$9 = isCallable$c;
|
|
810
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
811
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
812
|
-
|
|
813
|
-
var Object$3 = global$m.Object;
|
|
814
|
-
|
|
815
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
816
|
-
return typeof it == 'symbol';
|
|
817
|
-
} : function (it) {
|
|
818
|
-
var $Symbol = getBuiltIn$2('Symbol');
|
|
819
|
-
return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
|
|
820
|
-
};
|
|
821
|
-
|
|
822
|
-
var global$l = global$r;
|
|
823
|
-
|
|
824
|
-
var String$3 = global$l.String;
|
|
825
|
-
|
|
826
|
-
var tryToString$2 = function (argument) {
|
|
827
|
-
try {
|
|
828
|
-
return String$3(argument);
|
|
829
|
-
} catch (error) {
|
|
830
|
-
return 'Object';
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
|
|
834
|
-
var global$k = global$r;
|
|
835
|
-
var isCallable$8 = isCallable$c;
|
|
836
|
-
var tryToString$1 = tryToString$2;
|
|
837
|
-
|
|
838
|
-
var TypeError$7 = global$k.TypeError;
|
|
839
|
-
|
|
840
|
-
// `Assert: IsCallable(argument) is true`
|
|
841
|
-
var aCallable$4 = function (argument) {
|
|
842
|
-
if (isCallable$8(argument)) return argument;
|
|
843
|
-
throw TypeError$7(tryToString$1(argument) + ' is not a function');
|
|
844
|
-
};
|
|
845
|
-
|
|
846
|
-
var aCallable$3 = aCallable$4;
|
|
847
|
-
|
|
848
|
-
// `GetMethod` abstract operation
|
|
849
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
850
|
-
var getMethod$3 = function (V, P) {
|
|
851
|
-
var func = V[P];
|
|
852
|
-
return func == null ? undefined : aCallable$3(func);
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
var global$j = global$r;
|
|
856
|
-
var call$5 = functionCall;
|
|
857
|
-
var isCallable$7 = isCallable$c;
|
|
858
|
-
var isObject$4 = isObject$5;
|
|
859
|
-
|
|
860
|
-
var TypeError$6 = global$j.TypeError;
|
|
861
|
-
|
|
862
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
863
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
864
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
865
|
-
var fn, val;
|
|
866
|
-
if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
867
|
-
if (isCallable$7(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
|
|
868
|
-
if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
869
|
-
throw TypeError$6("Can't convert object to primitive value");
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
var shared$3 = {exports: {}};
|
|
873
|
-
|
|
874
|
-
var global$i = global$r;
|
|
875
|
-
|
|
876
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
877
|
-
var defineProperty$1 = Object.defineProperty;
|
|
878
|
-
|
|
879
|
-
var setGlobal$3 = function (key, value) {
|
|
880
|
-
try {
|
|
881
|
-
defineProperty$1(global$i, key, { value: value, configurable: true, writable: true });
|
|
882
|
-
} catch (error) {
|
|
883
|
-
global$i[key] = value;
|
|
884
|
-
} return value;
|
|
885
|
-
};
|
|
886
|
-
|
|
887
|
-
var global$h = global$r;
|
|
888
|
-
var setGlobal$2 = setGlobal$3;
|
|
889
|
-
|
|
890
|
-
var SHARED = '__core-js_shared__';
|
|
891
|
-
var store$3 = global$h[SHARED] || setGlobal$2(SHARED, {});
|
|
892
|
-
|
|
893
|
-
var sharedStore = store$3;
|
|
894
|
-
|
|
895
|
-
var store$2 = sharedStore;
|
|
896
|
-
|
|
897
|
-
(shared$3.exports = function (key, value) {
|
|
898
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
899
|
-
})('versions', []).push({
|
|
900
|
-
version: '3.22.5',
|
|
901
|
-
mode: 'global',
|
|
902
|
-
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
903
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
904
|
-
source: 'https://github.com/zloirock/core-js'
|
|
905
|
-
});
|
|
906
|
-
|
|
907
|
-
var global$g = global$r;
|
|
908
|
-
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
909
|
-
|
|
910
|
-
var Object$2 = global$g.Object;
|
|
911
|
-
|
|
912
|
-
// `ToObject` abstract operation
|
|
913
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
914
|
-
var toObject$3 = function (argument) {
|
|
915
|
-
return Object$2(requireObjectCoercible$1(argument));
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
var uncurryThis$a = functionUncurryThis;
|
|
919
|
-
var toObject$2 = toObject$3;
|
|
920
|
-
|
|
921
|
-
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
922
|
-
|
|
923
|
-
// `HasOwnProperty` abstract operation
|
|
924
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
925
|
-
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
926
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
927
|
-
return hasOwnProperty(toObject$2(it), key);
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
931
|
-
|
|
932
|
-
var id$1 = 0;
|
|
933
|
-
var postfix = Math.random();
|
|
934
|
-
var toString$3 = uncurryThis$9(1.0.toString);
|
|
935
|
-
|
|
936
|
-
var uid$2 = function (key) {
|
|
937
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id$1 + postfix, 36);
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
var global$f = global$r;
|
|
941
|
-
var shared$2 = shared$3.exports;
|
|
942
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
943
|
-
var uid$1 = uid$2;
|
|
944
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
945
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
946
|
-
|
|
947
|
-
var WellKnownSymbolsStore = shared$2('wks');
|
|
948
|
-
var Symbol$1 = global$f.Symbol;
|
|
949
|
-
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
950
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
951
|
-
|
|
952
|
-
var wellKnownSymbol$6 = function (name) {
|
|
567
|
+
var wellKnownSymbol$8 = function (name) {
|
|
953
568
|
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
954
569
|
var description = 'Symbol.' + name;
|
|
955
570
|
if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
|
@@ -962,28 +577,27 @@ var wellKnownSymbol$6 = function (name) {
|
|
|
962
577
|
} return WellKnownSymbolsStore[name];
|
|
963
578
|
};
|
|
964
579
|
|
|
965
|
-
var global$e = global$r;
|
|
966
580
|
var call$4 = functionCall;
|
|
967
|
-
var isObject$
|
|
581
|
+
var isObject$4 = isObject$6;
|
|
968
582
|
var isSymbol$1 = isSymbol$2;
|
|
969
583
|
var getMethod$2 = getMethod$3;
|
|
970
584
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
971
|
-
var wellKnownSymbol$
|
|
585
|
+
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
972
586
|
|
|
973
|
-
var TypeError$
|
|
974
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
587
|
+
var $TypeError$4 = TypeError;
|
|
588
|
+
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
975
589
|
|
|
976
590
|
// `ToPrimitive` abstract operation
|
|
977
591
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
978
592
|
var toPrimitive$1 = function (input, pref) {
|
|
979
|
-
if (!isObject$
|
|
593
|
+
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
|
980
594
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
981
595
|
var result;
|
|
982
596
|
if (exoticToPrim) {
|
|
983
597
|
if (pref === undefined) pref = 'default';
|
|
984
598
|
result = call$4(exoticToPrim, input, pref);
|
|
985
|
-
if (!isObject$
|
|
986
|
-
throw TypeError$
|
|
599
|
+
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
600
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
987
601
|
}
|
|
988
602
|
if (pref === undefined) pref = 'number';
|
|
989
603
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -999,23 +613,23 @@ var toPropertyKey$3 = function (argument) {
|
|
|
999
613
|
return isSymbol(key) ? key : key + '';
|
|
1000
614
|
};
|
|
1001
615
|
|
|
1002
|
-
var global$
|
|
1003
|
-
var isObject$
|
|
616
|
+
var global$4 = global$a;
|
|
617
|
+
var isObject$3 = isObject$6;
|
|
1004
618
|
|
|
1005
|
-
var document = global$
|
|
619
|
+
var document = global$4.document;
|
|
1006
620
|
// typeof document.createElement is 'object' in old IE
|
|
1007
|
-
var EXISTS$1 = isObject$
|
|
621
|
+
var EXISTS$1 = isObject$3(document) && isObject$3(document.createElement);
|
|
1008
622
|
|
|
1009
623
|
var documentCreateElement = function (it) {
|
|
1010
624
|
return EXISTS$1 ? document.createElement(it) : {};
|
|
1011
625
|
};
|
|
1012
626
|
|
|
1013
627
|
var DESCRIPTORS$6 = descriptors;
|
|
1014
|
-
var fails$
|
|
628
|
+
var fails$8 = fails$d;
|
|
1015
629
|
var createElement = documentCreateElement;
|
|
1016
630
|
|
|
1017
631
|
// Thanks to IE8 for its funny defineProperty
|
|
1018
|
-
var ie8DomDefine = !DESCRIPTORS$6 && !fails$
|
|
632
|
+
var ie8DomDefine = !DESCRIPTORS$6 && !fails$8(function () {
|
|
1019
633
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1020
634
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
1021
635
|
get: function () { return 7; }
|
|
@@ -1026,7 +640,7 @@ var DESCRIPTORS$5 = descriptors;
|
|
|
1026
640
|
var call$3 = functionCall;
|
|
1027
641
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1028
642
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
1029
|
-
var toIndexedObject$
|
|
643
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
1030
644
|
var toPropertyKey$2 = toPropertyKey$3;
|
|
1031
645
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1032
646
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -1037,7 +651,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
1037
651
|
// `Object.getOwnPropertyDescriptor` method
|
|
1038
652
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1039
653
|
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
1040
|
-
O = toIndexedObject$
|
|
654
|
+
O = toIndexedObject$3(O);
|
|
1041
655
|
P = toPropertyKey$2(P);
|
|
1042
656
|
if (IE8_DOM_DEFINE$1) try {
|
|
1043
657
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
@@ -1048,11 +662,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 :
|
|
|
1048
662
|
var objectDefineProperty = {};
|
|
1049
663
|
|
|
1050
664
|
var DESCRIPTORS$4 = descriptors;
|
|
1051
|
-
var fails$
|
|
665
|
+
var fails$7 = fails$d;
|
|
1052
666
|
|
|
1053
667
|
// V8 ~ Chrome 36-
|
|
1054
668
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1055
|
-
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$
|
|
669
|
+
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$7(function () {
|
|
1056
670
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1057
671
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1058
672
|
value: 42,
|
|
@@ -1060,26 +674,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$6(function () {
|
|
|
1060
674
|
}).prototype != 42;
|
|
1061
675
|
});
|
|
1062
676
|
|
|
1063
|
-
var
|
|
1064
|
-
var isObject$1 = isObject$5;
|
|
677
|
+
var isObject$2 = isObject$6;
|
|
1065
678
|
|
|
1066
|
-
var String$
|
|
1067
|
-
var TypeError$
|
|
679
|
+
var $String$1 = String;
|
|
680
|
+
var $TypeError$3 = TypeError;
|
|
1068
681
|
|
|
1069
682
|
// `Assert: Type(argument) is Object`
|
|
1070
683
|
var anObject$5 = function (argument) {
|
|
1071
|
-
if (isObject$
|
|
1072
|
-
throw TypeError$
|
|
684
|
+
if (isObject$2(argument)) return argument;
|
|
685
|
+
throw $TypeError$3($String$1(argument) + ' is not an object');
|
|
1073
686
|
};
|
|
1074
687
|
|
|
1075
|
-
var global$b = global$r;
|
|
1076
688
|
var DESCRIPTORS$3 = descriptors;
|
|
1077
689
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1078
690
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1079
691
|
var anObject$4 = anObject$5;
|
|
1080
692
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
1081
693
|
|
|
1082
|
-
var TypeError$
|
|
694
|
+
var $TypeError$2 = TypeError;
|
|
1083
695
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
1084
696
|
var $defineProperty = Object.defineProperty;
|
|
1085
697
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -1112,17 +724,17 @@ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
1112
724
|
if (IE8_DOM_DEFINE) try {
|
|
1113
725
|
return $defineProperty(O, P, Attributes);
|
|
1114
726
|
} catch (error) { /* empty */ }
|
|
1115
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
727
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
1116
728
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
1117
729
|
return O;
|
|
1118
730
|
};
|
|
1119
731
|
|
|
1120
732
|
var DESCRIPTORS$2 = descriptors;
|
|
1121
|
-
var definePropertyModule$
|
|
733
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1122
734
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
1123
735
|
|
|
1124
|
-
var createNonEnumerableProperty$
|
|
1125
|
-
return definePropertyModule$
|
|
736
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
737
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
1126
738
|
} : function (object, key, value) {
|
|
1127
739
|
object[key] = value;
|
|
1128
740
|
return object;
|
|
@@ -1148,11 +760,11 @@ var functionName = {
|
|
|
1148
760
|
CONFIGURABLE: CONFIGURABLE
|
|
1149
761
|
};
|
|
1150
762
|
|
|
1151
|
-
var uncurryThis$
|
|
763
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1152
764
|
var isCallable$6 = isCallable$c;
|
|
1153
765
|
var store$1 = sharedStore;
|
|
1154
766
|
|
|
1155
|
-
var functionToString = uncurryThis$
|
|
767
|
+
var functionToString = uncurryThis$9(Function.toString);
|
|
1156
768
|
|
|
1157
769
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1158
770
|
if (!isCallable$6(store$1.inspectSource)) {
|
|
@@ -1163,11 +775,11 @@ if (!isCallable$6(store$1.inspectSource)) {
|
|
|
1163
775
|
|
|
1164
776
|
var inspectSource$3 = store$1.inspectSource;
|
|
1165
777
|
|
|
1166
|
-
var global$
|
|
778
|
+
var global$3 = global$a;
|
|
1167
779
|
var isCallable$5 = isCallable$c;
|
|
1168
780
|
var inspectSource$2 = inspectSource$3;
|
|
1169
781
|
|
|
1170
|
-
var WeakMap$1 = global$
|
|
782
|
+
var WeakMap$1 = global$3.WeakMap;
|
|
1171
783
|
|
|
1172
784
|
var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
1173
785
|
|
|
@@ -1183,18 +795,18 @@ var sharedKey$1 = function (key) {
|
|
|
1183
795
|
var hiddenKeys$3 = {};
|
|
1184
796
|
|
|
1185
797
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1186
|
-
var global$
|
|
1187
|
-
var uncurryThis$
|
|
1188
|
-
var isObject = isObject$
|
|
1189
|
-
var createNonEnumerableProperty$
|
|
798
|
+
var global$2 = global$a;
|
|
799
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
800
|
+
var isObject$1 = isObject$6;
|
|
801
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
1190
802
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1191
803
|
var shared = sharedStore;
|
|
1192
804
|
var sharedKey = sharedKey$1;
|
|
1193
805
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
1194
806
|
|
|
1195
807
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1196
|
-
var TypeError$
|
|
1197
|
-
var WeakMap = global$
|
|
808
|
+
var TypeError$1 = global$2.TypeError;
|
|
809
|
+
var WeakMap = global$2.WeakMap;
|
|
1198
810
|
var set, get, has;
|
|
1199
811
|
|
|
1200
812
|
var enforce = function (it) {
|
|
@@ -1204,19 +816,19 @@ var enforce = function (it) {
|
|
|
1204
816
|
var getterFor = function (TYPE) {
|
|
1205
817
|
return function (it) {
|
|
1206
818
|
var state;
|
|
1207
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
1208
|
-
throw TypeError$
|
|
819
|
+
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
|
820
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
1209
821
|
} return state;
|
|
1210
822
|
};
|
|
1211
823
|
};
|
|
1212
824
|
|
|
1213
825
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
1214
826
|
var store = shared.state || (shared.state = new WeakMap());
|
|
1215
|
-
var wmget = uncurryThis$
|
|
1216
|
-
var wmhas = uncurryThis$
|
|
1217
|
-
var wmset = uncurryThis$
|
|
827
|
+
var wmget = uncurryThis$8(store.get);
|
|
828
|
+
var wmhas = uncurryThis$8(store.has);
|
|
829
|
+
var wmset = uncurryThis$8(store.set);
|
|
1218
830
|
set = function (it, metadata) {
|
|
1219
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
831
|
+
if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1220
832
|
metadata.facade = it;
|
|
1221
833
|
wmset(store, it, metadata);
|
|
1222
834
|
return metadata;
|
|
@@ -1231,9 +843,9 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
1231
843
|
var STATE = sharedKey('state');
|
|
1232
844
|
hiddenKeys$2[STATE] = true;
|
|
1233
845
|
set = function (it, metadata) {
|
|
1234
|
-
if (hasOwn$3(it, STATE)) throw new TypeError$
|
|
846
|
+
if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1235
847
|
metadata.facade = it;
|
|
1236
|
-
createNonEnumerableProperty$
|
|
848
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
1237
849
|
return metadata;
|
|
1238
850
|
};
|
|
1239
851
|
get = function (it) {
|
|
@@ -1252,7 +864,7 @@ var internalState = {
|
|
|
1252
864
|
getterFor: getterFor
|
|
1253
865
|
};
|
|
1254
866
|
|
|
1255
|
-
var fails$
|
|
867
|
+
var fails$6 = fails$d;
|
|
1256
868
|
var isCallable$4 = isCallable$c;
|
|
1257
869
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1258
870
|
var DESCRIPTORS = descriptors;
|
|
@@ -1265,7 +877,7 @@ var getInternalState = InternalStateModule.get;
|
|
|
1265
877
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
1266
878
|
var defineProperty = Object.defineProperty;
|
|
1267
879
|
|
|
1268
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$
|
|
880
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$6(function () {
|
|
1269
881
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1270
882
|
});
|
|
1271
883
|
|
|
@@ -1283,11 +895,12 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
1283
895
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
1284
896
|
defineProperty(value, 'length', { value: options.arity });
|
|
1285
897
|
}
|
|
1286
|
-
|
|
1287
|
-
if (
|
|
1288
|
-
defineProperty(value, 'prototype', { writable: false });
|
|
1289
|
-
|
|
1290
|
-
|
|
898
|
+
try {
|
|
899
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
900
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
901
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
902
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
903
|
+
} catch (error) { /* empty */ }
|
|
1291
904
|
var state = enforceInternalState(value);
|
|
1292
905
|
if (!hasOwn$2(state, 'source')) {
|
|
1293
906
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -1300,30 +913,30 @@ Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
|
1300
913
|
return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
|
|
1301
914
|
}, 'toString');
|
|
1302
915
|
|
|
1303
|
-
var global$8 = global$r;
|
|
1304
916
|
var isCallable$3 = isCallable$c;
|
|
1305
|
-
var
|
|
917
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1306
918
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
1307
|
-
var
|
|
919
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1308
920
|
|
|
1309
921
|
var defineBuiltIn$1 = function (O, key, value, options) {
|
|
1310
|
-
|
|
1311
|
-
var simple = options
|
|
1312
|
-
var
|
|
1313
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
922
|
+
if (!options) options = {};
|
|
923
|
+
var simple = options.enumerable;
|
|
924
|
+
var name = options.name !== undefined ? options.name : key;
|
|
1314
925
|
if (isCallable$3(value)) makeBuiltIn(value, name, options);
|
|
1315
|
-
if (
|
|
926
|
+
if (options.global) {
|
|
1316
927
|
if (simple) O[key] = value;
|
|
1317
|
-
else
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
928
|
+
else defineGlobalProperty$1(key, value);
|
|
929
|
+
} else {
|
|
930
|
+
if (!options.unsafe) delete O[key];
|
|
931
|
+
else if (O[key]) simple = true;
|
|
932
|
+
if (simple) O[key] = value;
|
|
933
|
+
else definePropertyModule$2.f(O, key, {
|
|
934
|
+
value: value,
|
|
935
|
+
enumerable: false,
|
|
936
|
+
configurable: !options.nonConfigurable,
|
|
937
|
+
writable: !options.nonWritable
|
|
938
|
+
});
|
|
939
|
+
} return O;
|
|
1327
940
|
};
|
|
1328
941
|
|
|
1329
942
|
var objectGetOwnPropertyNames = {};
|
|
@@ -1331,25 +944,35 @@ var objectGetOwnPropertyNames = {};
|
|
|
1331
944
|
var ceil = Math.ceil;
|
|
1332
945
|
var floor$1 = Math.floor;
|
|
1333
946
|
|
|
947
|
+
// `Math.trunc` method
|
|
948
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
949
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
950
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
951
|
+
var n = +x;
|
|
952
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
var trunc = mathTrunc;
|
|
956
|
+
|
|
1334
957
|
// `ToIntegerOrInfinity` abstract operation
|
|
1335
958
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
1336
959
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
1337
960
|
var number = +argument;
|
|
1338
|
-
// eslint-disable-next-line no-self-compare --
|
|
1339
|
-
return number !== number || number === 0 ? 0 : (number
|
|
961
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
962
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
1340
963
|
};
|
|
1341
964
|
|
|
1342
965
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
1343
966
|
|
|
1344
|
-
var max$
|
|
967
|
+
var max$2 = Math.max;
|
|
1345
968
|
var min$1 = Math.min;
|
|
1346
969
|
|
|
1347
970
|
// Helper for a popular repeating case of the spec:
|
|
1348
971
|
// Let integer be ? ToInteger(index).
|
|
1349
972
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
1350
|
-
var toAbsoluteIndex$
|
|
973
|
+
var toAbsoluteIndex$4 = function (index, length) {
|
|
1351
974
|
var integer = toIntegerOrInfinity$1(index);
|
|
1352
|
-
return integer < 0 ? max$
|
|
975
|
+
return integer < 0 ? max$2(integer + length, 0) : min$1(integer, length);
|
|
1353
976
|
};
|
|
1354
977
|
|
|
1355
978
|
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
@@ -1366,20 +989,20 @@ var toLength = toLength$1;
|
|
|
1366
989
|
|
|
1367
990
|
// `LengthOfArrayLike` abstract operation
|
|
1368
991
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1369
|
-
var lengthOfArrayLike$
|
|
992
|
+
var lengthOfArrayLike$5 = function (obj) {
|
|
1370
993
|
return toLength(obj.length);
|
|
1371
994
|
};
|
|
1372
995
|
|
|
1373
|
-
var toIndexedObject$
|
|
1374
|
-
var toAbsoluteIndex$
|
|
1375
|
-
var lengthOfArrayLike$
|
|
996
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
997
|
+
var toAbsoluteIndex$3 = toAbsoluteIndex$4;
|
|
998
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
1376
999
|
|
|
1377
1000
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
1378
1001
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
1379
1002
|
return function ($this, el, fromIndex) {
|
|
1380
|
-
var O = toIndexedObject$
|
|
1381
|
-
var length = lengthOfArrayLike$
|
|
1382
|
-
var index = toAbsoluteIndex$
|
|
1003
|
+
var O = toIndexedObject$2($this);
|
|
1004
|
+
var length = lengthOfArrayLike$4(O);
|
|
1005
|
+
var index = toAbsoluteIndex$3(fromIndex, length);
|
|
1383
1006
|
var value;
|
|
1384
1007
|
// Array#includes uses SameValueZero equality algorithm
|
|
1385
1008
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -1403,16 +1026,16 @@ var arrayIncludes = {
|
|
|
1403
1026
|
indexOf: createMethod$1(false)
|
|
1404
1027
|
};
|
|
1405
1028
|
|
|
1406
|
-
var uncurryThis$
|
|
1029
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1407
1030
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1408
|
-
var toIndexedObject = toIndexedObject$
|
|
1031
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
1409
1032
|
var indexOf = arrayIncludes.indexOf;
|
|
1410
1033
|
var hiddenKeys$1 = hiddenKeys$3;
|
|
1411
1034
|
|
|
1412
|
-
var push$1 = uncurryThis$
|
|
1035
|
+
var push$1 = uncurryThis$7([].push);
|
|
1413
1036
|
|
|
1414
1037
|
var objectKeysInternal = function (object, names) {
|
|
1415
|
-
var O = toIndexedObject(object);
|
|
1038
|
+
var O = toIndexedObject$1(object);
|
|
1416
1039
|
var i = 0;
|
|
1417
1040
|
var result = [];
|
|
1418
1041
|
var key;
|
|
@@ -1453,12 +1076,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1453
1076
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1454
1077
|
|
|
1455
1078
|
var getBuiltIn$1 = getBuiltIn$4;
|
|
1456
|
-
var uncurryThis$
|
|
1079
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1457
1080
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1458
1081
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1459
1082
|
var anObject$3 = anObject$5;
|
|
1460
1083
|
|
|
1461
|
-
var concat = uncurryThis$
|
|
1084
|
+
var concat = uncurryThis$6([].concat);
|
|
1462
1085
|
|
|
1463
1086
|
// all object keys, includes non-enumerable and symbols
|
|
1464
1087
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -1484,7 +1107,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
1484
1107
|
}
|
|
1485
1108
|
};
|
|
1486
1109
|
|
|
1487
|
-
var fails$
|
|
1110
|
+
var fails$5 = fails$d;
|
|
1488
1111
|
var isCallable$2 = isCallable$c;
|
|
1489
1112
|
|
|
1490
1113
|
var replacement = /#|\.prototype\./;
|
|
@@ -1493,7 +1116,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1493
1116
|
var value = data[normalize(feature)];
|
|
1494
1117
|
return value == POLYFILL ? true
|
|
1495
1118
|
: value == NATIVE ? false
|
|
1496
|
-
: isCallable$2(detection) ? fails$
|
|
1119
|
+
: isCallable$2(detection) ? fails$5(detection)
|
|
1497
1120
|
: !!detection;
|
|
1498
1121
|
};
|
|
1499
1122
|
|
|
@@ -1507,28 +1130,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1507
1130
|
|
|
1508
1131
|
var isForced_1 = isForced$1;
|
|
1509
1132
|
|
|
1510
|
-
var global$
|
|
1133
|
+
var global$1 = global$a;
|
|
1511
1134
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1512
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1135
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
1513
1136
|
var defineBuiltIn = defineBuiltIn$1;
|
|
1514
|
-
var
|
|
1137
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1515
1138
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1516
1139
|
var isForced = isForced_1;
|
|
1517
1140
|
|
|
1518
1141
|
/*
|
|
1519
|
-
options.target
|
|
1520
|
-
options.global
|
|
1521
|
-
options.stat
|
|
1522
|
-
options.proto
|
|
1523
|
-
options.real
|
|
1524
|
-
options.forced
|
|
1525
|
-
options.bind
|
|
1526
|
-
options.wrap
|
|
1527
|
-
options.unsafe
|
|
1528
|
-
options.sham
|
|
1529
|
-
options.enumerable
|
|
1530
|
-
options.
|
|
1531
|
-
options.name
|
|
1142
|
+
options.target - name of the target object
|
|
1143
|
+
options.global - target is the global object
|
|
1144
|
+
options.stat - export as static methods of target
|
|
1145
|
+
options.proto - export as prototype methods of target
|
|
1146
|
+
options.real - real prototype method for the `pure` version
|
|
1147
|
+
options.forced - export even if the native feature is available
|
|
1148
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1149
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1150
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1151
|
+
options.sham - add a flag to not completely full polyfills
|
|
1152
|
+
options.enumerable - export as enumerable property
|
|
1153
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1154
|
+
options.name - the .name of the function if it does not match the key
|
|
1532
1155
|
*/
|
|
1533
1156
|
var _export = function (options, source) {
|
|
1534
1157
|
var TARGET = options.target;
|
|
@@ -1536,15 +1159,15 @@ var _export = function (options, source) {
|
|
|
1536
1159
|
var STATIC = options.stat;
|
|
1537
1160
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1538
1161
|
if (GLOBAL) {
|
|
1539
|
-
target = global$
|
|
1162
|
+
target = global$1;
|
|
1540
1163
|
} else if (STATIC) {
|
|
1541
|
-
target = global$
|
|
1164
|
+
target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1542
1165
|
} else {
|
|
1543
|
-
target = (global$
|
|
1166
|
+
target = (global$1[TARGET] || {}).prototype;
|
|
1544
1167
|
}
|
|
1545
1168
|
if (target) for (key in source) {
|
|
1546
1169
|
sourceProperty = source[key];
|
|
1547
|
-
if (options.
|
|
1170
|
+
if (options.dontCallGetSet) {
|
|
1548
1171
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1549
1172
|
targetProperty = descriptor && descriptor.value;
|
|
1550
1173
|
} else targetProperty = target[key];
|
|
@@ -1562,23 +1185,31 @@ var _export = function (options, source) {
|
|
|
1562
1185
|
}
|
|
1563
1186
|
};
|
|
1564
1187
|
|
|
1565
|
-
var
|
|
1188
|
+
var classof$4 = classofRaw$1;
|
|
1189
|
+
|
|
1190
|
+
// `IsArray` abstract operation
|
|
1191
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
1192
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1193
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
1194
|
+
return classof$4(argument) == 'Array';
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1566
1198
|
|
|
1567
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1199
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
|
|
1568
1200
|
var test$1 = {};
|
|
1569
1201
|
|
|
1570
1202
|
test$1[TO_STRING_TAG$1] = 'z';
|
|
1571
1203
|
|
|
1572
1204
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1573
1205
|
|
|
1574
|
-
var global$6 = global$r;
|
|
1575
1206
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1576
1207
|
var isCallable$1 = isCallable$c;
|
|
1577
1208
|
var classofRaw = classofRaw$1;
|
|
1578
|
-
var wellKnownSymbol$
|
|
1209
|
+
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1579
1210
|
|
|
1580
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1581
|
-
var Object
|
|
1211
|
+
var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
|
|
1212
|
+
var $Object = Object;
|
|
1582
1213
|
|
|
1583
1214
|
// ES3 wrong here
|
|
1584
1215
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1595,46 +1226,606 @@ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1595
1226
|
var O, tag, result;
|
|
1596
1227
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1597
1228
|
// @@toStringTag case
|
|
1598
|
-
: typeof (tag = tryGet(O = Object
|
|
1229
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1599
1230
|
// builtinTag case
|
|
1600
1231
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1601
1232
|
// ES3 arguments fallback
|
|
1602
1233
|
: (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
|
1603
1234
|
};
|
|
1604
1235
|
|
|
1605
|
-
var
|
|
1236
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1237
|
+
var fails$4 = fails$d;
|
|
1238
|
+
var isCallable = isCallable$c;
|
|
1606
1239
|
var classof$2 = classof$3;
|
|
1240
|
+
var getBuiltIn = getBuiltIn$4;
|
|
1241
|
+
var inspectSource = inspectSource$3;
|
|
1607
1242
|
|
|
1608
|
-
var
|
|
1243
|
+
var noop = function () { /* empty */ };
|
|
1244
|
+
var empty = [];
|
|
1245
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
1246
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1247
|
+
var exec = uncurryThis$5(constructorRegExp.exec);
|
|
1248
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1609
1249
|
|
|
1610
|
-
var
|
|
1611
|
-
if (
|
|
1612
|
-
|
|
1250
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
1251
|
+
if (!isCallable(argument)) return false;
|
|
1252
|
+
try {
|
|
1253
|
+
construct(noop, empty, argument);
|
|
1254
|
+
return true;
|
|
1255
|
+
} catch (error) {
|
|
1256
|
+
return false;
|
|
1257
|
+
}
|
|
1613
1258
|
};
|
|
1614
1259
|
|
|
1615
|
-
var
|
|
1616
|
-
|
|
1617
|
-
|
|
1260
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
1261
|
+
if (!isCallable(argument)) return false;
|
|
1262
|
+
switch (classof$2(argument)) {
|
|
1263
|
+
case 'AsyncFunction':
|
|
1264
|
+
case 'GeneratorFunction':
|
|
1265
|
+
case 'AsyncGeneratorFunction': return false;
|
|
1266
|
+
}
|
|
1267
|
+
try {
|
|
1268
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1269
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1270
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
1271
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
1272
|
+
} catch (error) {
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
isConstructorLegacy.sham = true;
|
|
1278
|
+
|
|
1279
|
+
// `IsConstructor` abstract operation
|
|
1280
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1281
|
+
var isConstructor$2 = !construct || fails$4(function () {
|
|
1282
|
+
var called;
|
|
1283
|
+
return isConstructorModern(isConstructorModern.call)
|
|
1284
|
+
|| !isConstructorModern(Object)
|
|
1285
|
+
|| !isConstructorModern(function () { called = true; })
|
|
1286
|
+
|| called;
|
|
1287
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
1288
|
+
|
|
1289
|
+
var toPropertyKey = toPropertyKey$3;
|
|
1290
|
+
var definePropertyModule = objectDefineProperty;
|
|
1291
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1292
|
+
|
|
1293
|
+
var createProperty$3 = function (object, key, value) {
|
|
1294
|
+
var propertyKey = toPropertyKey(key);
|
|
1295
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1296
|
+
else object[propertyKey] = value;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
var fails$3 = fails$d;
|
|
1300
|
+
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1301
|
+
var V8_VERSION = engineV8Version;
|
|
1302
|
+
|
|
1303
|
+
var SPECIES$1 = wellKnownSymbol$4('species');
|
|
1304
|
+
|
|
1305
|
+
var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
|
|
1306
|
+
// We can't use this feature detection in V8 since it causes
|
|
1307
|
+
// deoptimization and serious performance degradation
|
|
1308
|
+
// https://github.com/zloirock/core-js/issues/677
|
|
1309
|
+
return V8_VERSION >= 51 || !fails$3(function () {
|
|
1310
|
+
var array = [];
|
|
1311
|
+
var constructor = array.constructor = {};
|
|
1312
|
+
constructor[SPECIES$1] = function () {
|
|
1313
|
+
return { foo: 1 };
|
|
1314
|
+
};
|
|
1315
|
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
1316
|
+
});
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1320
|
+
|
|
1321
|
+
var arraySlice$1 = uncurryThis$4([].slice);
|
|
1322
|
+
|
|
1323
|
+
var $$4 = _export;
|
|
1324
|
+
var isArray = isArray$1;
|
|
1325
|
+
var isConstructor$1 = isConstructor$2;
|
|
1326
|
+
var isObject = isObject$6;
|
|
1327
|
+
var toAbsoluteIndex$2 = toAbsoluteIndex$4;
|
|
1328
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1329
|
+
var toIndexedObject = toIndexedObject$4;
|
|
1330
|
+
var createProperty$2 = createProperty$3;
|
|
1331
|
+
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1332
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
1333
|
+
var un$Slice = arraySlice$1;
|
|
1334
|
+
|
|
1335
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
|
1336
|
+
|
|
1337
|
+
var SPECIES = wellKnownSymbol$3('species');
|
|
1338
|
+
var $Array$2 = Array;
|
|
1339
|
+
var max$1 = Math.max;
|
|
1340
|
+
|
|
1341
|
+
// `Array.prototype.slice` method
|
|
1342
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
1343
|
+
// fallback for not array-like ES3 strings and DOM objects
|
|
1344
|
+
$$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1345
|
+
slice: function slice(start, end) {
|
|
1346
|
+
var O = toIndexedObject(this);
|
|
1347
|
+
var length = lengthOfArrayLike$3(O);
|
|
1348
|
+
var k = toAbsoluteIndex$2(start, length);
|
|
1349
|
+
var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
|
|
1350
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
1351
|
+
var Constructor, result, n;
|
|
1352
|
+
if (isArray(O)) {
|
|
1353
|
+
Constructor = O.constructor;
|
|
1354
|
+
// cross-realm fallback
|
|
1355
|
+
if (isConstructor$1(Constructor) && (Constructor === $Array$2 || isArray(Constructor.prototype))) {
|
|
1356
|
+
Constructor = undefined;
|
|
1357
|
+
} else if (isObject(Constructor)) {
|
|
1358
|
+
Constructor = Constructor[SPECIES];
|
|
1359
|
+
if (Constructor === null) Constructor = undefined;
|
|
1360
|
+
}
|
|
1361
|
+
if (Constructor === $Array$2 || Constructor === undefined) {
|
|
1362
|
+
return un$Slice(O, k, fin);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
result = new (Constructor === undefined ? $Array$2 : Constructor)(max$1(fin - k, 0));
|
|
1366
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
|
|
1367
|
+
result.length = n;
|
|
1368
|
+
return result;
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
|
|
1372
|
+
/*
|
|
1373
|
+
* More minimal greg routines
|
|
1374
|
+
*/
|
|
1375
|
+
|
|
1376
|
+
/** @private */
|
|
1377
|
+
var lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1378
|
+
/** @private */
|
|
1379
|
+
|
|
1380
|
+
var monthLengths = [lengths, lengths.slice()];
|
|
1381
|
+
monthLengths[1][2] = 29;
|
|
1382
|
+
/**
|
|
1383
|
+
* @private
|
|
1384
|
+
* @param {number} x
|
|
1385
|
+
* @param {number} y
|
|
1386
|
+
* @return {number}
|
|
1387
|
+
*/
|
|
1388
|
+
|
|
1389
|
+
function mod(x, y) {
|
|
1390
|
+
return x - y * Math.floor(x / y);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* @private
|
|
1394
|
+
* @param {number} x
|
|
1395
|
+
* @param {number} y
|
|
1396
|
+
* @return {number}
|
|
1397
|
+
*/
|
|
1398
|
+
|
|
1399
|
+
function quotient(x, y) {
|
|
1400
|
+
return Math.floor(x / y);
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Returns true if the Gregorian year is a leap year
|
|
1404
|
+
* @private
|
|
1405
|
+
* @param {number} year Gregorian year
|
|
1406
|
+
* @return {boolean}
|
|
1407
|
+
*/
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
function isLeapYear$1(year) {
|
|
1411
|
+
return !(year % 4) && (!!(year % 100) || !(year % 400));
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Number of days in the Gregorian month for given year
|
|
1415
|
+
* @private
|
|
1416
|
+
* @param {number} month Gregorian month (1=January, 12=December)
|
|
1417
|
+
* @param {number} year Gregorian year
|
|
1418
|
+
* @return {number}
|
|
1419
|
+
*/
|
|
1420
|
+
|
|
1421
|
+
function daysInMonth$1(month, year) {
|
|
1422
|
+
// 1 based months
|
|
1423
|
+
return monthLengths[+isLeapYear$1(year)][month];
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Returns true if the object is a Javascript Date
|
|
1427
|
+
* @private
|
|
1428
|
+
* @param {Object} obj
|
|
1429
|
+
* @return {boolean}
|
|
1430
|
+
*/
|
|
1431
|
+
|
|
1432
|
+
function isDate(obj) {
|
|
1433
|
+
return _typeof(obj) === 'object' && Date.prototype === obj.__proto__;
|
|
1434
|
+
}
|
|
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 doy = date.getDate() + 31 * date.getMonth();
|
|
1448
|
+
|
|
1449
|
+
if (date.getMonth() > 1) {
|
|
1450
|
+
// FEB
|
|
1451
|
+
doy -= Math.floor((4 * (date.getMonth() + 1) + 23) / 10);
|
|
1452
|
+
|
|
1453
|
+
if (isLeapYear$1(date.getFullYear())) {
|
|
1454
|
+
doy++;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
return doy;
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
1462
|
+
* @private
|
|
1463
|
+
* @param {Date} date Gregorian date
|
|
1464
|
+
* @return {number}
|
|
1465
|
+
*/
|
|
1466
|
+
|
|
1467
|
+
function greg2abs(date) {
|
|
1468
|
+
if (!isDate(date)) {
|
|
1469
|
+
throw new TypeError("Argument not a Date: ".concat(date));
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
var year = date.getFullYear() - 1;
|
|
1473
|
+
return dayOfYear(date) + // days this year
|
|
1474
|
+
365 * year + ( // + days in prior years
|
|
1475
|
+
Math.floor(year / 4) - // + Julian Leap years
|
|
1476
|
+
Math.floor(year / 100) + // - century years
|
|
1477
|
+
Math.floor(year / 400)); // + Gregorian leap years
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* @private
|
|
1481
|
+
* @param {number} abs - R.D. number of days
|
|
1482
|
+
* @return {number}
|
|
1483
|
+
*/
|
|
1484
|
+
|
|
1485
|
+
function yearFromFixed(abs) {
|
|
1486
|
+
var l0 = abs - 1;
|
|
1487
|
+
var n400 = quotient(l0, 146097);
|
|
1488
|
+
var d1 = mod(l0, 146097);
|
|
1489
|
+
var n100 = quotient(d1, 36524);
|
|
1490
|
+
var d2 = mod(d1, 36524);
|
|
1491
|
+
var n4 = quotient(d2, 1461);
|
|
1492
|
+
var d3 = mod(d2, 1461);
|
|
1493
|
+
var n1 = quotient(d3, 365);
|
|
1494
|
+
var year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
|
|
1495
|
+
return n100 != 4 && n1 != 4 ? year + 1 : year;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* @private
|
|
1499
|
+
* @param {number} year
|
|
1500
|
+
* @param {number} month
|
|
1501
|
+
* @param {number} day
|
|
1502
|
+
* @return {number}
|
|
1503
|
+
*/
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
function toFixed(year, month, day) {
|
|
1507
|
+
var py = year - 1;
|
|
1508
|
+
return 0 + 365 * py + quotient(py, 4) - quotient(py, 100) + quotient(py, 400) + quotient(367 * month - 362, 12) + Math.floor(month <= 2 ? 0 : isLeapYear$1(year) ? -1 : -2) + day;
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
1512
|
+
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
1513
|
+
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
1514
|
+
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
1515
|
+
* (April, 1993), pages 383-404 for an explanation.
|
|
1516
|
+
* @private
|
|
1517
|
+
* @param {number} abs - R.D. number of days
|
|
1518
|
+
* @return {Date}
|
|
1519
|
+
*/
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
function abs2greg(abs) {
|
|
1523
|
+
if (typeof abs !== 'number') {
|
|
1524
|
+
throw new TypeError("Argument not a Number: ".concat(abs));
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
abs = Math.trunc(abs);
|
|
1528
|
+
var year = yearFromFixed(abs);
|
|
1529
|
+
var priorDays = abs - toFixed(year, 1, 1);
|
|
1530
|
+
var correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear$1(year) ? 1 : 2;
|
|
1531
|
+
var month = quotient(12 * (priorDays + correction) + 373, 367);
|
|
1532
|
+
var day = abs - toFixed(year, month, 1) + 1;
|
|
1533
|
+
var dt = new Date(year, month - 1, day);
|
|
1534
|
+
|
|
1535
|
+
if (year < 100 && year >= 0) {
|
|
1536
|
+
dt.setFullYear(year);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
return dt;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Gregorian date helper functions.
|
|
1544
|
+
*/
|
|
1545
|
+
|
|
1546
|
+
var greg = /*#__PURE__*/function () {
|
|
1547
|
+
function greg() {
|
|
1548
|
+
_classCallCheck(this, greg);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
_createClass(greg, null, [{
|
|
1552
|
+
key: "isLeapYear",
|
|
1553
|
+
value:
|
|
1554
|
+
/**
|
|
1555
|
+
* Long names of the Gregorian months (1='January', 12='December')
|
|
1556
|
+
* @readonly
|
|
1557
|
+
* @type {string[]}
|
|
1558
|
+
*/
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Returns true if the Gregorian year is a leap year
|
|
1562
|
+
* @param {number} year Gregorian year
|
|
1563
|
+
* @return {boolean}
|
|
1564
|
+
*/
|
|
1565
|
+
function isLeapYear(year) {
|
|
1566
|
+
return isLeapYear$1(year);
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Number of days in the Gregorian month for given year
|
|
1570
|
+
* @param {number} month Gregorian month (1=January, 12=December)
|
|
1571
|
+
* @param {number} year Gregorian year
|
|
1572
|
+
* @return {number}
|
|
1573
|
+
*/
|
|
1574
|
+
|
|
1575
|
+
}, {
|
|
1576
|
+
key: "daysInMonth",
|
|
1577
|
+
value: function daysInMonth(month, year) {
|
|
1578
|
+
return daysInMonth$1(month, year);
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Returns true if the object is a Javascript Date
|
|
1582
|
+
* @param {Object} obj
|
|
1583
|
+
* @return {boolean}
|
|
1584
|
+
*/
|
|
1585
|
+
|
|
1586
|
+
}, {
|
|
1587
|
+
key: "isDate",
|
|
1588
|
+
value: function isDate$1(obj) {
|
|
1589
|
+
return isDate(obj);
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Returns number of days since January 1 of that year
|
|
1593
|
+
* @param {Date} date Gregorian date
|
|
1594
|
+
* @return {number}
|
|
1595
|
+
*/
|
|
1596
|
+
|
|
1597
|
+
}, {
|
|
1598
|
+
key: "dayOfYear",
|
|
1599
|
+
value: function dayOfYear$1(date) {
|
|
1600
|
+
return dayOfYear(date);
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
1604
|
+
* @param {Date} date Gregorian date
|
|
1605
|
+
* @return {number}
|
|
1606
|
+
*/
|
|
1607
|
+
|
|
1608
|
+
}, {
|
|
1609
|
+
key: "greg2abs",
|
|
1610
|
+
value: function greg2abs$1(date) {
|
|
1611
|
+
return greg2abs(date);
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
1615
|
+
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
1616
|
+
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
1617
|
+
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
1618
|
+
* (April, 1993), pages 383-404 for an explanation.
|
|
1619
|
+
* @param {number} theDate - R.D. number of days
|
|
1620
|
+
* @return {Date}
|
|
1621
|
+
*/
|
|
1622
|
+
|
|
1623
|
+
}, {
|
|
1624
|
+
key: "abs2greg",
|
|
1625
|
+
value: function abs2greg$1(theDate) {
|
|
1626
|
+
return abs2greg(theDate);
|
|
1627
|
+
}
|
|
1628
|
+
}]);
|
|
1629
|
+
|
|
1630
|
+
return greg;
|
|
1631
|
+
}();
|
|
1632
|
+
|
|
1633
|
+
_defineProperty(greg, "monthNames", ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']);
|
|
1634
|
+
|
|
1635
|
+
var GERESH = '׳';
|
|
1636
|
+
var GERSHAYIM = '״';
|
|
1637
|
+
/**
|
|
1638
|
+
* @private
|
|
1639
|
+
* @param {number} num
|
|
1640
|
+
* @return {string}
|
|
1641
|
+
*/
|
|
1642
|
+
|
|
1643
|
+
function num2heb(num) {
|
|
1644
|
+
switch (num) {
|
|
1645
|
+
case 1:
|
|
1646
|
+
return 'א';
|
|
1647
|
+
|
|
1648
|
+
case 2:
|
|
1649
|
+
return 'ב';
|
|
1650
|
+
|
|
1651
|
+
case 3:
|
|
1652
|
+
return 'ג';
|
|
1653
|
+
|
|
1654
|
+
case 4:
|
|
1655
|
+
return 'ד';
|
|
1656
|
+
|
|
1657
|
+
case 5:
|
|
1658
|
+
return 'ה';
|
|
1659
|
+
|
|
1660
|
+
case 6:
|
|
1661
|
+
return 'ו';
|
|
1662
|
+
|
|
1663
|
+
case 7:
|
|
1664
|
+
return 'ז';
|
|
1665
|
+
|
|
1666
|
+
case 8:
|
|
1667
|
+
return 'ח';
|
|
1668
|
+
|
|
1669
|
+
case 9:
|
|
1670
|
+
return 'ט';
|
|
1671
|
+
|
|
1672
|
+
case 10:
|
|
1673
|
+
return 'י';
|
|
1674
|
+
|
|
1675
|
+
case 20:
|
|
1676
|
+
return 'כ';
|
|
1677
|
+
|
|
1678
|
+
case 30:
|
|
1679
|
+
return 'ל';
|
|
1680
|
+
|
|
1681
|
+
case 40:
|
|
1682
|
+
return 'מ';
|
|
1683
|
+
|
|
1684
|
+
case 50:
|
|
1685
|
+
return 'נ';
|
|
1686
|
+
|
|
1687
|
+
case 60:
|
|
1688
|
+
return 'ס';
|
|
1689
|
+
|
|
1690
|
+
case 70:
|
|
1691
|
+
return 'ע';
|
|
1692
|
+
|
|
1693
|
+
case 80:
|
|
1694
|
+
return 'פ';
|
|
1695
|
+
|
|
1696
|
+
case 90:
|
|
1697
|
+
return 'צ';
|
|
1698
|
+
|
|
1699
|
+
case 100:
|
|
1700
|
+
return 'ק';
|
|
1701
|
+
|
|
1702
|
+
case 200:
|
|
1703
|
+
return 'ר';
|
|
1704
|
+
|
|
1705
|
+
case 300:
|
|
1706
|
+
return 'ש';
|
|
1707
|
+
|
|
1708
|
+
case 400:
|
|
1709
|
+
return 'ת';
|
|
1710
|
+
|
|
1711
|
+
default:
|
|
1712
|
+
return '*INVALID*';
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* @private
|
|
1717
|
+
* @param {number} num
|
|
1718
|
+
* @return {number[]}
|
|
1719
|
+
*/
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
function num2digits(num) {
|
|
1723
|
+
var digits = [];
|
|
1724
|
+
|
|
1725
|
+
while (num > 0) {
|
|
1726
|
+
if (num === 15 || num === 16) {
|
|
1727
|
+
digits.push(9);
|
|
1728
|
+
digits.push(num - 9);
|
|
1729
|
+
break;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
var incr = 100;
|
|
1733
|
+
var i = void 0;
|
|
1734
|
+
|
|
1735
|
+
for (i = 400; i > num; i -= incr) {
|
|
1736
|
+
if (i === incr) {
|
|
1737
|
+
incr = incr / 10;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
digits.push(i);
|
|
1742
|
+
num -= i;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
return digits;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Converts a numerical value to a string of Hebrew letters.
|
|
1749
|
+
*
|
|
1750
|
+
* When specifying years of the Hebrew calendar in the present millennium,
|
|
1751
|
+
* we omit the thousands (which is presently 5 [ה]).
|
|
1752
|
+
* @example
|
|
1753
|
+
* gematriya(5774) // 'תשע״ד' - cropped to 774
|
|
1754
|
+
* gematriya(25) // 'כ״ה'
|
|
1755
|
+
* gematriya(60) // 'ס׳'
|
|
1756
|
+
* gematriya(3761) // 'ג׳תשס״א'
|
|
1757
|
+
* gematriya(1123) // 'א׳קכ״ג'
|
|
1758
|
+
* @param {number} number
|
|
1759
|
+
* @return {string}
|
|
1760
|
+
*/
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
function gematriya(number) {
|
|
1764
|
+
var num = parseInt(number, 10);
|
|
1765
|
+
|
|
1766
|
+
if (!num) {
|
|
1767
|
+
throw new TypeError("invalid parameter to gematriya ".concat(number));
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
var str = '';
|
|
1771
|
+
var thousands = Math.floor(num / 1000);
|
|
1772
|
+
|
|
1773
|
+
if (thousands > 0 && thousands !== 5) {
|
|
1774
|
+
var tdigits = num2digits(thousands);
|
|
1775
|
+
|
|
1776
|
+
for (var i = 0; i < tdigits.length; i++) {
|
|
1777
|
+
str += num2heb(tdigits[i]);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
str += GERESH;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
var digits = num2digits(num % 1000);
|
|
1784
|
+
|
|
1785
|
+
if (digits.length == 1) {
|
|
1786
|
+
return str + num2heb(digits[0]) + GERESH;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
for (var _i = 0; _i < digits.length; _i++) {
|
|
1790
|
+
if (_i + 1 === digits.length) {
|
|
1791
|
+
str += GERSHAYIM;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
str += num2heb(digits[_i]);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
return str;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
var tryToString$1 = tryToString$3;
|
|
1801
|
+
|
|
1802
|
+
var $TypeError$1 = TypeError;
|
|
1803
|
+
|
|
1804
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
1805
|
+
if (!delete O[P]) throw $TypeError$1('Cannot delete property ' + tryToString$1(P) + ' of ' + tryToString$1(O));
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
var classof$1 = classof$3;
|
|
1809
|
+
|
|
1810
|
+
var $String = String;
|
|
1618
1811
|
|
|
1619
|
-
var
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
else object[propertyKey] = value;
|
|
1812
|
+
var toString$2 = function (argument) {
|
|
1813
|
+
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1814
|
+
return $String(argument);
|
|
1623
1815
|
};
|
|
1624
1816
|
|
|
1625
|
-
var
|
|
1626
|
-
var
|
|
1627
|
-
var
|
|
1628
|
-
var createProperty$1 = createProperty$2;
|
|
1817
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$4;
|
|
1818
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
1819
|
+
var createProperty$1 = createProperty$3;
|
|
1629
1820
|
|
|
1630
|
-
var Array$
|
|
1821
|
+
var $Array$1 = Array;
|
|
1631
1822
|
var max = Math.max;
|
|
1632
1823
|
|
|
1633
1824
|
var arraySliceSimple = function (O, start, end) {
|
|
1634
1825
|
var length = lengthOfArrayLike$2(O);
|
|
1635
1826
|
var k = toAbsoluteIndex$1(start, length);
|
|
1636
1827
|
var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
|
|
1637
|
-
var result = Array$
|
|
1828
|
+
var result = $Array$1(max(fin - k, 0));
|
|
1638
1829
|
for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
1639
1830
|
result.length = n;
|
|
1640
1831
|
return result;
|
|
@@ -1685,11 +1876,11 @@ var merge = function (array, left, right, comparefn) {
|
|
|
1685
1876
|
|
|
1686
1877
|
var arraySort = mergeSort;
|
|
1687
1878
|
|
|
1688
|
-
var fails$
|
|
1879
|
+
var fails$2 = fails$d;
|
|
1689
1880
|
|
|
1690
1881
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1691
1882
|
var method = [][METHOD_NAME];
|
|
1692
|
-
return !!method && fails$
|
|
1883
|
+
return !!method && fails$2(function () {
|
|
1693
1884
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1694
1885
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1695
1886
|
});
|
|
@@ -1712,12 +1903,13 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
1712
1903
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
1713
1904
|
|
|
1714
1905
|
var $$3 = _export;
|
|
1715
|
-
var uncurryThis$
|
|
1906
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1716
1907
|
var aCallable$2 = aCallable$4;
|
|
1717
1908
|
var toObject$1 = toObject$3;
|
|
1718
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$
|
|
1909
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
1910
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
1719
1911
|
var toString$1 = toString$2;
|
|
1720
|
-
var fails$
|
|
1912
|
+
var fails$1 = fails$d;
|
|
1721
1913
|
var internalSort = arraySort;
|
|
1722
1914
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1723
1915
|
var FF = engineFfVersion;
|
|
@@ -1726,21 +1918,21 @@ var V8 = engineV8Version;
|
|
|
1726
1918
|
var WEBKIT = engineWebkitVersion;
|
|
1727
1919
|
|
|
1728
1920
|
var test = [];
|
|
1729
|
-
var un$Sort = uncurryThis$
|
|
1730
|
-
var push = uncurryThis$
|
|
1921
|
+
var un$Sort = uncurryThis$3(test.sort);
|
|
1922
|
+
var push = uncurryThis$3(test.push);
|
|
1731
1923
|
|
|
1732
1924
|
// IE8-
|
|
1733
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
1925
|
+
var FAILS_ON_UNDEFINED = fails$1(function () {
|
|
1734
1926
|
test.sort(undefined);
|
|
1735
1927
|
});
|
|
1736
1928
|
// V8 bug
|
|
1737
|
-
var FAILS_ON_NULL = fails$
|
|
1929
|
+
var FAILS_ON_NULL = fails$1(function () {
|
|
1738
1930
|
test.sort(null);
|
|
1739
1931
|
});
|
|
1740
1932
|
// Old WebKit
|
|
1741
1933
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
1742
1934
|
|
|
1743
|
-
var STABLE_SORT = !fails$
|
|
1935
|
+
var STABLE_SORT = !fails$1(function () {
|
|
1744
1936
|
// feature detection can be too slow, so check engines versions
|
|
1745
1937
|
if (V8) return V8 < 70;
|
|
1746
1938
|
if (FF && FF > 3) return;
|
|
@@ -1810,7 +2002,7 @@ $$3({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
1810
2002
|
index = 0;
|
|
1811
2003
|
|
|
1812
2004
|
while (index < itemsLength) array[index] = items[index++];
|
|
1813
|
-
while (index < arrayLength)
|
|
2005
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
1814
2006
|
|
|
1815
2007
|
return array;
|
|
1816
2008
|
}
|
|
@@ -2024,17 +2216,20 @@ Locale.addLocale('s', noopLocale);
|
|
|
2024
2216
|
Locale.addLocale('', noopLocale);
|
|
2025
2217
|
Locale.useLocale('en');
|
|
2026
2218
|
|
|
2219
|
+
/*
|
|
2220
|
+
* More minimal HDate
|
|
2221
|
+
*/
|
|
2027
2222
|
var NISAN$3 = 1;
|
|
2028
|
-
var IYYAR$1 = 2;
|
|
2029
|
-
|
|
2030
|
-
var TAMUZ$1 = 4;
|
|
2031
|
-
|
|
2223
|
+
var IYYAR$1 = 2; // const SIVAN = 3;
|
|
2224
|
+
|
|
2225
|
+
var TAMUZ$1 = 4; // const AV = 5;
|
|
2226
|
+
|
|
2032
2227
|
var ELUL$2 = 6;
|
|
2033
2228
|
var TISHREI$2 = 7;
|
|
2034
2229
|
var CHESHVAN$2 = 8;
|
|
2035
2230
|
var KISLEV$2 = 9;
|
|
2036
|
-
var TEVET$2 = 10;
|
|
2037
|
-
|
|
2231
|
+
var TEVET$2 = 10; // const SHVAT = 11;
|
|
2232
|
+
|
|
2038
2233
|
var ADAR_I$2 = 12;
|
|
2039
2234
|
var ADAR_II$2 = 13;
|
|
2040
2235
|
/**
|
|
@@ -2090,16 +2285,216 @@ var monthNames0 = ['', 'Nisan', 'Iyyar', 'Sivan', 'Tamuz', 'Av', 'Elul', 'Tishre
|
|
|
2090
2285
|
* @private
|
|
2091
2286
|
*/
|
|
2092
2287
|
|
|
2093
|
-
var monthNames = [monthNames0.concat(['Adar', 'Nisan']), monthNames0.concat(['Adar I', 'Adar II', 'Nisan'])];
|
|
2288
|
+
var monthNames = [monthNames0.concat(['Adar', 'Nisan']), monthNames0.concat(['Adar I', 'Adar II', 'Nisan'])];
|
|
2289
|
+
var edCache = Object.create(null);
|
|
2290
|
+
var EPOCH = -1373428; // Avg year length in the cycle (19 solar years with 235 lunar months)
|
|
2291
|
+
|
|
2292
|
+
var AVG_HEBYEAR_DAYS = 365.24682220597794;
|
|
2293
|
+
/**
|
|
2294
|
+
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
2295
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
2296
|
+
* Calendar.
|
|
2297
|
+
* @private
|
|
2298
|
+
* @param {number} year Hebrew year
|
|
2299
|
+
* @param {number} month Hebrew month
|
|
2300
|
+
* @param {number} day Hebrew date (1-30)
|
|
2301
|
+
* @return {number}
|
|
2302
|
+
*/
|
|
2303
|
+
|
|
2304
|
+
function hebrew2abs(year, month, day) {
|
|
2305
|
+
var tempabs = day;
|
|
2306
|
+
|
|
2307
|
+
if (month < TISHREI$2) {
|
|
2308
|
+
for (var m = TISHREI$2; m <= monthsInYear(year); m++) {
|
|
2309
|
+
tempabs += daysInMonth(m, year);
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
for (var _m = NISAN$3; _m < month; _m++) {
|
|
2313
|
+
tempabs += daysInMonth(_m, year);
|
|
2314
|
+
}
|
|
2315
|
+
} else {
|
|
2316
|
+
for (var _m2 = TISHREI$2; _m2 < month; _m2++) {
|
|
2317
|
+
tempabs += daysInMonth(_m2, year);
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
return EPOCH + elapsedDays(year) + tempabs - 1;
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* @private
|
|
2325
|
+
* @param {number} year
|
|
2326
|
+
* @return {number}
|
|
2327
|
+
*/
|
|
2328
|
+
|
|
2329
|
+
function newYear(year) {
|
|
2330
|
+
return EPOCH + elapsedDays(year);
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Converts absolute R.D. days to Hebrew date
|
|
2334
|
+
* @private
|
|
2335
|
+
* @param {number} abs absolute R.D. days
|
|
2336
|
+
* @return {SimpleHebrewDate}
|
|
2337
|
+
*/
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
function abs2hebrew(abs) {
|
|
2341
|
+
if (typeof abs !== 'number' || isNaN(abs)) {
|
|
2342
|
+
throw new TypeError("invalid parameter to abs2hebrew ".concat(abs));
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
abs = Math.trunc(abs); // first, quickly approximate year
|
|
2346
|
+
|
|
2347
|
+
var year = Math.floor((abs - EPOCH) / AVG_HEBYEAR_DAYS);
|
|
2348
|
+
|
|
2349
|
+
while (newYear(year) <= abs) {
|
|
2350
|
+
++year;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
--year;
|
|
2354
|
+
var month = abs < hebrew2abs(year, 1, 1) ? 7 : 1;
|
|
2355
|
+
|
|
2356
|
+
while (abs > hebrew2abs(year, month, daysInMonth(month, year))) {
|
|
2357
|
+
++month;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
var day = 1 + abs - hebrew2abs(year, month, 1);
|
|
2361
|
+
return {
|
|
2362
|
+
yy: year,
|
|
2363
|
+
mm: month,
|
|
2364
|
+
dd: day
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Returns true if Hebrew year is a leap year
|
|
2369
|
+
* @private
|
|
2370
|
+
* @param {number} year Hebrew year
|
|
2371
|
+
* @return {boolean}
|
|
2372
|
+
*/
|
|
2373
|
+
|
|
2374
|
+
function isLeapYear(year) {
|
|
2375
|
+
return (1 + year * 7) % 19 < 7;
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
2379
|
+
* @private
|
|
2380
|
+
* @param {number} year Hebrew year
|
|
2381
|
+
* @return {number}
|
|
2382
|
+
*/
|
|
2383
|
+
|
|
2384
|
+
function monthsInYear(year) {
|
|
2385
|
+
return 12 + isLeapYear(year); // boolean is cast to 1 or 0
|
|
2386
|
+
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Number of days in Hebrew month in a given year (29 or 30)
|
|
2389
|
+
* @private
|
|
2390
|
+
* @param {number} month Hebrew month (e.g. months.TISHREI)
|
|
2391
|
+
* @param {number} year Hebrew year
|
|
2392
|
+
* @return {number}
|
|
2393
|
+
*/
|
|
2394
|
+
|
|
2395
|
+
function daysInMonth(month, year) {
|
|
2396
|
+
switch (month) {
|
|
2397
|
+
case IYYAR$1:
|
|
2398
|
+
case TAMUZ$1:
|
|
2399
|
+
case ELUL$2:
|
|
2400
|
+
case TEVET$2:
|
|
2401
|
+
case ADAR_II$2:
|
|
2402
|
+
return 29;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
if (month === ADAR_I$2 && !isLeapYear(year) || month === CHESHVAN$2 && !longCheshvan(year) || month === KISLEV$2 && shortKislev(year)) {
|
|
2406
|
+
return 29;
|
|
2407
|
+
} else {
|
|
2408
|
+
return 30;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
* Returns a transliterated string name of Hebrew month in year,
|
|
2413
|
+
* for example 'Elul' or 'Cheshvan'.
|
|
2414
|
+
* @private
|
|
2415
|
+
* @param {number} month Hebrew month (e.g. months.TISHREI)
|
|
2416
|
+
* @param {number} year Hebrew year
|
|
2417
|
+
* @return {string}
|
|
2418
|
+
*/
|
|
2419
|
+
|
|
2420
|
+
function getMonthName(month, year) {
|
|
2421
|
+
if (typeof month !== 'number' || isNaN(month) || month < 1 || month > 14) {
|
|
2422
|
+
throw new TypeError("bad month argument ".concat(month));
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
return monthNames[+isLeapYear(year)][month];
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
2429
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
2430
|
+
* @private
|
|
2431
|
+
* @param {number} year Hebrew year
|
|
2432
|
+
* @return {number}
|
|
2433
|
+
*/
|
|
2434
|
+
|
|
2435
|
+
function elapsedDays(year) {
|
|
2436
|
+
var elapsed = edCache[year] = edCache[year] || elapsedDays0(year);
|
|
2437
|
+
return elapsed;
|
|
2438
|
+
}
|
|
2439
|
+
/**
|
|
2440
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
2441
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
2442
|
+
* @private
|
|
2443
|
+
* @param {number} year Hebrew year
|
|
2444
|
+
* @return {number}
|
|
2445
|
+
*/
|
|
2446
|
+
|
|
2447
|
+
function elapsedDays0(year) {
|
|
2448
|
+
var prevYear = year - 1;
|
|
2449
|
+
var mElapsed = 235 * Math.floor(prevYear / 19) + // Months in complete 19 year lunar (Metonic) cycles so far
|
|
2450
|
+
12 * (prevYear % 19) + // Regular months in this cycle
|
|
2451
|
+
Math.floor((prevYear % 19 * 7 + 1) / 19); // Leap months this cycle
|
|
2452
|
+
|
|
2453
|
+
var pElapsed = 204 + 793 * (mElapsed % 1080);
|
|
2454
|
+
var hElapsed = 5 + 12 * mElapsed + 793 * Math.floor(mElapsed / 1080) + Math.floor(pElapsed / 1080);
|
|
2455
|
+
var parts = pElapsed % 1080 + 1080 * (hElapsed % 24);
|
|
2456
|
+
var day = 1 + 29 * mElapsed + Math.floor(hElapsed / 24);
|
|
2457
|
+
var altDay = day + (parts >= 19440 || 2 === day % 7 && parts >= 9924 && !isLeapYear(year) || 1 === day % 7 && parts >= 16789 && isLeapYear(prevYear));
|
|
2458
|
+
return altDay + (altDay % 7 === 0 || altDay % 7 === 3 || altDay % 7 === 5);
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* Number of days in the hebrew YEAR.
|
|
2462
|
+
* A common Hebrew calendar year can have a length of 353, 354 or 355 days
|
|
2463
|
+
* A leap Hebrew calendar year can have a length of 383, 384 or 385 days
|
|
2464
|
+
* @private
|
|
2465
|
+
* @param {number} year Hebrew year
|
|
2466
|
+
* @return {number}
|
|
2467
|
+
*/
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
function daysInYear(year) {
|
|
2471
|
+
return elapsedDays(year + 1) - elapsedDays(year);
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2474
|
+
* true if Cheshvan is long in Hebrew year
|
|
2475
|
+
* @private
|
|
2476
|
+
* @param {number} year Hebrew year
|
|
2477
|
+
* @return {boolean}
|
|
2478
|
+
*/
|
|
2479
|
+
|
|
2480
|
+
function longCheshvan(year) {
|
|
2481
|
+
return daysInYear(year) % 10 === 5;
|
|
2482
|
+
}
|
|
2483
|
+
/**
|
|
2484
|
+
* true if Kislev is short in Hebrew year
|
|
2485
|
+
* @private
|
|
2486
|
+
* @param {number} year Hebrew year
|
|
2487
|
+
* @return {boolean}
|
|
2488
|
+
*/
|
|
2489
|
+
|
|
2490
|
+
function shortKislev(year) {
|
|
2491
|
+
return daysInYear(year) % 10 === 3;
|
|
2492
|
+
}
|
|
2094
2493
|
|
|
2095
2494
|
function throwTypeError$3(msg) {
|
|
2096
2495
|
throw new TypeError(msg);
|
|
2097
2496
|
}
|
|
2098
2497
|
|
|
2099
|
-
var edCache = Object.create(null);
|
|
2100
|
-
var EPOCH = -1373428; // Avg year length in the cycle (19 solar years with 235 lunar months)
|
|
2101
|
-
|
|
2102
|
-
var AVG_HEBYEAR_DAYS = 365.24682220597794;
|
|
2103
2498
|
var UNITS_DAY = 'day';
|
|
2104
2499
|
var UNITS_WEEK = 'week';
|
|
2105
2500
|
var UNITS_MONTH = 'month';
|
|
@@ -2178,19 +2573,22 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2178
2573
|
* @type {number}
|
|
2179
2574
|
*/
|
|
2180
2575
|
|
|
2181
|
-
|
|
2576
|
+
year = parseInt(year, 10);
|
|
2182
2577
|
|
|
2183
|
-
if (isNaN(
|
|
2578
|
+
if (isNaN(year)) {
|
|
2184
2579
|
throw new TypeError("HDate called with bad year argument: ".concat(year));
|
|
2185
2580
|
}
|
|
2186
2581
|
|
|
2582
|
+
this.year = year;
|
|
2187
2583
|
this.setMonth(month); // will throw if we can't parse
|
|
2188
2584
|
|
|
2189
|
-
|
|
2585
|
+
day = parseInt(day, 10);
|
|
2190
2586
|
|
|
2191
|
-
if (isNaN(
|
|
2587
|
+
if (isNaN(day)) {
|
|
2192
2588
|
throw new TypeError("HDate called with bad day argument: ".concat(day));
|
|
2193
2589
|
}
|
|
2590
|
+
|
|
2591
|
+
this.setDate(day);
|
|
2194
2592
|
} else {
|
|
2195
2593
|
// 0 arguments
|
|
2196
2594
|
if (typeof day === 'undefined') {
|
|
@@ -2198,13 +2596,13 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2198
2596
|
} // 1 argument
|
|
2199
2597
|
|
|
2200
2598
|
|
|
2201
|
-
var abs0 = typeof day === 'number' && !isNaN(day) ? day :
|
|
2599
|
+
var abs0 = typeof day === 'number' && !isNaN(day) ? day : isDate(day) ? greg2abs(day) : HDate.isHDate(day) ? {
|
|
2202
2600
|
dd: day.day,
|
|
2203
2601
|
mm: day.month,
|
|
2204
2602
|
yy: day.year
|
|
2205
2603
|
} : throwTypeError$3("HDate called with bad argument: ".concat(day));
|
|
2206
2604
|
var isNumber = typeof abs0 === 'number';
|
|
2207
|
-
var d = isNumber ?
|
|
2605
|
+
var d = isNumber ? abs2hebrew(abs0) : abs0;
|
|
2208
2606
|
/**
|
|
2209
2607
|
* @private
|
|
2210
2608
|
* @type {number}
|
|
@@ -2251,8 +2649,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2251
2649
|
|
|
2252
2650
|
}, {
|
|
2253
2651
|
key: "isLeapYear",
|
|
2254
|
-
value: function isLeapYear() {
|
|
2255
|
-
return
|
|
2652
|
+
value: function isLeapYear$1() {
|
|
2653
|
+
return isLeapYear(this.year);
|
|
2256
2654
|
}
|
|
2257
2655
|
/**
|
|
2258
2656
|
* Gets the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date
|
|
@@ -2272,7 +2670,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2272
2670
|
}, {
|
|
2273
2671
|
key: "getTishreiMonth",
|
|
2274
2672
|
value: function getTishreiMonth() {
|
|
2275
|
-
var nummonths =
|
|
2673
|
+
var nummonths = monthsInYear(this.getFullYear());
|
|
2674
|
+
|
|
2276
2675
|
return (this.getMonth() + nummonths - 6) % nummonths || nummonths;
|
|
2277
2676
|
}
|
|
2278
2677
|
/**
|
|
@@ -2282,8 +2681,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2282
2681
|
|
|
2283
2682
|
}, {
|
|
2284
2683
|
key: "daysInMonth",
|
|
2285
|
-
value: function daysInMonth() {
|
|
2286
|
-
return
|
|
2684
|
+
value: function daysInMonth$1() {
|
|
2685
|
+
return daysInMonth(this.getMonth(), this.getFullYear());
|
|
2287
2686
|
}
|
|
2288
2687
|
/**
|
|
2289
2688
|
* Gets the day within the month (1-30)
|
|
@@ -2354,8 +2753,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2354
2753
|
|
|
2355
2754
|
}, {
|
|
2356
2755
|
key: "greg",
|
|
2357
|
-
value: function greg
|
|
2358
|
-
return
|
|
2756
|
+
value: function greg() {
|
|
2757
|
+
return abs2greg(this.abs());
|
|
2359
2758
|
}
|
|
2360
2759
|
/**
|
|
2361
2760
|
* Returns R.D. (Rata Die) fixed days.
|
|
@@ -2369,7 +2768,7 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2369
2768
|
key: "abs",
|
|
2370
2769
|
value: function abs() {
|
|
2371
2770
|
if (typeof this.abs0 !== 'number') {
|
|
2372
|
-
this.abs0 =
|
|
2771
|
+
this.abs0 = hebrew2abs(this.year, this.month, this.day);
|
|
2373
2772
|
}
|
|
2374
2773
|
|
|
2375
2774
|
return this.abs0;
|
|
@@ -2391,8 +2790,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2391
2790
|
* Returns a transliterated Hebrew month name, e.g. `'Elul'` or `'Cheshvan'`.
|
|
2392
2791
|
* @return {string}
|
|
2393
2792
|
*/
|
|
2394
|
-
function getMonthName() {
|
|
2395
|
-
return
|
|
2793
|
+
function getMonthName$1() {
|
|
2794
|
+
return getMonthName(this.getMonth(), this.getFullYear());
|
|
2396
2795
|
}
|
|
2397
2796
|
/**
|
|
2398
2797
|
* Renders this Hebrew date as a translated or transliterated string,
|
|
@@ -2689,54 +3088,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2689
3088
|
|
|
2690
3089
|
}], [{
|
|
2691
3090
|
key: "hebrew2abs",
|
|
2692
|
-
value: function hebrew2abs(year, month, day) {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
if (month < TISHREI$2) {
|
|
2696
|
-
for (var m = TISHREI$2; m <= HDate.monthsInYear(year); m++) {
|
|
2697
|
-
tempabs += HDate.daysInMonth(m, year);
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
for (var _m = NISAN$3; _m < month; _m++) {
|
|
2701
|
-
tempabs += HDate.daysInMonth(_m, year);
|
|
2702
|
-
}
|
|
2703
|
-
} else {
|
|
2704
|
-
for (var _m2 = TISHREI$2; _m2 < month; _m2++) {
|
|
2705
|
-
tempabs += HDate.daysInMonth(_m2, year);
|
|
2706
|
-
}
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
|
-
return EPOCH + HDate.elapsedDays(year) + tempabs - 1;
|
|
2710
|
-
}
|
|
2711
|
-
/**
|
|
2712
|
-
* @private
|
|
2713
|
-
* @param {number} year
|
|
2714
|
-
* @return {number}
|
|
2715
|
-
*/
|
|
2716
|
-
|
|
2717
|
-
}, {
|
|
2718
|
-
key: "newYear",
|
|
2719
|
-
value: function newYear(year) {
|
|
2720
|
-
return EPOCH + HDate.elapsedDays(year) + HDate.newYearDelay(year);
|
|
2721
|
-
}
|
|
2722
|
-
/**
|
|
2723
|
-
* @private
|
|
2724
|
-
* @param {number} year
|
|
2725
|
-
* @return {number}
|
|
2726
|
-
*/
|
|
2727
|
-
|
|
2728
|
-
}, {
|
|
2729
|
-
key: "newYearDelay",
|
|
2730
|
-
value: function newYearDelay(year) {
|
|
2731
|
-
var ny1 = HDate.elapsedDays(year);
|
|
2732
|
-
var ny2 = HDate.elapsedDays(year + 1);
|
|
2733
|
-
|
|
2734
|
-
if (ny2 - ny1 === 356) {
|
|
2735
|
-
return 2;
|
|
2736
|
-
} else {
|
|
2737
|
-
var ny0 = HDate.elapsedDays(year - 1);
|
|
2738
|
-
return ny1 - ny0 === 382 ? 1 : 0;
|
|
2739
|
-
}
|
|
3091
|
+
value: function hebrew2abs$1(year, month, day) {
|
|
3092
|
+
return hebrew2abs(year, month, day);
|
|
2740
3093
|
}
|
|
2741
3094
|
/**
|
|
2742
3095
|
* Converts absolute R.D. days to Hebrew date
|
|
@@ -2747,32 +3100,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2747
3100
|
|
|
2748
3101
|
}, {
|
|
2749
3102
|
key: "abs2hebrew",
|
|
2750
|
-
value: function abs2hebrew(abs) {
|
|
2751
|
-
|
|
2752
|
-
throw new TypeError("invalid parameter to abs2hebrew ".concat(abs));
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
abs = Math.trunc(abs); // first, quickly approximate year
|
|
2756
|
-
|
|
2757
|
-
var year = Math.floor((abs - EPOCH) / AVG_HEBYEAR_DAYS);
|
|
2758
|
-
|
|
2759
|
-
while (HDate.newYear(year) <= abs) {
|
|
2760
|
-
++year;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
--year;
|
|
2764
|
-
var month = abs < HDate.hebrew2abs(year, 1, 1) ? 7 : 1;
|
|
2765
|
-
|
|
2766
|
-
while (abs > HDate.hebrew2abs(year, month, HDate.daysInMonth(month, year))) {
|
|
2767
|
-
++month;
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
var day = 1 + abs - HDate.hebrew2abs(year, month, 1);
|
|
2771
|
-
return {
|
|
2772
|
-
yy: year,
|
|
2773
|
-
mm: month,
|
|
2774
|
-
dd: day
|
|
2775
|
-
};
|
|
3103
|
+
value: function abs2hebrew$1(abs) {
|
|
3104
|
+
return abs2hebrew(abs);
|
|
2776
3105
|
}
|
|
2777
3106
|
}, {
|
|
2778
3107
|
key: "getDayOfTranslation",
|
|
@@ -2805,8 +3134,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2805
3134
|
}
|
|
2806
3135
|
}, {
|
|
2807
3136
|
key: "isLeapYear",
|
|
2808
|
-
value: function isLeapYear(year) {
|
|
2809
|
-
return (
|
|
3137
|
+
value: function isLeapYear$1(year) {
|
|
3138
|
+
return isLeapYear(year);
|
|
2810
3139
|
}
|
|
2811
3140
|
/**
|
|
2812
3141
|
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
@@ -2816,8 +3145,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2816
3145
|
|
|
2817
3146
|
}, {
|
|
2818
3147
|
key: "monthsInYear",
|
|
2819
|
-
value: function monthsInYear(year) {
|
|
2820
|
-
return
|
|
3148
|
+
value: function monthsInYear$1(year) {
|
|
3149
|
+
return monthsInYear(year);
|
|
2821
3150
|
}
|
|
2822
3151
|
/**
|
|
2823
3152
|
* Number of days in Hebrew month in a given year (29 or 30)
|
|
@@ -2828,12 +3157,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2828
3157
|
|
|
2829
3158
|
}, {
|
|
2830
3159
|
key: "daysInMonth",
|
|
2831
|
-
value: function daysInMonth(month, year) {
|
|
2832
|
-
|
|
2833
|
-
return 29;
|
|
2834
|
-
} else {
|
|
2835
|
-
return 30;
|
|
2836
|
-
}
|
|
3160
|
+
value: function daysInMonth$1(month, year) {
|
|
3161
|
+
return daysInMonth(month, year);
|
|
2837
3162
|
}
|
|
2838
3163
|
/**
|
|
2839
3164
|
* Returns a transliterated string name of Hebrew month in year,
|
|
@@ -2845,12 +3170,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2845
3170
|
|
|
2846
3171
|
}, {
|
|
2847
3172
|
key: "getMonthName",
|
|
2848
|
-
value: function getMonthName(month, year) {
|
|
2849
|
-
|
|
2850
|
-
throw new TypeError("bad month argument ".concat(month));
|
|
2851
|
-
}
|
|
2852
|
-
|
|
2853
|
-
return monthNames[+HDate.isLeapYear(year)][month];
|
|
3173
|
+
value: function getMonthName$1(month, year) {
|
|
3174
|
+
return getMonthName(month, year);
|
|
2854
3175
|
}
|
|
2855
3176
|
/**
|
|
2856
3177
|
* Returns the Hebrew month number (NISAN=1, TISHREI=7)
|
|
@@ -2861,45 +3182,17 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2861
3182
|
}, {
|
|
2862
3183
|
key: "monthNum",
|
|
2863
3184
|
value: function monthNum(month) {
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
/**
|
|
2869
|
-
* Days from sunday prior to start of Hebrew calendar to mean
|
|
2870
|
-
* conjunction of Tishrei in Hebrew YEAR
|
|
2871
|
-
* @param {number} year Hebrew year
|
|
2872
|
-
* @return {number}
|
|
2873
|
-
*/
|
|
2874
|
-
|
|
2875
|
-
}, {
|
|
2876
|
-
key: "elapsedDays",
|
|
2877
|
-
value: function elapsedDays(year) {
|
|
2878
|
-
var elapsed = edCache[year] = edCache[year] || HDate.elapsedDays0(year);
|
|
2879
|
-
return elapsed;
|
|
2880
|
-
}
|
|
2881
|
-
/**
|
|
2882
|
-
* Days from sunday prior to start of Hebrew calendar to mean
|
|
2883
|
-
* conjunction of Tishrei in Hebrew YEAR
|
|
2884
|
-
* @private
|
|
2885
|
-
* @param {number} year Hebrew year
|
|
2886
|
-
* @return {number}
|
|
2887
|
-
*/
|
|
3185
|
+
if (typeof month === 'number') {
|
|
3186
|
+
if (isNaN(month) || month > 14) {
|
|
3187
|
+
throw new RangeError("Invalid month number: ".concat(month));
|
|
3188
|
+
}
|
|
2888
3189
|
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
value: function elapsedDays0(year) {
|
|
2892
|
-
var prevYear = year - 1;
|
|
2893
|
-
var mElapsed = 235 * Math.floor(prevYear / 19) + // Months in complete 19 year lunar (Metonic) cycles so far
|
|
2894
|
-
12 * (prevYear % 19) + // Regular months in this cycle
|
|
2895
|
-
Math.floor((prevYear % 19 * 7 + 1) / 19); // Leap months this cycle
|
|
3190
|
+
return month;
|
|
3191
|
+
}
|
|
2896
3192
|
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
var day = 1 + 29 * mElapsed + Math.floor(hElapsed / 24);
|
|
2901
|
-
var altDay = day + (parts >= 19440 || 2 == day % 7 && parts >= 9924 && !HDate.isLeapYear(year) || 1 == day % 7 && parts >= 16789 && HDate.isLeapYear(prevYear));
|
|
2902
|
-
return altDay + (altDay % 7 === 0 || altDay % 7 == 3 || altDay % 7 == 5);
|
|
3193
|
+
return month.charCodeAt(0) >= 48 && month.charCodeAt(0) <= 57 ?
|
|
3194
|
+
/* number */
|
|
3195
|
+
parseInt(month, 10) : HDate.monthFromName(month);
|
|
2903
3196
|
}
|
|
2904
3197
|
/**
|
|
2905
3198
|
* Number of days in the hebrew YEAR
|
|
@@ -2909,8 +3202,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2909
3202
|
|
|
2910
3203
|
}, {
|
|
2911
3204
|
key: "daysInYear",
|
|
2912
|
-
value: function daysInYear(year) {
|
|
2913
|
-
return
|
|
3205
|
+
value: function daysInYear$1(year) {
|
|
3206
|
+
return daysInYear(year);
|
|
2914
3207
|
}
|
|
2915
3208
|
/**
|
|
2916
3209
|
* true if Cheshvan is long in Hebrew year
|
|
@@ -2920,8 +3213,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2920
3213
|
|
|
2921
3214
|
}, {
|
|
2922
3215
|
key: "longCheshvan",
|
|
2923
|
-
value: function longCheshvan(year) {
|
|
2924
|
-
return
|
|
3216
|
+
value: function longCheshvan$1(year) {
|
|
3217
|
+
return longCheshvan(year);
|
|
2925
3218
|
}
|
|
2926
3219
|
/**
|
|
2927
3220
|
* true if Kislev is short in Hebrew year
|
|
@@ -2931,8 +3224,8 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2931
3224
|
|
|
2932
3225
|
}, {
|
|
2933
3226
|
key: "shortKislev",
|
|
2934
|
-
value: function shortKislev(year) {
|
|
2935
|
-
return
|
|
3227
|
+
value: function shortKislev$1(year) {
|
|
3228
|
+
return shortKislev(year);
|
|
2936
3229
|
}
|
|
2937
3230
|
/**
|
|
2938
3231
|
* Converts Hebrew month string name to numeric
|
|
@@ -2943,7 +3236,14 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2943
3236
|
}, {
|
|
2944
3237
|
key: "monthFromName",
|
|
2945
3238
|
value: function monthFromName(monthName) {
|
|
2946
|
-
if (typeof monthName === 'number')
|
|
3239
|
+
if (typeof monthName === 'number') {
|
|
3240
|
+
if (isNaN(monthName) || monthName < 1 || monthName > 14) {
|
|
3241
|
+
throw new RangeError("Invalid month name: ".concat(monthName));
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
return monthName;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
2947
3247
|
var c = monthName.toLowerCase();
|
|
2948
3248
|
/*
|
|
2949
3249
|
the Hebrew months are unique to their second letter
|
|
@@ -2975,41 +3275,41 @@ var HDate = /*#__PURE__*/function () {
|
|
|
2975
3275
|
/* this catches "november" */
|
|
2976
3276
|
}
|
|
2977
3277
|
|
|
2978
|
-
return NISAN
|
|
3278
|
+
return months.NISAN;
|
|
2979
3279
|
|
|
2980
3280
|
case 'i':
|
|
2981
|
-
return IYYAR
|
|
3281
|
+
return months.IYYAR;
|
|
2982
3282
|
|
|
2983
3283
|
case 'e':
|
|
2984
|
-
return ELUL
|
|
3284
|
+
return months.ELUL;
|
|
2985
3285
|
|
|
2986
3286
|
case 'c':
|
|
2987
3287
|
case 'ח':
|
|
2988
|
-
return CHESHVAN
|
|
3288
|
+
return months.CHESHVAN;
|
|
2989
3289
|
|
|
2990
3290
|
case 'k':
|
|
2991
3291
|
case 'כ':
|
|
2992
|
-
return KISLEV
|
|
3292
|
+
return months.KISLEV;
|
|
2993
3293
|
|
|
2994
3294
|
case 's':
|
|
2995
3295
|
switch (c[1]) {
|
|
2996
3296
|
case 'i':
|
|
2997
|
-
return SIVAN
|
|
3297
|
+
return months.SIVAN;
|
|
2998
3298
|
|
|
2999
3299
|
case 'h':
|
|
3000
|
-
return SHVAT
|
|
3300
|
+
return months.SHVAT;
|
|
3001
3301
|
}
|
|
3002
3302
|
|
|
3003
3303
|
case 't':
|
|
3004
3304
|
switch (c[1]) {
|
|
3005
3305
|
case 'a':
|
|
3006
|
-
return TAMUZ
|
|
3306
|
+
return months.TAMUZ;
|
|
3007
3307
|
|
|
3008
3308
|
case 'i':
|
|
3009
|
-
return TISHREI
|
|
3309
|
+
return months.TISHREI;
|
|
3010
3310
|
|
|
3011
3311
|
case 'e':
|
|
3012
|
-
return TEVET
|
|
3312
|
+
return months.TEVET;
|
|
3013
3313
|
}
|
|
3014
3314
|
|
|
3015
3315
|
break;
|
|
@@ -3017,46 +3317,46 @@ var HDate = /*#__PURE__*/function () {
|
|
|
3017
3317
|
case 'a':
|
|
3018
3318
|
switch (c[1]) {
|
|
3019
3319
|
case 'v':
|
|
3020
|
-
return AV
|
|
3320
|
+
return months.AV;
|
|
3021
3321
|
|
|
3022
3322
|
case 'd':
|
|
3023
3323
|
if (/(1|[^i]i|a|א)$/i.test(monthName)) {
|
|
3024
|
-
return ADAR_I
|
|
3324
|
+
return months.ADAR_I;
|
|
3025
3325
|
}
|
|
3026
3326
|
|
|
3027
|
-
return ADAR_II
|
|
3327
|
+
return months.ADAR_II;
|
|
3028
3328
|
// else assume sheini
|
|
3029
3329
|
}
|
|
3030
3330
|
|
|
3031
3331
|
break;
|
|
3032
3332
|
|
|
3033
3333
|
case 'ס':
|
|
3034
|
-
return SIVAN
|
|
3334
|
+
return months.SIVAN;
|
|
3035
3335
|
|
|
3036
3336
|
case 'ט':
|
|
3037
|
-
return TEVET
|
|
3337
|
+
return months.TEVET;
|
|
3038
3338
|
|
|
3039
3339
|
case 'ש':
|
|
3040
|
-
return SHVAT
|
|
3340
|
+
return months.SHVAT;
|
|
3041
3341
|
|
|
3042
3342
|
case 'א':
|
|
3043
3343
|
switch (c[1]) {
|
|
3044
3344
|
case 'ב':
|
|
3045
|
-
return AV
|
|
3345
|
+
return months.AV;
|
|
3046
3346
|
|
|
3047
3347
|
case 'ד':
|
|
3048
3348
|
if (/(1|[^i]i|a|א)$/i.test(monthName)) {
|
|
3049
|
-
return ADAR_I
|
|
3349
|
+
return months.ADAR_I;
|
|
3050
3350
|
}
|
|
3051
3351
|
|
|
3052
|
-
return ADAR_II
|
|
3352
|
+
return months.ADAR_II;
|
|
3053
3353
|
// else assume sheini
|
|
3054
3354
|
|
|
3055
3355
|
case 'י':
|
|
3056
|
-
return IYYAR
|
|
3356
|
+
return months.IYYAR;
|
|
3057
3357
|
|
|
3058
3358
|
case 'ל':
|
|
3059
|
-
return ELUL
|
|
3359
|
+
return months.ELUL;
|
|
3060
3360
|
}
|
|
3061
3361
|
|
|
3062
3362
|
break;
|
|
@@ -3064,10 +3364,10 @@ var HDate = /*#__PURE__*/function () {
|
|
|
3064
3364
|
case 'ת':
|
|
3065
3365
|
switch (c[1]) {
|
|
3066
3366
|
case 'מ':
|
|
3067
|
-
return TAMUZ
|
|
3367
|
+
return months.TAMUZ;
|
|
3068
3368
|
|
|
3069
3369
|
case 'ש':
|
|
3070
|
-
return TISHREI
|
|
3370
|
+
return months.TISHREI;
|
|
3071
3371
|
}
|
|
3072
3372
|
|
|
3073
3373
|
break;
|
|
@@ -3122,21 +3422,21 @@ function fix(date) {
|
|
|
3122
3422
|
|
|
3123
3423
|
function fixDate(date) {
|
|
3124
3424
|
if (date.day < 1) {
|
|
3125
|
-
if (date.month == TISHREI
|
|
3425
|
+
if (date.month == months.TISHREI) {
|
|
3126
3426
|
date.year -= 1;
|
|
3127
3427
|
}
|
|
3128
3428
|
|
|
3129
|
-
date.day +=
|
|
3429
|
+
date.day += daysInMonth(date.month, date.year);
|
|
3130
3430
|
date.month -= 1;
|
|
3131
3431
|
fix(date);
|
|
3132
3432
|
}
|
|
3133
3433
|
|
|
3134
|
-
if (date.day >
|
|
3135
|
-
if (date.month
|
|
3434
|
+
if (date.day > daysInMonth(date.month, date.year)) {
|
|
3435
|
+
if (date.month === months.ELUL) {
|
|
3136
3436
|
date.year += 1;
|
|
3137
3437
|
}
|
|
3138
3438
|
|
|
3139
|
-
date.day -=
|
|
3439
|
+
date.day -= daysInMonth(date.month, date.year);
|
|
3140
3440
|
date.month += 1;
|
|
3141
3441
|
fix(date);
|
|
3142
3442
|
}
|
|
@@ -3150,16 +3450,16 @@ function fixDate(date) {
|
|
|
3150
3450
|
|
|
3151
3451
|
|
|
3152
3452
|
function fixMonth(date) {
|
|
3153
|
-
if (date.month
|
|
3453
|
+
if (date.month === months.ADAR_II && !date.isLeapYear()) {
|
|
3154
3454
|
date.month -= 1; // to Adar I
|
|
3155
3455
|
|
|
3156
3456
|
fix(date);
|
|
3157
3457
|
} else if (date.month < 1) {
|
|
3158
|
-
date.month +=
|
|
3458
|
+
date.month += monthsInYear(date.year);
|
|
3159
3459
|
date.year -= 1;
|
|
3160
3460
|
fix(date);
|
|
3161
|
-
} else if (date.month >
|
|
3162
|
-
date.month -=
|
|
3461
|
+
} else if (date.month > monthsInYear(date.year)) {
|
|
3462
|
+
date.month -= monthsInYear(date.year);
|
|
3163
3463
|
date.year += 1;
|
|
3164
3464
|
fix(date);
|
|
3165
3465
|
}
|
|
@@ -3179,31 +3479,6 @@ function _onOrBefore(day, t, offset) {
|
|
|
3179
3479
|
return new HDate(HDate.dayOnOrBefore(day, t.abs() + offset));
|
|
3180
3480
|
}
|
|
3181
3481
|
|
|
3182
|
-
var CHAG$1 = 0x000001;
|
|
3183
|
-
var LIGHT_CANDLES$2 = 0x000002;
|
|
3184
|
-
var YOM_TOV_ENDS$2 = 0x000004;
|
|
3185
|
-
var CHUL_ONLY$2 = 0x000008; // chutz l'aretz (Diaspora)
|
|
3186
|
-
|
|
3187
|
-
var IL_ONLY$2 = 0x000010; // b'aretz (Israel)
|
|
3188
|
-
|
|
3189
|
-
var LIGHT_CANDLES_TZEIS$2 = 0x000020;
|
|
3190
|
-
var CHANUKAH_CANDLES$2 = 0x000040;
|
|
3191
|
-
var ROSH_CHODESH$1 = 0x000080;
|
|
3192
|
-
var MINOR_FAST$2 = 0x000100;
|
|
3193
|
-
var SPECIAL_SHABBAT$2 = 0x000200;
|
|
3194
|
-
var PARSHA_HASHAVUA$1 = 0x000400;
|
|
3195
|
-
var DAF_YOMI$1 = 0x000800;
|
|
3196
|
-
var OMER_COUNT$1 = 0x001000;
|
|
3197
|
-
var MODERN_HOLIDAY$2 = 0x002000;
|
|
3198
|
-
var MAJOR_FAST$2 = 0x004000;
|
|
3199
|
-
var SHABBAT_MEVARCHIM$1 = 0x008000;
|
|
3200
|
-
var MOLAD = 0x010000;
|
|
3201
|
-
var USER_EVENT = 0x020000;
|
|
3202
|
-
var HEBREW_DATE = 0x040000;
|
|
3203
|
-
var MINOR_HOLIDAY$2 = 0x080000;
|
|
3204
|
-
var EREV$2 = 0x100000;
|
|
3205
|
-
var CHOL_HAMOED$2 = 0x200000;
|
|
3206
|
-
var MISHNA_YOMI = 0x400000;
|
|
3207
3482
|
/**
|
|
3208
3483
|
* Holiday flags for Event
|
|
3209
3484
|
* @readonly
|
|
@@ -3212,73 +3487,73 @@ var MISHNA_YOMI = 0x400000;
|
|
|
3212
3487
|
|
|
3213
3488
|
var flags = {
|
|
3214
3489
|
/** Chag, yontiff, yom tov */
|
|
3215
|
-
CHAG:
|
|
3490
|
+
CHAG: 0x000001,
|
|
3216
3491
|
|
|
3217
3492
|
/** Light candles 18 minutes before sundown */
|
|
3218
|
-
LIGHT_CANDLES:
|
|
3493
|
+
LIGHT_CANDLES: 0x000002,
|
|
3219
3494
|
|
|
3220
3495
|
/** End of holiday (end of Yom Tov) */
|
|
3221
|
-
YOM_TOV_ENDS:
|
|
3496
|
+
YOM_TOV_ENDS: 0x000004,
|
|
3222
3497
|
|
|
3223
3498
|
/** Observed only in the Diaspora (chutz l'aretz) */
|
|
3224
|
-
CHUL_ONLY:
|
|
3499
|
+
CHUL_ONLY: 0x000008,
|
|
3225
3500
|
|
|
3226
3501
|
/** Observed only in Israel */
|
|
3227
|
-
IL_ONLY:
|
|
3502
|
+
IL_ONLY: 0x000010,
|
|
3228
3503
|
|
|
3229
3504
|
/** Light candles in the evening at Tzeit time (3 small stars) */
|
|
3230
|
-
LIGHT_CANDLES_TZEIS:
|
|
3505
|
+
LIGHT_CANDLES_TZEIS: 0x000020,
|
|
3231
3506
|
|
|
3232
3507
|
/** Candle-lighting for Chanukah */
|
|
3233
|
-
CHANUKAH_CANDLES:
|
|
3508
|
+
CHANUKAH_CANDLES: 0x000040,
|
|
3234
3509
|
|
|
3235
3510
|
/** Rosh Chodesh, beginning of a new Hebrew month */
|
|
3236
|
-
ROSH_CHODESH:
|
|
3511
|
+
ROSH_CHODESH: 0x000080,
|
|
3237
3512
|
|
|
3238
3513
|
/** Minor fasts like Tzom Tammuz, Ta'anit Esther, ... */
|
|
3239
|
-
MINOR_FAST:
|
|
3514
|
+
MINOR_FAST: 0x000100,
|
|
3240
3515
|
|
|
3241
3516
|
/** Shabbat Shekalim, Zachor, ... */
|
|
3242
|
-
SPECIAL_SHABBAT:
|
|
3517
|
+
SPECIAL_SHABBAT: 0x000200,
|
|
3243
3518
|
|
|
3244
3519
|
/** Weekly sedrot on Saturdays */
|
|
3245
|
-
PARSHA_HASHAVUA:
|
|
3520
|
+
PARSHA_HASHAVUA: 0x000400,
|
|
3246
3521
|
|
|
3247
3522
|
/** Daily page of Talmud */
|
|
3248
|
-
DAF_YOMI:
|
|
3523
|
+
DAF_YOMI: 0x000800,
|
|
3249
3524
|
|
|
3250
3525
|
/** Days of the Omer */
|
|
3251
|
-
OMER_COUNT:
|
|
3526
|
+
OMER_COUNT: 0x000800,
|
|
3252
3527
|
|
|
3253
3528
|
/** Yom HaShoah, Yom HaAtzma'ut, ... */
|
|
3254
|
-
MODERN_HOLIDAY:
|
|
3529
|
+
MODERN_HOLIDAY: 0x002000,
|
|
3255
3530
|
|
|
3256
3531
|
/** Yom Kippur and Tish'a B'Av */
|
|
3257
|
-
MAJOR_FAST:
|
|
3532
|
+
MAJOR_FAST: 0x004000,
|
|
3258
3533
|
|
|
3259
3534
|
/** On the Saturday before Rosh Chodesh */
|
|
3260
|
-
SHABBAT_MEVARCHIM:
|
|
3535
|
+
SHABBAT_MEVARCHIM: 0x008000,
|
|
3261
3536
|
|
|
3262
3537
|
/** Molad */
|
|
3263
|
-
MOLAD:
|
|
3538
|
+
MOLAD: 0x010000,
|
|
3264
3539
|
|
|
3265
3540
|
/** Yahrzeit or Hebrew Anniversary */
|
|
3266
|
-
USER_EVENT:
|
|
3541
|
+
USER_EVENT: 0x020000,
|
|
3267
3542
|
|
|
3268
3543
|
/** Daily Hebrew date ("11th of Sivan, 5780") */
|
|
3269
|
-
HEBREW_DATE:
|
|
3544
|
+
HEBREW_DATE: 0x040000,
|
|
3270
3545
|
|
|
3271
3546
|
/** A holiday that's not major, modern, rosh chodesh, or a fast day */
|
|
3272
|
-
MINOR_HOLIDAY:
|
|
3547
|
+
MINOR_HOLIDAY: 0x080000,
|
|
3273
3548
|
|
|
3274
3549
|
/** Evening before a major or minor holiday */
|
|
3275
|
-
EREV:
|
|
3550
|
+
EREV: 0x080000,
|
|
3276
3551
|
|
|
3277
3552
|
/** Chol haMoed, intermediate days of Pesach or Sukkot */
|
|
3278
|
-
CHOL_HAMOED:
|
|
3553
|
+
CHOL_HAMOED: 0x200000,
|
|
3279
3554
|
|
|
3280
3555
|
/** Mishna Yomi */
|
|
3281
|
-
MISHNA_YOMI:
|
|
3556
|
+
MISHNA_YOMI: 0x400000
|
|
3282
3557
|
};
|
|
3283
3558
|
/** Represents an Event with a title, date, and flags */
|
|
3284
3559
|
|
|
@@ -3412,7 +3687,7 @@ var Event = /*#__PURE__*/function () {
|
|
|
3412
3687
|
}, {
|
|
3413
3688
|
key: "observedInIsrael",
|
|
3414
3689
|
value: function observedInIsrael() {
|
|
3415
|
-
return !(this.mask & CHUL_ONLY
|
|
3690
|
+
return !(this.mask & flags.CHUL_ONLY);
|
|
3416
3691
|
}
|
|
3417
3692
|
/**
|
|
3418
3693
|
* Is this event observed in the Diaspora?
|
|
@@ -3427,7 +3702,7 @@ var Event = /*#__PURE__*/function () {
|
|
|
3427
3702
|
}, {
|
|
3428
3703
|
key: "observedInDiaspora",
|
|
3429
3704
|
value: function observedInDiaspora() {
|
|
3430
|
-
return !(this.mask & IL_ONLY
|
|
3705
|
+
return !(this.mask & flags.IL_ONLY);
|
|
3431
3706
|
}
|
|
3432
3707
|
/**
|
|
3433
3708
|
* @deprecated
|
|
@@ -4032,7 +4307,7 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4032
4307
|
throw new RangeError("Longitude ".concat(longitude, " out of range [-180,180]"));
|
|
4033
4308
|
}
|
|
4034
4309
|
|
|
4035
|
-
var dt =
|
|
4310
|
+
var dt = isDate(date) ? date : HDate.isHDate(date) ? date.greg() : throwTypeError$2("invalid date: ".concat(date));
|
|
4036
4311
|
this.date = dt;
|
|
4037
4312
|
this.solarCalc = new SolarCalc(this.date, latitude, longitude);
|
|
4038
4313
|
this.sun = this.solarCalc.sun;
|
|
@@ -5281,15 +5556,14 @@ var MoladEvent = /*#__PURE__*/function (_Event) {
|
|
|
5281
5556
|
}(Event);
|
|
5282
5557
|
|
|
5283
5558
|
var $$2 = _export;
|
|
5284
|
-
var
|
|
5285
|
-
var
|
|
5286
|
-
var toAbsoluteIndex = toAbsoluteIndex$3;
|
|
5559
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
5560
|
+
var toAbsoluteIndex = toAbsoluteIndex$4;
|
|
5287
5561
|
|
|
5288
|
-
var RangeError
|
|
5562
|
+
var $RangeError = RangeError;
|
|
5289
5563
|
var fromCharCode = String.fromCharCode;
|
|
5290
5564
|
// eslint-disable-next-line es-x/no-string-fromcodepoint -- required for testing
|
|
5291
5565
|
var $fromCodePoint = String.fromCodePoint;
|
|
5292
|
-
var join = uncurryThis$
|
|
5566
|
+
var join = uncurryThis$2([].join);
|
|
5293
5567
|
|
|
5294
5568
|
// length should be 1, old FF problem
|
|
5295
5569
|
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
|
|
@@ -5305,7 +5579,7 @@ $$2({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
|
|
5305
5579
|
var code;
|
|
5306
5580
|
while (length > i) {
|
|
5307
5581
|
code = +arguments[i++];
|
|
5308
|
-
if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw RangeError
|
|
5582
|
+
if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw $RangeError(code + ' is not a valid code point');
|
|
5309
5583
|
elements[i] = code < 0x10000
|
|
5310
5584
|
? fromCharCode(code)
|
|
5311
5585
|
: fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
|
|
@@ -5317,12 +5591,12 @@ $$2({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
|
|
5317
5591
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5318
5592
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5319
5593
|
|
|
5320
|
-
var uncurryThis$
|
|
5594
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
5321
5595
|
var requireObjectCoercible = requireObjectCoercible$3;
|
|
5322
5596
|
var toString = toString$2;
|
|
5323
5597
|
var whitespaces$1 = whitespaces$2;
|
|
5324
5598
|
|
|
5325
|
-
var replace = uncurryThis$
|
|
5599
|
+
var replace = uncurryThis$1(''.replace);
|
|
5326
5600
|
var whitespace = '[' + whitespaces$1 + ']';
|
|
5327
5601
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
5328
5602
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -5350,7 +5624,7 @@ var stringTrim = {
|
|
|
5350
5624
|
};
|
|
5351
5625
|
|
|
5352
5626
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
5353
|
-
var fails
|
|
5627
|
+
var fails = fails$d;
|
|
5354
5628
|
var whitespaces = whitespaces$2;
|
|
5355
5629
|
|
|
5356
5630
|
var non = '\u200B\u0085\u180E';
|
|
@@ -5358,7 +5632,7 @@ var non = '\u200B\u0085\u180E';
|
|
|
5358
5632
|
// check that a method works with the correct list
|
|
5359
5633
|
// of whitespaces and has a correct name
|
|
5360
5634
|
var stringTrimForced = function (METHOD_NAME) {
|
|
5361
|
-
return fails
|
|
5635
|
+
return fails(function () {
|
|
5362
5636
|
return !!whitespaces[METHOD_NAME]()
|
|
5363
5637
|
|| non[METHOD_NAME]() !== non
|
|
5364
5638
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
@@ -5405,7 +5679,6 @@ var OmerEvent = /*#__PURE__*/function (_Event) {
|
|
|
5405
5679
|
|
|
5406
5680
|
_this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;
|
|
5407
5681
|
_this.daysWithinWeeks = omerDay % 7 || 7;
|
|
5408
|
-
_this.memo = [_this.sefira('en'), _this.sefira('he'), _this.sefira('translit')].join('\n');
|
|
5409
5682
|
return _this;
|
|
5410
5683
|
}
|
|
5411
5684
|
/**
|
|
@@ -5619,8 +5892,8 @@ function getTodayIsHe(omer) {
|
|
|
5619
5892
|
}
|
|
5620
5893
|
|
|
5621
5894
|
var osdate = new Date(1923, 8, 11);
|
|
5622
|
-
var osday =
|
|
5623
|
-
var nsday =
|
|
5895
|
+
var osday = greg2abs(osdate);
|
|
5896
|
+
var nsday = greg2abs(new Date(1975, 5, 24));
|
|
5624
5897
|
var shas = [['Berachot', 64], ['Shabbat', 157], ['Eruvin', 105], ['Pesachim', 121], ['Shekalim', 22], ['Yoma', 88], ['Sukkah', 56], ['Beitzah', 40], ['Rosh Hashana', 35], ['Taanit', 31], ['Megillah', 32], ['Moed Katan', 29], ['Chagigah', 27], ['Yevamot', 122], ['Ketubot', 112], ['Nedarim', 91], ['Nazir', 66], ['Sotah', 49], ['Gitin', 90], ['Kiddushin', 82], ['Baba Kamma', 119], ['Baba Metzia', 119], ['Baba Batra', 176], ['Sanhedrin', 113], ['Makkot', 24], ['Shevuot', 49], ['Avodah Zarah', 76], ['Horayot', 14], ['Zevachim', 120], ['Menachot', 110], ['Chullin', 142], ['Bechorot', 61], ['Arachin', 34], ['Temurah', 34], ['Keritot', 28], ['Meilah', 22], ['Kinnim', 4], ['Tamid', 9], ['Midot', 5], ['Niddah', 73]].map(function (m) {
|
|
5625
5898
|
return {
|
|
5626
5899
|
name: m[0],
|
|
@@ -5644,7 +5917,7 @@ var DafYomi = /*#__PURE__*/function () {
|
|
|
5644
5917
|
function DafYomi(gregdate) {
|
|
5645
5918
|
_classCallCheck(this, DafYomi);
|
|
5646
5919
|
|
|
5647
|
-
var cday = typeof gregdate === 'number' && !isNaN(gregdate) ? gregdate :
|
|
5920
|
+
var cday = typeof gregdate === 'number' && !isNaN(gregdate) ? gregdate : isDate(gregdate) ? greg2abs(gregdate) : HDate.isHDate(gregdate) ? gregdate.abs() : throwTypeError$1("non-date given to dafyomi: ".concat(gregdate));
|
|
5648
5921
|
|
|
5649
5922
|
if (cday < osday) {
|
|
5650
5923
|
throw new RangeError("Date ".concat(gregdate, " too early; Daf Yomi cycle began on ").concat(osdate));
|
|
@@ -5823,11 +6096,11 @@ var DafYomiEvent = /*#__PURE__*/function (_Event) {
|
|
|
5823
6096
|
return DafYomiEvent;
|
|
5824
6097
|
}(Event);
|
|
5825
6098
|
|
|
5826
|
-
var uncurryThis
|
|
6099
|
+
var uncurryThis = functionUncurryThis;
|
|
5827
6100
|
var aCallable$1 = aCallable$4;
|
|
5828
6101
|
var NATIVE_BIND = functionBindNative;
|
|
5829
6102
|
|
|
5830
|
-
var bind$1 = uncurryThis
|
|
6103
|
+
var bind$1 = uncurryThis(uncurryThis.bind);
|
|
5831
6104
|
|
|
5832
6105
|
// optional / simple context binding
|
|
5833
6106
|
var functionBindContext = function (fn, that) {
|
|
@@ -5875,7 +6148,7 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
5875
6148
|
|
|
5876
6149
|
var iterators = {};
|
|
5877
6150
|
|
|
5878
|
-
var wellKnownSymbol$2 = wellKnownSymbol$
|
|
6151
|
+
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
|
5879
6152
|
var Iterators$1 = iterators;
|
|
5880
6153
|
|
|
5881
6154
|
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
@@ -5886,63 +6159,10 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
5886
6159
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
5887
6160
|
};
|
|
5888
6161
|
|
|
5889
|
-
var uncurryThis = functionUncurryThis;
|
|
5890
|
-
var fails = fails$c;
|
|
5891
|
-
var isCallable = isCallable$c;
|
|
5892
|
-
var classof$1 = classof$3;
|
|
5893
|
-
var getBuiltIn = getBuiltIn$4;
|
|
5894
|
-
var inspectSource = inspectSource$3;
|
|
5895
|
-
|
|
5896
|
-
var noop = function () { /* empty */ };
|
|
5897
|
-
var empty = [];
|
|
5898
|
-
var construct = getBuiltIn('Reflect', 'construct');
|
|
5899
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
5900
|
-
var exec = uncurryThis(constructorRegExp.exec);
|
|
5901
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
5902
|
-
|
|
5903
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
5904
|
-
if (!isCallable(argument)) return false;
|
|
5905
|
-
try {
|
|
5906
|
-
construct(noop, empty, argument);
|
|
5907
|
-
return true;
|
|
5908
|
-
} catch (error) {
|
|
5909
|
-
return false;
|
|
5910
|
-
}
|
|
5911
|
-
};
|
|
5912
|
-
|
|
5913
|
-
var isConstructorLegacy = function isConstructor(argument) {
|
|
5914
|
-
if (!isCallable(argument)) return false;
|
|
5915
|
-
switch (classof$1(argument)) {
|
|
5916
|
-
case 'AsyncFunction':
|
|
5917
|
-
case 'GeneratorFunction':
|
|
5918
|
-
case 'AsyncGeneratorFunction': return false;
|
|
5919
|
-
}
|
|
5920
|
-
try {
|
|
5921
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
5922
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
5923
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
5924
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
5925
|
-
} catch (error) {
|
|
5926
|
-
return true;
|
|
5927
|
-
}
|
|
5928
|
-
};
|
|
5929
|
-
|
|
5930
|
-
isConstructorLegacy.sham = true;
|
|
5931
|
-
|
|
5932
|
-
// `IsConstructor` abstract operation
|
|
5933
|
-
// https://tc39.es/ecma262/#sec-isconstructor
|
|
5934
|
-
var isConstructor$1 = !construct || fails(function () {
|
|
5935
|
-
var called;
|
|
5936
|
-
return isConstructorModern(isConstructorModern.call)
|
|
5937
|
-
|| !isConstructorModern(Object)
|
|
5938
|
-
|| !isConstructorModern(function () { called = true; })
|
|
5939
|
-
|| called;
|
|
5940
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
5941
|
-
|
|
5942
6162
|
var classof = classof$3;
|
|
5943
6163
|
var getMethod = getMethod$3;
|
|
5944
6164
|
var Iterators = iterators;
|
|
5945
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
6165
|
+
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
5946
6166
|
|
|
5947
6167
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
5948
6168
|
|
|
@@ -5952,34 +6172,32 @@ var getIteratorMethod$2 = function (it) {
|
|
|
5952
6172
|
|| Iterators[classof(it)];
|
|
5953
6173
|
};
|
|
5954
6174
|
|
|
5955
|
-
var global$2 = global$r;
|
|
5956
6175
|
var call$1 = functionCall;
|
|
5957
6176
|
var aCallable = aCallable$4;
|
|
5958
6177
|
var anObject = anObject$5;
|
|
5959
|
-
var tryToString = tryToString$
|
|
6178
|
+
var tryToString = tryToString$3;
|
|
5960
6179
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
5961
6180
|
|
|
5962
|
-
var TypeError
|
|
6181
|
+
var $TypeError = TypeError;
|
|
5963
6182
|
|
|
5964
6183
|
var getIterator$1 = function (argument, usingIterator) {
|
|
5965
6184
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
5966
6185
|
if (aCallable(iteratorMethod)) return anObject(call$1(iteratorMethod, argument));
|
|
5967
|
-
throw TypeError
|
|
6186
|
+
throw $TypeError(tryToString(argument) + ' is not iterable');
|
|
5968
6187
|
};
|
|
5969
6188
|
|
|
5970
|
-
var global$1 = global$r;
|
|
5971
6189
|
var bind = functionBindContext;
|
|
5972
6190
|
var call = functionCall;
|
|
5973
6191
|
var toObject = toObject$3;
|
|
5974
6192
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
5975
6193
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
5976
|
-
var isConstructor = isConstructor$
|
|
5977
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
5978
|
-
var createProperty = createProperty$
|
|
6194
|
+
var isConstructor = isConstructor$2;
|
|
6195
|
+
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
6196
|
+
var createProperty = createProperty$3;
|
|
5979
6197
|
var getIterator = getIterator$1;
|
|
5980
6198
|
var getIteratorMethod = getIteratorMethod$2;
|
|
5981
6199
|
|
|
5982
|
-
var Array
|
|
6200
|
+
var $Array = Array;
|
|
5983
6201
|
|
|
5984
6202
|
// `Array.from` method implementation
|
|
5985
6203
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -5994,7 +6212,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
|
|
|
5994
6212
|
var index = 0;
|
|
5995
6213
|
var length, result, step, iterator, next, value;
|
|
5996
6214
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
5997
|
-
if (iteratorMethod && !(this
|
|
6215
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
5998
6216
|
iterator = getIterator(O, iteratorMethod);
|
|
5999
6217
|
next = iterator.next;
|
|
6000
6218
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -6004,7 +6222,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
|
|
|
6004
6222
|
}
|
|
6005
6223
|
} else {
|
|
6006
6224
|
length = lengthOfArrayLike(O);
|
|
6007
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array
|
|
6225
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
6008
6226
|
for (;length > index; index++) {
|
|
6009
6227
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
6010
6228
|
createProperty(result, index, value);
|
|
@@ -6014,7 +6232,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
|
|
|
6014
6232
|
return result;
|
|
6015
6233
|
};
|
|
6016
6234
|
|
|
6017
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
6235
|
+
var wellKnownSymbol = wellKnownSymbol$8;
|
|
6018
6236
|
|
|
6019
6237
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
6020
6238
|
var SAFE_CLOSING = false;
|
|
@@ -7249,7 +7467,7 @@ function getHolidaysForYear_(year) {
|
|
|
7249
7467
|
var mishnayot = [{k:"Berakhot",v:[5,8,6,7,5,8,5,8,5]},{k:"Peah",v:[6,8,8,11,8,11,8,9]},{k:"Demai",v:[4,5,6,7,11,12,8]},{k:"Kilayim",v:[9,11,7,9,8,9,8,6,10]},{k:"Sheviit",v:[8,10,10,10,9,6,7,11,9,9]},{k:"Terumot",v:[10,6,9,13,9,6,7,12,7,12,10]},{k:"Maasrot",v:[8,8,10,6,8]},{k:"Maaser Sheni",v:[7,10,13,12,15]},{k:"Challah",v:[9,8,10,11]},{k:"Orlah",v:[9,17,9]},{k:"Bikkurim",v:[11,11,12,5]},{k:"Shabbat",v:[11,7,6,2,4,10,4,7,7,6,6,6,7,4,3,8,8,3,6,5,3,6,5,5]},{k:"Eruvin",v:[10,6,9,11,9,10,11,11,4,15]},{k:"Pesachim",v:[7,8,8,9,10,6,13,8,11,9]},{k:"Shekalim",v:[7,5,4,9,6,6,7,8]},{k:"Yoma",v:[8,7,11,6,7,8,5,9]},{k:"Sukkah",v:[11,9,15,10,8]},{k:"Beitzah",v:[10,10,8,7,7]},{k:"Rosh Hashanah",v:[9,9,8,9]},{k:"Taanit",v:[7,10,9,8]},{k:"Megillah",v:[11,6,6,10]},{k:"Moed Katan",v:[10,5,9]},{k:"Chagigah",v:[8,7,8]},{k:"Yevamot",v:[4,10,10,13,6,6,6,6,6,9,7,6,13,9,10,7]},{k:"Ketubot",v:[10,10,9,12,9,7,10,8,9,6,6,4,11]},{k:"Nedarim",v:[4,5,11,8,6,10,9,7,10,8,12]},{k:"Nazir",v:[7,10,7,7,7,11,4,2,5]},{k:"Sotah",v:[9,6,8,5,5,4,8,7,15]},{k:"Gittin",v:[6,7,8,9,9,7,9,10,10]},{k:"Kiddushin",v:[10,10,13,14]},{k:"Bava Kamma",v:[4,6,11,9,7,6,7,7,12,10]},{k:"Bava Metzia",v:[8,11,12,12,11,8,11,9,13,6]},{k:"Bava Batra",v:[6,14,8,9,11,8,4,8,10,8]},{k:"Sanhedrin",v:[6,5,8,5,5,6,11,7,6,6,6]},{k:"Makkot",v:[10,8,16]},{k:"Shevuot",v:[7,5,11,13,5,7,8,6]},{k:"Eduyot",v:[14,10,12,12,7,3,9,7]},{k:"Avodah Zarah",v:[9,7,10,12,12]},{k:"Avot",v:[18,16,18,22,23,11]},{k:"Horayot",v:[5,7,8]},{k:"Zevachim",v:[4,5,6,6,8,7,6,12,7,8,8,6,8,10]},{k:"Menachot",v:[4,5,7,5,9,7,6,7,9,9,9,5,11]},{k:"Chullin",v:[7,10,7,7,5,7,6,6,8,4,2,5]},{k:"Bekhorot",v:[7,9,4,10,6,12,7,10,8]},{k:"Arakhin",v:[4,6,5,4,6,5,5,7,8]},{k:"Temurah",v:[6,3,5,4,6,5,6]},{k:"Keritot",v:[7,6,10,3,8,9]},{k:"Meilah",v:[4,9,8,6,5,6]},{k:"Tamid",v:[4,5,9,3,6,3,4]},{k:"Middot",v:[9,6,8,7,4]},{k:"Kinnim",v:[4,5,6]},{k:"Kelim",v:[9,8,8,4,11,4,6,11,8,8,9,8,8,8,6,8,17,9,10,7,3,10,5,17,9,9,12,10,8,4]},{k:"Oholot",v:[8,7,7,3,7,7,6,6,16,7,9,8,6,7,10,5,5,10]},{k:"Negaim",v:[6,5,8,11,5,8,5,10,3,10,12,7,12,13]},{k:"Parah",v:[4,5,11,4,9,5,12,11,9,6,9,11]},{k:"Tahorot",v:[9,8,8,13,9,10,9,9,9,8]},{k:"Mikvaot",v:[8,10,4,5,6,11,7,5,7,8]},{k:"Niddah",v:[7,7,7,7,9,14,5,4,11,8]},{k:"Makhshirin",v:[6,11,8,10,11,8]},{k:"Zavim",v:[6,4,3,7,12]},{k:"Tevul Yom",v:[5,8,6,7]},{k:"Yadayim",v:[5,4,5,8]},{k:"Oktzin",v:[6,10,12]}];
|
|
7250
7468
|
|
|
7251
7469
|
var cycleStartDate = new Date(1947, 4, 20);
|
|
7252
|
-
var mishnaYomiStart =
|
|
7470
|
+
var mishnaYomiStart = greg2abs(cycleStartDate);
|
|
7253
7471
|
var numMishnayot = 4192;
|
|
7254
7472
|
var numDays = numMishnayot / 2;
|
|
7255
7473
|
/**
|
|
@@ -7325,7 +7543,7 @@ var MishnaYomiIndex = /*#__PURE__*/function () {
|
|
|
7325
7543
|
_createClass(MishnaYomiIndex, [{
|
|
7326
7544
|
key: "lookup",
|
|
7327
7545
|
value: function lookup(date) {
|
|
7328
|
-
var abs = typeof date === 'number' && !isNaN(date) ? date :
|
|
7546
|
+
var abs = typeof date === 'number' && !isNaN(date) ? date : isDate(date) ? greg2abs(date) : HDate.isHDate(date) ? date.abs() : throwTypeError("Invalid date: ".concat(date));
|
|
7329
7547
|
|
|
7330
7548
|
if (abs < mishnaYomiStart) {
|
|
7331
7549
|
var s = date.toISOString().substring(0, 10);
|
|
@@ -7460,18 +7678,18 @@ function getYahrzeit_(hyear, gdate) {
|
|
|
7460
7678
|
return undefined;
|
|
7461
7679
|
}
|
|
7462
7680
|
|
|
7463
|
-
if (hDeath.mm == CHESHVAN && hDeath.dd == 30 && !
|
|
7681
|
+
if (hDeath.mm == CHESHVAN && hDeath.dd == 30 && !longCheshvan(hDeath.yy + 1)) {
|
|
7464
7682
|
// If it's Heshvan 30 it depends on the first anniversary;
|
|
7465
7683
|
// if that was not Heshvan 30, use the day before Kislev 1.
|
|
7466
|
-
hDeath =
|
|
7467
|
-
} else if (hDeath.mm == KISLEV && hDeath.dd == 30 &&
|
|
7684
|
+
hDeath = abs2hebrew(hebrew2abs(hyear, KISLEV, 1) - 1);
|
|
7685
|
+
} else if (hDeath.mm == KISLEV && hDeath.dd == 30 && shortKislev(hDeath.yy + 1)) {
|
|
7468
7686
|
// If it's Kislev 30 it depends on the first anniversary;
|
|
7469
7687
|
// if that was not Kislev 30, use the day before Teveth 1.
|
|
7470
|
-
hDeath =
|
|
7688
|
+
hDeath = abs2hebrew(hebrew2abs(hyear, TEVET, 1) - 1);
|
|
7471
7689
|
} else if (hDeath.mm == ADAR_II) {
|
|
7472
7690
|
// If it's Adar II, use the same day in last month of year (Adar or Adar II).
|
|
7473
|
-
hDeath.mm =
|
|
7474
|
-
} else if (hDeath.mm == ADAR_I && hDeath.dd == 30 && !
|
|
7691
|
+
hDeath.mm = monthsInYear(hyear);
|
|
7692
|
+
} else if (hDeath.mm == ADAR_I && hDeath.dd == 30 && !isLeapYear(hyear)) {
|
|
7475
7693
|
// If it's the 30th in Adar I and year is not a leap year
|
|
7476
7694
|
// (so Adar has only 29 days), use the last day in Shevat.
|
|
7477
7695
|
hDeath.dd = 30;
|
|
@@ -7480,10 +7698,10 @@ function getYahrzeit_(hyear, gdate) {
|
|
|
7480
7698
|
// advance day to rosh chodesh if needed
|
|
7481
7699
|
|
|
7482
7700
|
|
|
7483
|
-
if (hDeath.mm == CHESHVAN && hDeath.dd == 30 && !
|
|
7701
|
+
if (hDeath.mm == CHESHVAN && hDeath.dd == 30 && !longCheshvan(hyear)) {
|
|
7484
7702
|
hDeath.mm = KISLEV;
|
|
7485
7703
|
hDeath.dd = 1;
|
|
7486
|
-
} else if (hDeath.mm == KISLEV && hDeath.dd == 30 &&
|
|
7704
|
+
} else if (hDeath.mm == KISLEV && hDeath.dd == 30 && shortKislev(hyear)) {
|
|
7487
7705
|
hDeath.mm = TEVET;
|
|
7488
7706
|
hDeath.dd = 1;
|
|
7489
7707
|
}
|
|
@@ -7506,19 +7724,19 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
7506
7724
|
return undefined;
|
|
7507
7725
|
}
|
|
7508
7726
|
|
|
7509
|
-
var isOrigLeap =
|
|
7727
|
+
var isOrigLeap = isLeapYear(origYear);
|
|
7510
7728
|
var month = orig.getMonth();
|
|
7511
7729
|
var day = orig.getDate();
|
|
7512
7730
|
|
|
7513
7731
|
if (month == ADAR_I && !isOrigLeap || month == ADAR_II && isOrigLeap) {
|
|
7514
|
-
month =
|
|
7515
|
-
} else if (month == CHESHVAN && day == 30 && !
|
|
7732
|
+
month = monthsInYear(hyear);
|
|
7733
|
+
} else if (month == CHESHVAN && day == 30 && !longCheshvan(hyear)) {
|
|
7516
7734
|
month = KISLEV;
|
|
7517
7735
|
day = 1;
|
|
7518
|
-
} else if (month == KISLEV && day == 30 &&
|
|
7736
|
+
} else if (month == KISLEV && day == 30 && shortKislev(hyear)) {
|
|
7519
7737
|
month = TEVET;
|
|
7520
7738
|
day = 1;
|
|
7521
|
-
} else if (month == ADAR_I && day == 30 && isOrigLeap && !
|
|
7739
|
+
} else if (month == ADAR_I && day == 30 && isOrigLeap && !isLeapYear(hyear)) {
|
|
7522
7740
|
month = NISAN$1;
|
|
7523
7741
|
day = 1;
|
|
7524
7742
|
}
|
|
@@ -7526,7 +7744,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
7526
7744
|
return new HDate(day, month, hyear);
|
|
7527
7745
|
}
|
|
7528
7746
|
|
|
7529
|
-
var version="3.
|
|
7747
|
+
var version="3.38.0";
|
|
7530
7748
|
|
|
7531
7749
|
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};
|
|
7532
7750
|
|
|
@@ -7729,7 +7947,7 @@ function checkCandleOptions(options) {
|
|
|
7729
7947
|
|
|
7730
7948
|
function getAbs(d) {
|
|
7731
7949
|
if (typeof d == 'number') return d;
|
|
7732
|
-
if (
|
|
7950
|
+
if (isDate(d)) return greg2abs(d);
|
|
7733
7951
|
if (HDate.isHDate(d)) return d.abs();
|
|
7734
7952
|
throw new TypeError("Invalid date type: ".concat(d));
|
|
7735
7953
|
}
|
|
@@ -7791,12 +8009,12 @@ function getStartAndEnd(options) {
|
|
|
7791
8009
|
startGreg.setFullYear(theYear);
|
|
7792
8010
|
}
|
|
7793
8011
|
|
|
7794
|
-
var _startAbs =
|
|
8012
|
+
var _startAbs = greg2abs(startGreg);
|
|
7795
8013
|
|
|
7796
8014
|
var _endAbs;
|
|
7797
8015
|
|
|
7798
8016
|
if (options.month) {
|
|
7799
|
-
_endAbs = _startAbs +
|
|
8017
|
+
_endAbs = _startAbs + daysInMonth$1(theMonth, theYear) - 1;
|
|
7800
8018
|
} else {
|
|
7801
8019
|
var endYear = theYear + numYears;
|
|
7802
8020
|
var endGreg = new Date(endYear, 0, 1);
|
|
@@ -7805,7 +8023,7 @@ function getStartAndEnd(options) {
|
|
|
7805
8023
|
endGreg.setFullYear(endYear);
|
|
7806
8024
|
}
|
|
7807
8025
|
|
|
7808
|
-
_endAbs =
|
|
8026
|
+
_endAbs = greg2abs(endGreg) - 1;
|
|
7809
8027
|
}
|
|
7810
8028
|
|
|
7811
8029
|
return [_startAbs, _endAbs];
|
|
@@ -8078,7 +8296,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
|
|
|
8078
8296
|
warnUnrecognizedOptions(options);
|
|
8079
8297
|
var startAbs = startAndEnd[0];
|
|
8080
8298
|
var endAbs = startAndEnd[1];
|
|
8081
|
-
var startGreg =
|
|
8299
|
+
var startGreg = abs2greg(startAbs);
|
|
8082
8300
|
|
|
8083
8301
|
if (startGreg.getFullYear() < 100) {
|
|
8084
8302
|
options.candlelighting = false;
|