@dereekb/util 12.6.21 → 12.7.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/fetch/index.cjs.js +62 -148
- package/fetch/index.esm.js +62 -148
- package/fetch/package.json +1 -1
- package/index.cjs.js +116 -199
- package/index.esm.js +116 -199
- package/package.json +1 -1
- package/src/lib/key.d.ts +4 -0
- package/src/lib/promise/promise.d.ts +2 -2
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23,7 +23,7 @@ var global$b =
|
|
|
23
23
|
|
|
24
24
|
var objectGetOwnPropertyDescriptor = {};
|
|
25
25
|
|
|
26
|
-
var fails$
|
|
26
|
+
var fails$c = function (exec) {
|
|
27
27
|
try {
|
|
28
28
|
return !!exec();
|
|
29
29
|
} catch (error) {
|
|
@@ -31,17 +31,17 @@ var fails$d = function (exec) {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
var fails$
|
|
34
|
+
var fails$b = fails$c;
|
|
35
35
|
|
|
36
36
|
// Detect IE8's incomplete defineProperty implementation
|
|
37
|
-
var descriptors = !fails$
|
|
37
|
+
var descriptors = !fails$b(function () {
|
|
38
38
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
39
39
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
var fails$
|
|
42
|
+
var fails$a = fails$c;
|
|
43
43
|
|
|
44
|
-
var functionBindNative = !fails$
|
|
44
|
+
var functionBindNative = !fails$a(function () {
|
|
45
45
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
46
46
|
var test = (function () { /* empty */ }).bind();
|
|
47
47
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -60,15 +60,15 @@ var objectPropertyIsEnumerable = {};
|
|
|
60
60
|
|
|
61
61
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
62
62
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
63
|
-
var getOwnPropertyDescriptor$
|
|
63
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
64
64
|
|
|
65
65
|
// Nashorn ~ JDK8 bug
|
|
66
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
66
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
67
67
|
|
|
68
68
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
69
69
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
70
70
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
71
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
71
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
72
72
|
return !!descriptor && descriptor.enumerable;
|
|
73
73
|
} : $propertyIsEnumerable;
|
|
74
74
|
|
|
@@ -103,19 +103,19 @@ var classofRaw$2 = function (it) {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
var uncurryThis$c = functionUncurryThis;
|
|
106
|
-
var fails$
|
|
107
|
-
var classof$
|
|
106
|
+
var fails$9 = fails$c;
|
|
107
|
+
var classof$2 = classofRaw$2;
|
|
108
108
|
|
|
109
109
|
var $Object$4 = Object;
|
|
110
110
|
var split = uncurryThis$c(''.split);
|
|
111
111
|
|
|
112
112
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
113
|
-
var indexedObject = fails$
|
|
113
|
+
var indexedObject = fails$9(function () {
|
|
114
114
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
115
115
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
116
116
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
117
117
|
}) ? function (it) {
|
|
118
|
-
return classof$
|
|
118
|
+
return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
119
119
|
} : $Object$4;
|
|
120
120
|
|
|
121
121
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -126,12 +126,12 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
126
126
|
|
|
127
127
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
128
128
|
|
|
129
|
-
var $TypeError$
|
|
129
|
+
var $TypeError$b = TypeError;
|
|
130
130
|
|
|
131
131
|
// `RequireObjectCoercible` abstract operation
|
|
132
132
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
133
133
|
var requireObjectCoercible$2 = function (it) {
|
|
134
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
134
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
135
135
|
return it;
|
|
136
136
|
};
|
|
137
137
|
|
|
@@ -208,13 +208,13 @@ var engineV8Version = version;
|
|
|
208
208
|
|
|
209
209
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
210
210
|
var V8_VERSION = engineV8Version;
|
|
211
|
-
var fails$
|
|
211
|
+
var fails$8 = fails$c;
|
|
212
212
|
var global$8 = global$b;
|
|
213
213
|
|
|
214
214
|
var $String$3 = global$8.String;
|
|
215
215
|
|
|
216
216
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
217
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
217
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
218
218
|
var symbol = Symbol('symbol detection');
|
|
219
219
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
220
220
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -259,12 +259,12 @@ var tryToString$3 = function (argument) {
|
|
|
259
259
|
var isCallable$a = isCallable$e;
|
|
260
260
|
var tryToString$2 = tryToString$3;
|
|
261
261
|
|
|
262
|
-
var $TypeError$
|
|
262
|
+
var $TypeError$a = TypeError;
|
|
263
263
|
|
|
264
264
|
// `Assert: IsCallable(argument) is true`
|
|
265
265
|
var aCallable$a = function (argument) {
|
|
266
266
|
if (isCallable$a(argument)) return argument;
|
|
267
|
-
throw new $TypeError$
|
|
267
|
+
throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
var aCallable$9 = aCallable$a;
|
|
@@ -281,7 +281,7 @@ var call$a = functionCall;
|
|
|
281
281
|
var isCallable$9 = isCallable$e;
|
|
282
282
|
var isObject$5 = isObject$6;
|
|
283
283
|
|
|
284
|
-
var $TypeError$
|
|
284
|
+
var $TypeError$9 = TypeError;
|
|
285
285
|
|
|
286
286
|
// `OrdinaryToPrimitive` abstract operation
|
|
287
287
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -290,7 +290,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
290
290
|
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
291
291
|
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
|
|
292
292
|
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
293
|
-
throw new $TypeError$
|
|
293
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
var sharedStore = {exports: {}};
|
|
@@ -338,12 +338,12 @@ var $Object$2 = Object;
|
|
|
338
338
|
|
|
339
339
|
// `ToObject` abstract operation
|
|
340
340
|
// https://tc39.es/ecma262/#sec-toobject
|
|
341
|
-
var toObject$
|
|
341
|
+
var toObject$2 = function (argument) {
|
|
342
342
|
return $Object$2(requireObjectCoercible(argument));
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
var uncurryThis$a = functionUncurryThis;
|
|
346
|
-
var toObject$
|
|
346
|
+
var toObject$1 = toObject$2;
|
|
347
347
|
|
|
348
348
|
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
349
349
|
|
|
@@ -351,7 +351,7 @@ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
|
351
351
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
352
352
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
353
353
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
354
|
-
return hasOwnProperty(toObject$
|
|
354
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
355
355
|
};
|
|
356
356
|
|
|
357
357
|
var uncurryThis$9 = functionUncurryThis;
|
|
@@ -390,7 +390,7 @@ var getMethod$3 = getMethod$4;
|
|
|
390
390
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
391
391
|
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
392
392
|
|
|
393
|
-
var $TypeError$
|
|
393
|
+
var $TypeError$8 = TypeError;
|
|
394
394
|
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
395
395
|
|
|
396
396
|
// `ToPrimitive` abstract operation
|
|
@@ -403,7 +403,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
403
403
|
if (pref === undefined) pref = 'default';
|
|
404
404
|
result = call$9(exoticToPrim, input, pref);
|
|
405
405
|
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
406
|
-
throw new $TypeError$
|
|
406
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
407
407
|
}
|
|
408
408
|
if (pref === undefined) pref = 'number';
|
|
409
409
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -430,19 +430,19 @@ var documentCreateElement$1 = function (it) {
|
|
|
430
430
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
var DESCRIPTORS$
|
|
434
|
-
var fails$
|
|
433
|
+
var DESCRIPTORS$9 = descriptors;
|
|
434
|
+
var fails$7 = fails$c;
|
|
435
435
|
var createElement = documentCreateElement$1;
|
|
436
436
|
|
|
437
437
|
// Thanks to IE8 for its funny defineProperty
|
|
438
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
438
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
439
439
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
440
440
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
441
441
|
get: function () { return 7; }
|
|
442
442
|
}).a !== 7;
|
|
443
443
|
});
|
|
444
444
|
|
|
445
|
-
var DESCRIPTORS$
|
|
445
|
+
var DESCRIPTORS$8 = descriptors;
|
|
446
446
|
var call$8 = functionCall;
|
|
447
447
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
448
448
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
@@ -456,7 +456,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
456
456
|
|
|
457
457
|
// `Object.getOwnPropertyDescriptor` method
|
|
458
458
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
459
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
459
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
460
460
|
O = toIndexedObject$3(O);
|
|
461
461
|
P = toPropertyKey$1(P);
|
|
462
462
|
if (IE8_DOM_DEFINE$1) try {
|
|
@@ -467,12 +467,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
467
467
|
|
|
468
468
|
var objectDefineProperty = {};
|
|
469
469
|
|
|
470
|
-
var DESCRIPTORS$
|
|
471
|
-
var fails$
|
|
470
|
+
var DESCRIPTORS$7 = descriptors;
|
|
471
|
+
var fails$6 = fails$c;
|
|
472
472
|
|
|
473
473
|
// V8 ~ Chrome 36-
|
|
474
474
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
475
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
475
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
476
476
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
477
477
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
478
478
|
value: 42,
|
|
@@ -483,21 +483,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
|
483
483
|
var isObject$2 = isObject$6;
|
|
484
484
|
|
|
485
485
|
var $String$1 = String;
|
|
486
|
-
var $TypeError$
|
|
486
|
+
var $TypeError$7 = TypeError;
|
|
487
487
|
|
|
488
488
|
// `Assert: Type(argument) is Object`
|
|
489
489
|
var anObject$f = function (argument) {
|
|
490
490
|
if (isObject$2(argument)) return argument;
|
|
491
|
-
throw new $TypeError$
|
|
491
|
+
throw new $TypeError$7($String$1(argument) + ' is not an object');
|
|
492
492
|
};
|
|
493
493
|
|
|
494
|
-
var DESCRIPTORS$
|
|
494
|
+
var DESCRIPTORS$6 = descriptors;
|
|
495
495
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
496
496
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
497
497
|
var anObject$e = anObject$f;
|
|
498
498
|
var toPropertyKey = toPropertyKey$2;
|
|
499
499
|
|
|
500
|
-
var $TypeError$
|
|
500
|
+
var $TypeError$6 = TypeError;
|
|
501
501
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
502
502
|
var $defineProperty = Object.defineProperty;
|
|
503
503
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -508,7 +508,7 @@ var WRITABLE = 'writable';
|
|
|
508
508
|
|
|
509
509
|
// `Object.defineProperty` method
|
|
510
510
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
511
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
511
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
512
512
|
anObject$e(O);
|
|
513
513
|
P = toPropertyKey(P);
|
|
514
514
|
anObject$e(Attributes);
|
|
@@ -530,16 +530,16 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
530
530
|
if (IE8_DOM_DEFINE) try {
|
|
531
531
|
return $defineProperty(O, P, Attributes);
|
|
532
532
|
} catch (error) { /* empty */ }
|
|
533
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
533
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
534
534
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
535
535
|
return O;
|
|
536
536
|
};
|
|
537
537
|
|
|
538
|
-
var DESCRIPTORS$
|
|
538
|
+
var DESCRIPTORS$5 = descriptors;
|
|
539
539
|
var definePropertyModule$4 = objectDefineProperty;
|
|
540
540
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
541
541
|
|
|
542
|
-
var createNonEnumerableProperty$3 = DESCRIPTORS$
|
|
542
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
543
543
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
544
544
|
} : function (object, key, value) {
|
|
545
545
|
object[key] = value;
|
|
@@ -548,17 +548,17 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
548
548
|
|
|
549
549
|
var makeBuiltIn$3 = {exports: {}};
|
|
550
550
|
|
|
551
|
-
var DESCRIPTORS$
|
|
551
|
+
var DESCRIPTORS$4 = descriptors;
|
|
552
552
|
var hasOwn$6 = hasOwnProperty_1;
|
|
553
553
|
|
|
554
554
|
var FunctionPrototype = Function.prototype;
|
|
555
555
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
556
|
-
var getDescriptor = DESCRIPTORS$
|
|
556
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
557
557
|
|
|
558
558
|
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
559
559
|
// additional protection from minified / mangled / dropped function names
|
|
560
560
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
561
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
561
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
562
562
|
|
|
563
563
|
var functionName = {
|
|
564
564
|
EXISTS: EXISTS,
|
|
@@ -671,10 +671,10 @@ var internalState = {
|
|
|
671
671
|
};
|
|
672
672
|
|
|
673
673
|
var uncurryThis$7 = functionUncurryThis;
|
|
674
|
-
var fails$
|
|
674
|
+
var fails$5 = fails$c;
|
|
675
675
|
var isCallable$6 = isCallable$e;
|
|
676
676
|
var hasOwn$4 = hasOwnProperty_1;
|
|
677
|
-
var DESCRIPTORS$
|
|
677
|
+
var DESCRIPTORS$3 = descriptors;
|
|
678
678
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
679
679
|
var inspectSource = inspectSource$1;
|
|
680
680
|
var InternalStateModule$1 = internalState;
|
|
@@ -688,7 +688,7 @@ var stringSlice = uncurryThis$7(''.slice);
|
|
|
688
688
|
var replace = uncurryThis$7(''.replace);
|
|
689
689
|
var join = uncurryThis$7([].join);
|
|
690
690
|
|
|
691
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
691
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
692
692
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
693
693
|
});
|
|
694
694
|
|
|
@@ -701,7 +701,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
701
701
|
if (options && options.getter) name = 'get ' + name;
|
|
702
702
|
if (options && options.setter) name = 'set ' + name;
|
|
703
703
|
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
704
|
-
if (DESCRIPTORS$
|
|
704
|
+
if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
705
705
|
else value.name = name;
|
|
706
706
|
}
|
|
707
707
|
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
@@ -709,7 +709,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
709
709
|
}
|
|
710
710
|
try {
|
|
711
711
|
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
712
|
-
if (DESCRIPTORS$
|
|
712
|
+
if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
|
|
713
713
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
714
714
|
} else if (value.prototype) value.prototype = undefined;
|
|
715
715
|
} catch (error) { /* empty */ }
|
|
@@ -806,19 +806,19 @@ var toLength = toLength$1;
|
|
|
806
806
|
|
|
807
807
|
// `LengthOfArrayLike` abstract operation
|
|
808
808
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
809
|
-
var lengthOfArrayLike$
|
|
809
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
810
810
|
return toLength(obj.length);
|
|
811
811
|
};
|
|
812
812
|
|
|
813
813
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
814
814
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
815
|
-
var lengthOfArrayLike$
|
|
815
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
816
816
|
|
|
817
817
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
818
818
|
var createMethod = function (IS_INCLUDES) {
|
|
819
819
|
return function ($this, el, fromIndex) {
|
|
820
820
|
var O = toIndexedObject$2($this);
|
|
821
|
-
var length = lengthOfArrayLike$
|
|
821
|
+
var length = lengthOfArrayLike$1(O);
|
|
822
822
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
823
823
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
824
824
|
var value;
|
|
@@ -925,7 +925,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
|
|
928
|
-
var fails$
|
|
928
|
+
var fails$4 = fails$c;
|
|
929
929
|
var isCallable$4 = isCallable$e;
|
|
930
930
|
|
|
931
931
|
var replacement = /#|\.prototype\./;
|
|
@@ -934,7 +934,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
934
934
|
var value = data[normalize(feature)];
|
|
935
935
|
return value === POLYFILL ? true
|
|
936
936
|
: value === NATIVE ? false
|
|
937
|
-
: isCallable$4(detection) ? fails$
|
|
937
|
+
: isCallable$4(detection) ? fails$4(detection)
|
|
938
938
|
: !!detection;
|
|
939
939
|
};
|
|
940
940
|
|
|
@@ -949,7 +949,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
949
949
|
var isForced_1 = isForced$1;
|
|
950
950
|
|
|
951
951
|
var global$2 = global$b;
|
|
952
|
-
var getOwnPropertyDescriptor
|
|
952
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
953
953
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
954
954
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
955
955
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
@@ -986,7 +986,7 @@ var _export = function (options, source) {
|
|
|
986
986
|
if (target) for (key in source) {
|
|
987
987
|
sourceProperty = source[key];
|
|
988
988
|
if (options.dontCallGetSet) {
|
|
989
|
-
descriptor = getOwnPropertyDescriptor
|
|
989
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
990
990
|
targetProperty = descriptor && descriptor.value;
|
|
991
991
|
} else targetProperty = target[key];
|
|
992
992
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1005,16 +1005,16 @@ var _export = function (options, source) {
|
|
|
1005
1005
|
|
|
1006
1006
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1007
1007
|
|
|
1008
|
-
var $TypeError$
|
|
1008
|
+
var $TypeError$5 = TypeError;
|
|
1009
1009
|
|
|
1010
1010
|
var anInstance$1 = function (it, Prototype) {
|
|
1011
1011
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1012
|
-
throw new $TypeError$
|
|
1012
|
+
throw new $TypeError$5('Incorrect invocation');
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
|
-
var fails$
|
|
1015
|
+
var fails$3 = fails$c;
|
|
1016
1016
|
|
|
1017
|
-
var correctPrototypeGetter = !fails$
|
|
1017
|
+
var correctPrototypeGetter = !fails$3(function () {
|
|
1018
1018
|
function F() { /* empty */ }
|
|
1019
1019
|
F.prototype.constructor = null;
|
|
1020
1020
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1023,7 +1023,7 @@ var correctPrototypeGetter = !fails$4(function () {
|
|
|
1023
1023
|
|
|
1024
1024
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1025
1025
|
var isCallable$3 = isCallable$e;
|
|
1026
|
-
var toObject
|
|
1026
|
+
var toObject = toObject$2;
|
|
1027
1027
|
var sharedKey$1 = sharedKey$3;
|
|
1028
1028
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1029
1029
|
|
|
@@ -1035,7 +1035,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1035
1035
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1036
1036
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1037
1037
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1038
|
-
var object = toObject
|
|
1038
|
+
var object = toObject(O);
|
|
1039
1039
|
if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1040
1040
|
var constructor = object.constructor;
|
|
1041
1041
|
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
@@ -1052,12 +1052,12 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1052
1052
|
return defineProperty.f(target, name, descriptor);
|
|
1053
1053
|
};
|
|
1054
1054
|
|
|
1055
|
-
var DESCRIPTORS$
|
|
1055
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1056
1056
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1057
1057
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1058
1058
|
|
|
1059
1059
|
var createProperty$1 = function (object, key, value) {
|
|
1060
|
-
if (DESCRIPTORS$
|
|
1060
|
+
if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
|
|
1061
1061
|
else object[key] = value;
|
|
1062
1062
|
};
|
|
1063
1063
|
|
|
@@ -1073,7 +1073,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
1073
1073
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
-
var DESCRIPTORS$
|
|
1076
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1077
1077
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1078
1078
|
var definePropertyModule = objectDefineProperty;
|
|
1079
1079
|
var anObject$c = anObject$f;
|
|
@@ -1083,7 +1083,7 @@ var objectKeys = objectKeys$1;
|
|
|
1083
1083
|
// `Object.defineProperties` method
|
|
1084
1084
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1085
1085
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1086
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1086
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1087
1087
|
anObject$c(O);
|
|
1088
1088
|
var props = toIndexedObject(Properties);
|
|
1089
1089
|
var keys = objectKeys(Properties);
|
|
@@ -1182,7 +1182,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1182
1182
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1183
1183
|
};
|
|
1184
1184
|
|
|
1185
|
-
var fails$
|
|
1185
|
+
var fails$2 = fails$c;
|
|
1186
1186
|
var isCallable$2 = isCallable$e;
|
|
1187
1187
|
var isObject = isObject$6;
|
|
1188
1188
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1207,7 +1207,7 @@ if ([].keys) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$
|
|
1210
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
|
|
1211
1211
|
var test = {};
|
|
1212
1212
|
// FF44- legacy iterators case
|
|
1213
1213
|
return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
|
|
@@ -1228,7 +1228,7 @@ var iteratorsCore = {
|
|
|
1228
1228
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
1229
1229
|
};
|
|
1230
1230
|
|
|
1231
|
-
var $$
|
|
1231
|
+
var $$c = _export;
|
|
1232
1232
|
var global$1 = global$b;
|
|
1233
1233
|
var anInstance = anInstance$1;
|
|
1234
1234
|
var anObject$a = anObject$f;
|
|
@@ -1236,32 +1236,32 @@ var isCallable$1 = isCallable$e;
|
|
|
1236
1236
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1237
1237
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1238
1238
|
var createProperty = createProperty$1;
|
|
1239
|
-
var fails$
|
|
1239
|
+
var fails$1 = fails$c;
|
|
1240
1240
|
var hasOwn = hasOwnProperty_1;
|
|
1241
1241
|
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1242
1242
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1243
|
-
var DESCRIPTORS
|
|
1243
|
+
var DESCRIPTORS = descriptors;
|
|
1244
1244
|
|
|
1245
1245
|
var CONSTRUCTOR = 'constructor';
|
|
1246
1246
|
var ITERATOR$2 = 'Iterator';
|
|
1247
1247
|
var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
|
|
1248
1248
|
|
|
1249
|
-
var $TypeError$
|
|
1249
|
+
var $TypeError$4 = TypeError;
|
|
1250
1250
|
var NativeIterator = global$1[ITERATOR$2];
|
|
1251
1251
|
|
|
1252
1252
|
// FF56- have non-standard global helper `Iterator`
|
|
1253
|
-
var FORCED
|
|
1253
|
+
var FORCED = !isCallable$1(NativeIterator)
|
|
1254
1254
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
1255
1255
|
// FF44- non-standard `Iterator` passes previous tests
|
|
1256
|
-
|| !fails$
|
|
1256
|
+
|| !fails$1(function () { NativeIterator({}); });
|
|
1257
1257
|
|
|
1258
1258
|
var IteratorConstructor = function Iterator() {
|
|
1259
1259
|
anInstance(this, IteratorPrototype$1);
|
|
1260
|
-
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$
|
|
1260
|
+
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$4('Abstract class Iterator not directly constructable');
|
|
1261
1261
|
};
|
|
1262
1262
|
|
|
1263
1263
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1264
|
-
if (DESCRIPTORS
|
|
1264
|
+
if (DESCRIPTORS) {
|
|
1265
1265
|
defineBuiltInAccessor(IteratorPrototype$1, key, {
|
|
1266
1266
|
configurable: true,
|
|
1267
1267
|
get: function () {
|
|
@@ -1269,7 +1269,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
1269
1269
|
},
|
|
1270
1270
|
set: function (replacement) {
|
|
1271
1271
|
anObject$a(this);
|
|
1272
|
-
if (this === IteratorPrototype$1) throw new $TypeError$
|
|
1272
|
+
if (this === IteratorPrototype$1) throw new $TypeError$4("You can't redefine this property");
|
|
1273
1273
|
if (hasOwn(this, key)) this[key] = replacement;
|
|
1274
1274
|
else createProperty(this, key, replacement);
|
|
1275
1275
|
}
|
|
@@ -1279,7 +1279,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
1279
1279
|
|
|
1280
1280
|
if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
|
|
1281
1281
|
|
|
1282
|
-
if (FORCED
|
|
1282
|
+
if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
1283
1283
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
@@ -1287,7 +1287,7 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
1287
1287
|
|
|
1288
1288
|
// `Iterator` constructor
|
|
1289
1289
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1290
|
-
$$
|
|
1290
|
+
$$c({ global: true, constructor: true, forced: FORCED }, {
|
|
1291
1291
|
Iterator: IteratorConstructor
|
|
1292
1292
|
});
|
|
1293
1293
|
|
|
@@ -1426,7 +1426,7 @@ var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
};
|
|
1428
1428
|
|
|
1429
|
-
var $$
|
|
1429
|
+
var $$b = _export;
|
|
1430
1430
|
var call$5 = functionCall;
|
|
1431
1431
|
var aCallable$8 = aCallable$a;
|
|
1432
1432
|
var anObject$7 = anObject$f;
|
|
@@ -1451,7 +1451,7 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
|
1451
1451
|
|
|
1452
1452
|
// `Iterator.prototype.filter` method
|
|
1453
1453
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1454
|
-
$$
|
|
1454
|
+
$$b({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
1455
1455
|
filter: function filter(predicate) {
|
|
1456
1456
|
anObject$7(this);
|
|
1457
1457
|
aCallable$8(predicate);
|
|
@@ -1526,7 +1526,7 @@ var tryGet = function (it, key) {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
|
|
1528
1528
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1529
|
-
var classof$
|
|
1529
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1530
1530
|
var O, tag, result;
|
|
1531
1531
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1532
1532
|
// @@toStringTag case
|
|
@@ -1537,7 +1537,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1537
1537
|
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1538
1538
|
};
|
|
1539
1539
|
|
|
1540
|
-
var classof
|
|
1540
|
+
var classof = classof$1;
|
|
1541
1541
|
var getMethod = getMethod$4;
|
|
1542
1542
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1543
1543
|
var Iterators = iterators;
|
|
@@ -1548,7 +1548,7 @@ var ITERATOR = wellKnownSymbol('iterator');
|
|
|
1548
1548
|
var getIteratorMethod$2 = function (it) {
|
|
1549
1549
|
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
1550
1550
|
|| getMethod(it, '@@iterator')
|
|
1551
|
-
|| Iterators[classof
|
|
1551
|
+
|| Iterators[classof(it)];
|
|
1552
1552
|
};
|
|
1553
1553
|
|
|
1554
1554
|
var call$4 = functionCall;
|
|
@@ -1557,12 +1557,12 @@ var anObject$6 = anObject$f;
|
|
|
1557
1557
|
var tryToString$1 = tryToString$3;
|
|
1558
1558
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1559
1559
|
|
|
1560
|
-
var $TypeError$
|
|
1560
|
+
var $TypeError$3 = TypeError;
|
|
1561
1561
|
|
|
1562
1562
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1563
1563
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1564
1564
|
if (aCallable$6(iteratorMethod)) return anObject$6(call$4(iteratorMethod, argument));
|
|
1565
|
-
throw new $TypeError$
|
|
1565
|
+
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
1566
1566
|
};
|
|
1567
1567
|
|
|
1568
1568
|
var bind = functionBindContext;
|
|
@@ -1570,13 +1570,13 @@ var call$3 = functionCall;
|
|
|
1570
1570
|
var anObject$5 = anObject$f;
|
|
1571
1571
|
var tryToString = tryToString$3;
|
|
1572
1572
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1573
|
-
var lengthOfArrayLike
|
|
1573
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1574
1574
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
1575
1575
|
var getIterator = getIterator$1;
|
|
1576
1576
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1577
1577
|
var iteratorClose$2 = iteratorClose$5;
|
|
1578
1578
|
|
|
1579
|
-
var $TypeError$
|
|
1579
|
+
var $TypeError$2 = TypeError;
|
|
1580
1580
|
|
|
1581
1581
|
var Result = function (stopped, result) {
|
|
1582
1582
|
this.stopped = stopped;
|
|
@@ -1612,10 +1612,10 @@ var iterate$6 = function (iterable, unboundFunction, options) {
|
|
|
1612
1612
|
iterator = iterable;
|
|
1613
1613
|
} else {
|
|
1614
1614
|
iterFn = getIteratorMethod(iterable);
|
|
1615
|
-
if (!iterFn) throw new $TypeError$
|
|
1615
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
1616
1616
|
// optimisation for array iterators
|
|
1617
1617
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1618
|
-
for (index = 0, length = lengthOfArrayLike
|
|
1618
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1619
1619
|
result = callFn(iterable[index]);
|
|
1620
1620
|
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1621
1621
|
} return new Result(false);
|
|
@@ -1634,7 +1634,7 @@ var iterate$6 = function (iterable, unboundFunction, options) {
|
|
|
1634
1634
|
} return new Result(false);
|
|
1635
1635
|
};
|
|
1636
1636
|
|
|
1637
|
-
var $$
|
|
1637
|
+
var $$a = _export;
|
|
1638
1638
|
var iterate$5 = iterate$6;
|
|
1639
1639
|
var aCallable$5 = aCallable$a;
|
|
1640
1640
|
var anObject$4 = anObject$f;
|
|
@@ -1642,7 +1642,7 @@ var getIteratorDirect$4 = getIteratorDirect$6;
|
|
|
1642
1642
|
|
|
1643
1643
|
// `Iterator.prototype.forEach` method
|
|
1644
1644
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1645
|
-
$$
|
|
1645
|
+
$$a({ target: 'Iterator', proto: true, real: true }, {
|
|
1646
1646
|
forEach: function forEach(fn) {
|
|
1647
1647
|
anObject$4(this);
|
|
1648
1648
|
aCallable$5(fn);
|
|
@@ -1678,13 +1678,13 @@ var iteratorMap = function map(mapper) {
|
|
|
1678
1678
|
});
|
|
1679
1679
|
};
|
|
1680
1680
|
|
|
1681
|
-
var $$
|
|
1681
|
+
var $$9 = _export;
|
|
1682
1682
|
var map = iteratorMap;
|
|
1683
1683
|
var IS_PURE = isPure;
|
|
1684
1684
|
|
|
1685
1685
|
// `Iterator.prototype.map` method
|
|
1686
1686
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1687
|
-
$$
|
|
1687
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
1688
1688
|
map: map
|
|
1689
1689
|
});
|
|
1690
1690
|
|
|
@@ -1775,7 +1775,7 @@ var getIteratorDirect$2 = getIteratorDirect$6;
|
|
|
1775
1775
|
|
|
1776
1776
|
var INVALID_SIZE = 'Invalid size';
|
|
1777
1777
|
var $RangeError = RangeError;
|
|
1778
|
-
var $TypeError$
|
|
1778
|
+
var $TypeError$1 = TypeError;
|
|
1779
1779
|
var max = Math.max;
|
|
1780
1780
|
|
|
1781
1781
|
var SetRecord = function (set, intSize) {
|
|
@@ -1801,7 +1801,7 @@ var getSetRecord$7 = function (obj) {
|
|
|
1801
1801
|
var numSize = +obj.size;
|
|
1802
1802
|
// NOTE: If size is undefined, then numSize will be NaN
|
|
1803
1803
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1804
|
-
if (numSize !== numSize) throw new $TypeError$
|
|
1804
|
+
if (numSize !== numSize) throw new $TypeError$1(INVALID_SIZE);
|
|
1805
1805
|
var intSize = toIntegerOrInfinity(numSize);
|
|
1806
1806
|
if (intSize < 0) throw new $RangeError(INVALID_SIZE);
|
|
1807
1807
|
return new SetRecord(obj, intSize);
|
|
@@ -1868,13 +1868,13 @@ var setMethodAcceptSetLike$7 = function (name) {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
};
|
|
1870
1870
|
|
|
1871
|
-
var $$
|
|
1871
|
+
var $$8 = _export;
|
|
1872
1872
|
var difference = setDifference;
|
|
1873
1873
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
1874
1874
|
|
|
1875
1875
|
// `Set.prototype.difference` method
|
|
1876
1876
|
// https://github.com/tc39/proposal-set-methods
|
|
1877
|
-
$$
|
|
1877
|
+
$$8({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
1878
1878
|
difference: difference
|
|
1879
1879
|
});
|
|
1880
1880
|
|
|
@@ -1909,19 +1909,19 @@ var setIntersection = function intersection(other) {
|
|
|
1909
1909
|
return result;
|
|
1910
1910
|
};
|
|
1911
1911
|
|
|
1912
|
-
var $$
|
|
1913
|
-
var fails
|
|
1912
|
+
var $$7 = _export;
|
|
1913
|
+
var fails = fails$c;
|
|
1914
1914
|
var intersection = setIntersection;
|
|
1915
1915
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
1916
1916
|
|
|
1917
|
-
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails
|
|
1917
|
+
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
|
|
1918
1918
|
// eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
|
1919
1919
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
1920
1920
|
});
|
|
1921
1921
|
|
|
1922
1922
|
// `Set.prototype.intersection` method
|
|
1923
1923
|
// https://github.com/tc39/proposal-set-methods
|
|
1924
|
-
$$
|
|
1924
|
+
$$7({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
1925
1925
|
intersection: intersection
|
|
1926
1926
|
});
|
|
1927
1927
|
|
|
@@ -1947,13 +1947,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
1947
1947
|
}) !== false;
|
|
1948
1948
|
};
|
|
1949
1949
|
|
|
1950
|
-
var $$
|
|
1950
|
+
var $$6 = _export;
|
|
1951
1951
|
var isDisjointFrom = setIsDisjointFrom;
|
|
1952
1952
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
1953
1953
|
|
|
1954
1954
|
// `Set.prototype.isDisjointFrom` method
|
|
1955
1955
|
// https://github.com/tc39/proposal-set-methods
|
|
1956
|
-
$$
|
|
1956
|
+
$$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
|
|
1957
1957
|
isDisjointFrom: isDisjointFrom
|
|
1958
1958
|
});
|
|
1959
1959
|
|
|
@@ -1973,13 +1973,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
|
|
|
1973
1973
|
}, true) !== false;
|
|
1974
1974
|
};
|
|
1975
1975
|
|
|
1976
|
-
var $$
|
|
1976
|
+
var $$5 = _export;
|
|
1977
1977
|
var isSubsetOf = setIsSubsetOf;
|
|
1978
1978
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
1979
1979
|
|
|
1980
1980
|
// `Set.prototype.isSubsetOf` method
|
|
1981
1981
|
// https://github.com/tc39/proposal-set-methods
|
|
1982
|
-
$$
|
|
1982
|
+
$$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
|
|
1983
1983
|
isSubsetOf: isSubsetOf
|
|
1984
1984
|
});
|
|
1985
1985
|
|
|
@@ -2002,13 +2002,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
|
|
|
2002
2002
|
}) !== false;
|
|
2003
2003
|
};
|
|
2004
2004
|
|
|
2005
|
-
var $$
|
|
2005
|
+
var $$4 = _export;
|
|
2006
2006
|
var isSupersetOf = setIsSupersetOf;
|
|
2007
2007
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2008
2008
|
|
|
2009
2009
|
// `Set.prototype.isSupersetOf` method
|
|
2010
2010
|
// https://github.com/tc39/proposal-set-methods
|
|
2011
|
-
$$
|
|
2011
|
+
$$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
|
|
2012
2012
|
isSupersetOf: isSupersetOf
|
|
2013
2013
|
});
|
|
2014
2014
|
|
|
@@ -2035,13 +2035,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
2035
2035
|
return result;
|
|
2036
2036
|
};
|
|
2037
2037
|
|
|
2038
|
-
var $$
|
|
2038
|
+
var $$3 = _export;
|
|
2039
2039
|
var symmetricDifference = setSymmetricDifference;
|
|
2040
2040
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
2041
2041
|
|
|
2042
2042
|
// `Set.prototype.symmetricDifference` method
|
|
2043
2043
|
// https://github.com/tc39/proposal-set-methods
|
|
2044
|
-
$$
|
|
2044
|
+
$$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
|
|
2045
2045
|
symmetricDifference: symmetricDifference
|
|
2046
2046
|
});
|
|
2047
2047
|
|
|
@@ -2063,102 +2063,16 @@ var setUnion = function union(other) {
|
|
|
2063
2063
|
return result;
|
|
2064
2064
|
};
|
|
2065
2065
|
|
|
2066
|
-
var $$
|
|
2066
|
+
var $$2 = _export;
|
|
2067
2067
|
var union = setUnion;
|
|
2068
2068
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
2069
2069
|
|
|
2070
2070
|
// `Set.prototype.union` method
|
|
2071
2071
|
// https://github.com/tc39/proposal-set-methods
|
|
2072
|
-
$$
|
|
2072
|
+
$$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
2073
2073
|
union: union
|
|
2074
2074
|
});
|
|
2075
2075
|
|
|
2076
|
-
var classof = classofRaw$2;
|
|
2077
|
-
|
|
2078
|
-
// `IsArray` abstract operation
|
|
2079
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
2080
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2081
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
2082
|
-
return classof(argument) === 'Array';
|
|
2083
|
-
};
|
|
2084
|
-
|
|
2085
|
-
var DESCRIPTORS = descriptors;
|
|
2086
|
-
var isArray = isArray$1;
|
|
2087
|
-
|
|
2088
|
-
var $TypeError$2 = TypeError;
|
|
2089
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2090
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2091
|
-
|
|
2092
|
-
// Safari < 13 does not throw an error in this case
|
|
2093
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
2094
|
-
// makes no sense without proper strict mode support
|
|
2095
|
-
if (this !== undefined) return true;
|
|
2096
|
-
try {
|
|
2097
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2098
|
-
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2099
|
-
} catch (error) {
|
|
2100
|
-
return error instanceof TypeError;
|
|
2101
|
-
}
|
|
2102
|
-
}();
|
|
2103
|
-
|
|
2104
|
-
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2105
|
-
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2106
|
-
throw new $TypeError$2('Cannot set read only .length');
|
|
2107
|
-
} return O.length = length;
|
|
2108
|
-
} : function (O, length) {
|
|
2109
|
-
return O.length = length;
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
var $TypeError$1 = TypeError;
|
|
2113
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2114
|
-
|
|
2115
|
-
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2116
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
2117
|
-
return it;
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
var $$2 = _export;
|
|
2121
|
-
var toObject = toObject$3;
|
|
2122
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
2123
|
-
var setArrayLength = arraySetLength;
|
|
2124
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2125
|
-
var fails = fails$d;
|
|
2126
|
-
|
|
2127
|
-
var INCORRECT_TO_LENGTH = fails(function () {
|
|
2128
|
-
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2129
|
-
});
|
|
2130
|
-
|
|
2131
|
-
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2132
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2133
|
-
var properErrorOnNonWritableLength = function () {
|
|
2134
|
-
try {
|
|
2135
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2136
|
-
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2137
|
-
} catch (error) {
|
|
2138
|
-
return error instanceof TypeError;
|
|
2139
|
-
}
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2143
|
-
|
|
2144
|
-
// `Array.prototype.push` method
|
|
2145
|
-
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2146
|
-
$$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
2147
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2148
|
-
push: function push(item) {
|
|
2149
|
-
var O = toObject(this);
|
|
2150
|
-
var len = lengthOfArrayLike(O);
|
|
2151
|
-
var argCount = arguments.length;
|
|
2152
|
-
doesNotExceedSafeInteger(len + argCount);
|
|
2153
|
-
for (var i = 0; i < argCount; i++) {
|
|
2154
|
-
O[len] = arguments[i];
|
|
2155
|
-
len++;
|
|
2156
|
-
}
|
|
2157
|
-
setArrayLength(O, len);
|
|
2158
|
-
return len;
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
|
|
2162
2076
|
var $$1 = _export;
|
|
2163
2077
|
var iterate$2 = iterate$6;
|
|
2164
2078
|
var aCallable$1 = aCallable$a;
|
|
@@ -11740,7 +11654,10 @@ function performTasksInParallelFunction(config) {
|
|
|
11740
11654
|
* @param config
|
|
11741
11655
|
*/
|
|
11742
11656
|
function performTasksFromFactoryInParallelFunction(config) {
|
|
11743
|
-
|
|
11657
|
+
/**
|
|
11658
|
+
* By default returns null
|
|
11659
|
+
*/
|
|
11660
|
+
const defaultNonConcurrentTaskKeyFactory = () => null;
|
|
11744
11661
|
const {
|
|
11745
11662
|
taskFactory,
|
|
11746
11663
|
sequential,
|