@hebcal/rest-api 4.5.5 → 4.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4044 +1,10 @@
1
- /*! @hebcal/rest-api v4.5.5 */
1
+ /*! @hebcal/rest-api v4.5.7 */
2
2
  var hebcal__rest_api = (function (exports, core, leyning, triennial) {
3
3
  'use strict';
4
4
 
5
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+ const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";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. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","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,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","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 of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","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 before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",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. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","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. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","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
 
7
- var check = function (it) {
8
- return it && it.Math === Math && it;
9
- };
10
-
11
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$h =
13
- // eslint-disable-next-line es/no-global-this -- safe
14
- check(typeof globalThis == 'object' && globalThis) ||
15
- check(typeof window == 'object' && window) ||
16
- // eslint-disable-next-line no-restricted-globals -- safe
17
- check(typeof self == 'object' && self) ||
18
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
- // eslint-disable-next-line no-new-func -- fallback
20
- (function () { return this; })() || commonjsGlobal || Function('return this')();
21
-
22
- var objectGetOwnPropertyDescriptor = {};
23
-
24
- var fails$h = function (exec) {
25
- try {
26
- return !!exec();
27
- } catch (error) {
28
- return true;
29
- }
30
- };
31
-
32
- var fails$g = fails$h;
33
-
34
- // Detect IE8's incomplete defineProperty implementation
35
- var descriptors = !fails$g(function () {
36
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
37
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
38
- });
39
-
40
- var fails$f = fails$h;
41
-
42
- var functionBindNative = !fails$f(function () {
43
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
44
- var test = (function () { /* empty */ }).bind();
45
- // eslint-disable-next-line no-prototype-builtins -- safe
46
- return typeof test != 'function' || test.hasOwnProperty('prototype');
47
- });
48
-
49
- var NATIVE_BIND$2 = functionBindNative;
50
-
51
- var call$c = Function.prototype.call;
52
-
53
- var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
54
- return call$c.apply(call$c, arguments);
55
- };
56
-
57
- var objectPropertyIsEnumerable = {};
58
-
59
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
60
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
62
-
63
- // Nashorn ~ JDK8 bug
64
- var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
65
-
66
- // `Object.prototype.propertyIsEnumerable` method implementation
67
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
68
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
69
- var descriptor = getOwnPropertyDescriptor$3(this, V);
70
- return !!descriptor && descriptor.enumerable;
71
- } : $propertyIsEnumerable;
72
-
73
- var createPropertyDescriptor$5 = function (bitmap, value) {
74
- return {
75
- enumerable: !(bitmap & 1),
76
- configurable: !(bitmap & 2),
77
- writable: !(bitmap & 4),
78
- value: value
79
- };
80
- };
81
-
82
- var NATIVE_BIND$1 = functionBindNative;
83
-
84
- var FunctionPrototype$1 = Function.prototype;
85
- var call$b = FunctionPrototype$1.call;
86
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
87
-
88
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
89
- return function () {
90
- return call$b.apply(fn, arguments);
91
- };
92
- };
93
-
94
- var uncurryThis$j = functionUncurryThis;
95
-
96
- var toString$6 = uncurryThis$j({}.toString);
97
- var stringSlice$6 = uncurryThis$j(''.slice);
98
-
99
- var classofRaw$2 = function (it) {
100
- return stringSlice$6(toString$6(it), 8, -1);
101
- };
102
-
103
- var uncurryThis$i = functionUncurryThis;
104
- var fails$e = fails$h;
105
- var classof$6 = classofRaw$2;
106
-
107
- var $Object$4 = Object;
108
- var split$3 = uncurryThis$i(''.split);
109
-
110
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
111
- var indexedObject = fails$e(function () {
112
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
113
- // eslint-disable-next-line no-prototype-builtins -- safe
114
- return !$Object$4('z').propertyIsEnumerable(0);
115
- }) ? function (it) {
116
- return classof$6(it) === 'String' ? split$3(it, '') : $Object$4(it);
117
- } : $Object$4;
118
-
119
- // we can't use just `it == null` since of `document.all` special case
120
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
121
- var isNullOrUndefined$3 = function (it) {
122
- return it === null || it === undefined;
123
- };
124
-
125
- var isNullOrUndefined$2 = isNullOrUndefined$3;
126
-
127
- var $TypeError$a = TypeError;
128
-
129
- // `RequireObjectCoercible` abstract operation
130
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
131
- var requireObjectCoercible$4 = function (it) {
132
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
133
- return it;
134
- };
135
-
136
- // toObject with fallback for non-array-like ES3 strings
137
- var IndexedObject$1 = indexedObject;
138
- var requireObjectCoercible$3 = requireObjectCoercible$4;
139
-
140
- var toIndexedObject$5 = function (it) {
141
- return IndexedObject$1(requireObjectCoercible$3(it));
142
- };
143
-
144
- var documentAll$2 = typeof document == 'object' && document.all;
145
-
146
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
148
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
149
-
150
- var documentAll_1 = {
151
- all: documentAll$2,
152
- IS_HTMLDDA: IS_HTMLDDA
153
- };
154
-
155
- var $documentAll$1 = documentAll_1;
156
-
157
- var documentAll$1 = $documentAll$1.all;
158
-
159
- // `IsCallable` abstract operation
160
- // https://tc39.es/ecma262/#sec-iscallable
161
- var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
162
- return typeof argument == 'function' || argument === documentAll$1;
163
- } : function (argument) {
164
- return typeof argument == 'function';
165
- };
166
-
167
- var isCallable$g = isCallable$h;
168
- var $documentAll = documentAll_1;
169
-
170
- var documentAll = $documentAll.all;
171
-
172
- var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
173
- return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
174
- } : function (it) {
175
- return typeof it == 'object' ? it !== null : isCallable$g(it);
176
- };
177
-
178
- var global$g = global$h;
179
- var isCallable$f = isCallable$h;
180
-
181
- var aFunction = function (argument) {
182
- return isCallable$f(argument) ? argument : undefined;
183
- };
184
-
185
- var getBuiltIn$4 = function (namespace, method) {
186
- return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
187
- };
188
-
189
- var uncurryThis$h = functionUncurryThis;
190
-
191
- var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
192
-
193
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
194
-
195
- var global$f = global$h;
196
- var userAgent = engineUserAgent;
197
-
198
- var process = global$f.process;
199
- var Deno = global$f.Deno;
200
- var versions = process && process.versions || Deno && Deno.version;
201
- var v8 = versions && versions.v8;
202
- var match, version;
203
-
204
- if (v8) {
205
- match = v8.split('.');
206
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
207
- // but their correct versions are not interesting for us
208
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
209
- }
210
-
211
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
212
- // so check `userAgent` even if `.v8` exists, but 0
213
- if (!version && userAgent) {
214
- match = userAgent.match(/Edge\/(\d+)/);
215
- if (!match || match[1] >= 74) {
216
- match = userAgent.match(/Chrome\/(\d+)/);
217
- if (match) version = +match[1];
218
- }
219
- }
220
-
221
- var engineV8Version = version;
222
-
223
- /* eslint-disable es/no-symbol -- required for testing */
224
- var V8_VERSION = engineV8Version;
225
- var fails$d = fails$h;
226
- var global$e = global$h;
227
-
228
- var $String$5 = global$e.String;
229
-
230
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
231
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
232
- var symbol = Symbol('symbol detection');
233
- // Chrome 38 Symbol has incorrect toString conversion
234
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
235
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
236
- // of course, fail.
237
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
238
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
239
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
240
- });
241
-
242
- /* eslint-disable es/no-symbol -- required for testing */
243
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
244
-
245
- var useSymbolAsUid = NATIVE_SYMBOL$1
246
- && !Symbol.sham
247
- && typeof Symbol.iterator == 'symbol';
248
-
249
- var getBuiltIn$3 = getBuiltIn$4;
250
- var isCallable$e = isCallable$h;
251
- var isPrototypeOf$2 = objectIsPrototypeOf;
252
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
253
-
254
- var $Object$3 = Object;
255
-
256
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
257
- return typeof it == 'symbol';
258
- } : function (it) {
259
- var $Symbol = getBuiltIn$3('Symbol');
260
- return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
261
- };
262
-
263
- var $String$4 = String;
264
-
265
- var tryToString$2 = function (argument) {
266
- try {
267
- return $String$4(argument);
268
- } catch (error) {
269
- return 'Object';
270
- }
271
- };
272
-
273
- var isCallable$d = isCallable$h;
274
- var tryToString$1 = tryToString$2;
275
-
276
- var $TypeError$9 = TypeError;
277
-
278
- // `Assert: IsCallable(argument) is true`
279
- var aCallable$4 = function (argument) {
280
- if (isCallable$d(argument)) return argument;
281
- throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
282
- };
283
-
284
- var aCallable$3 = aCallable$4;
285
- var isNullOrUndefined$1 = isNullOrUndefined$3;
286
-
287
- // `GetMethod` abstract operation
288
- // https://tc39.es/ecma262/#sec-getmethod
289
- var getMethod$3 = function (V, P) {
290
- var func = V[P];
291
- return isNullOrUndefined$1(func) ? undefined : aCallable$3(func);
292
- };
293
-
294
- var call$a = functionCall;
295
- var isCallable$c = isCallable$h;
296
- var isObject$7 = isObject$8;
297
-
298
- var $TypeError$8 = TypeError;
299
-
300
- // `OrdinaryToPrimitive` abstract operation
301
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
302
- var ordinaryToPrimitive$1 = function (input, pref) {
303
- var fn, val;
304
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
305
- if (isCallable$c(fn = input.valueOf) && !isObject$7(val = call$a(fn, input))) return val;
306
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
307
- throw new $TypeError$8("Can't convert object to primitive value");
308
- };
309
-
310
- var shared$4 = {exports: {}};
311
-
312
- var isPure = false;
313
-
314
- var global$d = global$h;
315
-
316
- // eslint-disable-next-line es/no-object-defineproperty -- safe
317
- var defineProperty$6 = Object.defineProperty;
318
-
319
- var defineGlobalProperty$3 = function (key, value) {
320
- try {
321
- defineProperty$6(global$d, key, { value: value, configurable: true, writable: true });
322
- } catch (error) {
323
- global$d[key] = value;
324
- } return value;
325
- };
326
-
327
- var global$c = global$h;
328
- var defineGlobalProperty$2 = defineGlobalProperty$3;
329
-
330
- var SHARED = '__core-js_shared__';
331
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
332
-
333
- var sharedStore = store$3;
334
-
335
- var store$2 = sharedStore;
336
-
337
- (shared$4.exports = function (key, value) {
338
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
339
- })('versions', []).push({
340
- version: '3.33.0',
341
- mode: 'global',
342
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
343
- license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
344
- source: 'https://github.com/zloirock/core-js'
345
- });
346
-
347
- var sharedExports = shared$4.exports;
348
-
349
- var requireObjectCoercible$2 = requireObjectCoercible$4;
350
-
351
- var $Object$2 = Object;
352
-
353
- // `ToObject` abstract operation
354
- // https://tc39.es/ecma262/#sec-toobject
355
- var toObject$4 = function (argument) {
356
- return $Object$2(requireObjectCoercible$2(argument));
357
- };
358
-
359
- var uncurryThis$g = functionUncurryThis;
360
- var toObject$3 = toObject$4;
361
-
362
- var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
363
-
364
- // `HasOwnProperty` abstract operation
365
- // https://tc39.es/ecma262/#sec-hasownproperty
366
- // eslint-disable-next-line es/no-object-hasown -- safe
367
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
368
- return hasOwnProperty(toObject$3(it), key);
369
- };
370
-
371
- var uncurryThis$f = functionUncurryThis;
372
-
373
- var id = 0;
374
- var postfix = Math.random();
375
- var toString$5 = uncurryThis$f(1.0.toString);
376
-
377
- var uid$2 = function (key) {
378
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
379
- };
380
-
381
- var global$b = global$h;
382
- var shared$3 = sharedExports;
383
- var hasOwn$b = hasOwnProperty_1;
384
- var uid$1 = uid$2;
385
- var NATIVE_SYMBOL = symbolConstructorDetection;
386
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
387
-
388
- var Symbol$1 = global$b.Symbol;
389
- var WellKnownSymbolsStore = shared$3('wks');
390
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
391
-
392
- var wellKnownSymbol$e = function (name) {
393
- if (!hasOwn$b(WellKnownSymbolsStore, name)) {
394
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$b(Symbol$1, name)
395
- ? Symbol$1[name]
396
- : createWellKnownSymbol('Symbol.' + name);
397
- } return WellKnownSymbolsStore[name];
398
- };
399
-
400
- var call$9 = functionCall;
401
- var isObject$6 = isObject$8;
402
- var isSymbol$1 = isSymbol$2;
403
- var getMethod$2 = getMethod$3;
404
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
405
- var wellKnownSymbol$d = wellKnownSymbol$e;
406
-
407
- var $TypeError$7 = TypeError;
408
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
409
-
410
- // `ToPrimitive` abstract operation
411
- // https://tc39.es/ecma262/#sec-toprimitive
412
- var toPrimitive$1 = function (input, pref) {
413
- if (!isObject$6(input) || isSymbol$1(input)) return input;
414
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
415
- var result;
416
- if (exoticToPrim) {
417
- if (pref === undefined) pref = 'default';
418
- result = call$9(exoticToPrim, input, pref);
419
- if (!isObject$6(result) || isSymbol$1(result)) return result;
420
- throw new $TypeError$7("Can't convert object to primitive value");
421
- }
422
- if (pref === undefined) pref = 'number';
423
- return ordinaryToPrimitive(input, pref);
424
- };
425
-
426
- var toPrimitive = toPrimitive$1;
427
- var isSymbol = isSymbol$2;
428
-
429
- // `ToPropertyKey` abstract operation
430
- // https://tc39.es/ecma262/#sec-topropertykey
431
- var toPropertyKey$3 = function (argument) {
432
- var key = toPrimitive(argument, 'string');
433
- return isSymbol(key) ? key : key + '';
434
- };
435
-
436
- var global$a = global$h;
437
- var isObject$5 = isObject$8;
438
-
439
- var document$1 = global$a.document;
440
- // typeof document.createElement is 'object' in old IE
441
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
442
-
443
- var documentCreateElement$2 = function (it) {
444
- return EXISTS$1 ? document$1.createElement(it) : {};
445
- };
446
-
447
- var DESCRIPTORS$c = descriptors;
448
- var fails$c = fails$h;
449
- var createElement = documentCreateElement$2;
450
-
451
- // Thanks to IE8 for its funny defineProperty
452
- var ie8DomDefine = !DESCRIPTORS$c && !fails$c(function () {
453
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
454
- return Object.defineProperty(createElement('div'), 'a', {
455
- get: function () { return 7; }
456
- }).a !== 7;
457
- });
458
-
459
- var DESCRIPTORS$b = descriptors;
460
- var call$8 = functionCall;
461
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
462
- var createPropertyDescriptor$4 = createPropertyDescriptor$5;
463
- var toIndexedObject$4 = toIndexedObject$5;
464
- var toPropertyKey$2 = toPropertyKey$3;
465
- var hasOwn$a = hasOwnProperty_1;
466
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
467
-
468
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
469
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
470
-
471
- // `Object.getOwnPropertyDescriptor` method
472
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
473
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
474
- O = toIndexedObject$4(O);
475
- P = toPropertyKey$2(P);
476
- if (IE8_DOM_DEFINE$1) try {
477
- return $getOwnPropertyDescriptor$1(O, P);
478
- } catch (error) { /* empty */ }
479
- if (hasOwn$a(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]);
480
- };
481
-
482
- var objectDefineProperty = {};
483
-
484
- var DESCRIPTORS$a = descriptors;
485
- var fails$b = fails$h;
486
-
487
- // V8 ~ Chrome 36-
488
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
489
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$b(function () {
490
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
491
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
492
- value: 42,
493
- writable: false
494
- }).prototype !== 42;
495
- });
496
-
497
- var isObject$4 = isObject$8;
498
-
499
- var $String$3 = String;
500
- var $TypeError$6 = TypeError;
501
-
502
- // `Assert: Type(argument) is Object`
503
- var anObject$b = function (argument) {
504
- if (isObject$4(argument)) return argument;
505
- throw new $TypeError$6($String$3(argument) + ' is not an object');
506
- };
507
-
508
- var DESCRIPTORS$9 = descriptors;
509
- var IE8_DOM_DEFINE = ie8DomDefine;
510
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
511
- var anObject$a = anObject$b;
512
- var toPropertyKey$1 = toPropertyKey$3;
513
-
514
- var $TypeError$5 = TypeError;
515
- // eslint-disable-next-line es/no-object-defineproperty -- safe
516
- var $defineProperty = Object.defineProperty;
517
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
518
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
519
- var ENUMERABLE = 'enumerable';
520
- var CONFIGURABLE$1 = 'configurable';
521
- var WRITABLE = 'writable';
522
-
523
- // `Object.defineProperty` method
524
- // https://tc39.es/ecma262/#sec-object.defineproperty
525
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
526
- anObject$a(O);
527
- P = toPropertyKey$1(P);
528
- anObject$a(Attributes);
529
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
530
- var current = $getOwnPropertyDescriptor(O, P);
531
- if (current && current[WRITABLE]) {
532
- O[P] = Attributes.value;
533
- Attributes = {
534
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
535
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
536
- writable: false
537
- };
538
- }
539
- } return $defineProperty(O, P, Attributes);
540
- } : $defineProperty : function defineProperty(O, P, Attributes) {
541
- anObject$a(O);
542
- P = toPropertyKey$1(P);
543
- anObject$a(Attributes);
544
- if (IE8_DOM_DEFINE) try {
545
- return $defineProperty(O, P, Attributes);
546
- } catch (error) { /* empty */ }
547
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
548
- if ('value' in Attributes) O[P] = Attributes.value;
549
- return O;
550
- };
551
-
552
- var DESCRIPTORS$8 = descriptors;
553
- var definePropertyModule$4 = objectDefineProperty;
554
- var createPropertyDescriptor$3 = createPropertyDescriptor$5;
555
-
556
- var createNonEnumerableProperty$4 = DESCRIPTORS$8 ? function (object, key, value) {
557
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
558
- } : function (object, key, value) {
559
- object[key] = value;
560
- return object;
561
- };
562
-
563
- var makeBuiltIn$3 = {exports: {}};
564
-
565
- var DESCRIPTORS$7 = descriptors;
566
- var hasOwn$9 = hasOwnProperty_1;
567
-
568
- var FunctionPrototype = Function.prototype;
569
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
570
- var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
571
-
572
- var EXISTS = hasOwn$9(FunctionPrototype, 'name');
573
- // additional protection from minified / mangled / dropped function names
574
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
575
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype, 'name').configurable));
576
-
577
- var functionName = {
578
- EXISTS: EXISTS,
579
- PROPER: PROPER,
580
- CONFIGURABLE: CONFIGURABLE
581
- };
582
-
583
- var uncurryThis$e = functionUncurryThis;
584
- var isCallable$b = isCallable$h;
585
- var store$1 = sharedStore;
586
-
587
- var functionToString = uncurryThis$e(Function.toString);
588
-
589
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
590
- if (!isCallable$b(store$1.inspectSource)) {
591
- store$1.inspectSource = function (it) {
592
- return functionToString(it);
593
- };
594
- }
595
-
596
- var inspectSource$2 = store$1.inspectSource;
597
-
598
- var global$9 = global$h;
599
- var isCallable$a = isCallable$h;
600
-
601
- var WeakMap$1 = global$9.WeakMap;
602
-
603
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
604
-
605
- var shared$2 = sharedExports;
606
- var uid = uid$2;
607
-
608
- var keys = shared$2('keys');
609
-
610
- var sharedKey$3 = function (key) {
611
- return keys[key] || (keys[key] = uid(key));
612
- };
613
-
614
- var hiddenKeys$4 = {};
615
-
616
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
617
- var global$8 = global$h;
618
- var isObject$3 = isObject$8;
619
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
620
- var hasOwn$8 = hasOwnProperty_1;
621
- var shared$1 = sharedStore;
622
- var sharedKey$2 = sharedKey$3;
623
- var hiddenKeys$3 = hiddenKeys$4;
624
-
625
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
626
- var TypeError$3 = global$8.TypeError;
627
- var WeakMap = global$8.WeakMap;
628
- var set, get, has;
629
-
630
- var enforce = function (it) {
631
- return has(it) ? get(it) : set(it, {});
632
- };
633
-
634
- var getterFor = function (TYPE) {
635
- return function (it) {
636
- var state;
637
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
638
- throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required');
639
- } return state;
640
- };
641
- };
642
-
643
- if (NATIVE_WEAK_MAP || shared$1.state) {
644
- var store = shared$1.state || (shared$1.state = new WeakMap());
645
- /* eslint-disable no-self-assign -- prototype methods protection */
646
- store.get = store.get;
647
- store.has = store.has;
648
- store.set = store.set;
649
- /* eslint-enable no-self-assign -- prototype methods protection */
650
- set = function (it, metadata) {
651
- if (store.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
652
- metadata.facade = it;
653
- store.set(it, metadata);
654
- return metadata;
655
- };
656
- get = function (it) {
657
- return store.get(it) || {};
658
- };
659
- has = function (it) {
660
- return store.has(it);
661
- };
662
- } else {
663
- var STATE = sharedKey$2('state');
664
- hiddenKeys$3[STATE] = true;
665
- set = function (it, metadata) {
666
- if (hasOwn$8(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
667
- metadata.facade = it;
668
- createNonEnumerableProperty$3(it, STATE, metadata);
669
- return metadata;
670
- };
671
- get = function (it) {
672
- return hasOwn$8(it, STATE) ? it[STATE] : {};
673
- };
674
- has = function (it) {
675
- return hasOwn$8(it, STATE);
676
- };
677
- }
678
-
679
- var internalState = {
680
- set: set,
681
- get: get,
682
- has: has,
683
- enforce: enforce,
684
- getterFor: getterFor
685
- };
686
-
687
- var uncurryThis$d = functionUncurryThis;
688
- var fails$a = fails$h;
689
- var isCallable$9 = isCallable$h;
690
- var hasOwn$7 = hasOwnProperty_1;
691
- var DESCRIPTORS$6 = descriptors;
692
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
693
- var inspectSource$1 = inspectSource$2;
694
- var InternalStateModule$4 = internalState;
695
-
696
- var enforceInternalState = InternalStateModule$4.enforce;
697
- var getInternalState$3 = InternalStateModule$4.get;
698
- var $String$2 = String;
699
- // eslint-disable-next-line es/no-object-defineproperty -- safe
700
- var defineProperty$5 = Object.defineProperty;
701
- var stringSlice$5 = uncurryThis$d(''.slice);
702
- var replace$4 = uncurryThis$d(''.replace);
703
- var join$3 = uncurryThis$d([].join);
704
-
705
- var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$a(function () {
706
- return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
707
- });
708
-
709
- var TEMPLATE = String(String).split('String');
710
-
711
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
712
- if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
713
- name = '[' + replace$4($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
714
- }
715
- if (options && options.getter) name = 'get ' + name;
716
- if (options && options.setter) name = 'set ' + name;
717
- if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
718
- if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
719
- else value.name = name;
720
- }
721
- if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
722
- defineProperty$5(value, 'length', { value: options.arity });
723
- }
724
- try {
725
- if (options && hasOwn$7(options, 'constructor') && options.constructor) {
726
- if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
727
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
728
- } else if (value.prototype) value.prototype = undefined;
729
- } catch (error) { /* empty */ }
730
- var state = enforceInternalState(value);
731
- if (!hasOwn$7(state, 'source')) {
732
- state.source = join$3(TEMPLATE, typeof name == 'string' ? name : '');
733
- } return value;
734
- };
735
-
736
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
737
- // eslint-disable-next-line no-extend-native -- required
738
- Function.prototype.toString = makeBuiltIn$2(function toString() {
739
- return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
740
- }, 'toString');
741
-
742
- var makeBuiltInExports = makeBuiltIn$3.exports;
743
-
744
- var isCallable$8 = isCallable$h;
745
- var definePropertyModule$3 = objectDefineProperty;
746
- var makeBuiltIn$1 = makeBuiltInExports;
747
- var defineGlobalProperty$1 = defineGlobalProperty$3;
748
-
749
- var defineBuiltIn$7 = function (O, key, value, options) {
750
- if (!options) options = {};
751
- var simple = options.enumerable;
752
- var name = options.name !== undefined ? options.name : key;
753
- if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
754
- if (options.global) {
755
- if (simple) O[key] = value;
756
- else defineGlobalProperty$1(key, value);
757
- } else {
758
- try {
759
- if (!options.unsafe) delete O[key];
760
- else if (O[key]) simple = true;
761
- } catch (error) { /* empty */ }
762
- if (simple) O[key] = value;
763
- else definePropertyModule$3.f(O, key, {
764
- value: value,
765
- enumerable: false,
766
- configurable: !options.nonConfigurable,
767
- writable: !options.nonWritable
768
- });
769
- } return O;
770
- };
771
-
772
- var objectGetOwnPropertyNames = {};
773
-
774
- var ceil = Math.ceil;
775
- var floor$3 = Math.floor;
776
-
777
- // `Math.trunc` method
778
- // https://tc39.es/ecma262/#sec-math.trunc
779
- // eslint-disable-next-line es/no-math-trunc -- safe
780
- var mathTrunc = Math.trunc || function trunc(x) {
781
- var n = +x;
782
- return (n > 0 ? floor$3 : ceil)(n);
783
- };
784
-
785
- var trunc = mathTrunc;
786
-
787
- // `ToIntegerOrInfinity` abstract operation
788
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
789
- var toIntegerOrInfinity$3 = function (argument) {
790
- var number = +argument;
791
- // eslint-disable-next-line no-self-compare -- NaN check
792
- return number !== number || number === 0 ? 0 : trunc(number);
793
- };
794
-
795
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
796
-
797
- var max$1 = Math.max;
798
- var min$2 = Math.min;
799
-
800
- // Helper for a popular repeating case of the spec:
801
- // Let integer be ? ToInteger(index).
802
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
803
- var toAbsoluteIndex$2 = function (index, length) {
804
- var integer = toIntegerOrInfinity$2(index);
805
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
806
- };
807
-
808
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
809
-
810
- var min$1 = Math.min;
811
-
812
- // `ToLength` abstract operation
813
- // https://tc39.es/ecma262/#sec-tolength
814
- var toLength$2 = function (argument) {
815
- return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
816
- };
817
-
818
- var toLength$1 = toLength$2;
819
-
820
- // `LengthOfArrayLike` abstract operation
821
- // https://tc39.es/ecma262/#sec-lengthofarraylike
822
- var lengthOfArrayLike$3 = function (obj) {
823
- return toLength$1(obj.length);
824
- };
825
-
826
- var toIndexedObject$3 = toIndexedObject$5;
827
- var toAbsoluteIndex$1 = toAbsoluteIndex$2;
828
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
829
-
830
- // `Array.prototype.{ indexOf, includes }` methods implementation
831
- var createMethod$1 = function (IS_INCLUDES) {
832
- return function ($this, el, fromIndex) {
833
- var O = toIndexedObject$3($this);
834
- var length = lengthOfArrayLike$2(O);
835
- var index = toAbsoluteIndex$1(fromIndex, length);
836
- var value;
837
- // Array#includes uses SameValueZero equality algorithm
838
- // eslint-disable-next-line no-self-compare -- NaN check
839
- if (IS_INCLUDES && el !== el) while (length > index) {
840
- value = O[index++];
841
- // eslint-disable-next-line no-self-compare -- NaN check
842
- if (value !== value) return true;
843
- // Array#indexOf ignores holes, Array#includes - not
844
- } else for (;length > index; index++) {
845
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
846
- } return !IS_INCLUDES && -1;
847
- };
848
- };
849
-
850
- var arrayIncludes = {
851
- // `Array.prototype.includes` method
852
- // https://tc39.es/ecma262/#sec-array.prototype.includes
853
- includes: createMethod$1(true),
854
- // `Array.prototype.indexOf` method
855
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
856
- indexOf: createMethod$1(false)
857
- };
858
-
859
- var uncurryThis$c = functionUncurryThis;
860
- var hasOwn$6 = hasOwnProperty_1;
861
- var toIndexedObject$2 = toIndexedObject$5;
862
- var indexOf$1 = arrayIncludes.indexOf;
863
- var hiddenKeys$2 = hiddenKeys$4;
864
-
865
- var push$3 = uncurryThis$c([].push);
866
-
867
- var objectKeysInternal = function (object, names) {
868
- var O = toIndexedObject$2(object);
869
- var i = 0;
870
- var result = [];
871
- var key;
872
- for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$3(result, key);
873
- // Don't enum bug & hidden keys
874
- while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
875
- ~indexOf$1(result, key) || push$3(result, key);
876
- }
877
- return result;
878
- };
879
-
880
- // IE8- don't enum bug keys
881
- var enumBugKeys$3 = [
882
- 'constructor',
883
- 'hasOwnProperty',
884
- 'isPrototypeOf',
885
- 'propertyIsEnumerable',
886
- 'toLocaleString',
887
- 'toString',
888
- 'valueOf'
889
- ];
890
-
891
- var internalObjectKeys$1 = objectKeysInternal;
892
- var enumBugKeys$2 = enumBugKeys$3;
893
-
894
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
895
-
896
- // `Object.getOwnPropertyNames` method
897
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
898
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
899
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
900
- return internalObjectKeys$1(O, hiddenKeys$1);
901
- };
902
-
903
- var objectGetOwnPropertySymbols = {};
904
-
905
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
906
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
907
-
908
- var getBuiltIn$2 = getBuiltIn$4;
909
- var uncurryThis$b = functionUncurryThis;
910
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
911
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
912
- var anObject$9 = anObject$b;
913
-
914
- var concat$1 = uncurryThis$b([].concat);
915
-
916
- // all object keys, includes non-enumerable and symbols
917
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
918
- var keys = getOwnPropertyNamesModule.f(anObject$9(it));
919
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
920
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
921
- };
922
-
923
- var hasOwn$5 = hasOwnProperty_1;
924
- var ownKeys = ownKeys$1;
925
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
926
- var definePropertyModule$2 = objectDefineProperty;
927
-
928
- var copyConstructorProperties$1 = function (target, source, exceptions) {
929
- var keys = ownKeys(source);
930
- var defineProperty = definePropertyModule$2.f;
931
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
932
- for (var i = 0; i < keys.length; i++) {
933
- var key = keys[i];
934
- if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
935
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
936
- }
937
- }
938
- };
939
-
940
- var fails$9 = fails$h;
941
- var isCallable$7 = isCallable$h;
942
-
943
- var replacement = /#|\.prototype\./;
944
-
945
- var isForced$1 = function (feature, detection) {
946
- var value = data[normalize(feature)];
947
- return value === POLYFILL ? true
948
- : value === NATIVE ? false
949
- : isCallable$7(detection) ? fails$9(detection)
950
- : !!detection;
951
- };
952
-
953
- var normalize = isForced$1.normalize = function (string) {
954
- return String(string).replace(replacement, '.').toLowerCase();
955
- };
956
-
957
- var data = isForced$1.data = {};
958
- var NATIVE = isForced$1.NATIVE = 'N';
959
- var POLYFILL = isForced$1.POLYFILL = 'P';
960
-
961
- var isForced_1 = isForced$1;
962
-
963
- var global$7 = global$h;
964
- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
965
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
966
- var defineBuiltIn$6 = defineBuiltIn$7;
967
- var defineGlobalProperty = defineGlobalProperty$3;
968
- var copyConstructorProperties = copyConstructorProperties$1;
969
- var isForced = isForced_1;
970
-
971
- /*
972
- options.target - name of the target object
973
- options.global - target is the global object
974
- options.stat - export as static methods of target
975
- options.proto - export as prototype methods of target
976
- options.real - real prototype method for the `pure` version
977
- options.forced - export even if the native feature is available
978
- options.bind - bind methods to the target, required for the `pure` version
979
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
980
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
981
- options.sham - add a flag to not completely full polyfills
982
- options.enumerable - export as enumerable property
983
- options.dontCallGetSet - prevent calling a getter on target
984
- options.name - the .name of the function if it does not match the key
985
- */
986
- var _export = function (options, source) {
987
- var TARGET = options.target;
988
- var GLOBAL = options.global;
989
- var STATIC = options.stat;
990
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
991
- if (GLOBAL) {
992
- target = global$7;
993
- } else if (STATIC) {
994
- target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
995
- } else {
996
- target = (global$7[TARGET] || {}).prototype;
997
- }
998
- if (target) for (key in source) {
999
- sourceProperty = source[key];
1000
- if (options.dontCallGetSet) {
1001
- descriptor = getOwnPropertyDescriptor$2(target, key);
1002
- targetProperty = descriptor && descriptor.value;
1003
- } else targetProperty = target[key];
1004
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1005
- // contained in target
1006
- if (!FORCED && targetProperty !== undefined) {
1007
- if (typeof sourceProperty == typeof targetProperty) continue;
1008
- copyConstructorProperties(sourceProperty, targetProperty);
1009
- }
1010
- // add a flag to not completely full polyfills
1011
- if (options.sham || (targetProperty && targetProperty.sham)) {
1012
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1013
- }
1014
- defineBuiltIn$6(target, key, sourceProperty, options);
1015
- }
1016
- };
1017
-
1018
- var wellKnownSymbol$c = wellKnownSymbol$e;
1019
-
1020
- var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1021
- var test = {};
1022
-
1023
- test[TO_STRING_TAG$3] = 'z';
1024
-
1025
- var toStringTagSupport = String(test) === '[object z]';
1026
-
1027
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1028
- var isCallable$6 = isCallable$h;
1029
- var classofRaw$1 = classofRaw$2;
1030
- var wellKnownSymbol$b = wellKnownSymbol$e;
1031
-
1032
- var TO_STRING_TAG$2 = wellKnownSymbol$b('toStringTag');
1033
- var $Object$1 = Object;
1034
-
1035
- // ES3 wrong here
1036
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1037
-
1038
- // fallback for IE11 Script Access Denied error
1039
- var tryGet = function (it, key) {
1040
- try {
1041
- return it[key];
1042
- } catch (error) { /* empty */ }
1043
- };
1044
-
1045
- // getting tag from ES6+ `Object.prototype.toString`
1046
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1047
- var O, tag, result;
1048
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1049
- // @@toStringTag case
1050
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == 'string' ? tag
1051
- // builtinTag case
1052
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1053
- // ES3 arguments fallback
1054
- : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
1055
- };
1056
-
1057
- var classof$4 = classof$5;
1058
-
1059
- var $String$1 = String;
1060
-
1061
- var toString$4 = function (argument) {
1062
- if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1063
- return $String$1(argument);
1064
- };
1065
-
1066
- var anObject$8 = anObject$b;
1067
-
1068
- // `RegExp.prototype.flags` getter implementation
1069
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1070
- var regexpFlags$1 = function () {
1071
- var that = anObject$8(this);
1072
- var result = '';
1073
- if (that.hasIndices) result += 'd';
1074
- if (that.global) result += 'g';
1075
- if (that.ignoreCase) result += 'i';
1076
- if (that.multiline) result += 'm';
1077
- if (that.dotAll) result += 's';
1078
- if (that.unicode) result += 'u';
1079
- if (that.unicodeSets) result += 'v';
1080
- if (that.sticky) result += 'y';
1081
- return result;
1082
- };
1083
-
1084
- var fails$8 = fails$h;
1085
- var global$6 = global$h;
1086
-
1087
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1088
- var $RegExp$2 = global$6.RegExp;
1089
-
1090
- var UNSUPPORTED_Y$1 = fails$8(function () {
1091
- var re = $RegExp$2('a', 'y');
1092
- re.lastIndex = 2;
1093
- return re.exec('abcd') !== null;
1094
- });
1095
-
1096
- // UC Browser bug
1097
- // https://github.com/zloirock/core-js/issues/1008
1098
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$8(function () {
1099
- return !$RegExp$2('a', 'y').sticky;
1100
- });
1101
-
1102
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$8(function () {
1103
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1104
- var re = $RegExp$2('^r', 'gy');
1105
- re.lastIndex = 2;
1106
- return re.exec('str') !== null;
1107
- });
1108
-
1109
- var regexpStickyHelpers = {
1110
- BROKEN_CARET: BROKEN_CARET,
1111
- MISSED_STICKY: MISSED_STICKY,
1112
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1113
- };
1114
-
1115
- var objectDefineProperties = {};
1116
-
1117
- var internalObjectKeys = objectKeysInternal;
1118
- var enumBugKeys$1 = enumBugKeys$3;
1119
-
1120
- // `Object.keys` method
1121
- // https://tc39.es/ecma262/#sec-object.keys
1122
- // eslint-disable-next-line es/no-object-keys -- safe
1123
- var objectKeys$2 = Object.keys || function keys(O) {
1124
- return internalObjectKeys(O, enumBugKeys$1);
1125
- };
1126
-
1127
- var DESCRIPTORS$5 = descriptors;
1128
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1129
- var definePropertyModule$1 = objectDefineProperty;
1130
- var anObject$7 = anObject$b;
1131
- var toIndexedObject$1 = toIndexedObject$5;
1132
- var objectKeys$1 = objectKeys$2;
1133
-
1134
- // `Object.defineProperties` method
1135
- // https://tc39.es/ecma262/#sec-object.defineproperties
1136
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1137
- objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1138
- anObject$7(O);
1139
- var props = toIndexedObject$1(Properties);
1140
- var keys = objectKeys$1(Properties);
1141
- var length = keys.length;
1142
- var index = 0;
1143
- var key;
1144
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1145
- return O;
1146
- };
1147
-
1148
- var getBuiltIn$1 = getBuiltIn$4;
1149
-
1150
- var html$1 = getBuiltIn$1('document', 'documentElement');
1151
-
1152
- /* global ActiveXObject -- old IE, WSH */
1153
- var anObject$6 = anObject$b;
1154
- var definePropertiesModule = objectDefineProperties;
1155
- var enumBugKeys = enumBugKeys$3;
1156
- var hiddenKeys = hiddenKeys$4;
1157
- var html = html$1;
1158
- var documentCreateElement$1 = documentCreateElement$2;
1159
- var sharedKey$1 = sharedKey$3;
1160
-
1161
- var GT$1 = '>';
1162
- var LT$1 = '<';
1163
- var PROTOTYPE = 'prototype';
1164
- var SCRIPT = 'script';
1165
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1166
-
1167
- var EmptyConstructor = function () { /* empty */ };
1168
-
1169
- var scriptTag = function (content) {
1170
- return LT$1 + SCRIPT + GT$1 + content + LT$1 + '/' + SCRIPT + GT$1;
1171
- };
1172
-
1173
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1174
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1175
- activeXDocument.write(scriptTag(''));
1176
- activeXDocument.close();
1177
- var temp = activeXDocument.parentWindow.Object;
1178
- activeXDocument = null; // avoid memory leak
1179
- return temp;
1180
- };
1181
-
1182
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1183
- var NullProtoObjectViaIFrame = function () {
1184
- // Thrash, waste and sodomy: IE GC bug
1185
- var iframe = documentCreateElement$1('iframe');
1186
- var JS = 'java' + SCRIPT + ':';
1187
- var iframeDocument;
1188
- iframe.style.display = 'none';
1189
- html.appendChild(iframe);
1190
- // https://github.com/zloirock/core-js/issues/475
1191
- iframe.src = String(JS);
1192
- iframeDocument = iframe.contentWindow.document;
1193
- iframeDocument.open();
1194
- iframeDocument.write(scriptTag('document.F=Object'));
1195
- iframeDocument.close();
1196
- return iframeDocument.F;
1197
- };
1198
-
1199
- // Check for document.domain and active x support
1200
- // No need to use active x approach when document.domain is not set
1201
- // see https://github.com/es-shims/es5-shim/issues/150
1202
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1203
- // avoid IE GC bug
1204
- var activeXDocument;
1205
- var NullProtoObject = function () {
1206
- try {
1207
- activeXDocument = new ActiveXObject('htmlfile');
1208
- } catch (error) { /* ignore */ }
1209
- NullProtoObject = typeof document != 'undefined'
1210
- ? document.domain && activeXDocument
1211
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1212
- : NullProtoObjectViaIFrame()
1213
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1214
- var length = enumBugKeys.length;
1215
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1216
- return NullProtoObject();
1217
- };
1218
-
1219
- hiddenKeys[IE_PROTO$1] = true;
1220
-
1221
- // `Object.create` method
1222
- // https://tc39.es/ecma262/#sec-object.create
1223
- // eslint-disable-next-line es/no-object-create -- safe
1224
- var objectCreate = Object.create || function create(O, Properties) {
1225
- var result;
1226
- if (O !== null) {
1227
- EmptyConstructor[PROTOTYPE] = anObject$6(O);
1228
- result = new EmptyConstructor();
1229
- EmptyConstructor[PROTOTYPE] = null;
1230
- // add "__proto__" for Object.getPrototypeOf polyfill
1231
- result[IE_PROTO$1] = O;
1232
- } else result = NullProtoObject();
1233
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1234
- };
1235
-
1236
- var fails$7 = fails$h;
1237
- var global$5 = global$h;
1238
-
1239
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1240
- var $RegExp$1 = global$5.RegExp;
1241
-
1242
- var regexpUnsupportedDotAll = fails$7(function () {
1243
- var re = $RegExp$1('.', 's');
1244
- return !(re.dotAll && re.test('\n') && re.flags === 's');
1245
- });
1246
-
1247
- var fails$6 = fails$h;
1248
- var global$4 = global$h;
1249
-
1250
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1251
- var $RegExp = global$4.RegExp;
1252
-
1253
- var regexpUnsupportedNcg = fails$6(function () {
1254
- var re = $RegExp('(?<a>b)', 'g');
1255
- return re.exec('b').groups.a !== 'b' ||
1256
- 'b'.replace(re, '$<a>c') !== 'bc';
1257
- });
1258
-
1259
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1260
- /* eslint-disable regexp/no-useless-quantifier -- testing */
1261
- var call$7 = functionCall;
1262
- var uncurryThis$a = functionUncurryThis;
1263
- var toString$3 = toString$4;
1264
- var regexpFlags = regexpFlags$1;
1265
- var stickyHelpers = regexpStickyHelpers;
1266
- var shared = sharedExports;
1267
- var create$3 = objectCreate;
1268
- var getInternalState$2 = internalState.get;
1269
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1270
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1271
-
1272
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
1273
- var nativeExec = RegExp.prototype.exec;
1274
- var patchedExec = nativeExec;
1275
- var charAt$4 = uncurryThis$a(''.charAt);
1276
- var indexOf = uncurryThis$a(''.indexOf);
1277
- var replace$3 = uncurryThis$a(''.replace);
1278
- var stringSlice$4 = uncurryThis$a(''.slice);
1279
-
1280
- var UPDATES_LAST_INDEX_WRONG = (function () {
1281
- var re1 = /a/;
1282
- var re2 = /b*/g;
1283
- call$7(nativeExec, re1, 'a');
1284
- call$7(nativeExec, re2, 'a');
1285
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1286
- })();
1287
-
1288
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1289
-
1290
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
1291
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1292
-
1293
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1294
-
1295
- if (PATCH) {
1296
- patchedExec = function exec(string) {
1297
- var re = this;
1298
- var state = getInternalState$2(re);
1299
- var str = toString$3(string);
1300
- var raw = state.raw;
1301
- var result, reCopy, lastIndex, match, i, object, group;
1302
-
1303
- if (raw) {
1304
- raw.lastIndex = re.lastIndex;
1305
- result = call$7(patchedExec, raw, str);
1306
- re.lastIndex = raw.lastIndex;
1307
- return result;
1308
- }
1309
-
1310
- var groups = state.groups;
1311
- var sticky = UNSUPPORTED_Y && re.sticky;
1312
- var flags = call$7(regexpFlags, re);
1313
- var source = re.source;
1314
- var charsAdded = 0;
1315
- var strCopy = str;
1316
-
1317
- if (sticky) {
1318
- flags = replace$3(flags, 'y', '');
1319
- if (indexOf(flags, 'g') === -1) {
1320
- flags += 'g';
1321
- }
1322
-
1323
- strCopy = stringSlice$4(str, re.lastIndex);
1324
- // Support anchored sticky behavior.
1325
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
1326
- source = '(?: ' + source + ')';
1327
- strCopy = ' ' + strCopy;
1328
- charsAdded++;
1329
- }
1330
- // ^(? + rx + ) is needed, in combination with some str slicing, to
1331
- // simulate the 'y' flag.
1332
- reCopy = new RegExp('^(?:' + source + ')', flags);
1333
- }
1334
-
1335
- if (NPCG_INCLUDED) {
1336
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1337
- }
1338
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1339
-
1340
- match = call$7(nativeExec, sticky ? reCopy : re, strCopy);
1341
-
1342
- if (sticky) {
1343
- if (match) {
1344
- match.input = stringSlice$4(match.input, charsAdded);
1345
- match[0] = stringSlice$4(match[0], charsAdded);
1346
- match.index = re.lastIndex;
1347
- re.lastIndex += match[0].length;
1348
- } else re.lastIndex = 0;
1349
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
1350
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1351
- }
1352
- if (NPCG_INCLUDED && match && match.length > 1) {
1353
- // Fix browsers whose `exec` methods don't consistently return `undefined`
1354
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1355
- call$7(nativeReplace, match[0], reCopy, function () {
1356
- for (i = 1; i < arguments.length - 2; i++) {
1357
- if (arguments[i] === undefined) match[i] = undefined;
1358
- }
1359
- });
1360
- }
1361
-
1362
- if (match && groups) {
1363
- match.groups = object = create$3(null);
1364
- for (i = 0; i < groups.length; i++) {
1365
- group = groups[i];
1366
- object[group[0]] = match[group[1]];
1367
- }
1368
- }
1369
-
1370
- return match;
1371
- };
1372
- }
1373
-
1374
- var regexpExec = patchedExec;
1375
-
1376
- var $$4 = _export;
1377
- var exec$3 = regexpExec;
1378
-
1379
- // `RegExp.prototype.exec` method
1380
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1381
- $$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec$3 }, {
1382
- exec: exec$3
1383
- });
1384
-
1385
- // iterable DOM collections
1386
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1387
- var domIterables = {
1388
- CSSRuleList: 0,
1389
- CSSStyleDeclaration: 0,
1390
- CSSValueList: 0,
1391
- ClientRectList: 0,
1392
- DOMRectList: 0,
1393
- DOMStringList: 0,
1394
- DOMTokenList: 1,
1395
- DataTransferItemList: 0,
1396
- FileList: 0,
1397
- HTMLAllCollection: 0,
1398
- HTMLCollection: 0,
1399
- HTMLFormElement: 0,
1400
- HTMLSelectElement: 0,
1401
- MediaList: 0,
1402
- MimeTypeArray: 0,
1403
- NamedNodeMap: 0,
1404
- NodeList: 1,
1405
- PaintRequestList: 0,
1406
- Plugin: 0,
1407
- PluginArray: 0,
1408
- SVGLengthList: 0,
1409
- SVGNumberList: 0,
1410
- SVGPathSegList: 0,
1411
- SVGPointList: 0,
1412
- SVGStringList: 0,
1413
- SVGTransformList: 0,
1414
- SourceBufferList: 0,
1415
- StyleSheetList: 0,
1416
- TextTrackCueList: 0,
1417
- TextTrackList: 0,
1418
- TouchList: 0
1419
- };
1420
-
1421
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1422
- var documentCreateElement = documentCreateElement$2;
1423
-
1424
- var classList = documentCreateElement('span').classList;
1425
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1426
-
1427
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1428
-
1429
- var wellKnownSymbol$a = wellKnownSymbol$e;
1430
- var create$2 = objectCreate;
1431
- var defineProperty$4 = objectDefineProperty.f;
1432
-
1433
- var UNSCOPABLES = wellKnownSymbol$a('unscopables');
1434
- var ArrayPrototype$1 = Array.prototype;
1435
-
1436
- // Array.prototype[@@unscopables]
1437
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1438
- if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1439
- defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1440
- configurable: true,
1441
- value: create$2(null)
1442
- });
1443
- }
1444
-
1445
- // add a key to Array.prototype[@@unscopables]
1446
- var addToUnscopables$1 = function (key) {
1447
- ArrayPrototype$1[UNSCOPABLES][key] = true;
1448
- };
1449
-
1450
- var iterators = {};
1451
-
1452
- var fails$5 = fails$h;
1453
-
1454
- var correctPrototypeGetter = !fails$5(function () {
1455
- function F() { /* empty */ }
1456
- F.prototype.constructor = null;
1457
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1458
- return Object.getPrototypeOf(new F()) !== F.prototype;
1459
- });
1460
-
1461
- var hasOwn$4 = hasOwnProperty_1;
1462
- var isCallable$5 = isCallable$h;
1463
- var toObject$2 = toObject$4;
1464
- var sharedKey = sharedKey$3;
1465
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1466
-
1467
- var IE_PROTO = sharedKey('IE_PROTO');
1468
- var $Object = Object;
1469
- var ObjectPrototype = $Object.prototype;
1470
-
1471
- // `Object.getPrototypeOf` method
1472
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1473
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1474
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1475
- var object = toObject$2(O);
1476
- if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1477
- var constructor = object.constructor;
1478
- if (isCallable$5(constructor) && object instanceof constructor) {
1479
- return constructor.prototype;
1480
- } return object instanceof $Object ? ObjectPrototype : null;
1481
- };
1482
-
1483
- var fails$4 = fails$h;
1484
- var isCallable$4 = isCallable$h;
1485
- var isObject$2 = isObject$8;
1486
- var getPrototypeOf$1 = objectGetPrototypeOf;
1487
- var defineBuiltIn$5 = defineBuiltIn$7;
1488
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1489
-
1490
- var ITERATOR$6 = wellKnownSymbol$9('iterator');
1491
- var BUGGY_SAFARI_ITERATORS$1 = false;
1492
-
1493
- // `%IteratorPrototype%` object
1494
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1495
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1496
-
1497
- /* eslint-disable es/no-array-prototype-keys -- safe */
1498
- if ([].keys) {
1499
- arrayIterator = [].keys();
1500
- // Safari 8 has buggy iterators w/o `next`
1501
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1502
- else {
1503
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1504
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1505
- }
1506
- }
1507
-
1508
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$4(function () {
1509
- var test = {};
1510
- // FF44- legacy iterators case
1511
- return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
1512
- });
1513
-
1514
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1515
-
1516
- // `%IteratorPrototype%[@@iterator]()` method
1517
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1518
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$6])) {
1519
- defineBuiltIn$5(IteratorPrototype$2, ITERATOR$6, function () {
1520
- return this;
1521
- });
1522
- }
1523
-
1524
- var iteratorsCore = {
1525
- IteratorPrototype: IteratorPrototype$2,
1526
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1527
- };
1528
-
1529
- var defineProperty$3 = objectDefineProperty.f;
1530
- var hasOwn$3 = hasOwnProperty_1;
1531
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1532
-
1533
- var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
1534
-
1535
- var setToStringTag$4 = function (target, TAG, STATIC) {
1536
- if (target && !STATIC) target = target.prototype;
1537
- if (target && !hasOwn$3(target, TO_STRING_TAG$1)) {
1538
- defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1539
- }
1540
- };
1541
-
1542
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1543
- var create$1 = objectCreate;
1544
- var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1545
- var setToStringTag$3 = setToStringTag$4;
1546
- var Iterators$4 = iterators;
1547
-
1548
- var returnThis$1 = function () { return this; };
1549
-
1550
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1551
- var TO_STRING_TAG = NAME + ' Iterator';
1552
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
1553
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1554
- Iterators$4[TO_STRING_TAG] = returnThis$1;
1555
- return IteratorConstructor;
1556
- };
1557
-
1558
- var uncurryThis$9 = functionUncurryThis;
1559
- var aCallable$2 = aCallable$4;
1560
-
1561
- var functionUncurryThisAccessor = function (object, key, method) {
1562
- try {
1563
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1564
- return uncurryThis$9(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
1565
- } catch (error) { /* empty */ }
1566
- };
1567
-
1568
- var isCallable$3 = isCallable$h;
1569
-
1570
- var $String = String;
1571
- var $TypeError$4 = TypeError;
1572
-
1573
- var aPossiblePrototype$1 = function (argument) {
1574
- if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1575
- throw new $TypeError$4("Can't set " + $String(argument) + ' as a prototype');
1576
- };
1577
-
1578
- /* eslint-disable no-proto -- safe */
1579
- var uncurryThisAccessor = functionUncurryThisAccessor;
1580
- var anObject$5 = anObject$b;
1581
- var aPossiblePrototype = aPossiblePrototype$1;
1582
-
1583
- // `Object.setPrototypeOf` method
1584
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1585
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1586
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1587
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1588
- var CORRECT_SETTER = false;
1589
- var test = {};
1590
- var setter;
1591
- try {
1592
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1593
- setter(test, []);
1594
- CORRECT_SETTER = test instanceof Array;
1595
- } catch (error) { /* empty */ }
1596
- return function setPrototypeOf(O, proto) {
1597
- anObject$5(O);
1598
- aPossiblePrototype(proto);
1599
- if (CORRECT_SETTER) setter(O, proto);
1600
- else O.__proto__ = proto;
1601
- return O;
1602
- };
1603
- }() : undefined);
1604
-
1605
- var $$3 = _export;
1606
- var call$6 = functionCall;
1607
- var FunctionName = functionName;
1608
- var isCallable$2 = isCallable$h;
1609
- var createIteratorConstructor$1 = iteratorCreateConstructor;
1610
- var getPrototypeOf = objectGetPrototypeOf;
1611
- var setPrototypeOf = objectSetPrototypeOf;
1612
- var setToStringTag$2 = setToStringTag$4;
1613
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1614
- var defineBuiltIn$4 = defineBuiltIn$7;
1615
- var wellKnownSymbol$7 = wellKnownSymbol$e;
1616
- var Iterators$3 = iterators;
1617
- var IteratorsCore = iteratorsCore;
1618
-
1619
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1620
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1621
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1622
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1623
- var ITERATOR$5 = wellKnownSymbol$7('iterator');
1624
- var KEYS = 'keys';
1625
- var VALUES = 'values';
1626
- var ENTRIES = 'entries';
1627
-
1628
- var returnThis = function () { return this; };
1629
-
1630
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1631
- createIteratorConstructor$1(IteratorConstructor, NAME, next);
1632
-
1633
- var getIterationMethod = function (KIND) {
1634
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1635
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1636
-
1637
- switch (KIND) {
1638
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1639
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1640
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1641
- }
1642
-
1643
- return function () { return new IteratorConstructor(this); };
1644
- };
1645
-
1646
- var TO_STRING_TAG = NAME + ' Iterator';
1647
- var INCORRECT_VALUES_NAME = false;
1648
- var IterablePrototype = Iterable.prototype;
1649
- var nativeIterator = IterablePrototype[ITERATOR$5]
1650
- || IterablePrototype['@@iterator']
1651
- || DEFAULT && IterablePrototype[DEFAULT];
1652
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1653
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1654
- var CurrentIteratorPrototype, methods, KEY;
1655
-
1656
- // fix native
1657
- if (anyNativeIterator) {
1658
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1659
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1660
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1661
- if (setPrototypeOf) {
1662
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1663
- } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$5])) {
1664
- defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1665
- }
1666
- }
1667
- // Set @@toStringTag to native iterators
1668
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1669
- }
1670
- }
1671
-
1672
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1673
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1674
- if (CONFIGURABLE_FUNCTION_NAME) {
1675
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1676
- } else {
1677
- INCORRECT_VALUES_NAME = true;
1678
- defaultIterator = function values() { return call$6(nativeIterator, this); };
1679
- }
1680
- }
1681
-
1682
- // export additional methods
1683
- if (DEFAULT) {
1684
- methods = {
1685
- values: getIterationMethod(VALUES),
1686
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1687
- entries: getIterationMethod(ENTRIES)
1688
- };
1689
- if (FORCED) for (KEY in methods) {
1690
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1691
- defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
1692
- }
1693
- } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1694
- }
1695
-
1696
- // define iterator
1697
- if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1698
- defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1699
- }
1700
- Iterators$3[NAME] = defaultIterator;
1701
-
1702
- return methods;
1703
- };
1704
-
1705
- // `CreateIterResultObject` abstract operation
1706
- // https://tc39.es/ecma262/#sec-createiterresultobject
1707
- var createIterResultObject$2 = function (value, done) {
1708
- return { value: value, done: done };
1709
- };
1710
-
1711
- var toIndexedObject = toIndexedObject$5;
1712
- var addToUnscopables = addToUnscopables$1;
1713
- var Iterators$2 = iterators;
1714
- var InternalStateModule$3 = internalState;
1715
- var defineProperty$2 = objectDefineProperty.f;
1716
- var defineIterator$1 = iteratorDefine;
1717
- var createIterResultObject$1 = createIterResultObject$2;
1718
- var DESCRIPTORS$4 = descriptors;
1719
-
1720
- var ARRAY_ITERATOR = 'Array Iterator';
1721
- var setInternalState$3 = InternalStateModule$3.set;
1722
- var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
1723
-
1724
- // `Array.prototype.entries` method
1725
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1726
- // `Array.prototype.keys` method
1727
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1728
- // `Array.prototype.values` method
1729
- // https://tc39.es/ecma262/#sec-array.prototype.values
1730
- // `Array.prototype[@@iterator]` method
1731
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1732
- // `CreateArrayIterator` internal method
1733
- // https://tc39.es/ecma262/#sec-createarrayiterator
1734
- var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
1735
- setInternalState$3(this, {
1736
- type: ARRAY_ITERATOR,
1737
- target: toIndexedObject(iterated), // target
1738
- index: 0, // next index
1739
- kind: kind // kind
1740
- });
1741
- // `%ArrayIteratorPrototype%.next` method
1742
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1743
- }, function () {
1744
- var state = getInternalState$1(this);
1745
- var target = state.target;
1746
- var kind = state.kind;
1747
- var index = state.index++;
1748
- if (!target || index >= target.length) {
1749
- state.target = undefined;
1750
- return createIterResultObject$1(undefined, true);
1751
- }
1752
- switch (kind) {
1753
- case 'keys': return createIterResultObject$1(index, false);
1754
- case 'values': return createIterResultObject$1(target[index], false);
1755
- } return createIterResultObject$1([index, target[index]], false);
1756
- }, 'values');
1757
-
1758
- // argumentsList[@@iterator] is %ArrayProto_values%
1759
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1760
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1761
- var values = Iterators$2.Arguments = Iterators$2.Array;
1762
-
1763
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1764
- addToUnscopables('keys');
1765
- addToUnscopables('values');
1766
- addToUnscopables('entries');
1767
-
1768
- // V8 ~ Chrome 45- bug
1769
- if (DESCRIPTORS$4 && values.name !== 'values') try {
1770
- defineProperty$2(values, 'name', { value: 'values' });
1771
- } catch (error) { /* empty */ }
1772
-
1773
- var global$3 = global$h;
1774
- var DOMIterables = domIterables;
1775
- var DOMTokenListPrototype = domTokenListPrototype;
1776
- var ArrayIteratorMethods = es_array_iterator;
1777
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1778
- var wellKnownSymbol$6 = wellKnownSymbol$e;
1779
-
1780
- var ITERATOR$4 = wellKnownSymbol$6('iterator');
1781
- var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
1782
- var ArrayValues = ArrayIteratorMethods.values;
1783
-
1784
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1785
- if (CollectionPrototype) {
1786
- // some Chrome versions have non-configurable methods on DOMTokenList
1787
- if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1788
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1789
- } catch (error) {
1790
- CollectionPrototype[ITERATOR$4] = ArrayValues;
1791
- }
1792
- if (!CollectionPrototype[TO_STRING_TAG]) {
1793
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1794
- }
1795
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1796
- // some Chrome versions have non-configurable methods on DOMTokenList
1797
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1798
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1799
- } catch (error) {
1800
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1801
- }
1802
- }
1803
- }
1804
- };
1805
-
1806
- for (var COLLECTION_NAME in DOMIterables) {
1807
- handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
1808
- }
1809
-
1810
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1811
-
1812
- var uncurryThis$8 = functionUncurryThis;
1813
- var toIntegerOrInfinity = toIntegerOrInfinity$3;
1814
- var toString$2 = toString$4;
1815
- var requireObjectCoercible$1 = requireObjectCoercible$4;
1816
-
1817
- var charAt$3 = uncurryThis$8(''.charAt);
1818
- var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
1819
- var stringSlice$3 = uncurryThis$8(''.slice);
1820
-
1821
- var createMethod = function (CONVERT_TO_STRING) {
1822
- return function ($this, pos) {
1823
- var S = toString$2(requireObjectCoercible$1($this));
1824
- var position = toIntegerOrInfinity(pos);
1825
- var size = S.length;
1826
- var first, second;
1827
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1828
- first = charCodeAt$1(S, position);
1829
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1830
- || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
1831
- ? CONVERT_TO_STRING
1832
- ? charAt$3(S, position)
1833
- : first
1834
- : CONVERT_TO_STRING
1835
- ? stringSlice$3(S, position, position + 2)
1836
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1837
- };
1838
- };
1839
-
1840
- var stringMultibyte = {
1841
- // `String.prototype.codePointAt` method
1842
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1843
- codeAt: createMethod(false),
1844
- // `String.prototype.at` method
1845
- // https://github.com/mathiasbynens/String.prototype.at
1846
- charAt: createMethod(true)
1847
- };
1848
-
1849
- var charAt$2 = stringMultibyte.charAt;
1850
- var toString$1 = toString$4;
1851
- var InternalStateModule$2 = internalState;
1852
- var defineIterator = iteratorDefine;
1853
- var createIterResultObject = createIterResultObject$2;
1854
-
1855
- var STRING_ITERATOR = 'String Iterator';
1856
- var setInternalState$2 = InternalStateModule$2.set;
1857
- var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
1858
-
1859
- // `String.prototype[@@iterator]` method
1860
- // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
1861
- defineIterator(String, 'String', function (iterated) {
1862
- setInternalState$2(this, {
1863
- type: STRING_ITERATOR,
1864
- string: toString$1(iterated),
1865
- index: 0
1866
- });
1867
- // `%StringIteratorPrototype%.next` method
1868
- // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
1869
- }, function next() {
1870
- var state = getInternalState(this);
1871
- var string = state.string;
1872
- var index = state.index;
1873
- var point;
1874
- if (index >= string.length) return createIterResultObject(undefined, true);
1875
- point = charAt$2(string, index);
1876
- state.index += point.length;
1877
- return createIterResultObject(point, false);
1878
- });
1879
-
1880
- var fails$3 = fails$h;
1881
- var wellKnownSymbol$5 = wellKnownSymbol$e;
1882
- var DESCRIPTORS$3 = descriptors;
1883
- var IS_PURE = isPure;
1884
-
1885
- var ITERATOR$3 = wellKnownSymbol$5('iterator');
1886
-
1887
- var urlConstructorDetection = !fails$3(function () {
1888
- // eslint-disable-next-line unicorn/relative-url-style -- required for testing
1889
- var url = new URL('b?a=1&b=2&c=3', 'http://a');
1890
- var params = url.searchParams;
1891
- var params2 = new URLSearchParams('a=1&a=2&b=3');
1892
- var result = '';
1893
- url.pathname = 'c%20d';
1894
- params.forEach(function (value, key) {
1895
- params['delete']('b');
1896
- result += key + value;
1897
- });
1898
- params2['delete']('a', 2);
1899
- // `undefined` case is a Chromium 117 bug
1900
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1901
- params2['delete']('b', undefined);
1902
- return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
1903
- || (!params.size && (IS_PURE || !DESCRIPTORS$3))
1904
- || !params.sort
1905
- || url.href !== 'http://a/c%20d?a=1&c=3'
1906
- || params.get('c') !== '3'
1907
- || String(new URLSearchParams('?a=1')) !== 'a=1'
1908
- || !params[ITERATOR$3]
1909
- // throws in Edge
1910
- || new URL('https://a@b').username !== 'a'
1911
- || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
1912
- // not punycoded in Edge
1913
- || new URL('http://тест').host !== 'xn--e1aybc'
1914
- // not escaped in Chrome 62-
1915
- || new URL('http://a#б').hash !== '#%D0%B1'
1916
- // fails in Chrome 66-
1917
- || result !== 'a1c3'
1918
- // throws in Safari
1919
- || new URL('http://x', undefined).host !== 'x';
1920
- });
1921
-
1922
- var classofRaw = classofRaw$2;
1923
- var uncurryThis$7 = functionUncurryThis;
1924
-
1925
- var functionUncurryThisClause = function (fn) {
1926
- // Nashorn bug:
1927
- // https://github.com/zloirock/core-js/issues/1128
1928
- // https://github.com/zloirock/core-js/issues/1130
1929
- if (classofRaw(fn) === 'Function') return uncurryThis$7(fn);
1930
- };
1931
-
1932
- var uncurryThis$6 = functionUncurryThisClause;
1933
- var aCallable$1 = aCallable$4;
1934
- var NATIVE_BIND = functionBindNative;
1935
-
1936
- var bind$3 = uncurryThis$6(uncurryThis$6.bind);
1937
-
1938
- // optional / simple context binding
1939
- var functionBindContext = function (fn, that) {
1940
- aCallable$1(fn);
1941
- return that === undefined ? fn : NATIVE_BIND ? bind$3(fn, that) : function (/* ...args */) {
1942
- return fn.apply(that, arguments);
1943
- };
1944
- };
1945
-
1946
- var makeBuiltIn = makeBuiltInExports;
1947
- var defineProperty$1 = objectDefineProperty;
1948
-
1949
- var defineBuiltInAccessor$2 = function (target, name, descriptor) {
1950
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1951
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1952
- return defineProperty$1.f(target, name, descriptor);
1953
- };
1954
-
1955
- var isPrototypeOf$1 = objectIsPrototypeOf;
1956
-
1957
- var $TypeError$3 = TypeError;
1958
-
1959
- var anInstance$2 = function (it, Prototype) {
1960
- if (isPrototypeOf$1(Prototype, it)) return it;
1961
- throw new $TypeError$3('Incorrect invocation');
1962
- };
1963
-
1964
- var DESCRIPTORS$2 = descriptors;
1965
- var uncurryThis$5 = functionUncurryThis;
1966
- var call$5 = functionCall;
1967
- var fails$2 = fails$h;
1968
- var objectKeys = objectKeys$2;
1969
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1970
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1971
- var toObject$1 = toObject$4;
1972
- var IndexedObject = indexedObject;
1973
-
1974
- // eslint-disable-next-line es/no-object-assign -- safe
1975
- var $assign = Object.assign;
1976
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1977
- var defineProperty = Object.defineProperty;
1978
- var concat = uncurryThis$5([].concat);
1979
-
1980
- // `Object.assign` method
1981
- // https://tc39.es/ecma262/#sec-object.assign
1982
- var objectAssign = !$assign || fails$2(function () {
1983
- // should have correct order of operations (Edge bug)
1984
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1985
- enumerable: true,
1986
- get: function () {
1987
- defineProperty(this, 'b', {
1988
- value: 3,
1989
- enumerable: false
1990
- });
1991
- }
1992
- }), { b: 2 })).b !== 1) return true;
1993
- // should work with symbols and should have deterministic property order (V8 bug)
1994
- var A = {};
1995
- var B = {};
1996
- // eslint-disable-next-line es/no-symbol -- safe
1997
- var symbol = Symbol('assign detection');
1998
- var alphabet = 'abcdefghijklmnopqrst';
1999
- A[symbol] = 7;
2000
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2001
- return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
2002
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2003
- var T = toObject$1(target);
2004
- var argumentsLength = arguments.length;
2005
- var index = 1;
2006
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2007
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
2008
- while (argumentsLength > index) {
2009
- var S = IndexedObject(arguments[index++]);
2010
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2011
- var length = keys.length;
2012
- var j = 0;
2013
- var key;
2014
- while (length > j) {
2015
- key = keys[j++];
2016
- if (!DESCRIPTORS$2 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
2017
- }
2018
- } return T;
2019
- } : $assign;
2020
-
2021
- var call$4 = functionCall;
2022
- var anObject$4 = anObject$b;
2023
- var getMethod$1 = getMethod$3;
2024
-
2025
- var iteratorClose$1 = function (iterator, kind, value) {
2026
- var innerResult, innerError;
2027
- anObject$4(iterator);
2028
- try {
2029
- innerResult = getMethod$1(iterator, 'return');
2030
- if (!innerResult) {
2031
- if (kind === 'throw') throw value;
2032
- return value;
2033
- }
2034
- innerResult = call$4(innerResult, iterator);
2035
- } catch (error) {
2036
- innerError = true;
2037
- innerResult = error;
2038
- }
2039
- if (kind === 'throw') throw value;
2040
- if (innerError) throw innerResult;
2041
- anObject$4(innerResult);
2042
- return value;
2043
- };
2044
-
2045
- var anObject$3 = anObject$b;
2046
- var iteratorClose = iteratorClose$1;
2047
-
2048
- // call something on iterator step with safe closing on error
2049
- var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
2050
- try {
2051
- return ENTRIES ? fn(anObject$3(value)[0], value[1]) : fn(value);
2052
- } catch (error) {
2053
- iteratorClose(iterator, 'throw', error);
2054
- }
2055
- };
2056
-
2057
- var wellKnownSymbol$4 = wellKnownSymbol$e;
2058
- var Iterators$1 = iterators;
2059
-
2060
- var ITERATOR$2 = wellKnownSymbol$4('iterator');
2061
- var ArrayPrototype = Array.prototype;
2062
-
2063
- // check on default Array iterator
2064
- var isArrayIteratorMethod$1 = function (it) {
2065
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2066
- };
2067
-
2068
- var uncurryThis$4 = functionUncurryThis;
2069
- var fails$1 = fails$h;
2070
- var isCallable$1 = isCallable$h;
2071
- var classof$3 = classof$5;
2072
- var getBuiltIn = getBuiltIn$4;
2073
- var inspectSource = inspectSource$2;
2074
-
2075
- var noop = function () { /* empty */ };
2076
- var empty = [];
2077
- var construct = getBuiltIn('Reflect', 'construct');
2078
- var constructorRegExp = /^\s*(?:class|function)\b/;
2079
- var exec$2 = uncurryThis$4(constructorRegExp.exec);
2080
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2081
-
2082
- var isConstructorModern = function isConstructor(argument) {
2083
- if (!isCallable$1(argument)) return false;
2084
- try {
2085
- construct(noop, empty, argument);
2086
- return true;
2087
- } catch (error) {
2088
- return false;
2089
- }
2090
- };
2091
-
2092
- var isConstructorLegacy = function isConstructor(argument) {
2093
- if (!isCallable$1(argument)) return false;
2094
- switch (classof$3(argument)) {
2095
- case 'AsyncFunction':
2096
- case 'GeneratorFunction':
2097
- case 'AsyncGeneratorFunction': return false;
2098
- }
2099
- try {
2100
- // we can't check .prototype since constructors produced by .bind haven't it
2101
- // `Function#toString` throws on some built-it function in some legacy engines
2102
- // (for example, `DOMQuad` and similar in FF41-)
2103
- return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
2104
- } catch (error) {
2105
- return true;
2106
- }
2107
- };
2108
-
2109
- isConstructorLegacy.sham = true;
2110
-
2111
- // `IsConstructor` abstract operation
2112
- // https://tc39.es/ecma262/#sec-isconstructor
2113
- var isConstructor$1 = !construct || fails$1(function () {
2114
- var called;
2115
- return isConstructorModern(isConstructorModern.call)
2116
- || !isConstructorModern(Object)
2117
- || !isConstructorModern(function () { called = true; })
2118
- || called;
2119
- }) ? isConstructorLegacy : isConstructorModern;
2120
-
2121
- var toPropertyKey = toPropertyKey$3;
2122
- var definePropertyModule = objectDefineProperty;
2123
- var createPropertyDescriptor$1 = createPropertyDescriptor$5;
2124
-
2125
- var createProperty$2 = function (object, key, value) {
2126
- var propertyKey = toPropertyKey(key);
2127
- if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor$1(0, value));
2128
- else object[propertyKey] = value;
2129
- };
2130
-
2131
- var classof$2 = classof$5;
2132
- var getMethod = getMethod$3;
2133
- var isNullOrUndefined = isNullOrUndefined$3;
2134
- var Iterators = iterators;
2135
- var wellKnownSymbol$3 = wellKnownSymbol$e;
2136
-
2137
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
2138
-
2139
- var getIteratorMethod$3 = function (it) {
2140
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
2141
- || getMethod(it, '@@iterator')
2142
- || Iterators[classof$2(it)];
2143
- };
2144
-
2145
- var call$3 = functionCall;
2146
- var aCallable = aCallable$4;
2147
- var anObject$2 = anObject$b;
2148
- var tryToString = tryToString$2;
2149
- var getIteratorMethod$2 = getIteratorMethod$3;
2150
-
2151
- var $TypeError$2 = TypeError;
2152
-
2153
- var getIterator$2 = function (argument, usingIterator) {
2154
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
2155
- if (aCallable(iteratorMethod)) return anObject$2(call$3(iteratorMethod, argument));
2156
- throw new $TypeError$2(tryToString(argument) + ' is not iterable');
2157
- };
2158
-
2159
- var bind$2 = functionBindContext;
2160
- var call$2 = functionCall;
2161
- var toObject = toObject$4;
2162
- var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
2163
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2164
- var isConstructor = isConstructor$1;
2165
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
2166
- var createProperty$1 = createProperty$2;
2167
- var getIterator$1 = getIterator$2;
2168
- var getIteratorMethod$1 = getIteratorMethod$3;
2169
-
2170
- var $Array$1 = Array;
2171
-
2172
- // `Array.from` method implementation
2173
- // https://tc39.es/ecma262/#sec-array.from
2174
- var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
2175
- var O = toObject(arrayLike);
2176
- var IS_CONSTRUCTOR = isConstructor(this);
2177
- var argumentsLength = arguments.length;
2178
- var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
2179
- var mapping = mapfn !== undefined;
2180
- if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
2181
- var iteratorMethod = getIteratorMethod$1(O);
2182
- var index = 0;
2183
- var length, result, step, iterator, next, value;
2184
- // if the target is not iterable or it's an array with the default iterator - use a simple case
2185
- if (iteratorMethod && !(this === $Array$1 && isArrayIteratorMethod(iteratorMethod))) {
2186
- iterator = getIterator$1(O, iteratorMethod);
2187
- next = iterator.next;
2188
- result = IS_CONSTRUCTOR ? new this() : [];
2189
- for (;!(step = call$2(next, iterator)).done; index++) {
2190
- value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
2191
- createProperty$1(result, index, value);
2192
- }
2193
- } else {
2194
- length = lengthOfArrayLike$1(O);
2195
- result = IS_CONSTRUCTOR ? new this(length) : $Array$1(length);
2196
- for (;length > index; index++) {
2197
- value = mapping ? mapfn(O[index], index) : O[index];
2198
- createProperty$1(result, index, value);
2199
- }
2200
- }
2201
- result.length = index;
2202
- return result;
2203
- };
2204
-
2205
- var toAbsoluteIndex = toAbsoluteIndex$2;
2206
- var lengthOfArrayLike = lengthOfArrayLike$3;
2207
- var createProperty = createProperty$2;
2208
-
2209
- var $Array = Array;
2210
- var max = Math.max;
2211
-
2212
- var arraySliceSimple = function (O, start, end) {
2213
- var length = lengthOfArrayLike(O);
2214
- var k = toAbsoluteIndex(start, length);
2215
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2216
- var result = $Array(max(fin - k, 0));
2217
- var n = 0;
2218
- for (; k < fin; k++, n++) createProperty(result, n, O[k]);
2219
- result.length = n;
2220
- return result;
2221
- };
2222
-
2223
- // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
2224
- var uncurryThis$3 = functionUncurryThis;
2225
-
2226
- var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
2227
- var base = 36;
2228
- var tMin = 1;
2229
- var tMax = 26;
2230
- var skew = 38;
2231
- var damp = 700;
2232
- var initialBias = 72;
2233
- var initialN = 128; // 0x80
2234
- var delimiter = '-'; // '\x2D'
2235
- var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
2236
- var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2237
- var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
2238
- var baseMinusTMin = base - tMin;
2239
-
2240
- var $RangeError = RangeError;
2241
- var exec$1 = uncurryThis$3(regexSeparators.exec);
2242
- var floor$2 = Math.floor;
2243
- var fromCharCode = String.fromCharCode;
2244
- var charCodeAt = uncurryThis$3(''.charCodeAt);
2245
- var join$2 = uncurryThis$3([].join);
2246
- var push$2 = uncurryThis$3([].push);
2247
- var replace$2 = uncurryThis$3(''.replace);
2248
- var split$2 = uncurryThis$3(''.split);
2249
- var toLowerCase$1 = uncurryThis$3(''.toLowerCase);
2250
-
2251
- /**
2252
- * Creates an array containing the numeric code points of each Unicode
2253
- * character in the string. While JavaScript uses UCS-2 internally,
2254
- * this function will convert a pair of surrogate halves (each of which
2255
- * UCS-2 exposes as separate characters) into a single code point,
2256
- * matching UTF-16.
2257
- */
2258
- var ucs2decode = function (string) {
2259
- var output = [];
2260
- var counter = 0;
2261
- var length = string.length;
2262
- while (counter < length) {
2263
- var value = charCodeAt(string, counter++);
2264
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
2265
- // It's a high surrogate, and there is a next character.
2266
- var extra = charCodeAt(string, counter++);
2267
- if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
2268
- push$2(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
2269
- } else {
2270
- // It's an unmatched surrogate; only append this code unit, in case the
2271
- // next code unit is the high surrogate of a surrogate pair.
2272
- push$2(output, value);
2273
- counter--;
2274
- }
2275
- } else {
2276
- push$2(output, value);
2277
- }
2278
- }
2279
- return output;
2280
- };
2281
-
2282
- /**
2283
- * Converts a digit/integer into a basic code point.
2284
- */
2285
- var digitToBasic = function (digit) {
2286
- // 0..25 map to ASCII a..z or A..Z
2287
- // 26..35 map to ASCII 0..9
2288
- return digit + 22 + 75 * (digit < 26);
2289
- };
2290
-
2291
- /**
2292
- * Bias adaptation function as per section 3.4 of RFC 3492.
2293
- * https://tools.ietf.org/html/rfc3492#section-3.4
2294
- */
2295
- var adapt = function (delta, numPoints, firstTime) {
2296
- var k = 0;
2297
- delta = firstTime ? floor$2(delta / damp) : delta >> 1;
2298
- delta += floor$2(delta / numPoints);
2299
- while (delta > baseMinusTMin * tMax >> 1) {
2300
- delta = floor$2(delta / baseMinusTMin);
2301
- k += base;
2302
- }
2303
- return floor$2(k + (baseMinusTMin + 1) * delta / (delta + skew));
2304
- };
2305
-
2306
- /**
2307
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
2308
- * Punycode string of ASCII-only symbols.
2309
- */
2310
- var encode = function (input) {
2311
- var output = [];
2312
-
2313
- // Convert the input in UCS-2 to an array of Unicode code points.
2314
- input = ucs2decode(input);
2315
-
2316
- // Cache the length.
2317
- var inputLength = input.length;
2318
-
2319
- // Initialize the state.
2320
- var n = initialN;
2321
- var delta = 0;
2322
- var bias = initialBias;
2323
- var i, currentValue;
2324
-
2325
- // Handle the basic code points.
2326
- for (i = 0; i < input.length; i++) {
2327
- currentValue = input[i];
2328
- if (currentValue < 0x80) {
2329
- push$2(output, fromCharCode(currentValue));
2330
- }
2331
- }
2332
-
2333
- var basicLength = output.length; // number of basic code points.
2334
- var handledCPCount = basicLength; // number of code points that have been handled;
2335
-
2336
- // Finish the basic string with a delimiter unless it's empty.
2337
- if (basicLength) {
2338
- push$2(output, delimiter);
2339
- }
2340
-
2341
- // Main encoding loop:
2342
- while (handledCPCount < inputLength) {
2343
- // All non-basic code points < n have been handled already. Find the next larger one:
2344
- var m = maxInt;
2345
- for (i = 0; i < input.length; i++) {
2346
- currentValue = input[i];
2347
- if (currentValue >= n && currentValue < m) {
2348
- m = currentValue;
2349
- }
2350
- }
2351
-
2352
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
2353
- var handledCPCountPlusOne = handledCPCount + 1;
2354
- if (m - n > floor$2((maxInt - delta) / handledCPCountPlusOne)) {
2355
- throw new $RangeError(OVERFLOW_ERROR);
2356
- }
2357
-
2358
- delta += (m - n) * handledCPCountPlusOne;
2359
- n = m;
2360
-
2361
- for (i = 0; i < input.length; i++) {
2362
- currentValue = input[i];
2363
- if (currentValue < n && ++delta > maxInt) {
2364
- throw new $RangeError(OVERFLOW_ERROR);
2365
- }
2366
- if (currentValue === n) {
2367
- // Represent delta as a generalized variable-length integer.
2368
- var q = delta;
2369
- var k = base;
2370
- while (true) {
2371
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
2372
- if (q < t) break;
2373
- var qMinusT = q - t;
2374
- var baseMinusT = base - t;
2375
- push$2(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
2376
- q = floor$2(qMinusT / baseMinusT);
2377
- k += base;
2378
- }
2379
-
2380
- push$2(output, fromCharCode(digitToBasic(q)));
2381
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
2382
- delta = 0;
2383
- handledCPCount++;
2384
- }
2385
- }
2386
-
2387
- delta++;
2388
- n++;
2389
- }
2390
- return join$2(output, '');
2391
- };
2392
-
2393
- var stringPunycodeToAscii = function (input) {
2394
- var encoded = [];
2395
- var labels = split$2(replace$2(toLowerCase$1(input), regexSeparators, '\u002E'), '.');
2396
- var i, label;
2397
- for (i = 0; i < labels.length; i++) {
2398
- label = labels[i];
2399
- push$2(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label);
2400
- }
2401
- return join$2(encoded, '.');
2402
- };
2403
-
2404
- var $TypeError$1 = TypeError;
2405
-
2406
- var validateArgumentsLength$2 = function (passed, required) {
2407
- if (passed < required) throw new $TypeError$1('Not enough arguments');
2408
- return passed;
2409
- };
2410
-
2411
- var defineBuiltIn$3 = defineBuiltIn$7;
2412
-
2413
- var defineBuiltIns$1 = function (target, src, options) {
2414
- for (var key in src) defineBuiltIn$3(target, key, src[key], options);
2415
- return target;
2416
- };
2417
-
2418
- var arraySlice$1 = arraySliceSimple;
2419
-
2420
- var floor$1 = Math.floor;
2421
-
2422
- var mergeSort = function (array, comparefn) {
2423
- var length = array.length;
2424
- var middle = floor$1(length / 2);
2425
- return length < 8 ? insertionSort(array, comparefn) : merge(
2426
- array,
2427
- mergeSort(arraySlice$1(array, 0, middle), comparefn),
2428
- mergeSort(arraySlice$1(array, middle), comparefn),
2429
- comparefn
2430
- );
2431
- };
2432
-
2433
- var insertionSort = function (array, comparefn) {
2434
- var length = array.length;
2435
- var i = 1;
2436
- var element, j;
2437
-
2438
- while (i < length) {
2439
- j = i;
2440
- element = array[i];
2441
- while (j && comparefn(array[j - 1], element) > 0) {
2442
- array[j] = array[--j];
2443
- }
2444
- if (j !== i++) array[j] = element;
2445
- } return array;
2446
- };
2447
-
2448
- var merge = function (array, left, right, comparefn) {
2449
- var llength = left.length;
2450
- var rlength = right.length;
2451
- var lindex = 0;
2452
- var rindex = 0;
2453
-
2454
- while (lindex < llength || rindex < rlength) {
2455
- array[lindex + rindex] = (lindex < llength && rindex < rlength)
2456
- ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
2457
- : lindex < llength ? left[lindex++] : right[rindex++];
2458
- } return array;
2459
- };
2460
-
2461
- var arraySort$1 = mergeSort;
2462
-
2463
- // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2464
-
2465
- var $$2 = _export;
2466
- var global$2 = global$h;
2467
- var call$1 = functionCall;
2468
- var uncurryThis$2 = functionUncurryThis;
2469
- var DESCRIPTORS$1 = descriptors;
2470
- var USE_NATIVE_URL$1 = urlConstructorDetection;
2471
- var defineBuiltIn$2 = defineBuiltIn$7;
2472
- var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
2473
- var defineBuiltIns = defineBuiltIns$1;
2474
- var setToStringTag$1 = setToStringTag$4;
2475
- var createIteratorConstructor = iteratorCreateConstructor;
2476
- var InternalStateModule$1 = internalState;
2477
- var anInstance$1 = anInstance$2;
2478
- var isCallable = isCallable$h;
2479
- var hasOwn$2 = hasOwnProperty_1;
2480
- var bind$1 = functionBindContext;
2481
- var classof$1 = classof$5;
2482
- var anObject$1 = anObject$b;
2483
- var isObject$1 = isObject$8;
2484
- var $toString$2 = toString$4;
2485
- var create = objectCreate;
2486
- var createPropertyDescriptor = createPropertyDescriptor$5;
2487
- var getIterator = getIterator$2;
2488
- var getIteratorMethod = getIteratorMethod$3;
2489
- var validateArgumentsLength$1 = validateArgumentsLength$2;
2490
- var wellKnownSymbol$2 = wellKnownSymbol$e;
2491
- var arraySort = arraySort$1;
2492
-
2493
- var ITERATOR = wellKnownSymbol$2('iterator');
2494
- var URL_SEARCH_PARAMS = 'URLSearchParams';
2495
- var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
2496
- var setInternalState$1 = InternalStateModule$1.set;
2497
- var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
2498
- var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
2499
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2500
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2501
-
2502
- // Avoid NodeJS experimental warning
2503
- var safeGetBuiltIn = function (name) {
2504
- if (!DESCRIPTORS$1) return global$2[name];
2505
- var descriptor = getOwnPropertyDescriptor$1(global$2, name);
2506
- return descriptor && descriptor.value;
2507
- };
2508
-
2509
- var nativeFetch = safeGetBuiltIn('fetch');
2510
- var NativeRequest = safeGetBuiltIn('Request');
2511
- var Headers = safeGetBuiltIn('Headers');
2512
- var RequestPrototype = NativeRequest && NativeRequest.prototype;
2513
- var HeadersPrototype = Headers && Headers.prototype;
2514
- var RegExp$1 = global$2.RegExp;
2515
- var TypeError$2 = global$2.TypeError;
2516
- var decodeURIComponent = global$2.decodeURIComponent;
2517
- var encodeURIComponent$1 = global$2.encodeURIComponent;
2518
- var charAt$1 = uncurryThis$2(''.charAt);
2519
- var join$1 = uncurryThis$2([].join);
2520
- var push$1 = uncurryThis$2([].push);
2521
- var replace$1 = uncurryThis$2(''.replace);
2522
- var shift$1 = uncurryThis$2([].shift);
2523
- var splice = uncurryThis$2([].splice);
2524
- var split$1 = uncurryThis$2(''.split);
2525
- var stringSlice$2 = uncurryThis$2(''.slice);
2526
-
2527
- var plus = /\+/g;
2528
- var sequences = Array(4);
2529
-
2530
- var percentSequence = function (bytes) {
2531
- return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
2532
- };
2533
-
2534
- var percentDecode = function (sequence) {
2535
- try {
2536
- return decodeURIComponent(sequence);
2537
- } catch (error) {
2538
- return sequence;
2539
- }
2540
- };
2541
-
2542
- var deserialize = function (it) {
2543
- var result = replace$1(it, plus, ' ');
2544
- var bytes = 4;
2545
- try {
2546
- return decodeURIComponent(result);
2547
- } catch (error) {
2548
- while (bytes) {
2549
- result = replace$1(result, percentSequence(bytes--), percentDecode);
2550
- }
2551
- return result;
2552
- }
2553
- };
2554
-
2555
- var find = /[!'()~]|%20/g;
2556
-
2557
- var replacements = {
2558
- '!': '%21',
2559
- "'": '%27',
2560
- '(': '%28',
2561
- ')': '%29',
2562
- '~': '%7E',
2563
- '%20': '+'
2564
- };
2565
-
2566
- var replacer = function (match) {
2567
- return replacements[match];
2568
- };
2569
-
2570
- var serialize = function (it) {
2571
- return replace$1(encodeURIComponent$1(it), find, replacer);
2572
- };
2573
-
2574
- var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
2575
- setInternalState$1(this, {
2576
- type: URL_SEARCH_PARAMS_ITERATOR,
2577
- iterator: getIterator(getInternalParamsState(params).entries),
2578
- kind: kind
2579
- });
2580
- }, 'Iterator', function next() {
2581
- var state = getInternalIteratorState(this);
2582
- var kind = state.kind;
2583
- var step = state.iterator.next();
2584
- var entry = step.value;
2585
- if (!step.done) {
2586
- step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
2587
- } return step;
2588
- }, true);
2589
-
2590
- var URLSearchParamsState = function (init) {
2591
- this.entries = [];
2592
- this.url = null;
2593
-
2594
- if (init !== undefined) {
2595
- if (isObject$1(init)) this.parseObject(init);
2596
- else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$2(init, 1) : init : $toString$2(init));
2597
- }
2598
- };
2599
-
2600
- URLSearchParamsState.prototype = {
2601
- type: URL_SEARCH_PARAMS,
2602
- bindURL: function (url) {
2603
- this.url = url;
2604
- this.update();
2605
- },
2606
- parseObject: function (object) {
2607
- var iteratorMethod = getIteratorMethod(object);
2608
- var iterator, next, step, entryIterator, entryNext, first, second;
2609
-
2610
- if (iteratorMethod) {
2611
- iterator = getIterator(object, iteratorMethod);
2612
- next = iterator.next;
2613
- while (!(step = call$1(next, iterator)).done) {
2614
- entryIterator = getIterator(anObject$1(step.value));
2615
- entryNext = entryIterator.next;
2616
- if (
2617
- (first = call$1(entryNext, entryIterator)).done ||
2618
- (second = call$1(entryNext, entryIterator)).done ||
2619
- !call$1(entryNext, entryIterator).done
2620
- ) throw new TypeError$2('Expected sequence with length 2');
2621
- push$1(this.entries, { key: $toString$2(first.value), value: $toString$2(second.value) });
2622
- }
2623
- } else for (var key in object) if (hasOwn$2(object, key)) {
2624
- push$1(this.entries, { key: key, value: $toString$2(object[key]) });
2625
- }
2626
- },
2627
- parseQuery: function (query) {
2628
- if (query) {
2629
- var attributes = split$1(query, '&');
2630
- var index = 0;
2631
- var attribute, entry;
2632
- while (index < attributes.length) {
2633
- attribute = attributes[index++];
2634
- if (attribute.length) {
2635
- entry = split$1(attribute, '=');
2636
- push$1(this.entries, {
2637
- key: deserialize(shift$1(entry)),
2638
- value: deserialize(join$1(entry, '='))
2639
- });
2640
- }
2641
- }
2642
- }
2643
- },
2644
- serialize: function () {
2645
- var entries = this.entries;
2646
- var result = [];
2647
- var index = 0;
2648
- var entry;
2649
- while (index < entries.length) {
2650
- entry = entries[index++];
2651
- push$1(result, serialize(entry.key) + '=' + serialize(entry.value));
2652
- } return join$1(result, '&');
2653
- },
2654
- update: function () {
2655
- this.entries.length = 0;
2656
- this.parseQuery(this.url.query);
2657
- },
2658
- updateURL: function () {
2659
- if (this.url) this.url.update();
2660
- }
2661
- };
2662
-
2663
- // `URLSearchParams` constructor
2664
- // https://url.spec.whatwg.org/#interface-urlsearchparams
2665
- var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
2666
- anInstance$1(this, URLSearchParamsPrototype);
2667
- var init = arguments.length > 0 ? arguments[0] : undefined;
2668
- var state = setInternalState$1(this, new URLSearchParamsState(init));
2669
- if (!DESCRIPTORS$1) this.size = state.entries.length;
2670
- };
2671
-
2672
- var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
2673
-
2674
- defineBuiltIns(URLSearchParamsPrototype, {
2675
- // `URLSearchParams.prototype.append` method
2676
- // https://url.spec.whatwg.org/#dom-urlsearchparams-append
2677
- append: function append(name, value) {
2678
- var state = getInternalParamsState(this);
2679
- validateArgumentsLength$1(arguments.length, 2);
2680
- push$1(state.entries, { key: $toString$2(name), value: $toString$2(value) });
2681
- if (!DESCRIPTORS$1) this.length++;
2682
- state.updateURL();
2683
- },
2684
- // `URLSearchParams.prototype.delete` method
2685
- // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
2686
- 'delete': function (name /* , value */) {
2687
- var state = getInternalParamsState(this);
2688
- var length = validateArgumentsLength$1(arguments.length, 1);
2689
- var entries = state.entries;
2690
- var key = $toString$2(name);
2691
- var $value = length < 2 ? undefined : arguments[1];
2692
- var value = $value === undefined ? $value : $toString$2($value);
2693
- var index = 0;
2694
- while (index < entries.length) {
2695
- var entry = entries[index];
2696
- if (entry.key === key && (value === undefined || entry.value === value)) {
2697
- splice(entries, index, 1);
2698
- if (value !== undefined) break;
2699
- } else index++;
2700
- }
2701
- if (!DESCRIPTORS$1) this.size = entries.length;
2702
- state.updateURL();
2703
- },
2704
- // `URLSearchParams.prototype.get` method
2705
- // https://url.spec.whatwg.org/#dom-urlsearchparams-get
2706
- get: function get(name) {
2707
- var entries = getInternalParamsState(this).entries;
2708
- validateArgumentsLength$1(arguments.length, 1);
2709
- var key = $toString$2(name);
2710
- var index = 0;
2711
- for (; index < entries.length; index++) {
2712
- if (entries[index].key === key) return entries[index].value;
2713
- }
2714
- return null;
2715
- },
2716
- // `URLSearchParams.prototype.getAll` method
2717
- // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
2718
- getAll: function getAll(name) {
2719
- var entries = getInternalParamsState(this).entries;
2720
- validateArgumentsLength$1(arguments.length, 1);
2721
- var key = $toString$2(name);
2722
- var result = [];
2723
- var index = 0;
2724
- for (; index < entries.length; index++) {
2725
- if (entries[index].key === key) push$1(result, entries[index].value);
2726
- }
2727
- return result;
2728
- },
2729
- // `URLSearchParams.prototype.has` method
2730
- // https://url.spec.whatwg.org/#dom-urlsearchparams-has
2731
- has: function has(name /* , value */) {
2732
- var entries = getInternalParamsState(this).entries;
2733
- var length = validateArgumentsLength$1(arguments.length, 1);
2734
- var key = $toString$2(name);
2735
- var $value = length < 2 ? undefined : arguments[1];
2736
- var value = $value === undefined ? $value : $toString$2($value);
2737
- var index = 0;
2738
- while (index < entries.length) {
2739
- var entry = entries[index++];
2740
- if (entry.key === key && (value === undefined || entry.value === value)) return true;
2741
- }
2742
- return false;
2743
- },
2744
- // `URLSearchParams.prototype.set` method
2745
- // https://url.spec.whatwg.org/#dom-urlsearchparams-set
2746
- set: function set(name, value) {
2747
- var state = getInternalParamsState(this);
2748
- validateArgumentsLength$1(arguments.length, 1);
2749
- var entries = state.entries;
2750
- var found = false;
2751
- var key = $toString$2(name);
2752
- var val = $toString$2(value);
2753
- var index = 0;
2754
- var entry;
2755
- for (; index < entries.length; index++) {
2756
- entry = entries[index];
2757
- if (entry.key === key) {
2758
- if (found) splice(entries, index--, 1);
2759
- else {
2760
- found = true;
2761
- entry.value = val;
2762
- }
2763
- }
2764
- }
2765
- if (!found) push$1(entries, { key: key, value: val });
2766
- if (!DESCRIPTORS$1) this.size = entries.length;
2767
- state.updateURL();
2768
- },
2769
- // `URLSearchParams.prototype.sort` method
2770
- // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
2771
- sort: function sort() {
2772
- var state = getInternalParamsState(this);
2773
- arraySort(state.entries, function (a, b) {
2774
- return a.key > b.key ? 1 : -1;
2775
- });
2776
- state.updateURL();
2777
- },
2778
- // `URLSearchParams.prototype.forEach` method
2779
- forEach: function forEach(callback /* , thisArg */) {
2780
- var entries = getInternalParamsState(this).entries;
2781
- var boundFunction = bind$1(callback, arguments.length > 1 ? arguments[1] : undefined);
2782
- var index = 0;
2783
- var entry;
2784
- while (index < entries.length) {
2785
- entry = entries[index++];
2786
- boundFunction(entry.value, entry.key, this);
2787
- }
2788
- },
2789
- // `URLSearchParams.prototype.keys` method
2790
- keys: function keys() {
2791
- return new URLSearchParamsIterator(this, 'keys');
2792
- },
2793
- // `URLSearchParams.prototype.values` method
2794
- values: function values() {
2795
- return new URLSearchParamsIterator(this, 'values');
2796
- },
2797
- // `URLSearchParams.prototype.entries` method
2798
- entries: function entries() {
2799
- return new URLSearchParamsIterator(this, 'entries');
2800
- }
2801
- }, { enumerable: true });
2802
-
2803
- // `URLSearchParams.prototype[@@iterator]` method
2804
- defineBuiltIn$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
2805
-
2806
- // `URLSearchParams.prototype.toString` method
2807
- // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
2808
- defineBuiltIn$2(URLSearchParamsPrototype, 'toString', function toString() {
2809
- return getInternalParamsState(this).serialize();
2810
- }, { enumerable: true });
2811
-
2812
- // `URLSearchParams.prototype.size` getter
2813
- // https://github.com/whatwg/url/pull/734
2814
- if (DESCRIPTORS$1) defineBuiltInAccessor$1(URLSearchParamsPrototype, 'size', {
2815
- get: function size() {
2816
- return getInternalParamsState(this).entries.length;
2817
- },
2818
- configurable: true,
2819
- enumerable: true
2820
- });
2821
-
2822
- setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
2823
-
2824
- $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
2825
- URLSearchParams: URLSearchParamsConstructor
2826
- });
2827
-
2828
- // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
2829
- if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
2830
- var headersHas = uncurryThis$2(HeadersPrototype.has);
2831
- var headersSet = uncurryThis$2(HeadersPrototype.set);
2832
-
2833
- var wrapRequestOptions = function (init) {
2834
- if (isObject$1(init)) {
2835
- var body = init.body;
2836
- var headers;
2837
- if (classof$1(body) === URL_SEARCH_PARAMS) {
2838
- headers = init.headers ? new Headers(init.headers) : new Headers();
2839
- if (!headersHas(headers, 'content-type')) {
2840
- headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
2841
- }
2842
- return create(init, {
2843
- body: createPropertyDescriptor(0, $toString$2(body)),
2844
- headers: createPropertyDescriptor(0, headers)
2845
- });
2846
- }
2847
- } return init;
2848
- };
2849
-
2850
- if (isCallable(nativeFetch)) {
2851
- $$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
2852
- fetch: function fetch(input /* , init */) {
2853
- return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2854
- }
2855
- });
2856
- }
2857
-
2858
- if (isCallable(NativeRequest)) {
2859
- var RequestConstructor = function Request(input /* , init */) {
2860
- anInstance$1(this, RequestPrototype);
2861
- return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2862
- };
2863
-
2864
- RequestPrototype.constructor = RequestConstructor;
2865
- RequestConstructor.prototype = RequestPrototype;
2866
-
2867
- $$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
2868
- Request: RequestConstructor
2869
- });
2870
- }
2871
- }
2872
-
2873
- var web_urlSearchParams_constructor = {
2874
- URLSearchParams: URLSearchParamsConstructor,
2875
- getState: getInternalParamsState
2876
- };
2877
-
2878
- // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2879
-
2880
- var $$1 = _export;
2881
- var DESCRIPTORS = descriptors;
2882
- var USE_NATIVE_URL = urlConstructorDetection;
2883
- var global$1 = global$h;
2884
- var bind = functionBindContext;
2885
- var uncurryThis$1 = functionUncurryThis;
2886
- var defineBuiltIn$1 = defineBuiltIn$7;
2887
- var defineBuiltInAccessor = defineBuiltInAccessor$2;
2888
- var anInstance = anInstance$2;
2889
- var hasOwn$1 = hasOwnProperty_1;
2890
- var assign = objectAssign;
2891
- var arrayFrom = arrayFrom$1;
2892
- var arraySlice = arraySliceSimple;
2893
- var codeAt = stringMultibyte.codeAt;
2894
- var toASCII = stringPunycodeToAscii;
2895
- var $toString$1 = toString$4;
2896
- var setToStringTag = setToStringTag$4;
2897
- var validateArgumentsLength = validateArgumentsLength$2;
2898
- var URLSearchParamsModule = web_urlSearchParams_constructor;
2899
- var InternalStateModule = internalState;
2900
-
2901
- var setInternalState = InternalStateModule.set;
2902
- var getInternalURLState = InternalStateModule.getterFor('URL');
2903
- var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
2904
- var getInternalSearchParamsState = URLSearchParamsModule.getState;
2905
-
2906
- var NativeURL = global$1.URL;
2907
- var TypeError$1 = global$1.TypeError;
2908
- var parseInt = global$1.parseInt;
2909
- var floor = Math.floor;
2910
- var pow = Math.pow;
2911
- var charAt = uncurryThis$1(''.charAt);
2912
- var exec = uncurryThis$1(/./.exec);
2913
- var join = uncurryThis$1([].join);
2914
- var numberToString = uncurryThis$1(1.0.toString);
2915
- var pop = uncurryThis$1([].pop);
2916
- var push = uncurryThis$1([].push);
2917
- var replace = uncurryThis$1(''.replace);
2918
- var shift = uncurryThis$1([].shift);
2919
- var split = uncurryThis$1(''.split);
2920
- var stringSlice$1 = uncurryThis$1(''.slice);
2921
- var toLowerCase = uncurryThis$1(''.toLowerCase);
2922
- var unshift = uncurryThis$1([].unshift);
2923
-
2924
- var INVALID_AUTHORITY = 'Invalid authority';
2925
- var INVALID_SCHEME = 'Invalid scheme';
2926
- var INVALID_HOST = 'Invalid host';
2927
- var INVALID_PORT = 'Invalid port';
2928
-
2929
- var ALPHA = /[a-z]/i;
2930
- // eslint-disable-next-line regexp/no-obscure-range -- safe
2931
- var ALPHANUMERIC = /[\d+-.a-z]/i;
2932
- var DIGIT = /\d/;
2933
- var HEX_START = /^0x/i;
2934
- var OCT = /^[0-7]+$/;
2935
- var DEC = /^\d+$/;
2936
- var HEX = /^[\da-f]+$/i;
2937
- /* eslint-disable regexp/no-control-character -- safe */
2938
- var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
2939
- var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
2940
- var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
2941
- var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
2942
- var TAB_AND_NEW_LINE = /[\t\n\r]/g;
2943
- /* eslint-enable regexp/no-control-character -- safe */
2944
- var EOF;
2945
-
2946
- // https://url.spec.whatwg.org/#ipv4-number-parser
2947
- var parseIPv4 = function (input) {
2948
- var parts = split(input, '.');
2949
- var partsLength, numbers, index, part, radix, number, ipv4;
2950
- if (parts.length && parts[parts.length - 1] === '') {
2951
- parts.length--;
2952
- }
2953
- partsLength = parts.length;
2954
- if (partsLength > 4) return input;
2955
- numbers = [];
2956
- for (index = 0; index < partsLength; index++) {
2957
- part = parts[index];
2958
- if (part === '') return input;
2959
- radix = 10;
2960
- if (part.length > 1 && charAt(part, 0) === '0') {
2961
- radix = exec(HEX_START, part) ? 16 : 8;
2962
- part = stringSlice$1(part, radix === 8 ? 1 : 2);
2963
- }
2964
- if (part === '') {
2965
- number = 0;
2966
- } else {
2967
- if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
2968
- number = parseInt(part, radix);
2969
- }
2970
- push(numbers, number);
2971
- }
2972
- for (index = 0; index < partsLength; index++) {
2973
- number = numbers[index];
2974
- if (index === partsLength - 1) {
2975
- if (number >= pow(256, 5 - partsLength)) return null;
2976
- } else if (number > 255) return null;
2977
- }
2978
- ipv4 = pop(numbers);
2979
- for (index = 0; index < numbers.length; index++) {
2980
- ipv4 += numbers[index] * pow(256, 3 - index);
2981
- }
2982
- return ipv4;
2983
- };
2984
-
2985
- // https://url.spec.whatwg.org/#concept-ipv6-parser
2986
- // eslint-disable-next-line max-statements -- TODO
2987
- var parseIPv6 = function (input) {
2988
- var address = [0, 0, 0, 0, 0, 0, 0, 0];
2989
- var pieceIndex = 0;
2990
- var compress = null;
2991
- var pointer = 0;
2992
- var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
2993
-
2994
- var chr = function () {
2995
- return charAt(input, pointer);
2996
- };
2997
-
2998
- if (chr() === ':') {
2999
- if (charAt(input, 1) !== ':') return;
3000
- pointer += 2;
3001
- pieceIndex++;
3002
- compress = pieceIndex;
3003
- }
3004
- while (chr()) {
3005
- if (pieceIndex === 8) return;
3006
- if (chr() === ':') {
3007
- if (compress !== null) return;
3008
- pointer++;
3009
- pieceIndex++;
3010
- compress = pieceIndex;
3011
- continue;
3012
- }
3013
- value = length = 0;
3014
- while (length < 4 && exec(HEX, chr())) {
3015
- value = value * 16 + parseInt(chr(), 16);
3016
- pointer++;
3017
- length++;
3018
- }
3019
- if (chr() === '.') {
3020
- if (length === 0) return;
3021
- pointer -= length;
3022
- if (pieceIndex > 6) return;
3023
- numbersSeen = 0;
3024
- while (chr()) {
3025
- ipv4Piece = null;
3026
- if (numbersSeen > 0) {
3027
- if (chr() === '.' && numbersSeen < 4) pointer++;
3028
- else return;
3029
- }
3030
- if (!exec(DIGIT, chr())) return;
3031
- while (exec(DIGIT, chr())) {
3032
- number = parseInt(chr(), 10);
3033
- if (ipv4Piece === null) ipv4Piece = number;
3034
- else if (ipv4Piece === 0) return;
3035
- else ipv4Piece = ipv4Piece * 10 + number;
3036
- if (ipv4Piece > 255) return;
3037
- pointer++;
3038
- }
3039
- address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
3040
- numbersSeen++;
3041
- if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
3042
- }
3043
- if (numbersSeen !== 4) return;
3044
- break;
3045
- } else if (chr() === ':') {
3046
- pointer++;
3047
- if (!chr()) return;
3048
- } else if (chr()) return;
3049
- address[pieceIndex++] = value;
3050
- }
3051
- if (compress !== null) {
3052
- swaps = pieceIndex - compress;
3053
- pieceIndex = 7;
3054
- while (pieceIndex !== 0 && swaps > 0) {
3055
- swap = address[pieceIndex];
3056
- address[pieceIndex--] = address[compress + swaps - 1];
3057
- address[compress + --swaps] = swap;
3058
- }
3059
- } else if (pieceIndex !== 8) return;
3060
- return address;
3061
- };
3062
-
3063
- var findLongestZeroSequence = function (ipv6) {
3064
- var maxIndex = null;
3065
- var maxLength = 1;
3066
- var currStart = null;
3067
- var currLength = 0;
3068
- var index = 0;
3069
- for (; index < 8; index++) {
3070
- if (ipv6[index] !== 0) {
3071
- if (currLength > maxLength) {
3072
- maxIndex = currStart;
3073
- maxLength = currLength;
3074
- }
3075
- currStart = null;
3076
- currLength = 0;
3077
- } else {
3078
- if (currStart === null) currStart = index;
3079
- ++currLength;
3080
- }
3081
- }
3082
- if (currLength > maxLength) {
3083
- maxIndex = currStart;
3084
- maxLength = currLength;
3085
- }
3086
- return maxIndex;
3087
- };
3088
-
3089
- // https://url.spec.whatwg.org/#host-serializing
3090
- var serializeHost = function (host) {
3091
- var result, index, compress, ignore0;
3092
- // ipv4
3093
- if (typeof host == 'number') {
3094
- result = [];
3095
- for (index = 0; index < 4; index++) {
3096
- unshift(result, host % 256);
3097
- host = floor(host / 256);
3098
- } return join(result, '.');
3099
- // ipv6
3100
- } else if (typeof host == 'object') {
3101
- result = '';
3102
- compress = findLongestZeroSequence(host);
3103
- for (index = 0; index < 8; index++) {
3104
- if (ignore0 && host[index] === 0) continue;
3105
- if (ignore0) ignore0 = false;
3106
- if (compress === index) {
3107
- result += index ? ':' : '::';
3108
- ignore0 = true;
3109
- } else {
3110
- result += numberToString(host[index], 16);
3111
- if (index < 7) result += ':';
3112
- }
3113
- }
3114
- return '[' + result + ']';
3115
- } return host;
3116
- };
3117
-
3118
- var C0ControlPercentEncodeSet = {};
3119
- var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
3120
- ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
3121
- });
3122
- var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
3123
- '#': 1, '?': 1, '{': 1, '}': 1
3124
- });
3125
- var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
3126
- '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
3127
- });
3128
-
3129
- var percentEncode = function (chr, set) {
3130
- var code = codeAt(chr, 0);
3131
- return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
3132
- };
3133
-
3134
- // https://url.spec.whatwg.org/#special-scheme
3135
- var specialSchemes = {
3136
- ftp: 21,
3137
- file: null,
3138
- http: 80,
3139
- https: 443,
3140
- ws: 80,
3141
- wss: 443
3142
- };
3143
-
3144
- // https://url.spec.whatwg.org/#windows-drive-letter
3145
- var isWindowsDriveLetter = function (string, normalized) {
3146
- var second;
3147
- return string.length === 2 && exec(ALPHA, charAt(string, 0))
3148
- && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
3149
- };
3150
-
3151
- // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
3152
- var startsWithWindowsDriveLetter = function (string) {
3153
- var third;
3154
- return string.length > 1 && isWindowsDriveLetter(stringSlice$1(string, 0, 2)) && (
3155
- string.length === 2 ||
3156
- ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
3157
- );
3158
- };
3159
-
3160
- // https://url.spec.whatwg.org/#single-dot-path-segment
3161
- var isSingleDot = function (segment) {
3162
- return segment === '.' || toLowerCase(segment) === '%2e';
3163
- };
3164
-
3165
- // https://url.spec.whatwg.org/#double-dot-path-segment
3166
- var isDoubleDot = function (segment) {
3167
- segment = toLowerCase(segment);
3168
- return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
3169
- };
3170
-
3171
- // States:
3172
- var SCHEME_START = {};
3173
- var SCHEME = {};
3174
- var NO_SCHEME = {};
3175
- var SPECIAL_RELATIVE_OR_AUTHORITY = {};
3176
- var PATH_OR_AUTHORITY = {};
3177
- var RELATIVE = {};
3178
- var RELATIVE_SLASH = {};
3179
- var SPECIAL_AUTHORITY_SLASHES = {};
3180
- var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
3181
- var AUTHORITY = {};
3182
- var HOST = {};
3183
- var HOSTNAME = {};
3184
- var PORT = {};
3185
- var FILE = {};
3186
- var FILE_SLASH = {};
3187
- var FILE_HOST = {};
3188
- var PATH_START = {};
3189
- var PATH = {};
3190
- var CANNOT_BE_A_BASE_URL_PATH = {};
3191
- var QUERY = {};
3192
- var FRAGMENT = {};
3193
-
3194
- var URLState = function (url, isBase, base) {
3195
- var urlString = $toString$1(url);
3196
- var baseState, failure, searchParams;
3197
- if (isBase) {
3198
- failure = this.parse(urlString);
3199
- if (failure) throw new TypeError$1(failure);
3200
- this.searchParams = null;
3201
- } else {
3202
- if (base !== undefined) baseState = new URLState(base, true);
3203
- failure = this.parse(urlString, null, baseState);
3204
- if (failure) throw new TypeError$1(failure);
3205
- searchParams = getInternalSearchParamsState(new URLSearchParams$1());
3206
- searchParams.bindURL(this);
3207
- this.searchParams = searchParams;
3208
- }
3209
- };
3210
-
3211
- URLState.prototype = {
3212
- type: 'URL',
3213
- // https://url.spec.whatwg.org/#url-parsing
3214
- // eslint-disable-next-line max-statements -- TODO
3215
- parse: function (input, stateOverride, base) {
3216
- var url = this;
3217
- var state = stateOverride || SCHEME_START;
3218
- var pointer = 0;
3219
- var buffer = '';
3220
- var seenAt = false;
3221
- var seenBracket = false;
3222
- var seenPasswordToken = false;
3223
- var codePoints, chr, bufferCodePoints, failure;
3224
-
3225
- input = $toString$1(input);
3226
-
3227
- if (!stateOverride) {
3228
- url.scheme = '';
3229
- url.username = '';
3230
- url.password = '';
3231
- url.host = null;
3232
- url.port = null;
3233
- url.path = [];
3234
- url.query = null;
3235
- url.fragment = null;
3236
- url.cannotBeABaseURL = false;
3237
- input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
3238
- input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
3239
- }
3240
-
3241
- input = replace(input, TAB_AND_NEW_LINE, '');
3242
-
3243
- codePoints = arrayFrom(input);
3244
-
3245
- while (pointer <= codePoints.length) {
3246
- chr = codePoints[pointer];
3247
- switch (state) {
3248
- case SCHEME_START:
3249
- if (chr && exec(ALPHA, chr)) {
3250
- buffer += toLowerCase(chr);
3251
- state = SCHEME;
3252
- } else if (!stateOverride) {
3253
- state = NO_SCHEME;
3254
- continue;
3255
- } else return INVALID_SCHEME;
3256
- break;
3257
-
3258
- case SCHEME:
3259
- if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
3260
- buffer += toLowerCase(chr);
3261
- } else if (chr === ':') {
3262
- if (stateOverride && (
3263
- (url.isSpecial() !== hasOwn$1(specialSchemes, buffer)) ||
3264
- (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
3265
- (url.scheme === 'file' && !url.host)
3266
- )) return;
3267
- url.scheme = buffer;
3268
- if (stateOverride) {
3269
- if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
3270
- return;
3271
- }
3272
- buffer = '';
3273
- if (url.scheme === 'file') {
3274
- state = FILE;
3275
- } else if (url.isSpecial() && base && base.scheme === url.scheme) {
3276
- state = SPECIAL_RELATIVE_OR_AUTHORITY;
3277
- } else if (url.isSpecial()) {
3278
- state = SPECIAL_AUTHORITY_SLASHES;
3279
- } else if (codePoints[pointer + 1] === '/') {
3280
- state = PATH_OR_AUTHORITY;
3281
- pointer++;
3282
- } else {
3283
- url.cannotBeABaseURL = true;
3284
- push(url.path, '');
3285
- state = CANNOT_BE_A_BASE_URL_PATH;
3286
- }
3287
- } else if (!stateOverride) {
3288
- buffer = '';
3289
- state = NO_SCHEME;
3290
- pointer = 0;
3291
- continue;
3292
- } else return INVALID_SCHEME;
3293
- break;
3294
-
3295
- case NO_SCHEME:
3296
- if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
3297
- if (base.cannotBeABaseURL && chr === '#') {
3298
- url.scheme = base.scheme;
3299
- url.path = arraySlice(base.path);
3300
- url.query = base.query;
3301
- url.fragment = '';
3302
- url.cannotBeABaseURL = true;
3303
- state = FRAGMENT;
3304
- break;
3305
- }
3306
- state = base.scheme === 'file' ? FILE : RELATIVE;
3307
- continue;
3308
-
3309
- case SPECIAL_RELATIVE_OR_AUTHORITY:
3310
- if (chr === '/' && codePoints[pointer + 1] === '/') {
3311
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3312
- pointer++;
3313
- } else {
3314
- state = RELATIVE;
3315
- continue;
3316
- } break;
3317
-
3318
- case PATH_OR_AUTHORITY:
3319
- if (chr === '/') {
3320
- state = AUTHORITY;
3321
- break;
3322
- } else {
3323
- state = PATH;
3324
- continue;
3325
- }
3326
-
3327
- case RELATIVE:
3328
- url.scheme = base.scheme;
3329
- if (chr === EOF) {
3330
- url.username = base.username;
3331
- url.password = base.password;
3332
- url.host = base.host;
3333
- url.port = base.port;
3334
- url.path = arraySlice(base.path);
3335
- url.query = base.query;
3336
- } else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
3337
- state = RELATIVE_SLASH;
3338
- } else if (chr === '?') {
3339
- url.username = base.username;
3340
- url.password = base.password;
3341
- url.host = base.host;
3342
- url.port = base.port;
3343
- url.path = arraySlice(base.path);
3344
- url.query = '';
3345
- state = QUERY;
3346
- } else if (chr === '#') {
3347
- url.username = base.username;
3348
- url.password = base.password;
3349
- url.host = base.host;
3350
- url.port = base.port;
3351
- url.path = arraySlice(base.path);
3352
- url.query = base.query;
3353
- url.fragment = '';
3354
- state = FRAGMENT;
3355
- } else {
3356
- url.username = base.username;
3357
- url.password = base.password;
3358
- url.host = base.host;
3359
- url.port = base.port;
3360
- url.path = arraySlice(base.path);
3361
- url.path.length--;
3362
- state = PATH;
3363
- continue;
3364
- } break;
3365
-
3366
- case RELATIVE_SLASH:
3367
- if (url.isSpecial() && (chr === '/' || chr === '\\')) {
3368
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3369
- } else if (chr === '/') {
3370
- state = AUTHORITY;
3371
- } else {
3372
- url.username = base.username;
3373
- url.password = base.password;
3374
- url.host = base.host;
3375
- url.port = base.port;
3376
- state = PATH;
3377
- continue;
3378
- } break;
3379
-
3380
- case SPECIAL_AUTHORITY_SLASHES:
3381
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3382
- if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
3383
- pointer++;
3384
- break;
3385
-
3386
- case SPECIAL_AUTHORITY_IGNORE_SLASHES:
3387
- if (chr !== '/' && chr !== '\\') {
3388
- state = AUTHORITY;
3389
- continue;
3390
- } break;
3391
-
3392
- case AUTHORITY:
3393
- if (chr === '@') {
3394
- if (seenAt) buffer = '%40' + buffer;
3395
- seenAt = true;
3396
- bufferCodePoints = arrayFrom(buffer);
3397
- for (var i = 0; i < bufferCodePoints.length; i++) {
3398
- var codePoint = bufferCodePoints[i];
3399
- if (codePoint === ':' && !seenPasswordToken) {
3400
- seenPasswordToken = true;
3401
- continue;
3402
- }
3403
- var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
3404
- if (seenPasswordToken) url.password += encodedCodePoints;
3405
- else url.username += encodedCodePoints;
3406
- }
3407
- buffer = '';
3408
- } else if (
3409
- chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3410
- (chr === '\\' && url.isSpecial())
3411
- ) {
3412
- if (seenAt && buffer === '') return INVALID_AUTHORITY;
3413
- pointer -= arrayFrom(buffer).length + 1;
3414
- buffer = '';
3415
- state = HOST;
3416
- } else buffer += chr;
3417
- break;
3418
-
3419
- case HOST:
3420
- case HOSTNAME:
3421
- if (stateOverride && url.scheme === 'file') {
3422
- state = FILE_HOST;
3423
- continue;
3424
- } else if (chr === ':' && !seenBracket) {
3425
- if (buffer === '') return INVALID_HOST;
3426
- failure = url.parseHost(buffer);
3427
- if (failure) return failure;
3428
- buffer = '';
3429
- state = PORT;
3430
- if (stateOverride === HOSTNAME) return;
3431
- } else if (
3432
- chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3433
- (chr === '\\' && url.isSpecial())
3434
- ) {
3435
- if (url.isSpecial() && buffer === '') return INVALID_HOST;
3436
- if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
3437
- failure = url.parseHost(buffer);
3438
- if (failure) return failure;
3439
- buffer = '';
3440
- state = PATH_START;
3441
- if (stateOverride) return;
3442
- continue;
3443
- } else {
3444
- if (chr === '[') seenBracket = true;
3445
- else if (chr === ']') seenBracket = false;
3446
- buffer += chr;
3447
- } break;
3448
-
3449
- case PORT:
3450
- if (exec(DIGIT, chr)) {
3451
- buffer += chr;
3452
- } else if (
3453
- chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3454
- (chr === '\\' && url.isSpecial()) ||
3455
- stateOverride
3456
- ) {
3457
- if (buffer !== '') {
3458
- var port = parseInt(buffer, 10);
3459
- if (port > 0xFFFF) return INVALID_PORT;
3460
- url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
3461
- buffer = '';
3462
- }
3463
- if (stateOverride) return;
3464
- state = PATH_START;
3465
- continue;
3466
- } else return INVALID_PORT;
3467
- break;
3468
-
3469
- case FILE:
3470
- url.scheme = 'file';
3471
- if (chr === '/' || chr === '\\') state = FILE_SLASH;
3472
- else if (base && base.scheme === 'file') {
3473
- switch (chr) {
3474
- case EOF:
3475
- url.host = base.host;
3476
- url.path = arraySlice(base.path);
3477
- url.query = base.query;
3478
- break;
3479
- case '?':
3480
- url.host = base.host;
3481
- url.path = arraySlice(base.path);
3482
- url.query = '';
3483
- state = QUERY;
3484
- break;
3485
- case '#':
3486
- url.host = base.host;
3487
- url.path = arraySlice(base.path);
3488
- url.query = base.query;
3489
- url.fragment = '';
3490
- state = FRAGMENT;
3491
- break;
3492
- default:
3493
- if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3494
- url.host = base.host;
3495
- url.path = arraySlice(base.path);
3496
- url.shortenPath();
3497
- }
3498
- state = PATH;
3499
- continue;
3500
- }
3501
- } else {
3502
- state = PATH;
3503
- continue;
3504
- } break;
3505
-
3506
- case FILE_SLASH:
3507
- if (chr === '/' || chr === '\\') {
3508
- state = FILE_HOST;
3509
- break;
3510
- }
3511
- if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3512
- if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
3513
- else url.host = base.host;
3514
- }
3515
- state = PATH;
3516
- continue;
3517
-
3518
- case FILE_HOST:
3519
- if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
3520
- if (!stateOverride && isWindowsDriveLetter(buffer)) {
3521
- state = PATH;
3522
- } else if (buffer === '') {
3523
- url.host = '';
3524
- if (stateOverride) return;
3525
- state = PATH_START;
3526
- } else {
3527
- failure = url.parseHost(buffer);
3528
- if (failure) return failure;
3529
- if (url.host === 'localhost') url.host = '';
3530
- if (stateOverride) return;
3531
- buffer = '';
3532
- state = PATH_START;
3533
- } continue;
3534
- } else buffer += chr;
3535
- break;
3536
-
3537
- case PATH_START:
3538
- if (url.isSpecial()) {
3539
- state = PATH;
3540
- if (chr !== '/' && chr !== '\\') continue;
3541
- } else if (!stateOverride && chr === '?') {
3542
- url.query = '';
3543
- state = QUERY;
3544
- } else if (!stateOverride && chr === '#') {
3545
- url.fragment = '';
3546
- state = FRAGMENT;
3547
- } else if (chr !== EOF) {
3548
- state = PATH;
3549
- if (chr !== '/') continue;
3550
- } break;
3551
-
3552
- case PATH:
3553
- if (
3554
- chr === EOF || chr === '/' ||
3555
- (chr === '\\' && url.isSpecial()) ||
3556
- (!stateOverride && (chr === '?' || chr === '#'))
3557
- ) {
3558
- if (isDoubleDot(buffer)) {
3559
- url.shortenPath();
3560
- if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3561
- push(url.path, '');
3562
- }
3563
- } else if (isSingleDot(buffer)) {
3564
- if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3565
- push(url.path, '');
3566
- }
3567
- } else {
3568
- if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
3569
- if (url.host) url.host = '';
3570
- buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
3571
- }
3572
- push(url.path, buffer);
3573
- }
3574
- buffer = '';
3575
- if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
3576
- while (url.path.length > 1 && url.path[0] === '') {
3577
- shift(url.path);
3578
- }
3579
- }
3580
- if (chr === '?') {
3581
- url.query = '';
3582
- state = QUERY;
3583
- } else if (chr === '#') {
3584
- url.fragment = '';
3585
- state = FRAGMENT;
3586
- }
3587
- } else {
3588
- buffer += percentEncode(chr, pathPercentEncodeSet);
3589
- } break;
3590
-
3591
- case CANNOT_BE_A_BASE_URL_PATH:
3592
- if (chr === '?') {
3593
- url.query = '';
3594
- state = QUERY;
3595
- } else if (chr === '#') {
3596
- url.fragment = '';
3597
- state = FRAGMENT;
3598
- } else if (chr !== EOF) {
3599
- url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
3600
- } break;
3601
-
3602
- case QUERY:
3603
- if (!stateOverride && chr === '#') {
3604
- url.fragment = '';
3605
- state = FRAGMENT;
3606
- } else if (chr !== EOF) {
3607
- if (chr === "'" && url.isSpecial()) url.query += '%27';
3608
- else if (chr === '#') url.query += '%23';
3609
- else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
3610
- } break;
3611
-
3612
- case FRAGMENT:
3613
- if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
3614
- break;
3615
- }
3616
-
3617
- pointer++;
3618
- }
3619
- },
3620
- // https://url.spec.whatwg.org/#host-parsing
3621
- parseHost: function (input) {
3622
- var result, codePoints, index;
3623
- if (charAt(input, 0) === '[') {
3624
- if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
3625
- result = parseIPv6(stringSlice$1(input, 1, -1));
3626
- if (!result) return INVALID_HOST;
3627
- this.host = result;
3628
- // opaque host
3629
- } else if (!this.isSpecial()) {
3630
- if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
3631
- result = '';
3632
- codePoints = arrayFrom(input);
3633
- for (index = 0; index < codePoints.length; index++) {
3634
- result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
3635
- }
3636
- this.host = result;
3637
- } else {
3638
- input = toASCII(input);
3639
- if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
3640
- result = parseIPv4(input);
3641
- if (result === null) return INVALID_HOST;
3642
- this.host = result;
3643
- }
3644
- },
3645
- // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
3646
- cannotHaveUsernamePasswordPort: function () {
3647
- return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
3648
- },
3649
- // https://url.spec.whatwg.org/#include-credentials
3650
- includesCredentials: function () {
3651
- return this.username !== '' || this.password !== '';
3652
- },
3653
- // https://url.spec.whatwg.org/#is-special
3654
- isSpecial: function () {
3655
- return hasOwn$1(specialSchemes, this.scheme);
3656
- },
3657
- // https://url.spec.whatwg.org/#shorten-a-urls-path
3658
- shortenPath: function () {
3659
- var path = this.path;
3660
- var pathSize = path.length;
3661
- if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
3662
- path.length--;
3663
- }
3664
- },
3665
- // https://url.spec.whatwg.org/#concept-url-serializer
3666
- serialize: function () {
3667
- var url = this;
3668
- var scheme = url.scheme;
3669
- var username = url.username;
3670
- var password = url.password;
3671
- var host = url.host;
3672
- var port = url.port;
3673
- var path = url.path;
3674
- var query = url.query;
3675
- var fragment = url.fragment;
3676
- var output = scheme + ':';
3677
- if (host !== null) {
3678
- output += '//';
3679
- if (url.includesCredentials()) {
3680
- output += username + (password ? ':' + password : '') + '@';
3681
- }
3682
- output += serializeHost(host);
3683
- if (port !== null) output += ':' + port;
3684
- } else if (scheme === 'file') output += '//';
3685
- output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3686
- if (query !== null) output += '?' + query;
3687
- if (fragment !== null) output += '#' + fragment;
3688
- return output;
3689
- },
3690
- // https://url.spec.whatwg.org/#dom-url-href
3691
- setHref: function (href) {
3692
- var failure = this.parse(href);
3693
- if (failure) throw new TypeError$1(failure);
3694
- this.searchParams.update();
3695
- },
3696
- // https://url.spec.whatwg.org/#dom-url-origin
3697
- getOrigin: function () {
3698
- var scheme = this.scheme;
3699
- var port = this.port;
3700
- if (scheme === 'blob') try {
3701
- return new URLConstructor(scheme.path[0]).origin;
3702
- } catch (error) {
3703
- return 'null';
3704
- }
3705
- if (scheme === 'file' || !this.isSpecial()) return 'null';
3706
- return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
3707
- },
3708
- // https://url.spec.whatwg.org/#dom-url-protocol
3709
- getProtocol: function () {
3710
- return this.scheme + ':';
3711
- },
3712
- setProtocol: function (protocol) {
3713
- this.parse($toString$1(protocol) + ':', SCHEME_START);
3714
- },
3715
- // https://url.spec.whatwg.org/#dom-url-username
3716
- getUsername: function () {
3717
- return this.username;
3718
- },
3719
- setUsername: function (username) {
3720
- var codePoints = arrayFrom($toString$1(username));
3721
- if (this.cannotHaveUsernamePasswordPort()) return;
3722
- this.username = '';
3723
- for (var i = 0; i < codePoints.length; i++) {
3724
- this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3725
- }
3726
- },
3727
- // https://url.spec.whatwg.org/#dom-url-password
3728
- getPassword: function () {
3729
- return this.password;
3730
- },
3731
- setPassword: function (password) {
3732
- var codePoints = arrayFrom($toString$1(password));
3733
- if (this.cannotHaveUsernamePasswordPort()) return;
3734
- this.password = '';
3735
- for (var i = 0; i < codePoints.length; i++) {
3736
- this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3737
- }
3738
- },
3739
- // https://url.spec.whatwg.org/#dom-url-host
3740
- getHost: function () {
3741
- var host = this.host;
3742
- var port = this.port;
3743
- return host === null ? ''
3744
- : port === null ? serializeHost(host)
3745
- : serializeHost(host) + ':' + port;
3746
- },
3747
- setHost: function (host) {
3748
- if (this.cannotBeABaseURL) return;
3749
- this.parse(host, HOST);
3750
- },
3751
- // https://url.spec.whatwg.org/#dom-url-hostname
3752
- getHostname: function () {
3753
- var host = this.host;
3754
- return host === null ? '' : serializeHost(host);
3755
- },
3756
- setHostname: function (hostname) {
3757
- if (this.cannotBeABaseURL) return;
3758
- this.parse(hostname, HOSTNAME);
3759
- },
3760
- // https://url.spec.whatwg.org/#dom-url-port
3761
- getPort: function () {
3762
- var port = this.port;
3763
- return port === null ? '' : $toString$1(port);
3764
- },
3765
- setPort: function (port) {
3766
- if (this.cannotHaveUsernamePasswordPort()) return;
3767
- port = $toString$1(port);
3768
- if (port === '') this.port = null;
3769
- else this.parse(port, PORT);
3770
- },
3771
- // https://url.spec.whatwg.org/#dom-url-pathname
3772
- getPathname: function () {
3773
- var path = this.path;
3774
- return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3775
- },
3776
- setPathname: function (pathname) {
3777
- if (this.cannotBeABaseURL) return;
3778
- this.path = [];
3779
- this.parse(pathname, PATH_START);
3780
- },
3781
- // https://url.spec.whatwg.org/#dom-url-search
3782
- getSearch: function () {
3783
- var query = this.query;
3784
- return query ? '?' + query : '';
3785
- },
3786
- setSearch: function (search) {
3787
- search = $toString$1(search);
3788
- if (search === '') {
3789
- this.query = null;
3790
- } else {
3791
- if (charAt(search, 0) === '?') search = stringSlice$1(search, 1);
3792
- this.query = '';
3793
- this.parse(search, QUERY);
3794
- }
3795
- this.searchParams.update();
3796
- },
3797
- // https://url.spec.whatwg.org/#dom-url-searchparams
3798
- getSearchParams: function () {
3799
- return this.searchParams.facade;
3800
- },
3801
- // https://url.spec.whatwg.org/#dom-url-hash
3802
- getHash: function () {
3803
- var fragment = this.fragment;
3804
- return fragment ? '#' + fragment : '';
3805
- },
3806
- setHash: function (hash) {
3807
- hash = $toString$1(hash);
3808
- if (hash === '') {
3809
- this.fragment = null;
3810
- return;
3811
- }
3812
- if (charAt(hash, 0) === '#') hash = stringSlice$1(hash, 1);
3813
- this.fragment = '';
3814
- this.parse(hash, FRAGMENT);
3815
- },
3816
- update: function () {
3817
- this.query = this.searchParams.serialize() || null;
3818
- }
3819
- };
3820
-
3821
- // `URL` constructor
3822
- // https://url.spec.whatwg.org/#url-class
3823
- var URLConstructor = function URL(url /* , base */) {
3824
- var that = anInstance(this, URLPrototype);
3825
- var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
3826
- var state = setInternalState(that, new URLState(url, false, base));
3827
- if (!DESCRIPTORS) {
3828
- that.href = state.serialize();
3829
- that.origin = state.getOrigin();
3830
- that.protocol = state.getProtocol();
3831
- that.username = state.getUsername();
3832
- that.password = state.getPassword();
3833
- that.host = state.getHost();
3834
- that.hostname = state.getHostname();
3835
- that.port = state.getPort();
3836
- that.pathname = state.getPathname();
3837
- that.search = state.getSearch();
3838
- that.searchParams = state.getSearchParams();
3839
- that.hash = state.getHash();
3840
- }
3841
- };
3842
-
3843
- var URLPrototype = URLConstructor.prototype;
3844
-
3845
- var accessorDescriptor = function (getter, setter) {
3846
- return {
3847
- get: function () {
3848
- return getInternalURLState(this)[getter]();
3849
- },
3850
- set: setter && function (value) {
3851
- return getInternalURLState(this)[setter](value);
3852
- },
3853
- configurable: true,
3854
- enumerable: true
3855
- };
3856
- };
3857
-
3858
- if (DESCRIPTORS) {
3859
- // `URL.prototype.href` accessors pair
3860
- // https://url.spec.whatwg.org/#dom-url-href
3861
- defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
3862
- // `URL.prototype.origin` getter
3863
- // https://url.spec.whatwg.org/#dom-url-origin
3864
- defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
3865
- // `URL.prototype.protocol` accessors pair
3866
- // https://url.spec.whatwg.org/#dom-url-protocol
3867
- defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
3868
- // `URL.prototype.username` accessors pair
3869
- // https://url.spec.whatwg.org/#dom-url-username
3870
- defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
3871
- // `URL.prototype.password` accessors pair
3872
- // https://url.spec.whatwg.org/#dom-url-password
3873
- defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
3874
- // `URL.prototype.host` accessors pair
3875
- // https://url.spec.whatwg.org/#dom-url-host
3876
- defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
3877
- // `URL.prototype.hostname` accessors pair
3878
- // https://url.spec.whatwg.org/#dom-url-hostname
3879
- defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
3880
- // `URL.prototype.port` accessors pair
3881
- // https://url.spec.whatwg.org/#dom-url-port
3882
- defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
3883
- // `URL.prototype.pathname` accessors pair
3884
- // https://url.spec.whatwg.org/#dom-url-pathname
3885
- defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
3886
- // `URL.prototype.search` accessors pair
3887
- // https://url.spec.whatwg.org/#dom-url-search
3888
- defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
3889
- // `URL.prototype.searchParams` getter
3890
- // https://url.spec.whatwg.org/#dom-url-searchparams
3891
- defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
3892
- // `URL.prototype.hash` accessors pair
3893
- // https://url.spec.whatwg.org/#dom-url-hash
3894
- defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
3895
- }
3896
-
3897
- // `URL.prototype.toJSON` method
3898
- // https://url.spec.whatwg.org/#dom-url-tojson
3899
- defineBuiltIn$1(URLPrototype, 'toJSON', function toJSON() {
3900
- return getInternalURLState(this).serialize();
3901
- }, { enumerable: true });
3902
-
3903
- // `URL.prototype.toString` method
3904
- // https://url.spec.whatwg.org/#URL-stringification-behavior
3905
- defineBuiltIn$1(URLPrototype, 'toString', function toString() {
3906
- return getInternalURLState(this).serialize();
3907
- }, { enumerable: true });
3908
-
3909
- if (NativeURL) {
3910
- var nativeCreateObjectURL = NativeURL.createObjectURL;
3911
- var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
3912
- // `URL.createObjectURL` method
3913
- // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
3914
- if (nativeCreateObjectURL) defineBuiltIn$1(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
3915
- // `URL.revokeObjectURL` method
3916
- // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
3917
- if (nativeRevokeObjectURL) defineBuiltIn$1(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
3918
- }
3919
-
3920
- setToStringTag(URLConstructor, 'URL');
3921
-
3922
- $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
3923
- URL: URLConstructor
3924
- });
3925
-
3926
- var isObject = isObject$8;
3927
- var classof = classofRaw$2;
3928
- var wellKnownSymbol$1 = wellKnownSymbol$e;
3929
-
3930
- var MATCH$1 = wellKnownSymbol$1('match');
3931
-
3932
- // `IsRegExp` abstract operation
3933
- // https://tc39.es/ecma262/#sec-isregexp
3934
- var isRegexp = function (it) {
3935
- var isRegExp;
3936
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
3937
- };
3938
-
3939
- var isRegExp = isRegexp;
3940
-
3941
- var $TypeError = TypeError;
3942
-
3943
- var notARegexp = function (it) {
3944
- if (isRegExp(it)) {
3945
- throw new $TypeError("The method doesn't accept regular expressions");
3946
- } return it;
3947
- };
3948
-
3949
- var wellKnownSymbol = wellKnownSymbol$e;
3950
-
3951
- var MATCH = wellKnownSymbol('match');
3952
-
3953
- var correctIsRegexpLogic = function (METHOD_NAME) {
3954
- var regexp = /./;
3955
- try {
3956
- '/./'[METHOD_NAME](regexp);
3957
- } catch (error1) {
3958
- try {
3959
- regexp[MATCH] = false;
3960
- return '/./'[METHOD_NAME](regexp);
3961
- } catch (error2) { /* empty */ }
3962
- } return false;
3963
- };
3964
-
3965
- var $ = _export;
3966
- var uncurryThis = functionUncurryThisClause;
3967
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3968
- var toLength = toLength$2;
3969
- var toString = toString$4;
3970
- var notARegExp = notARegexp;
3971
- var requireObjectCoercible = requireObjectCoercible$4;
3972
- var correctIsRegExpLogic = correctIsRegexpLogic;
3973
-
3974
- // eslint-disable-next-line es/no-string-prototype-startswith -- safe
3975
- var nativeStartsWith = uncurryThis(''.startsWith);
3976
- var stringSlice = uncurryThis(''.slice);
3977
- var min = Math.min;
3978
-
3979
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
3980
- // https://github.com/zloirock/core-js/pull/702
3981
- var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
3982
- var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
3983
- return descriptor && !descriptor.writable;
3984
- }();
3985
-
3986
- // `String.prototype.startsWith` method
3987
- // https://tc39.es/ecma262/#sec-string.prototype.startswith
3988
- $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
3989
- startsWith: function startsWith(searchString /* , position = 0 */) {
3990
- var that = toString(requireObjectCoercible(this));
3991
- notARegExp(searchString);
3992
- var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
3993
- var search = toString(searchString);
3994
- return nativeStartsWith
3995
- ? nativeStartsWith(that, search, index)
3996
- : stringSlice(that, index, index + search.length) === search;
3997
- }
3998
- });
3999
-
4000
- var call = functionCall;
4001
- var hasOwn = hasOwnProperty_1;
4002
- var isPrototypeOf = objectIsPrototypeOf;
4003
- var regExpFlags = regexpFlags$1;
4004
-
4005
- var RegExpPrototype$1 = RegExp.prototype;
4006
-
4007
- var regexpGetFlags = function (R) {
4008
- var flags = R.flags;
4009
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
4010
- ? call(regExpFlags, R) : flags;
4011
- };
4012
-
4013
- var PROPER_FUNCTION_NAME = functionName.PROPER;
4014
- var defineBuiltIn = defineBuiltIn$7;
4015
- var anObject = anObject$b;
4016
- var $toString = toString$4;
4017
- var fails = fails$h;
4018
- var getRegExpFlags = regexpGetFlags;
4019
-
4020
- var TO_STRING = 'toString';
4021
- var RegExpPrototype = RegExp.prototype;
4022
- var nativeToString = RegExpPrototype[TO_STRING];
4023
-
4024
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
4025
- // FF44- RegExp#toString has a wrong name
4026
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
4027
-
4028
- // `RegExp.prototype.toString` method
4029
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
4030
- if (NOT_GENERIC || INCORRECT_NAME) {
4031
- defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
4032
- var R = anObject(this);
4033
- var pattern = $toString(R.source);
4034
- var flags = $toString(getRegExpFlags(R));
4035
- return '/' + pattern + '/' + flags;
4036
- }, { unsafe: true });
4037
- }
4038
-
4039
- var Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";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. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","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,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","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 of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","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 before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",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. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","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. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","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"};
4040
-
4041
- var AD="Andorra";var AE="United Arab Emirates";var AF="Afghanistan";var AI="Anguilla";var AL="Albania";var AM="Armenia";var AO="Angola";var AR="Argentina";var AS="American Samoa";var AT="Austria";var AU="Australia";var AW="Aruba";var AZ="Azerbaijan";var BA="Bosnia and Herzegovina";var BB="Barbados";var BD="Bangladesh";var BE="Belgium";var BF="Burkina Faso";var BG="Bulgaria";var BH="Bahrain";var BI="Burundi";var BJ="Benin";var BM="Bermuda";var BN="Brunei";var BO="Bolivia";var BR="Brazil";var BS="Bahamas";var BT="Bhutan";var BW="Botswana";var BY="Belarus";var BZ="Belize";var CA="Canada";var CD="Democratic Republic of the Congo";var CF="Central African Republic";var CG="Republic of the Congo";var CH="Switzerland";var CI="Ivory Coast";var CK="Cook Islands";var CL="Chile";var CM="Cameroon";var CN="China";var CO="Colombia";var CR="Costa Rica";var CU="Cuba";var CV="Cape Verde";var CW="Curacao";var CY="Cyprus";var CZ="Czech Republic";var DE="Germany";var DK="Denmark";var DM="Dominica";var DO="Dominican Republic";var DZ="Algeria";var EC="Ecuador";var EE="Estonia";var EG="Egypt";var ER="Eritrea";var ES="Spain";var ET="Ethiopia";var FI="Finland";var FJ="Fiji";var FK="Falkland Islands";var FO="Faroe Islands";var FR="France";var GA="Gabon";var GB="United Kingdom";var GE="Georgia";var GH="Ghana";var GI="Gibraltar";var GL="Greenland";var GM="Gambia";var GN="Guinea";var GQ="Equatorial Guinea";var GR="Greece";var GT="Guatemala";var GW="Guinea-Bissau";var GY="Guyana";var HK="Hong Kong";var HN="Honduras";var HR="Croatia";var HT="Haiti";var HU="Hungary";var ID="Indonesia";var IE="Ireland";var IL="Israel";var IM="Isle of Man";var IN="India";var IQ="Iraq";var IR="Iran";var IS="Iceland";var IT="Italy";var JM="Jamaica";var JO="Jordan";var JP="Japan";var KE="Kenya";var KG="Kyrgyzstan";var KH="Cambodia";var KM="Comoros";var KN="Saint Kitts and Nevis";var KP="North Korea";var KR="South Korea";var KW="Kuwait";var KY="Cayman Islands";var KZ="Kazakhstan";var LA="Laos";var LB="Lebanon";var LC="Saint Lucia";var LI="Liechtenstein";var LR="Liberia";var LS="Lesotho";var LT="Lithuania";var LU="Luxembourg";var LV="Latvia";var LY="Libya";var MA="Morocco";var MD="Moldova";var ME="Montenegro";var MG="Madagascar";var MK="Macedonia";var ML="Mali";var MM="Myanmar";var MN="Mongolia";var MP="Northern Mariana Islands";var MR="Mauritania";var MS="Montserrat";var MT="Malta";var MU="Mauritius";var MW="Malawi";var MX="Mexico";var MY="Malaysia";var MZ="Mozambique";var NA="Namibia";var NC="New Caledonia";var NE="Niger";var NG="Nigeria";var NI="Nicaragua";var NL="Netherlands";var NO="Norway";var NP="Nepal";var NU="Niue";var NZ="New Zealand";var OM="Oman";var PA="Panama";var PE="Peru";var PF="French Polynesia";var PG="Papua New Guinea";var PH="Philippines";var PK="Pakistan";var PL="Poland";var PR="Puerto Rico";var PT="Portugal";var PY="Paraguay";var QA="Qatar";var RO="Romania";var RS="Serbia";var RU="Russia";var RW="Rwanda";var SA="Saudi Arabia";var SB="Solomon Islands";var SC="Seychelles";var SD="Sudan";var SE="Sweden";var SG="Singapore";var SH="Saint Helena";var SI="Slovenia";var SK="Slovakia";var SL="Sierra Leone";var SN="Senegal";var SO="Somalia";var SR="Suriname";var ST="Sao Tome and Principe";var SV="El Salvador";var SY="Syria";var SZ="Swaziland";var TC="Turks and Caicos Islands";var TD="Chad";var TG="Togo";var TH="Thailand";var TJ="Tajikistan";var TM="Turkmenistan";var TN="Tunisia";var TR="Turkey";var TV="Tuvalu";var TW="Taiwan";var TZ="Tanzania";var UA="Ukraine";var UG="Uganda";var US="United States";var UY="Uruguay";var UZ="Uzbekistan";var VC="Saint Vincent and the Grenadines";var VE="Venezuela";var VG="British Virgin Islands";var VN="Vietnam";var WS="Samoa";var YE="Yemen";var YT="Mayotte";var ZA="South Africa";var ZM="Zambia";var ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
7
+ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const AI="Anguilla";const AL="Albania";const AM="Armenia";const AO="Angola";const AR="Argentina";const AS="American Samoa";const AT="Austria";const AU="Australia";const AW="Aruba";const AZ="Azerbaijan";const BA="Bosnia and Herzegovina";const BB="Barbados";const BD="Bangladesh";const BE="Belgium";const BF="Burkina Faso";const BG="Bulgaria";const BH="Bahrain";const BI="Burundi";const BJ="Benin";const BM="Bermuda";const BN="Brunei";const BO="Bolivia";const BR="Brazil";const BS="Bahamas";const BT="Bhutan";const BW="Botswana";const BY="Belarus";const BZ="Belize";const CA="Canada";const CD="Democratic Republic of the Congo";const CF="Central African Republic";const CG="Republic of the Congo";const CH="Switzerland";const CI="Ivory Coast";const CK="Cook Islands";const CL="Chile";const CM="Cameroon";const CN="China";const CO="Colombia";const CR="Costa Rica";const CU="Cuba";const CV="Cape Verde";const CW="Curacao";const CY="Cyprus";const CZ="Czech Republic";const DE="Germany";const DK="Denmark";const DM="Dominica";const DO="Dominican Republic";const DZ="Algeria";const EC="Ecuador";const EE="Estonia";const EG="Egypt";const ER="Eritrea";const ES="Spain";const ET="Ethiopia";const FI="Finland";const FJ="Fiji";const FK="Falkland Islands";const FO="Faroe Islands";const FR="France";const GA="Gabon";const GB="United Kingdom";const GE="Georgia";const GH="Ghana";const GI="Gibraltar";const GL="Greenland";const GM="Gambia";const GN="Guinea";const GQ="Equatorial Guinea";const GR="Greece";const GT="Guatemala";const GW="Guinea-Bissau";const GY="Guyana";const HK="Hong Kong";const HN="Honduras";const HR="Croatia";const HT="Haiti";const HU="Hungary";const ID="Indonesia";const IE="Ireland";const IL="Israel";const IM="Isle of Man";const IN="India";const IQ="Iraq";const IR="Iran";const IS="Iceland";const IT="Italy";const JM="Jamaica";const JO="Jordan";const JP="Japan";const KE="Kenya";const KG="Kyrgyzstan";const KH="Cambodia";const KM="Comoros";const KN="Saint Kitts and Nevis";const KP="North Korea";const KR="South Korea";const KW="Kuwait";const KY="Cayman Islands";const KZ="Kazakhstan";const LA="Laos";const LB="Lebanon";const LC="Saint Lucia";const LI="Liechtenstein";const LR="Liberia";const LS="Lesotho";const LT="Lithuania";const LU="Luxembourg";const LV="Latvia";const LY="Libya";const MA="Morocco";const MD="Moldova";const ME="Montenegro";const MG="Madagascar";const MK="Macedonia";const ML="Mali";const MM="Myanmar";const MN="Mongolia";const MP="Northern Mariana Islands";const MR="Mauritania";const MS="Montserrat";const MT="Malta";const MU="Mauritius";const MW="Malawi";const MX="Mexico";const MY="Malaysia";const MZ="Mozambique";const NA="Namibia";const NC="New Caledonia";const NE="Niger";const NG="Nigeria";const NI="Nicaragua";const NL="Netherlands";const NO="Norway";const NP="Nepal";const NU="Niue";const NZ="New Zealand";const OM="Oman";const PA="Panama";const PE="Peru";const PF="French Polynesia";const PG="Papua New Guinea";const PH="Philippines";const PK="Pakistan";const PL="Poland";const PR="Puerto Rico";const PT="Portugal";const PY="Paraguay";const QA="Qatar";const RO="Romania";const RS="Serbia";const RU="Russia";const RW="Rwanda";const SA="Saudi Arabia";const SB="Solomon Islands";const SC="Seychelles";const SD="Sudan";const SE="Sweden";const SG="Singapore";const SH="Saint Helena";const SI="Slovenia";const SK="Slovakia";const SL="Sierra Leone";const SN="Senegal";const SO="Somalia";const SR="Suriname";const ST="Sao Tome and Principe";const SV="El Salvador";const SY="Syria";const SZ="Swaziland";const TC="Turks and Caicos Islands";const TD="Chad";const TG="Togo";const TH="Thailand";const TJ="Tajikistan";const TM="Turkmenistan";const TN="Tunisia";const TR="Turkey";const TV="Tuvalu";const TW="Taiwan";const TZ="Tanzania";const UA="Ukraine";const UG="Uganda";const US="United States";const UY="Uruguay";const UZ="Uzbekistan";const VC="Saint Vincent and the Grenadines";const VE="Venezuela";const VG="British Virgin Islands";const VN="Vietnam";const WS="Samoa";const YE="Yemen";const YT="Mayotte";const ZA="South Africa";const ZM="Zambia";const ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
4042
8
 
