@hebcal/rest-api 3.19.5 → 4.0.0
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 +1 -69
- package/dist/bundle.js +14 -102
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +14 -100
- package/dist/index.mjs +14 -76
- package/package.json +4 -4
- package/rest-api.d.ts +3 -16
package/README.md
CHANGED
|
@@ -44,15 +44,9 @@ Converts to lowercase and replaces non-word characters with hyphen ('-')
|
|
|
44
44
|
<dd></dd>
|
|
45
45
|
<dt><a href="#pad4">pad4(number)</a> ⇒ <code>string</code></dt>
|
|
46
46
|
<dd></dd>
|
|
47
|
-
<dt><del><a href="#timeZoneOffsetStr">timeZoneOffsetStr(tzid, date)</a> ⇒ <code>string</code></del></dt>
|
|
48
|
-
<dd><p>Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")</p>
|
|
49
|
-
</dd>
|
|
50
47
|
<dt><a href="#toISOString">toISOString(d)</a> ⇒ <code>string</code></dt>
|
|
51
48
|
<dd><p>Returns just the date portion as YYYY-MM-DD</p>
|
|
52
49
|
</dd>
|
|
53
|
-
<dt><del><a href="#toISOStringWithTimezone">toISOStringWithTimezone(date, timeStr, tzid)</a> ⇒ <code>string</code></del></dt>
|
|
54
|
-
<dd><p>Returns a string like "2018-09-01T12:30:00-05:00"</p>
|
|
55
|
-
</dd>
|
|
56
50
|
<dt><a href="#getEventCategories">getEventCategories(ev)</a> ⇒ <code>Array.<string></code></dt>
|
|
57
51
|
<dd><p>Returns a category and subcategory name</p>
|
|
58
52
|
</dd>
|
|
@@ -86,14 +80,10 @@ Converts to lowercase and replaces non-word characters with hyphen ('-')
|
|
|
86
80
|
<dd></dd>
|
|
87
81
|
<dt><a href="#formatLeyningResult">formatLeyningResult(reading)</a> ⇒ <code>Object</code></dt>
|
|
88
82
|
<dd></dd>
|
|
89
|
-
<dt><a href="#eventsToRss">eventsToRss(events, location, mainUrl, selfUrl, [lang], [evPubDate])</a> ⇒ <code>string</code></dt>
|
|
90
|
-
<dd></dd>
|
|
91
83
|
<dt><a href="#eventsToRss2">eventsToRss2(events, options)</a> ⇒ <code>string</code></dt>
|
|
92
84
|
<dd></dd>
|
|
93
85
|
<dt><a href="#eventToRssItem2">eventToRssItem2(ev, options)</a> ⇒ <code>string</code></dt>
|
|
94
86
|
<dd></dd>
|
|
95
|
-
<dt><a href="#eventToRssItem">eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, [options])</a> ⇒ <code>string</code></dt>
|
|
96
|
-
<dd></dd>
|
|
97
87
|
<dt><a href="#eventToFullCalendar">eventToFullCalendar(ev, tzid, il)</a> ⇒ <code>Object</code></dt>
|
|
98
88
|
<dd><p>Converts a Hebcal event to a FullCalendar.io object</p>
|
|
99
89
|
</dd>
|
|
@@ -151,20 +141,6 @@ makeAnchor('Rosh Chodesh Adar II') // 'rosh-chodesh-adar-ii'
|
|
|
151
141
|
| --- | --- |
|
|
152
142
|
| number | <code>number</code> |
|
|
153
143
|
|
|
154
|
-
<a name="timeZoneOffsetStr"></a>
|
|
155
|
-
|
|
156
|
-
## ~~timeZoneOffsetStr(tzid, date) ⇒ <code>string</code>~~
|
|
157
|
-
***Deprecated***
|
|
158
|
-
|
|
159
|
-
Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
160
|
-
|
|
161
|
-
**Kind**: global function
|
|
162
|
-
|
|
163
|
-
| Param | Type |
|
|
164
|
-
| --- | --- |
|
|
165
|
-
| tzid | <code>string</code> |
|
|
166
|
-
| date | <code>Date</code> |
|
|
167
|
-
|
|
168
144
|
<a name="toISOString"></a>
|
|
169
145
|
|
|
170
146
|
## toISOString(d) ⇒ <code>string</code>
|
|
@@ -176,21 +152,6 @@ Returns just the date portion as YYYY-MM-DD
|
|
|
176
152
|
| --- | --- |
|
|
177
153
|
| d | <code>Date</code> |
|
|
178
154
|
|
|
179
|
-
<a name="toISOStringWithTimezone"></a>
|
|
180
|
-
|
|
181
|
-
## ~~toISOStringWithTimezone(date, timeStr, tzid) ⇒ <code>string</code>~~
|
|
182
|
-
***Deprecated***
|
|
183
|
-
|
|
184
|
-
Returns a string like "2018-09-01T12:30:00-05:00"
|
|
185
|
-
|
|
186
|
-
**Kind**: global function
|
|
187
|
-
|
|
188
|
-
| Param | Type | Description |
|
|
189
|
-
| --- | --- | --- |
|
|
190
|
-
| date | <code>Date</code> | |
|
|
191
|
-
| timeStr | <code>string</code> | must be formatted with only hours and minutes, like "17:12" |
|
|
192
|
-
| tzid | <code>string</code> | like "America/New_York" |
|
|
193
|
-
|
|
194
155
|
<a name="getEventCategories"></a>
|
|
195
156
|
|
|
196
157
|
## getEventCategories(ev) ⇒ <code>Array.<string></code>
|
|
@@ -329,21 +290,7 @@ Converts a Hebcal event to a classic Hebcal.com JSON API object
|
|
|
329
290
|
|
|
330
291
|
| Param | Type |
|
|
331
292
|
| --- | --- |
|
|
332
|
-
| reading | <code>
|
|
333
|
-
|
|
334
|
-
<a name="eventsToRss"></a>
|
|
335
|
-
|
|
336
|
-
## eventsToRss(events, location, mainUrl, selfUrl, [lang], [evPubDate]) ⇒ <code>string</code>
|
|
337
|
-
**Kind**: global function
|
|
338
|
-
|
|
339
|
-
| Param | Type | Default | Description |
|
|
340
|
-
| --- | --- | --- | --- |
|
|
341
|
-
| events | <code>Array.<Event></code> | | |
|
|
342
|
-
| location | <code>Location</code> | | |
|
|
343
|
-
| mainUrl | <code>string</code> | | |
|
|
344
|
-
| selfUrl | <code>string</code> | | |
|
|
345
|
-
| [lang] | <code>string</code> | <code>"en-US"</code> | language such as 'he' (default 'en-US') |
|
|
346
|
-
| [evPubDate] | <code>boolean</code> | <code>true</code> | if true, use event time as pubDate (false uses lastBuildDate) |
|
|
293
|
+
| reading | <code>Leyning</code> |
|
|
347
294
|
|
|
348
295
|
<a name="eventsToRss2"></a>
|
|
349
296
|
|
|
@@ -365,21 +312,6 @@ Converts a Hebcal event to a classic Hebcal.com JSON API object
|
|
|
365
312
|
| ev | <code>Event</code> |
|
|
366
313
|
| options | <code>CalOptions</code> |
|
|
367
314
|
|
|
368
|
-
<a name="eventToRssItem"></a>
|
|
369
|
-
|
|
370
|
-
## eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, [options]) ⇒ <code>string</code>
|
|
371
|
-
**Kind**: global function
|
|
372
|
-
|
|
373
|
-
| Param | Type |
|
|
374
|
-
| --- | --- |
|
|
375
|
-
| ev | <code>Event</code> |
|
|
376
|
-
| evPubDate | <code>boolean</code> |
|
|
377
|
-
| lastBuildDate | <code>string</code> |
|
|
378
|
-
| dayFormat | <code>Intl.DateTimeFormat</code> |
|
|
379
|
-
| location | <code>Location</code> |
|
|
380
|
-
| mainUrl | <code>string</code> |
|
|
381
|
-
| [options] | <code>CalOptions</code> |
|
|
382
|
-
|
|
383
315
|
<a name="eventToFullCalendar"></a>
|
|
384
316
|
|
|
385
317
|
## eventToFullCalendar(ev, tzid, il) ⇒ <code>Object</code>
|
package/dist/bundle.js
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
/*! @hebcal/rest-api
|
|
2
|
-
var hebcal__rest_api = (function (exports, core,
|
|
1
|
+
/*! @hebcal/rest-api v4.0.0 */
|
|
2
|
+
var hebcal__rest_api = (function (exports, core, leyning) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n["default"] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var leyn__namespace = /*#__PURE__*/_interopNamespace(leyn);
|
|
24
|
-
|
|
25
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
26
6
|
|
|
27
7
|
var check = function (it) {
|
|
@@ -4072,17 +4052,6 @@ function pad4(number) {
|
|
|
4072
4052
|
|
|
4073
4053
|
return '' + number;
|
|
4074
4054
|
}
|
|
4075
|
-
/**
|
|
4076
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
4077
|
-
* @deprecated
|
|
4078
|
-
* @param {string} tzid
|
|
4079
|
-
* @param {Date} date
|
|
4080
|
-
* @return {string}
|
|
4081
|
-
*/
|
|
4082
|
-
|
|
4083
|
-
function timeZoneOffsetStr(tzid, date) {
|
|
4084
|
-
return core.Zmanim.timeZoneOffset(tzid, date);
|
|
4085
|
-
}
|
|
4086
4055
|
/**
|
|
4087
4056
|
* Returns just the date portion as YYYY-MM-DD
|
|
4088
4057
|
* @param {Date} d
|
|
@@ -4092,20 +4061,6 @@ function timeZoneOffsetStr(tzid, date) {
|
|
|
4092
4061
|
function toISOString(d) {
|
|
4093
4062
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
4094
4063
|
}
|
|
4095
|
-
/**
|
|
4096
|
-
* Returns a string like "2018-09-01T12:30:00-05:00"
|
|
4097
|
-
* @deprecated
|
|
4098
|
-
* @param {Date} date
|
|
4099
|
-
* @param {string} timeStr must be formatted with only hours and minutes, like "17:12"
|
|
4100
|
-
* @param {string} tzid like "America/New_York"
|
|
4101
|
-
* @return {string}
|
|
4102
|
-
*/
|
|
4103
|
-
|
|
4104
|
-
function toISOStringWithTimezone(date, timeStr, tzid) {
|
|
4105
|
-
const str = toISOString(date);
|
|
4106
|
-
if (!timeStr) return str;
|
|
4107
|
-
return str + 'T' + timeStr + ':00' + core.Zmanim.timeZoneOffset(tzid, date);
|
|
4108
|
-
}
|
|
4109
4064
|
/**
|
|
4110
4065
|
* Returns a category and subcategory name
|
|
4111
4066
|
* @param {Event} ev
|
|
@@ -4287,7 +4242,7 @@ function makeTorahMemoText(ev, il) {
|
|
|
4287
4242
|
return '';
|
|
4288
4243
|
}
|
|
4289
4244
|
|
|
4290
|
-
const reading = mask & core.flags.PARSHA_HASHAVUA ?
|
|
4245
|
+
const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
|
|
4291
4246
|
let memo = '';
|
|
4292
4247
|
|
|
4293
4248
|
if (reading && (reading.summary || reading.haftara)) {
|
|
@@ -4544,7 +4499,7 @@ function eventsToClassicApi(events, options) {
|
|
|
4544
4499
|
*/
|
|
4545
4500
|
|
|
4546
4501
|
function eventToClassicApiObject(ev, options) {
|
|
4547
|
-
let leyning = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
4502
|
+
let leyning$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
4548
4503
|
const timed = Boolean(ev.eventTime);
|
|
4549
4504
|
const hd = ev.getDate();
|
|
4550
4505
|
const dt = hd.greg();
|
|
@@ -4591,20 +4546,20 @@ function eventToClassicApiObject(ev, options) {
|
|
|
4591
4546
|
}
|
|
4592
4547
|
|
|
4593
4548
|
if (!candles) {
|
|
4594
|
-
if (leyning) {
|
|
4549
|
+
if (leyning$1) {
|
|
4595
4550
|
const il = options.il;
|
|
4596
4551
|
const isParsha = mask === core.flags.PARSHA_HASHAVUA;
|
|
4597
|
-
const reading = isParsha ?
|
|
4552
|
+
const reading = isParsha ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
|
|
4598
4553
|
|
|
4599
4554
|
if (reading) {
|
|
4600
4555
|
result.leyning = formatLeyningResult(reading);
|
|
4601
4556
|
const hyear = hd.getFullYear();
|
|
4602
4557
|
|
|
4603
4558
|
if (isParsha && !il && hyear >= 5745) {
|
|
4604
|
-
const triReading =
|
|
4559
|
+
const triReading = leyning.getTriennialForParshaHaShavua(ev);
|
|
4605
4560
|
|
|
4606
4561
|
if (triReading) {
|
|
4607
|
-
result.leyning.triennial = formatAliyot({}, triReading);
|
|
4562
|
+
result.leyning.triennial = formatAliyot({}, triReading.aliyot);
|
|
4608
4563
|
}
|
|
4609
4564
|
}
|
|
4610
4565
|
}
|
|
@@ -4671,13 +4626,13 @@ function formatAliyot(result, aliyot) {
|
|
|
4671
4626
|
|
|
4672
4627
|
if (typeof aliyah !== 'undefined') {
|
|
4673
4628
|
const k = num == 'M' ? 'maftir' : num;
|
|
4674
|
-
result[k] =
|
|
4629
|
+
result[k] = leyning.formatAliyahWithBook(aliyah);
|
|
4675
4630
|
}
|
|
4676
4631
|
});
|
|
4677
4632
|
return result;
|
|
4678
4633
|
}
|
|
4679
4634
|
/**
|
|
4680
|
-
* @param {
|
|
4635
|
+
* @param {Leyning} reading
|
|
4681
4636
|
* @return {Object}
|
|
4682
4637
|
*/
|
|
4683
4638
|
|
|
@@ -4751,34 +4706,7 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
|
|
|
4751
4706
|
|
|
4752
4707
|
return [link, guid];
|
|
4753
4708
|
}
|
|
4754
|
-
/**
|
|
4755
|
-
* @param {Event[]} events
|
|
4756
|
-
* @param {Location} location
|
|
4757
|
-
* @param {string} mainUrl
|
|
4758
|
-
* @param {string} selfUrl
|
|
4759
|
-
* @param {string} [lang] language such as 'he' (default 'en-US')
|
|
4760
|
-
* @param {boolean} [evPubDate] if true, use event time as pubDate (false uses lastBuildDate)
|
|
4761
|
-
* @return {string}
|
|
4762
|
-
*/
|
|
4763
4709
|
|
|
4764
|
-
|
|
4765
|
-
function eventsToRss(events, location, mainUrl, selfUrl) {
|
|
4766
|
-
let lang = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'en-US';
|
|
4767
|
-
let evPubDate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
4768
|
-
const cityDescr = location.getName();
|
|
4769
|
-
const options = {
|
|
4770
|
-
location,
|
|
4771
|
-
mainUrl,
|
|
4772
|
-
selfUrl,
|
|
4773
|
-
lang,
|
|
4774
|
-
evPubDate,
|
|
4775
|
-
title: core.Locale.gettext('Shabbat') + " Times for ".concat(cityDescr),
|
|
4776
|
-
description: "Weekly Shabbat candle lighting times for ".concat(cityDescr),
|
|
4777
|
-
utmSource: 'shabbat1c',
|
|
4778
|
-
utmMedium: 'rss'
|
|
4779
|
-
};
|
|
4780
|
-
return eventsToRss2(events, options);
|
|
4781
|
-
}
|
|
4782
4710
|
const localeToLg = {
|
|
4783
4711
|
's': 'en',
|
|
4784
4712
|
'a': 'en',
|
|
@@ -4849,28 +4777,15 @@ function getPubDate(ev, evPubDate, evDate, lastBuildDate) {
|
|
|
4849
4777
|
|
|
4850
4778
|
|
|
4851
4779
|
function eventToRssItem2(ev, options) {
|
|
4852
|
-
return eventToRssItem(ev, options.evPubDate, options.lastBuildDate, options.dayFormat, options.location, options.mainUrl, options);
|
|
4853
|
-
}
|
|
4854
|
-
/**
|
|
4855
|
-
* @param {Event} ev
|
|
4856
|
-
* @param {boolean} evPubDate
|
|
4857
|
-
* @param {string} lastBuildDate
|
|
4858
|
-
* @param {Intl.DateTimeFormat} dayFormat
|
|
4859
|
-
* @param {Location} location
|
|
4860
|
-
* @param {string} mainUrl
|
|
4861
|
-
* @param {CalOptions} [options]
|
|
4862
|
-
* @return {string}
|
|
4863
|
-
*/
|
|
4864
|
-
|
|
4865
|
-
function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, options) {
|
|
4866
4780
|
let subj = ev.render();
|
|
4867
4781
|
const evDate = ev.getDate().greg();
|
|
4868
|
-
const pubDate = getPubDate(ev, evPubDate, evDate, lastBuildDate);
|
|
4782
|
+
const pubDate = getPubDate(ev, options.evPubDate, evDate, options.lastBuildDate);
|
|
4783
|
+
const location = options.location;
|
|
4869
4784
|
const il = location ? location.getIsrael() : false;
|
|
4870
4785
|
const tzid = location ? location.getTzid() : 'UTC';
|
|
4871
4786
|
const utmSource = options && options.utmSource || 'shabbat1c';
|
|
4872
4787
|
const utmMedium = options && options.utmMedium || 'rss';
|
|
4873
|
-
const linkGuid = getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium);
|
|
4788
|
+
const linkGuid = getLinkAndGuid(ev, il, tzid, options.mainUrl, utmSource, utmMedium);
|
|
4874
4789
|
const link = linkGuid[0];
|
|
4875
4790
|
const guid = linkGuid[1];
|
|
4876
4791
|
const categories = getEventCategories(ev);
|
|
@@ -4895,6 +4810,7 @@ function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainU
|
|
|
4895
4810
|
memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
|
|
4896
4811
|
}
|
|
4897
4812
|
|
|
4813
|
+
const dayFormat = options.dayFormat;
|
|
4898
4814
|
const description = memo || dayFormat.format(evDate);
|
|
4899
4815
|
const geoTags = cat0 == 'candles' ? "<geo:lat>".concat(location.getLatitude(), "</geo:lat>\n<geo:long>").concat(location.getLongitude(), "</geo:long>\n") : '';
|
|
4900
4816
|
return "<item>\n<title>".concat(subj, "</title>\n<link>").concat(link, "</link>\n<guid isPermaLink=\"false\">").concat(guid, "</guid>\n<description>").concat(description, "</description>\n<category>").concat(cat0, "</category>\n<pubDate>").concat(pubDate, "</pubDate>\n").concat(geoTags, "</item>\n");
|
|
@@ -4958,11 +4874,9 @@ exports.countryNames = countryNames;
|
|
|
4958
4874
|
exports.eventToClassicApiObject = eventToClassicApiObject;
|
|
4959
4875
|
exports.eventToCsv = eventToCsv;
|
|
4960
4876
|
exports.eventToFullCalendar = eventToFullCalendar;
|
|
4961
|
-
exports.eventToRssItem = eventToRssItem;
|
|
4962
4877
|
exports.eventToRssItem2 = eventToRssItem2;
|
|
4963
4878
|
exports.eventsToClassicApi = eventsToClassicApi;
|
|
4964
4879
|
exports.eventsToCsv = eventsToCsv;
|
|
4965
|
-
exports.eventsToRss = eventsToRss;
|
|
4966
4880
|
exports.eventsToRss2 = eventsToRss2;
|
|
4967
4881
|
exports.getCalendarTitle = getCalendarTitle;
|
|
4968
4882
|
exports.getDownloadFilename = getDownloadFilename;
|
|
@@ -4976,9 +4890,7 @@ exports.pad2 = pad2;
|
|
|
4976
4890
|
exports.pad4 = pad4;
|
|
4977
4891
|
exports.renderTitleWithoutTime = renderTitleWithoutTime;
|
|
4978
4892
|
exports.shouldRenderBrief = shouldRenderBrief;
|
|
4979
|
-
exports.timeZoneOffsetStr = timeZoneOffsetStr;
|
|
4980
4893
|
exports.toISOString = toISOString;
|
|
4981
|
-
exports.toISOStringWithTimezone = toISOStringWithTimezone;
|
|
4982
4894
|
|
|
4983
4895
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4984
4896
|
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api
|
|
2
|
-
var hebcal__rest_api=function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=n(hebcal__leyning),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},h=function(e){try{return!!e()}catch(e){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),f=l,d=Function.prototype.call,g=f?d.bind(d):function(){return d.apply(d,arguments)},m={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);m.f=b?function(e){var t=y(this,e);return!!t&&t.enumerable}:p;var v,S,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=l,R=Function.prototype,T=R.bind,H=R.call,C=A&&T.bind(H,H),P=A?function(e){return e&&C(e)}:function(e){return e&&function(){return H.apply(e,arguments)}},I=P,O=I({}.toString),E=I("".slice),L=function(e){return E(O(e),8,-1)},k=h,M=L,B=Object,D=P("".split),U=k((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?D(e,""):B(e)}:B,F=TypeError,x=function(e){if(null==e)throw F("Can't call method on "+e);return e},j=U,N=x,_=function(e){return j(N(e))},G=function(e){return"function"==typeof e},Y=G,z=function(e){return"object"==typeof e?null!==e:Y(e)},K=s,W=G,J=function(e){return W(e)?e:void 0},q=function(e,t){return arguments.length<2?J(K[e]):K[e]&&K[e][t]},V=P({}.isPrototypeOf),Z=s,$=q("navigator","userAgent")||"",Q=Z.process,X=Z.Deno,ee=Q&&Q.versions||X&&X.version,te=ee&&ee.v8;te&&(S=(v=te.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!S&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(S=+v[1]);var re=S,ne=h,ae=!!Object.getOwnPropertySymbols&&!ne((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41})),oe=ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ie=q,se=G,ce=V,he=Object,ue=oe?function(e){return"symbol"==typeof e}:function(e){var t=ie("Symbol");return se(t)&&ce(t.prototype,he(e))},le=String,fe=function(e){try{return le(e)}catch(e){return"Object"}},de=G,ge=fe,me=TypeError,pe=function(e){if(de(e))return e;throw me(ge(e)+" is not a function")},ye=pe,be=function(e,t){var r=e[t];return null==r?void 0:ye(r)},ve=g,Se=G,we=z,Ae=TypeError,Re={exports:{}},Te=s,He=Object.defineProperty,Ce=function(e,t){try{He(Te,e,{value:t,configurable:!0,writable:!0})}catch(r){Te[e]=t}return t},Pe=Ce,Ie="__core-js_shared__",Oe=s[Ie]||Pe(Ie,{}),Ee=Oe;(Re.exports=function(e,t){return Ee[e]||(Ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Le=x,ke=Object,Me=function(e){return ke(Le(e))},Be=Me,De=P({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return De(Be(e),t)},Fe=P,xe=0,je=Math.random(),Ne=Fe(1..toString),_e=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ne(++xe+je,36)},Ge=s,Ye=Re.exports,ze=Ue,Ke=_e,We=ae,Je=oe,qe=Ye("wks"),Ve=Ge.Symbol,Ze=Ve&&Ve.for,$e=Je?Ve:Ve&&Ve.withoutSetter||Ke,Qe=function(e){if(!ze(qe,e)||!We&&"string"!=typeof qe[e]){var t="Symbol."+e;We&&ze(Ve,e)?qe[e]=Ve[e]:qe[e]=Je&&Ze?Ze(t):$e(t)}return qe[e]},Xe=g,et=z,tt=ue,rt=be,nt=function(e,t){var r,n;if("string"===t&&Se(r=e.toString)&&!we(n=ve(r,e)))return n;if(Se(r=e.valueOf)&&!we(n=ve(r,e)))return n;if("string"!==t&&Se(r=e.toString)&&!we(n=ve(r,e)))return n;throw Ae("Can't convert object to primitive value")},at=TypeError,ot=Qe("toPrimitive"),it=function(e,t){if(!et(e)||tt(e))return e;var r,n=rt(e,ot);if(n){if(void 0===t&&(t="default"),r=Xe(n,e,t),!et(r)||tt(r))return r;throw at("Can't convert object to primitive value")}return void 0===t&&(t="number"),nt(e,t)},st=ue,ct=function(e){var t=it(e,"string");return st(t)?t:t+""},ht=z,ut=s.document,lt=ht(ut)&&ht(ut.createElement),ft=function(e){return lt?ut.createElement(e):{}},dt=ft,gt=!u&&!h((function(){return 7!=Object.defineProperty(dt("div"),"a",{get:function(){return 7}}).a})),mt=u,pt=g,yt=m,bt=w,vt=_,St=ct,wt=Ue,At=gt,Rt=Object.getOwnPropertyDescriptor;c.f=mt?Rt:function(e,t){if(e=vt(e),t=St(t),At)try{return Rt(e,t)}catch(e){}if(wt(e,t))return bt(!pt(yt.f,e,t),e[t])};var Tt={},Ht=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=z,Pt=String,It=TypeError,Ot=function(e){if(Ct(e))return e;throw It(Pt(e)+" is not an object")},Et=u,Lt=gt,kt=Ht,Mt=Ot,Bt=ct,Dt=TypeError,Ut=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,xt="enumerable",jt="configurable",Nt="writable";Tt.f=Et?kt?function(e,t,r){if(Mt(e),t=Bt(t),Mt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Nt in r&&!r.writable){var n=Ft(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:jt in r?r.configurable:n.configurable,enumerable:xt in r?r.enumerable:n.enumerable,writable:!1})}return Ut(e,t,r)}:Ut:function(e,t,r){if(Mt(e),t=Bt(t),Mt(r),Lt)try{return Ut(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Dt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var _t=Tt,Gt=w,Yt=u?function(e,t,r){return _t.f(e,t,Gt(1,r))}:function(e,t,r){return e[t]=r,e},zt={exports:{}},Kt=u,Wt=Ue,Jt=Function.prototype,qt=Kt&&Object.getOwnPropertyDescriptor,Vt=Wt(Jt,"name"),Zt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!Kt||Kt&&qt(Jt,"name").configurable)},$t=G,Qt=Oe,Xt=P(Function.toString);$t(Qt.inspectSource)||(Qt.inspectSource=function(e){return Xt(e)});var er,tr,rr,nr=Qt.inspectSource,ar=G,or=nr,ir=s.WeakMap,sr=ar(ir)&&/native code/.test(or(ir)),cr=Re.exports,hr=_e,ur=cr("keys"),lr=function(e){return ur[e]||(ur[e]=hr(e))},fr={},dr=sr,gr=s,mr=P,pr=z,yr=Yt,br=Ue,vr=Oe,Sr=lr,wr=fr,Ar="Object already initialized",Rr=gr.TypeError,Tr=gr.WeakMap;if(dr||vr.state){var Hr=vr.state||(vr.state=new Tr),Cr=mr(Hr.get),Pr=mr(Hr.has),Ir=mr(Hr.set);er=function(e,t){if(Pr(Hr,e))throw new Rr(Ar);return t.facade=e,Ir(Hr,e,t),t},tr=function(e){return Cr(Hr,e)||{}},rr=function(e){return Pr(Hr,e)}}else{var Or=Sr("state");wr[Or]=!0,er=function(e,t){if(br(e,Or))throw new Rr(Ar);return t.facade=e,yr(e,Or,t),t},tr=function(e){return br(e,Or)?e[Or]:{}},rr=function(e){return br(e,Or)}}var Er={set:er,get:tr,has:rr,enforce:function(e){return rr(e)?tr(e):er(e,{})},getterFor:function(e){return function(t){var r;if(!pr(t)||(r=tr(t)).type!==e)throw Rr("Incompatible receiver, "+e+" required");return r}}},Lr=h,kr=G,Mr=Ue,Br=u,Dr=Zt.CONFIGURABLE,Ur=nr,Fr=Er.enforce,xr=Er.get,jr=Object.defineProperty,Nr=Br&&!Lr((function(){return 8!==jr((function(){}),"length",{value:8}).length})),_r=String(String).split("String"),Gr=zt.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Mr(e,"name")||Dr&&e.name!==t)&&(Br?jr(e,"name",{value:t,configurable:!0}):e.name=t),Nr&&r&&Mr(r,"arity")&&e.length!==r.arity&&jr(e,"length",{value:r.arity});try{r&&Mr(r,"constructor")&&r.constructor?Br&&jr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Fr(e);return Mr(n,"source")||(n.source=_r.join("string"==typeof t?t:"")),e};Function.prototype.toString=Gr((function(){return kr(this)&&xr(this).source||Ur(this)}),"toString");var Yr=G,zr=Tt,Kr=zt.exports,Wr=Ce,Jr=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(Yr(r)&&Kr(r,o,n),n.global)a?e[t]=r:Wr(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:zr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},qr={},Vr=Math.ceil,Zr=Math.floor,$r=Math.trunc||function(e){var t=+e;return(t>0?Zr:Vr)(t)},Qr=function(e){var t=+e;return t!=t||0===t?0:$r(t)},Xr=Qr,en=Math.max,tn=Math.min,rn=function(e,t){var r=Xr(e);return r<0?en(r+t,0):tn(r,t)},nn=Qr,an=Math.min,on=function(e){return e>0?an(nn(e),9007199254740991):0},sn=on,cn=function(e){return sn(e.length)},hn=_,un=rn,ln=cn,fn=function(e){return function(t,r,n){var a,o=hn(t),i=ln(o),s=un(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},dn={includes:fn(!0),indexOf:fn(!1)},gn=Ue,mn=_,pn=dn.indexOf,yn=fr,bn=P([].push),vn=function(e,t){var r,n=mn(e),a=0,o=[];for(r in n)!gn(yn,r)&&gn(n,r)&&bn(o,r);for(;t.length>a;)gn(n,r=t[a++])&&(~pn(o,r)||bn(o,r));return o},Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wn=vn,An=Sn.concat("length","prototype");qr.f=Object.getOwnPropertyNames||function(e){return wn(e,An)};var Rn={};Rn.f=Object.getOwnPropertySymbols;var Tn=q,Hn=qr,Cn=Rn,Pn=Ot,In=P([].concat),On=Tn("Reflect","ownKeys")||function(e){var t=Hn.f(Pn(e)),r=Cn.f;return r?In(t,r(e)):t},En=Ue,Ln=On,kn=c,Mn=Tt,Bn=h,Dn=G,Un=/#|\.prototype\./,Fn=function(e,t){var r=jn[xn(e)];return r==_n||r!=Nn&&(Dn(t)?Bn(t):!!t)},xn=Fn.normalize=function(e){return String(e).replace(Un,".").toLowerCase()},jn=Fn.data={},Nn=Fn.NATIVE="N",_n=Fn.POLYFILL="P",Gn=Fn,Yn=s,zn=c.f,Kn=Yt,Wn=Jr,Jn=Ce,qn=function(e,t,r){for(var n=Ln(t),a=Mn.f,o=kn.f,i=0;i<n.length;i++){var s=n[i];En(e,s)||r&&En(r,s)||a(e,s,o(t,s))}},Vn=Gn,Zn=function(e,t){var r,n,a,o,i,s=e.target,c=e.global,h=e.stat;if(r=c?Yn:h?Yn[s]||Jn(s,{}):(Yn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=zn(r,n))&&i.value:r[n],!Vn(c?n:s+(h?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;qn(o,a)}(e.sham||a&&a.sham)&&Kn(o,"sham",!0),Wn(r,n,o,e)}},$n={};$n[Qe("toStringTag")]="z";var Qn="[object z]"===String($n),Xn=G,ea=L,ta=Qe("toStringTag"),ra=Object,na="Arguments"==ea(function(){return arguments}()),aa=Qn?ea:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ra(e),ta))?r:na?ea(t):"Object"==(n=ea(t))&&Xn(t.callee)?"Arguments":n},oa=aa,ia=String,sa=function(e){if("Symbol"===oa(e))throw TypeError("Cannot convert a Symbol value to a string");return ia(e)},ca=Ot,ha=function(){var e=ca(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ua=h,la=s.RegExp,fa=ua((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),da=fa||ua((function(){return!la("a","y").sticky})),ga={BROKEN_CARET:fa||ua((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:da,UNSUPPORTED_Y:fa},ma={},pa=vn,ya=Sn,ba=Object.keys||function(e){return pa(e,ya)},va=u,Sa=Ht,wa=Tt,Aa=Ot,Ra=_,Ta=ba;ma.f=va&&!Sa?Object.defineProperties:function(e,t){Aa(e);for(var r,n=Ra(t),a=Ta(t),o=a.length,i=0;o>i;)wa.f(e,r=a[i++],n[r]);return e};var Ha,Ca=q("document","documentElement"),Pa=Ot,Ia=ma,Oa=Sn,Ea=fr,La=Ca,ka=ft,Ma=lr("IE_PROTO"),Ba=function(){},Da=function(e){return"<script>"+e+"</"+"script>"},Ua=function(e){e.write(Da("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fa=function(){try{Ha=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fa="undefined"!=typeof document?document.domain&&Ha?Ua(Ha):((t=ka("iframe")).style.display="none",La.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Da("document.F=Object")),e.close(),e.F):Ua(Ha);for(var r=Oa.length;r--;)delete Fa.prototype[Oa[r]];return Fa()};Ea[Ma]=!0;var xa,ja,Na=Object.create||function(e,t){var r;return null!==e?(Ba.prototype=Pa(e),r=new Ba,Ba.prototype=null,r[Ma]=e):r=Fa(),void 0===t?r:Ia.f(r,t)},_a=h,Ga=s.RegExp,Ya=_a((function(){var e=Ga(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),za=h,Ka=s.RegExp,Wa=za((function(){var e=Ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ja=g,qa=P,Va=sa,Za=ha,$a=ga,Qa=Re.exports,Xa=Na,eo=Er.get,to=Ya,ro=Wa,no=Qa("native-string-replace",String.prototype.replace),ao=RegExp.prototype.exec,oo=ao,io=qa("".charAt),so=qa("".indexOf),co=qa("".replace),ho=qa("".slice),uo=(ja=/b*/g,Ja(ao,xa=/a/,"a"),Ja(ao,ja,"a"),0!==xa.lastIndex||0!==ja.lastIndex),lo=$a.BROKEN_CARET,fo=void 0!==/()??/.exec("")[1];(uo||fo||lo||to||ro)&&(oo=function(e){var t,r,n,a,o,i,s,c=this,h=eo(c),u=Va(e),l=h.raw;if(l)return l.lastIndex=c.lastIndex,t=Ja(oo,l,u),c.lastIndex=l.lastIndex,t;var f=h.groups,d=lo&&c.sticky,g=Ja(Za,c),m=c.source,p=0,y=u;if(d&&(g=co(g,"y",""),-1===so(g,"g")&&(g+="g"),y=ho(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==io(u,c.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),fo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),uo&&(n=c.lastIndex),a=Ja(ao,d?r:c,y),d?a?(a.input=ho(a.input,p),a[0]=ho(a[0],p),a.index=c.lastIndex,c.lastIndex+=a[0].length):c.lastIndex=0:uo&&a&&(c.lastIndex=c.global?a.index+a[0].length:n),fo&&a&&a.length>1&&Ja(no,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=Xa(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});Zn({target:"RegExp",proto:!0,forced:/./.exec!==oo},{exec:oo});var go=ft("span").classList,mo=go&&go.constructor&&go.constructor.prototype,po=mo===Object.prototype?void 0:mo,yo=Qe,bo=Na,vo=Tt.f,So=yo("unscopables"),wo=Array.prototype;null==wo[So]&&vo(wo,So,{configurable:!0,value:bo(null)});var Ao,Ro,To,Ho={},Co=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Po=Ue,Io=G,Oo=Me,Eo=Co,Lo=lr("IE_PROTO"),ko=Object,Mo=ko.prototype,Bo=Eo?ko.getPrototypeOf:function(e){var t=Oo(e);if(Po(t,Lo))return t[Lo];var r=t.constructor;return Io(r)&&t instanceof r?r.prototype:t instanceof ko?Mo:null},Do=h,Uo=G,Fo=Bo,xo=Jr,jo=Qe("iterator"),No=!1;[].keys&&("next"in(To=[].keys())?(Ro=Fo(Fo(To)))!==Object.prototype&&(Ao=Ro):No=!0);var _o=null==Ao||Do((function(){var e={};return Ao[jo].call(e)!==e}));_o&&(Ao={}),Uo(Ao[jo])||xo(Ao,jo,(function(){return this}));var Go={IteratorPrototype:Ao,BUGGY_SAFARI_ITERATORS:No},Yo=Tt.f,zo=Ue,Ko=Qe("toStringTag"),Wo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!zo(e,Ko)&&Yo(e,Ko,{configurable:!0,value:t})},Jo=Go.IteratorPrototype,qo=Na,Vo=w,Zo=Wo,$o=Ho,Qo=function(){return this},Xo=function(e,t,r,n){var a=t+" Iterator";return e.prototype=qo(Jo,{next:Vo(+!n,r)}),Zo(e,a,!1),$o[a]=Qo,e},ei=G,ti=String,ri=TypeError,ni=P,ai=Ot,oi=function(e){if("object"==typeof e||ei(e))return e;throw ri("Can't set "+ti(e)+" as a prototype")},ii=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ni(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ai(r),oi(n),t?e(r,n):r.__proto__=n,r}}():void 0),si=Zn,ci=g,hi=G,ui=Xo,li=Bo,fi=ii,di=Wo,gi=Yt,mi=Jr,pi=Ho,yi=Zt.PROPER,bi=Zt.CONFIGURABLE,vi=Go.IteratorPrototype,Si=Go.BUGGY_SAFARI_ITERATORS,wi=Qe("iterator"),Ai="keys",Ri="values",Ti="entries",Hi=function(){return this},Ci=function(e,t,r,n,a,o,i){ui(r,t,n);var s,c,h,u=function(e){if(e===a&&m)return m;if(!Si&&e in d)return d[e];switch(e){case Ai:case Ri:case Ti:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,d=e.prototype,g=d[wi]||d["@@iterator"]||a&&d[a],m=!Si&&g||u(a),p="Array"==t&&d.entries||g;if(p&&(s=li(p.call(new e)))!==Object.prototype&&s.next&&(li(s)!==vi&&(fi?fi(s,vi):hi(s[wi])||mi(s,wi,Hi)),di(s,l,!0)),yi&&a==Ri&&g&&g.name!==Ri&&(bi?gi(d,"name",Ri):(f=!0,m=function(){return ci(g,this)})),a)if(c={values:u(Ri),keys:o?m:u(Ai),entries:u(Ti)},i)for(h in c)(Si||f||!(h in d))&&mi(d,h,c[h]);else si({target:t,proto:!0,forced:Si||f},c);return d[wi]!==m&&mi(d,wi,m,{name:a}),pi[t]=m,c},Pi=_,Ii=function(e){wo[So][e]=!0},Oi=Ho,Ei=Er,Li=Tt.f,ki=Ci,Mi=u,Bi="Array Iterator",Di=Ei.set,Ui=Ei.getterFor(Bi),Fi=ki(Array,"Array",(function(e,t){Di(this,{type:Bi,target:Pi(e),index:0,kind:t})}),(function(){var e=Ui(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),xi=Oi.Arguments=Oi.Array;if(Ii("keys"),Ii("values"),Ii("entries"),Mi&&"values"!==xi.name)try{Li(xi,"name",{value:"values"})}catch(e){}var ji=s,Ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_i=po,Gi=Fi,Yi=Yt,zi=Qe,Ki=zi("iterator"),Wi=zi("toStringTag"),Ji=Gi.values,qi=function(e,t){if(e){if(e[Ki]!==Ji)try{Yi(e,Ki,Ji)}catch(t){e[Ki]=Ji}if(e[Wi]||Yi(e,Wi,t),Ni[t])for(var r in Gi)if(e[r]!==Gi[r])try{Yi(e,r,Gi[r])}catch(t){e[r]=Gi[r]}}};for(var Vi in Ni)qi(ji[Vi]&&ji[Vi].prototype,Vi);qi(_i,"DOMTokenList");var Zi=P,$i=Qr,Qi=sa,Xi=x,es=Zi("".charAt),ts=Zi("".charCodeAt),rs=Zi("".slice),ns=function(e){return function(t,r){var n,a,o=Qi(Xi(t)),i=$i(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=ts(o,i))<55296||n>56319||i+1===s||(a=ts(o,i+1))<56320||a>57343?e?es(o,i):n:e?rs(o,i,i+2):a-56320+(n-55296<<10)+65536}},as={codeAt:ns(!1),charAt:ns(!0)},os=as.charAt,is=sa,ss=Er,cs=Ci,hs="String Iterator",us=ss.set,ls=ss.getterFor(hs);cs(String,"String",(function(e){us(this,{type:hs,string:is(e),index:0})}),(function(){var e,t=ls(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=os(r,n),t.index+=e.length,{value:e,done:!1})}));var fs=h,ds=Qe("iterator"),gs=!fs((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ds]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),ms=pe,ps=l,ys=P(P.bind),bs=function(e,t){return ms(e),void 0===t?e:ps?ys(e,t):function(){return e.apply(t,arguments)}},vs=zt.exports,Ss=Tt,ws=V,As=TypeError,Rs=function(e,t){if(ws(t,e))return e;throw As("Incorrect invocation")},Ts=u,Hs=P,Cs=g,Ps=h,Is=ba,Os=Rn,Es=m,Ls=Me,ks=U,Ms=Object.assign,Bs=Object.defineProperty,Ds=Hs([].concat),Us=!Ms||Ps((function(){if(Ts&&1!==Ms({b:1},Ms(Bs({},"a",{enumerable:!0,get:function(){Bs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ms({},e)[r]||Is(Ms({},t)).join("")!=n}))?function(e,t){for(var r=Ls(e),n=arguments.length,a=1,o=Os.f,i=Es.f;n>a;)for(var s,c=ks(arguments[a++]),h=o?Ds(Is(c),o(c)):Is(c),u=h.length,l=0;u>l;)s=h[l++],Ts&&!Cs(i,c,s)||(r[s]=c[s]);return r}:Ms,Fs=g,xs=Ot,js=be,Ns=Ot,_s=function(e,t,r){var n,a;xs(e);try{if(!(n=js(e,"return"))){if("throw"===t)throw r;return r}n=Fs(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return xs(n),r},Gs=Ho,Ys=Qe("iterator"),zs=Array.prototype,Ks=P,Ws=h,Js=G,qs=aa,Vs=nr,Zs=function(){},$s=[],Qs=q("Reflect","construct"),Xs=/^\s*(?:class|function)\b/,ec=Ks(Xs.exec),tc=!Xs.exec(Zs),rc=function(e){if(!Js(e))return!1;try{return Qs(Zs,$s,e),!0}catch(e){return!1}},nc=function(e){if(!Js(e))return!1;switch(qs(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tc||!!ec(Xs,Vs(e))}catch(e){return!0}};nc.sham=!0;var ac=!Qs||Ws((function(){var e;return rc(rc.call)||!rc(Object)||!rc((function(){e=!0}))||e}))?nc:rc,oc=ct,ic=Tt,sc=w,cc=function(e,t,r){var n=oc(t);n in e?ic.f(e,n,sc(0,r)):e[n]=r},hc=aa,uc=be,lc=Ho,fc=Qe("iterator"),dc=function(e){if(null!=e)return uc(e,fc)||uc(e,"@@iterator")||lc[hc(e)]},gc=g,mc=pe,pc=Ot,yc=fe,bc=dc,vc=TypeError,Sc=function(e,t){var r=arguments.length<2?bc(e):t;if(mc(r))return pc(gc(r,e));throw vc(yc(e)+" is not iterable")},wc=bs,Ac=g,Rc=Me,Tc=function(e,t,r,n){try{return n?t(Ns(r)[0],r[1]):t(r)}catch(t){_s(e,"throw",t)}},Hc=function(e){return void 0!==e&&(Gs.Array===e||zs[Ys]===e)},Cc=ac,Pc=cn,Ic=cc,Oc=Sc,Ec=dc,Lc=Array,kc=rn,Mc=cn,Bc=cc,Dc=Array,Uc=Math.max,Fc=function(e,t,r){for(var n=Mc(e),a=kc(t,n),o=kc(void 0===r?n:r,n),i=Dc(Uc(o-a,0)),s=0;a<o;a++,s++)Bc(i,s,e[a]);return i.length=s,i},xc=P,jc=2147483647,Nc=/[^\0-\u007E]/,_c=/[.\u3002\uFF0E\uFF61]/g,Gc="Overflow: input needs wider integers to process",Yc=RangeError,zc=xc(_c.exec),Kc=Math.floor,Wc=String.fromCharCode,Jc=xc("".charCodeAt),qc=xc([].join),Vc=xc([].push),Zc=xc("".replace),$c=xc("".split),Qc=xc("".toLowerCase),Xc=function(e){return e+22+75*(e<26)},eh=function(e,t,r){var n=0;for(e=r?Kc(e/700):e>>1,e+=Kc(e/t);e>455;)e=Kc(e/35),n+=36;return Kc(n+36*e/(e+38))},th=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=Jc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=Jc(e,r++);56320==(64512&o)?Vc(t,((1023&a)<<10)+(1023&o)+65536):(Vc(t,a),r--)}else Vc(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&Vc(t,Wc(n));var c=t.length,h=c;for(c&&Vc(t,"-");h<a;){var u=jc;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var l=h+1;if(u-o>Kc((jc-i)/l))throw Yc(Gc);for(i+=(u-o)*l,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++i>jc)throw Yc(Gc);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;Vc(t,Wc(Xc(g+m%p))),f=Kc(m/p),d+=36}Vc(t,Wc(Xc(f))),s=eh(i,l,h==c),i=0,h++}}i++,o++}return qc(t,"")},rh=TypeError,nh=function(e,t){if(e<t)throw rh("Not enough arguments");return e},ah=Jr,oh=Fc,ih=Math.floor,sh=function(e,t){var r=e.length,n=ih(r/2);return r<8?ch(e,t):hh(e,sh(oh(e,0,n),t),sh(oh(e,n),t),t)},ch=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},hh=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},uh=Zn,lh=s,fh=g,dh=P,gh=u,mh=gs,ph=Jr,yh=function(e,t,r){for(var n in t)ah(e,n,t[n],r);return e},bh=Wo,vh=Xo,Sh=Er,wh=Rs,Ah=G,Rh=Ue,Th=bs,Hh=aa,Ch=Ot,Ph=z,Ih=sa,Oh=Na,Eh=w,Lh=Sc,kh=dc,Mh=nh,Bh=sh,Dh=Qe("iterator"),Uh="URLSearchParams",Fh="URLSearchParamsIterator",xh=Sh.set,jh=Sh.getterFor(Uh),Nh=Sh.getterFor(Fh),_h=Object.getOwnPropertyDescriptor,Gh=function(e){if(!gh)return lh[e];var t=_h(lh,e);return t&&t.value},Yh=Gh("fetch"),zh=Gh("Request"),Kh=Gh("Headers"),Wh=zh&&zh.prototype,Jh=Kh&&Kh.prototype,qh=lh.RegExp,Vh=lh.TypeError,Zh=lh.decodeURIComponent,$h=lh.encodeURIComponent,Qh=dh("".charAt),Xh=dh([].join),eu=dh([].push),tu=dh("".replace),ru=dh([].shift),nu=dh([].splice),au=dh("".split),ou=dh("".slice),iu=/\+/g,su=Array(4),cu=function(e){return su[e-1]||(su[e-1]=qh("((?:%[\\da-f]{2}){"+e+"})","gi"))},hu=function(e){try{return Zh(e)}catch(t){return e}},uu=function(e){var t=tu(e,iu," "),r=4;try{return Zh(t)}catch(e){for(;r;)t=tu(t,cu(r--),hu);return t}},lu=/[!'()~]|%20/g,fu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},du=function(e){return fu[e]},gu=function(e){return tu($h(e),lu,du)},mu=vh((function(e,t){xh(this,{type:Fh,iterator:Lh(jh(e).entries),kind:t})}),"Iterator",(function(){var e=Nh(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),pu=function(e){this.entries=[],this.url=null,void 0!==e&&(Ph(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Qh(e,0)?ou(e,1):e:Ih(e)))};pu.prototype={type:Uh,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,c=kh(e);if(c)for(r=(t=Lh(e,c)).next;!(n=fh(r,t)).done;){if(o=(a=Lh(Ch(n.value))).next,(i=fh(o,a)).done||(s=fh(o,a)).done||!fh(o,a).done)throw Vh("Expected sequence with length 2");eu(this.entries,{key:Ih(i.value),value:Ih(s.value)})}else for(var h in e)Rh(e,h)&&eu(this.entries,{key:h,value:Ih(e[h])})},parseQuery:function(e){if(e)for(var t,r,n=au(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=au(t,"="),eu(this.entries,{key:uu(ru(r)),value:uu(Xh(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],eu(r,gu(e.key)+"="+gu(e.value));return Xh(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var yu=function(){wh(this,bu);var e=arguments.length>0?arguments[0]:void 0;xh(this,new pu(e))},bu=yu.prototype;if(yh(bu,{append:function(e,t){Mh(arguments.length,2);var r=jh(this);eu(r.entries,{key:Ih(e),value:Ih(t)}),r.updateURL()},delete:function(e){Mh(arguments.length,1);for(var t=jh(this),r=t.entries,n=Ih(e),a=0;a<r.length;)r[a].key===n?nu(r,a,1):a++;t.updateURL()},get:function(e){Mh(arguments.length,1);for(var t=jh(this).entries,r=Ih(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Mh(arguments.length,1);for(var t=jh(this).entries,r=Ih(e),n=[],a=0;a<t.length;a++)t[a].key===r&&eu(n,t[a].value);return n},has:function(e){Mh(arguments.length,1);for(var t=jh(this).entries,r=Ih(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Mh(arguments.length,1);for(var r,n=jh(this),a=n.entries,o=!1,i=Ih(e),s=Ih(t),c=0;c<a.length;c++)(r=a[c]).key===i&&(o?nu(a,c--,1):(o=!0,r.value=s));o||eu(a,{key:i,value:s}),n.updateURL()},sort:function(){var e=jh(this);Bh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=jh(this).entries,n=Th(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new mu(this,"keys")},values:function(){return new mu(this,"values")},entries:function(){return new mu(this,"entries")}},{enumerable:!0}),ph(bu,Dh,bu.entries,{name:"entries"}),ph(bu,"toString",(function(){return jh(this).serialize()}),{enumerable:!0}),bh(yu,Uh),uh({global:!0,constructor:!0,forced:!mh},{URLSearchParams:yu}),!mh&&Ah(Kh)){var vu=dh(Jh.has),Su=dh(Jh.set),wu=function(e){if(Ph(e)){var t,r=e.body;if(Hh(r)===Uh)return t=e.headers?new Kh(e.headers):new Kh,vu(t,"content-type")||Su(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Oh(e,{body:Eh(0,Ih(r)),headers:Eh(0,t)})}return e};if(Ah(Yh)&&uh({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Yh(e,arguments.length>1?wu(arguments[1]):{})}}),Ah(zh)){var Au=function(e){return wh(this,Wh),new zh(e,arguments.length>1?wu(arguments[1]):{})};Wh.constructor=Au,Au.prototype=Wh,uh({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Au})}}var Ru,Tu=Zn,Hu=u,Cu=gs,Pu=s,Iu=bs,Ou=P,Eu=Jr,Lu=function(e,t,r){return r.get&&vs(r.get,t,{getter:!0}),r.set&&vs(r.set,t,{setter:!0}),Ss.f(e,t,r)},ku=Rs,Mu=Ue,Bu=Us,Du=function(e){var t=Rc(e),r=Cc(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=wc(a,n>2?arguments[2]:void 0));var i,s,c,h,u,l,f=Ec(t),d=0;if(!f||this===Lc&&Hc(f))for(i=Pc(t),s=r?new this(i):Lc(i);i>d;d++)l=o?a(t[d],d):t[d],Ic(s,d,l);else for(u=(h=Oc(t,f)).next,s=r?new this:[];!(c=Ac(u,h)).done;d++)l=o?Tc(h,a,[c.value,d],!0):c.value,Ic(s,d,l);return s.length=d,s},Uu=Fc,Fu=as.codeAt,xu=function(e){var t,r,n=[],a=$c(Zc(Qc(e),_c,"."),".");for(t=0;t<a.length;t++)r=a[t],Vc(n,zc(Nc,r)?"xn--"+th(r):r);return qc(n,".")},ju=sa,Nu=Wo,_u=nh,Gu={URLSearchParams:yu,getState:jh},Yu=Er,zu=Yu.set,Ku=Yu.getterFor("URL"),Wu=Gu.URLSearchParams,Ju=Gu.getState,qu=Pu.URL,Vu=Pu.TypeError,Zu=Pu.parseInt,$u=Math.floor,Qu=Math.pow,Xu=Ou("".charAt),el=Ou(/./.exec),tl=Ou([].join),rl=Ou(1..toString),nl=Ou([].pop),al=Ou([].push),ol=Ou("".replace),il=Ou([].shift),sl=Ou("".split),cl=Ou("".slice),hl=Ou("".toLowerCase),ul=Ou([].unshift),ll="Invalid scheme",fl="Invalid host",dl="Invalid port",gl=/[a-z]/i,ml=/[\d+-.a-z]/i,pl=/\d/,yl=/^0x/i,bl=/^[0-7]+$/,vl=/^\d+$/,Sl=/^[\da-f]+$/i,wl=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Al=/[\0\t\n\r #/:<>?@[\\\]^|]/,Rl=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Tl=/[\t\n\r]/g,Hl=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)ul(t,e%256),e=$u(e/256);return tl(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=rl(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Cl={},Pl=Bu({},Cl,{" ":1,'"':1,"<":1,">":1,"`":1}),Il=Bu({},Pl,{"#":1,"?":1,"{":1,"}":1}),Ol=Bu({},Il,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),El=function(e,t){var r=Fu(e,0);return r>32&&r<127&&!Mu(t,e)?e:encodeURIComponent(e)},Ll={ftp:21,file:null,http:80,https:443,ws:80,wss:443},kl=function(e,t){var r;return 2==e.length&&el(gl,Xu(e,0))&&(":"==(r=Xu(e,1))||!t&&"|"==r)},Ml=function(e){var t;return e.length>1&&kl(cl(e,0,2))&&(2==e.length||"/"===(t=Xu(e,2))||"\\"===t||"?"===t||"#"===t)},Bl=function(e){return"."===e||"%2e"===hl(e)},Dl={},Ul={},Fl={},xl={},jl={},Nl={},_l={},Gl={},Yl={},zl={},Kl={},Wl={},Jl={},ql={},Vl={},Zl={},$l={},Ql={},Xl={},ef={},tf={},rf=function(e,t,r){var n,a,o,i=ju(e);if(t){if(a=this.parse(i))throw Vu(a);this.searchParams=null}else{if(void 0!==r&&(n=new rf(r,!0)),a=this.parse(i,null,n))throw Vu(a);(o=Ju(new Wu)).bindURL(this),this.searchParams=o}};rf.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,c=this,h=t||Dl,u=0,l="",f=!1,d=!1,g=!1;for(e=ju(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=ol(e,Rl,"")),e=ol(e,Tl,""),n=Du(e);u<=n.length;){switch(a=n[u],h){case Dl:if(!a||!el(gl,a)){if(t)return ll;h=Fl;continue}l+=hl(a),h=Ul;break;case Ul:if(a&&(el(ml,a)||"+"==a||"-"==a||"."==a))l+=hl(a);else{if(":"!=a){if(t)return ll;l="",h=Fl,u=0;continue}if(t&&(c.isSpecial()!=Mu(Ll,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&Ll[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?h=ql:c.isSpecial()&&r&&r.scheme==c.scheme?h=xl:c.isSpecial()?h=Gl:"/"==n[u+1]?(h=jl,u++):(c.cannotBeABaseURL=!0,al(c.path,""),h=Xl)}break;case Fl:if(!r||r.cannotBeABaseURL&&"#"!=a)return ll;if(r.cannotBeABaseURL&&"#"==a){c.scheme=r.scheme,c.path=Uu(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,h=tf;break}h="file"==r.scheme?ql:Nl;continue;case xl:if("/"!=a||"/"!=n[u+1]){h=Nl;continue}h=Yl,u++;break;case jl:if("/"==a){h=zl;break}h=Ql;continue;case Nl:if(c.scheme=r.scheme,a==Ru)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Uu(r.path),c.query=r.query;else if("/"==a||"\\"==a&&c.isSpecial())h=_l;else if("?"==a)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Uu(r.path),c.query="",h=ef;else{if("#"!=a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Uu(r.path),c.path.length--,h=Ql;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Uu(r.path),c.query=r.query,c.fragment="",h=tf}break;case _l:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,h=Ql;continue}h=zl}else h=Yl;break;case Gl:if(h=Yl,"/"!=a||"/"!=Xu(l,u+1))continue;u++;break;case Yl:if("/"!=a&&"\\"!=a){h=zl;continue}break;case zl:if("@"==a){f&&(l="%40"+l),f=!0,o=Du(l);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=El(p,Ol);g?c.password+=y:c.username+=y}else g=!0}l=""}else if(a==Ru||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(f&&""==l)return"Invalid authority";u-=Du(l).length+1,l="",h=Kl}else l+=a;break;case Kl:case Wl:if(t&&"file"==c.scheme){h=Zl;continue}if(":"!=a||d){if(a==Ru||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==l)return fl;if(t&&""==l&&(c.includesCredentials()||null!==c.port))return;if(i=c.parseHost(l))return i;if(l="",h=$l,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),l+=a}else{if(""==l)return fl;if(i=c.parseHost(l))return i;if(l="",h=Jl,t==Wl)return}break;case Jl:if(!el(pl,a)){if(a==Ru||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||t){if(""!=l){var b=Zu(l,10);if(b>65535)return dl;c.port=c.isSpecial()&&b===Ll[c.scheme]?null:b,l=""}if(t)return;h=$l;continue}return dl}l+=a;break;case ql:if(c.scheme="file","/"==a||"\\"==a)h=Vl;else{if(!r||"file"!=r.scheme){h=Ql;continue}if(a==Ru)c.host=r.host,c.path=Uu(r.path),c.query=r.query;else if("?"==a)c.host=r.host,c.path=Uu(r.path),c.query="",h=ef;else{if("#"!=a){Ml(tl(Uu(n,u),""))||(c.host=r.host,c.path=Uu(r.path),c.shortenPath()),h=Ql;continue}c.host=r.host,c.path=Uu(r.path),c.query=r.query,c.fragment="",h=tf}}break;case Vl:if("/"==a||"\\"==a){h=Zl;break}r&&"file"==r.scheme&&!Ml(tl(Uu(n,u),""))&&(kl(r.path[0],!0)?al(c.path,r.path[0]):c.host=r.host),h=Ql;continue;case Zl:if(a==Ru||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&kl(l))h=Ql;else if(""==l){if(c.host="",t)return;h=$l}else{if(i=c.parseHost(l))return i;if("localhost"==c.host&&(c.host=""),t)return;l="",h=$l}continue}l+=a;break;case $l:if(c.isSpecial()){if(h=Ql,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=Ru&&(h=Ql,"/"!=a))continue}else c.fragment="",h=tf;else c.query="",h=ef;break;case Ql:if(a==Ru||"/"==a||"\\"==a&&c.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=hl(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||al(c.path,"")):Bl(l)?"/"==a||"\\"==a&&c.isSpecial()||al(c.path,""):("file"==c.scheme&&!c.path.length&&kl(l)&&(c.host&&(c.host=""),l=Xu(l,0)+":"),al(c.path,l)),l="","file"==c.scheme&&(a==Ru||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)il(c.path);"?"==a?(c.query="",h=ef):"#"==a&&(c.fragment="",h=tf)}else l+=El(a,Il);break;case Xl:"?"==a?(c.query="",h=ef):"#"==a?(c.fragment="",h=tf):a!=Ru&&(c.path[0]+=El(a,Cl));break;case ef:t||"#"!=a?a!=Ru&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":El(a,Cl)):(c.fragment="",h=tf);break;case tf:a!=Ru&&(c.fragment+=El(a,Pl))}u++}},parseHost:function(e){var t,r,n;if("["==Xu(e,0)){if("]"!=Xu(e,e.length-1))return fl;if(t=function(e){var t,r,n,a,o,i,s,c=[0,0,0,0,0,0,0,0],h=0,u=null,l=0,f=function(){return Xu(e,l)};if(":"==f()){if(":"!=Xu(e,1))return;l+=2,u=++h}for(;f();){if(8==h)return;if(":"!=f()){for(t=r=0;r<4&&el(Sl,f());)t=16*t+Zu(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,h>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;l++}if(!el(pl,f()))return;for(;el(pl,f());){if(o=Zu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;l++}c[h]=256*c[h]+a,2!=++n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;c[h++]=t}else{if(null!==u)return;l++,u=++h}}if(null!==u)for(i=h-u,h=7;0!=h&&i>0;)s=c[h],c[h--]=c[u+i-1],c[u+--i]=s;else if(8!=h)return;return c}(cl(e,1,-1)),!t)return fl;this.host=t}else if(this.isSpecial()){if(e=xu(e),el(wl,e))return fl;if(t=function(e){var t,r,n,a,o,i,s,c=sl(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=c[n]))return e;if(o=10,a.length>1&&"0"==Xu(a,0)&&(o=el(yl,a)?16:8,a=cl(a,8==o?1:2)),""===a)i=0;else{if(!el(10==o?vl:8==o?bl:Sl,a))return e;i=Zu(a,o)}al(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=Qu(256,5-t))return null}else if(i>255)return null;for(s=nl(r),n=0;n<r.length;n++)s+=r[n]*Qu(256,3-n);return s}(e),null===t)return fl;this.host=t}else{if(el(Al,e))return fl;for(t="",r=Du(e),n=0;n<r.length;n++)t+=El(r[n],Cl);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Mu(Ll,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&kl(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,c=e.fragment,h=t+":";return null!==a?(h+="//",e.includesCredentials()&&(h+=r+(n?":"+n:"")+"@"),h+=Hl(a),null!==o&&(h+=":"+o)):"file"==t&&(h+="//"),h+=e.cannotBeABaseURL?i[0]:i.length?"/"+tl(i,"/"):"",null!==s&&(h+="?"+s),null!==c&&(h+="#"+c),h},setHref:function(e){var t=this.parse(e);if(t)throw Vu(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new nf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Hl(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(ju(e)+":",Dl)},getUsername:function(){return this.username},setUsername:function(e){var t=Du(ju(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=El(t[r],Ol)}},getPassword:function(){return this.password},setPassword:function(e){var t=Du(ju(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=El(t[r],Ol)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Hl(e):Hl(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Kl)},getHostname:function(){var e=this.host;return null===e?"":Hl(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Wl)},getPort:function(){var e=this.port;return null===e?"":ju(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=ju(e))?this.port=null:this.parse(e,Jl))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+tl(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,$l))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=ju(e))?this.query=null:("?"==Xu(e,0)&&(e=cl(e,1)),this.query="",this.parse(e,ef)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=ju(e))?("#"==Xu(e,0)&&(e=cl(e,1)),this.fragment="",this.parse(e,tf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var nf=function(e){var t=ku(this,af),r=_u(arguments.length,1)>1?arguments[1]:void 0,n=zu(t,new rf(e,!1,r));Hu||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},af=nf.prototype,of=function(e,t){return{get:function(){return Ku(this)[e]()},set:t&&function(e){return Ku(this)[t](e)},configurable:!0,enumerable:!0}};if(Hu&&(Lu(af,"href",of("serialize","setHref")),Lu(af,"origin",of("getOrigin")),Lu(af,"protocol",of("getProtocol","setProtocol")),Lu(af,"username",of("getUsername","setUsername")),Lu(af,"password",of("getPassword","setPassword")),Lu(af,"host",of("getHost","setHost")),Lu(af,"hostname",of("getHostname","setHostname")),Lu(af,"port",of("getPort","setPort")),Lu(af,"pathname",of("getPathname","setPathname")),Lu(af,"search",of("getSearch","setSearch")),Lu(af,"searchParams",of("getSearchParams")),Lu(af,"hash",of("getHash","setHash"))),Eu(af,"toJSON",(function(){return Ku(this).serialize()}),{enumerable:!0}),Eu(af,"toString",(function(){return Ku(this).serialize()}),{enumerable:!0}),qu){var sf=qu.createObjectURL,cf=qu.revokeObjectURL;sf&&Eu(nf,"createObjectURL",Iu(sf,qu)),cf&&Eu(nf,"revokeObjectURL",Iu(cf,qu))}Nu(nf,"URL"),Tu({global:!0,constructor:!0,forced:!Cu,sham:!Hu},{URL:nf});var hf,uf=z,lf=L,ff=Qe("match"),df=function(e){var t;return uf(e)&&(void 0!==(t=e[ff])?!!t:"RegExp"==lf(e))},gf=TypeError,mf=Qe("match"),pf=Zn,yf=P,bf=c.f,vf=on,Sf=sa,wf=function(e){if(df(e))throw gf("The method doesn't accept regular expressions");return e},Af=x,Rf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[mf]=!1,"/./"[e](t)}catch(e){}}return!1},Tf=yf("".startsWith),Hf=yf("".slice),Cf=Math.min,Pf=Rf("startsWith");pf({target:"String",proto:!0,forced:!!(Pf||(hf=bf(String.prototype,"startsWith"),!hf||hf.writable))&&!Pf},{startsWith:function(e){var t=Sf(Af(this));wf(e);var r=vf(Cf(arguments.length>1?arguments[1]:void 0,t.length)),n=Sf(e);return Tf?Tf(t,n,r):Hf(t,r,r+n.length)===n}});var If=g,Of=Ue,Ef=V,Lf=ha,kf=RegExp.prototype,Mf=Zt.PROPER,Bf=Jr,Df=Ot,Uf=sa,Ff=h,xf=function(e){var t=e.flags;return void 0!==t||"flags"in kf||Of(e,"flags")||!Ef(kf,e)?t:If(Lf,e)},jf="toString",Nf=RegExp.prototype.toString,_f=Ff((function(){return"/a/b"!=Nf.call({source:"a",flags:"b"})})),Gf=Mf&&Nf.name!=jf;(_f||Gf)&&Bf(RegExp.prototype,jf,(function(){var e=Df(this);return"/"+Uf(e.source)+"/"+Uf(xf(e))}),{unsafe:!0});var Yf={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},zf={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function Kf(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:zf[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function Wf(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Jf(e){return e<10?"0"+e:""+e}function qf(e){return e<0?"-00"+qf(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function Vf(e){return qf(e.getFullYear())+"-"+Jf(e.getMonth()+1)+"-"+Jf(e.getDate())}function Zf(e){const r=e.getDesc();if("Fast begins"===r||"Fast ends"===r)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"];case t.flags.MINOR_HOLIDAY:return["holiday","minor"];case t.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(r){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}function $f(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function Qf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=Yf[e.getDesc()]||Yf[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const Xf=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function ed(e,r){const n=e.getFlags();if(n&Xf)return"";const o=n&t.flags.PARSHA_HASHAVUA?a.getLeyningForParshaHaShavua(e,r):a.getLeyningForHoliday(e,r);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function td(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),c=e.startsWith("/omer/");if(i||s||c)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function rd(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&t.flags.DAF_YOMI)||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const nd='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',ad={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function od(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let c="",h="",u="",l='"true"';const f=Boolean(e.eventTime);let d=rd(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);h=c='"'.concat(n,'"'),u=s,l='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&r.location&&r.location.name){const e=r.location.name,t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else if(m&t.flags.DAF_YOMI){const e=d.indexOf(": ");-1!=e&&(g=d.substring(0,e),d=d.substring(e+2))}else{const t=ad[Zf(e)[0]];t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||Qf(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(c,",").concat(u,",").concat(h,",").concat(l,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function id(e){return Vf(e.getDate().greg())}function sd(e,r){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof r.location?r.location.getTzid():"UTC",h=o?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):Vf(s),u=Zf(e),l=e.getFlags();let f=rd(e)?e.renderBrief(r.locale):e.render(r.locale);const d=e.getDesc(),g="Havdalah"===d||"Candle lighting"===d;if(g){f+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r)}const m={title:f,date:h};o||(m.hdate=i.toString()),m.category=u[0],u.length>1&&(m.subcat=u[1]),"holiday"===u[0]&&l&t.flags.CHAG&&(m.yomtov=!0),f!=d&&(m.title_orig=d);const p=e.renderBrief("he");if(p&&(m.hebrew=t.Locale.hebrewStripNikkud(p)),!g){if(n){const n=r.il,o=l===t.flags.PARSHA_HASHAVUA,s=o?a.getLeyningForParshaHaShavua(e,n):a.getLeyningForHoliday(e,n);if(s){m.leyning=hd(s);const t=i.getFullYear();if(o&&!n&&t>=5745){const t=a.getTriennialForParshaHaShavua(e);t&&(m.leyning.triennial=cd({},t))}}}const o=e.url();if(o){const e=r.utmSource||"js",t=r.utmMedium||"api",n=r.utmCampaign;m.link=td(o,r.il,e,t,n)}}if(l&t.flags.OMER_COUNT&&(m.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),l&t.flags.HEBREW_DATE){const e=i.getFullYear(),r=i.getMonthName(),n=i.getDate();m.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const y=e.memo||Yf[e.basename()];return y?m.memo=y:void 0!==e.linkedEvent&&(m.memo=e.linkedEvent.render(r.locale)),r.includeEvent&&(m.ev=e),m}function cd(e,t){return Object.keys(t).forEach((r=>{const n=t[r];if(void 0!==n){e["M"==r?"maftir":r]=a.formatAliyahWithBook(n)}})),e}function hd(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&cd(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const ud={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function ld(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||$f(e,t),c=t.description||s,h=t.utmSource||"shabbat1c",u=t.utmMedium||"rss",l=td(n,r&&r.getIsrael(),h,u,t.utmCampaign).replace(/&/g,"&"),f=t.selfUrl.replace(/&/g,"&"),d=t.lang||ud[t.locale]||t.locale||"en-US";let g='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(s,"</title>\n<link>").concat(l,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(c,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=fd(e,t)})),g+="</channel>\n</rss>\n",g}function fd(e,t){return dd(e,t.evPubDate,t.lastBuildDate,t.dayFormat,t.location,t.mainUrl,t)}function dd(e,r,n,a,o,i,s){let c=e.render();const h=e.getDate().greg(),u=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r,h,n),l=!!o&&o.getIsrael(),f=function(e,r,n,a,o,i){let s,c;const h=e.eventTime||e.getDate().greg(),u=t.Zmanim.formatISOWithTimeZone(n,h),l=u.substring(0,u.indexOf("T")),f=l.replace(/-/g,""),d=Wf(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=td(m,r,o,i).replace(/&/g,"&"),c="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(l),t=td(e,r,o,i).replace(/&/g,"&");c=e.replace(/&/g,"&")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,c]}(e,l,o?o.getTzid():"UTC",i,s&&s.utmSource||"shabbat1c",s&&s.utmMedium||"rss"),d=f[0],g=f[1],m=Zf(e)[0],p=e.getDesc();let y;if("Havdalah"===p||"Candle lighting"===p){const r=c.indexOf(": ");if(-1!=r){const n={location:o,il:l,locale:t.Locale.getLocaleName()},a=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);c=c.substring(0,r)+": "+a}}else y=e.getFlags()&t.flags.PARSHA_HASHAVUA?ed(e,l):e.memo||Yf[e.basename()];const b=y||a.format(h),v="candles"==m?"<geo:lat>".concat(o.getLatitude(),"</geo:lat>\n<geo:long>").concat(o.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(c,"</title>\n<link>").concat(d,'</link>\n<guid isPermaLink="false">').concat(g,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(m,"</category>\n<pubDate>").concat(u,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=td,e.countryNames=zf,e.eventToClassicApiObject=sd,e.eventToCsv=od,e.eventToFullCalendar=function(e,r,n){const a=Zf(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:rd(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):Vf(e.getDate().greg()),allDay:!i,className:a.join(" ")},c=e.renderBrief("he");c&&(s.hebrew=t.Locale.hebrewStripNikkud(c));const h=e.url();h&&(s.url=td(h,n,"js","fc"));const u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){const r=o&t.flags.PARSHA_HASHAVUA?ed(e,n):e.memo||Yf[e.basename()];r?s.description=r:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem=dd,e.eventToRssItem2=fd,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:$f(e,t),date:(new Date).toISOString()};return n.location=Kf(t.location),e.length&&(n.range={start:id(e[0]),end:id(e[e.length-1])}),n.items=e.map((e=>sd(e,t,r))),n},e.eventsToCsv=function(e,t){return[nd].concat(e.map((e=>od(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,r,n,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=r.getName(),c={location:r,mainUrl:n,selfUrl:a,lang:o,evPubDate:i,title:t.Locale.gettext("Shabbat")+" Times for ".concat(s),description:"Weekly Shabbat candle lighting times for ".concat(s),utmSource:"shabbat1c",utmMedium:"rss"};return ld(e,c)},e.eventsToRss2=ld,e.getCalendarTitle=$f,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+Wf(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=Zf,e.getHolidayDescription=Qf,e.holidayDescription=Yf,e.locationToPlainObj=Kf,e.makeAnchor=Wf,e.makeTorahMemoText=ed,e.pad2=Jf,e.pad4=qf,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=rd,e.timeZoneOffsetStr=function(e,r){return t.Zmanim.timeZoneOffset(e,r)},e.toISOString=Vf,e.toISOStringWithTimezone=function(e,r,n){const a=Vf(e);return r?a+"T"+r+":00"+t.Zmanim.timeZoneOffset(n,e):a},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal);
|
|
1
|
+
/*! @hebcal/rest-api v4.0.0 */
|
|
2
|
+
var hebcal__rest_api=function(e,t,r){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=function(e){return e&&e.Math==Math&&e},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof n&&n)||function(){return this}()||Function("return this")(),i={},s=function(e){try{return!!e()}catch(e){return!0}},h=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=c,l=Function.prototype.call,f=u?l.bind(l):function(){return l.apply(l,arguments)},d={},g={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,p=m&&!g.call({1:2},1);d.f=p?function(e){var t=m(this,e);return!!t&&t.enumerable}:g;var y,b,v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=c,w=Function.prototype,A=w.bind,R=w.call,H=S&&A.bind(R,R),T=S?function(e){return e&&H(e)}:function(e){return e&&function(){return R.apply(e,arguments)}},C=T,P=C({}.toString),I=C("".slice),O=function(e){return I(P(e),8,-1)},E=s,L=O,k=Object,M=T("".split),B=E((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?M(e,""):k(e)}:k,D=TypeError,F=function(e){if(null==e)throw D("Can't call method on "+e);return e},U=B,x=F,j=function(e){return U(x(e))},N=function(e){return"function"==typeof e},G=N,_=function(e){return"object"==typeof e?null!==e:G(e)},Y=o,z=N,K=function(e){return z(e)?e:void 0},W=function(e,t){return arguments.length<2?K(Y[e]):Y[e]&&Y[e][t]},J=T({}.isPrototypeOf),q=o,V=W("navigator","userAgent")||"",Z=q.process,$=q.Deno,Q=Z&&Z.versions||$&&$.version,X=Q&&Q.v8;X&&(b=(y=X.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!b&&V&&(!(y=V.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=V.match(/Chrome\/(\d+)/))&&(b=+y[1]);var ee=b,te=s,re=!!Object.getOwnPropertySymbols&&!te((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ee&&ee<41})),ne=re&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=W,oe=N,ie=J,se=Object,he=ne?function(e){return"symbol"==typeof e}:function(e){var t=ae("Symbol");return oe(t)&&ie(t.prototype,se(e))},ce=String,ue=function(e){try{return ce(e)}catch(e){return"Object"}},le=N,fe=ue,de=TypeError,ge=function(e){if(le(e))return e;throw de(fe(e)+" is not a function")},me=ge,pe=function(e,t){var r=e[t];return null==r?void 0:me(r)},ye=f,be=N,ve=_,Se=TypeError,we={exports:{}},Ae=o,Re=Object.defineProperty,He=function(e,t){try{Re(Ae,e,{value:t,configurable:!0,writable:!0})}catch(r){Ae[e]=t}return t},Te=He,Ce="__core-js_shared__",Pe=o[Ce]||Te(Ce,{}),Ie=Pe;(we.exports=function(e,t){return Ie[e]||(Ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Oe=F,Ee=Object,Le=function(e){return Ee(Oe(e))},ke=Le,Me=T({}.hasOwnProperty),Be=Object.hasOwn||function(e,t){return Me(ke(e),t)},De=T,Fe=0,Ue=Math.random(),xe=De(1..toString),je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xe(++Fe+Ue,36)},Ne=o,Ge=we.exports,_e=Be,Ye=je,ze=re,Ke=ne,We=Ge("wks"),Je=Ne.Symbol,qe=Je&&Je.for,Ve=Ke?Je:Je&&Je.withoutSetter||Ye,Ze=function(e){if(!_e(We,e)||!ze&&"string"!=typeof We[e]){var t="Symbol."+e;ze&&_e(Je,e)?We[e]=Je[e]:We[e]=Ke&&qe?qe(t):Ve(t)}return We[e]},$e=f,Qe=_,Xe=he,et=pe,tt=function(e,t){var r,n;if("string"===t&&be(r=e.toString)&&!ve(n=ye(r,e)))return n;if(be(r=e.valueOf)&&!ve(n=ye(r,e)))return n;if("string"!==t&&be(r=e.toString)&&!ve(n=ye(r,e)))return n;throw Se("Can't convert object to primitive value")},rt=TypeError,nt=Ze("toPrimitive"),at=function(e,t){if(!Qe(e)||Xe(e))return e;var r,n=et(e,nt);if(n){if(void 0===t&&(t="default"),r=$e(n,e,t),!Qe(r)||Xe(r))return r;throw rt("Can't convert object to primitive value")}return void 0===t&&(t="number"),tt(e,t)},ot=he,it=function(e){var t=at(e,"string");return ot(t)?t:t+""},st=_,ht=o.document,ct=st(ht)&&st(ht.createElement),ut=function(e){return ct?ht.createElement(e):{}},lt=ut,ft=!h&&!s((function(){return 7!=Object.defineProperty(lt("div"),"a",{get:function(){return 7}}).a})),dt=h,gt=f,mt=d,pt=v,yt=j,bt=it,vt=Be,St=ft,wt=Object.getOwnPropertyDescriptor;i.f=dt?wt:function(e,t){if(e=yt(e),t=bt(t),St)try{return wt(e,t)}catch(e){}if(vt(e,t))return pt(!gt(mt.f,e,t),e[t])};var At={},Rt=h&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ht=_,Tt=String,Ct=TypeError,Pt=function(e){if(Ht(e))return e;throw Ct(Tt(e)+" is not an object")},It=h,Ot=ft,Et=Rt,Lt=Pt,kt=it,Mt=TypeError,Bt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ft="enumerable",Ut="configurable",xt="writable";At.f=It?Et?function(e,t,r){if(Lt(e),t=kt(t),Lt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&xt in r&&!r.writable){var n=Dt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Ut in r?r.configurable:n.configurable,enumerable:Ft in r?r.enumerable:n.enumerable,writable:!1})}return Bt(e,t,r)}:Bt:function(e,t,r){if(Lt(e),t=kt(t),Lt(r),Ot)try{return Bt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Mt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var jt=At,Nt=v,Gt=h?function(e,t,r){return jt.f(e,t,Nt(1,r))}:function(e,t,r){return e[t]=r,e},_t={exports:{}},Yt=h,zt=Be,Kt=Function.prototype,Wt=Yt&&Object.getOwnPropertyDescriptor,Jt=zt(Kt,"name"),qt={EXISTS:Jt,PROPER:Jt&&"something"===function(){}.name,CONFIGURABLE:Jt&&(!Yt||Yt&&Wt(Kt,"name").configurable)},Vt=N,Zt=Pe,$t=T(Function.toString);Vt(Zt.inspectSource)||(Zt.inspectSource=function(e){return $t(e)});var Qt,Xt,er,tr=Zt.inspectSource,rr=N,nr=tr,ar=o.WeakMap,or=rr(ar)&&/native code/.test(nr(ar)),ir=we.exports,sr=je,hr=ir("keys"),cr=function(e){return hr[e]||(hr[e]=sr(e))},ur={},lr=or,fr=o,dr=T,gr=_,mr=Gt,pr=Be,yr=Pe,br=cr,vr=ur,Sr="Object already initialized",wr=fr.TypeError,Ar=fr.WeakMap;if(lr||yr.state){var Rr=yr.state||(yr.state=new Ar),Hr=dr(Rr.get),Tr=dr(Rr.has),Cr=dr(Rr.set);Qt=function(e,t){if(Tr(Rr,e))throw new wr(Sr);return t.facade=e,Cr(Rr,e,t),t},Xt=function(e){return Hr(Rr,e)||{}},er=function(e){return Tr(Rr,e)}}else{var Pr=br("state");vr[Pr]=!0,Qt=function(e,t){if(pr(e,Pr))throw new wr(Sr);return t.facade=e,mr(e,Pr,t),t},Xt=function(e){return pr(e,Pr)?e[Pr]:{}},er=function(e){return pr(e,Pr)}}var Ir={set:Qt,get:Xt,has:er,enforce:function(e){return er(e)?Xt(e):Qt(e,{})},getterFor:function(e){return function(t){var r;if(!gr(t)||(r=Xt(t)).type!==e)throw wr("Incompatible receiver, "+e+" required");return r}}},Or=s,Er=N,Lr=Be,kr=h,Mr=qt.CONFIGURABLE,Br=tr,Dr=Ir.enforce,Fr=Ir.get,Ur=Object.defineProperty,xr=kr&&!Or((function(){return 8!==Ur((function(){}),"length",{value:8}).length})),jr=String(String).split("String"),Nr=_t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Lr(e,"name")||Mr&&e.name!==t)&&(kr?Ur(e,"name",{value:t,configurable:!0}):e.name=t),xr&&r&&Lr(r,"arity")&&e.length!==r.arity&&Ur(e,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?kr&&Ur(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Dr(e);return Lr(n,"source")||(n.source=jr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Nr((function(){return Er(this)&&Fr(this).source||Br(this)}),"toString");var Gr=N,_r=At,Yr=_t.exports,zr=He,Kr=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(Gr(r)&&Yr(r,o,n),n.global)a?e[t]=r:zr(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:_r.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Wr={},Jr=Math.ceil,qr=Math.floor,Vr=Math.trunc||function(e){var t=+e;return(t>0?qr:Jr)(t)},Zr=function(e){var t=+e;return t!=t||0===t?0:Vr(t)},$r=Zr,Qr=Math.max,Xr=Math.min,en=function(e,t){var r=$r(e);return r<0?Qr(r+t,0):Xr(r,t)},tn=Zr,rn=Math.min,nn=function(e){return e>0?rn(tn(e),9007199254740991):0},an=nn,on=function(e){return an(e.length)},sn=j,hn=en,cn=on,un=function(e){return function(t,r,n){var a,o=sn(t),i=cn(o),s=hn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ln={includes:un(!0),indexOf:un(!1)},fn=Be,dn=j,gn=ln.indexOf,mn=ur,pn=T([].push),yn=function(e,t){var r,n=dn(e),a=0,o=[];for(r in n)!fn(mn,r)&&fn(n,r)&&pn(o,r);for(;t.length>a;)fn(n,r=t[a++])&&(~gn(o,r)||pn(o,r));return o},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vn=yn,Sn=bn.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(e){return vn(e,Sn)};var wn={};wn.f=Object.getOwnPropertySymbols;var An=W,Rn=Wr,Hn=wn,Tn=Pt,Cn=T([].concat),Pn=An("Reflect","ownKeys")||function(e){var t=Rn.f(Tn(e)),r=Hn.f;return r?Cn(t,r(e)):t},In=Be,On=Pn,En=i,Ln=At,kn=s,Mn=N,Bn=/#|\.prototype\./,Dn=function(e,t){var r=Un[Fn(e)];return r==jn||r!=xn&&(Mn(t)?kn(t):!!t)},Fn=Dn.normalize=function(e){return String(e).replace(Bn,".").toLowerCase()},Un=Dn.data={},xn=Dn.NATIVE="N",jn=Dn.POLYFILL="P",Nn=Dn,Gn=o,_n=i.f,Yn=Gt,zn=Kr,Kn=He,Wn=function(e,t,r){for(var n=On(t),a=Ln.f,o=En.f,i=0;i<n.length;i++){var s=n[i];In(e,s)||r&&In(r,s)||a(e,s,o(t,s))}},Jn=Nn,qn=function(e,t){var r,n,a,o,i,s=e.target,h=e.global,c=e.stat;if(r=h?Gn:c?Gn[s]||Kn(s,{}):(Gn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=_n(r,n))&&i.value:r[n],!Jn(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Wn(o,a)}(e.sham||a&&a.sham)&&Yn(o,"sham",!0),zn(r,n,o,e)}},Vn={};Vn[Ze("toStringTag")]="z";var Zn="[object z]"===String(Vn),$n=N,Qn=O,Xn=Ze("toStringTag"),ea=Object,ta="Arguments"==Qn(function(){return arguments}()),ra=Zn?Qn:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ea(e),Xn))?r:ta?Qn(t):"Object"==(n=Qn(t))&&$n(t.callee)?"Arguments":n},na=ra,aa=String,oa=function(e){if("Symbol"===na(e))throw TypeError("Cannot convert a Symbol value to a string");return aa(e)},ia=Pt,sa=function(){var e=ia(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ha=s,ca=o.RegExp,ua=ha((function(){var e=ca("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),la=ua||ha((function(){return!ca("a","y").sticky})),fa={BROKEN_CARET:ua||ha((function(){var e=ca("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:la,UNSUPPORTED_Y:ua},da={},ga=yn,ma=bn,pa=Object.keys||function(e){return ga(e,ma)},ya=h,ba=Rt,va=At,Sa=Pt,wa=j,Aa=pa;da.f=ya&&!ba?Object.defineProperties:function(e,t){Sa(e);for(var r,n=wa(t),a=Aa(t),o=a.length,i=0;o>i;)va.f(e,r=a[i++],n[r]);return e};var Ra,Ha=W("document","documentElement"),Ta=Pt,Ca=da,Pa=bn,Ia=ur,Oa=Ha,Ea=ut,La=cr("IE_PROTO"),ka=function(){},Ma=function(e){return"<script>"+e+"</"+"script>"},Ba=function(e){e.write(Ma("")),e.close();var t=e.parentWindow.Object;return e=null,t},Da=function(){try{Ra=new ActiveXObject("htmlfile")}catch(e){}var e,t;Da="undefined"!=typeof document?document.domain&&Ra?Ba(Ra):((t=Ea("iframe")).style.display="none",Oa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ma("document.F=Object")),e.close(),e.F):Ba(Ra);for(var r=Pa.length;r--;)delete Da.prototype[Pa[r]];return Da()};Ia[La]=!0;var Fa,Ua,xa=Object.create||function(e,t){var r;return null!==e?(ka.prototype=Ta(e),r=new ka,ka.prototype=null,r[La]=e):r=Da(),void 0===t?r:Ca.f(r,t)},ja=s,Na=o.RegExp,Ga=ja((function(){var e=Na(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),_a=s,Ya=o.RegExp,za=_a((function(){var e=Ya("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ka=f,Wa=T,Ja=oa,qa=sa,Va=fa,Za=we.exports,$a=xa,Qa=Ir.get,Xa=Ga,eo=za,to=Za("native-string-replace",String.prototype.replace),ro=RegExp.prototype.exec,no=ro,ao=Wa("".charAt),oo=Wa("".indexOf),io=Wa("".replace),so=Wa("".slice),ho=(Ua=/b*/g,Ka(ro,Fa=/a/,"a"),Ka(ro,Ua,"a"),0!==Fa.lastIndex||0!==Ua.lastIndex),co=Va.BROKEN_CARET,uo=void 0!==/()??/.exec("")[1];(ho||uo||co||Xa||eo)&&(no=function(e){var t,r,n,a,o,i,s,h=this,c=Qa(h),u=Ja(e),l=c.raw;if(l)return l.lastIndex=h.lastIndex,t=Ka(no,l,u),h.lastIndex=l.lastIndex,t;var f=c.groups,d=co&&h.sticky,g=Ka(qa,h),m=h.source,p=0,y=u;if(d&&(g=io(g,"y",""),-1===oo(g,"g")&&(g+="g"),y=so(u,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==ao(u,h.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),uo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),ho&&(n=h.lastIndex),a=Ka(ro,d?r:h,y),d?a?(a.input=so(a.input,p),a[0]=so(a[0],p),a.index=h.lastIndex,h.lastIndex+=a[0].length):h.lastIndex=0:ho&&a&&(h.lastIndex=h.global?a.index+a[0].length:n),uo&&a&&a.length>1&&Ka(to,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=$a(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});qn({target:"RegExp",proto:!0,forced:/./.exec!==no},{exec:no});var lo=ut("span").classList,fo=lo&&lo.constructor&&lo.constructor.prototype,go=fo===Object.prototype?void 0:fo,mo=Ze,po=xa,yo=At.f,bo=mo("unscopables"),vo=Array.prototype;null==vo[bo]&&yo(vo,bo,{configurable:!0,value:po(null)});var So,wo,Ao,Ro={},Ho=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),To=Be,Co=N,Po=Le,Io=Ho,Oo=cr("IE_PROTO"),Eo=Object,Lo=Eo.prototype,ko=Io?Eo.getPrototypeOf:function(e){var t=Po(e);if(To(t,Oo))return t[Oo];var r=t.constructor;return Co(r)&&t instanceof r?r.prototype:t instanceof Eo?Lo:null},Mo=s,Bo=N,Do=ko,Fo=Kr,Uo=Ze("iterator"),xo=!1;[].keys&&("next"in(Ao=[].keys())?(wo=Do(Do(Ao)))!==Object.prototype&&(So=wo):xo=!0);var jo=null==So||Mo((function(){var e={};return So[Uo].call(e)!==e}));jo&&(So={}),Bo(So[Uo])||Fo(So,Uo,(function(){return this}));var No={IteratorPrototype:So,BUGGY_SAFARI_ITERATORS:xo},Go=At.f,_o=Be,Yo=Ze("toStringTag"),zo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!_o(e,Yo)&&Go(e,Yo,{configurable:!0,value:t})},Ko=No.IteratorPrototype,Wo=xa,Jo=v,qo=zo,Vo=Ro,Zo=function(){return this},$o=function(e,t,r,n){var a=t+" Iterator";return e.prototype=Wo(Ko,{next:Jo(+!n,r)}),qo(e,a,!1),Vo[a]=Zo,e},Qo=N,Xo=String,ei=TypeError,ti=T,ri=Pt,ni=function(e){if("object"==typeof e||Qo(e))return e;throw ei("Can't set "+Xo(e)+" as a prototype")},ai=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ti(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ri(r),ni(n),t?e(r,n):r.__proto__=n,r}}():void 0),oi=qn,ii=f,si=N,hi=$o,ci=ko,ui=ai,li=zo,fi=Gt,di=Kr,gi=Ro,mi=qt.PROPER,pi=qt.CONFIGURABLE,yi=No.IteratorPrototype,bi=No.BUGGY_SAFARI_ITERATORS,vi=Ze("iterator"),Si="keys",wi="values",Ai="entries",Ri=function(){return this},Hi=function(e,t,r,n,a,o,i){hi(r,t,n);var s,h,c,u=function(e){if(e===a&&m)return m;if(!bi&&e in d)return d[e];switch(e){case Si:case wi:case Ai:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,d=e.prototype,g=d[vi]||d["@@iterator"]||a&&d[a],m=!bi&&g||u(a),p="Array"==t&&d.entries||g;if(p&&(s=ci(p.call(new e)))!==Object.prototype&&s.next&&(ci(s)!==yi&&(ui?ui(s,yi):si(s[vi])||di(s,vi,Ri)),li(s,l,!0)),mi&&a==wi&&g&&g.name!==wi&&(pi?fi(d,"name",wi):(f=!0,m=function(){return ii(g,this)})),a)if(h={values:u(wi),keys:o?m:u(Si),entries:u(Ai)},i)for(c in h)(bi||f||!(c in d))&&di(d,c,h[c]);else oi({target:t,proto:!0,forced:bi||f},h);return d[vi]!==m&&di(d,vi,m,{name:a}),gi[t]=m,h},Ti=j,Ci=function(e){vo[bo][e]=!0},Pi=Ro,Ii=Ir,Oi=At.f,Ei=Hi,Li=h,ki="Array Iterator",Mi=Ii.set,Bi=Ii.getterFor(ki),Di=Ei(Array,"Array",(function(e,t){Mi(this,{type:ki,target:Ti(e),index:0,kind:t})}),(function(){var e=Bi(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Fi=Pi.Arguments=Pi.Array;if(Ci("keys"),Ci("values"),Ci("entries"),Li&&"values"!==Fi.name)try{Oi(Fi,"name",{value:"values"})}catch(e){}var Ui=o,xi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ji=go,Ni=Di,Gi=Gt,_i=Ze,Yi=_i("iterator"),zi=_i("toStringTag"),Ki=Ni.values,Wi=function(e,t){if(e){if(e[Yi]!==Ki)try{Gi(e,Yi,Ki)}catch(t){e[Yi]=Ki}if(e[zi]||Gi(e,zi,t),xi[t])for(var r in Ni)if(e[r]!==Ni[r])try{Gi(e,r,Ni[r])}catch(t){e[r]=Ni[r]}}};for(var Ji in xi)Wi(Ui[Ji]&&Ui[Ji].prototype,Ji);Wi(ji,"DOMTokenList");var qi=T,Vi=Zr,Zi=oa,$i=F,Qi=qi("".charAt),Xi=qi("".charCodeAt),es=qi("".slice),ts=function(e){return function(t,r){var n,a,o=Zi($i(t)),i=Vi(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=Xi(o,i))<55296||n>56319||i+1===s||(a=Xi(o,i+1))<56320||a>57343?e?Qi(o,i):n:e?es(o,i,i+2):a-56320+(n-55296<<10)+65536}},rs={codeAt:ts(!1),charAt:ts(!0)},ns=rs.charAt,as=oa,os=Ir,is=Hi,ss="String Iterator",hs=os.set,cs=os.getterFor(ss);is(String,"String",(function(e){hs(this,{type:ss,string:as(e),index:0})}),(function(){var e,t=cs(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=ns(r,n),t.index+=e.length,{value:e,done:!1})}));var us=s,ls=Ze("iterator"),fs=!us((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ls]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),ds=ge,gs=c,ms=T(T.bind),ps=function(e,t){return ds(e),void 0===t?e:gs?ms(e,t):function(){return e.apply(t,arguments)}},ys=_t.exports,bs=At,vs=J,Ss=TypeError,ws=function(e,t){if(vs(t,e))return e;throw Ss("Incorrect invocation")},As=h,Rs=T,Hs=f,Ts=s,Cs=pa,Ps=wn,Is=d,Os=Le,Es=B,Ls=Object.assign,ks=Object.defineProperty,Ms=Rs([].concat),Bs=!Ls||Ts((function(){if(As&&1!==Ls({b:1},Ls(ks({},"a",{enumerable:!0,get:function(){ks(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ls({},e)[r]||Cs(Ls({},t)).join("")!=n}))?function(e,t){for(var r=Os(e),n=arguments.length,a=1,o=Ps.f,i=Is.f;n>a;)for(var s,h=Es(arguments[a++]),c=o?Ms(Cs(h),o(h)):Cs(h),u=c.length,l=0;u>l;)s=c[l++],As&&!Hs(i,h,s)||(r[s]=h[s]);return r}:Ls,Ds=f,Fs=Pt,Us=pe,xs=Pt,js=function(e,t,r){var n,a;Fs(e);try{if(!(n=Us(e,"return"))){if("throw"===t)throw r;return r}n=Ds(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return Fs(n),r},Ns=Ro,Gs=Ze("iterator"),_s=Array.prototype,Ys=T,zs=s,Ks=N,Ws=ra,Js=tr,qs=function(){},Vs=[],Zs=W("Reflect","construct"),$s=/^\s*(?:class|function)\b/,Qs=Ys($s.exec),Xs=!$s.exec(qs),eh=function(e){if(!Ks(e))return!1;try{return Zs(qs,Vs,e),!0}catch(e){return!1}},th=function(e){if(!Ks(e))return!1;switch(Ws(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xs||!!Qs($s,Js(e))}catch(e){return!0}};th.sham=!0;var rh=!Zs||zs((function(){var e;return eh(eh.call)||!eh(Object)||!eh((function(){e=!0}))||e}))?th:eh,nh=it,ah=At,oh=v,ih=function(e,t,r){var n=nh(t);n in e?ah.f(e,n,oh(0,r)):e[n]=r},sh=ra,hh=pe,ch=Ro,uh=Ze("iterator"),lh=function(e){if(null!=e)return hh(e,uh)||hh(e,"@@iterator")||ch[sh(e)]},fh=f,dh=ge,gh=Pt,mh=ue,ph=lh,yh=TypeError,bh=function(e,t){var r=arguments.length<2?ph(e):t;if(dh(r))return gh(fh(r,e));throw yh(mh(e)+" is not iterable")},vh=ps,Sh=f,wh=Le,Ah=function(e,t,r,n){try{return n?t(xs(r)[0],r[1]):t(r)}catch(t){js(e,"throw",t)}},Rh=function(e){return void 0!==e&&(Ns.Array===e||_s[Gs]===e)},Hh=rh,Th=on,Ch=ih,Ph=bh,Ih=lh,Oh=Array,Eh=en,Lh=on,kh=ih,Mh=Array,Bh=Math.max,Dh=function(e,t,r){for(var n=Lh(e),a=Eh(t,n),o=Eh(void 0===r?n:r,n),i=Mh(Bh(o-a,0)),s=0;a<o;a++,s++)kh(i,s,e[a]);return i.length=s,i},Fh=T,Uh=2147483647,xh=/[^\0-\u007E]/,jh=/[.\u3002\uFF0E\uFF61]/g,Nh="Overflow: input needs wider integers to process",Gh=RangeError,_h=Fh(jh.exec),Yh=Math.floor,zh=String.fromCharCode,Kh=Fh("".charCodeAt),Wh=Fh([].join),Jh=Fh([].push),qh=Fh("".replace),Vh=Fh("".split),Zh=Fh("".toLowerCase),$h=function(e){return e+22+75*(e<26)},Qh=function(e,t,r){var n=0;for(e=r?Yh(e/700):e>>1,e+=Yh(e/t);e>455;)e=Yh(e/35),n+=36;return Yh(n+36*e/(e+38))},Xh=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=Kh(e,r++);if(a>=55296&&a<=56319&&r<n){var o=Kh(e,r++);56320==(64512&o)?Jh(t,((1023&a)<<10)+(1023&o)+65536):(Jh(t,a),r--)}else Jh(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&Jh(t,zh(n));var h=t.length,c=h;for(h&&Jh(t,"-");c<a;){var u=Uh;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var l=c+1;if(u-o>Yh((Uh-i)/l))throw Gh(Nh);for(i+=(u-o)*l,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++i>Uh)throw Gh(Nh);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;Jh(t,zh($h(g+m%p))),f=Yh(m/p),d+=36}Jh(t,zh($h(f))),s=Qh(i,l,c==h),i=0,c++}}i++,o++}return Wh(t,"")},ec=TypeError,tc=function(e,t){if(e<t)throw ec("Not enough arguments");return e},rc=Kr,nc=Dh,ac=Math.floor,oc=function(e,t){var r=e.length,n=ac(r/2);return r<8?ic(e,t):sc(e,oc(nc(e,0,n),t),oc(nc(e,n),t),t)},ic=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},sc=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},hc=qn,cc=o,uc=f,lc=T,fc=h,dc=fs,gc=Kr,mc=function(e,t,r){for(var n in t)rc(e,n,t[n],r);return e},pc=zo,yc=$o,bc=Ir,vc=ws,Sc=N,wc=Be,Ac=ps,Rc=ra,Hc=Pt,Tc=_,Cc=oa,Pc=xa,Ic=v,Oc=bh,Ec=lh,Lc=tc,kc=oc,Mc=Ze("iterator"),Bc="URLSearchParams",Dc="URLSearchParamsIterator",Fc=bc.set,Uc=bc.getterFor(Bc),xc=bc.getterFor(Dc),jc=Object.getOwnPropertyDescriptor,Nc=function(e){if(!fc)return cc[e];var t=jc(cc,e);return t&&t.value},Gc=Nc("fetch"),_c=Nc("Request"),Yc=Nc("Headers"),zc=_c&&_c.prototype,Kc=Yc&&Yc.prototype,Wc=cc.RegExp,Jc=cc.TypeError,qc=cc.decodeURIComponent,Vc=cc.encodeURIComponent,Zc=lc("".charAt),$c=lc([].join),Qc=lc([].push),Xc=lc("".replace),eu=lc([].shift),tu=lc([].splice),ru=lc("".split),nu=lc("".slice),au=/\+/g,ou=Array(4),iu=function(e){return ou[e-1]||(ou[e-1]=Wc("((?:%[\\da-f]{2}){"+e+"})","gi"))},su=function(e){try{return qc(e)}catch(t){return e}},hu=function(e){var t=Xc(e,au," "),r=4;try{return qc(t)}catch(e){for(;r;)t=Xc(t,iu(r--),su);return t}},cu=/[!'()~]|%20/g,uu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},lu=function(e){return uu[e]},fu=function(e){return Xc(Vc(e),cu,lu)},du=yc((function(e,t){Fc(this,{type:Dc,iterator:Oc(Uc(e).entries),kind:t})}),"Iterator",(function(){var e=xc(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),gu=function(e){this.entries=[],this.url=null,void 0!==e&&(Tc(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Zc(e,0)?nu(e,1):e:Cc(e)))};gu.prototype={type:Bc,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,h=Ec(e);if(h)for(r=(t=Oc(e,h)).next;!(n=uc(r,t)).done;){if(o=(a=Oc(Hc(n.value))).next,(i=uc(o,a)).done||(s=uc(o,a)).done||!uc(o,a).done)throw Jc("Expected sequence with length 2");Qc(this.entries,{key:Cc(i.value),value:Cc(s.value)})}else for(var c in e)wc(e,c)&&Qc(this.entries,{key:c,value:Cc(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=ru(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=ru(t,"="),Qc(this.entries,{key:hu(eu(r)),value:hu($c(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Qc(r,fu(e.key)+"="+fu(e.value));return $c(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mu=function(){vc(this,pu);var e=arguments.length>0?arguments[0]:void 0;Fc(this,new gu(e))},pu=mu.prototype;if(mc(pu,{append:function(e,t){Lc(arguments.length,2);var r=Uc(this);Qc(r.entries,{key:Cc(e),value:Cc(t)}),r.updateURL()},delete:function(e){Lc(arguments.length,1);for(var t=Uc(this),r=t.entries,n=Cc(e),a=0;a<r.length;)r[a].key===n?tu(r,a,1):a++;t.updateURL()},get:function(e){Lc(arguments.length,1);for(var t=Uc(this).entries,r=Cc(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Lc(arguments.length,1);for(var t=Uc(this).entries,r=Cc(e),n=[],a=0;a<t.length;a++)t[a].key===r&&Qc(n,t[a].value);return n},has:function(e){Lc(arguments.length,1);for(var t=Uc(this).entries,r=Cc(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Lc(arguments.length,1);for(var r,n=Uc(this),a=n.entries,o=!1,i=Cc(e),s=Cc(t),h=0;h<a.length;h++)(r=a[h]).key===i&&(o?tu(a,h--,1):(o=!0,r.value=s));o||Qc(a,{key:i,value:s}),n.updateURL()},sort:function(){var e=Uc(this);kc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Uc(this).entries,n=Ac(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new du(this,"keys")},values:function(){return new du(this,"values")},entries:function(){return new du(this,"entries")}},{enumerable:!0}),gc(pu,Mc,pu.entries,{name:"entries"}),gc(pu,"toString",(function(){return Uc(this).serialize()}),{enumerable:!0}),pc(mu,Bc),hc({global:!0,constructor:!0,forced:!dc},{URLSearchParams:mu}),!dc&&Sc(Yc)){var yu=lc(Kc.has),bu=lc(Kc.set),vu=function(e){if(Tc(e)){var t,r=e.body;if(Rc(r)===Bc)return t=e.headers?new Yc(e.headers):new Yc,yu(t,"content-type")||bu(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Pc(e,{body:Ic(0,Cc(r)),headers:Ic(0,t)})}return e};if(Sc(Gc)&&hc({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Gc(e,arguments.length>1?vu(arguments[1]):{})}}),Sc(_c)){var Su=function(e){return vc(this,zc),new _c(e,arguments.length>1?vu(arguments[1]):{})};zc.constructor=Su,Su.prototype=zc,hc({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Su})}}var wu,Au=qn,Ru=h,Hu=fs,Tu=o,Cu=ps,Pu=T,Iu=Kr,Ou=function(e,t,r){return r.get&&ys(r.get,t,{getter:!0}),r.set&&ys(r.set,t,{setter:!0}),bs.f(e,t,r)},Eu=ws,Lu=Be,ku=Bs,Mu=function(e){var t=wh(e),r=Hh(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=vh(a,n>2?arguments[2]:void 0));var i,s,h,c,u,l,f=Ih(t),d=0;if(!f||this===Oh&&Rh(f))for(i=Th(t),s=r?new this(i):Oh(i);i>d;d++)l=o?a(t[d],d):t[d],Ch(s,d,l);else for(u=(c=Ph(t,f)).next,s=r?new this:[];!(h=Sh(u,c)).done;d++)l=o?Ah(c,a,[h.value,d],!0):h.value,Ch(s,d,l);return s.length=d,s},Bu=Dh,Du=rs.codeAt,Fu=function(e){var t,r,n=[],a=Vh(qh(Zh(e),jh,"."),".");for(t=0;t<a.length;t++)r=a[t],Jh(n,_h(xh,r)?"xn--"+Xh(r):r);return Wh(n,".")},Uu=oa,xu=zo,ju=tc,Nu={URLSearchParams:mu,getState:Uc},Gu=Ir,_u=Gu.set,Yu=Gu.getterFor("URL"),zu=Nu.URLSearchParams,Ku=Nu.getState,Wu=Tu.URL,Ju=Tu.TypeError,qu=Tu.parseInt,Vu=Math.floor,Zu=Math.pow,$u=Pu("".charAt),Qu=Pu(/./.exec),Xu=Pu([].join),el=Pu(1..toString),tl=Pu([].pop),rl=Pu([].push),nl=Pu("".replace),al=Pu([].shift),ol=Pu("".split),il=Pu("".slice),sl=Pu("".toLowerCase),hl=Pu([].unshift),cl="Invalid scheme",ul="Invalid host",ll="Invalid port",fl=/[a-z]/i,dl=/[\d+-.a-z]/i,gl=/\d/,ml=/^0x/i,pl=/^[0-7]+$/,yl=/^\d+$/,bl=/^[\da-f]+$/i,vl=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Sl=/[\0\t\n\r #/:<>?@[\\\]^|]/,wl=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Al=/[\t\n\r]/g,Rl=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)hl(t,e%256),e=Vu(e/256);return Xu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=el(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Hl={},Tl=ku({},Hl,{" ":1,'"':1,"<":1,">":1,"`":1}),Cl=ku({},Tl,{"#":1,"?":1,"{":1,"}":1}),Pl=ku({},Cl,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Il=function(e,t){var r=Du(e,0);return r>32&&r<127&&!Lu(t,e)?e:encodeURIComponent(e)},Ol={ftp:21,file:null,http:80,https:443,ws:80,wss:443},El=function(e,t){var r;return 2==e.length&&Qu(fl,$u(e,0))&&(":"==(r=$u(e,1))||!t&&"|"==r)},Ll=function(e){var t;return e.length>1&&El(il(e,0,2))&&(2==e.length||"/"===(t=$u(e,2))||"\\"===t||"?"===t||"#"===t)},kl=function(e){return"."===e||"%2e"===sl(e)},Ml={},Bl={},Dl={},Fl={},Ul={},xl={},jl={},Nl={},Gl={},_l={},Yl={},zl={},Kl={},Wl={},Jl={},ql={},Vl={},Zl={},$l={},Ql={},Xl={},ef=function(e,t,r){var n,a,o,i=Uu(e);if(t){if(a=this.parse(i))throw Ju(a);this.searchParams=null}else{if(void 0!==r&&(n=new ef(r,!0)),a=this.parse(i,null,n))throw Ju(a);(o=Ku(new zu)).bindURL(this),this.searchParams=o}};ef.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,h=this,c=t||Ml,u=0,l="",f=!1,d=!1,g=!1;for(e=Uu(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=nl(e,wl,"")),e=nl(e,Al,""),n=Mu(e);u<=n.length;){switch(a=n[u],c){case Ml:if(!a||!Qu(fl,a)){if(t)return cl;c=Dl;continue}l+=sl(a),c=Bl;break;case Bl:if(a&&(Qu(dl,a)||"+"==a||"-"==a||"."==a))l+=sl(a);else{if(":"!=a){if(t)return cl;l="",c=Dl,u=0;continue}if(t&&(h.isSpecial()!=Lu(Ol,l)||"file"==l&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=l,t)return void(h.isSpecial()&&Ol[h.scheme]==h.port&&(h.port=null));l="","file"==h.scheme?c=Wl:h.isSpecial()&&r&&r.scheme==h.scheme?c=Fl:h.isSpecial()?c=Nl:"/"==n[u+1]?(c=Ul,u++):(h.cannotBeABaseURL=!0,rl(h.path,""),c=$l)}break;case Dl:if(!r||r.cannotBeABaseURL&&"#"!=a)return cl;if(r.cannotBeABaseURL&&"#"==a){h.scheme=r.scheme,h.path=Bu(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,c=Xl;break}c="file"==r.scheme?Wl:xl;continue;case Fl:if("/"!=a||"/"!=n[u+1]){c=xl;continue}c=Gl,u++;break;case Ul:if("/"==a){c=_l;break}c=Zl;continue;case xl:if(h.scheme=r.scheme,a==wu)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Bu(r.path),h.query=r.query;else if("/"==a||"\\"==a&&h.isSpecial())c=jl;else if("?"==a)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Bu(r.path),h.query="",c=Ql;else{if("#"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Bu(r.path),h.path.length--,c=Zl;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Bu(r.path),h.query=r.query,h.fragment="",c=Xl}break;case jl:if(!h.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,c=Zl;continue}c=_l}else c=Gl;break;case Nl:if(c=Gl,"/"!=a||"/"!=$u(l,u+1))continue;u++;break;case Gl:if("/"!=a&&"\\"!=a){c=_l;continue}break;case _l:if("@"==a){f&&(l="%40"+l),f=!0,o=Mu(l);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=Il(p,Pl);g?h.password+=y:h.username+=y}else g=!0}l=""}else if(a==wu||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(f&&""==l)return"Invalid authority";u-=Mu(l).length+1,l="",c=Yl}else l+=a;break;case Yl:case zl:if(t&&"file"==h.scheme){c=ql;continue}if(":"!=a||d){if(a==wu||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(h.isSpecial()&&""==l)return ul;if(t&&""==l&&(h.includesCredentials()||null!==h.port))return;if(i=h.parseHost(l))return i;if(l="",c=Vl,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),l+=a}else{if(""==l)return ul;if(i=h.parseHost(l))return i;if(l="",c=Kl,t==zl)return}break;case Kl:if(!Qu(gl,a)){if(a==wu||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()||t){if(""!=l){var b=qu(l,10);if(b>65535)return ll;h.port=h.isSpecial()&&b===Ol[h.scheme]?null:b,l=""}if(t)return;c=Vl;continue}return ll}l+=a;break;case Wl:if(h.scheme="file","/"==a||"\\"==a)c=Jl;else{if(!r||"file"!=r.scheme){c=Zl;continue}if(a==wu)h.host=r.host,h.path=Bu(r.path),h.query=r.query;else if("?"==a)h.host=r.host,h.path=Bu(r.path),h.query="",c=Ql;else{if("#"!=a){Ll(Xu(Bu(n,u),""))||(h.host=r.host,h.path=Bu(r.path),h.shortenPath()),c=Zl;continue}h.host=r.host,h.path=Bu(r.path),h.query=r.query,h.fragment="",c=Xl}}break;case Jl:if("/"==a||"\\"==a){c=ql;break}r&&"file"==r.scheme&&!Ll(Xu(Bu(n,u),""))&&(El(r.path[0],!0)?rl(h.path,r.path[0]):h.host=r.host),c=Zl;continue;case ql:if(a==wu||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&El(l))c=Zl;else if(""==l){if(h.host="",t)return;c=Vl}else{if(i=h.parseHost(l))return i;if("localhost"==h.host&&(h.host=""),t)return;l="",c=Vl}continue}l+=a;break;case Vl:if(h.isSpecial()){if(c=Zl,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=wu&&(c=Zl,"/"!=a))continue}else h.fragment="",c=Xl;else h.query="",c=Ql;break;case Zl:if(a==wu||"/"==a||"\\"==a&&h.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=sl(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(h.shortenPath(),"/"==a||"\\"==a&&h.isSpecial()||rl(h.path,"")):kl(l)?"/"==a||"\\"==a&&h.isSpecial()||rl(h.path,""):("file"==h.scheme&&!h.path.length&&El(l)&&(h.host&&(h.host=""),l=$u(l,0)+":"),rl(h.path,l)),l="","file"==h.scheme&&(a==wu||"?"==a||"#"==a))for(;h.path.length>1&&""===h.path[0];)al(h.path);"?"==a?(h.query="",c=Ql):"#"==a&&(h.fragment="",c=Xl)}else l+=Il(a,Cl);break;case $l:"?"==a?(h.query="",c=Ql):"#"==a?(h.fragment="",c=Xl):a!=wu&&(h.path[0]+=Il(a,Hl));break;case Ql:t||"#"!=a?a!=wu&&("'"==a&&h.isSpecial()?h.query+="%27":h.query+="#"==a?"%23":Il(a,Hl)):(h.fragment="",c=Xl);break;case Xl:a!=wu&&(h.fragment+=Il(a,Tl))}u++}},parseHost:function(e){var t,r,n;if("["==$u(e,0)){if("]"!=$u(e,e.length-1))return ul;if(t=function(e){var t,r,n,a,o,i,s,h=[0,0,0,0,0,0,0,0],c=0,u=null,l=0,f=function(){return $u(e,l)};if(":"==f()){if(":"!=$u(e,1))return;l+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&Qu(bl,f());)t=16*t+qu(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,c>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;l++}if(!Qu(gl,f()))return;for(;Qu(gl,f());){if(o=qu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;l++}h[c]=256*h[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;h[c++]=t}else{if(null!==u)return;l++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)s=h[c],h[c--]=h[u+i-1],h[u+--i]=s;else if(8!=c)return;return h}(il(e,1,-1)),!t)return ul;this.host=t}else if(this.isSpecial()){if(e=Fu(e),Qu(vl,e))return ul;if(t=function(e){var t,r,n,a,o,i,s,h=ol(e,".");if(h.length&&""==h[h.length-1]&&h.length--,(t=h.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=h[n]))return e;if(o=10,a.length>1&&"0"==$u(a,0)&&(o=Qu(ml,a)?16:8,a=il(a,8==o?1:2)),""===a)i=0;else{if(!Qu(10==o?yl:8==o?pl:bl,a))return e;i=qu(a,o)}rl(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=Zu(256,5-t))return null}else if(i>255)return null;for(s=tl(r),n=0;n<r.length;n++)s+=r[n]*Zu(256,3-n);return s}(e),null===t)return ul;this.host=t}else{if(Qu(Sl,e))return ul;for(t="",r=Mu(e),n=0;n<r.length;n++)t+=Il(r[n],Hl);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Lu(Ol,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&El(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,h=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Rl(a),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+Xu(i,"/"):"",null!==s&&(c+="?"+s),null!==h&&(c+="#"+h),c},setHref:function(e){var t=this.parse(e);if(t)throw Ju(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new tf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Rl(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Uu(e)+":",Ml)},getUsername:function(){return this.username},setUsername:function(e){var t=Mu(Uu(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Il(t[r],Pl)}},getPassword:function(){return this.password},setPassword:function(e){var t=Mu(Uu(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Il(t[r],Pl)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Rl(e):Rl(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Yl)},getHostname:function(){var e=this.host;return null===e?"":Rl(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,zl)},getPort:function(){var e=this.port;return null===e?"":Uu(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Uu(e))?this.port=null:this.parse(e,Kl))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Xu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Vl))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Uu(e))?this.query=null:("?"==$u(e,0)&&(e=il(e,1)),this.query="",this.parse(e,Ql)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Uu(e))?("#"==$u(e,0)&&(e=il(e,1)),this.fragment="",this.parse(e,Xl)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var tf=function(e){var t=Eu(this,rf),r=ju(arguments.length,1)>1?arguments[1]:void 0,n=_u(t,new ef(e,!1,r));Ru||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},rf=tf.prototype,nf=function(e,t){return{get:function(){return Yu(this)[e]()},set:t&&function(e){return Yu(this)[t](e)},configurable:!0,enumerable:!0}};if(Ru&&(Ou(rf,"href",nf("serialize","setHref")),Ou(rf,"origin",nf("getOrigin")),Ou(rf,"protocol",nf("getProtocol","setProtocol")),Ou(rf,"username",nf("getUsername","setUsername")),Ou(rf,"password",nf("getPassword","setPassword")),Ou(rf,"host",nf("getHost","setHost")),Ou(rf,"hostname",nf("getHostname","setHostname")),Ou(rf,"port",nf("getPort","setPort")),Ou(rf,"pathname",nf("getPathname","setPathname")),Ou(rf,"search",nf("getSearch","setSearch")),Ou(rf,"searchParams",nf("getSearchParams")),Ou(rf,"hash",nf("getHash","setHash"))),Iu(rf,"toJSON",(function(){return Yu(this).serialize()}),{enumerable:!0}),Iu(rf,"toString",(function(){return Yu(this).serialize()}),{enumerable:!0}),Wu){var af=Wu.createObjectURL,of=Wu.revokeObjectURL;af&&Iu(tf,"createObjectURL",Cu(af,Wu)),of&&Iu(tf,"revokeObjectURL",Cu(of,Wu))}xu(tf,"URL"),Au({global:!0,constructor:!0,forced:!Hu,sham:!Ru},{URL:tf});var sf,hf=_,cf=O,uf=Ze("match"),lf=function(e){var t;return hf(e)&&(void 0!==(t=e[uf])?!!t:"RegExp"==cf(e))},ff=TypeError,df=Ze("match"),gf=qn,mf=T,pf=i.f,yf=nn,bf=oa,vf=function(e){if(lf(e))throw ff("The method doesn't accept regular expressions");return e},Sf=F,wf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[df]=!1,"/./"[e](t)}catch(e){}}return!1},Af=mf("".startsWith),Rf=mf("".slice),Hf=Math.min,Tf=wf("startsWith");gf({target:"String",proto:!0,forced:!!(Tf||(sf=pf(String.prototype,"startsWith"),!sf||sf.writable))&&!Tf},{startsWith:function(e){var t=bf(Sf(this));vf(e);var r=yf(Hf(arguments.length>1?arguments[1]:void 0,t.length)),n=bf(e);return Af?Af(t,n,r):Rf(t,r,r+n.length)===n}});var Cf=f,Pf=Be,If=J,Of=sa,Ef=RegExp.prototype,Lf=qt.PROPER,kf=Kr,Mf=Pt,Bf=oa,Df=s,Ff=function(e){var t=e.flags;return void 0!==t||"flags"in Ef||Pf(e,"flags")||!If(Ef,e)?t:Cf(Of,e)},Uf="toString",xf=RegExp.prototype.toString,jf=Df((function(){return"/a/b"!=xf.call({source:"a",flags:"b"})})),Nf=Lf&&xf.name!=Uf;(jf||Nf)&&kf(RegExp.prototype,Uf,(function(){var e=Mf(this);return"/"+Bf(e.source)+"/"+Bf(Ff(e))}),{unsafe:!0});var Gf={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},_f={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function Yf(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:_f[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function zf(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Kf(e){return e<10?"0"+e:""+e}function Wf(e){return e<0?"-00"+Wf(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function Jf(e){return Wf(e.getFullYear())+"-"+Kf(e.getMonth()+1)+"-"+Kf(e.getDate())}function qf(e){const r=e.getDesc();if("Fast begins"===r||"Fast ends"===r)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"];case t.flags.MINOR_HOLIDAY:return["holiday","minor"];case t.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(r){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}function Vf(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function Zf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=Gf[e.getDesc()]||Gf[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const $f=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function Qf(e,n){const a=e.getFlags();if(a&$f)return"";const o=a&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function Xf(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function ed(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&t.flags.DAF_YOMI)||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const td='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',rd={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function nd(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let h="",c="",u="",l='"true"';const f=Boolean(e.eventTime);let d=ed(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);c=h='"'.concat(n,'"'),u=s,l='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&r.location&&r.location.name){const e=r.location.name,t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else if(m&t.flags.DAF_YOMI){const e=d.indexOf(": ");-1!=e&&(g=d.substring(0,e),d=d.substring(e+2))}else{const t=rd[qf(e)[0]];t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||Zf(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(h,",").concat(u,",").concat(c,",").concat(l,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function ad(e){return Jf(e.getDate().greg())}function od(e,n){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),h="object"==typeof n.location?n.location.getTzid():"UTC",c=o?t.Zmanim.formatISOWithTimeZone(h,e.eventTime):Jf(s),u=qf(e),l=e.getFlags();let f=ed(e)?e.renderBrief(n.locale):e.render(n.locale);const d=e.getDesc(),g="Havdalah"===d||"Candle lighting"===d;if(g){f+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n)}const m={title:f,date:c};o||(m.hdate=i.toString()),m.category=u[0],u.length>1&&(m.subcat=u[1]),"holiday"===u[0]&&l&t.flags.CHAG&&(m.yomtov=!0),f!=d&&(m.title_orig=d);const p=e.renderBrief("he");if(p&&(m.hebrew=t.Locale.hebrewStripNikkud(p)),!g){if(a){const a=n.il,o=l===t.flags.PARSHA_HASHAVUA,s=o?r.getLeyningForParshaHaShavua(e,a):r.getLeyningForHoliday(e,a);if(s){m.leyning=sd(s);const t=i.getFullYear();if(o&&!a&&t>=5745){const t=r.getTriennialForParshaHaShavua(e);t&&(m.leyning.triennial=id({},t.aliyot))}}}const o=e.url();if(o){const e=n.utmSource||"js",t=n.utmMedium||"api",r=n.utmCampaign;m.link=Xf(o,n.il,e,t,r)}}if(l&t.flags.OMER_COUNT&&(m.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),l&t.flags.HEBREW_DATE){const e=i.getFullYear(),r=i.getMonthName(),n=i.getDate();m.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const y=e.memo||Gf[e.basename()];return y?m.memo=y:void 0!==e.linkedEvent&&(m.memo=e.linkedEvent.render(n.locale)),n.includeEvent&&(m.ev=e),m}function id(e,t){return Object.keys(t).forEach((n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=r.formatAliyahWithBook(a)}})),e}function sd(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&id(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const hd={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function cd(e,r){let n=e.render();const a=e.getDate().greg(),o=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r.evPubDate,a,r.lastBuildDate),i=r.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",c=r&&r.utmSource||"shabbat1c",u=r&&r.utmMedium||"rss",l=function(e,r,n,a,o,i){let s,h;const c=e.eventTime||e.getDate().greg(),u=t.Zmanim.formatISOWithTimeZone(n,c),l=u.substring(0,u.indexOf("T")),f=l.replace(/-/g,""),d=zf(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=Xf(m,r,o,i).replace(/&/g,"&"),h="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(l),t=Xf(e,r,o,i).replace(/&/g,"&");h=e.replace(/&/g,"&")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,h]}(e,s,h,r.mainUrl,c,u),f=l[0],d=l[1],g=qf(e)[0],m=e.getDesc();let p;if("Havdalah"===m||"Candle lighting"===m){const r=n.indexOf(": ");if(-1!=r){const a={location:i,il:s,locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);n=n.substring(0,r)+": "+o}}else p=e.getFlags()&t.flags.PARSHA_HASHAVUA?Qf(e,s):e.memo||Gf[e.basename()];const y=r.dayFormat,b=p||y.format(a),v="candles"==g?"<geo:lat>".concat(i.getLatitude(),"</geo:lat>\n<geo:long>").concat(i.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(n,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(o,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=Xf,e.countryNames=_f,e.eventToClassicApiObject=od,e.eventToCsv=nd,e.eventToFullCalendar=function(e,r,n){const a=qf(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:ed(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):Jf(e.getDate().greg()),allDay:!i,className:a.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=t.Locale.hebrewStripNikkud(h));const c=e.url();c&&(s.url=Xf(c,n,"js","fc"));const u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){const r=o&t.flags.PARSHA_HASHAVUA?Qf(e,n):e.memo||Gf[e.basename()];r?s.description=r:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=cd,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:Vf(e,t),date:(new Date).toISOString()};return n.location=Yf(t.location),e.length&&(n.range={start:ad(e[0]),end:ad(e[e.length-1])}),n.items=e.map((e=>od(e,t,r))),n},e.eventsToCsv=function(e,t){return[td].concat(e.map((e=>nd(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||Vf(e,t),h=t.description||s,c=t.utmSource||"shabbat1c",u=t.utmMedium||"rss",l=Xf(n,r&&r.getIsrael(),c,u,t.utmCampaign).replace(/&/g,"&"),f=t.selfUrl.replace(/&/g,"&"),d=t.lang||hd[t.locale]||t.locale||"en-US";let g='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(s,"</title>\n<link>").concat(l,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(h,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=cd(e,t)})),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=Vf,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+zf(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=qf,e.getHolidayDescription=Zf,e.holidayDescription=Gf,e.locationToPlainObj=Yf,e.makeAnchor=zf,e.makeTorahMemoText=Qf,e.pad2=Kf,e.pad4=Wf,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=ed,e.toISOString=Jf,Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning);
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
/*! @hebcal/rest-api
|
|
1
|
+
/*! @hebcal/rest-api v4.0.0 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var core = require('@hebcal/core');
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var leyn__namespace = /*#__PURE__*/_interopNamespace(leyn);
|
|
7
|
+
var leyning = require('@hebcal/leyning');
|
|
28
8
|
|
|
29
9
|
var Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights";var Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";var Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";var Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";var Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";var Sukkot="Feast of Booths";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
|
|
30
10
|
|
|
@@ -142,17 +122,6 @@ function pad4(number) {
|
|
|
142
122
|
|
|
143
123
|
return '' + number;
|
|
144
124
|
}
|
|
145
|
-
/**
|
|
146
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
147
|
-
* @deprecated
|
|
148
|
-
* @param {string} tzid
|
|
149
|
-
* @param {Date} date
|
|
150
|
-
* @return {string}
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
function timeZoneOffsetStr(tzid, date) {
|
|
154
|
-
return core.Zmanim.timeZoneOffset(tzid, date);
|
|
155
|
-
}
|
|
156
125
|
/**
|
|
157
126
|
* Returns just the date portion as YYYY-MM-DD
|
|
158
127
|
* @param {Date} d
|
|
@@ -162,20 +131,6 @@ function timeZoneOffsetStr(tzid, date) {
|
|
|
162
131
|
function toISOString(d) {
|
|
163
132
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
164
133
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Returns a string like "2018-09-01T12:30:00-05:00"
|
|
167
|
-
* @deprecated
|
|
168
|
-
* @param {Date} date
|
|
169
|
-
* @param {string} timeStr must be formatted with only hours and minutes, like "17:12"
|
|
170
|
-
* @param {string} tzid like "America/New_York"
|
|
171
|
-
* @return {string}
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
function toISOStringWithTimezone(date, timeStr, tzid) {
|
|
175
|
-
const str = toISOString(date);
|
|
176
|
-
if (!timeStr) return str;
|
|
177
|
-
return str + 'T' + timeStr + ':00' + core.Zmanim.timeZoneOffset(tzid, date);
|
|
178
|
-
}
|
|
179
134
|
/**
|
|
180
135
|
* Returns a category and subcategory name
|
|
181
136
|
* @param {Event} ev
|
|
@@ -356,7 +311,7 @@ function makeTorahMemoText(ev, il) {
|
|
|
356
311
|
return '';
|
|
357
312
|
}
|
|
358
313
|
|
|
359
|
-
const reading = mask & core.flags.PARSHA_HASHAVUA ?
|
|
314
|
+
const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
|
|
360
315
|
let memo = '';
|
|
361
316
|
|
|
362
317
|
if (reading && (reading.summary || reading.haftara)) {
|
|
@@ -611,7 +566,7 @@ function eventsToClassicApi(events, options, leyning = true) {
|
|
|
611
566
|
* @return {Object}
|
|
612
567
|
*/
|
|
613
568
|
|
|
614
|
-
function eventToClassicApiObject(ev, options, leyning = true) {
|
|
569
|
+
function eventToClassicApiObject(ev, options, leyning$1 = true) {
|
|
615
570
|
const timed = Boolean(ev.eventTime);
|
|
616
571
|
const hd = ev.getDate();
|
|
617
572
|
const dt = hd.greg();
|
|
@@ -658,20 +613,20 @@ function eventToClassicApiObject(ev, options, leyning = true) {
|
|
|
658
613
|
}
|
|
659
614
|
|
|
660
615
|
if (!candles) {
|
|
661
|
-
if (leyning) {
|
|
616
|
+
if (leyning$1) {
|
|
662
617
|
const il = options.il;
|
|
663
618
|
const isParsha = mask === core.flags.PARSHA_HASHAVUA;
|
|
664
|
-
const reading = isParsha ?
|
|
619
|
+
const reading = isParsha ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
|
|
665
620
|
|
|
666
621
|
if (reading) {
|
|
667
622
|
result.leyning = formatLeyningResult(reading);
|
|
668
623
|
const hyear = hd.getFullYear();
|
|
669
624
|
|
|
670
625
|
if (isParsha && !il && hyear >= 5745) {
|
|
671
|
-
const triReading =
|
|
626
|
+
const triReading = leyning.getTriennialForParshaHaShavua(ev);
|
|
672
627
|
|
|
673
628
|
if (triReading) {
|
|
674
|
-
result.leyning.triennial = formatAliyot({}, triReading);
|
|
629
|
+
result.leyning.triennial = formatAliyot({}, triReading.aliyot);
|
|
675
630
|
}
|
|
676
631
|
}
|
|
677
632
|
}
|
|
@@ -738,13 +693,13 @@ function formatAliyot(result, aliyot) {
|
|
|
738
693
|
|
|
739
694
|
if (typeof aliyah !== 'undefined') {
|
|
740
695
|
const k = num == 'M' ? 'maftir' : num;
|
|
741
|
-
result[k] =
|
|
696
|
+
result[k] = leyning.formatAliyahWithBook(aliyah);
|
|
742
697
|
}
|
|
743
698
|
});
|
|
744
699
|
return result;
|
|
745
700
|
}
|
|
746
701
|
/**
|
|
747
|
-
* @param {
|
|
702
|
+
* @param {Leyning} reading
|
|
748
703
|
* @return {Object}
|
|
749
704
|
*/
|
|
750
705
|
|
|
@@ -818,32 +773,7 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
|
|
|
818
773
|
|
|
819
774
|
return [link, guid];
|
|
820
775
|
}
|
|
821
|
-
/**
|
|
822
|
-
* @param {Event[]} events
|
|
823
|
-
* @param {Location} location
|
|
824
|
-
* @param {string} mainUrl
|
|
825
|
-
* @param {string} selfUrl
|
|
826
|
-
* @param {string} [lang] language such as 'he' (default 'en-US')
|
|
827
|
-
* @param {boolean} [evPubDate] if true, use event time as pubDate (false uses lastBuildDate)
|
|
828
|
-
* @return {string}
|
|
829
|
-
*/
|
|
830
|
-
|
|
831
776
|
|
|
832
|
-
function eventsToRss(events, location, mainUrl, selfUrl, lang = 'en-US', evPubDate = true) {
|
|
833
|
-
const cityDescr = location.getName();
|
|
834
|
-
const options = {
|
|
835
|
-
location,
|
|
836
|
-
mainUrl,
|
|
837
|
-
selfUrl,
|
|
838
|
-
lang,
|
|
839
|
-
evPubDate,
|
|
840
|
-
title: core.Locale.gettext('Shabbat') + ` Times for ${cityDescr}`,
|
|
841
|
-
description: `Weekly Shabbat candle lighting times for ${cityDescr}`,
|
|
842
|
-
utmSource: 'shabbat1c',
|
|
843
|
-
utmMedium: 'rss'
|
|
844
|
-
};
|
|
845
|
-
return eventsToRss2(events, options);
|
|
846
|
-
}
|
|
847
777
|
const localeToLg = {
|
|
848
778
|
's': 'en',
|
|
849
779
|
'a': 'en',
|
|
@@ -924,28 +854,15 @@ function getPubDate(ev, evPubDate, evDate, lastBuildDate) {
|
|
|
924
854
|
|
|
925
855
|
|
|
926
856
|
function eventToRssItem2(ev, options) {
|
|
927
|
-
return eventToRssItem(ev, options.evPubDate, options.lastBuildDate, options.dayFormat, options.location, options.mainUrl, options);
|
|
928
|
-
}
|
|
929
|
-
/**
|
|
930
|
-
* @param {Event} ev
|
|
931
|
-
* @param {boolean} evPubDate
|
|
932
|
-
* @param {string} lastBuildDate
|
|
933
|
-
* @param {Intl.DateTimeFormat} dayFormat
|
|
934
|
-
* @param {Location} location
|
|
935
|
-
* @param {string} mainUrl
|
|
936
|
-
* @param {CalOptions} [options]
|
|
937
|
-
* @return {string}
|
|
938
|
-
*/
|
|
939
|
-
|
|
940
|
-
function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, options) {
|
|
941
857
|
let subj = ev.render();
|
|
942
858
|
const evDate = ev.getDate().greg();
|
|
943
|
-
const pubDate = getPubDate(ev, evPubDate, evDate, lastBuildDate);
|
|
859
|
+
const pubDate = getPubDate(ev, options.evPubDate, evDate, options.lastBuildDate);
|
|
860
|
+
const location = options.location;
|
|
944
861
|
const il = location ? location.getIsrael() : false;
|
|
945
862
|
const tzid = location ? location.getTzid() : 'UTC';
|
|
946
863
|
const utmSource = options && options.utmSource || 'shabbat1c';
|
|
947
864
|
const utmMedium = options && options.utmMedium || 'rss';
|
|
948
|
-
const linkGuid = getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium);
|
|
865
|
+
const linkGuid = getLinkAndGuid(ev, il, tzid, options.mainUrl, utmSource, utmMedium);
|
|
949
866
|
const link = linkGuid[0];
|
|
950
867
|
const guid = linkGuid[1];
|
|
951
868
|
const categories = getEventCategories(ev);
|
|
@@ -970,6 +887,7 @@ function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainU
|
|
|
970
887
|
memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
|
|
971
888
|
}
|
|
972
889
|
|
|
890
|
+
const dayFormat = options.dayFormat;
|
|
973
891
|
const description = memo || dayFormat.format(evDate);
|
|
974
892
|
const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : '';
|
|
975
893
|
return `<item>
|
|
@@ -1041,11 +959,9 @@ exports.countryNames = countryNames;
|
|
|
1041
959
|
exports.eventToClassicApiObject = eventToClassicApiObject;
|
|
1042
960
|
exports.eventToCsv = eventToCsv;
|
|
1043
961
|
exports.eventToFullCalendar = eventToFullCalendar;
|
|
1044
|
-
exports.eventToRssItem = eventToRssItem;
|
|
1045
962
|
exports.eventToRssItem2 = eventToRssItem2;
|
|
1046
963
|
exports.eventsToClassicApi = eventsToClassicApi;
|
|
1047
964
|
exports.eventsToCsv = eventsToCsv;
|
|
1048
|
-
exports.eventsToRss = eventsToRss;
|
|
1049
965
|
exports.eventsToRss2 = eventsToRss2;
|
|
1050
966
|
exports.getCalendarTitle = getCalendarTitle;
|
|
1051
967
|
exports.getDownloadFilename = getDownloadFilename;
|
|
@@ -1059,6 +975,4 @@ exports.pad2 = pad2;
|
|
|
1059
975
|
exports.pad4 = pad4;
|
|
1060
976
|
exports.renderTitleWithoutTime = renderTitleWithoutTime;
|
|
1061
977
|
exports.shouldRenderBrief = shouldRenderBrief;
|
|
1062
|
-
exports.timeZoneOffsetStr = timeZoneOffsetStr;
|
|
1063
978
|
exports.toISOString = toISOString;
|
|
1064
|
-
exports.toISOStringWithTimezone = toISOStringWithTimezone;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @hebcal/rest-api
|
|
2
|
-
import { flags, HDate,
|
|
3
|
-
import
|
|
1
|
+
/*! @hebcal/rest-api v4.0.0 */
|
|
2
|
+
import { flags, HDate, HebrewCalendar, Zmanim, Locale, gematriya } from '@hebcal/core';
|
|
3
|
+
import { getLeyningForParshaHaShavua, getLeyningForHoliday, getTriennialForParshaHaShavua, formatAliyahWithBook } from '@hebcal/leyning';
|
|
4
4
|
|
|
5
5
|
const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
|
|
6
6
|
|
|
@@ -118,17 +118,6 @@ function pad4(number) {
|
|
|
118
118
|
|
|
119
119
|
return '' + number;
|
|
120
120
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
123
|
-
* @deprecated
|
|
124
|
-
* @param {string} tzid
|
|
125
|
-
* @param {Date} date
|
|
126
|
-
* @return {string}
|
|
127
|
-
*/
|
|
128
|
-
|
|
129
|
-
function timeZoneOffsetStr(tzid, date) {
|
|
130
|
-
return Zmanim.timeZoneOffset(tzid, date);
|
|
131
|
-
}
|
|
132
121
|
/**
|
|
133
122
|
* Returns just the date portion as YYYY-MM-DD
|
|
134
123
|
* @param {Date} d
|
|
@@ -138,20 +127,6 @@ function timeZoneOffsetStr(tzid, date) {
|
|
|
138
127
|
function toISOString(d) {
|
|
139
128
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
140
129
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Returns a string like "2018-09-01T12:30:00-05:00"
|
|
143
|
-
* @deprecated
|
|
144
|
-
* @param {Date} date
|
|
145
|
-
* @param {string} timeStr must be formatted with only hours and minutes, like "17:12"
|
|
146
|
-
* @param {string} tzid like "America/New_York"
|
|
147
|
-
* @return {string}
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
function toISOStringWithTimezone(date, timeStr, tzid) {
|
|
151
|
-
const str = toISOString(date);
|
|
152
|
-
if (!timeStr) return str;
|
|
153
|
-
return str + 'T' + timeStr + ':00' + Zmanim.timeZoneOffset(tzid, date);
|
|
154
|
-
}
|
|
155
130
|
/**
|
|
156
131
|
* Returns a category and subcategory name
|
|
157
132
|
* @param {Event} ev
|
|
@@ -332,7 +307,7 @@ function makeTorahMemoText(ev, il) {
|
|
|
332
307
|
return '';
|
|
333
308
|
}
|
|
334
309
|
|
|
335
|
-
const reading = mask & flags.PARSHA_HASHAVUA ?
|
|
310
|
+
const reading = mask & flags.PARSHA_HASHAVUA ? getLeyningForParshaHaShavua(ev, il) : getLeyningForHoliday(ev, il);
|
|
336
311
|
let memo = '';
|
|
337
312
|
|
|
338
313
|
if (reading && (reading.summary || reading.haftara)) {
|
|
@@ -637,17 +612,17 @@ function eventToClassicApiObject(ev, options, leyning = true) {
|
|
|
637
612
|
if (leyning) {
|
|
638
613
|
const il = options.il;
|
|
639
614
|
const isParsha = mask === flags.PARSHA_HASHAVUA;
|
|
640
|
-
const reading = isParsha ?
|
|
615
|
+
const reading = isParsha ? getLeyningForParshaHaShavua(ev, il) : getLeyningForHoliday(ev, il);
|
|
641
616
|
|
|
642
617
|
if (reading) {
|
|
643
618
|
result.leyning = formatLeyningResult(reading);
|
|
644
619
|
const hyear = hd.getFullYear();
|
|
645
620
|
|
|
646
621
|
if (isParsha && !il && hyear >= 5745) {
|
|
647
|
-
const triReading =
|
|
622
|
+
const triReading = getTriennialForParshaHaShavua(ev);
|
|
648
623
|
|
|
649
624
|
if (triReading) {
|
|
650
|
-
result.leyning.triennial = formatAliyot({}, triReading);
|
|
625
|
+
result.leyning.triennial = formatAliyot({}, triReading.aliyot);
|
|
651
626
|
}
|
|
652
627
|
}
|
|
653
628
|
}
|
|
@@ -714,13 +689,13 @@ function formatAliyot(result, aliyot) {
|
|
|
714
689
|
|
|
715
690
|
if (typeof aliyah !== 'undefined') {
|
|
716
691
|
const k = num == 'M' ? 'maftir' : num;
|
|
717
|
-
result[k] =
|
|
692
|
+
result[k] = formatAliyahWithBook(aliyah);
|
|
718
693
|
}
|
|
719
694
|
});
|
|
720
695
|
return result;
|
|
721
696
|
}
|
|
722
697
|
/**
|
|
723
|
-
* @param {
|
|
698
|
+
* @param {Leyning} reading
|
|
724
699
|
* @return {Object}
|
|
725
700
|
*/
|
|
726
701
|
|
|
@@ -794,32 +769,7 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
|
|
|
794
769
|
|
|
795
770
|
return [link, guid];
|
|
796
771
|
}
|
|
797
|
-
/**
|
|
798
|
-
* @param {Event[]} events
|
|
799
|
-
* @param {Location} location
|
|
800
|
-
* @param {string} mainUrl
|
|
801
|
-
* @param {string} selfUrl
|
|
802
|
-
* @param {string} [lang] language such as 'he' (default 'en-US')
|
|
803
|
-
* @param {boolean} [evPubDate] if true, use event time as pubDate (false uses lastBuildDate)
|
|
804
|
-
* @return {string}
|
|
805
|
-
*/
|
|
806
|
-
|
|
807
772
|
|
|
808
|
-
function eventsToRss(events, location, mainUrl, selfUrl, lang = 'en-US', evPubDate = true) {
|
|
809
|
-
const cityDescr = location.getName();
|
|
810
|
-
const options = {
|
|
811
|
-
location,
|
|
812
|
-
mainUrl,
|
|
813
|
-
selfUrl,
|
|
814
|
-
lang,
|
|
815
|
-
evPubDate,
|
|
816
|
-
title: Locale.gettext('Shabbat') + ` Times for ${cityDescr}`,
|
|
817
|
-
description: `Weekly Shabbat candle lighting times for ${cityDescr}`,
|
|
818
|
-
utmSource: 'shabbat1c',
|
|
819
|
-
utmMedium: 'rss'
|
|
820
|
-
};
|
|
821
|
-
return eventsToRss2(events, options);
|
|
822
|
-
}
|
|
823
773
|
const localeToLg = {
|
|
824
774
|
's': 'en',
|
|
825
775
|
'a': 'en',
|
|
@@ -900,28 +850,15 @@ function getPubDate(ev, evPubDate, evDate, lastBuildDate) {
|
|
|
900
850
|
|
|
901
851
|
|
|
902
852
|
function eventToRssItem2(ev, options) {
|
|
903
|
-
return eventToRssItem(ev, options.evPubDate, options.lastBuildDate, options.dayFormat, options.location, options.mainUrl, options);
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* @param {Event} ev
|
|
907
|
-
* @param {boolean} evPubDate
|
|
908
|
-
* @param {string} lastBuildDate
|
|
909
|
-
* @param {Intl.DateTimeFormat} dayFormat
|
|
910
|
-
* @param {Location} location
|
|
911
|
-
* @param {string} mainUrl
|
|
912
|
-
* @param {CalOptions} [options]
|
|
913
|
-
* @return {string}
|
|
914
|
-
*/
|
|
915
|
-
|
|
916
|
-
function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, options) {
|
|
917
853
|
let subj = ev.render();
|
|
918
854
|
const evDate = ev.getDate().greg();
|
|
919
|
-
const pubDate = getPubDate(ev, evPubDate, evDate, lastBuildDate);
|
|
855
|
+
const pubDate = getPubDate(ev, options.evPubDate, evDate, options.lastBuildDate);
|
|
856
|
+
const location = options.location;
|
|
920
857
|
const il = location ? location.getIsrael() : false;
|
|
921
858
|
const tzid = location ? location.getTzid() : 'UTC';
|
|
922
859
|
const utmSource = options && options.utmSource || 'shabbat1c';
|
|
923
860
|
const utmMedium = options && options.utmMedium || 'rss';
|
|
924
|
-
const linkGuid = getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium);
|
|
861
|
+
const linkGuid = getLinkAndGuid(ev, il, tzid, options.mainUrl, utmSource, utmMedium);
|
|
925
862
|
const link = linkGuid[0];
|
|
926
863
|
const guid = linkGuid[1];
|
|
927
864
|
const categories = getEventCategories(ev);
|
|
@@ -946,6 +883,7 @@ function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainU
|
|
|
946
883
|
memo = ev.getFlags() & flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
|
|
947
884
|
}
|
|
948
885
|
|
|
886
|
+
const dayFormat = options.dayFormat;
|
|
949
887
|
const description = memo || dayFormat.format(evDate);
|
|
950
888
|
const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : '';
|
|
951
889
|
return `<item>
|
|
@@ -1012,4 +950,4 @@ function eventToFullCalendar(ev, tzid, il) {
|
|
|
1012
950
|
return result;
|
|
1013
951
|
}
|
|
1014
952
|
|
|
1015
|
-
export { appendIsraelAndTracking, countryNames, eventToClassicApiObject, eventToCsv, eventToFullCalendar,
|
|
953
|
+
export { appendIsraelAndTracking, countryNames, eventToClassicApiObject, eventToCsv, eventToFullCalendar, eventToRssItem2, eventsToClassicApi, eventsToCsv, eventsToRss2, getCalendarTitle, getDownloadFilename, getEventCategories, getHolidayDescription, holidayDescription, locationToPlainObj, makeAnchor, makeTorahMemoText, pad2, pad4, renderTitleWithoutTime, shouldRenderBrief, toISOString };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/rest-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@hebcal/core": "^3.42.2",
|
|
25
|
-
"@hebcal/leyning": "^
|
|
25
|
+
"@hebcal/leyning": "^5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "rollup -c",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"verbose": true
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@babel/core": "^7.18.
|
|
46
|
+
"@babel/core": "^7.18.13",
|
|
47
47
|
"@babel/preset-env": "^7.18.10",
|
|
48
48
|
"@babel/register": "^7.18.9",
|
|
49
49
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-config-google": "^0.14.0",
|
|
57
57
|
"jsdoc": "^3.6.11",
|
|
58
58
|
"jsdoc-to-markdown": "^7.1.1",
|
|
59
|
-
"rollup": "^2.78.
|
|
59
|
+
"rollup": "^2.78.1",
|
|
60
60
|
"rollup-plugin-terser": "^7.0.2"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/rest-api.d.ts
CHANGED
|
@@ -35,12 +35,11 @@ declare module '@hebcal/rest-api' {
|
|
|
35
35
|
*/
|
|
36
36
|
export function shouldRenderBrief(ev: Event): boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* Extends `CalOptions` with
|
|
39
|
+
* `lang` - language such as 'he' (default 'en-US')
|
|
40
|
+
* `evPubDate` - if true, use event time as pubDate (false uses lastBuildDate)
|
|
40
41
|
*/
|
|
41
|
-
export function eventsToRss(events: Event[], location: Location, mainUrl: string, selfUrl: string, lang?: string, evPubDate?: boolean): string;
|
|
42
42
|
export function eventsToRss2(events: Event[], options: CalOptions): string;
|
|
43
|
-
export function eventToRssItem(ev: Event, evPubDate: boolean, lastBuildDate: string, dayFormat: Intl.DateTimeFormat, location: Location, baseUrl: string, options?: CalOptions): string;
|
|
44
43
|
export function eventToRssItem2(ev: Event, options: CalOptions): string;
|
|
45
44
|
export function getDownloadFilename(options: CalOptions): string;
|
|
46
45
|
export function pad2(number: number): string;
|
|
@@ -50,22 +49,10 @@ declare module '@hebcal/rest-api' {
|
|
|
50
49
|
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
51
50
|
*/
|
|
52
51
|
export function makeAnchor(s: string): string;
|
|
53
|
-
/**
|
|
54
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
export function timeZoneOffsetStr(tzid: string, date: Date): string;
|
|
58
52
|
/**
|
|
59
53
|
* Returns just the date portion as YYYY-MM-DD
|
|
60
54
|
*/
|
|
61
55
|
export function toISOString(d: Date): string;
|
|
62
|
-
/**
|
|
63
|
-
* Returns a string like "2018-09-01T12:30:00-05:00'"
|
|
64
|
-
* @deprecated
|
|
65
|
-
* @param timeStr - must be formatted with only hours and minutes, like "17:12"
|
|
66
|
-
* @param tzid - like "America/New_York"
|
|
67
|
-
*/
|
|
68
|
-
export function toISOStringWithTimezone(date: Date, timeStr: string, tzid: string): string;
|
|
69
56
|
/**
|
|
70
57
|
* Returns a category and subcategory name
|
|
71
58
|
*/
|