@dereekb/zoho 10.2.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -8,7 +8,7 @@ var fetch = require('@dereekb/util/fetch');
8
8
 
9
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
10
 
11
- var fails$e = function (exec) {
11
+ var fails$f = function (exec) {
12
12
  try {
13
13
  return !!exec();
14
14
  } catch (error) {
@@ -16,49 +16,49 @@ var fails$e = function (exec) {
16
16
  }
17
17
  };
18
18
 
19
- var fails$d = fails$e;
19
+ var fails$e = fails$f;
20
20
 
21
21
  // Detect IE8's incomplete defineProperty implementation
22
- var descriptors = !fails$d(function () {
22
+ var descriptors = !fails$e(function () {
23
23
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
24
24
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
25
25
  });
26
26
 
27
- var fails$c = fails$e;
27
+ var fails$d = fails$f;
28
28
 
29
- var functionBindNative = !fails$c(function () {
29
+ var functionBindNative = !fails$d(function () {
30
30
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
31
31
  var test = (function () { /* empty */ }).bind();
32
32
  // eslint-disable-next-line no-prototype-builtins -- safe
33
33
  return typeof test != 'function' || test.hasOwnProperty('prototype');
34
34
  });
35
35
 
36
- var NATIVE_BIND$2 = functionBindNative;
36
+ var NATIVE_BIND$3 = functionBindNative;
37
37
 
38
- var FunctionPrototype$1 = Function.prototype;
39
- var call$9 = FunctionPrototype$1.call;
40
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$9, call$9);
38
+ var FunctionPrototype$2 = Function.prototype;
39
+ var call$f = FunctionPrototype$2.call;
40
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$f, call$f);
41
41
 
42
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
42
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
43
43
  return function () {
44
- return call$9.apply(fn, arguments);
44
+ return call$f.apply(fn, arguments);
45
45
  };
46
46
  };
47
47
 
48
48
  // we can't use just `it == null` since of `document.all` special case
49
49
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
50
- var isNullOrUndefined$3 = function (it) {
50
+ var isNullOrUndefined$4 = function (it) {
51
51
  return it === null || it === undefined;
52
52
  };
53
53
 
54
- var isNullOrUndefined$2 = isNullOrUndefined$3;
54
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
55
55
 
56
- var $TypeError$a = TypeError;
56
+ var $TypeError$d = TypeError;
57
57
 
58
58
  // `RequireObjectCoercible` abstract operation
59
59
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
60
60
  var requireObjectCoercible$2 = function (it) {
61
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
61
+ if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
62
62
  return it;
63
63
  };
64
64
 
@@ -84,17 +84,17 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
84
84
  return hasOwnProperty(toObject$3(it), key);
85
85
  };
86
86
 
87
- var DESCRIPTORS$c = descriptors;
88
- var hasOwn$a = hasOwnProperty_1;
87
+ var DESCRIPTORS$d = descriptors;
88
+ var hasOwn$b = hasOwnProperty_1;
89
89
 
90
- var FunctionPrototype = Function.prototype;
90
+ var FunctionPrototype$1 = Function.prototype;
91
91
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
92
- var getDescriptor = DESCRIPTORS$c && Object.getOwnPropertyDescriptor;
92
+ var getDescriptor = DESCRIPTORS$d && Object.getOwnPropertyDescriptor;
93
93
 
94
- var EXISTS$1 = hasOwn$a(FunctionPrototype, 'name');
94
+ var EXISTS$1 = hasOwn$b(FunctionPrototype$1, 'name');
95
95
  // additional protection from minified / mangled / dropped function names
96
96
  var PROPER = EXISTS$1 && (function something() { /* empty */ }).name === 'something';
97
- var CONFIGURABLE$1 = EXISTS$1 && (!DESCRIPTORS$c || (DESCRIPTORS$c && getDescriptor(FunctionPrototype, 'name').configurable));
97
+ var CONFIGURABLE$1 = EXISTS$1 && (!DESCRIPTORS$d || (DESCRIPTORS$d && getDescriptor(FunctionPrototype$1, 'name').configurable));
98
98
 
99
99
  var functionName = {
100
100
  EXISTS: EXISTS$1,
@@ -108,7 +108,7 @@ var documentAll = typeof document == 'object' && document.all;
108
108
  // `IsCallable` abstract operation
109
109
  // https://tc39.es/ecma262/#sec-iscallable
110
110
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
111
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
111
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
112
112
  return typeof argument == 'function' || argument === documentAll;
113
113
  } : function (argument) {
114
114
  return typeof argument == 'function';
@@ -121,7 +121,7 @@ var check = function (it) {
121
121
  };
122
122
 
123
123
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
124
- var global$e =
124
+ var global$k =
125
125
  // eslint-disable-next-line es/no-global-this -- safe
126
126
  check(typeof globalThis == 'object' && globalThis) ||
127
127
  check(typeof window == 'object' && window) ||
@@ -132,41 +132,41 @@ var global$e =
132
132
  // eslint-disable-next-line no-new-func -- fallback
133
133
  (function () { return this; })() || Function('return this')();
134
134
 
135
- var isCallable$f = isCallable$g;
135
+ var isCallable$j = isCallable$k;
136
136
 
137
- var isObject$9 = function (it) {
138
- return typeof it == 'object' ? it !== null : isCallable$f(it);
137
+ var isObject$b = function (it) {
138
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
139
139
  };
140
140
 
141
- var global$d = global$e;
142
- var isObject$8 = isObject$9;
141
+ var global$j = global$k;
142
+ var isObject$a = isObject$b;
143
143
 
144
- var document$1 = global$d.document;
144
+ var document$3 = global$j.document;
145
145
  // typeof document.createElement is 'object' in old IE
146
- var EXISTS = isObject$8(document$1) && isObject$8(document$1.createElement);
146
+ var EXISTS = isObject$a(document$3) && isObject$a(document$3.createElement);
147
147
 
148
148
  var documentCreateElement$2 = function (it) {
149
- return EXISTS ? document$1.createElement(it) : {};
149
+ return EXISTS ? document$3.createElement(it) : {};
150
150
  };
151
151
 
152
- var DESCRIPTORS$b = descriptors;
153
- var fails$b = fails$e;
154
- var createElement = documentCreateElement$2;
152
+ var DESCRIPTORS$c = descriptors;
153
+ var fails$c = fails$f;
154
+ var createElement$1 = documentCreateElement$2;
155
155
 
156
156
  // Thanks to IE8 for its funny defineProperty
157
- var ie8DomDefine = !DESCRIPTORS$b && !fails$b(function () {
157
+ var ie8DomDefine = !DESCRIPTORS$c && !fails$c(function () {
158
158
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
159
- return Object.defineProperty(createElement('div'), 'a', {
159
+ return Object.defineProperty(createElement$1('div'), 'a', {
160
160
  get: function () { return 7; }
161
161
  }).a !== 7;
162
162
  });
163
163
 
164
- var DESCRIPTORS$a = descriptors;
165
- var fails$a = fails$e;
164
+ var DESCRIPTORS$b = descriptors;
165
+ var fails$b = fails$f;
166
166
 
167
167
  // V8 ~ Chrome 36-
168
168
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
169
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$a(function () {
169
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$b(function () {
170
170
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
171
171
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
172
172
  value: 42,
@@ -174,34 +174,34 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$a(function () {
174
174
  }).prototype !== 42;
175
175
  });
176
176
 
177
- var isObject$7 = isObject$9;
177
+ var isObject$9 = isObject$b;
178
178
 
179
179
  var $String$5 = String;
180
- var $TypeError$9 = TypeError;
180
+ var $TypeError$c = TypeError;
181
181
 
182
182
  // `Assert: Type(argument) is Object`
183
- var anObject$9 = function (argument) {
184
- if (isObject$7(argument)) return argument;
185
- throw new $TypeError$9($String$5(argument) + ' is not an object');
183
+ var anObject$d = function (argument) {
184
+ if (isObject$9(argument)) return argument;
185
+ throw new $TypeError$c($String$5(argument) + ' is not an object');
186
186
  };
187
187
 
188
- var NATIVE_BIND$1 = functionBindNative;
188
+ var NATIVE_BIND$2 = functionBindNative;
189
189
 
190
- var call$8 = Function.prototype.call;
190
+ var call$e = Function.prototype.call;
191
191
 
192
- var functionCall = NATIVE_BIND$1 ? call$8.bind(call$8) : function () {
193
- return call$8.apply(call$8, arguments);
192
+ var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
193
+ return call$e.apply(call$e, arguments);
194
194
  };
195
195
 
196
- var global$c = global$e;
197
- var isCallable$e = isCallable$g;
196
+ var global$i = global$k;
197
+ var isCallable$i = isCallable$k;
198
198
 
199
199
  var aFunction = function (argument) {
200
- return isCallable$e(argument) ? argument : undefined;
200
+ return isCallable$i(argument) ? argument : undefined;
201
201
  };
202
202
 
203
- var getBuiltIn$4 = function (namespace, method) {
204
- return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
203
+ var getBuiltIn$7 = function (namespace, method) {
204
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
205
205
  };
206
206
 
207
207
  var uncurryThis$e = functionUncurryThis;
@@ -210,12 +210,12 @@ var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
210
210
 
211
211
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
212
212
 
213
- var global$b = global$e;
214
- var userAgent = engineUserAgent;
213
+ var global$h = global$k;
214
+ var userAgent$3 = engineUserAgent;
215
215
 
216
- var process = global$b.process;
217
- var Deno = global$b.Deno;
218
- var versions = process && process.versions || Deno && Deno.version;
216
+ var process$3 = global$h.process;
217
+ var Deno$1 = global$h.Deno;
218
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
219
219
  var v8 = versions && versions.v8;
220
220
  var match, version;
221
221
 
@@ -228,10 +228,10 @@ if (v8) {
228
228
 
229
229
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
230
230
  // so check `userAgent` even if `.v8` exists, but 0
231
- if (!version && userAgent) {
232
- match = userAgent.match(/Edge\/(\d+)/);
231
+ if (!version && userAgent$3) {
232
+ match = userAgent$3.match(/Edge\/(\d+)/);
233
233
  if (!match || match[1] >= 74) {
234
- match = userAgent.match(/Chrome\/(\d+)/);
234
+ match = userAgent$3.match(/Chrome\/(\d+)/);
235
235
  if (match) version = +match[1];
236
236
  }
237
237
  }
@@ -239,14 +239,14 @@ if (!version && userAgent) {
239
239
  var engineV8Version = version;
240
240
 
241
241
  /* eslint-disable es/no-symbol -- required for testing */
242
- var V8_VERSION = engineV8Version;
243
- var fails$9 = fails$e;
244
- var global$a = global$e;
242
+ var V8_VERSION$1 = engineV8Version;
243
+ var fails$a = fails$f;
244
+ var global$g = global$k;
245
245
 
246
- var $String$4 = global$a.String;
246
+ var $String$4 = global$g.String;
247
247
 
248
248
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
249
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
249
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
250
250
  var symbol = Symbol('symbol detection');
251
251
  // Chrome 38 Symbol has incorrect toString conversion
252
252
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -254,7 +254,7 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(func
254
254
  // of course, fail.
255
255
  return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
256
256
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
257
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
257
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
258
258
  });
259
259
 
260
260
  /* eslint-disable es/no-symbol -- required for testing */
@@ -264,9 +264,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
264
264
  && !Symbol.sham
265
265
  && typeof Symbol.iterator == 'symbol';
266
266
 
267
- var getBuiltIn$3 = getBuiltIn$4;
268
- var isCallable$d = isCallable$g;
269
- var isPrototypeOf$2 = objectIsPrototypeOf;
267
+ var getBuiltIn$6 = getBuiltIn$7;
268
+ var isCallable$h = isCallable$k;
269
+ var isPrototypeOf$3 = objectIsPrototypeOf;
270
270
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
271
271
 
272
272
  var $Object$3 = Object;
@@ -274,13 +274,13 @@ var $Object$3 = Object;
274
274
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
275
275
  return typeof it == 'symbol';
276
276
  } : function (it) {
277
- var $Symbol = getBuiltIn$3('Symbol');
278
- return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
277
+ var $Symbol = getBuiltIn$6('Symbol');
278
+ return isCallable$h($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
279
279
  };
280
280
 
281
281
  var $String$3 = String;
282
282
 
283
- var tryToString$2 = function (argument) {
283
+ var tryToString$4 = function (argument) {
284
284
  try {
285
285
  return $String$3(argument);
286
286
  } catch (error) {
@@ -288,65 +288,65 @@ var tryToString$2 = function (argument) {
288
288
  }
289
289
  };
290
290
 
291
- var isCallable$c = isCallable$g;
292
- var tryToString$1 = tryToString$2;
291
+ var isCallable$g = isCallable$k;
292
+ var tryToString$3 = tryToString$4;
293
293
 
294
- var $TypeError$8 = TypeError;
294
+ var $TypeError$b = TypeError;
295
295
 
296
296
  // `Assert: IsCallable(argument) is true`
297
- var aCallable$5 = function (argument) {
298
- if (isCallable$c(argument)) return argument;
299
- throw new $TypeError$8(tryToString$1(argument) + ' is not a function');
297
+ var aCallable$9 = function (argument) {
298
+ if (isCallable$g(argument)) return argument;
299
+ throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
300
300
  };
301
301
 
302
- var aCallable$4 = aCallable$5;
303
- var isNullOrUndefined$1 = isNullOrUndefined$3;
302
+ var aCallable$8 = aCallable$9;
303
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
304
304
 
305
305
  // `GetMethod` abstract operation
306
306
  // https://tc39.es/ecma262/#sec-getmethod
307
- var getMethod$2 = function (V, P) {
307
+ var getMethod$3 = function (V, P) {
308
308
  var func = V[P];
309
- return isNullOrUndefined$1(func) ? undefined : aCallable$4(func);
309
+ return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
310
310
  };
311
311
 
312
- var call$7 = functionCall;
313
- var isCallable$b = isCallable$g;
314
- var isObject$6 = isObject$9;
312
+ var call$d = functionCall;
313
+ var isCallable$f = isCallable$k;
314
+ var isObject$8 = isObject$b;
315
315
 
316
- var $TypeError$7 = TypeError;
316
+ var $TypeError$a = TypeError;
317
317
 
318
318
  // `OrdinaryToPrimitive` abstract operation
319
319
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
320
320
  var ordinaryToPrimitive$1 = function (input, pref) {
321
321
  var fn, val;
322
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
323
- if (isCallable$b(fn = input.valueOf) && !isObject$6(val = call$7(fn, input))) return val;
324
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
325
- throw new $TypeError$7("Can't convert object to primitive value");
322
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
323
+ if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
324
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
325
+ throw new $TypeError$a("Can't convert object to primitive value");
326
326
  };
327
327
 
328
328
  var shared$3 = {exports: {}};
329
329
 
330
330
  var isPure = false;
331
331
 
332
- var global$9 = global$e;
332
+ var global$f = global$k;
333
333
 
334
334
  // eslint-disable-next-line es/no-object-defineproperty -- safe
335
335
  var defineProperty$6 = Object.defineProperty;
336
336
 
337
337
  var defineGlobalProperty$3 = function (key, value) {
338
338
  try {
339
- defineProperty$6(global$9, key, { value: value, configurable: true, writable: true });
339
+ defineProperty$6(global$f, key, { value: value, configurable: true, writable: true });
340
340
  } catch (error) {
341
- global$9[key] = value;
341
+ global$f[key] = value;
342
342
  } return value;
343
343
  };
344
344
 
345
- var global$8 = global$e;
345
+ var global$e = global$k;
346
346
  var defineGlobalProperty$2 = defineGlobalProperty$3;
347
347
 
348
348
  var SHARED = '__core-js_shared__';
349
- var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
349
+ var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
350
350
 
351
351
  var sharedStore = store$3;
352
352
 
@@ -372,46 +372,46 @@ var uid$2 = function (key) {
372
372
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
373
373
  };
374
374
 
375
- var global$7 = global$e;
375
+ var global$d = global$k;
376
376
  var shared$2 = shared$3.exports;
377
- var hasOwn$9 = hasOwnProperty_1;
377
+ var hasOwn$a = hasOwnProperty_1;
378
378
  var uid$1 = uid$2;
379
379
  var NATIVE_SYMBOL = symbolConstructorDetection;
380
380
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
381
381
 
382
- var Symbol$1 = global$7.Symbol;
382
+ var Symbol$1 = global$d.Symbol;
383
383
  var WellKnownSymbolsStore = shared$2('wks');
384
384
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
385
385
 
386
- var wellKnownSymbol$c = function (name) {
387
- if (!hasOwn$9(WellKnownSymbolsStore, name)) {
388
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
386
+ var wellKnownSymbol$h = function (name) {
387
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
388
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
389
389
  ? Symbol$1[name]
390
390
  : createWellKnownSymbol('Symbol.' + name);
391
391
  } return WellKnownSymbolsStore[name];
392
392
  };
393
393
 
394
- var call$6 = functionCall;
395
- var isObject$5 = isObject$9;
394
+ var call$c = functionCall;
395
+ var isObject$7 = isObject$b;
396
396
  var isSymbol$1 = isSymbol$2;
397
- var getMethod$1 = getMethod$2;
397
+ var getMethod$2 = getMethod$3;
398
398
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
399
- var wellKnownSymbol$b = wellKnownSymbol$c;
399
+ var wellKnownSymbol$g = wellKnownSymbol$h;
400
400
 
401
- var $TypeError$6 = TypeError;
402
- var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
401
+ var $TypeError$9 = TypeError;
402
+ var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
403
403
 
404
404
  // `ToPrimitive` abstract operation
405
405
  // https://tc39.es/ecma262/#sec-toprimitive
406
406
  var toPrimitive$1 = function (input, pref) {
407
- if (!isObject$5(input) || isSymbol$1(input)) return input;
408
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
407
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
408
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
409
409
  var result;
410
410
  if (exoticToPrim) {
411
411
  if (pref === undefined) pref = 'default';
412
- result = call$6(exoticToPrim, input, pref);
413
- if (!isObject$5(result) || isSymbol$1(result)) return result;
414
- throw new $TypeError$6("Can't convert object to primitive value");
412
+ result = call$c(exoticToPrim, input, pref);
413
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
414
+ throw new $TypeError$9("Can't convert object to primitive value");
415
415
  }
416
416
  if (pref === undefined) pref = 'number';
417
417
  return ordinaryToPrimitive(input, pref);
@@ -427,13 +427,13 @@ var toPropertyKey$2 = function (argument) {
427
427
  return isSymbol(key) ? key : key + '';
428
428
  };
429
429
 
430
- var DESCRIPTORS$9 = descriptors;
430
+ var DESCRIPTORS$a = descriptors;
431
431
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
432
432
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
433
- var anObject$8 = anObject$9;
433
+ var anObject$c = anObject$d;
434
434
  var toPropertyKey$1 = toPropertyKey$2;
435
435
 
436
- var $TypeError$5 = TypeError;
436
+ var $TypeError$8 = TypeError;
437
437
  // eslint-disable-next-line es/no-object-defineproperty -- safe
438
438
  var $defineProperty = Object.defineProperty;
439
439
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -444,10 +444,10 @@ var WRITABLE = 'writable';
444
444
 
445
445
  // `Object.defineProperty` method
446
446
  // https://tc39.es/ecma262/#sec-object.defineproperty
447
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
448
- anObject$8(O);
447
+ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
448
+ anObject$c(O);
449
449
  P = toPropertyKey$1(P);
450
- anObject$8(Attributes);
450
+ anObject$c(Attributes);
451
451
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
452
452
  var current = $getOwnPropertyDescriptor$1(O, P);
453
453
  if (current && current[WRITABLE]) {
@@ -460,13 +460,13 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
460
460
  }
461
461
  } return $defineProperty(O, P, Attributes);
462
462
  } : $defineProperty : function defineProperty(O, P, Attributes) {
463
- anObject$8(O);
463
+ anObject$c(O);
464
464
  P = toPropertyKey$1(P);
465
- anObject$8(Attributes);
465
+ anObject$c(Attributes);
466
466
  if (IE8_DOM_DEFINE$1) try {
467
467
  return $defineProperty(O, P, Attributes);
468
468
  } catch (error) { /* empty */ }
469
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
469
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
470
470
  if ('value' in Attributes) O[P] = Attributes.value;
471
471
  return O;
472
472
  };
@@ -474,26 +474,26 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
474
474
  var makeBuiltIn$3 = {exports: {}};
475
475
 
476
476
  var uncurryThis$c = functionUncurryThis;
477
- var isCallable$a = isCallable$g;
477
+ var isCallable$e = isCallable$k;
478
478
  var store$1 = sharedStore;
479
479
 
480
480
  var functionToString = uncurryThis$c(Function.toString);
481
481
 
482
482
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
483
- if (!isCallable$a(store$1.inspectSource)) {
483
+ if (!isCallable$e(store$1.inspectSource)) {
484
484
  store$1.inspectSource = function (it) {
485
485
  return functionToString(it);
486
486
  };
487
487
  }
488
488
 
489
- var inspectSource$2 = store$1.inspectSource;
489
+ var inspectSource$3 = store$1.inspectSource;
490
490
 
491
- var global$6 = global$e;
492
- var isCallable$9 = isCallable$g;
491
+ var global$c = global$k;
492
+ var isCallable$d = isCallable$k;
493
493
 
494
- var WeakMap$1 = global$6.WeakMap;
494
+ var WeakMap$1 = global$c.WeakMap;
495
495
 
496
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
496
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
497
497
 
498
498
  var createPropertyDescriptor$4 = function (bitmap, value) {
499
499
  return {
@@ -504,11 +504,11 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
504
504
  };
505
505
  };
506
506
 
507
- var DESCRIPTORS$8 = descriptors;
507
+ var DESCRIPTORS$9 = descriptors;
508
508
  var definePropertyModule$3 = objectDefineProperty;
509
509
  var createPropertyDescriptor$3 = createPropertyDescriptor$4;
510
510
 
511
- var createNonEnumerableProperty$4 = DESCRIPTORS$8 ? function (object, key, value) {
511
+ var createNonEnumerableProperty$4 = DESCRIPTORS$9 ? function (object, key, value) {
512
512
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$3(1, value));
513
513
  } : function (object, key, value) {
514
514
  object[key] = value;
@@ -527,28 +527,28 @@ var sharedKey$3 = function (key) {
527
527
  var hiddenKeys$4 = {};
528
528
 
529
529
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
530
- var global$5 = global$e;
531
- var isObject$4 = isObject$9;
530
+ var global$b = global$k;
531
+ var isObject$6 = isObject$b;
532
532
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
533
- var hasOwn$8 = hasOwnProperty_1;
533
+ var hasOwn$9 = hasOwnProperty_1;
534
534
  var shared = sharedStore;
535
535
  var sharedKey$2 = sharedKey$3;
536
536
  var hiddenKeys$3 = hiddenKeys$4;
537
537
 
538
538
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
539
- var TypeError$2 = global$5.TypeError;
540
- var WeakMap = global$5.WeakMap;
541
- var set, get, has;
539
+ var TypeError$3 = global$b.TypeError;
540
+ var WeakMap = global$b.WeakMap;
541
+ var set$1, get, has;
542
542
 
543
543
  var enforce = function (it) {
544
- return has(it) ? get(it) : set(it, {});
544
+ return has(it) ? get(it) : set$1(it, {});
545
545
  };
546
546
 
547
547
  var getterFor = function (TYPE) {
548
548
  return function (it) {
549
549
  var state;
550
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
551
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
550
+ if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
551
+ throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required');
552
552
  } return state;
553
553
  };
554
554
  };
@@ -560,8 +560,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
560
560
  store.has = store.has;
561
561
  store.set = store.set;
562
562
  /* eslint-enable no-self-assign -- prototype methods protection */
563
- set = function (it, metadata) {
564
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
563
+ set$1 = function (it, metadata) {
564
+ if (store.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
565
565
  metadata.facade = it;
566
566
  store.set(it, metadata);
567
567
  return metadata;
@@ -575,22 +575,22 @@ if (NATIVE_WEAK_MAP || shared.state) {
575
575
  } else {
576
576
  var STATE = sharedKey$2('state');
577
577
  hiddenKeys$3[STATE] = true;
578
- set = function (it, metadata) {
579
- if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
578
+ set$1 = function (it, metadata) {
579
+ if (hasOwn$9(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
580
580
  metadata.facade = it;
581
581
  createNonEnumerableProperty$3(it, STATE, metadata);
582
582
  return metadata;
583
583
  };
584
584
  get = function (it) {
585
- return hasOwn$8(it, STATE) ? it[STATE] : {};
585
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
586
586
  };
587
587
  has = function (it) {
588
- return hasOwn$8(it, STATE);
588
+ return hasOwn$9(it, STATE);
589
589
  };
590
590
  }
591
591
 
592
592
  var internalState = {
593
- set: set,
593
+ set: set$1,
594
594
  get: get,
595
595
  has: has,
596
596
  enforce: enforce,
@@ -598,16 +598,16 @@ var internalState = {
598
598
  };
599
599
 
600
600
  var uncurryThis$b = functionUncurryThis;
601
- var fails$8 = fails$e;
602
- var isCallable$8 = isCallable$g;
603
- var hasOwn$7 = hasOwnProperty_1;
604
- var DESCRIPTORS$7 = descriptors;
601
+ var fails$9 = fails$f;
602
+ var isCallable$c = isCallable$k;
603
+ var hasOwn$8 = hasOwnProperty_1;
604
+ var DESCRIPTORS$8 = descriptors;
605
605
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
606
- var inspectSource$1 = inspectSource$2;
607
- var InternalStateModule$2 = internalState;
606
+ var inspectSource$2 = inspectSource$3;
607
+ var InternalStateModule$3 = internalState;
608
608
 
609
- var enforceInternalState = InternalStateModule$2.enforce;
610
- var getInternalState$1 = InternalStateModule$2.get;
609
+ var enforceInternalState = InternalStateModule$3.enforce;
610
+ var getInternalState$1 = InternalStateModule$3.get;
611
611
  var $String$2 = String;
612
612
  // eslint-disable-next-line es/no-object-defineproperty -- safe
613
613
  var defineProperty$5 = Object.defineProperty;
@@ -615,7 +615,7 @@ var stringSlice$2 = uncurryThis$b(''.slice);
615
615
  var replace$1 = uncurryThis$b(''.replace);
616
616
  var join$1 = uncurryThis$b([].join);
617
617
 
618
- var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$8(function () {
618
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$9(function () {
619
619
  return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
620
620
  });
621
621
 
@@ -627,21 +627,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
627
627
  }
628
628
  if (options && options.getter) name = 'get ' + name;
629
629
  if (options && options.setter) name = 'set ' + name;
630
- if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
631
- if (DESCRIPTORS$7) defineProperty$5(value, 'name', { value: name, configurable: true });
630
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
631
+ if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
632
632
  else value.name = name;
633
633
  }
634
- if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
634
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
635
635
  defineProperty$5(value, 'length', { value: options.arity });
636
636
  }
637
637
  try {
638
- if (options && hasOwn$7(options, 'constructor') && options.constructor) {
639
- if (DESCRIPTORS$7) defineProperty$5(value, 'prototype', { writable: false });
638
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
639
+ if (DESCRIPTORS$8) defineProperty$5(value, 'prototype', { writable: false });
640
640
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
641
641
  } else if (value.prototype) value.prototype = undefined;
642
642
  } catch (error) { /* empty */ }
643
643
  var state = enforceInternalState(value);
644
- if (!hasOwn$7(state, 'source')) {
644
+ if (!hasOwn$8(state, 'source')) {
645
645
  state.source = join$1(TEMPLATE, typeof name == 'string' ? name : '');
646
646
  } return value;
647
647
  };
@@ -649,19 +649,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
649
649
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
650
650
  // eslint-disable-next-line no-extend-native -- required
651
651
  Function.prototype.toString = makeBuiltIn$2(function toString() {
652
- return isCallable$8(this) && getInternalState$1(this).source || inspectSource$1(this);
652
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
653
653
  }, 'toString');
654
654
 
655
- var isCallable$7 = isCallable$g;
655
+ var isCallable$b = isCallable$k;
656
656
  var definePropertyModule$2 = objectDefineProperty;
657
657
  var makeBuiltIn$1 = makeBuiltIn$3.exports;
658
658
  var defineGlobalProperty$1 = defineGlobalProperty$3;
659
659
 
660
- var defineBuiltIn$6 = function (O, key, value, options) {
660
+ var defineBuiltIn$8 = function (O, key, value, options) {
661
661
  if (!options) options = {};
662
662
  var simple = options.enumerable;
663
663
  var name = options.name !== undefined ? options.name : key;
664
- if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
664
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
665
665
  if (options.global) {
666
666
  if (simple) O[key] = value;
667
667
  else defineGlobalProperty$1(key, value);
@@ -680,9 +680,9 @@ var defineBuiltIn$6 = function (O, key, value, options) {
680
680
  } return O;
681
681
  };
682
682
 
683
- var wellKnownSymbol$a = wellKnownSymbol$c;
683
+ var wellKnownSymbol$f = wellKnownSymbol$h;
684
684
 
685
- var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
685
+ var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
686
686
  var test = {};
687
687
 
688
688
  test[TO_STRING_TAG$2] = 'z';
@@ -699,11 +699,11 @@ var classofRaw$2 = function (it) {
699
699
  };
700
700
 
701
701
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
702
- var isCallable$6 = isCallable$g;
702
+ var isCallable$a = isCallable$k;
703
703
  var classofRaw$1 = classofRaw$2;
704
- var wellKnownSymbol$9 = wellKnownSymbol$c;
704
+ var wellKnownSymbol$e = wellKnownSymbol$h;
705
705
 
706
- var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
706
+ var TO_STRING_TAG$1 = wellKnownSymbol$e('toStringTag');
707
707
  var $Object$2 = Object;
708
708
 
709
709
  // ES3 wrong here
@@ -717,7 +717,7 @@ var tryGet = function (it, key) {
717
717
  };
718
718
 
719
719
  // getting tag from ES6+ `Object.prototype.toString`
720
- var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
720
+ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
721
721
  var O, tag, result;
722
722
  return it === undefined ? 'Undefined' : it === null ? 'Null'
723
723
  // @@toStringTag case
@@ -725,24 +725,24 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
725
725
  // builtinTag case
726
726
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
727
727
  // ES3 arguments fallback
728
- : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
728
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
729
729
  };
730
730
 
731
- var classof$5 = classof$6;
731
+ var classof$6 = classof$7;
732
732
 
733
733
  var $String$1 = String;
734
734
 
735
735
  var toString = function (argument) {
736
- if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
736
+ if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
737
737
  return $String$1(argument);
738
738
  };
739
739
 
740
- var anObject$7 = anObject$9;
740
+ var anObject$b = anObject$d;
741
741
 
742
742
  // `RegExp.prototype.flags` getter implementation
743
743
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
744
744
  var regexpFlags = function () {
745
- var that = anObject$7(this);
745
+ var that = anObject$b(this);
746
746
  var result = '';
747
747
  if (that.hasIndices) result += 'd';
748
748
  if (that.global) result += 'g';
@@ -755,39 +755,39 @@ var regexpFlags = function () {
755
755
  return result;
756
756
  };
757
757
 
758
- var call$5 = functionCall;
759
- var hasOwn$6 = hasOwnProperty_1;
760
- var isPrototypeOf$1 = objectIsPrototypeOf;
758
+ var call$b = functionCall;
759
+ var hasOwn$7 = hasOwnProperty_1;
760
+ var isPrototypeOf$2 = objectIsPrototypeOf;
761
761
  var regExpFlags = regexpFlags;
762
762
 
763
763
  var RegExpPrototype$1 = RegExp.prototype;
764
764
 
765
765
  var regexpGetFlags = function (R) {
766
766
  var flags = R.flags;
767
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$6(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R)
768
- ? call$5(regExpFlags, R) : flags;
767
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$7(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
768
+ ? call$b(regExpFlags, R) : flags;
769
769
  };
770
770
 
771
771
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
772
- var defineBuiltIn$5 = defineBuiltIn$6;
773
- var anObject$6 = anObject$9;
772
+ var defineBuiltIn$7 = defineBuiltIn$8;
773
+ var anObject$a = anObject$d;
774
774
  var $toString$1 = toString;
775
- var fails$7 = fails$e;
775
+ var fails$8 = fails$f;
776
776
  var getRegExpFlags = regexpGetFlags;
777
777
 
778
778
  var TO_STRING = 'toString';
779
779
  var RegExpPrototype = RegExp.prototype;
780
780
  var nativeToString = RegExpPrototype[TO_STRING];
781
781
 
782
- var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
782
+ var NOT_GENERIC = fails$8(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
783
783
  // FF44- RegExp#toString has a wrong name
784
784
  var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
785
785
 
786
786
  // `RegExp.prototype.toString` method
787
787
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
788
788
  if (NOT_GENERIC || INCORRECT_NAME) {
789
- defineBuiltIn$5(RegExpPrototype, TO_STRING, function toString() {
790
- var R = anObject$6(this);
789
+ defineBuiltIn$7(RegExpPrototype, TO_STRING, function toString() {
790
+ var R = anObject$a(this);
791
791
  var pattern = $toString$1(R.source);
792
792
  var flags = $toString$1(getRegExpFlags(R));
793
793
  return '/' + pattern + '/' + flags;
@@ -813,19 +813,19 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
813
813
  } : $propertyIsEnumerable;
814
814
 
815
815
  var uncurryThis$9 = functionUncurryThis;
816
- var fails$6 = fails$e;
817
- var classof$4 = classofRaw$2;
816
+ var fails$7 = fails$f;
817
+ var classof$5 = classofRaw$2;
818
818
 
819
819
  var $Object$1 = Object;
820
820
  var split$1 = uncurryThis$9(''.split);
821
821
 
822
822
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
823
- var indexedObject = fails$6(function () {
823
+ var indexedObject = fails$7(function () {
824
824
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
825
825
  // eslint-disable-next-line no-prototype-builtins -- safe
826
826
  return !$Object$1('z').propertyIsEnumerable(0);
827
827
  }) ? function (it) {
828
- return classof$4(it) === 'String' ? split$1(it, '') : $Object$1(it);
828
+ return classof$5(it) === 'String' ? split$1(it, '') : $Object$1(it);
829
829
  } : $Object$1;
830
830
 
831
831
  // toObject with fallback for non-array-like ES3 strings
@@ -836,13 +836,13 @@ var toIndexedObject$5 = function (it) {
836
836
  return IndexedObject$1(requireObjectCoercible(it));
837
837
  };
838
838
 
839
- var DESCRIPTORS$6 = descriptors;
840
- var call$4 = functionCall;
839
+ var DESCRIPTORS$7 = descriptors;
840
+ var call$a = functionCall;
841
841
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
842
842
  var createPropertyDescriptor$2 = createPropertyDescriptor$4;
843
843
  var toIndexedObject$4 = toIndexedObject$5;
844
844
  var toPropertyKey = toPropertyKey$2;
845
- var hasOwn$5 = hasOwnProperty_1;
845
+ var hasOwn$6 = hasOwnProperty_1;
846
846
  var IE8_DOM_DEFINE = ie8DomDefine;
847
847
 
848
848
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -850,13 +850,13 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
850
850
 
851
851
  // `Object.getOwnPropertyDescriptor` method
852
852
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
853
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
853
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
854
854
  O = toIndexedObject$4(O);
855
855
  P = toPropertyKey(P);
856
856
  if (IE8_DOM_DEFINE) try {
857
857
  return $getOwnPropertyDescriptor(O, P);
858
858
  } catch (error) { /* empty */ }
859
- if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
859
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
860
860
  };
861
861
 
862
862
  var objectGetOwnPropertyNames = {};
@@ -910,19 +910,19 @@ var toLength = toLength$1;
910
910
 
911
911
  // `LengthOfArrayLike` abstract operation
912
912
  // https://tc39.es/ecma262/#sec-lengthofarraylike
913
- var lengthOfArrayLike$3 = function (obj) {
913
+ var lengthOfArrayLike$4 = function (obj) {
914
914
  return toLength(obj.length);
915
915
  };
916
916
 
917
917
  var toIndexedObject$3 = toIndexedObject$5;
918
918
  var toAbsoluteIndex = toAbsoluteIndex$1;
919
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
919
+ var lengthOfArrayLike$3 = lengthOfArrayLike$4;
920
920
 
921
921
  // `Array.prototype.{ indexOf, includes }` methods implementation
922
922
  var createMethod = function (IS_INCLUDES) {
923
923
  return function ($this, el, fromIndex) {
924
924
  var O = toIndexedObject$3($this);
925
- var length = lengthOfArrayLike$2(O);
925
+ var length = lengthOfArrayLike$3(O);
926
926
  var index = toAbsoluteIndex(fromIndex, length);
927
927
  var value;
928
928
  // Array#includes uses SameValueZero equality algorithm
@@ -948,7 +948,7 @@ var arrayIncludes = {
948
948
  };
949
949
 
950
950
  var uncurryThis$8 = functionUncurryThis;
951
- var hasOwn$4 = hasOwnProperty_1;
951
+ var hasOwn$5 = hasOwnProperty_1;
952
952
  var toIndexedObject$2 = toIndexedObject$5;
953
953
  var indexOf = arrayIncludes.indexOf;
954
954
  var hiddenKeys$2 = hiddenKeys$4;
@@ -960,9 +960,9 @@ var objectKeysInternal = function (object, names) {
960
960
  var i = 0;
961
961
  var result = [];
962
962
  var key;
963
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
963
+ for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
964
964
  // Don't enum bug & hidden keys
965
- while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
965
+ while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
966
966
  ~indexOf(result, key) || push$1(result, key);
967
967
  }
968
968
  return result;
@@ -996,22 +996,22 @@ var objectGetOwnPropertySymbols = {};
996
996
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
997
997
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
998
998
 
999
- var getBuiltIn$2 = getBuiltIn$4;
999
+ var getBuiltIn$5 = getBuiltIn$7;
1000
1000
  var uncurryThis$7 = functionUncurryThis;
1001
1001
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1002
1002
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1003
- var anObject$5 = anObject$9;
1003
+ var anObject$9 = anObject$d;
1004
1004
 
1005
1005
  var concat$1 = uncurryThis$7([].concat);
1006
1006
 
1007
1007
  // all object keys, includes non-enumerable and symbols
1008
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1009
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1008
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1009
+ var keys = getOwnPropertyNamesModule.f(anObject$9(it));
1010
1010
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1011
1011
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1012
1012
  };
1013
1013
 
1014
- var hasOwn$3 = hasOwnProperty_1;
1014
+ var hasOwn$4 = hasOwnProperty_1;
1015
1015
  var ownKeys = ownKeys$1;
1016
1016
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1017
1017
  var definePropertyModule$1 = objectDefineProperty;
@@ -1022,42 +1022,42 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1022
1022
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1023
1023
  for (var i = 0; i < keys.length; i++) {
1024
1024
  var key = keys[i];
1025
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1025
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
1026
1026
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1027
1027
  }
1028
1028
  }
1029
1029
  };
1030
1030
 
1031
- var fails$5 = fails$e;
1032
- var isCallable$5 = isCallable$g;
1031
+ var fails$6 = fails$f;
1032
+ var isCallable$9 = isCallable$k;
1033
1033
 
1034
1034
  var replacement = /#|\.prototype\./;
1035
1035
 
1036
- var isForced$1 = function (feature, detection) {
1036
+ var isForced$2 = function (feature, detection) {
1037
1037
  var value = data[normalize(feature)];
1038
1038
  return value === POLYFILL ? true
1039
1039
  : value === NATIVE ? false
1040
- : isCallable$5(detection) ? fails$5(detection)
1040
+ : isCallable$9(detection) ? fails$6(detection)
1041
1041
  : !!detection;
1042
1042
  };
1043
1043
 
1044
- var normalize = isForced$1.normalize = function (string) {
1044
+ var normalize = isForced$2.normalize = function (string) {
1045
1045
  return String(string).replace(replacement, '.').toLowerCase();
1046
1046
  };
1047
1047
 
1048
- var data = isForced$1.data = {};
1049
- var NATIVE = isForced$1.NATIVE = 'N';
1050
- var POLYFILL = isForced$1.POLYFILL = 'P';
1048
+ var data = isForced$2.data = {};
1049
+ var NATIVE = isForced$2.NATIVE = 'N';
1050
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1051
1051
 
1052
- var isForced_1 = isForced$1;
1052
+ var isForced_1 = isForced$2;
1053
1053
 
1054
- var global$4 = global$e;
1054
+ var global$a = global$k;
1055
1055
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1056
1056
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1057
- var defineBuiltIn$4 = defineBuiltIn$6;
1057
+ var defineBuiltIn$6 = defineBuiltIn$8;
1058
1058
  var defineGlobalProperty = defineGlobalProperty$3;
1059
1059
  var copyConstructorProperties = copyConstructorProperties$1;
1060
- var isForced = isForced_1;
1060
+ var isForced$1 = isForced_1;
1061
1061
 
1062
1062
  /*
1063
1063
  options.target - name of the target object
@@ -1080,11 +1080,11 @@ var _export = function (options, source) {
1080
1080
  var STATIC = options.stat;
1081
1081
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1082
1082
  if (GLOBAL) {
1083
- target = global$4;
1083
+ target = global$a;
1084
1084
  } else if (STATIC) {
1085
- target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
1085
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1086
1086
  } else {
1087
- target = global$4[TARGET] && global$4[TARGET].prototype;
1087
+ target = global$a[TARGET] && global$a[TARGET].prototype;
1088
1088
  }
1089
1089
  if (target) for (key in source) {
1090
1090
  sourceProperty = source[key];
@@ -1092,7 +1092,7 @@ var _export = function (options, source) {
1092
1092
  descriptor = getOwnPropertyDescriptor$1(target, key);
1093
1093
  targetProperty = descriptor && descriptor.value;
1094
1094
  } else targetProperty = target[key];
1095
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1095
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1096
1096
  // contained in target
1097
1097
  if (!FORCED && targetProperty !== undefined) {
1098
1098
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1102,7 +1102,7 @@ var _export = function (options, source) {
1102
1102
  if (options.sham || (targetProperty && targetProperty.sham)) {
1103
1103
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1104
1104
  }
1105
- defineBuiltIn$4(target, key, sourceProperty, options);
1105
+ defineBuiltIn$6(target, key, sourceProperty, options);
1106
1106
  }
1107
1107
  };
1108
1108
 
@@ -1116,10 +1116,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
1116
1116
  return internalObjectKeys(O, enumBugKeys$1);
1117
1117
  };
1118
1118
 
1119
- var DESCRIPTORS$5 = descriptors;
1119
+ var DESCRIPTORS$6 = descriptors;
1120
1120
  var uncurryThis$6 = functionUncurryThis;
1121
- var call$3 = functionCall;
1122
- var fails$4 = fails$e;
1121
+ var call$9 = functionCall;
1122
+ var fails$5 = fails$f;
1123
1123
  var objectKeys$1 = objectKeys$2;
1124
1124
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1125
1125
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1134,9 +1134,9 @@ var concat = uncurryThis$6([].concat);
1134
1134
 
1135
1135
  // `Object.assign` method
1136
1136
  // https://tc39.es/ecma262/#sec-object.assign
1137
- var objectAssign = !$assign || fails$4(function () {
1137
+ var objectAssign = !$assign || fails$5(function () {
1138
1138
  // should have correct order of operations (Edge bug)
1139
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1139
+ if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1140
1140
  enumerable: true,
1141
1141
  get: function () {
1142
1142
  defineProperty$4(this, 'b', {
@@ -1168,35 +1168,35 @@ var objectAssign = !$assign || fails$4(function () {
1168
1168
  var key;
1169
1169
  while (length > j) {
1170
1170
  key = keys[j++];
1171
- if (!DESCRIPTORS$5 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1171
+ if (!DESCRIPTORS$6 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
1172
1172
  }
1173
1173
  } return T;
1174
1174
  } : $assign;
1175
1175
 
1176
- var $$3 = _export;
1176
+ var $$9 = _export;
1177
1177
  var assign = objectAssign;
1178
1178
 
1179
1179
  // `Object.assign` method
1180
1180
  // https://tc39.es/ecma262/#sec-object.assign
1181
1181
  // eslint-disable-next-line es/no-object-assign -- required for testing
1182
- $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1182
+ $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1183
1183
  assign: assign
1184
1184
  });
1185
1185
 
1186
1186
  var objectDefineProperties = {};
1187
1187
 
1188
- var DESCRIPTORS$4 = descriptors;
1188
+ var DESCRIPTORS$5 = descriptors;
1189
1189
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1190
1190
  var definePropertyModule = objectDefineProperty;
1191
- var anObject$4 = anObject$9;
1191
+ var anObject$8 = anObject$d;
1192
1192
  var toIndexedObject$1 = toIndexedObject$5;
1193
1193
  var objectKeys = objectKeys$2;
1194
1194
 
1195
1195
  // `Object.defineProperties` method
1196
1196
  // https://tc39.es/ecma262/#sec-object.defineproperties
1197
1197
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1198
- objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1199
- anObject$4(O);
1198
+ objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1199
+ anObject$8(O);
1200
1200
  var props = toIndexedObject$1(Properties);
1201
1201
  var keys = objectKeys(Properties);
1202
1202
  var length = keys.length;
@@ -1206,16 +1206,16 @@ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1206
1206
  return O;
1207
1207
  };
1208
1208
 
1209
- var getBuiltIn$1 = getBuiltIn$4;
1209
+ var getBuiltIn$4 = getBuiltIn$7;
1210
1210
 
1211
- var html$1 = getBuiltIn$1('document', 'documentElement');
1211
+ var html$2 = getBuiltIn$4('document', 'documentElement');
1212
1212
 
1213
1213
  /* global ActiveXObject -- old IE, WSH */
1214
- var anObject$3 = anObject$9;
1214
+ var anObject$7 = anObject$d;
1215
1215
  var definePropertiesModule = objectDefineProperties;
1216
1216
  var enumBugKeys = enumBugKeys$3;
1217
1217
  var hiddenKeys = hiddenKeys$4;
1218
- var html = html$1;
1218
+ var html$1 = html$2;
1219
1219
  var documentCreateElement$1 = documentCreateElement$2;
1220
1220
  var sharedKey$1 = sharedKey$3;
1221
1221
 
@@ -1247,7 +1247,7 @@ var NullProtoObjectViaIFrame = function () {
1247
1247
  var JS = 'java' + SCRIPT + ':';
1248
1248
  var iframeDocument;
1249
1249
  iframe.style.display = 'none';
1250
- html.appendChild(iframe);
1250
+ html$1.appendChild(iframe);
1251
1251
  // https://github.com/zloirock/core-js/issues/475
1252
1252
  iframe.src = String(JS);
1253
1253
  iframeDocument = iframe.contentWindow.document;
@@ -1285,7 +1285,7 @@ hiddenKeys[IE_PROTO$1] = true;
1285
1285
  var objectCreate = Object.create || function create(O, Properties) {
1286
1286
  var result;
1287
1287
  if (O !== null) {
1288
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1288
+ EmptyConstructor[PROTOTYPE] = anObject$7(O);
1289
1289
  result = new EmptyConstructor();
1290
1290
  EmptyConstructor[PROTOTYPE] = null;
1291
1291
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1294,17 +1294,17 @@ var objectCreate = Object.create || function create(O, Properties) {
1294
1294
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1295
1295
  };
1296
1296
 
1297
- var wellKnownSymbol$8 = wellKnownSymbol$c;
1297
+ var wellKnownSymbol$d = wellKnownSymbol$h;
1298
1298
  var create$2 = objectCreate;
1299
1299
  var defineProperty$3 = objectDefineProperty.f;
1300
1300
 
1301
- var UNSCOPABLES = wellKnownSymbol$8('unscopables');
1302
- var ArrayPrototype = Array.prototype;
1301
+ var UNSCOPABLES = wellKnownSymbol$d('unscopables');
1302
+ var ArrayPrototype$1 = Array.prototype;
1303
1303
 
1304
1304
  // Array.prototype[@@unscopables]
1305
1305
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1306
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1307
- defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1306
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1307
+ defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
1308
1308
  configurable: true,
1309
1309
  value: create$2(null)
1310
1310
  });
@@ -1312,22 +1312,22 @@ if (ArrayPrototype[UNSCOPABLES] === undefined) {
1312
1312
 
1313
1313
  // add a key to Array.prototype[@@unscopables]
1314
1314
  var addToUnscopables$2 = function (key) {
1315
- ArrayPrototype[UNSCOPABLES][key] = true;
1315
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
1316
1316
  };
1317
1317
 
1318
1318
  var iterators = {};
1319
1319
 
1320
- var fails$3 = fails$e;
1320
+ var fails$4 = fails$f;
1321
1321
 
1322
- var correctPrototypeGetter = !fails$3(function () {
1322
+ var correctPrototypeGetter = !fails$4(function () {
1323
1323
  function F() { /* empty */ }
1324
1324
  F.prototype.constructor = null;
1325
1325
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1326
1326
  return Object.getPrototypeOf(new F()) !== F.prototype;
1327
1327
  });
1328
1328
 
1329
- var hasOwn$2 = hasOwnProperty_1;
1330
- var isCallable$4 = isCallable$g;
1329
+ var hasOwn$3 = hasOwnProperty_1;
1330
+ var isCallable$8 = isCallable$k;
1331
1331
  var toObject$1 = toObject$4;
1332
1332
  var sharedKey = sharedKey$3;
1333
1333
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1341,21 +1341,21 @@ var ObjectPrototype = $Object.prototype;
1341
1341
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1342
1342
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1343
1343
  var object = toObject$1(O);
1344
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1344
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1345
1345
  var constructor = object.constructor;
1346
- if (isCallable$4(constructor) && object instanceof constructor) {
1346
+ if (isCallable$8(constructor) && object instanceof constructor) {
1347
1347
  return constructor.prototype;
1348
1348
  } return object instanceof $Object ? ObjectPrototype : null;
1349
1349
  };
1350
1350
 
1351
- var fails$2 = fails$e;
1352
- var isCallable$3 = isCallable$g;
1353
- var isObject$3 = isObject$9;
1351
+ var fails$3 = fails$f;
1352
+ var isCallable$7 = isCallable$k;
1353
+ var isObject$5 = isObject$b;
1354
1354
  var getPrototypeOf$1 = objectGetPrototypeOf;
1355
- var defineBuiltIn$3 = defineBuiltIn$6;
1356
- var wellKnownSymbol$7 = wellKnownSymbol$c;
1355
+ var defineBuiltIn$5 = defineBuiltIn$8;
1356
+ var wellKnownSymbol$c = wellKnownSymbol$h;
1357
1357
 
1358
- var ITERATOR$5 = wellKnownSymbol$7('iterator');
1358
+ var ITERATOR$7 = wellKnownSymbol$c('iterator');
1359
1359
  var BUGGY_SAFARI_ITERATORS$1 = false;
1360
1360
 
1361
1361
  // `%IteratorPrototype%` object
@@ -1373,18 +1373,18 @@ if ([].keys) {
1373
1373
  }
1374
1374
  }
1375
1375
 
1376
- var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$2(function () {
1376
+ var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$3(function () {
1377
1377
  var test = {};
1378
1378
  // FF44- legacy iterators case
1379
- return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1379
+ return IteratorPrototype$2[ITERATOR$7].call(test) !== test;
1380
1380
  });
1381
1381
 
1382
1382
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1383
1383
 
1384
1384
  // `%IteratorPrototype%[@@iterator]()` method
1385
1385
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1386
- if (!isCallable$3(IteratorPrototype$2[ITERATOR$5])) {
1387
- defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1386
+ if (!isCallable$7(IteratorPrototype$2[ITERATOR$7])) {
1387
+ defineBuiltIn$5(IteratorPrototype$2, ITERATOR$7, function () {
1388
1388
  return this;
1389
1389
  });
1390
1390
  }
@@ -1395,14 +1395,14 @@ var iteratorsCore = {
1395
1395
  };
1396
1396
 
1397
1397
  var defineProperty$2 = objectDefineProperty.f;
1398
- var hasOwn$1 = hasOwnProperty_1;
1399
- var wellKnownSymbol$6 = wellKnownSymbol$c;
1398
+ var hasOwn$2 = hasOwnProperty_1;
1399
+ var wellKnownSymbol$b = wellKnownSymbol$h;
1400
1400
 
1401
- var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
1401
+ var TO_STRING_TAG = wellKnownSymbol$b('toStringTag');
1402
1402
 
1403
- var setToStringTag$4 = function (target, TAG, STATIC) {
1403
+ var setToStringTag$5 = function (target, TAG, STATIC) {
1404
1404
  if (target && !STATIC) target = target.prototype;
1405
- if (target && !hasOwn$1(target, TO_STRING_TAG)) {
1405
+ if (target && !hasOwn$2(target, TO_STRING_TAG)) {
1406
1406
  defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1407
1407
  }
1408
1408
  };
@@ -1410,48 +1410,48 @@ var setToStringTag$4 = function (target, TAG, STATIC) {
1410
1410
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1411
1411
  var create$1 = objectCreate;
1412
1412
  var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1413
- var setToStringTag$3 = setToStringTag$4;
1414
- var Iterators$3 = iterators;
1413
+ var setToStringTag$4 = setToStringTag$5;
1414
+ var Iterators$4 = iterators;
1415
1415
 
1416
1416
  var returnThis$1 = function () { return this; };
1417
1417
 
1418
1418
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1419
1419
  var TO_STRING_TAG = NAME + ' Iterator';
1420
1420
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1421
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1422
- Iterators$3[TO_STRING_TAG] = returnThis$1;
1421
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
1422
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1423
1423
  return IteratorConstructor;
1424
1424
  };
1425
1425
 
1426
1426
  var uncurryThis$5 = functionUncurryThis;
1427
- var aCallable$3 = aCallable$5;
1427
+ var aCallable$7 = aCallable$9;
1428
1428
 
1429
1429
  var functionUncurryThisAccessor = function (object, key, method) {
1430
1430
  try {
1431
1431
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1432
- return uncurryThis$5(aCallable$3(Object.getOwnPropertyDescriptor(object, key)[method]));
1432
+ return uncurryThis$5(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1433
1433
  } catch (error) { /* empty */ }
1434
1434
  };
1435
1435
 
1436
- var isObject$2 = isObject$9;
1436
+ var isObject$4 = isObject$b;
1437
1437
 
1438
1438
  var isPossiblePrototype$1 = function (argument) {
1439
- return isObject$2(argument) || argument === null;
1439
+ return isObject$4(argument) || argument === null;
1440
1440
  };
1441
1441
 
1442
1442
  var isPossiblePrototype = isPossiblePrototype$1;
1443
1443
 
1444
1444
  var $String = String;
1445
- var $TypeError$4 = TypeError;
1445
+ var $TypeError$7 = TypeError;
1446
1446
 
1447
1447
  var aPossiblePrototype$1 = function (argument) {
1448
1448
  if (isPossiblePrototype(argument)) return argument;
1449
- throw new $TypeError$4("Can't set " + $String(argument) + ' as a prototype');
1449
+ throw new $TypeError$7("Can't set " + $String(argument) + ' as a prototype');
1450
1450
  };
1451
1451
 
1452
1452
  /* eslint-disable no-proto -- safe */
1453
1453
  var uncurryThisAccessor = functionUncurryThisAccessor;
1454
- var anObject$2 = anObject$9;
1454
+ var anObject$6 = anObject$d;
1455
1455
  var aPossiblePrototype = aPossiblePrototype$1;
1456
1456
 
1457
1457
  // `Object.setPrototypeOf` method
@@ -1468,7 +1468,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1468
1468
  CORRECT_SETTER = test instanceof Array;
1469
1469
  } catch (error) { /* empty */ }
1470
1470
  return function setPrototypeOf(O, proto) {
1471
- anObject$2(O);
1471
+ anObject$6(O);
1472
1472
  aPossiblePrototype(proto);
1473
1473
  if (CORRECT_SETTER) setter(O, proto);
1474
1474
  else O.__proto__ = proto;
@@ -1476,25 +1476,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1476
1476
  };
1477
1477
  }() : undefined);
1478
1478
 
1479
- var $$2 = _export;
1480
- var call$2 = functionCall;
1479
+ var $$8 = _export;
1480
+ var call$8 = functionCall;
1481
1481
  var FunctionName = functionName;
1482
- var isCallable$2 = isCallable$g;
1482
+ var isCallable$6 = isCallable$k;
1483
1483
  var createIteratorConstructor$1 = iteratorCreateConstructor;
1484
1484
  var getPrototypeOf = objectGetPrototypeOf;
1485
- var setPrototypeOf = objectSetPrototypeOf;
1486
- var setToStringTag$2 = setToStringTag$4;
1485
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1486
+ var setToStringTag$3 = setToStringTag$5;
1487
1487
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1488
- var defineBuiltIn$2 = defineBuiltIn$6;
1489
- var wellKnownSymbol$5 = wellKnownSymbol$c;
1490
- var Iterators$2 = iterators;
1488
+ var defineBuiltIn$4 = defineBuiltIn$8;
1489
+ var wellKnownSymbol$a = wellKnownSymbol$h;
1490
+ var Iterators$3 = iterators;
1491
1491
  var IteratorsCore = iteratorsCore;
1492
1492
 
1493
1493
  var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1494
1494
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1495
1495
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1496
1496
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1497
- var ITERATOR$4 = wellKnownSymbol$5('iterator');
1497
+ var ITERATOR$6 = wellKnownSymbol$a('iterator');
1498
1498
  var KEYS = 'keys';
1499
1499
  var VALUES = 'values';
1500
1500
  var ENTRIES = 'entries';
@@ -1520,7 +1520,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1520
1520
  var TO_STRING_TAG = NAME + ' Iterator';
1521
1521
  var INCORRECT_VALUES_NAME = false;
1522
1522
  var IterablePrototype = Iterable.prototype;
1523
- var nativeIterator = IterablePrototype[ITERATOR$4]
1523
+ var nativeIterator = IterablePrototype[ITERATOR$6]
1524
1524
  || IterablePrototype['@@iterator']
1525
1525
  || DEFAULT && IterablePrototype[DEFAULT];
1526
1526
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -1532,14 +1532,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1532
1532
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1533
1533
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1534
1534
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1535
- if (setPrototypeOf) {
1536
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1537
- } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
1538
- defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1535
+ if (setPrototypeOf$1) {
1536
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1537
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$6])) {
1538
+ defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$6, returnThis);
1539
1539
  }
1540
1540
  }
1541
1541
  // Set @@toStringTag to native iterators
1542
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1542
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
1543
1543
  }
1544
1544
  }
1545
1545
 
@@ -1549,7 +1549,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1549
1549
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1550
1550
  } else {
1551
1551
  INCORRECT_VALUES_NAME = true;
1552
- defaultIterator = function values() { return call$2(nativeIterator, this); };
1552
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
1553
1553
  }
1554
1554
  }
1555
1555
 
@@ -1562,16 +1562,16 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1562
1562
  };
1563
1563
  if (FORCED) for (KEY in methods) {
1564
1564
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1565
- defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1565
+ defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
1566
1566
  }
1567
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1567
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1568
1568
  }
1569
1569
 
1570
1570
  // define iterator
1571
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1572
- defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1571
+ if (IterablePrototype[ITERATOR$6] !== defaultIterator) {
1572
+ defineBuiltIn$4(IterablePrototype, ITERATOR$6, defaultIterator, { name: DEFAULT });
1573
1573
  }
1574
- Iterators$2[NAME] = defaultIterator;
1574
+ Iterators$3[NAME] = defaultIterator;
1575
1575
 
1576
1576
  return methods;
1577
1577
  };
@@ -1584,16 +1584,16 @@ var createIterResultObject$2 = function (value, done) {
1584
1584
 
1585
1585
  var toIndexedObject = toIndexedObject$5;
1586
1586
  var addToUnscopables$1 = addToUnscopables$2;
1587
- var Iterators$1 = iterators;
1588
- var InternalStateModule$1 = internalState;
1587
+ var Iterators$2 = iterators;
1588
+ var InternalStateModule$2 = internalState;
1589
1589
  var defineProperty$1 = objectDefineProperty.f;
1590
1590
  var defineIterator = iteratorDefine;
1591
1591
  var createIterResultObject$1 = createIterResultObject$2;
1592
- var DESCRIPTORS$3 = descriptors;
1592
+ var DESCRIPTORS$4 = descriptors;
1593
1593
 
1594
1594
  var ARRAY_ITERATOR = 'Array Iterator';
1595
- var setInternalState$1 = InternalStateModule$1.set;
1596
- var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1595
+ var setInternalState$2 = InternalStateModule$2.set;
1596
+ var getInternalState = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
1597
1597
 
1598
1598
  // `Array.prototype.entries` method
1599
1599
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1606,7 +1606,7 @@ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1606
1606
  // `CreateArrayIterator` internal method
1607
1607
  // https://tc39.es/ecma262/#sec-createarrayiterator
1608
1608
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1609
- setInternalState$1(this, {
1609
+ setInternalState$2(this, {
1610
1610
  type: ARRAY_ITERATOR,
1611
1611
  target: toIndexedObject(iterated), // target
1612
1612
  index: 0, // next index
@@ -1631,7 +1631,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1631
1631
  // argumentsList[@@iterator] is %ArrayProto_values%
1632
1632
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1633
1633
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1634
- var values = Iterators$1.Arguments = Iterators$1.Array;
1634
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1635
1635
 
1636
1636
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1637
1637
  addToUnscopables$1('keys');
@@ -1639,7 +1639,7 @@ addToUnscopables$1('values');
1639
1639
  addToUnscopables$1('entries');
1640
1640
 
1641
1641
  // V8 ~ Chrome 45- bug
1642
- if (DESCRIPTORS$3 && values.name !== 'values') try {
1642
+ if (DESCRIPTORS$4 && values.name !== 'values') try {
1643
1643
  defineProperty$1(values, 'name', { value: 'values' });
1644
1644
  } catch (error) { /* empty */ }
1645
1645
 
@@ -1687,26 +1687,26 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1687
1687
 
1688
1688
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1689
1689
 
1690
- var global$3 = global$e;
1690
+ var global$9 = global$k;
1691
1691
  var DOMIterables = domIterables;
1692
1692
  var DOMTokenListPrototype = domTokenListPrototype;
1693
1693
  var ArrayIteratorMethods = es_array_iterator;
1694
1694
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1695
- var setToStringTag$1 = setToStringTag$4;
1696
- var wellKnownSymbol$4 = wellKnownSymbol$c;
1695
+ var setToStringTag$2 = setToStringTag$5;
1696
+ var wellKnownSymbol$9 = wellKnownSymbol$h;
1697
1697
 
1698
- var ITERATOR$3 = wellKnownSymbol$4('iterator');
1698
+ var ITERATOR$5 = wellKnownSymbol$9('iterator');
1699
1699
  var ArrayValues = ArrayIteratorMethods.values;
1700
1700
 
1701
1701
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1702
1702
  if (CollectionPrototype) {
1703
1703
  // some Chrome versions have non-configurable methods on DOMTokenList
1704
- if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1705
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
1704
+ if (CollectionPrototype[ITERATOR$5] !== ArrayValues) try {
1705
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$5, ArrayValues);
1706
1706
  } catch (error) {
1707
- CollectionPrototype[ITERATOR$3] = ArrayValues;
1707
+ CollectionPrototype[ITERATOR$5] = ArrayValues;
1708
1708
  }
1709
- setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
1709
+ setToStringTag$2(CollectionPrototype, COLLECTION_NAME, true);
1710
1710
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1711
1711
  // some Chrome versions have non-configurable methods on DOMTokenList
1712
1712
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
@@ -1719,32 +1719,32 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1719
1719
  };
1720
1720
 
1721
1721
  for (var COLLECTION_NAME in DOMIterables) {
1722
- handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
1722
+ handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
1723
1723
  }
1724
1724
 
1725
1725
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1726
1726
 
1727
- var global$2 = global$e;
1728
- var DESCRIPTORS$2 = descriptors;
1727
+ var global$8 = global$k;
1728
+ var DESCRIPTORS$3 = descriptors;
1729
1729
 
1730
1730
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1731
1731
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1732
1732
 
1733
1733
  // Avoid NodeJS experimental warning
1734
- var safeGetBuiltIn$1 = function (name) {
1735
- if (!DESCRIPTORS$2) return global$2[name];
1736
- var descriptor = getOwnPropertyDescriptor(global$2, name);
1734
+ var safeGetBuiltIn$2 = function (name) {
1735
+ if (!DESCRIPTORS$3) return global$8[name];
1736
+ var descriptor = getOwnPropertyDescriptor(global$8, name);
1737
1737
  return descriptor && descriptor.value;
1738
1738
  };
1739
1739
 
1740
- var fails$1 = fails$e;
1741
- var wellKnownSymbol$3 = wellKnownSymbol$c;
1742
- var DESCRIPTORS$1 = descriptors;
1740
+ var fails$2 = fails$f;
1741
+ var wellKnownSymbol$8 = wellKnownSymbol$h;
1742
+ var DESCRIPTORS$2 = descriptors;
1743
1743
  var IS_PURE = isPure;
1744
1744
 
1745
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1745
+ var ITERATOR$4 = wellKnownSymbol$8('iterator');
1746
1746
 
1747
- var urlConstructorDetection = !fails$1(function () {
1747
+ var urlConstructorDetection = !fails$2(function () {
1748
1748
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
1749
1749
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
1750
1750
  var params = url.searchParams;
@@ -1760,12 +1760,12 @@ var urlConstructorDetection = !fails$1(function () {
1760
1760
  // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1761
1761
  params2['delete']('b', undefined);
1762
1762
  return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
1763
- || (!params.size && (IS_PURE || !DESCRIPTORS$1))
1763
+ || (!params.size && (IS_PURE || !DESCRIPTORS$2))
1764
1764
  || !params.sort
1765
1765
  || url.href !== 'http://a/c%20d?a=1&c=3'
1766
1766
  || params.get('c') !== '3'
1767
1767
  || String(new URLSearchParams('?a=1')) !== 'a=1'
1768
- || !params[ITERATOR$2]
1768
+ || !params[ITERATOR$4]
1769
1769
  // throws in Edge
1770
1770
  || new URL('https://a@b').username !== 'a'
1771
1771
  || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
@@ -1782,26 +1782,26 @@ var urlConstructorDetection = !fails$1(function () {
1782
1782
  var makeBuiltIn = makeBuiltIn$3.exports;
1783
1783
  var defineProperty = objectDefineProperty;
1784
1784
 
1785
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1785
+ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
1786
1786
  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1787
1787
  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1788
1788
  return defineProperty.f(target, name, descriptor);
1789
1789
  };
1790
1790
 
1791
- var defineBuiltIn$1 = defineBuiltIn$6;
1791
+ var defineBuiltIn$3 = defineBuiltIn$8;
1792
1792
 
1793
1793
  var defineBuiltIns$1 = function (target, src, options) {
1794
- for (var key in src) defineBuiltIn$1(target, key, src[key], options);
1794
+ for (var key in src) defineBuiltIn$3(target, key, src[key], options);
1795
1795
  return target;
1796
1796
  };
1797
1797
 
1798
- var isPrototypeOf = objectIsPrototypeOf;
1798
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1799
1799
 
1800
- var $TypeError$3 = TypeError;
1800
+ var $TypeError$6 = TypeError;
1801
1801
 
1802
- var anInstance$1 = function (it, Prototype) {
1803
- if (isPrototypeOf(Prototype, it)) return it;
1804
- throw new $TypeError$3('Incorrect invocation');
1802
+ var anInstance$2 = function (it, Prototype) {
1803
+ if (isPrototypeOf$1(Prototype, it)) return it;
1804
+ throw new $TypeError$6('Incorrect invocation');
1805
1805
  };
1806
1806
 
1807
1807
  var classofRaw = classofRaw$2;
@@ -1815,59 +1815,59 @@ var functionUncurryThisClause = function (fn) {
1815
1815
  };
1816
1816
 
1817
1817
  var uncurryThis$3 = functionUncurryThisClause;
1818
- var aCallable$2 = aCallable$5;
1819
- var NATIVE_BIND = functionBindNative;
1818
+ var aCallable$6 = aCallable$9;
1819
+ var NATIVE_BIND$1 = functionBindNative;
1820
1820
 
1821
- var bind$2 = uncurryThis$3(uncurryThis$3.bind);
1821
+ var bind$6 = uncurryThis$3(uncurryThis$3.bind);
1822
1822
 
1823
1823
  // optional / simple context binding
1824
1824
  var functionBindContext = function (fn, that) {
1825
- aCallable$2(fn);
1826
- return that === undefined ? fn : NATIVE_BIND ? bind$2(fn, that) : function (/* ...args */) {
1825
+ aCallable$6(fn);
1826
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$6(fn, that) : function (/* ...args */) {
1827
1827
  return fn.apply(that, arguments);
1828
1828
  };
1829
1829
  };
1830
1830
 
1831
- var classof$3 = classof$6;
1832
- var getMethod = getMethod$2;
1833
- var isNullOrUndefined = isNullOrUndefined$3;
1834
- var Iterators = iterators;
1835
- var wellKnownSymbol$2 = wellKnownSymbol$c;
1831
+ var classof$4 = classof$7;
1832
+ var getMethod$1 = getMethod$3;
1833
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1834
+ var Iterators$1 = iterators;
1835
+ var wellKnownSymbol$7 = wellKnownSymbol$h;
1836
1836
 
1837
- var ITERATOR$1 = wellKnownSymbol$2('iterator');
1837
+ var ITERATOR$3 = wellKnownSymbol$7('iterator');
1838
1838
 
1839
- var getIteratorMethod$2 = function (it) {
1840
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
1841
- || getMethod(it, '@@iterator')
1842
- || Iterators[classof$3(it)];
1839
+ var getIteratorMethod$3 = function (it) {
1840
+ if (!isNullOrUndefined$1(it)) return getMethod$1(it, ITERATOR$3)
1841
+ || getMethod$1(it, '@@iterator')
1842
+ || Iterators$1[classof$4(it)];
1843
1843
  };
1844
1844
 
1845
- var call$1 = functionCall;
1846
- var aCallable$1 = aCallable$5;
1847
- var anObject$1 = anObject$9;
1848
- var tryToString = tryToString$2;
1849
- var getIteratorMethod$1 = getIteratorMethod$2;
1845
+ var call$7 = functionCall;
1846
+ var aCallable$5 = aCallable$9;
1847
+ var anObject$5 = anObject$d;
1848
+ var tryToString$2 = tryToString$4;
1849
+ var getIteratorMethod$2 = getIteratorMethod$3;
1850
1850
 
1851
- var $TypeError$2 = TypeError;
1851
+ var $TypeError$5 = TypeError;
1852
1852
 
1853
- var getIterator$1 = function (argument, usingIterator) {
1854
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1855
- if (aCallable$1(iteratorMethod)) return anObject$1(call$1(iteratorMethod, argument));
1856
- throw new $TypeError$2(tryToString(argument) + ' is not iterable');
1853
+ var getIterator$2 = function (argument, usingIterator) {
1854
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
1855
+ if (aCallable$5(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument));
1856
+ throw new $TypeError$5(tryToString$2(argument) + ' is not iterable');
1857
1857
  };
1858
1858
 
1859
- var $TypeError$1 = TypeError;
1859
+ var $TypeError$4 = TypeError;
1860
1860
 
1861
- var validateArgumentsLength$1 = function (passed, required) {
1862
- if (passed < required) throw new $TypeError$1('Not enough arguments');
1861
+ var validateArgumentsLength$2 = function (passed, required) {
1862
+ if (passed < required) throw new $TypeError$4('Not enough arguments');
1863
1863
  return passed;
1864
1864
  };
1865
1865
 
1866
1866
  var uncurryThis$2 = functionUncurryThis;
1867
1867
 
1868
- var arraySlice$1 = uncurryThis$2([].slice);
1868
+ var arraySlice$2 = uncurryThis$2([].slice);
1869
1869
 
1870
- var arraySlice = arraySlice$1;
1870
+ var arraySlice$1 = arraySlice$2;
1871
1871
 
1872
1872
  var floor = Math.floor;
1873
1873
 
@@ -1890,8 +1890,8 @@ var sort = function (array, comparefn) {
1890
1890
  } else {
1891
1891
  // merge sort
1892
1892
  var middle = floor(length / 2);
1893
- var left = sort(arraySlice(array, 0, middle), comparefn);
1894
- var right = sort(arraySlice(array, middle), comparefn);
1893
+ var left = sort(arraySlice$1(array, 0, middle), comparefn);
1894
+ var right = sort(arraySlice$1(array, middle), comparefn);
1895
1895
  var llength = left.length;
1896
1896
  var rlength = right.length;
1897
1897
  var lindex = 0;
@@ -1911,52 +1911,52 @@ var arraySort$1 = sort;
1911
1911
 
1912
1912
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
1913
1913
 
1914
- var $$1 = _export;
1915
- var global$1 = global$e;
1916
- var safeGetBuiltIn = safeGetBuiltIn$1;
1917
- var call = functionCall;
1914
+ var $$7 = _export;
1915
+ var global$7 = global$k;
1916
+ var safeGetBuiltIn$1 = safeGetBuiltIn$2;
1917
+ var call$6 = functionCall;
1918
1918
  var uncurryThis$1 = functionUncurryThis;
1919
- var DESCRIPTORS = descriptors;
1919
+ var DESCRIPTORS$1 = descriptors;
1920
1920
  var USE_NATIVE_URL = urlConstructorDetection;
1921
- var defineBuiltIn = defineBuiltIn$6;
1922
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1921
+ var defineBuiltIn$2 = defineBuiltIn$8;
1922
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
1923
1923
  var defineBuiltIns = defineBuiltIns$1;
1924
- var setToStringTag = setToStringTag$4;
1924
+ var setToStringTag$1 = setToStringTag$5;
1925
1925
  var createIteratorConstructor = iteratorCreateConstructor;
1926
- var InternalStateModule = internalState;
1927
- var anInstance = anInstance$1;
1928
- var isCallable$1 = isCallable$g;
1929
- var hasOwn = hasOwnProperty_1;
1930
- var bind$1 = functionBindContext;
1931
- var classof$2 = classof$6;
1932
- var anObject = anObject$9;
1933
- var isObject$1 = isObject$9;
1926
+ var InternalStateModule$1 = internalState;
1927
+ var anInstance$1 = anInstance$2;
1928
+ var isCallable$5 = isCallable$k;
1929
+ var hasOwn$1 = hasOwnProperty_1;
1930
+ var bind$5 = functionBindContext;
1931
+ var classof$3 = classof$7;
1932
+ var anObject$4 = anObject$d;
1933
+ var isObject$3 = isObject$b;
1934
1934
  var $toString = toString;
1935
1935
  var create = objectCreate;
1936
1936
  var createPropertyDescriptor = createPropertyDescriptor$4;
1937
- var getIterator = getIterator$1;
1938
- var getIteratorMethod = getIteratorMethod$2;
1937
+ var getIterator$1 = getIterator$2;
1938
+ var getIteratorMethod$1 = getIteratorMethod$3;
1939
1939
  var createIterResultObject = createIterResultObject$2;
1940
- var validateArgumentsLength = validateArgumentsLength$1;
1941
- var wellKnownSymbol$1 = wellKnownSymbol$c;
1940
+ var validateArgumentsLength$1 = validateArgumentsLength$2;
1941
+ var wellKnownSymbol$6 = wellKnownSymbol$h;
1942
1942
  var arraySort = arraySort$1;
1943
1943
 
1944
- var ITERATOR = wellKnownSymbol$1('iterator');
1944
+ var ITERATOR$2 = wellKnownSymbol$6('iterator');
1945
1945
  var URL_SEARCH_PARAMS = 'URLSearchParams';
1946
1946
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
1947
- var setInternalState = InternalStateModule.set;
1948
- var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
1949
- var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
1947
+ var setInternalState$1 = InternalStateModule$1.set;
1948
+ var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
1949
+ var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
1950
1950
 
1951
- var nativeFetch = safeGetBuiltIn('fetch');
1952
- var NativeRequest = safeGetBuiltIn('Request');
1953
- var Headers = safeGetBuiltIn('Headers');
1951
+ var nativeFetch = safeGetBuiltIn$1('fetch');
1952
+ var NativeRequest = safeGetBuiltIn$1('Request');
1953
+ var Headers = safeGetBuiltIn$1('Headers');
1954
1954
  var RequestPrototype = NativeRequest && NativeRequest.prototype;
1955
1955
  var HeadersPrototype = Headers && Headers.prototype;
1956
- var RegExp$1 = global$1.RegExp;
1957
- var TypeError$1 = global$1.TypeError;
1958
- var decodeURIComponent = global$1.decodeURIComponent;
1959
- var encodeURIComponent = global$1.encodeURIComponent;
1956
+ var RegExp$1 = global$7.RegExp;
1957
+ var TypeError$2 = global$7.TypeError;
1958
+ var decodeURIComponent = global$7.decodeURIComponent;
1959
+ var encodeURIComponent = global$7.encodeURIComponent;
1960
1960
  var charAt = uncurryThis$1(''.charAt);
1961
1961
  var join = uncurryThis$1([].join);
1962
1962
  var push = uncurryThis$1([].push);
@@ -2014,7 +2014,7 @@ var serialize = function (it) {
2014
2014
  };
2015
2015
 
2016
2016
  var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
2017
- setInternalState(this, {
2017
+ setInternalState$1(this, {
2018
2018
  type: URL_SEARCH_PARAMS_ITERATOR,
2019
2019
  target: getInternalParamsState(params).entries,
2020
2020
  index: 0,
@@ -2040,7 +2040,7 @@ var URLSearchParamsState = function (init) {
2040
2040
  this.url = null;
2041
2041
 
2042
2042
  if (init !== undefined) {
2043
- if (isObject$1(init)) this.parseObject(init);
2043
+ if (isObject$3(init)) this.parseObject(init);
2044
2044
  else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
2045
2045
  }
2046
2046
  };
@@ -2053,23 +2053,23 @@ URLSearchParamsState.prototype = {
2053
2053
  },
2054
2054
  parseObject: function (object) {
2055
2055
  var entries = this.entries;
2056
- var iteratorMethod = getIteratorMethod(object);
2056
+ var iteratorMethod = getIteratorMethod$1(object);
2057
2057
  var iterator, next, step, entryIterator, entryNext, first, second;
2058
2058
 
2059
2059
  if (iteratorMethod) {
2060
- iterator = getIterator(object, iteratorMethod);
2060
+ iterator = getIterator$1(object, iteratorMethod);
2061
2061
  next = iterator.next;
2062
- while (!(step = call(next, iterator)).done) {
2063
- entryIterator = getIterator(anObject(step.value));
2062
+ while (!(step = call$6(next, iterator)).done) {
2063
+ entryIterator = getIterator$1(anObject$4(step.value));
2064
2064
  entryNext = entryIterator.next;
2065
2065
  if (
2066
- (first = call(entryNext, entryIterator)).done ||
2067
- (second = call(entryNext, entryIterator)).done ||
2068
- !call(entryNext, entryIterator).done
2069
- ) throw new TypeError$1('Expected sequence with length 2');
2066
+ (first = call$6(entryNext, entryIterator)).done ||
2067
+ (second = call$6(entryNext, entryIterator)).done ||
2068
+ !call$6(entryNext, entryIterator).done
2069
+ ) throw new TypeError$2('Expected sequence with length 2');
2070
2070
  push(entries, { key: $toString(first.value), value: $toString(second.value) });
2071
2071
  }
2072
- } else for (var key in object) if (hasOwn(object, key)) {
2072
+ } else for (var key in object) if (hasOwn$1(object, key)) {
2073
2073
  push(entries, { key: key, value: $toString(object[key]) });
2074
2074
  }
2075
2075
  },
@@ -2113,10 +2113,10 @@ URLSearchParamsState.prototype = {
2113
2113
  // `URLSearchParams` constructor
2114
2114
  // https://url.spec.whatwg.org/#interface-urlsearchparams
2115
2115
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
2116
- anInstance(this, URLSearchParamsPrototype);
2116
+ anInstance$1(this, URLSearchParamsPrototype);
2117
2117
  var init = arguments.length > 0 ? arguments[0] : undefined;
2118
- var state = setInternalState(this, new URLSearchParamsState(init));
2119
- if (!DESCRIPTORS) this.size = state.entries.length;
2118
+ var state = setInternalState$1(this, new URLSearchParamsState(init));
2119
+ if (!DESCRIPTORS$1) this.size = state.entries.length;
2120
2120
  };
2121
2121
 
2122
2122
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
@@ -2126,16 +2126,16 @@ defineBuiltIns(URLSearchParamsPrototype, {
2126
2126
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
2127
2127
  append: function append(name, value) {
2128
2128
  var state = getInternalParamsState(this);
2129
- validateArgumentsLength(arguments.length, 2);
2129
+ validateArgumentsLength$1(arguments.length, 2);
2130
2130
  push(state.entries, { key: $toString(name), value: $toString(value) });
2131
- if (!DESCRIPTORS) this.length++;
2131
+ if (!DESCRIPTORS$1) this.length++;
2132
2132
  state.updateURL();
2133
2133
  },
2134
2134
  // `URLSearchParams.prototype.delete` method
2135
2135
  // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
2136
2136
  'delete': function (name /* , value */) {
2137
2137
  var state = getInternalParamsState(this);
2138
- var length = validateArgumentsLength(arguments.length, 1);
2138
+ var length = validateArgumentsLength$1(arguments.length, 1);
2139
2139
  var entries = state.entries;
2140
2140
  var key = $toString(name);
2141
2141
  var $value = length < 2 ? undefined : arguments[1];
@@ -2148,14 +2148,14 @@ defineBuiltIns(URLSearchParamsPrototype, {
2148
2148
  if (value !== undefined) break;
2149
2149
  } else index++;
2150
2150
  }
2151
- if (!DESCRIPTORS) this.size = entries.length;
2151
+ if (!DESCRIPTORS$1) this.size = entries.length;
2152
2152
  state.updateURL();
2153
2153
  },
2154
2154
  // `URLSearchParams.prototype.get` method
2155
2155
  // https://url.spec.whatwg.org/#dom-urlsearchparams-get
2156
2156
  get: function get(name) {
2157
2157
  var entries = getInternalParamsState(this).entries;
2158
- validateArgumentsLength(arguments.length, 1);
2158
+ validateArgumentsLength$1(arguments.length, 1);
2159
2159
  var key = $toString(name);
2160
2160
  var index = 0;
2161
2161
  for (; index < entries.length; index++) {
@@ -2167,7 +2167,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
2167
2167
  // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
2168
2168
  getAll: function getAll(name) {
2169
2169
  var entries = getInternalParamsState(this).entries;
2170
- validateArgumentsLength(arguments.length, 1);
2170
+ validateArgumentsLength$1(arguments.length, 1);
2171
2171
  var key = $toString(name);
2172
2172
  var result = [];
2173
2173
  var index = 0;
@@ -2180,7 +2180,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
2180
2180
  // https://url.spec.whatwg.org/#dom-urlsearchparams-has
2181
2181
  has: function has(name /* , value */) {
2182
2182
  var entries = getInternalParamsState(this).entries;
2183
- var length = validateArgumentsLength(arguments.length, 1);
2183
+ var length = validateArgumentsLength$1(arguments.length, 1);
2184
2184
  var key = $toString(name);
2185
2185
  var $value = length < 2 ? undefined : arguments[1];
2186
2186
  var value = $value === undefined ? $value : $toString($value);
@@ -2195,7 +2195,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
2195
2195
  // https://url.spec.whatwg.org/#dom-urlsearchparams-set
2196
2196
  set: function set(name, value) {
2197
2197
  var state = getInternalParamsState(this);
2198
- validateArgumentsLength(arguments.length, 1);
2198
+ validateArgumentsLength$1(arguments.length, 1);
2199
2199
  var entries = state.entries;
2200
2200
  var found = false;
2201
2201
  var key = $toString(name);
@@ -2213,7 +2213,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
2213
2213
  }
2214
2214
  }
2215
2215
  if (!found) push(entries, { key: key, value: val });
2216
- if (!DESCRIPTORS) this.size = entries.length;
2216
+ if (!DESCRIPTORS$1) this.size = entries.length;
2217
2217
  state.updateURL();
2218
2218
  },
2219
2219
  // `URLSearchParams.prototype.sort` method
@@ -2228,7 +2228,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
2228
2228
  // `URLSearchParams.prototype.forEach` method
2229
2229
  forEach: function forEach(callback /* , thisArg */) {
2230
2230
  var entries = getInternalParamsState(this).entries;
2231
- var boundFunction = bind$1(callback, arguments.length > 1 ? arguments[1] : undefined);
2231
+ var boundFunction = bind$5(callback, arguments.length > 1 ? arguments[1] : undefined);
2232
2232
  var index = 0;
2233
2233
  var entry;
2234
2234
  while (index < entries.length) {
@@ -2251,17 +2251,17 @@ defineBuiltIns(URLSearchParamsPrototype, {
2251
2251
  }, { enumerable: true });
2252
2252
 
2253
2253
  // `URLSearchParams.prototype[@@iterator]` method
2254
- defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
2254
+ defineBuiltIn$2(URLSearchParamsPrototype, ITERATOR$2, URLSearchParamsPrototype.entries, { name: 'entries' });
2255
2255
 
2256
2256
  // `URLSearchParams.prototype.toString` method
2257
2257
  // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
2258
- defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
2258
+ defineBuiltIn$2(URLSearchParamsPrototype, 'toString', function toString() {
2259
2259
  return getInternalParamsState(this).serialize();
2260
2260
  }, { enumerable: true });
2261
2261
 
2262
2262
  // `URLSearchParams.prototype.size` getter
2263
2263
  // https://github.com/whatwg/url/pull/734
2264
- if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
2264
+ if (DESCRIPTORS$1) defineBuiltInAccessor$1(URLSearchParamsPrototype, 'size', {
2265
2265
  get: function size() {
2266
2266
  return getInternalParamsState(this).entries.length;
2267
2267
  },
@@ -2269,22 +2269,22 @@ if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
2269
2269
  enumerable: true
2270
2270
  });
2271
2271
 
2272
- setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
2272
+ setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
2273
2273
 
2274
- $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
2274
+ $$7({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
2275
2275
  URLSearchParams: URLSearchParamsConstructor
2276
2276
  });
2277
2277
 
2278
2278
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
2279
- if (!USE_NATIVE_URL && isCallable$1(Headers)) {
2279
+ if (!USE_NATIVE_URL && isCallable$5(Headers)) {
2280
2280
  var headersHas = uncurryThis$1(HeadersPrototype.has);
2281
2281
  var headersSet = uncurryThis$1(HeadersPrototype.set);
2282
2282
 
2283
2283
  var wrapRequestOptions = function (init) {
2284
- if (isObject$1(init)) {
2284
+ if (isObject$3(init)) {
2285
2285
  var body = init.body;
2286
2286
  var headers;
2287
- if (classof$2(body) === URL_SEARCH_PARAMS) {
2287
+ if (classof$3(body) === URL_SEARCH_PARAMS) {
2288
2288
  headers = init.headers ? new Headers(init.headers) : new Headers();
2289
2289
  if (!headersHas(headers, 'content-type')) {
2290
2290
  headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
@@ -2297,57 +2297,57 @@ if (!USE_NATIVE_URL && isCallable$1(Headers)) {
2297
2297
  } return init;
2298
2298
  };
2299
2299
 
2300
- if (isCallable$1(nativeFetch)) {
2301
- $$1({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
2300
+ if (isCallable$5(nativeFetch)) {
2301
+ $$7({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
2302
2302
  fetch: function fetch(input /* , init */) {
2303
2303
  return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2304
2304
  }
2305
2305
  });
2306
2306
  }
2307
2307
 
2308
- if (isCallable$1(NativeRequest)) {
2308
+ if (isCallable$5(NativeRequest)) {
2309
2309
  var RequestConstructor = function Request(input /* , init */) {
2310
- anInstance(this, RequestPrototype);
2310
+ anInstance$1(this, RequestPrototype);
2311
2311
  return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2312
2312
  };
2313
2313
 
2314
2314
  RequestPrototype.constructor = RequestConstructor;
2315
2315
  RequestConstructor.prototype = RequestPrototype;
2316
2316
 
2317
- $$1({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
2317
+ $$7({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
2318
2318
  Request: RequestConstructor
2319
2319
  });
2320
2320
  }
2321
2321
  }
2322
2322
 
2323
- var classof$1 = classofRaw$2;
2323
+ var classof$2 = classofRaw$2;
2324
2324
 
2325
2325
  // `IsArray` abstract operation
2326
2326
  // https://tc39.es/ecma262/#sec-isarray
2327
2327
  // eslint-disable-next-line es/no-array-isarray -- safe
2328
2328
  var isArray$2 = Array.isArray || function isArray(argument) {
2329
- return classof$1(argument) === 'Array';
2329
+ return classof$2(argument) === 'Array';
2330
2330
  };
2331
2331
 
2332
- var $TypeError = TypeError;
2332
+ var $TypeError$3 = TypeError;
2333
2333
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2334
2334
 
2335
2335
  var doesNotExceedSafeInteger$1 = function (it) {
2336
- if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2336
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$3('Maximum allowed index exceeded');
2337
2337
  return it;
2338
2338
  };
2339
2339
 
2340
2340
  var isArray$1 = isArray$2;
2341
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
2341
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2342
2342
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2343
- var bind = functionBindContext;
2343
+ var bind$4 = functionBindContext;
2344
2344
 
2345
2345
  // `FlattenIntoArray` abstract operation
2346
2346
  // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
2347
2347
  var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
2348
2348
  var targetIndex = start;
2349
2349
  var sourceIndex = 0;
2350
- var mapFn = mapper ? bind(mapper, thisArg) : false;
2350
+ var mapFn = mapper ? bind$4(mapper, thisArg) : false;
2351
2351
  var element, elementLen;
2352
2352
 
2353
2353
  while (sourceIndex < sourceLen) {
@@ -2355,7 +2355,7 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
2355
2355
  element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
2356
2356
 
2357
2357
  if (depth > 0 && isArray$1(element)) {
2358
- elementLen = lengthOfArrayLike$1(element);
2358
+ elementLen = lengthOfArrayLike$2(element);
2359
2359
  targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
2360
2360
  } else {
2361
2361
  doesNotExceedSafeInteger(targetIndex + 1);
@@ -2372,20 +2372,20 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
2372
2372
  var flattenIntoArray_1 = flattenIntoArray$1;
2373
2373
 
2374
2374
  var uncurryThis = functionUncurryThis;
2375
- var fails = fails$e;
2376
- var isCallable = isCallable$g;
2377
- var classof = classof$6;
2378
- var getBuiltIn = getBuiltIn$4;
2379
- var inspectSource = inspectSource$2;
2375
+ var fails$1 = fails$f;
2376
+ var isCallable$4 = isCallable$k;
2377
+ var classof$1 = classof$7;
2378
+ var getBuiltIn$3 = getBuiltIn$7;
2379
+ var inspectSource$1 = inspectSource$3;
2380
2380
 
2381
2381
  var noop = function () { /* empty */ };
2382
- var construct = getBuiltIn('Reflect', 'construct');
2382
+ var construct = getBuiltIn$3('Reflect', 'construct');
2383
2383
  var constructorRegExp = /^\s*(?:class|function)\b/;
2384
2384
  var exec = uncurryThis(constructorRegExp.exec);
2385
2385
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2386
2386
 
2387
2387
  var isConstructorModern = function isConstructor(argument) {
2388
- if (!isCallable(argument)) return false;
2388
+ if (!isCallable$4(argument)) return false;
2389
2389
  try {
2390
2390
  construct(noop, [], argument);
2391
2391
  return true;
@@ -2395,8 +2395,8 @@ var isConstructorModern = function isConstructor(argument) {
2395
2395
  };
2396
2396
 
2397
2397
  var isConstructorLegacy = function isConstructor(argument) {
2398
- if (!isCallable(argument)) return false;
2399
- switch (classof(argument)) {
2398
+ if (!isCallable$4(argument)) return false;
2399
+ switch (classof$1(argument)) {
2400
2400
  case 'AsyncFunction':
2401
2401
  case 'GeneratorFunction':
2402
2402
  case 'AsyncGeneratorFunction': return false;
@@ -2405,7 +2405,7 @@ var isConstructorLegacy = function isConstructor(argument) {
2405
2405
  // we can't check .prototype since constructors produced by .bind haven't it
2406
2406
  // `Function#toString` throws on some built-it function in some legacy engines
2407
2407
  // (for example, `DOMQuad` and similar in FF41-)
2408
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
2408
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
2409
2409
  } catch (error) {
2410
2410
  return true;
2411
2411
  }
@@ -2415,7 +2415,7 @@ isConstructorLegacy.sham = true;
2415
2415
 
2416
2416
  // `IsConstructor` abstract operation
2417
2417
  // https://tc39.es/ecma262/#sec-isconstructor
2418
- var isConstructor$1 = !construct || fails(function () {
2418
+ var isConstructor$2 = !construct || fails$1(function () {
2419
2419
  var called;
2420
2420
  return isConstructorModern(isConstructorModern.call)
2421
2421
  || !isConstructorModern(Object)
@@ -2424,11 +2424,11 @@ var isConstructor$1 = !construct || fails(function () {
2424
2424
  }) ? isConstructorLegacy : isConstructorModern;
2425
2425
 
2426
2426
  var isArray = isArray$2;
2427
- var isConstructor = isConstructor$1;
2428
- var isObject = isObject$9;
2429
- var wellKnownSymbol = wellKnownSymbol$c;
2427
+ var isConstructor$1 = isConstructor$2;
2428
+ var isObject$2 = isObject$b;
2429
+ var wellKnownSymbol$5 = wellKnownSymbol$h;
2430
2430
 
2431
- var SPECIES = wellKnownSymbol('species');
2431
+ var SPECIES$3 = wellKnownSymbol$5('species');
2432
2432
  var $Array = Array;
2433
2433
 
2434
2434
  // a part of `ArraySpeciesCreate` abstract operation
@@ -2438,9 +2438,9 @@ var arraySpeciesConstructor$1 = function (originalArray) {
2438
2438
  if (isArray(originalArray)) {
2439
2439
  C = originalArray.constructor;
2440
2440
  // cross-realm fallback
2441
- if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2442
- else if (isObject(C)) {
2443
- C = C[SPECIES];
2441
+ if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2442
+ else if (isObject$2(C)) {
2443
+ C = C[SPECIES$3];
2444
2444
  if (C === null) C = undefined;
2445
2445
  }
2446
2446
  } return C === undefined ? $Array : C;
@@ -2454,21 +2454,21 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
2454
2454
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2455
2455
  };
2456
2456
 
2457
- var $ = _export;
2457
+ var $$6 = _export;
2458
2458
  var flattenIntoArray = flattenIntoArray_1;
2459
- var aCallable = aCallable$5;
2459
+ var aCallable$4 = aCallable$9;
2460
2460
  var toObject = toObject$4;
2461
- var lengthOfArrayLike = lengthOfArrayLike$3;
2461
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2462
2462
  var arraySpeciesCreate = arraySpeciesCreate$1;
2463
2463
 
2464
2464
  // `Array.prototype.flatMap` method
2465
2465
  // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2466
- $({ target: 'Array', proto: true }, {
2466
+ $$6({ target: 'Array', proto: true }, {
2467
2467
  flatMap: function flatMap(callbackfn /* , thisArg */) {
2468
2468
  var O = toObject(this);
2469
- var sourceLen = lengthOfArrayLike(O);
2469
+ var sourceLen = lengthOfArrayLike$1(O);
2470
2470
  var A;
2471
- aCallable(callbackfn);
2471
+ aCallable$4(callbackfn);
2472
2472
  A = arraySpeciesCreate(O, 0);
2473
2473
  A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2474
2474
  return A;
@@ -2561,120 +2561,1101 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
2561
2561
  return `(${entry.field}:${entry.filter}:${escapedValue})`;
2562
2562
  }
2563
2563
 
2564
- /******************************************************************************
2565
- Copyright (c) Microsoft Corporation.
2566
-
2567
- Permission to use, copy, modify, and/or distribute this software for any
2568
- purpose with or without fee is hereby granted.
2569
-
2570
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2571
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2572
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2573
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2574
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2575
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2576
- PERFORMANCE OF THIS SOFTWARE.
2577
- ***************************************************************************** */
2578
-
2579
- function __awaiter(thisArg, _arguments, P, generator) {
2580
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2581
- return new (P || (P = Promise))(function (resolve, reject) {
2582
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2583
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2584
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2585
- step((generator = generator.apply(thisArg, _arguments || [])).next());
2586
- });
2587
- }
2588
-
2589
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2590
- var e = new Error(message);
2591
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2564
+ var global$6 = global$k;
2565
+ var classof = classofRaw$2;
2566
+
2567
+ var engineIsNode = classof(global$6.process) === 'process';
2568
+
2569
+ var getBuiltIn$2 = getBuiltIn$7;
2570
+ var defineBuiltInAccessor = defineBuiltInAccessor$2;
2571
+ var wellKnownSymbol$4 = wellKnownSymbol$h;
2572
+ var DESCRIPTORS = descriptors;
2573
+
2574
+ var SPECIES$2 = wellKnownSymbol$4('species');
2575
+
2576
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2577
+ var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
2578
+
2579
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
2580
+ defineBuiltInAccessor(Constructor, SPECIES$2, {
2581
+ configurable: true,
2582
+ get: function () { return this; }
2583
+ });
2584
+ }
2592
2585
  };
2593
2586
 
2594
- /**
2595
- * A code used in some cases to denote success.
2596
- */
2597
- const ZOHO_SUCCESS_CODE = 'SUCCESS';
2598
- function zohoServerErrorData(error) {
2599
- const errorType = typeof error;
2600
- let errorData;
2601
- if (errorType === 'object') {
2602
- errorData = error;
2587
+ var isConstructor = isConstructor$2;
2588
+ var tryToString$1 = tryToString$4;
2589
+
2590
+ var $TypeError$2 = TypeError;
2591
+
2592
+ // `Assert: IsConstructor(argument) is true`
2593
+ var aConstructor$1 = function (argument) {
2594
+ if (isConstructor(argument)) return argument;
2595
+ throw new $TypeError$2(tryToString$1(argument) + ' is not a constructor');
2596
+ };
2597
+
2598
+ var anObject$3 = anObject$d;
2599
+ var aConstructor = aConstructor$1;
2600
+ var isNullOrUndefined = isNullOrUndefined$4;
2601
+ var wellKnownSymbol$3 = wellKnownSymbol$h;
2602
+
2603
+ var SPECIES$1 = wellKnownSymbol$3('species');
2604
+
2605
+ // `SpeciesConstructor` abstract operation
2606
+ // https://tc39.es/ecma262/#sec-speciesconstructor
2607
+ var speciesConstructor$1 = function (O, defaultConstructor) {
2608
+ var C = anObject$3(O).constructor;
2609
+ var S;
2610
+ return C === undefined || isNullOrUndefined(S = anObject$3(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2611
+ };
2612
+
2613
+ var NATIVE_BIND = functionBindNative;
2614
+
2615
+ var FunctionPrototype = Function.prototype;
2616
+ var apply$1 = FunctionPrototype.apply;
2617
+ var call$5 = FunctionPrototype.call;
2618
+
2619
+ // eslint-disable-next-line es/no-reflect -- safe
2620
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$5.bind(apply$1) : function () {
2621
+ return call$5.apply(apply$1, arguments);
2622
+ });
2623
+
2624
+ var userAgent$2 = engineUserAgent;
2625
+
2626
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2627
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2628
+
2629
+ var global$5 = global$k;
2630
+ var apply = functionApply;
2631
+ var bind$3 = functionBindContext;
2632
+ var isCallable$3 = isCallable$k;
2633
+ var hasOwn = hasOwnProperty_1;
2634
+ var fails = fails$f;
2635
+ var html = html$2;
2636
+ var arraySlice = arraySlice$2;
2637
+ var createElement = documentCreateElement$2;
2638
+ var validateArgumentsLength = validateArgumentsLength$2;
2639
+ var IS_IOS$1 = engineIsIos;
2640
+ var IS_NODE$3 = engineIsNode;
2641
+
2642
+ var set = global$5.setImmediate;
2643
+ var clear = global$5.clearImmediate;
2644
+ var process$2 = global$5.process;
2645
+ var Dispatch = global$5.Dispatch;
2646
+ var Function$1 = global$5.Function;
2647
+ var MessageChannel = global$5.MessageChannel;
2648
+ var String$1 = global$5.String;
2649
+ var counter = 0;
2650
+ var queue$2 = {};
2651
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2652
+ var $location, defer, channel, port;
2653
+
2654
+ fails(function () {
2655
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2656
+ $location = global$5.location;
2657
+ });
2658
+
2659
+ var run = function (id) {
2660
+ if (hasOwn(queue$2, id)) {
2661
+ var fn = queue$2[id];
2662
+ delete queue$2[id];
2663
+ fn();
2664
+ }
2665
+ };
2666
+
2667
+ var runner = function (id) {
2668
+ return function () {
2669
+ run(id);
2670
+ };
2671
+ };
2672
+
2673
+ var eventListener = function (event) {
2674
+ run(event.data);
2675
+ };
2676
+
2677
+ var globalPostMessageDefer = function (id) {
2678
+ // old engines have not location.origin
2679
+ global$5.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2680
+ };
2681
+
2682
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2683
+ if (!set || !clear) {
2684
+ set = function setImmediate(handler) {
2685
+ validateArgumentsLength(arguments.length, 1);
2686
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
2687
+ var args = arraySlice(arguments, 1);
2688
+ queue$2[++counter] = function () {
2689
+ apply(fn, undefined, args);
2690
+ };
2691
+ defer(counter);
2692
+ return counter;
2693
+ };
2694
+ clear = function clearImmediate(id) {
2695
+ delete queue$2[id];
2696
+ };
2697
+ // Node.js 0.8-
2698
+ if (IS_NODE$3) {
2699
+ defer = function (id) {
2700
+ process$2.nextTick(runner(id));
2701
+ };
2702
+ // Sphere (JS game engine) Dispatch API
2703
+ } else if (Dispatch && Dispatch.now) {
2704
+ defer = function (id) {
2705
+ Dispatch.now(runner(id));
2706
+ };
2707
+ // Browsers with MessageChannel, includes WebWorkers
2708
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2709
+ } else if (MessageChannel && !IS_IOS$1) {
2710
+ channel = new MessageChannel();
2711
+ port = channel.port2;
2712
+ channel.port1.onmessage = eventListener;
2713
+ defer = bind$3(port.postMessage, port);
2714
+ // Browsers with postMessage, skip WebWorkers
2715
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2716
+ } else if (
2717
+ global$5.addEventListener &&
2718
+ isCallable$3(global$5.postMessage) &&
2719
+ !global$5.importScripts &&
2720
+ $location && $location.protocol !== 'file:' &&
2721
+ !fails(globalPostMessageDefer)
2722
+ ) {
2723
+ defer = globalPostMessageDefer;
2724
+ global$5.addEventListener('message', eventListener, false);
2725
+ // IE8-
2726
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2727
+ defer = function (id) {
2728
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2729
+ html.removeChild(this);
2730
+ run(id);
2731
+ };
2732
+ };
2733
+ // Rest old browsers
2603
2734
  } else {
2604
- errorData = {
2605
- code: error,
2606
- message: ''
2735
+ defer = function (id) {
2736
+ setTimeout(runner(id), 0);
2607
2737
  };
2608
2738
  }
2609
- return errorData;
2610
- }
2611
- /**
2612
- * Zoho Server Error
2613
- */
2614
- class ZohoServerError extends makeError.BaseError {
2615
- get code() {
2616
- return this.error.code;
2617
- }
2618
- constructor(error) {
2619
- super(error.message);
2620
- this.error = error;
2621
- }
2622
2739
  }
2623
- /**
2624
- * Zoho Server Error that includes the FetchResponseError
2625
- */
2626
- class ZohoServerFetchResponseError extends ZohoServerError {
2627
- constructor(data, responseError) {
2628
- super(data);
2629
- this.data = data;
2630
- this.responseError = responseError;
2740
+
2741
+ var task$1 = {
2742
+ set: set,
2743
+ clear: clear
2744
+ };
2745
+
2746
+ var Queue$2 = function () {
2747
+ this.head = null;
2748
+ this.tail = null;
2749
+ };
2750
+
2751
+ Queue$2.prototype = {
2752
+ add: function (item) {
2753
+ var entry = { item: item, next: null };
2754
+ var tail = this.tail;
2755
+ if (tail) tail.next = entry;
2756
+ else this.head = entry;
2757
+ this.tail = entry;
2758
+ },
2759
+ get: function () {
2760
+ var entry = this.head;
2761
+ if (entry) {
2762
+ var next = this.head = entry.next;
2763
+ if (next === null) this.tail = null;
2764
+ return entry.item;
2765
+ }
2631
2766
  }
2632
- }
2633
- /**
2634
- * Creates a logZohoServerErrorFunction that logs the error to console.
2635
- *
2636
- * @param zohoApiNamePrefix Prefix to use when logging. I.E. ZohoRecruitError, etc.
2637
- * @returns
2638
- */
2639
- function logZohoServerErrorFunction(zohoApiNamePrefix) {
2640
- return error => {
2641
- if (error instanceof ZohoServerFetchResponseError) {
2642
- console.log(`${zohoApiNamePrefix}Error(${error.responseError.response.status}): `, {
2643
- error,
2644
- errorData: error.data
2645
- });
2646
- } else if (error instanceof ZohoServerError) {
2647
- console.log(`${zohoApiNamePrefix}Error(code:${error.code}): `, {
2648
- error
2649
- });
2650
- } else {
2651
- console.log(`${zohoApiNamePrefix}Error(name:${error.name}): `, {
2652
- error
2653
- });
2767
+ };
2768
+
2769
+ var queue$1 = Queue$2;
2770
+
2771
+ var userAgent$1 = engineUserAgent;
2772
+
2773
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2774
+
2775
+ var userAgent = engineUserAgent;
2776
+
2777
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2778
+
2779
+ var global$4 = global$k;
2780
+ var safeGetBuiltIn = safeGetBuiltIn$2;
2781
+ var bind$2 = functionBindContext;
2782
+ var macrotask = task$1.set;
2783
+ var Queue$1 = queue$1;
2784
+ var IS_IOS = engineIsIos;
2785
+ var IS_IOS_PEBBLE = engineIsIosPebble;
2786
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2787
+ var IS_NODE$2 = engineIsNode;
2788
+
2789
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
2790
+ var document$2 = global$4.document;
2791
+ var process$1 = global$4.process;
2792
+ var Promise$1 = global$4.Promise;
2793
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
2794
+ var notify$1, toggle, node, promise, then;
2795
+
2796
+ // modern engines have queueMicrotask method
2797
+ if (!microtask$1) {
2798
+ var queue = new Queue$1();
2799
+
2800
+ var flush = function () {
2801
+ var parent, fn;
2802
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2803
+ while (fn = queue.get()) try {
2804
+ fn();
2805
+ } catch (error) {
2806
+ if (queue.head) notify$1();
2807
+ throw error;
2654
2808
  }
2809
+ if (parent) parent.enter();
2810
+ };
2811
+
2812
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2813
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2814
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2815
+ toggle = true;
2816
+ node = document$2.createTextNode('');
2817
+ new MutationObserver(flush).observe(node, { characterData: true });
2818
+ notify$1 = function () {
2819
+ node.data = toggle = !toggle;
2820
+ };
2821
+ // environments with maybe non-completely correct, but existent Promise
2822
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2823
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2824
+ promise = Promise$1.resolve(undefined);
2825
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2826
+ promise.constructor = Promise$1;
2827
+ then = bind$2(promise.then, promise);
2828
+ notify$1 = function () {
2829
+ then(flush);
2830
+ };
2831
+ // Node.js without promises
2832
+ } else if (IS_NODE$2) {
2833
+ notify$1 = function () {
2834
+ process$1.nextTick(flush);
2835
+ };
2836
+ // for other environments - macrotask based on:
2837
+ // - setImmediate
2838
+ // - MessageChannel
2839
+ // - window.postMessage
2840
+ // - onreadystatechange
2841
+ // - setTimeout
2842
+ } else {
2843
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
2844
+ macrotask = bind$2(macrotask, global$4);
2845
+ notify$1 = function () {
2846
+ macrotask(flush);
2847
+ };
2848
+ }
2849
+
2850
+ microtask$1 = function (fn) {
2851
+ if (!queue.head) notify$1();
2852
+ queue.add(fn);
2655
2853
  };
2656
2854
  }
2657
- /**
2658
- * Wraps a ConfiguredFetch to support handling errors returned by fetch.
2659
- *
2660
- * @param fetch
2661
- * @returns
2855
+
2856
+ var microtask_1 = microtask$1;
2857
+
2858
+ var hostReportErrors$1 = function (a, b) {
2859
+ try {
2860
+ // eslint-disable-next-line no-console -- safe
2861
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
2862
+ } catch (error) { /* empty */ }
2863
+ };
2864
+
2865
+ var perform$3 = function (exec) {
2866
+ try {
2867
+ return { error: false, value: exec() };
2868
+ } catch (error) {
2869
+ return { error: true, value: error };
2870
+ }
2871
+ };
2872
+
2873
+ var global$3 = global$k;
2874
+
2875
+ var promiseNativeConstructor = global$3.Promise;
2876
+
2877
+ /* global Deno -- Deno case */
2878
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2879
+
2880
+ var IS_DENO$1 = engineIsDeno;
2881
+ var IS_NODE$1 = engineIsNode;
2882
+
2883
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2884
+ && typeof window == 'object'
2885
+ && typeof document == 'object';
2886
+
2887
+ var global$2 = global$k;
2888
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
2889
+ var isCallable$2 = isCallable$k;
2890
+ var isForced = isForced_1;
2891
+ var inspectSource = inspectSource$3;
2892
+ var wellKnownSymbol$2 = wellKnownSymbol$h;
2893
+ var IS_BROWSER = engineIsBrowser;
2894
+ var IS_DENO = engineIsDeno;
2895
+ var V8_VERSION = engineV8Version;
2896
+
2897
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2898
+ var SPECIES = wellKnownSymbol$2('species');
2899
+ var SUBCLASSING = false;
2900
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
2901
+
2902
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2903
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2904
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2905
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2906
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2907
+ // We can't detect it synchronously, so just check versions
2908
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2909
+ // We can't use @@species feature detection in V8 since it causes
2910
+ // deoptimization and performance degradation
2911
+ // https://github.com/zloirock/core-js/issues/679
2912
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2913
+ // Detect correctness of subclassing with @@species support
2914
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2915
+ var FakePromise = function (exec) {
2916
+ exec(function () { /* empty */ }, function () { /* empty */ });
2917
+ };
2918
+ var constructor = promise.constructor = {};
2919
+ constructor[SPECIES] = FakePromise;
2920
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2921
+ if (!SUBCLASSING) return true;
2922
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2923
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2924
+ });
2925
+
2926
+ var promiseConstructorDetection = {
2927
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2928
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2929
+ SUBCLASSING: SUBCLASSING
2930
+ };
2931
+
2932
+ var newPromiseCapability$2 = {};
2933
+
2934
+ var aCallable$3 = aCallable$9;
2935
+
2936
+ var $TypeError$1 = TypeError;
2937
+
2938
+ var PromiseCapability = function (C) {
2939
+ var resolve, reject;
2940
+ this.promise = new C(function ($$resolve, $$reject) {
2941
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$1('Bad Promise constructor');
2942
+ resolve = $$resolve;
2943
+ reject = $$reject;
2944
+ });
2945
+ this.resolve = aCallable$3(resolve);
2946
+ this.reject = aCallable$3(reject);
2947
+ };
2948
+
2949
+ // `NewPromiseCapability` abstract operation
2950
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2951
+ newPromiseCapability$2.f = function (C) {
2952
+ return new PromiseCapability(C);
2953
+ };
2954
+
2955
+ var $$5 = _export;
2956
+ var IS_NODE = engineIsNode;
2957
+ var global$1 = global$k;
2958
+ var call$4 = functionCall;
2959
+ var defineBuiltIn$1 = defineBuiltIn$8;
2960
+ var setPrototypeOf = objectSetPrototypeOf;
2961
+ var setToStringTag = setToStringTag$5;
2962
+ var setSpecies = setSpecies$1;
2963
+ var aCallable$2 = aCallable$9;
2964
+ var isCallable$1 = isCallable$k;
2965
+ var isObject$1 = isObject$b;
2966
+ var anInstance = anInstance$2;
2967
+ var speciesConstructor = speciesConstructor$1;
2968
+ var task = task$1.set;
2969
+ var microtask = microtask_1;
2970
+ var hostReportErrors = hostReportErrors$1;
2971
+ var perform$2 = perform$3;
2972
+ var Queue = queue$1;
2973
+ var InternalStateModule = internalState;
2974
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2975
+ var PromiseConstructorDetection = promiseConstructorDetection;
2976
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2977
+
2978
+ var PROMISE = 'Promise';
2979
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2980
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2981
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2982
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2983
+ var setInternalState = InternalStateModule.set;
2984
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2985
+ var PromiseConstructor = NativePromiseConstructor$2;
2986
+ var PromisePrototype = NativePromisePrototype$1;
2987
+ var TypeError$1 = global$1.TypeError;
2988
+ var document$1 = global$1.document;
2989
+ var process = global$1.process;
2990
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2991
+ var newGenericPromiseCapability = newPromiseCapability$1;
2992
+
2993
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
2994
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2995
+ var REJECTION_HANDLED = 'rejectionhandled';
2996
+ var PENDING = 0;
2997
+ var FULFILLED = 1;
2998
+ var REJECTED = 2;
2999
+ var HANDLED = 1;
3000
+ var UNHANDLED = 2;
3001
+
3002
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
3003
+
3004
+ // helpers
3005
+ var isThenable = function (it) {
3006
+ var then;
3007
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
3008
+ };
3009
+
3010
+ var callReaction = function (reaction, state) {
3011
+ var value = state.value;
3012
+ var ok = state.state === FULFILLED;
3013
+ var handler = ok ? reaction.ok : reaction.fail;
3014
+ var resolve = reaction.resolve;
3015
+ var reject = reaction.reject;
3016
+ var domain = reaction.domain;
3017
+ var result, then, exited;
3018
+ try {
3019
+ if (handler) {
3020
+ if (!ok) {
3021
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
3022
+ state.rejection = HANDLED;
3023
+ }
3024
+ if (handler === true) result = value;
3025
+ else {
3026
+ if (domain) domain.enter();
3027
+ result = handler(value); // can throw
3028
+ if (domain) {
3029
+ domain.exit();
3030
+ exited = true;
3031
+ }
3032
+ }
3033
+ if (result === reaction.promise) {
3034
+ reject(new TypeError$1('Promise-chain cycle'));
3035
+ } else if (then = isThenable(result)) {
3036
+ call$4(then, result, resolve, reject);
3037
+ } else resolve(result);
3038
+ } else reject(value);
3039
+ } catch (error) {
3040
+ if (domain && !exited) domain.exit();
3041
+ reject(error);
3042
+ }
3043
+ };
3044
+
3045
+ var notify = function (state, isReject) {
3046
+ if (state.notified) return;
3047
+ state.notified = true;
3048
+ microtask(function () {
3049
+ var reactions = state.reactions;
3050
+ var reaction;
3051
+ while (reaction = reactions.get()) {
3052
+ callReaction(reaction, state);
3053
+ }
3054
+ state.notified = false;
3055
+ if (isReject && !state.rejection) onUnhandled(state);
3056
+ });
3057
+ };
3058
+
3059
+ var dispatchEvent = function (name, promise, reason) {
3060
+ var event, handler;
3061
+ if (DISPATCH_EVENT) {
3062
+ event = document$1.createEvent('Event');
3063
+ event.promise = promise;
3064
+ event.reason = reason;
3065
+ event.initEvent(name, false, true);
3066
+ global$1.dispatchEvent(event);
3067
+ } else event = { promise: promise, reason: reason };
3068
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
3069
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3070
+ };
3071
+
3072
+ var onUnhandled = function (state) {
3073
+ call$4(task, global$1, function () {
3074
+ var promise = state.facade;
3075
+ var value = state.value;
3076
+ var IS_UNHANDLED = isUnhandled(state);
3077
+ var result;
3078
+ if (IS_UNHANDLED) {
3079
+ result = perform$2(function () {
3080
+ if (IS_NODE) {
3081
+ process.emit('unhandledRejection', value, promise);
3082
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3083
+ });
3084
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3085
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3086
+ if (result.error) throw result.value;
3087
+ }
3088
+ });
3089
+ };
3090
+
3091
+ var isUnhandled = function (state) {
3092
+ return state.rejection !== HANDLED && !state.parent;
3093
+ };
3094
+
3095
+ var onHandleUnhandled = function (state) {
3096
+ call$4(task, global$1, function () {
3097
+ var promise = state.facade;
3098
+ if (IS_NODE) {
3099
+ process.emit('rejectionHandled', promise);
3100
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3101
+ });
3102
+ };
3103
+
3104
+ var bind$1 = function (fn, state, unwrap) {
3105
+ return function (value) {
3106
+ fn(state, value, unwrap);
3107
+ };
3108
+ };
3109
+
3110
+ var internalReject = function (state, value, unwrap) {
3111
+ if (state.done) return;
3112
+ state.done = true;
3113
+ if (unwrap) state = unwrap;
3114
+ state.value = value;
3115
+ state.state = REJECTED;
3116
+ notify(state, true);
3117
+ };
3118
+
3119
+ var internalResolve = function (state, value, unwrap) {
3120
+ if (state.done) return;
3121
+ state.done = true;
3122
+ if (unwrap) state = unwrap;
3123
+ try {
3124
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3125
+ var then = isThenable(value);
3126
+ if (then) {
3127
+ microtask(function () {
3128
+ var wrapper = { done: false };
3129
+ try {
3130
+ call$4(then, value,
3131
+ bind$1(internalResolve, wrapper, state),
3132
+ bind$1(internalReject, wrapper, state)
3133
+ );
3134
+ } catch (error) {
3135
+ internalReject(wrapper, error, state);
3136
+ }
3137
+ });
3138
+ } else {
3139
+ state.value = value;
3140
+ state.state = FULFILLED;
3141
+ notify(state, false);
3142
+ }
3143
+ } catch (error) {
3144
+ internalReject({ done: false }, error, state);
3145
+ }
3146
+ };
3147
+
3148
+ // constructor polyfill
3149
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3150
+ // 25.4.3.1 Promise(executor)
3151
+ PromiseConstructor = function Promise(executor) {
3152
+ anInstance(this, PromisePrototype);
3153
+ aCallable$2(executor);
3154
+ call$4(Internal, this);
3155
+ var state = getInternalPromiseState(this);
3156
+ try {
3157
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3158
+ } catch (error) {
3159
+ internalReject(state, error);
3160
+ }
3161
+ };
3162
+
3163
+ PromisePrototype = PromiseConstructor.prototype;
3164
+
3165
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3166
+ Internal = function Promise(executor) {
3167
+ setInternalState(this, {
3168
+ type: PROMISE,
3169
+ done: false,
3170
+ notified: false,
3171
+ parent: false,
3172
+ reactions: new Queue(),
3173
+ rejection: false,
3174
+ state: PENDING,
3175
+ value: undefined
3176
+ });
3177
+ };
3178
+
3179
+ // `Promise.prototype.then` method
3180
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
3181
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3182
+ var state = getInternalPromiseState(this);
3183
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3184
+ state.parent = true;
3185
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
3186
+ reaction.fail = isCallable$1(onRejected) && onRejected;
3187
+ reaction.domain = IS_NODE ? process.domain : undefined;
3188
+ if (state.state === PENDING) state.reactions.add(reaction);
3189
+ else microtask(function () {
3190
+ callReaction(reaction, state);
3191
+ });
3192
+ return reaction.promise;
3193
+ });
3194
+
3195
+ OwnPromiseCapability = function () {
3196
+ var promise = new Internal();
3197
+ var state = getInternalPromiseState(promise);
3198
+ this.promise = promise;
3199
+ this.resolve = bind$1(internalResolve, state);
3200
+ this.reject = bind$1(internalReject, state);
3201
+ };
3202
+
3203
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
3204
+ return C === PromiseConstructor || C === PromiseWrapper
3205
+ ? new OwnPromiseCapability(C)
3206
+ : newGenericPromiseCapability(C);
3207
+ };
3208
+
3209
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3210
+ nativeThen = NativePromisePrototype$1.then;
3211
+
3212
+ if (!NATIVE_PROMISE_SUBCLASSING) {
3213
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3214
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3215
+ var that = this;
3216
+ return new PromiseConstructor(function (resolve, reject) {
3217
+ call$4(nativeThen, that, resolve, reject);
3218
+ }).then(onFulfilled, onRejected);
3219
+ // https://github.com/zloirock/core-js/issues/640
3220
+ }, { unsafe: true });
3221
+ }
3222
+
3223
+ // make `.constructor === Promise` work for native promise-based APIs
3224
+ try {
3225
+ delete NativePromisePrototype$1.constructor;
3226
+ } catch (error) { /* empty */ }
3227
+
3228
+ // make `instanceof Promise` work for native promise-based APIs
3229
+ if (setPrototypeOf) {
3230
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3231
+ }
3232
+ }
3233
+ }
3234
+
3235
+ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3236
+ Promise: PromiseConstructor
3237
+ });
3238
+
3239
+ setToStringTag(PromiseConstructor, PROMISE, false);
3240
+ setSpecies(PROMISE);
3241
+
3242
+ var wellKnownSymbol$1 = wellKnownSymbol$h;
3243
+ var Iterators = iterators;
3244
+
3245
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
3246
+ var ArrayPrototype = Array.prototype;
3247
+
3248
+ // check on default Array iterator
3249
+ var isArrayIteratorMethod$1 = function (it) {
3250
+ return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR$1] === it);
3251
+ };
3252
+
3253
+ var call$3 = functionCall;
3254
+ var anObject$2 = anObject$d;
3255
+ var getMethod = getMethod$3;
3256
+
3257
+ var iteratorClose$1 = function (iterator, kind, value) {
3258
+ var innerResult, innerError;
3259
+ anObject$2(iterator);
3260
+ try {
3261
+ innerResult = getMethod(iterator, 'return');
3262
+ if (!innerResult) {
3263
+ if (kind === 'throw') throw value;
3264
+ return value;
3265
+ }
3266
+ innerResult = call$3(innerResult, iterator);
3267
+ } catch (error) {
3268
+ innerError = true;
3269
+ innerResult = error;
3270
+ }
3271
+ if (kind === 'throw') throw value;
3272
+ if (innerError) throw innerResult;
3273
+ anObject$2(innerResult);
3274
+ return value;
3275
+ };
3276
+
3277
+ var bind = functionBindContext;
3278
+ var call$2 = functionCall;
3279
+ var anObject$1 = anObject$d;
3280
+ var tryToString = tryToString$4;
3281
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
3282
+ var lengthOfArrayLike = lengthOfArrayLike$4;
3283
+ var isPrototypeOf = objectIsPrototypeOf;
3284
+ var getIterator = getIterator$2;
3285
+ var getIteratorMethod = getIteratorMethod$3;
3286
+ var iteratorClose = iteratorClose$1;
3287
+
3288
+ var $TypeError = TypeError;
3289
+
3290
+ var Result = function (stopped, result) {
3291
+ this.stopped = stopped;
3292
+ this.result = result;
3293
+ };
3294
+
3295
+ var ResultPrototype = Result.prototype;
3296
+
3297
+ var iterate$2 = function (iterable, unboundFunction, options) {
3298
+ var that = options && options.that;
3299
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3300
+ var IS_RECORD = !!(options && options.IS_RECORD);
3301
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3302
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3303
+ var fn = bind(unboundFunction, that);
3304
+ var iterator, iterFn, index, length, result, next, step;
3305
+
3306
+ var stop = function (condition) {
3307
+ if (iterator) iteratorClose(iterator, 'normal', condition);
3308
+ return new Result(true, condition);
3309
+ };
3310
+
3311
+ var callFn = function (value) {
3312
+ if (AS_ENTRIES) {
3313
+ anObject$1(value);
3314
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3315
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3316
+ };
3317
+
3318
+ if (IS_RECORD) {
3319
+ iterator = iterable.iterator;
3320
+ } else if (IS_ITERATOR) {
3321
+ iterator = iterable;
3322
+ } else {
3323
+ iterFn = getIteratorMethod(iterable);
3324
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
3325
+ // optimisation for array iterators
3326
+ if (isArrayIteratorMethod(iterFn)) {
3327
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
3328
+ result = callFn(iterable[index]);
3329
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
3330
+ } return new Result(false);
3331
+ }
3332
+ iterator = getIterator(iterable, iterFn);
3333
+ }
3334
+
3335
+ next = IS_RECORD ? iterable.next : iterator.next;
3336
+ while (!(step = call$2(next, iterator)).done) {
3337
+ try {
3338
+ result = callFn(step.value);
3339
+ } catch (error) {
3340
+ iteratorClose(iterator, 'throw', error);
3341
+ }
3342
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3343
+ } return new Result(false);
3344
+ };
3345
+
3346
+ var wellKnownSymbol = wellKnownSymbol$h;
3347
+
3348
+ var ITERATOR = wellKnownSymbol('iterator');
3349
+ var SAFE_CLOSING = false;
3350
+
3351
+ try {
3352
+ var called = 0;
3353
+ var iteratorWithReturn = {
3354
+ next: function () {
3355
+ return { done: !!called++ };
3356
+ },
3357
+ 'return': function () {
3358
+ SAFE_CLOSING = true;
3359
+ }
3360
+ };
3361
+ iteratorWithReturn[ITERATOR] = function () {
3362
+ return this;
3363
+ };
3364
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3365
+ Array.from(iteratorWithReturn, function () { throw 2; });
3366
+ } catch (error) { /* empty */ }
3367
+
3368
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3369
+ try {
3370
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3371
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3372
+ var ITERATION_SUPPORT = false;
3373
+ try {
3374
+ var object = {};
3375
+ object[ITERATOR] = function () {
3376
+ return {
3377
+ next: function () {
3378
+ return { done: ITERATION_SUPPORT = true };
3379
+ }
3380
+ };
3381
+ };
3382
+ exec(object);
3383
+ } catch (error) { /* empty */ }
3384
+ return ITERATION_SUPPORT;
3385
+ };
3386
+
3387
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
3388
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3389
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3390
+
3391
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3392
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3393
+ });
3394
+
3395
+ var $$4 = _export;
3396
+ var call$1 = functionCall;
3397
+ var aCallable$1 = aCallable$9;
3398
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3399
+ var perform$1 = perform$3;
3400
+ var iterate$1 = iterate$2;
3401
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3402
+
3403
+ // `Promise.all` method
3404
+ // https://tc39.es/ecma262/#sec-promise.all
3405
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3406
+ all: function all(iterable) {
3407
+ var C = this;
3408
+ var capability = newPromiseCapabilityModule$2.f(C);
3409
+ var resolve = capability.resolve;
3410
+ var reject = capability.reject;
3411
+ var result = perform$1(function () {
3412
+ var $promiseResolve = aCallable$1(C.resolve);
3413
+ var values = [];
3414
+ var counter = 0;
3415
+ var remaining = 1;
3416
+ iterate$1(iterable, function (promise) {
3417
+ var index = counter++;
3418
+ var alreadyCalled = false;
3419
+ remaining++;
3420
+ call$1($promiseResolve, C, promise).then(function (value) {
3421
+ if (alreadyCalled) return;
3422
+ alreadyCalled = true;
3423
+ values[index] = value;
3424
+ --remaining || resolve(values);
3425
+ }, reject);
3426
+ });
3427
+ --remaining || resolve(values);
3428
+ });
3429
+ if (result.error) reject(result.value);
3430
+ return capability.promise;
3431
+ }
3432
+ });
3433
+
3434
+ var $$3 = _export;
3435
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3436
+ var NativePromiseConstructor = promiseNativeConstructor;
3437
+ var getBuiltIn$1 = getBuiltIn$7;
3438
+ var isCallable = isCallable$k;
3439
+ var defineBuiltIn = defineBuiltIn$8;
3440
+
3441
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3442
+
3443
+ // `Promise.prototype.catch` method
3444
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
3445
+ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3446
+ 'catch': function (onRejected) {
3447
+ return this.then(undefined, onRejected);
3448
+ }
3449
+ });
3450
+
3451
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3452
+ if (isCallable(NativePromiseConstructor)) {
3453
+ var method = getBuiltIn$1('Promise').prototype['catch'];
3454
+ if (NativePromisePrototype['catch'] !== method) {
3455
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
3456
+ }
3457
+ }
3458
+
3459
+ var $$2 = _export;
3460
+ var call = functionCall;
3461
+ var aCallable = aCallable$9;
3462
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3463
+ var perform = perform$3;
3464
+ var iterate = iterate$2;
3465
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3466
+
3467
+ // `Promise.race` method
3468
+ // https://tc39.es/ecma262/#sec-promise.race
3469
+ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3470
+ race: function race(iterable) {
3471
+ var C = this;
3472
+ var capability = newPromiseCapabilityModule$1.f(C);
3473
+ var reject = capability.reject;
3474
+ var result = perform(function () {
3475
+ var $promiseResolve = aCallable(C.resolve);
3476
+ iterate(iterable, function (promise) {
3477
+ call($promiseResolve, C, promise).then(capability.resolve, reject);
3478
+ });
3479
+ });
3480
+ if (result.error) reject(result.value);
3481
+ return capability.promise;
3482
+ }
3483
+ });
3484
+
3485
+ var $$1 = _export;
3486
+ var newPromiseCapabilityModule = newPromiseCapability$2;
3487
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3488
+
3489
+ // `Promise.reject` method
3490
+ // https://tc39.es/ecma262/#sec-promise.reject
3491
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3492
+ reject: function reject(r) {
3493
+ var capability = newPromiseCapabilityModule.f(this);
3494
+ var capabilityReject = capability.reject;
3495
+ capabilityReject(r);
3496
+ return capability.promise;
3497
+ }
3498
+ });
3499
+
3500
+ var anObject = anObject$d;
3501
+ var isObject = isObject$b;
3502
+ var newPromiseCapability = newPromiseCapability$2;
3503
+
3504
+ var promiseResolve$1 = function (C, x) {
3505
+ anObject(C);
3506
+ if (isObject(x) && x.constructor === C) return x;
3507
+ var promiseCapability = newPromiseCapability.f(C);
3508
+ var resolve = promiseCapability.resolve;
3509
+ resolve(x);
3510
+ return promiseCapability.promise;
3511
+ };
3512
+
3513
+ var $ = _export;
3514
+ var getBuiltIn = getBuiltIn$7;
3515
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3516
+ var promiseResolve = promiseResolve$1;
3517
+
3518
+ getBuiltIn('Promise');
3519
+
3520
+ // `Promise.resolve` method
3521
+ // https://tc39.es/ecma262/#sec-promise.resolve
3522
+ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3523
+ resolve: function resolve(x) {
3524
+ return promiseResolve(this, x);
3525
+ }
3526
+ });
3527
+
3528
+ /**
3529
+ * A code used in some cases to denote success.
3530
+ */
3531
+
3532
+ function _await$3(value, then, direct) {
3533
+ if (direct) {
3534
+ return then ? then(value) : value;
3535
+ }
3536
+ if (!value || !value.then) {
3537
+ value = Promise.resolve(value);
3538
+ }
3539
+ return then ? value.then(then) : value;
3540
+ }
3541
+ function _invoke$1(body, then) {
3542
+ var result = body();
3543
+ if (result && result.then) {
3544
+ return result.then(then);
3545
+ }
3546
+ return then(result);
3547
+ }
3548
+ function _catch$1(body, recover) {
3549
+ try {
3550
+ var result = body();
3551
+ } catch (e) {
3552
+ return recover(e);
3553
+ }
3554
+ if (result && result.then) {
3555
+ return result.then(void 0, recover);
3556
+ }
3557
+ return result;
3558
+ }
3559
+ function _async$3(f) {
3560
+ return function () {
3561
+ for (var args = [], i = 0; i < arguments.length; i++) {
3562
+ args[i] = arguments[i];
3563
+ }
3564
+ try {
3565
+ return Promise.resolve(f.apply(this, args));
3566
+ } catch (e) {
3567
+ return Promise.reject(e);
3568
+ }
3569
+ };
3570
+ }
3571
+ const ZOHO_SUCCESS_CODE = 'SUCCESS';
3572
+ function zohoServerErrorData(error) {
3573
+ const errorType = typeof error;
3574
+ let errorData;
3575
+ if (errorType === 'object') {
3576
+ errorData = error;
3577
+ } else {
3578
+ errorData = {
3579
+ code: error,
3580
+ message: ''
3581
+ };
3582
+ }
3583
+ return errorData;
3584
+ }
3585
+ /**
3586
+ * Zoho Server Error
3587
+ */
3588
+ class ZohoServerError extends makeError.BaseError {
3589
+ get code() {
3590
+ return this.error.code;
3591
+ }
3592
+ constructor(error) {
3593
+ super(error.message);
3594
+ this.error = void 0;
3595
+ this.error = error;
3596
+ }
3597
+ }
3598
+ /**
3599
+ * Zoho Server Error that includes the FetchResponseError
3600
+ */
3601
+ class ZohoServerFetchResponseError extends ZohoServerError {
3602
+ constructor(data, responseError) {
3603
+ super(data);
3604
+ this.data = void 0;
3605
+ this.responseError = void 0;
3606
+ this.data = data;
3607
+ this.responseError = responseError;
3608
+ }
3609
+ }
3610
+ /**
3611
+ * Creates a logZohoServerErrorFunction that logs the error to console.
3612
+ *
3613
+ * @param zohoApiNamePrefix Prefix to use when logging. I.E. ZohoRecruitError, etc.
3614
+ * @returns
3615
+ */
3616
+ function logZohoServerErrorFunction(zohoApiNamePrefix) {
3617
+ return error => {
3618
+ if (error instanceof ZohoServerFetchResponseError) {
3619
+ console.log(`${zohoApiNamePrefix}Error(${error.responseError.response.status}): `, {
3620
+ error,
3621
+ errorData: error.data
3622
+ });
3623
+ } else if (error instanceof ZohoServerError) {
3624
+ console.log(`${zohoApiNamePrefix}Error(code:${error.code}): `, {
3625
+ error
3626
+ });
3627
+ } else {
3628
+ console.log(`${zohoApiNamePrefix}Error(name:${error.name}): `, {
3629
+ error
3630
+ });
3631
+ }
3632
+ };
3633
+ }
3634
+ /**
3635
+ * Wraps a ConfiguredFetch to support handling errors returned by fetch.
3636
+ *
3637
+ * @param fetch
3638
+ * @returns
2662
3639
  */
2663
3640
  function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
2664
3641
  return (fetch$1, logError = defaultLogError) => {
2665
- return (x, y) => __awaiter(this, void 0, void 0, function* () {
2666
- try {
2667
- return yield fetch$1(x, y); // await to catch thrown errors
2668
- } catch (e) {
2669
- if (e instanceof fetch.FetchResponseError) {
2670
- const error = yield parseZohoError(e);
2671
- if (error) {
2672
- logError(error); // log before throwing.
2673
- throw error;
3642
+ return _async$3(function (x, y) {
3643
+ return _catch$1(function () {
3644
+ return _await$3(fetch$1(x, y)); // await to catch thrown errors
3645
+ }, function (e) {
3646
+ return _invoke$1(function () {
3647
+ if (e instanceof fetch.FetchResponseError) {
3648
+ return _await$3(parseZohoError(e), function (error) {
3649
+ if (error) {
3650
+ logError(error); // log before throwing.
3651
+ throw error;
3652
+ }
3653
+ });
2674
3654
  }
2675
- }
2676
- throw e;
2677
- }
3655
+ }, function (_result) {
3656
+ throw e;
3657
+ });
3658
+ });
2678
3659
  });
2679
3660
  };
2680
3661
  }
@@ -2685,7 +3666,7 @@ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
2685
3666
  */
2686
3667
  function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
2687
3668
  return (json, response) => {
2688
- const error = json === null || json === void 0 ? void 0 : json.error;
3669
+ const error = json == null ? void 0 : json.error;
2689
3670
  if (error != null) {
2690
3671
  const responseError = new fetch.FetchResponseError(response);
2691
3672
  if (responseError) {
@@ -2779,14 +3760,46 @@ function parseZohoServerErrorResponseData(errorResponseData, responseError) {
2779
3760
  * @returns
2780
3761
  */
2781
3762
  function tryFindZohoServerErrorData(errorResponseData, responseError) {
2782
- var _a;
2783
- const error = (_a = errorResponseData.error) !== null && _a !== void 0 ? _a : !responseError.response.ok ? errorResponseData : undefined;
3763
+ var _errorResponseData$er;
3764
+ const error = (_errorResponseData$er = errorResponseData.error) != null ? _errorResponseData$er : !responseError.response.ok ? errorResponseData : undefined;
2784
3765
  return error;
2785
3766
  }
2786
3767
 
3768
+ function _await$2(value, then, direct) {
3769
+ if (direct) {
3770
+ return then ? then(value) : value;
3771
+ }
3772
+ if (!value || !value.then) {
3773
+ value = Promise.resolve(value);
3774
+ }
3775
+ return then ? value.then(then) : value;
3776
+ }
3777
+ function _async$2(f) {
3778
+ return function () {
3779
+ for (var args = [], i = 0; i < arguments.length; i++) {
3780
+ args[i] = arguments[i];
3781
+ }
3782
+ try {
3783
+ return Promise.resolve(f.apply(this, args));
3784
+ } catch (e) {
3785
+ return Promise.reject(e);
3786
+ }
3787
+ };
3788
+ }
3789
+ const parseZohoRecruitError = _async$2(function (responseError) {
3790
+ return _await$2(responseError.response.json().catch(x => undefined), function (data) {
3791
+ let result;
3792
+ if (data) {
3793
+ result = parseZohoRecruitServerErrorResponseData(data, responseError);
3794
+ }
3795
+ return result;
3796
+ });
3797
+ });
2787
3798
  class ZohoRecruitRecordNoContentError extends makeError.BaseError {
2788
3799
  constructor(moduleName, recordId) {
2789
3800
  super(`There was no content or matching records for the content. It may not exist.`);
3801
+ this.moduleName = void 0;
3802
+ this.recordId = void 0;
2790
3803
  this.moduleName = moduleName;
2791
3804
  this.recordId = recordId;
2792
3805
  }
@@ -2825,8 +3838,8 @@ function zohoRecruitRecordCrudError(error) {
2825
3838
  }
2826
3839
  function assertRecordDataArrayResultHasContent(moduleName, recordId) {
2827
3840
  return x => {
2828
- var _a;
2829
- if (x == null || !((_a = x.data) === null || _a === void 0 ? void 0 : _a.length)) {
3841
+ var _x$data;
3842
+ if (x == null || !((_x$data = x.data) != null && _x$data.length)) {
2830
3843
  throw new ZohoRecruitRecordNoContentError(moduleName, recordId);
2831
3844
  } else {
2832
3845
  return x;
@@ -2834,16 +3847,6 @@ function assertRecordDataArrayResultHasContent(moduleName, recordId) {
2834
3847
  };
2835
3848
  }
2836
3849
  const logZohoRecruitErrorToConsole = logZohoServerErrorFunction('ZohoRecruit');
2837
- function parseZohoRecruitError(responseError) {
2838
- return __awaiter(this, void 0, void 0, function* () {
2839
- const data = yield responseError.response.json().catch(x => undefined);
2840
- let result;
2841
- if (data) {
2842
- result = parseZohoRecruitServerErrorResponseData(data, responseError);
2843
- }
2844
- return result;
2845
- });
2846
- }
2847
3850
  function parseZohoRecruitServerErrorResponseData(errorResponseData, responseError) {
2848
3851
  let result;
2849
3852
  const error = tryFindZohoServerErrorData(errorResponseData, responseError);
@@ -2964,7 +3967,7 @@ function searchRecords(context) {
2964
3967
  const urlParams = zohoRecruitUrlSearchParamsMinusModule(baseInput);
2965
3968
  return urlParams;
2966
3969
  }
2967
- return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x !== null && x !== void 0 ? x : {
3970
+ return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x != null ? x : {
2968
3971
  data: []
2969
3972
  });
2970
3973
  }
@@ -3023,6 +4026,37 @@ function zohoRecruitConfigApiUrl(input) {
3023
4026
  * Error in the following cases:
3024
4027
  * - the refresh token string is invalid
3025
4028
  */
4029
+
4030
+ function _await$1(value, then, direct) {
4031
+ if (direct) {
4032
+ return then ? then(value) : value;
4033
+ }
4034
+ if (!value || !value.then) {
4035
+ value = Promise.resolve(value);
4036
+ }
4037
+ return then ? value.then(then) : value;
4038
+ }
4039
+ function _async$1(f) {
4040
+ return function () {
4041
+ for (var args = [], i = 0; i < arguments.length; i++) {
4042
+ args[i] = arguments[i];
4043
+ }
4044
+ try {
4045
+ return Promise.resolve(f.apply(this, args));
4046
+ } catch (e) {
4047
+ return Promise.reject(e);
4048
+ }
4049
+ };
4050
+ }
4051
+ const parseZohoAccountsError = _async$1(function (responseError) {
4052
+ return _await$1(responseError.response.json().catch(x => undefined), function (data) {
4053
+ let result;
4054
+ if (data) {
4055
+ result = parseZohoAccountsServerErrorResponseData(data, responseError);
4056
+ }
4057
+ return result;
4058
+ });
4059
+ });
3026
4060
  const ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE = 'invalid_code';
3027
4061
  const ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE = 'invalid_client';
3028
4062
  /**
@@ -3031,6 +4065,7 @@ const ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE = 'invalid_client';
3031
4065
  class ZohoAccountsAccessTokenError extends fetch.FetchRequestFactoryError {
3032
4066
  constructor(errorCode) {
3033
4067
  super(`ZohoAccountsAccessTokenError: ${errorCode}`);
4068
+ this.errorCode = void 0;
3034
4069
  this.errorCode = errorCode;
3035
4070
  }
3036
4071
  }
@@ -3040,20 +4075,11 @@ class ZohoAccountsAccessTokenError extends fetch.FetchRequestFactoryError {
3040
4075
  class ZohoAccountsAuthFailureError extends fetch.FetchRequestFactoryError {
3041
4076
  constructor(reason) {
3042
4077
  super(`Failed to retrieve proper authentication for the API call. Reason: ${reason}`);
4078
+ this.reason = void 0;
3043
4079
  this.reason = reason;
3044
4080
  }
3045
4081
  }
3046
4082
  const logZohoAccountsErrorToConsole = logZohoServerErrorFunction('ZohoAccounts');
3047
- function parseZohoAccountsError(responseError) {
3048
- return __awaiter(this, void 0, void 0, function* () {
3049
- const data = yield responseError.response.json().catch(x => undefined);
3050
- let result;
3051
- if (data) {
3052
- result = parseZohoAccountsServerErrorResponseData(data, responseError);
3053
- }
3054
- return result;
3055
- });
3056
- }
3057
4083
  function parseZohoAccountsServerErrorResponseData(errorResponseData, responseError) {
3058
4084
  let result;
3059
4085
  const error = errorResponseData.error;
@@ -3077,16 +4103,40 @@ const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccoun
3077
4103
  /**
3078
4104
  * Generates a new ZohoAccessTokenStringFactory.
3079
4105
  */
4106
+
4107
+ function _call$2(body, then, direct) {
4108
+ if (direct) {
4109
+ return then ? then(body()) : body();
4110
+ }
4111
+ try {
4112
+ var result = Promise.resolve(body());
4113
+ return then ? result.then(then) : result;
4114
+ } catch (e) {
4115
+ return Promise.reject(e);
4116
+ }
4117
+ }
3080
4118
  function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
3081
- return () => __awaiter(this, void 0, void 0, function* () {
3082
- const token = yield zohoAccessTokenFactory();
3083
- if (!(token === null || token === void 0 ? void 0 : token.accessToken)) {
3084
- throw new ZohoAccountsAuthFailureError();
3085
- }
3086
- return token.accessToken;
3087
- });
4119
+ return function () {
4120
+ return _call$2(zohoAccessTokenFactory, function (token) {
4121
+ if (!(token != null && token.accessToken)) {
4122
+ throw new ZohoAccountsAuthFailureError();
4123
+ }
4124
+ return token.accessToken;
4125
+ });
4126
+ };
3088
4127
  }
3089
4128
 
4129
+ function _call$1(body, then, direct) {
4130
+ if (direct) {
4131
+ return then ? then(body()) : body();
4132
+ }
4133
+ try {
4134
+ var result = Promise.resolve(body());
4135
+ return then ? result.then(then) : result;
4136
+ } catch (e) {
4137
+ return Promise.reject(e);
4138
+ }
4139
+ }
3090
4140
  function zohoRecruitFactory(factoryConfig) {
3091
4141
  const {
3092
4142
  accountsContext
@@ -3096,14 +4146,16 @@ function zohoRecruitFactory(factoryConfig) {
3096
4146
  logZohoServerErrorFunction,
3097
4147
  fetchFactory = input => fetch.nodeFetchService.makeFetch({
3098
4148
  baseUrl: input.apiUrl,
3099
- baseRequest: () => __awaiter(this, void 0, void 0, function* () {
3100
- return {
3101
- headers: {
3102
- 'Content-Type': 'application/json',
3103
- Authorization: `Bearer ${yield accessTokenStringFactory()}`
3104
- }
3105
- };
3106
- }),
4149
+ baseRequest: function () {
4150
+ return _call$1(accessTokenStringFactory, function (_accessTokenStringFac) {
4151
+ return {
4152
+ headers: {
4153
+ 'Content-Type': 'application/json',
4154
+ Authorization: `Bearer ${_accessTokenStringFac}`
4155
+ }
4156
+ };
4157
+ });
4158
+ },
3107
4159
  timeout: 20 * 1000,
3108
4160
  requireOkResponse: true,
3109
4161
  useTimeout: true // use timeout
@@ -3125,7 +4177,7 @@ function zohoRecruitFactory(factoryConfig) {
3125
4177
  const recruitContext = {
3126
4178
  fetch: fetch$1,
3127
4179
  fetchJson,
3128
- config: Object.assign(Object.assign({}, config), {
4180
+ config: Object.assign({}, config, {
3129
4181
  apiUrl
3130
4182
  })
3131
4183
  };
@@ -3143,8 +4195,8 @@ function zohoRecruitFactory(factoryConfig) {
3143
4195
  */
3144
4196
  function accessToken(context) {
3145
4197
  return input => {
3146
- var _a, _b, _c, _d, _e;
3147
- return context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${(_b = (_a = input === null || input === void 0 ? void 0 : input.client) === null || _a === void 0 ? void 0 : _a.clientId) !== null && _b !== void 0 ? _b : context.config.clientId}&client_secret=${(_d = (_c = input === null || input === void 0 ? void 0 : input.client) === null || _c === void 0 ? void 0 : _c.clientSecret) !== null && _d !== void 0 ? _d : context.config.clientSecret}&refresh_token=${(_e = input === null || input === void 0 ? void 0 : input.refreshToken) !== null && _e !== void 0 ? _e : context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
4198
+ var _input$client$clientI, _input$client, _input$client$clientS, _input$client2, _input$refreshToken;
4199
+ return context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${(_input$client$clientI = input == null || (_input$client = input.client) == null ? void 0 : _input$client.clientId) != null ? _input$client$clientI : context.config.clientId}&client_secret=${(_input$client$clientS = input == null || (_input$client2 = input.client) == null ? void 0 : _input$client2.clientSecret) != null ? _input$client$clientS : context.config.clientSecret}&refresh_token=${(_input$refreshToken = input == null ? void 0 : input.refreshToken) != null ? _input$refreshToken : context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
3148
4200
  };
3149
4201
  }
3150
4202
  function zohoAccountsApiFetchJsonInput(method, body) {
@@ -3168,6 +4220,81 @@ function zohoAccountsConfigApiUrl(input) {
3168
4220
  }
3169
4221
  }
3170
4222
 
4223
+ function _call(body, then, direct) {
4224
+ if (direct) {
4225
+ return then ? then(body()) : body();
4226
+ }
4227
+ try {
4228
+ var result = Promise.resolve(body());
4229
+ return then ? result.then(then) : result;
4230
+ } catch (e) {
4231
+ return Promise.reject(e);
4232
+ }
4233
+ } /**
4234
+ * Creates a ZohoAccountsZohoAccessTokenFactoryConfig
4235
+ *
4236
+ * @param config
4237
+ * @returns
4238
+ */
4239
+ function _async(f) {
4240
+ return function () {
4241
+ for (var args = [], i = 0; i < arguments.length; i++) {
4242
+ args[i] = arguments[i];
4243
+ }
4244
+ try {
4245
+ return Promise.resolve(f.apply(this, args));
4246
+ } catch (e) {
4247
+ return Promise.reject(e);
4248
+ }
4249
+ };
4250
+ }
4251
+ function _await(value, then, direct) {
4252
+ if (direct) {
4253
+ return then ? then(value) : value;
4254
+ }
4255
+ if (!value || !value.then) {
4256
+ value = Promise.resolve(value);
4257
+ }
4258
+ return then ? value.then(then) : value;
4259
+ }
4260
+ function _catch(body, recover) {
4261
+ try {
4262
+ var result = body();
4263
+ } catch (e) {
4264
+ return recover(e);
4265
+ }
4266
+ if (result && result.then) {
4267
+ return result.then(void 0, recover);
4268
+ }
4269
+ return result;
4270
+ }
4271
+ function _empty() {}
4272
+ function _awaitIgnored(value, direct) {
4273
+ if (!direct) {
4274
+ return value && value.then ? value.then(_empty) : Promise.resolve();
4275
+ }
4276
+ }
4277
+ function _continueIgnored(value) {
4278
+ if (value && value.then) {
4279
+ return value.then(_empty);
4280
+ }
4281
+ }
4282
+ function _invokeIgnored(body) {
4283
+ var result = body();
4284
+ if (result && result.then) {
4285
+ return result.then(_empty);
4286
+ }
4287
+ }
4288
+ function _continue(value, then) {
4289
+ return value && value.then ? value.then(then) : then(value);
4290
+ }
4291
+ function _invoke(body, then) {
4292
+ var result = body();
4293
+ if (result && result.then) {
4294
+ return result.then(then);
4295
+ }
4296
+ return then(result);
4297
+ }
3171
4298
  function zohoAccountsFactory(factoryConfig) {
3172
4299
  const {
3173
4300
  logZohoServerErrorFunction,
@@ -3184,7 +4311,7 @@ function zohoAccountsFactory(factoryConfig) {
3184
4311
  })
3185
4312
  } = factoryConfig;
3186
4313
  return config => {
3187
- var _a;
4314
+ var _config$apiUrl;
3188
4315
  if (!config.refreshToken) {
3189
4316
  throw new Error('ZohoAccountsConfig missing refreshToken.');
3190
4317
  } else if (!config.clientId) {
@@ -3192,7 +4319,7 @@ function zohoAccountsFactory(factoryConfig) {
3192
4319
  } else if (!config.clientSecret) {
3193
4320
  throw new Error('ZohoAccountsConfig missing clientSecret.');
3194
4321
  }
3195
- const apiUrl = zohoAccountsConfigApiUrl((_a = config.apiUrl) !== null && _a !== void 0 ? _a : 'us');
4322
+ const apiUrl = zohoAccountsConfigApiUrl((_config$apiUrl = config.apiUrl) != null ? _config$apiUrl : 'us');
3196
4323
  const baseFetch = fetchFactory({
3197
4324
  apiUrl
3198
4325
  });
@@ -3201,22 +4328,23 @@ function zohoAccountsFactory(factoryConfig) {
3201
4328
  interceptJsonResponse: interceptZohoAccountsErrorResponse,
3202
4329
  handleFetchJsonParseErrorFunction: fetch.returnNullHandleFetchJsonParseErrorFunction
3203
4330
  });
3204
- const tokenRefresher = () => __awaiter(this, void 0, void 0, function* () {
4331
+ const tokenRefresher = _async(function () {
3205
4332
  const createdAt = new Date().getTime();
3206
- const {
4333
+ return _call(accessToken(accountsContext), function ({
3207
4334
  access_token,
3208
4335
  api_domain,
3209
4336
  scope,
3210
4337
  expires_in
3211
- } = yield accessToken(accountsContext)();
3212
- const result = {
3213
- accessToken: access_token,
3214
- apiDomain: api_domain,
3215
- expiresIn: expires_in,
3216
- expiresAt: new Date(createdAt + expires_in * util.MS_IN_SECOND),
3217
- scope
3218
- };
3219
- return result;
4338
+ }) {
4339
+ const result = {
4340
+ accessToken: access_token,
4341
+ apiDomain: api_domain,
4342
+ expiresIn: expires_in,
4343
+ expiresAt: new Date(createdAt + expires_in * util.MS_IN_SECOND),
4344
+ scope
4345
+ };
4346
+ return result;
4347
+ });
3220
4348
  });
3221
4349
  const loadAccessToken = zohoAccountsZohoAccessTokenFactory({
3222
4350
  tokenRefresher,
@@ -3226,7 +4354,7 @@ function zohoAccountsFactory(factoryConfig) {
3226
4354
  fetch: fetch$1,
3227
4355
  fetchJson,
3228
4356
  loadAccessToken,
3229
- config: Object.assign(Object.assign({}, config), {
4357
+ config: Object.assign({}, config, {
3230
4358
  apiUrl
3231
4359
  })
3232
4360
  };
@@ -3236,55 +4364,59 @@ function zohoAccountsFactory(factoryConfig) {
3236
4364
  return zohoAccounts;
3237
4365
  };
3238
4366
  }
3239
- /**
3240
- * Creates a ZohoAccountsZohoAccessTokenFactoryConfig
3241
- *
3242
- * @param config
3243
- * @returns
3244
- */
3245
4367
  function zohoAccountsZohoAccessTokenFactory(config) {
3246
4368
  const {
3247
4369
  tokenRefresher,
3248
4370
  accessTokenCache,
3249
4371
  tokenExpirationBuffer: inputTokenExpirationBuffer
3250
4372
  } = config;
3251
- const tokenExpirationBuffer = inputTokenExpirationBuffer !== null && inputTokenExpirationBuffer !== void 0 ? inputTokenExpirationBuffer : util.MS_IN_MINUTE;
4373
+ const tokenExpirationBuffer = inputTokenExpirationBuffer != null ? inputTokenExpirationBuffer : util.MS_IN_MINUTE;
3252
4374
  /**
3253
4375
  * Caches the token internally here until it expires.
3254
4376
  */
3255
4377
  let currentToken = null;
3256
- return () => __awaiter(this, void 0, void 0, function* () {
4378
+ return _async(function () {
3257
4379
  // load from cache
3258
- if (!currentToken) {
3259
- const cachedToken = yield accessTokenCache === null || accessTokenCache === void 0 ? void 0 : accessTokenCache.loadCachedToken();
3260
- if (cachedToken) {
3261
- currentToken = cachedToken;
3262
- }
3263
- }
3264
- // check expiration
3265
- if (currentToken != null) {
3266
- const isExpired = new Date().getTime() + tokenExpirationBuffer >= currentToken.expiresAt.getTime();
3267
- if (isExpired) {
3268
- currentToken = null;
3269
- }
3270
- }
3271
- // load from source
3272
- if (!currentToken) {
3273
- try {
3274
- currentToken = yield tokenRefresher();
3275
- } catch (e) {
3276
- console.error(`zohoAccountsZohoAccessTokenFactory(): Failed retrieving new token from tokenRefresher: `, e);
3277
- throw new ZohoAccountsAuthFailureError('Token Refresh Failed');
4380
+ return _invoke(function () {
4381
+ if (!currentToken) {
4382
+ return _await(accessTokenCache == null ? void 0 : accessTokenCache.loadCachedToken(), function (cachedToken) {
4383
+ if (cachedToken) {
4384
+ currentToken = cachedToken;
4385
+ }
4386
+ });
3278
4387
  }
3279
- if (currentToken) {
3280
- try {
3281
- yield accessTokenCache === null || accessTokenCache === void 0 ? void 0 : accessTokenCache.updateCachedToken(currentToken);
3282
- } catch (e) {
3283
- // do nothing
4388
+ }, function () {
4389
+ // check expiration
4390
+ if (currentToken != null) {
4391
+ const isExpired = new Date().getTime() + tokenExpirationBuffer >= currentToken.expiresAt.getTime();
4392
+ if (isExpired) {
4393
+ currentToken = null;
3284
4394
  }
3285
4395
  }
3286
- }
3287
- return currentToken;
4396
+ // load from source
4397
+ return _invoke(function () {
4398
+ if (!currentToken) {
4399
+ return _continue(_catch(function () {
4400
+ return _call(tokenRefresher, function (_tokenRefresher) {
4401
+ currentToken = _tokenRefresher;
4402
+ });
4403
+ }, function (e) {
4404
+ console.error(`zohoAccountsZohoAccessTokenFactory(): Failed retrieving new token from tokenRefresher: `, e);
4405
+ throw new ZohoAccountsAuthFailureError('Token Refresh Failed');
4406
+ }), function (_result) {
4407
+ return _invokeIgnored(function () {
4408
+ if (currentToken) {
4409
+ return _continueIgnored(_catch(function () {
4410
+ return _awaitIgnored(accessTokenCache == null ? void 0 : accessTokenCache.updateCachedToken(currentToken));
4411
+ }, _empty));
4412
+ }
4413
+ });
4414
+ });
4415
+ }
4416
+ }, function (_result2) {
4417
+ return currentToken;
4418
+ });
4419
+ });
3288
4420
  });
3289
4421
  }
3290
4422