4043
9
  /**
4044
10
  * Location information
@@ -4205,7 +171,7 @@ function getCalendarTitle(events, options) {
4205
171
  const location = options.location;
4206
172
  if (options.yahrzeit) {
4207
173
  title += ' Yahrzeits and Anniversaries';
4208
- } else if (location && location.name) {
174
+ } else if (location !== null && location !== void 0 && location.name) {
4209
175
  const comma = location.name.indexOf(',');
4210
176
  const name = comma == -1 ? location.name : location.name.substring(0, comma);
4211
177
  title += ' ' + name;
@@ -4265,28 +231,27 @@ const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.f
4265
231
  */
4266
232
  function makeTorahMemoText(ev, il) {
4267
233
  const mask = ev.getFlags();
4268
- if (mask & HOLIDAY_IGNORE_MASK) {
4269
- return '';
4270
- } else if (typeof ev.eventTime !== 'undefined') {
234
+ if (mask & HOLIDAY_IGNORE_MASK || typeof ev.eventTime !== 'undefined') {
4271
235
  return '';
4272
236
  }
4273
237
  const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
4274
238
  let memo = '';
4275
239
  if (reading && (reading.summary || reading.haftara)) {
4276
240
  if (reading.summary) {
4277
- memo += "Torah: ".concat(reading.summary);
241
+ memo += `Torah: ${reading.summary}`;
4278
242
  }
4279
243
  if (reading.summary && reading.haftara) {
4280
244
  memo += '\n';
4281
245
  }
4282
246
  if (reading.haftara) {
247
+ var _reading$reason;
4283
248
  memo += 'Haftarah: ' + reading.haftara;
4284
- if (reading.reason && reading.reason.haftara) {
249
+ if ((_reading$reason = reading.reason) !== null && _reading$reason !== void 0 && _reading$reason.haftara) {
4285
250
  memo += ' | ' + reading.reason.haftara;
4286
251
  }
4287
252
  }
4288
253
  }
4289
- if (reading && reading.sephardic) {
254
+ if (reading !== null && reading !== void 0 && reading.sephardic) {
4290
255
  memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
4291
256
  }
4292
257
  return memo;
@@ -4420,7 +385,7 @@ function eventToCsv(e, options) {
4420
385
  const mday = d.getDate();
4421
386
  const mon = d.getMonth() + 1;
4422
387
  const year = String(d.getFullYear()).padStart(4, '0');
4423
- const date = options.euro ? "\"".concat(mday, "/").concat(mon, "/").concat(year, "\"") : "\"".concat(mon, "/").concat(mday, "/").concat(year, "\"");
388
+ const date = options.euro ? `"${mday}/${mon}/${year}"` : `"${mon}/${mday}/${year}"`;
4424
389
  let startTime = '';
4425
390
  let endTime = '';
4426
391
  let endDate = '';
@@ -4429,7 +394,7 @@ function eventToCsv(e, options) {
4429
394
  let subj = shouldRenderBrief(e) ? e.renderBrief(options.locale) : e.render(options.locale);
4430
395
  if (e.eventTime) {
4431
396
  const timeStr = core.HebrewCalendar.reformatTimeStr(e.eventTimeStr, ' PM', options);
4432
- endTime = startTime = "\"".concat(timeStr, "\"");
397
+ endTime = startTime = `"${timeStr}"`;
4433
398
  endDate = date;
4434
399
  allDay = '"false"';
4435
400
  }
@@ -4449,7 +414,7 @@ function eventToCsv(e, options) {
4449
414
  if (options.appendHebrewToSubject) {
4450
415
  const hebrew = e.renderBrief('he');
4451
416
  if (hebrew) {
4452
- subj += " / ".concat(hebrew);
417
+ subj += ` / ${hebrew}`;
4453
418
  }
4454
419
  }
4455
420
  let memo0 = e.memo || getHolidayDescription(e, true);
@@ -4458,7 +423,7 @@ function eventToCsv(e, options) {
4458
423
  }
4459
424
  const memo = memo0.replace(/,/g, ';').replace(/"/g, '\'\'').replace(/\n/g, ' / ');
4460
425
  const showTimeAs = timed || mask & core.flags.CHAG ? 4 : 3;
4461
- return "\"".concat(subj, "\",").concat(date, ",").concat(startTime, ",").concat(endDate, ",").concat(endTime, ",").concat(allDay, ",\"").concat(memo, "\",\"").concat(showTimeAs, "\",\"").concat(loc, "\"");
426
+ return `"${subj}",${date},${startTime},${endDate},${endTime},${allDay},"${memo}","${showTimeAs}","${loc}"`;
4462
427
  }
4463
428
 
4464
429
  /**
@@ -4684,16 +649,16 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
4684
649
  const dtStr = isoDateTime.substring(0, isoDateTime.indexOf('T'));
4685
650
  const dtAnchor = dtStr.replace(/-/g, '');
4686
651
  const descAnchor = makeAnchor(ev.getDesc());
4687
- const anchor = "".concat(dtAnchor, "-").concat(descAnchor);
652
+ const anchor = `${dtAnchor}-${descAnchor}`;
4688
653
  const url0 = ev.url();
4689
654
  if (url0) {
4690
655
  link = appendIsraelAndTracking(url0, il, utmSource, utmMedium).replace(/&/g, '&amp;');
4691
- guid = "".concat(url0, "#").concat(anchor);
656
+ guid = `${url0}#${anchor}`;
4692
657
  } else {
4693
- const url1 = "".concat(mainUrl, "&dt=").concat(dtStr);
658
+ const url1 = `${mainUrl}&dt=${dtStr}`;
4694
659
  const url = appendIsraelAndTracking(url1, il, utmSource, utmMedium).replace(/&/g, '&amp;');
4695
- guid = url1.replace(/&/g, '&amp;') + "#".concat(anchor);
4696
- link = "".concat(url, "#").concat(anchor);
660
+ guid = url1.replace(/&/g, '&amp;') + `#${anchor}`;
661
+ link = `${url}#${anchor}`;
4697
662
  }
4698
663
  return [link, guid];
4699
664
  }
@@ -4727,10 +692,20 @@ function eventsToRss2(events, options) {
4727
692
  const description = options.description || title;
4728
693
  const utmSource = options.utmSource || 'shabbat1c';
4729
694
  const utmMedium = options.utmMedium || 'rss';
4730
- const mainUrlEsc = appendIsraelAndTracking(mainUrl, location && location.getIsrael(), utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&amp;');
695
+ const mainUrlEsc = appendIsraelAndTracking(mainUrl, location === null || location === void 0 ? void 0 : location.getIsrael(), utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&amp;');
4731
696
  const selfUrlEsc = options.selfUrl.replace(/&/g, '&amp;');
4732
697
  const lang = options.lang || localeToLg[options.locale] || options.locale || 'en-US';
4733
- let str = "<?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(title, "</title>\n<link>").concat(mainUrlEsc, "</link>\n<atom:link href=\"").concat(selfUrlEsc, "\" rel=\"self\" type=\"application/rss+xml\" />\n<description>").concat(description, "</description>\n<language>").concat(lang, "</language>\n<copyright>Copyright (c) ").concat(thisYear, " Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(lastBuildDate, "</lastBuildDate>\n");
698
+ let str = `<?xml version="1.0" encoding="UTF-8"?>
699
+ <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">
700
+ <channel>
701
+ <title>${title}</title>
702
+ <link>${mainUrlEsc}</link>
703
+ <atom:link href="${selfUrlEsc}" rel="self" type="application/rss+xml" />
704
+ <description>${description}</description>
705
+ <language>${lang}</language>
706
+ <copyright>Copyright (c) ${thisYear} Michael J. Radwin. All rights reserved.</copyright>
707
+ <lastBuildDate>${lastBuildDate}</lastBuildDate>
708
+ `;
4734
709
  events.forEach(ev => {
4735
710
  str += eventToRssItem2(ev, options);
4736
711
  });
@@ -4769,8 +744,8 @@ function eventToRssItem2(ev, options) {
4769
744
  const location = options.location;
4770
745
  const il = location ? location.getIsrael() : false;
4771
746
  const tzid = location ? location.getTzid() : 'UTC';
4772
- const utmSource = options && options.utmSource || 'shabbat1c';
4773
- const utmMedium = options && options.utmMedium || 'rss';
747
+ const utmSource = options.utmSource || 'shabbat1c';
748
+ const utmMedium = options.utmMedium || 'rss';
4774
749
  const linkGuid = getLinkAndGuid(ev, il, tzid, options.mainUrl, utmSource, utmMedium);
4775
750
  const link = linkGuid[0];
4776
751
  const guid = linkGuid[1];
@@ -4795,9 +770,17 @@ function eventToRssItem2(ev, options) {
4795
770
  }
4796
771
  const dayFormat = options.dayFormat;
4797
772
  const description0 = memo || dayFormat.format(evDate);
4798
- const description = description0.indexOf('<') === -1 ? description0 : "<![CDATA[".concat(description0, "]]>");
4799
- const geoTags = cat0 == 'candles' ? "<geo:lat>".concat(location.getLatitude(), "</geo:lat>\n<geo:long>").concat(location.getLongitude(), "</geo:long>\n") : '';
4800
- 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");
773
+ const description = description0.indexOf('<') === -1 ? description0 : `<![CDATA[${description0}]]>`;
774
+ const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : '';
775
+ return `<item>
776
+ <title>${subj}</title>
777
+ <link>${link}</link>
778
+ <guid isPermaLink="false">${guid}</guid>
779
+ <description>${description}</description>
780
+ <category>${cat0}</category>
781
+ <pubDate>${pubDate}</pubDate>
782
+ ${geoTags}</item>
783
+ `;
4801
784
  }
4802
785
 
4803
786
  /**