@hebcal/core 3.28.0 → 3.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.28.0 */
1
+ /*! @hebcal/core v3.29.2 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -188,1023 +188,6 @@ const greg = {
188
188
  }
189
189
  };
190
190
 
191
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
192
-
193
- var check = function (it) {
194
- return it && it.Math == Math && it;
195
- };
196
-
197
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
198
- var global$o =
199
- // eslint-disable-next-line es/no-global-this -- safe
200
- check(typeof globalThis == 'object' && globalThis) ||
201
- check(typeof window == 'object' && window) ||
202
- // eslint-disable-next-line no-restricted-globals -- safe
203
- check(typeof self == 'object' && self) ||
204
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
205
- // eslint-disable-next-line no-new-func -- fallback
206
- (function () { return this; })() || Function('return this')();
207
-
208
- var objectGetOwnPropertyDescriptor = {};
209
-
210
- var fails$6 = function (exec) {
211
- try {
212
- return !!exec();
213
- } catch (error) {
214
- return true;
215
- }
216
- };
217
-
218
- var fails$5 = fails$6;
219
-
220
- // Detect IE8's incomplete defineProperty implementation
221
- var descriptors = !fails$5(function () {
222
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
223
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
224
- });
225
-
226
- var call$4 = Function.prototype.call;
227
-
228
- var functionCall = call$4.bind ? call$4.bind(call$4) : function () {
229
- return call$4.apply(call$4, arguments);
230
- };
231
-
232
- var objectPropertyIsEnumerable = {};
233
-
234
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
235
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
236
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
237
-
238
- // Nashorn ~ JDK8 bug
239
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
240
-
241
- // `Object.prototype.propertyIsEnumerable` method implementation
242
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
243
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
244
- var descriptor = getOwnPropertyDescriptor$1(this, V);
245
- return !!descriptor && descriptor.enumerable;
246
- } : $propertyIsEnumerable;
247
-
248
- var createPropertyDescriptor$2 = function (bitmap, value) {
249
- return {
250
- enumerable: !(bitmap & 1),
251
- configurable: !(bitmap & 2),
252
- writable: !(bitmap & 4),
253
- value: value
254
- };
255
- };
256
-
257
- var FunctionPrototype$1 = Function.prototype;
258
- var bind = FunctionPrototype$1.bind;
259
- var call$3 = FunctionPrototype$1.call;
260
- var callBind = bind && bind.bind(call$3);
261
-
262
- var functionUncurryThis = bind ? function (fn) {
263
- return fn && callBind(call$3, fn);
264
- } : function (fn) {
265
- return fn && function () {
266
- return call$3.apply(fn, arguments);
267
- };
268
- };
269
-
270
- var uncurryThis$a = functionUncurryThis;
271
-
272
- var toString$4 = uncurryThis$a({}.toString);
273
- var stringSlice = uncurryThis$a(''.slice);
274
-
275
- var classofRaw$1 = function (it) {
276
- return stringSlice(toString$4(it), 8, -1);
277
- };
278
-
279
- var global$n = global$o;
280
- var uncurryThis$9 = functionUncurryThis;
281
- var fails$4 = fails$6;
282
- var classof$2 = classofRaw$1;
283
-
284
- var Object$4 = global$n.Object;
285
- var split = uncurryThis$9(''.split);
286
-
287
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
288
- var indexedObject = fails$4(function () {
289
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
290
- // eslint-disable-next-line no-prototype-builtins -- safe
291
- return !Object$4('z').propertyIsEnumerable(0);
292
- }) ? function (it) {
293
- return classof$2(it) == 'String' ? split(it, '') : Object$4(it);
294
- } : Object$4;
295
-
296
- var global$m = global$o;
297
-
298
- var TypeError$7 = global$m.TypeError;
299
-
300
- // `RequireObjectCoercible` abstract operation
301
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
302
- var requireObjectCoercible$3 = function (it) {
303
- if (it == undefined) throw TypeError$7("Can't call method on " + it);
304
- return it;
305
- };
306
-
307
- // toObject with fallback for non-array-like ES3 strings
308
- var IndexedObject = indexedObject;
309
- var requireObjectCoercible$2 = requireObjectCoercible$3;
310
-
311
- var toIndexedObject$3 = function (it) {
312
- return IndexedObject(requireObjectCoercible$2(it));
313
- };
314
-
315
- // `IsCallable` abstract operation
316
- // https://tc39.es/ecma262/#sec-iscallable
317
- var isCallable$a = function (argument) {
318
- return typeof argument == 'function';
319
- };
320
-
321
- var isCallable$9 = isCallable$a;
322
-
323
- var isObject$5 = function (it) {
324
- return typeof it == 'object' ? it !== null : isCallable$9(it);
325
- };
326
-
327
- var global$l = global$o;
328
- var isCallable$8 = isCallable$a;
329
-
330
- var aFunction = function (argument) {
331
- return isCallable$8(argument) ? argument : undefined;
332
- };
333
-
334
- var getBuiltIn$3 = function (namespace, method) {
335
- return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
336
- };
337
-
338
- var uncurryThis$8 = functionUncurryThis;
339
-
340
- var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
341
-
342
- var getBuiltIn$2 = getBuiltIn$3;
343
-
344
- var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
345
-
346
- var global$k = global$o;
347
- var userAgent = engineUserAgent;
348
-
349
- var process = global$k.process;
350
- var Deno = global$k.Deno;
351
- var versions = process && process.versions || Deno && Deno.version;
352
- var v8 = versions && versions.v8;
353
- var match, version$1;
354
-
355
- if (v8) {
356
- match = v8.split('.');
357
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
358
- // but their correct versions are not interesting for us
359
- version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
360
- }
361
-
362
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
363
- // so check `userAgent` even if `.v8` exists, but 0
364
- if (!version$1 && userAgent) {
365
- match = userAgent.match(/Edge\/(\d+)/);
366
- if (!match || match[1] >= 74) {
367
- match = userAgent.match(/Chrome\/(\d+)/);
368
- if (match) version$1 = +match[1];
369
- }
370
- }
371
-
372
- var engineV8Version = version$1;
373
-
374
- /* eslint-disable es/no-symbol -- required for testing */
375
-
376
- var V8_VERSION = engineV8Version;
377
- var fails$3 = fails$6;
378
-
379
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
380
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$3(function () {
381
- var symbol = Symbol();
382
- // Chrome 38 Symbol has incorrect toString conversion
383
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
384
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
385
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
386
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
387
- });
388
-
389
- /* eslint-disable es/no-symbol -- required for testing */
390
-
391
- var NATIVE_SYMBOL$1 = nativeSymbol;
392
-
393
- var useSymbolAsUid = NATIVE_SYMBOL$1
394
- && !Symbol.sham
395
- && typeof Symbol.iterator == 'symbol';
396
-
397
- var global$j = global$o;
398
- var getBuiltIn$1 = getBuiltIn$3;
399
- var isCallable$7 = isCallable$a;
400
- var isPrototypeOf = objectIsPrototypeOf;
401
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
402
-
403
- var Object$3 = global$j.Object;
404
-
405
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
406
- return typeof it == 'symbol';
407
- } : function (it) {
408
- var $Symbol = getBuiltIn$1('Symbol');
409
- return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
410
- };
411
-
412
- var global$i = global$o;
413
-
414
- var String$3 = global$i.String;
415
-
416
- var tryToString$1 = function (argument) {
417
- try {
418
- return String$3(argument);
419
- } catch (error) {
420
- return 'Object';
421
- }
422
- };
423
-
424
- var global$h = global$o;
425
- var isCallable$6 = isCallable$a;
426
- var tryToString = tryToString$1;
427
-
428
- var TypeError$6 = global$h.TypeError;
429
-
430
- // `Assert: IsCallable(argument) is true`
431
- var aCallable$1 = function (argument) {
432
- if (isCallable$6(argument)) return argument;
433
- throw TypeError$6(tryToString(argument) + ' is not a function');
434
- };
435
-
436
- var aCallable = aCallable$1;
437
-
438
- // `GetMethod` abstract operation
439
- // https://tc39.es/ecma262/#sec-getmethod
440
- var getMethod$1 = function (V, P) {
441
- var func = V[P];
442
- return func == null ? undefined : aCallable(func);
443
- };
444
-
445
- var global$g = global$o;
446
- var call$2 = functionCall;
447
- var isCallable$5 = isCallable$a;
448
- var isObject$4 = isObject$5;
449
-
450
- var TypeError$5 = global$g.TypeError;
451
-
452
- // `OrdinaryToPrimitive` abstract operation
453
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
454
- var ordinaryToPrimitive$1 = function (input, pref) {
455
- var fn, val;
456
- if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
457
- if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$2(fn, input))) return val;
458
- if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
459
- throw TypeError$5("Can't convert object to primitive value");
460
- };
461
-
462
- var shared$3 = {exports: {}};
463
-
464
- var global$f = global$o;
465
-
466
- // eslint-disable-next-line es/no-object-defineproperty -- safe
467
- var defineProperty = Object.defineProperty;
468
-
469
- var setGlobal$3 = function (key, value) {
470
- try {
471
- defineProperty(global$f, key, { value: value, configurable: true, writable: true });
472
- } catch (error) {
473
- global$f[key] = value;
474
- } return value;
475
- };
476
-
477
- var global$e = global$o;
478
- var setGlobal$2 = setGlobal$3;
479
-
480
- var SHARED = '__core-js_shared__';
481
- var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
482
-
483
- var sharedStore = store$3;
484
-
485
- var store$2 = sharedStore;
486
-
487
- (shared$3.exports = function (key, value) {
488
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
489
- })('versions', []).push({
490
- version: '3.19.1',
491
- mode: 'global',
492
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
493
- });
494
-
495
- var global$d = global$o;
496
- var requireObjectCoercible$1 = requireObjectCoercible$3;
497
-
498
- var Object$2 = global$d.Object;
499
-
500
- // `ToObject` abstract operation
501
- // https://tc39.es/ecma262/#sec-toobject
502
- var toObject$1 = function (argument) {
503
- return Object$2(requireObjectCoercible$1(argument));
504
- };
505
-
506
- var uncurryThis$7 = functionUncurryThis;
507
- var toObject = toObject$1;
508
-
509
- var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
510
-
511
- // `HasOwnProperty` abstract operation
512
- // https://tc39.es/ecma262/#sec-hasownproperty
513
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
514
- return hasOwnProperty(toObject(it), key);
515
- };
516
-
517
- var uncurryThis$6 = functionUncurryThis;
518
-
519
- var id = 0;
520
- var postfix = Math.random();
521
- var toString$3 = uncurryThis$6(1.0.toString);
522
-
523
- var uid$2 = function (key) {
524
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
525
- };
526
-
527
- var global$c = global$o;
528
- var shared$2 = shared$3.exports;
529
- var hasOwn$6 = hasOwnProperty_1;
530
- var uid$1 = uid$2;
531
- var NATIVE_SYMBOL = nativeSymbol;
532
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
533
-
534
- var WellKnownSymbolsStore = shared$2('wks');
535
- var Symbol$2 = global$c.Symbol;
536
- var symbolFor = Symbol$2 && Symbol$2['for'];
537
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
538
-
539
- var wellKnownSymbol$3 = function (name) {
540
- if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
541
- var description = 'Symbol.' + name;
542
- if (NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)) {
543
- WellKnownSymbolsStore[name] = Symbol$2[name];
544
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
545
- WellKnownSymbolsStore[name] = symbolFor(description);
546
- } else {
547
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
548
- }
549
- } return WellKnownSymbolsStore[name];
550
- };
551
-
552
- var global$b = global$o;
553
- var call$1 = functionCall;
554
- var isObject$3 = isObject$5;
555
- var isSymbol$1 = isSymbol$2;
556
- var getMethod = getMethod$1;
557
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
558
- var wellKnownSymbol$2 = wellKnownSymbol$3;
559
-
560
- var TypeError$4 = global$b.TypeError;
561
- var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
562
-
563
- // `ToPrimitive` abstract operation
564
- // https://tc39.es/ecma262/#sec-toprimitive
565
- var toPrimitive$1 = function (input, pref) {
566
- if (!isObject$3(input) || isSymbol$1(input)) return input;
567
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
568
- var result;
569
- if (exoticToPrim) {
570
- if (pref === undefined) pref = 'default';
571
- result = call$1(exoticToPrim, input, pref);
572
- if (!isObject$3(result) || isSymbol$1(result)) return result;
573
- throw TypeError$4("Can't convert object to primitive value");
574
- }
575
- if (pref === undefined) pref = 'number';
576
- return ordinaryToPrimitive(input, pref);
577
- };
578
-
579
- var toPrimitive = toPrimitive$1;
580
- var isSymbol = isSymbol$2;
581
-
582
- // `ToPropertyKey` abstract operation
583
- // https://tc39.es/ecma262/#sec-topropertykey
584
- var toPropertyKey$2 = function (argument) {
585
- var key = toPrimitive(argument, 'string');
586
- return isSymbol(key) ? key : key + '';
587
- };
588
-
589
- var global$a = global$o;
590
- var isObject$2 = isObject$5;
591
-
592
- var document = global$a.document;
593
- // typeof document.createElement is 'object' in old IE
594
- var EXISTS$1 = isObject$2(document) && isObject$2(document.createElement);
595
-
596
- var documentCreateElement = function (it) {
597
- return EXISTS$1 ? document.createElement(it) : {};
598
- };
599
-
600
- var DESCRIPTORS$4 = descriptors;
601
- var fails$2 = fails$6;
602
- var createElement = documentCreateElement;
603
-
604
- // Thank's IE8 for his funny defineProperty
605
- var ie8DomDefine = !DESCRIPTORS$4 && !fails$2(function () {
606
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
607
- return Object.defineProperty(createElement('div'), 'a', {
608
- get: function () { return 7; }
609
- }).a != 7;
610
- });
611
-
612
- var DESCRIPTORS$3 = descriptors;
613
- var call = functionCall;
614
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
615
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
616
- var toIndexedObject$2 = toIndexedObject$3;
617
- var toPropertyKey$1 = toPropertyKey$2;
618
- var hasOwn$5 = hasOwnProperty_1;
619
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
620
-
621
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
622
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
623
-
624
- // `Object.getOwnPropertyDescriptor` method
625
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
626
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
627
- O = toIndexedObject$2(O);
628
- P = toPropertyKey$1(P);
629
- if (IE8_DOM_DEFINE$1) try {
630
- return $getOwnPropertyDescriptor(O, P);
631
- } catch (error) { /* empty */ }
632
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
633
- };
634
-
635
- var objectDefineProperty = {};
636
-
637
- var global$9 = global$o;
638
- var isObject$1 = isObject$5;
639
-
640
- var String$2 = global$9.String;
641
- var TypeError$3 = global$9.TypeError;
642
-
643
- // `Assert: Type(argument) is Object`
644
- var anObject$2 = function (argument) {
645
- if (isObject$1(argument)) return argument;
646
- throw TypeError$3(String$2(argument) + ' is not an object');
647
- };
648
-
649
- var global$8 = global$o;
650
- var DESCRIPTORS$2 = descriptors;
651
- var IE8_DOM_DEFINE = ie8DomDefine;
652
- var anObject$1 = anObject$2;
653
- var toPropertyKey = toPropertyKey$2;
654
-
655
- var TypeError$2 = global$8.TypeError;
656
- // eslint-disable-next-line es/no-object-defineproperty -- safe
657
- var $defineProperty = Object.defineProperty;
658
-
659
- // `Object.defineProperty` method
660
- // https://tc39.es/ecma262/#sec-object.defineproperty
661
- objectDefineProperty.f = DESCRIPTORS$2 ? $defineProperty : function defineProperty(O, P, Attributes) {
662
- anObject$1(O);
663
- P = toPropertyKey(P);
664
- anObject$1(Attributes);
665
- if (IE8_DOM_DEFINE) try {
666
- return $defineProperty(O, P, Attributes);
667
- } catch (error) { /* empty */ }
668
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
669
- if ('value' in Attributes) O[P] = Attributes.value;
670
- return O;
671
- };
672
-
673
- var DESCRIPTORS$1 = descriptors;
674
- var definePropertyModule$1 = objectDefineProperty;
675
- var createPropertyDescriptor = createPropertyDescriptor$2;
676
-
677
- var createNonEnumerableProperty$3 = DESCRIPTORS$1 ? function (object, key, value) {
678
- return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
679
- } : function (object, key, value) {
680
- object[key] = value;
681
- return object;
682
- };
683
-
684
- var redefine$1 = {exports: {}};
685
-
686
- var uncurryThis$5 = functionUncurryThis;
687
- var isCallable$4 = isCallable$a;
688
- var store$1 = sharedStore;
689
-
690
- var functionToString = uncurryThis$5(Function.toString);
691
-
692
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
693
- if (!isCallable$4(store$1.inspectSource)) {
694
- store$1.inspectSource = function (it) {
695
- return functionToString(it);
696
- };
697
- }
698
-
699
- var inspectSource$2 = store$1.inspectSource;
700
-
701
- var global$7 = global$o;
702
- var isCallable$3 = isCallable$a;
703
- var inspectSource$1 = inspectSource$2;
704
-
705
- var WeakMap$1 = global$7.WeakMap;
706
-
707
- var nativeWeakMap = isCallable$3(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
708
-
709
- var shared$1 = shared$3.exports;
710
- var uid = uid$2;
711
-
712
- var keys = shared$1('keys');
713
-
714
- var sharedKey$1 = function (key) {
715
- return keys[key] || (keys[key] = uid(key));
716
- };
717
-
718
- var hiddenKeys$3 = {};
719
-
720
- var NATIVE_WEAK_MAP = nativeWeakMap;
721
- var global$6 = global$o;
722
- var uncurryThis$4 = functionUncurryThis;
723
- var isObject = isObject$5;
724
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
725
- var hasOwn$4 = hasOwnProperty_1;
726
- var shared = sharedStore;
727
- var sharedKey = sharedKey$1;
728
- var hiddenKeys$2 = hiddenKeys$3;
729
-
730
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
731
- var TypeError$1 = global$6.TypeError;
732
- var WeakMap = global$6.WeakMap;
733
- var set, get, has;
734
-
735
- var enforce = function (it) {
736
- return has(it) ? get(it) : set(it, {});
737
- };
738
-
739
- var getterFor = function (TYPE) {
740
- return function (it) {
741
- var state;
742
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
743
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
744
- } return state;
745
- };
746
- };
747
-
748
- if (NATIVE_WEAK_MAP || shared.state) {
749
- var store = shared.state || (shared.state = new WeakMap());
750
- var wmget = uncurryThis$4(store.get);
751
- var wmhas = uncurryThis$4(store.has);
752
- var wmset = uncurryThis$4(store.set);
753
- set = function (it, metadata) {
754
- if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
755
- metadata.facade = it;
756
- wmset(store, it, metadata);
757
- return metadata;
758
- };
759
- get = function (it) {
760
- return wmget(store, it) || {};
761
- };
762
- has = function (it) {
763
- return wmhas(store, it);
764
- };
765
- } else {
766
- var STATE = sharedKey('state');
767
- hiddenKeys$2[STATE] = true;
768
- set = function (it, metadata) {
769
- if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
770
- metadata.facade = it;
771
- createNonEnumerableProperty$2(it, STATE, metadata);
772
- return metadata;
773
- };
774
- get = function (it) {
775
- return hasOwn$4(it, STATE) ? it[STATE] : {};
776
- };
777
- has = function (it) {
778
- return hasOwn$4(it, STATE);
779
- };
780
- }
781
-
782
- var internalState = {
783
- set: set,
784
- get: get,
785
- has: has,
786
- enforce: enforce,
787
- getterFor: getterFor
788
- };
789
-
790
- var DESCRIPTORS = descriptors;
791
- var hasOwn$3 = hasOwnProperty_1;
792
-
793
- var FunctionPrototype = Function.prototype;
794
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
795
- var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
796
-
797
- var EXISTS = hasOwn$3(FunctionPrototype, 'name');
798
- // additional protection from minified / mangled / dropped function names
799
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
800
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
801
-
802
- var functionName = {
803
- EXISTS: EXISTS,
804
- PROPER: PROPER,
805
- CONFIGURABLE: CONFIGURABLE
806
- };
807
-
808
- var global$5 = global$o;
809
- var isCallable$2 = isCallable$a;
810
- var hasOwn$2 = hasOwnProperty_1;
811
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
812
- var setGlobal$1 = setGlobal$3;
813
- var inspectSource = inspectSource$2;
814
- var InternalStateModule = internalState;
815
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
816
-
817
- var getInternalState = InternalStateModule.get;
818
- var enforceInternalState = InternalStateModule.enforce;
819
- var TEMPLATE = String(String).split('String');
820
-
821
- (redefine$1.exports = function (O, key, value, options) {
822
- var unsafe = options ? !!options.unsafe : false;
823
- var simple = options ? !!options.enumerable : false;
824
- var noTargetGet = options ? !!options.noTargetGet : false;
825
- var name = options && options.name !== undefined ? options.name : key;
826
- var state;
827
- if (isCallable$2(value)) {
828
- if (String(name).slice(0, 7) === 'Symbol(') {
829
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
830
- }
831
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
832
- createNonEnumerableProperty$1(value, 'name', name);
833
- }
834
- state = enforceInternalState(value);
835
- if (!state.source) {
836
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
837
- }
838
- }
839
- if (O === global$5) {
840
- if (simple) O[key] = value;
841
- else setGlobal$1(key, value);
842
- return;
843
- } else if (!unsafe) {
844
- delete O[key];
845
- } else if (!noTargetGet && O[key]) {
846
- simple = true;
847
- }
848
- if (simple) O[key] = value;
849
- else createNonEnumerableProperty$1(O, key, value);
850
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
851
- })(Function.prototype, 'toString', function toString() {
852
- return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
853
- });
854
-
855
- var objectGetOwnPropertyNames = {};
856
-
857
- var ceil = Math.ceil;
858
- var floor = Math.floor;
859
-
860
- // `ToIntegerOrInfinity` abstract operation
861
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
862
- var toIntegerOrInfinity$2 = function (argument) {
863
- var number = +argument;
864
- // eslint-disable-next-line no-self-compare -- safe
865
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
866
- };
867
-
868
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
869
-
870
- var max = Math.max;
871
- var min$1 = Math.min;
872
-
873
- // Helper for a popular repeating case of the spec:
874
- // Let integer be ? ToInteger(index).
875
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
876
- var toAbsoluteIndex$1 = function (index, length) {
877
- var integer = toIntegerOrInfinity$1(index);
878
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
879
- };
880
-
881
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
882
-
883
- var min = Math.min;
884
-
885
- // `ToLength` abstract operation
886
- // https://tc39.es/ecma262/#sec-tolength
887
- var toLength$1 = function (argument) {
888
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
889
- };
890
-
891
- var toLength = toLength$1;
892
-
893
- // `LengthOfArrayLike` abstract operation
894
- // https://tc39.es/ecma262/#sec-lengthofarraylike
895
- var lengthOfArrayLike$1 = function (obj) {
896
- return toLength(obj.length);
897
- };
898
-
899
- var toIndexedObject$1 = toIndexedObject$3;
900
- var toAbsoluteIndex = toAbsoluteIndex$1;
901
- var lengthOfArrayLike = lengthOfArrayLike$1;
902
-
903
- // `Array.prototype.{ indexOf, includes }` methods implementation
904
- var createMethod$1 = function (IS_INCLUDES) {
905
- return function ($this, el, fromIndex) {
906
- var O = toIndexedObject$1($this);
907
- var length = lengthOfArrayLike(O);
908
- var index = toAbsoluteIndex(fromIndex, length);
909
- var value;
910
- // Array#includes uses SameValueZero equality algorithm
911
- // eslint-disable-next-line no-self-compare -- NaN check
912
- if (IS_INCLUDES && el != el) while (length > index) {
913
- value = O[index++];
914
- // eslint-disable-next-line no-self-compare -- NaN check
915
- if (value != value) return true;
916
- // Array#indexOf ignores holes, Array#includes - not
917
- } else for (;length > index; index++) {
918
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
919
- } return !IS_INCLUDES && -1;
920
- };
921
- };
922
-
923
- var arrayIncludes = {
924
- // `Array.prototype.includes` method
925
- // https://tc39.es/ecma262/#sec-array.prototype.includes
926
- includes: createMethod$1(true),
927
- // `Array.prototype.indexOf` method
928
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
929
- indexOf: createMethod$1(false)
930
- };
931
-
932
- var uncurryThis$3 = functionUncurryThis;
933
- var hasOwn$1 = hasOwnProperty_1;
934
- var toIndexedObject = toIndexedObject$3;
935
- var indexOf = arrayIncludes.indexOf;
936
- var hiddenKeys$1 = hiddenKeys$3;
937
-
938
- var push = uncurryThis$3([].push);
939
-
940
- var objectKeysInternal = function (object, names) {
941
- var O = toIndexedObject(object);
942
- var i = 0;
943
- var result = [];
944
- var key;
945
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
946
- // Don't enum bug & hidden keys
947
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
948
- ~indexOf(result, key) || push(result, key);
949
- }
950
- return result;
951
- };
952
-
953
- // IE8- don't enum bug keys
954
- var enumBugKeys$1 = [
955
- 'constructor',
956
- 'hasOwnProperty',
957
- 'isPrototypeOf',
958
- 'propertyIsEnumerable',
959
- 'toLocaleString',
960
- 'toString',
961
- 'valueOf'
962
- ];
963
-
964
- var internalObjectKeys = objectKeysInternal;
965
- var enumBugKeys = enumBugKeys$1;
966
-
967
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
968
-
969
- // `Object.getOwnPropertyNames` method
970
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
971
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
972
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
973
- return internalObjectKeys(O, hiddenKeys);
974
- };
975
-
976
- var objectGetOwnPropertySymbols = {};
977
-
978
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
979
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
980
-
981
- var getBuiltIn = getBuiltIn$3;
982
- var uncurryThis$2 = functionUncurryThis;
983
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
984
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
985
- var anObject = anObject$2;
986
-
987
- var concat = uncurryThis$2([].concat);
988
-
989
- // all object keys, includes non-enumerable and symbols
990
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
991
- var keys = getOwnPropertyNamesModule.f(anObject(it));
992
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
993
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
994
- };
995
-
996
- var hasOwn = hasOwnProperty_1;
997
- var ownKeys = ownKeys$1;
998
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
999
- var definePropertyModule = objectDefineProperty;
1000
-
1001
- var copyConstructorProperties$1 = function (target, source) {
1002
- var keys = ownKeys(source);
1003
- var defineProperty = definePropertyModule.f;
1004
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1005
- for (var i = 0; i < keys.length; i++) {
1006
- var key = keys[i];
1007
- if (!hasOwn(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1008
- }
1009
- };
1010
-
1011
- var fails$1 = fails$6;
1012
- var isCallable$1 = isCallable$a;
1013
-
1014
- var replacement = /#|\.prototype\./;
1015
-
1016
- var isForced$1 = function (feature, detection) {
1017
- var value = data[normalize(feature)];
1018
- return value == POLYFILL ? true
1019
- : value == NATIVE ? false
1020
- : isCallable$1(detection) ? fails$1(detection)
1021
- : !!detection;
1022
- };
1023
-
1024
- var normalize = isForced$1.normalize = function (string) {
1025
- return String(string).replace(replacement, '.').toLowerCase();
1026
- };
1027
-
1028
- var data = isForced$1.data = {};
1029
- var NATIVE = isForced$1.NATIVE = 'N';
1030
- var POLYFILL = isForced$1.POLYFILL = 'P';
1031
-
1032
- var isForced_1 = isForced$1;
1033
-
1034
- var global$4 = global$o;
1035
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1036
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1037
- var redefine = redefine$1.exports;
1038
- var setGlobal = setGlobal$3;
1039
- var copyConstructorProperties = copyConstructorProperties$1;
1040
- var isForced = isForced_1;
1041
-
1042
- /*
1043
- options.target - name of the target object
1044
- options.global - target is the global object
1045
- options.stat - export as static methods of target
1046
- options.proto - export as prototype methods of target
1047
- options.real - real prototype method for the `pure` version
1048
- options.forced - export even if the native feature is available
1049
- options.bind - bind methods to the target, required for the `pure` version
1050
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1051
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1052
- options.sham - add a flag to not completely full polyfills
1053
- options.enumerable - export as enumerable property
1054
- options.noTargetGet - prevent calling a getter on target
1055
- options.name - the .name of the function if it does not match the key
1056
- */
1057
- var _export = function (options, source) {
1058
- var TARGET = options.target;
1059
- var GLOBAL = options.global;
1060
- var STATIC = options.stat;
1061
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1062
- if (GLOBAL) {
1063
- target = global$4;
1064
- } else if (STATIC) {
1065
- target = global$4[TARGET] || setGlobal(TARGET, {});
1066
- } else {
1067
- target = (global$4[TARGET] || {}).prototype;
1068
- }
1069
- if (target) for (key in source) {
1070
- sourceProperty = source[key];
1071
- if (options.noTargetGet) {
1072
- descriptor = getOwnPropertyDescriptor(target, key);
1073
- targetProperty = descriptor && descriptor.value;
1074
- } else targetProperty = target[key];
1075
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1076
- // contained in target
1077
- if (!FORCED && targetProperty !== undefined) {
1078
- if (typeof sourceProperty == typeof targetProperty) continue;
1079
- copyConstructorProperties(sourceProperty, targetProperty);
1080
- }
1081
- // add a flag to not completely full polyfills
1082
- if (options.sham || (targetProperty && targetProperty.sham)) {
1083
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1084
- }
1085
- // extend global
1086
- redefine(target, key, sourceProperty, options);
1087
- }
1088
- };
1089
-
1090
- var wellKnownSymbol$1 = wellKnownSymbol$3;
1091
-
1092
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
1093
- var test = {};
1094
-
1095
- test[TO_STRING_TAG$1] = 'z';
1096
-
1097
- var toStringTagSupport = String(test) === '[object z]';
1098
-
1099
- var global$3 = global$o;
1100
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1101
- var isCallable = isCallable$a;
1102
- var classofRaw = classofRaw$1;
1103
- var wellKnownSymbol = wellKnownSymbol$3;
1104
-
1105
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1106
- var Object$1 = global$3.Object;
1107
-
1108
- // ES3 wrong here
1109
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1110
-
1111
- // fallback for IE11 Script Access Denied error
1112
- var tryGet = function (it, key) {
1113
- try {
1114
- return it[key];
1115
- } catch (error) { /* empty */ }
1116
- };
1117
-
1118
- // getting tag from ES6+ `Object.prototype.toString`
1119
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1120
- var O, tag, result;
1121
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1122
- // @@toStringTag case
1123
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1124
- // builtinTag case
1125
- : CORRECT_ARGUMENTS ? classofRaw(O)
1126
- // ES3 arguments fallback
1127
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1128
- };
1129
-
1130
- var global$2 = global$o;
1131
- var classof = classof$1;
1132
-
1133
- var String$1 = global$2.String;
1134
-
1135
- var toString$2 = function (argument) {
1136
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1137
- return String$1(argument);
1138
- };
1139
-
1140
- // a string of all valid unicode whitespaces
1141
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1142
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1143
-
1144
- var uncurryThis$1 = functionUncurryThis;
1145
- var requireObjectCoercible = requireObjectCoercible$3;
1146
- var toString$1 = toString$2;
1147
- var whitespaces$1 = whitespaces$2;
1148
-
1149
- var replace = uncurryThis$1(''.replace);
1150
- var whitespace = '[' + whitespaces$1 + ']';
1151
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
1152
- var rtrim = RegExp(whitespace + whitespace + '*$');
1153
-
1154
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1155
- var createMethod = function (TYPE) {
1156
- return function ($this) {
1157
- var string = toString$1(requireObjectCoercible($this));
1158
- if (TYPE & 1) string = replace(string, ltrim, '');
1159
- if (TYPE & 2) string = replace(string, rtrim, '');
1160
- return string;
1161
- };
1162
- };
1163
-
1164
- var stringTrim = {
1165
- // `String.prototype.{ trimLeft, trimStart }` methods
1166
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1167
- start: createMethod(1),
1168
- // `String.prototype.{ trimRight, trimEnd }` methods
1169
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
1170
- end: createMethod(2),
1171
- // `String.prototype.trim` method
1172
- // https://tc39.es/ecma262/#sec-string.prototype.trim
1173
- trim: createMethod(3)
1174
- };
1175
-
1176
- var global$1 = global$o;
1177
- var fails = fails$6;
1178
- var uncurryThis = functionUncurryThis;
1179
- var toString = toString$2;
1180
- var trim = stringTrim.trim;
1181
- var whitespaces = whitespaces$2;
1182
-
1183
- var $parseInt$1 = global$1.parseInt;
1184
- var Symbol$1 = global$1.Symbol;
1185
- var ITERATOR = Symbol$1 && Symbol$1.iterator;
1186
- var hex = /^[+-]?0x/i;
1187
- var exec = uncurryThis(hex.exec);
1188
- var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
1189
- // MS Edge 18- broken with boxed symbols
1190
- || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
1191
-
1192
- // `parseInt` method
1193
- // https://tc39.es/ecma262/#sec-parseint-string-radix
1194
- var numberParseInt = FORCED ? function parseInt(string, radix) {
1195
- var S = trim(toString(string));
1196
- return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
1197
- } : $parseInt$1;
1198
-
1199
- var $ = _export;
1200
- var $parseInt = numberParseInt;
1201
-
1202
- // `parseInt` method
1203
- // https://tc39.es/ecma262/#sec-parseint-string-radix
1204
- $({ global: true, forced: parseInt != $parseInt }, {
1205
- parseInt: $parseInt
1206
- });
1207
-
1208
191
  const GERESH = '׳';
1209
192
  const GERSHAYIM = '״';
1210
193
  /**
@@ -1357,7 +340,7 @@ const alias = {
1357
340
  };
1358
341
  /**
1359
342
  * A locale in Hebcal is used for translations/transliterations of
1360
- * holidays. `@hebcal/core` supports three locales by default
343
+ * holidays. `@hebcal/core` supports four locales by default
1361
344
  * * `en` - default, Sephardic transliterations (e.g. "Shabbat")
1362
345
  * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
1363
346
  * * `he` - Hebrew (e.g. "שַׁבָּת")
@@ -1512,6 +495,26 @@ Locale.addLocale('s', noopLocale);
1512
495
  Locale.addLocale('', noopLocale);
1513
496
  Locale.useLocale('en');
1514
497
 
498
+ /*
499
+ Hebcal - A Jewish Calendar Generator
500
+ Copyright (c) 1994-2020 Danny Sadinoff
501
+ Portions copyright Eyal Schachter and Michael J. Radwin
502
+
503
+ https://github.com/hebcal/hebcal-es6
504
+
505
+ This program is free software; you can redistribute it and/or
506
+ modify it under the terms of the GNU General Public License
507
+ as published by the Free Software Foundation; either version 2
508
+ of the License, or (at your option) any later version.
509
+
510
+ This program is distributed in the hope that it will be useful,
511
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
512
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
513
+ GNU General Public License for more details.
514
+
515
+ You should have received a copy of the GNU General Public License
516
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
517
+ */
1515
518
  const NISAN$2 = 1;
1516
519
  const IYYAR$1 = 2;
1517
520
  const SIVAN$2 = 3;
@@ -1969,20 +972,9 @@ class HDate$1 {
1969
972
  let showYear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1970
973
  const locale0 = locale || Locale.getLocaleName();
1971
974
  const day = this.getDate();
1972
- const monthName = Locale.gettext(this.getMonthName(), locale);
975
+ const monthName = Locale.gettext(this.getMonthName(), locale0);
1973
976
  const nth = Locale.ordinal(day, locale0);
1974
- let dayOf = '';
1975
-
1976
- if (locale0 === 'en' || locale0 === 's' || 'ashkenazi' == locale0.substring(0, 9)) {
1977
- dayOf = ' of';
1978
- } else {
1979
- const ofStr = Locale.lookupTranslation('of', locale0);
1980
-
1981
- if (ofStr) {
1982
- dayOf = ' ' + ofStr;
1983
- }
1984
- }
1985
-
977
+ const dayOf = HDate$1.getDayOfTranslation(locale0);
1986
978
  const dateStr = "".concat(nth).concat(dayOf, " ").concat(monthName);
1987
979
 
1988
980
  if (showYear) {
@@ -1992,6 +984,34 @@ class HDate$1 {
1992
984
  return dateStr;
1993
985
  }
1994
986
  }
987
+ /**
988
+ * @private
989
+ * @param {string} locale
990
+ * @return {string}
991
+ */
992
+
993
+
994
+ static getDayOfTranslation(locale) {
995
+ switch (locale) {
996
+ case 'en':
997
+ case 's':
998
+ case 'a':
999
+ case 'ashkenazi':
1000
+ return ' of';
1001
+ }
1002
+
1003
+ const ofStr = Locale.lookupTranslation('of', locale);
1004
+
1005
+ if (ofStr) {
1006
+ return ' ' + ofStr;
1007
+ }
1008
+
1009
+ if ('ashkenazi' === locale.substring(0, 9)) {
1010
+ return ' of';
1011
+ }
1012
+
1013
+ return '';
1014
+ }
1995
1015
  /**
1996
1016
  * Renders this Hebrew date in Hebrew gematriya, regardless of locale.
1997
1017
  * @example
@@ -2882,9 +1902,22 @@ class HebrewDateEvent extends Event {
2882
1902
 
2883
1903
 
2884
1904
  render(locale) {
2885
- const locale0 = locale || Locale.getLocaleName();
1905
+ const locale1 = locale && locale.toLowerCase();
1906
+ const locale0 = locale1 || Locale.getLocaleName();
2886
1907
  const hd = this.getDate();
2887
- return locale0 === 'he' ? hd.renderGematriya() : hd.render(locale0, true);
1908
+
1909
+ switch (locale0) {
1910
+ case 'h':
1911
+ case 'he':
1912
+ case 'he-x-nonikud':
1913
+ const dd = hd.getDate();
1914
+ const mm = Locale.gettext(hd.getMonthName(), locale0);
1915
+ const yy = hd.getFullYear();
1916
+ return gematriya(dd) + ' ' + mm + ' ' + gematriya(yy);
1917
+
1918
+ default:
1919
+ return hd.render(locale0, true);
1920
+ }
2888
1921
  }
2889
1922
  /**
2890
1923
  * @param {string} [locale] Optional locale name (defaults to active locale).
@@ -2900,20 +1933,25 @@ class HebrewDateEvent extends Event {
2900
1933
 
2901
1934
 
2902
1935
  renderBrief(locale) {
2903
- const locale0 = locale || Locale.getLocaleName();
1936
+ const locale1 = locale && locale.toLowerCase();
1937
+ const locale0 = locale1 || Locale.getLocaleName();
2904
1938
  const hd = this.getDate();
2905
1939
 
2906
1940
  if (hd.getMonth() === months.TISHREI && hd.getDate() === 1) {
2907
1941
  return this.render(locale0);
2908
1942
  }
2909
1943
 
2910
- if (locale !== 'he') {
2911
- return hd.render(locale0, false);
2912
- }
1944
+ switch (locale0) {
1945
+ case 'h':
1946
+ case 'he':
1947
+ case 'he-x-nonikud':
1948
+ const dd = hd.getDate();
1949
+ const mm = Locale.gettext(hd.getMonthName(), locale0);
1950
+ return gematriya(dd) + ' ' + mm;
2913
1951
 
2914
- const dd = hd.getDate();
2915
- const mm = Locale.gettext(hd.getMonthName(), 'he');
2916
- return gematriya(dd) + ' ' + mm;
1952
+ default:
1953
+ return hd.render(locale0, false);
1954
+ }
2917
1955
  }
2918
1956
  /**
2919
1957
  * Helper function to render a Hebrew date
@@ -5654,9 +4692,9 @@ function getHolidaysForYear(year) {
5654
4692
  return h;
5655
4693
  }
5656
4694
 
5657
- var version="3.28.0";
4695
+ var version="3.29.2";
5658
4696
 
5659
- 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"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
4697
+ 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"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
5660
4698
 
5661
4699
  Locale.addLocale('ashkenazi', poAshkenazi);
5662
4700
  Locale.addLocale('a', poAshkenazi);
@@ -5682,6 +4720,26 @@ const poHeNoNikud = {
5682
4720
  };
5683
4721
  Locale.addLocale(localeName, poHeNoNikud);
5684
4722
 
4723
+ /*
4724
+ Hebcal - A Jewish Calendar Generator
4725
+ Copyright (c) 1994-2020 Danny Sadinoff
4726
+ Portions copyright Eyal Schachter and Michael J. Radwin
4727
+
4728
+ https://github.com/hebcal/hebcal-es6
4729
+
4730
+ This program is free software; you can redistribute it and/or
4731
+ modify it under the terms of the GNU General Public License
4732
+ as published by the Free Software Foundation; either version 2
4733
+ of the License, or (at your option) any later version.
4734
+
4735
+ This program is distributed in the hope that it will be useful,
4736
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
4737
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4738
+ GNU General Public License for more details.
4739
+
4740
+ You should have received a copy of the GNU General Public License
4741
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
4742
+ */
5685
4743
  const FRI = 5;
5686
4744
  const SAT = 6;
5687
4745
  const NISAN = months.NISAN; // const IYYAR = months.IYYAR;