@cubejs-client/core 0.31.9 → 0.31.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cubejs-client-core.esm.js +6 -0
- package/dist/cubejs-client-core.esm.js.map +1 -1
- package/dist/cubejs-client-core.js +6 -0
- package/dist/cubejs-client-core.js.map +1 -1
- package/dist/cubejs-client-core.umd.js +856 -612
- package/dist/cubejs-client-core.umd.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +3 -3
- package/src/Meta.js +2 -0
- package/CHANGELOG.md +0 -1850
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
var toString$3 = functionUncurryThis({}.toString);
|
|
94
|
-
var stringSlice$
|
|
94
|
+
var stringSlice$6 = functionUncurryThis(''.slice);
|
|
95
95
|
|
|
96
96
|
var classofRaw = function (it) {
|
|
97
|
-
return stringSlice$
|
|
97
|
+
return stringSlice$6(toString$3(it), 8, -1);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
var Object$5 = global$1.Object;
|
|
@@ -240,11 +240,11 @@
|
|
|
240
240
|
var isPure = false;
|
|
241
241
|
|
|
242
242
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
243
|
-
var defineProperty$
|
|
243
|
+
var defineProperty$8 = Object.defineProperty;
|
|
244
244
|
|
|
245
245
|
var setGlobal = function (key, value) {
|
|
246
246
|
try {
|
|
247
|
-
defineProperty$
|
|
247
|
+
defineProperty$8(global$1, key, { value: value, configurable: true, writable: true });
|
|
248
248
|
} catch (error) {
|
|
249
249
|
global$1[key] = value;
|
|
250
250
|
} return value;
|
|
@@ -420,10 +420,10 @@
|
|
|
420
420
|
|
|
421
421
|
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
422
422
|
|
|
423
|
-
var keys$
|
|
423
|
+
var keys$3 = shared('keys');
|
|
424
424
|
|
|
425
425
|
var sharedKey = function (key) {
|
|
426
|
-
return keys$
|
|
426
|
+
return keys$3[key] || (keys$3[key] = uid(key));
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
var hiddenKeys$1 = {};
|
|
@@ -546,17 +546,17 @@
|
|
|
546
546
|
});
|
|
547
547
|
|
|
548
548
|
var ceil = Math.ceil;
|
|
549
|
-
var floor$
|
|
549
|
+
var floor$2 = Math.floor;
|
|
550
550
|
|
|
551
551
|
// `ToIntegerOrInfinity` abstract operation
|
|
552
552
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
553
553
|
var toIntegerOrInfinity = function (argument) {
|
|
554
554
|
var number = +argument;
|
|
555
555
|
// eslint-disable-next-line no-self-compare -- safe
|
|
556
|
-
return number !== number || number === 0 ? 0 : (number > 0 ? floor$
|
|
556
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$2 : ceil)(number);
|
|
557
557
|
};
|
|
558
558
|
|
|
559
|
-
var max$
|
|
559
|
+
var max$3 = Math.max;
|
|
560
560
|
var min$3 = Math.min;
|
|
561
561
|
|
|
562
562
|
// Helper for a popular repeating case of the spec:
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
565
565
|
var toAbsoluteIndex = function (index, length) {
|
|
566
566
|
var integer = toIntegerOrInfinity(index);
|
|
567
|
-
return integer < 0 ? max$
|
|
567
|
+
return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
|
|
568
568
|
};
|
|
569
569
|
|
|
570
570
|
var min$2 = Math.min;
|
|
@@ -659,13 +659,13 @@
|
|
|
659
659
|
f: f$3
|
|
660
660
|
};
|
|
661
661
|
|
|
662
|
-
var concat$
|
|
662
|
+
var concat$2 = functionUncurryThis([].concat);
|
|
663
663
|
|
|
664
664
|
// all object keys, includes non-enumerable and symbols
|
|
665
665
|
var ownKeys$4 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
666
666
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
|
667
667
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
668
|
-
return getOwnPropertySymbols ? concat$
|
|
668
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
var copyConstructorProperties = function (target, source) {
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
var empty = [];
|
|
807
807
|
var construct$1 = getBuiltIn('Reflect', 'construct');
|
|
808
808
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
809
|
-
var exec$
|
|
809
|
+
var exec$2 = functionUncurryThis(constructorRegExp.exec);
|
|
810
810
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
811
811
|
|
|
812
812
|
var isConstructorModern = function (argument) {
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
case 'GeneratorFunction':
|
|
827
827
|
case 'AsyncGeneratorFunction': return false;
|
|
828
828
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
829
|
-
} return INCORRECT_TO_STRING || !!exec$
|
|
829
|
+
} return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
|
|
830
830
|
};
|
|
831
831
|
|
|
832
832
|
// `IsConstructor` abstract operation
|
|
@@ -839,8 +839,8 @@
|
|
|
839
839
|
|| called;
|
|
840
840
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
841
841
|
|
|
842
|
-
var SPECIES$
|
|
843
|
-
var Array$
|
|
842
|
+
var SPECIES$6 = wellKnownSymbol('species');
|
|
843
|
+
var Array$4 = global$1.Array;
|
|
844
844
|
|
|
845
845
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
846
846
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -849,12 +849,12 @@
|
|
|
849
849
|
if (isArray(originalArray)) {
|
|
850
850
|
C = originalArray.constructor;
|
|
851
851
|
// cross-realm fallback
|
|
852
|
-
if (isConstructor(C) && (C === Array$
|
|
852
|
+
if (isConstructor(C) && (C === Array$4 || isArray(C.prototype))) C = undefined;
|
|
853
853
|
else if (isObject(C)) {
|
|
854
|
-
C = C[SPECIES$
|
|
854
|
+
C = C[SPECIES$6];
|
|
855
855
|
if (C === null) C = undefined;
|
|
856
856
|
}
|
|
857
|
-
} return C === undefined ? Array$
|
|
857
|
+
} return C === undefined ? Array$4 : C;
|
|
858
858
|
};
|
|
859
859
|
|
|
860
860
|
// `ArraySpeciesCreate` abstract operation
|
|
@@ -1162,14 +1162,14 @@
|
|
|
1162
1162
|
else object[propertyKey] = value;
|
|
1163
1163
|
};
|
|
1164
1164
|
|
|
1165
|
-
var Array$
|
|
1166
|
-
var max$
|
|
1165
|
+
var Array$3 = global$1.Array;
|
|
1166
|
+
var max$2 = Math.max;
|
|
1167
1167
|
|
|
1168
1168
|
var arraySliceSimple = function (O, start, end) {
|
|
1169
1169
|
var length = lengthOfArrayLike(O);
|
|
1170
1170
|
var k = toAbsoluteIndex(start, length);
|
|
1171
1171
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
1172
|
-
var result = Array$
|
|
1172
|
+
var result = Array$3(max$2(fin - k, 0));
|
|
1173
1173
|
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
1174
1174
|
result.length = n;
|
|
1175
1175
|
return result;
|
|
@@ -1212,16 +1212,16 @@
|
|
|
1212
1212
|
|
|
1213
1213
|
var path$1 = global$1;
|
|
1214
1214
|
|
|
1215
|
-
var defineProperty$
|
|
1215
|
+
var defineProperty$7 = objectDefineProperty.f;
|
|
1216
1216
|
|
|
1217
1217
|
var defineWellKnownSymbol = function (NAME) {
|
|
1218
1218
|
var Symbol = path$1.Symbol || (path$1.Symbol = {});
|
|
1219
|
-
if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$
|
|
1219
|
+
if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$7(Symbol, NAME, {
|
|
1220
1220
|
value: wellKnownSymbolWrapped.f(NAME)
|
|
1221
1221
|
});
|
|
1222
1222
|
};
|
|
1223
1223
|
|
|
1224
|
-
var defineProperty$
|
|
1224
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
1225
1225
|
|
|
1226
1226
|
|
|
1227
1227
|
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
|
|
1230
1230
|
var setToStringTag = function (it, TAG, STATIC) {
|
|
1231
1231
|
if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG$1)) {
|
|
1232
|
-
defineProperty$
|
|
1232
|
+
defineProperty$6(it, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
1235
1235
|
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
|
|
1246
1246
|
var ObjectPrototype$2 = Object[PROTOTYPE];
|
|
1247
1247
|
var $Symbol = global$1.Symbol;
|
|
1248
|
-
var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
|
|
1248
|
+
var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
|
|
1249
1249
|
var TypeError$e = global$1.TypeError;
|
|
1250
1250
|
var QObject = global$1.QObject;
|
|
1251
1251
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
} : nativeDefineProperty;
|
|
1280
1280
|
|
|
1281
1281
|
var wrap$1 = function (tag, description) {
|
|
1282
|
-
var symbol = AllSymbols[tag] = objectCreate(SymbolPrototype);
|
|
1282
|
+
var symbol = AllSymbols[tag] = objectCreate(SymbolPrototype$1);
|
|
1283
1283
|
setInternalState$5(symbol, {
|
|
1284
1284
|
type: SYMBOL,
|
|
1285
1285
|
tag: tag,
|
|
@@ -1363,7 +1363,7 @@
|
|
|
1363
1363
|
// https://tc39.es/ecma262/#sec-symbol-constructor
|
|
1364
1364
|
if (!nativeSymbol) {
|
|
1365
1365
|
$Symbol = function Symbol() {
|
|
1366
|
-
if (objectIsPrototypeOf(SymbolPrototype, this)) throw TypeError$e('Symbol is not a constructor');
|
|
1366
|
+
if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$e('Symbol is not a constructor');
|
|
1367
1367
|
var description = !arguments.length || arguments[0] === undefined ? undefined : toString$1(arguments[0]);
|
|
1368
1368
|
var tag = uid(description);
|
|
1369
1369
|
var setter = function (value) {
|
|
@@ -1375,9 +1375,9 @@
|
|
|
1375
1375
|
return wrap$1(tag, description);
|
|
1376
1376
|
};
|
|
1377
1377
|
|
|
1378
|
-
SymbolPrototype = $Symbol[PROTOTYPE];
|
|
1378
|
+
SymbolPrototype$1 = $Symbol[PROTOTYPE];
|
|
1379
1379
|
|
|
1380
|
-
redefine(SymbolPrototype, 'toString', function toString() {
|
|
1380
|
+
redefine(SymbolPrototype$1, 'toString', function toString() {
|
|
1381
1381
|
return getInternalState$4(this).tag;
|
|
1382
1382
|
});
|
|
1383
1383
|
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
|
|
1398
1398
|
if (descriptors) {
|
|
1399
1399
|
// https://github.com/tc39/proposal-Symbol-description
|
|
1400
|
-
nativeDefineProperty(SymbolPrototype, 'description', {
|
|
1400
|
+
nativeDefineProperty(SymbolPrototype$1, 'description', {
|
|
1401
1401
|
configurable: true,
|
|
1402
1402
|
get: function description() {
|
|
1403
1403
|
return getInternalState$4(this).description;
|
|
@@ -1501,10 +1501,10 @@
|
|
|
1501
1501
|
|
|
1502
1502
|
// `Symbol.prototype[@@toPrimitive]` method
|
|
1503
1503
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
1504
|
-
if (!SymbolPrototype[TO_PRIMITIVE]) {
|
|
1505
|
-
var valueOf = SymbolPrototype.valueOf;
|
|
1504
|
+
if (!SymbolPrototype$1[TO_PRIMITIVE]) {
|
|
1505
|
+
var valueOf = SymbolPrototype$1.valueOf;
|
|
1506
1506
|
// eslint-disable-next-line no-unused-vars -- required for .length
|
|
1507
|
-
redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
|
|
1507
|
+
redefine(SymbolPrototype$1, TO_PRIMITIVE, function (hint) {
|
|
1508
1508
|
// TODO: improve hint logic
|
|
1509
1509
|
return functionCall(valueOf, this);
|
|
1510
1510
|
});
|
|
@@ -1515,7 +1515,7 @@
|
|
|
1515
1515
|
|
|
1516
1516
|
hiddenKeys$1[HIDDEN] = true;
|
|
1517
1517
|
|
|
1518
|
-
var SPECIES$
|
|
1518
|
+
var SPECIES$5 = wellKnownSymbol('species');
|
|
1519
1519
|
|
|
1520
1520
|
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
|
1521
1521
|
// We can't use this feature detection in V8 since it causes
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
return engineV8Version >= 51 || !fails(function () {
|
|
1525
1525
|
var array = [];
|
|
1526
1526
|
var constructor = array.constructor = {};
|
|
1527
|
-
constructor[SPECIES$
|
|
1527
|
+
constructor[SPECIES$5] = function () {
|
|
1528
1528
|
return { foo: 1 };
|
|
1529
1529
|
};
|
|
1530
1530
|
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
@@ -1534,12 +1534,12 @@
|
|
|
1534
1534
|
var $filter = arrayIteration.filter;
|
|
1535
1535
|
|
|
1536
1536
|
|
|
1537
|
-
var HAS_SPECIES_SUPPORT$
|
|
1537
|
+
var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('filter');
|
|
1538
1538
|
|
|
1539
1539
|
// `Array.prototype.filter` method
|
|
1540
1540
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1541
1541
|
// with adding support of @@species
|
|
1542
|
-
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$
|
|
1542
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
|
1543
1543
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
1544
1544
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1545
1545
|
}
|
|
@@ -2473,14 +2473,14 @@
|
|
|
2473
2473
|
};
|
|
2474
2474
|
}() : undefined);
|
|
2475
2475
|
|
|
2476
|
-
var SPECIES$
|
|
2476
|
+
var SPECIES$4 = wellKnownSymbol('species');
|
|
2477
2477
|
|
|
2478
2478
|
var setSpecies = function (CONSTRUCTOR_NAME) {
|
|
2479
2479
|
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
2480
2480
|
var defineProperty = objectDefineProperty.f;
|
|
2481
2481
|
|
|
2482
|
-
if (descriptors && Constructor && !Constructor[SPECIES$
|
|
2483
|
-
defineProperty(Constructor, SPECIES$
|
|
2482
|
+
if (descriptors && Constructor && !Constructor[SPECIES$4]) {
|
|
2483
|
+
defineProperty(Constructor, SPECIES$4, {
|
|
2484
2484
|
configurable: true,
|
|
2485
2485
|
get: function () { return this; }
|
|
2486
2486
|
});
|
|
@@ -2640,14 +2640,14 @@
|
|
|
2640
2640
|
throw TypeError$9(tryToString(argument) + ' is not a constructor');
|
|
2641
2641
|
};
|
|
2642
2642
|
|
|
2643
|
-
var SPECIES$
|
|
2643
|
+
var SPECIES$3 = wellKnownSymbol('species');
|
|
2644
2644
|
|
|
2645
2645
|
// `SpeciesConstructor` abstract operation
|
|
2646
2646
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2647
2647
|
var speciesConstructor = function (O, defaultConstructor) {
|
|
2648
2648
|
var C = anObject(O).constructor;
|
|
2649
2649
|
var S;
|
|
2650
|
-
return C === undefined || (S = anObject(C)[SPECIES$
|
|
2650
|
+
return C === undefined || (S = anObject(C)[SPECIES$3]) == undefined ? defaultConstructor : aConstructor(S);
|
|
2651
2651
|
};
|
|
2652
2652
|
|
|
2653
2653
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
|
|
@@ -2904,7 +2904,7 @@
|
|
|
2904
2904
|
|
|
2905
2905
|
|
|
2906
2906
|
|
|
2907
|
-
var SPECIES$
|
|
2907
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
|
2908
2908
|
var PROMISE = 'Promise';
|
|
2909
2909
|
|
|
2910
2910
|
var getInternalState$3 = internalState.getterFor(PROMISE);
|
|
@@ -2949,7 +2949,7 @@
|
|
|
2949
2949
|
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
2950
2950
|
};
|
|
2951
2951
|
var constructor = promise.constructor = {};
|
|
2952
|
-
constructor[SPECIES$
|
|
2952
|
+
constructor[SPECIES$2] = FakePromise;
|
|
2953
2953
|
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
2954
2954
|
if (!SUBCLASSING) return true;
|
|
2955
2955
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
@@ -3301,19 +3301,19 @@
|
|
|
3301
3301
|
var $map = arrayIteration.map;
|
|
3302
3302
|
|
|
3303
3303
|
|
|
3304
|
-
var HAS_SPECIES_SUPPORT$
|
|
3304
|
+
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('map');
|
|
3305
3305
|
|
|
3306
3306
|
// `Array.prototype.map` method
|
|
3307
3307
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3308
3308
|
// with adding support of @@species
|
|
3309
|
-
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$
|
|
3309
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
|
3310
3310
|
map: function map(callbackfn /* , thisArg */) {
|
|
3311
3311
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
3315
|
var Function$1 = global$1.Function;
|
|
3316
|
-
var concat = functionUncurryThis([].concat);
|
|
3316
|
+
var concat$1 = functionUncurryThis([].concat);
|
|
3317
3317
|
var join$1 = functionUncurryThis([].join);
|
|
3318
3318
|
var factories = {};
|
|
3319
3319
|
|
|
@@ -3331,7 +3331,7 @@
|
|
|
3331
3331
|
var Prototype = F.prototype;
|
|
3332
3332
|
var partArgs = arraySlice$1(arguments, 1);
|
|
3333
3333
|
var boundFunction = function bound(/* args... */) {
|
|
3334
|
-
var args = concat(partArgs, arraySlice$1(arguments));
|
|
3334
|
+
var args = concat$1(partArgs, arraySlice$1(arguments));
|
|
3335
3335
|
return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
|
|
3336
3336
|
};
|
|
3337
3337
|
if (isObject(Prototype)) boundFunction.prototype = Prototype;
|
|
@@ -3973,7 +3973,7 @@
|
|
|
3973
3973
|
return Constructor;
|
|
3974
3974
|
};
|
|
3975
3975
|
|
|
3976
|
-
var defineProperty$
|
|
3976
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
3977
3977
|
|
|
3978
3978
|
|
|
3979
3979
|
|
|
@@ -4124,7 +4124,7 @@
|
|
|
4124
4124
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
4125
4125
|
}
|
|
4126
4126
|
});
|
|
4127
|
-
if (descriptors) defineProperty$
|
|
4127
|
+
if (descriptors) defineProperty$5(Prototype, 'size', {
|
|
4128
4128
|
get: function () {
|
|
4129
4129
|
return getInternalState(this).size;
|
|
4130
4130
|
}
|
|
@@ -4183,9 +4183,9 @@
|
|
|
4183
4183
|
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
4184
4184
|
}, collectionStrong);
|
|
4185
4185
|
|
|
4186
|
-
var charAt$
|
|
4186
|
+
var charAt$6 = functionUncurryThis(''.charAt);
|
|
4187
4187
|
var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
|
|
4188
|
-
var stringSlice$
|
|
4188
|
+
var stringSlice$5 = functionUncurryThis(''.slice);
|
|
4189
4189
|
|
|
4190
4190
|
var createMethod$3 = function (CONVERT_TO_STRING) {
|
|
4191
4191
|
return function ($this, pos) {
|
|
@@ -4198,10 +4198,10 @@
|
|
|
4198
4198
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
4199
4199
|
|| (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
4200
4200
|
? CONVERT_TO_STRING
|
|
4201
|
-
? charAt$
|
|
4201
|
+
? charAt$6(S, position)
|
|
4202
4202
|
: first
|
|
4203
4203
|
: CONVERT_TO_STRING
|
|
4204
|
-
? stringSlice$
|
|
4204
|
+
? stringSlice$5(S, position, position + 2)
|
|
4205
4205
|
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
4206
4206
|
};
|
|
4207
4207
|
};
|
|
@@ -4215,7 +4215,7 @@
|
|
|
4215
4215
|
charAt: createMethod$3(true)
|
|
4216
4216
|
};
|
|
4217
4217
|
|
|
4218
|
-
var charAt$
|
|
4218
|
+
var charAt$5 = stringMultibyte.charAt;
|
|
4219
4219
|
|
|
4220
4220
|
|
|
4221
4221
|
|
|
@@ -4240,7 +4240,7 @@
|
|
|
4240
4240
|
var index = state.index;
|
|
4241
4241
|
var point;
|
|
4242
4242
|
if (index >= string.length) return { value: undefined, done: true };
|
|
4243
|
-
point = charAt$
|
|
4243
|
+
point = charAt$5(string, index);
|
|
4244
4244
|
state.index += point.length;
|
|
4245
4245
|
return { value: point, done: false };
|
|
4246
4246
|
});
|
|
@@ -4286,7 +4286,7 @@
|
|
|
4286
4286
|
}
|
|
4287
4287
|
};
|
|
4288
4288
|
|
|
4289
|
-
var Array$
|
|
4289
|
+
var Array$2 = global$1.Array;
|
|
4290
4290
|
|
|
4291
4291
|
// `Array.from` method implementation
|
|
4292
4292
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -4301,7 +4301,7 @@
|
|
|
4301
4301
|
var index = 0;
|
|
4302
4302
|
var length, result, step, iterator, next, value;
|
|
4303
4303
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
4304
|
-
if (iteratorMethod && !(this == Array$
|
|
4304
|
+
if (iteratorMethod && !(this == Array$2 && isArrayIteratorMethod(iteratorMethod))) {
|
|
4305
4305
|
iterator = getIterator(O, iteratorMethod);
|
|
4306
4306
|
next = iterator.next;
|
|
4307
4307
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -4311,7 +4311,7 @@
|
|
|
4311
4311
|
}
|
|
4312
4312
|
} else {
|
|
4313
4313
|
length = lengthOfArrayLike(O);
|
|
4314
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array$
|
|
4314
|
+
result = IS_CONSTRUCTOR ? new this(length) : Array$2(length);
|
|
4315
4315
|
for (;length > index; index++) {
|
|
4316
4316
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
4317
4317
|
createProperty(result, index, value);
|
|
@@ -4346,13 +4346,13 @@
|
|
|
4346
4346
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4347
4347
|
addToUnscopables('includes');
|
|
4348
4348
|
|
|
4349
|
-
var MATCH$
|
|
4349
|
+
var MATCH$2 = wellKnownSymbol('match');
|
|
4350
4350
|
|
|
4351
4351
|
// `IsRegExp` abstract operation
|
|
4352
4352
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
4353
4353
|
var isRegexp = function (it) {
|
|
4354
4354
|
var isRegExp;
|
|
4355
|
-
return isObject(it) && ((isRegExp = it[MATCH$
|
|
4355
|
+
return isObject(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
4356
4356
|
};
|
|
4357
4357
|
|
|
4358
4358
|
var TypeError$7 = global$1.TypeError;
|
|
@@ -4363,7 +4363,7 @@
|
|
|
4363
4363
|
} return it;
|
|
4364
4364
|
};
|
|
4365
4365
|
|
|
4366
|
-
var MATCH = wellKnownSymbol('match');
|
|
4366
|
+
var MATCH$1 = wellKnownSymbol('match');
|
|
4367
4367
|
|
|
4368
4368
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
4369
4369
|
var regexp = /./;
|
|
@@ -4371,19 +4371,19 @@
|
|
|
4371
4371
|
'/./'[METHOD_NAME](regexp);
|
|
4372
4372
|
} catch (error1) {
|
|
4373
4373
|
try {
|
|
4374
|
-
regexp[MATCH] = false;
|
|
4374
|
+
regexp[MATCH$1] = false;
|
|
4375
4375
|
return '/./'[METHOD_NAME](regexp);
|
|
4376
4376
|
} catch (error2) { /* empty */ }
|
|
4377
4377
|
} return false;
|
|
4378
4378
|
};
|
|
4379
4379
|
|
|
4380
|
-
var stringIndexOf = functionUncurryThis(''.indexOf);
|
|
4380
|
+
var stringIndexOf$1 = functionUncurryThis(''.indexOf);
|
|
4381
4381
|
|
|
4382
4382
|
// `String.prototype.includes` method
|
|
4383
4383
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
4384
4384
|
_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
|
|
4385
4385
|
includes: function includes(searchString /* , position = 0 */) {
|
|
4386
|
-
return !!~stringIndexOf(
|
|
4386
|
+
return !!~stringIndexOf$1(
|
|
4387
4387
|
toString$1(requireObjectCoercible(this)),
|
|
4388
4388
|
toString$1(notARegexp(searchString)),
|
|
4389
4389
|
arguments.length > 1 ? arguments[1] : undefined
|
|
@@ -4521,7 +4521,7 @@
|
|
|
4521
4521
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4522
4522
|
var $RegExp$2 = global$1.RegExp;
|
|
4523
4523
|
|
|
4524
|
-
var UNSUPPORTED_Y$
|
|
4524
|
+
var UNSUPPORTED_Y$3 = fails(function () {
|
|
4525
4525
|
var re = $RegExp$2('a', 'y');
|
|
4526
4526
|
re.lastIndex = 2;
|
|
4527
4527
|
return re.exec('abcd') != null;
|
|
@@ -4529,11 +4529,11 @@
|
|
|
4529
4529
|
|
|
4530
4530
|
// UC Browser bug
|
|
4531
4531
|
// https://github.com/zloirock/core-js/issues/1008
|
|
4532
|
-
var MISSED_STICKY = UNSUPPORTED_Y$
|
|
4532
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails(function () {
|
|
4533
4533
|
return !$RegExp$2('a', 'y').sticky;
|
|
4534
4534
|
});
|
|
4535
4535
|
|
|
4536
|
-
var BROKEN_CARET = UNSUPPORTED_Y$
|
|
4536
|
+
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails(function () {
|
|
4537
4537
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4538
4538
|
var re = $RegExp$2('^r', 'gy');
|
|
4539
4539
|
re.lastIndex = 2;
|
|
@@ -4542,8 +4542,8 @@
|
|
|
4542
4542
|
|
|
4543
4543
|
var regexpStickyHelpers = {
|
|
4544
4544
|
BROKEN_CARET: BROKEN_CARET,
|
|
4545
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
4546
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$
|
|
4545
|
+
MISSED_STICKY: MISSED_STICKY$1,
|
|
4546
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$3
|
|
4547
4547
|
};
|
|
4548
4548
|
|
|
4549
4549
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
@@ -4579,10 +4579,10 @@
|
|
|
4579
4579
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4580
4580
|
var nativeExec = RegExp.prototype.exec;
|
|
4581
4581
|
var patchedExec = nativeExec;
|
|
4582
|
-
var charAt$
|
|
4582
|
+
var charAt$4 = functionUncurryThis(''.charAt);
|
|
4583
4583
|
var indexOf = functionUncurryThis(''.indexOf);
|
|
4584
|
-
var replace$
|
|
4585
|
-
var stringSlice$
|
|
4584
|
+
var replace$4 = functionUncurryThis(''.replace);
|
|
4585
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
|
4586
4586
|
|
|
4587
4587
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4588
4588
|
var re1 = /a/;
|
|
@@ -4592,12 +4592,12 @@
|
|
|
4592
4592
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4593
4593
|
})();
|
|
4594
4594
|
|
|
4595
|
-
var UNSUPPORTED_Y$
|
|
4595
|
+
var UNSUPPORTED_Y$2 = regexpStickyHelpers.BROKEN_CARET;
|
|
4596
4596
|
|
|
4597
4597
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
4598
4598
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
4599
4599
|
|
|
4600
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$
|
|
4600
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
|
4601
4601
|
|
|
4602
4602
|
if (PATCH) {
|
|
4603
4603
|
patchedExec = function exec(string) {
|
|
@@ -4615,21 +4615,21 @@
|
|
|
4615
4615
|
}
|
|
4616
4616
|
|
|
4617
4617
|
var groups = state.groups;
|
|
4618
|
-
var sticky = UNSUPPORTED_Y$
|
|
4618
|
+
var sticky = UNSUPPORTED_Y$2 && re.sticky;
|
|
4619
4619
|
var flags = functionCall(regexpFlags, re);
|
|
4620
4620
|
var source = re.source;
|
|
4621
4621
|
var charsAdded = 0;
|
|
4622
4622
|
var strCopy = str;
|
|
4623
4623
|
|
|
4624
4624
|
if (sticky) {
|
|
4625
|
-
flags = replace$
|
|
4625
|
+
flags = replace$4(flags, 'y', '');
|
|
4626
4626
|
if (indexOf(flags, 'g') === -1) {
|
|
4627
4627
|
flags += 'g';
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
|
-
strCopy = stringSlice$
|
|
4630
|
+
strCopy = stringSlice$4(str, re.lastIndex);
|
|
4631
4631
|
// Support anchored sticky behavior.
|
|
4632
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$
|
|
4632
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
|
|
4633
4633
|
source = '(?: ' + source + ')';
|
|
4634
4634
|
strCopy = ' ' + strCopy;
|
|
4635
4635
|
charsAdded++;
|
|
@@ -4648,8 +4648,8 @@
|
|
|
4648
4648
|
|
|
4649
4649
|
if (sticky) {
|
|
4650
4650
|
if (match) {
|
|
4651
|
-
match.input = stringSlice$
|
|
4652
|
-
match[0] = stringSlice$
|
|
4651
|
+
match.input = stringSlice$4(match.input, charsAdded);
|
|
4652
|
+
match[0] = stringSlice$4(match[0], charsAdded);
|
|
4653
4653
|
match.index = re.lastIndex;
|
|
4654
4654
|
re.lastIndex += match[0].length;
|
|
4655
4655
|
} else re.lastIndex = 0;
|
|
@@ -4695,8 +4695,8 @@
|
|
|
4695
4695
|
|
|
4696
4696
|
|
|
4697
4697
|
|
|
4698
|
-
var SPECIES = wellKnownSymbol('species');
|
|
4699
|
-
var RegExpPrototype$
|
|
4698
|
+
var SPECIES$1 = wellKnownSymbol('species');
|
|
4699
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
4700
4700
|
|
|
4701
4701
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
4702
4702
|
var SYMBOL = wellKnownSymbol(KEY);
|
|
@@ -4721,7 +4721,7 @@
|
|
|
4721
4721
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
4722
4722
|
// a new one. We need to return the patched regex when creating the new one.
|
|
4723
4723
|
re.constructor = {};
|
|
4724
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
4724
|
+
re.constructor[SPECIES$1] = function () { return re; };
|
|
4725
4725
|
re.flags = '';
|
|
4726
4726
|
re[SYMBOL] = /./[SYMBOL];
|
|
4727
4727
|
}
|
|
@@ -4741,7 +4741,7 @@
|
|
|
4741
4741
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
4742
4742
|
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
|
4743
4743
|
var $exec = regexp.exec;
|
|
4744
|
-
if ($exec === regexpExec || $exec === RegExpPrototype$
|
|
4744
|
+
if ($exec === regexpExec || $exec === RegExpPrototype$2.exec) {
|
|
4745
4745
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
4746
4746
|
// The native String method already delegates to @@method (this
|
|
4747
4747
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -4754,18 +4754,18 @@
|
|
|
4754
4754
|
});
|
|
4755
4755
|
|
|
4756
4756
|
redefine(String.prototype, KEY, methods[0]);
|
|
4757
|
-
redefine(RegExpPrototype$
|
|
4757
|
+
redefine(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
4758
4758
|
}
|
|
4759
4759
|
|
|
4760
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$
|
|
4760
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
4761
4761
|
};
|
|
4762
4762
|
|
|
4763
|
-
var charAt$
|
|
4763
|
+
var charAt$3 = stringMultibyte.charAt;
|
|
4764
4764
|
|
|
4765
4765
|
// `AdvanceStringIndex` abstract operation
|
|
4766
4766
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
4767
4767
|
var advanceStringIndex = function (S, index, unicode) {
|
|
4768
|
-
return index + (unicode ? charAt$
|
|
4768
|
+
return index + (unicode ? charAt$3(S, index).length : 1);
|
|
4769
4769
|
};
|
|
4770
4770
|
|
|
4771
4771
|
var TypeError$5 = global$1.TypeError;
|
|
@@ -4783,13 +4783,13 @@
|
|
|
4783
4783
|
throw TypeError$5('RegExp#exec called on incompatible receiver');
|
|
4784
4784
|
};
|
|
4785
4785
|
|
|
4786
|
-
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
4786
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
4787
4787
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
4788
4788
|
var min$1 = Math.min;
|
|
4789
4789
|
var $push = [].push;
|
|
4790
|
-
var exec = functionUncurryThis(/./.exec);
|
|
4790
|
+
var exec$1 = functionUncurryThis(/./.exec);
|
|
4791
4791
|
var push$3 = functionUncurryThis($push);
|
|
4792
|
-
var stringSlice$
|
|
4792
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
|
4793
4793
|
|
|
4794
4794
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
4795
4795
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
@@ -4837,7 +4837,7 @@
|
|
|
4837
4837
|
while (match = functionCall(regexpExec, separatorCopy, string)) {
|
|
4838
4838
|
lastIndex = separatorCopy.lastIndex;
|
|
4839
4839
|
if (lastIndex > lastLastIndex) {
|
|
4840
|
-
push$3(output, stringSlice$
|
|
4840
|
+
push$3(output, stringSlice$3(string, lastLastIndex, match.index));
|
|
4841
4841
|
if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySliceSimple(match, 1));
|
|
4842
4842
|
lastLength = match[0].length;
|
|
4843
4843
|
lastLastIndex = lastIndex;
|
|
@@ -4846,8 +4846,8 @@
|
|
|
4846
4846
|
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
4847
4847
|
}
|
|
4848
4848
|
if (lastLastIndex === string.length) {
|
|
4849
|
-
if (lastLength || !exec(separatorCopy, '')) push$3(output, '');
|
|
4850
|
-
} else push$3(output, stringSlice$
|
|
4849
|
+
if (lastLength || !exec$1(separatorCopy, '')) push$3(output, '');
|
|
4850
|
+
} else push$3(output, stringSlice$3(string, lastLastIndex));
|
|
4851
4851
|
return output.length > lim ? arraySliceSimple(output, 0, lim) : output;
|
|
4852
4852
|
};
|
|
4853
4853
|
// Chakra, V8
|
|
@@ -4885,11 +4885,11 @@
|
|
|
4885
4885
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
4886
4886
|
(rx.multiline ? 'm' : '') +
|
|
4887
4887
|
(rx.unicode ? 'u' : '') +
|
|
4888
|
-
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
4888
|
+
(UNSUPPORTED_Y$1 ? 'g' : 'y');
|
|
4889
4889
|
|
|
4890
4890
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
4891
4891
|
// simulate the 'y' flag.
|
|
4892
|
-
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
4892
|
+
var splitter = new C(UNSUPPORTED_Y$1 ? '^(?:' + rx.source + ')' : rx, flags);
|
|
4893
4893
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
4894
4894
|
if (lim === 0) return [];
|
|
4895
4895
|
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
|
|
@@ -4897,16 +4897,16 @@
|
|
|
4897
4897
|
var q = 0;
|
|
4898
4898
|
var A = [];
|
|
4899
4899
|
while (q < S.length) {
|
|
4900
|
-
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
4901
|
-
var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? stringSlice$
|
|
4900
|
+
splitter.lastIndex = UNSUPPORTED_Y$1 ? 0 : q;
|
|
4901
|
+
var z = regexpExecAbstract(splitter, UNSUPPORTED_Y$1 ? stringSlice$3(S, q) : S);
|
|
4902
4902
|
var e;
|
|
4903
4903
|
if (
|
|
4904
4904
|
z === null ||
|
|
4905
|
-
(e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
4905
|
+
(e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p
|
|
4906
4906
|
) {
|
|
4907
4907
|
q = advanceStringIndex(S, q, unicodeMatching);
|
|
4908
4908
|
} else {
|
|
4909
|
-
push$3(A, stringSlice$
|
|
4909
|
+
push$3(A, stringSlice$3(S, p, q));
|
|
4910
4910
|
if (A.length === lim) return A;
|
|
4911
4911
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
4912
4912
|
push$3(A, z[i]);
|
|
@@ -4915,11 +4915,11 @@
|
|
|
4915
4915
|
q = p = e;
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
4918
|
-
push$3(A, stringSlice$
|
|
4918
|
+
push$3(A, stringSlice$3(S, p));
|
|
4919
4919
|
return A;
|
|
4920
4920
|
}
|
|
4921
4921
|
];
|
|
4922
|
-
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
4922
|
+
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y$1);
|
|
4923
4923
|
|
|
4924
4924
|
var un$Join = functionUncurryThis([].join);
|
|
4925
4925
|
|
|
@@ -4959,9 +4959,9 @@
|
|
|
4959
4959
|
|
|
4960
4960
|
|
|
4961
4961
|
var TO_STRING = 'toString';
|
|
4962
|
-
var RegExpPrototype = RegExp.prototype;
|
|
4963
|
-
var n$ToString = RegExpPrototype[TO_STRING];
|
|
4964
|
-
var getFlags = functionUncurryThis(regexpFlags);
|
|
4962
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
4963
|
+
var n$ToString = RegExpPrototype$1[TO_STRING];
|
|
4964
|
+
var getFlags$1 = functionUncurryThis(regexpFlags);
|
|
4965
4965
|
|
|
4966
4966
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
4967
4967
|
// FF44- RegExp#toString has a wrong name
|
|
@@ -4974,7 +4974,7 @@
|
|
|
4974
4974
|
var R = anObject(this);
|
|
4975
4975
|
var p = toString$1(R.source);
|
|
4976
4976
|
var rf = R.flags;
|
|
4977
|
-
var f = toString$1(rf === undefined && objectIsPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
|
|
4977
|
+
var f = toString$1(rf === undefined && objectIsPrototypeOf(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags$1(R) : rf);
|
|
4978
4978
|
return '/' + p + '/' + f;
|
|
4979
4979
|
}, { unsafe: true });
|
|
4980
4980
|
}
|
|
@@ -5090,7 +5090,7 @@
|
|
|
5090
5090
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5091
5091
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5092
5092
|
|
|
5093
|
-
var replace$
|
|
5093
|
+
var replace$3 = functionUncurryThis(''.replace);
|
|
5094
5094
|
var whitespace = '[' + whitespaces + ']';
|
|
5095
5095
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
5096
5096
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -5099,8 +5099,8 @@
|
|
|
5099
5099
|
var createMethod = function (TYPE) {
|
|
5100
5100
|
return function ($this) {
|
|
5101
5101
|
var string = toString$1(requireObjectCoercible($this));
|
|
5102
|
-
if (TYPE & 1) string = replace$
|
|
5103
|
-
if (TYPE & 2) string = replace$
|
|
5102
|
+
if (TYPE & 1) string = replace$3(string, ltrim, '');
|
|
5103
|
+
if (TYPE & 2) string = replace$3(string, rtrim, '');
|
|
5104
5104
|
return string;
|
|
5105
5105
|
};
|
|
5106
5106
|
};
|
|
@@ -5117,9 +5117,9 @@
|
|
|
5117
5117
|
trim: createMethod(3)
|
|
5118
5118
|
};
|
|
5119
5119
|
|
|
5120
|
-
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
5120
|
+
var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
|
5121
5121
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5122
|
-
var defineProperty$
|
|
5122
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
5123
5123
|
|
|
5124
5124
|
var trim$1 = stringTrim.trim;
|
|
5125
5125
|
|
|
@@ -5177,16 +5177,16 @@
|
|
|
5177
5177
|
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
|
|
5178
5178
|
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
5179
5179
|
};
|
|
5180
|
-
for (var keys$
|
|
5180
|
+
for (var keys$2 = descriptors ? getOwnPropertyNames$1(NativeNumber) : (
|
|
5181
5181
|
// ES3:
|
|
5182
5182
|
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
5183
5183
|
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
5184
5184
|
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
5185
5185
|
// ESNext
|
|
5186
5186
|
'fromString,range'
|
|
5187
|
-
).split(','), j = 0, key; keys$
|
|
5188
|
-
if (hasOwnProperty_1(NativeNumber, key = keys$
|
|
5189
|
-
defineProperty$
|
|
5187
|
+
).split(','), j = 0, key; keys$2.length > j; j++) {
|
|
5188
|
+
if (hasOwnProperty_1(NativeNumber, key = keys$2[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
5189
|
+
defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
5190
5190
|
}
|
|
5191
5191
|
}
|
|
5192
5192
|
NumberWrapper.prototype = NumberPrototype;
|
|
@@ -5197,7 +5197,7 @@
|
|
|
5197
5197
|
var trim = stringTrim.trim;
|
|
5198
5198
|
|
|
5199
5199
|
|
|
5200
|
-
var charAt$
|
|
5200
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
|
5201
5201
|
var n$ParseFloat = global$1.parseFloat;
|
|
5202
5202
|
var Symbol$1 = global$1.Symbol;
|
|
5203
5203
|
var ITERATOR$2 = Symbol$1 && Symbol$1.iterator;
|
|
@@ -5210,7 +5210,7 @@
|
|
|
5210
5210
|
var numberParseFloat = FORCED$2 ? function parseFloat(string) {
|
|
5211
5211
|
var trimmedString = trim(toString$1(string));
|
|
5212
5212
|
var result = n$ParseFloat(trimmedString);
|
|
5213
|
-
return result === 0 && charAt$
|
|
5213
|
+
return result === 0 && charAt$2(trimmedString, 0) == '-' ? -0 : result;
|
|
5214
5214
|
} : n$ParseFloat;
|
|
5215
5215
|
|
|
5216
5216
|
// `Number.parseFloat` method
|
|
@@ -5289,7 +5289,7 @@
|
|
|
5289
5289
|
});
|
|
5290
5290
|
|
|
5291
5291
|
function _isPlaceholder(a) {
|
|
5292
|
-
return a != null &&
|
|
5292
|
+
return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5293
5293
|
}
|
|
5294
5294
|
|
|
5295
5295
|
/**
|
|
@@ -5341,6 +5341,43 @@
|
|
|
5341
5341
|
};
|
|
5342
5342
|
}
|
|
5343
5343
|
|
|
5344
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
|
|
5345
|
+
|
|
5346
|
+
var SPECIES = wellKnownSymbol('species');
|
|
5347
|
+
var Array$1 = global$1.Array;
|
|
5348
|
+
var max$1 = Math.max;
|
|
5349
|
+
|
|
5350
|
+
// `Array.prototype.slice` method
|
|
5351
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
5352
|
+
// fallback for not array-like ES3 strings and DOM objects
|
|
5353
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
5354
|
+
slice: function slice(start, end) {
|
|
5355
|
+
var O = toIndexedObject(this);
|
|
5356
|
+
var length = lengthOfArrayLike(O);
|
|
5357
|
+
var k = toAbsoluteIndex(start, length);
|
|
5358
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
5359
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
5360
|
+
var Constructor, result, n;
|
|
5361
|
+
if (isArray(O)) {
|
|
5362
|
+
Constructor = O.constructor;
|
|
5363
|
+
// cross-realm fallback
|
|
5364
|
+
if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
|
|
5365
|
+
Constructor = undefined;
|
|
5366
|
+
} else if (isObject(Constructor)) {
|
|
5367
|
+
Constructor = Constructor[SPECIES];
|
|
5368
|
+
if (Constructor === null) Constructor = undefined;
|
|
5369
|
+
}
|
|
5370
|
+
if (Constructor === Array$1 || Constructor === undefined) {
|
|
5371
|
+
return arraySlice$1(O, k, fin);
|
|
5372
|
+
}
|
|
5373
|
+
}
|
|
5374
|
+
result = new (Constructor === undefined ? Array$1 : Constructor)(max$1(fin - k, 0));
|
|
5375
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
5376
|
+
result.length = n;
|
|
5377
|
+
return result;
|
|
5378
|
+
}
|
|
5379
|
+
});
|
|
5380
|
+
|
|
5344
5381
|
function _arity(n, fn) {
|
|
5345
5382
|
/* eslint-disable no-unused-vars */
|
|
5346
5383
|
switch (n) {
|
|
@@ -5488,9 +5525,7 @@
|
|
|
5488
5525
|
* g(4); //=> 10
|
|
5489
5526
|
*/
|
|
5490
5527
|
|
|
5491
|
-
var curryN =
|
|
5492
|
-
/*#__PURE__*/
|
|
5493
|
-
_curry2(function curryN(length, fn) {
|
|
5528
|
+
var curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {
|
|
5494
5529
|
if (length === 1) {
|
|
5495
5530
|
return _curry1(fn);
|
|
5496
5531
|
}
|
|
@@ -5618,11 +5653,11 @@
|
|
|
5618
5653
|
}
|
|
5619
5654
|
|
|
5620
5655
|
var _xfBase = {
|
|
5621
|
-
init: function () {
|
|
5656
|
+
init: function init() {
|
|
5622
5657
|
return this.xf['@@transducer/init']();
|
|
5623
5658
|
},
|
|
5624
|
-
result: function (
|
|
5625
|
-
return this.xf['@@transducer/result'](
|
|
5659
|
+
result: function result(_result) {
|
|
5660
|
+
return this.xf['@@transducer/result'](_result);
|
|
5626
5661
|
}
|
|
5627
5662
|
};
|
|
5628
5663
|
|
|
@@ -5639,6 +5674,59 @@
|
|
|
5639
5674
|
return result;
|
|
5640
5675
|
}
|
|
5641
5676
|
|
|
5677
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
5678
|
+
|
|
5679
|
+
|
|
5680
|
+
var NativeSymbol = global$1.Symbol;
|
|
5681
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
5682
|
+
|
|
5683
|
+
if (descriptors && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
5684
|
+
// Safari 12 bug
|
|
5685
|
+
NativeSymbol().description !== undefined
|
|
5686
|
+
)) {
|
|
5687
|
+
var EmptyStringDescriptionStore = {};
|
|
5688
|
+
// wrap Symbol constructor for correct work with undefined description
|
|
5689
|
+
var SymbolWrapper = function Symbol() {
|
|
5690
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$1(arguments[0]);
|
|
5691
|
+
var result = objectIsPrototypeOf(SymbolPrototype, this)
|
|
5692
|
+
? new NativeSymbol(description)
|
|
5693
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
5694
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
5695
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
5696
|
+
return result;
|
|
5697
|
+
};
|
|
5698
|
+
|
|
5699
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
5700
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
|
5701
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
|
5702
|
+
|
|
5703
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
5704
|
+
var symbolToString = functionUncurryThis(SymbolPrototype.toString);
|
|
5705
|
+
var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
|
|
5706
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
5707
|
+
var replace$2 = functionUncurryThis(''.replace);
|
|
5708
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
|
5709
|
+
|
|
5710
|
+
defineProperty$3(SymbolPrototype, 'description', {
|
|
5711
|
+
configurable: true,
|
|
5712
|
+
get: function description() {
|
|
5713
|
+
var symbol = symbolValueOf(this);
|
|
5714
|
+
var string = symbolToString(symbol);
|
|
5715
|
+
if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return '';
|
|
5716
|
+
var desc = NATIVE_SYMBOL ? stringSlice$2(string, 7, -1) : replace$2(string, regexp, '$1');
|
|
5717
|
+
return desc === '' ? undefined : desc;
|
|
5718
|
+
}
|
|
5719
|
+
});
|
|
5720
|
+
|
|
5721
|
+
_export({ global: true, forced: true }, {
|
|
5722
|
+
Symbol: SymbolWrapper
|
|
5723
|
+
});
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
// `Symbol.iterator` well-known symbol
|
|
5727
|
+
// https://tc39.es/ecma262/#sec-symbol.iterator
|
|
5728
|
+
defineWellKnownSymbol('iterator');
|
|
5729
|
+
|
|
5642
5730
|
function _isString(x) {
|
|
5643
5731
|
return Object.prototype.toString.call(x) === '[object String]';
|
|
5644
5732
|
}
|
|
@@ -5661,9 +5749,7 @@
|
|
|
5661
5749
|
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
5662
5750
|
*/
|
|
5663
5751
|
|
|
5664
|
-
var _isArrayLike =
|
|
5665
|
-
/*#__PURE__*/
|
|
5666
|
-
_curry1(function isArrayLike(x) {
|
|
5752
|
+
var _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {
|
|
5667
5753
|
if (_isArray(x)) {
|
|
5668
5754
|
return true;
|
|
5669
5755
|
}
|
|
@@ -5672,7 +5758,7 @@
|
|
|
5672
5758
|
return false;
|
|
5673
5759
|
}
|
|
5674
5760
|
|
|
5675
|
-
if (
|
|
5761
|
+
if (_typeof(x) !== 'object') {
|
|
5676
5762
|
return false;
|
|
5677
5763
|
}
|
|
5678
5764
|
|
|
@@ -5695,9 +5781,7 @@
|
|
|
5695
5781
|
return false;
|
|
5696
5782
|
});
|
|
5697
5783
|
|
|
5698
|
-
var XWrap =
|
|
5699
|
-
/*#__PURE__*/
|
|
5700
|
-
function () {
|
|
5784
|
+
var XWrap = /*#__PURE__*/function () {
|
|
5701
5785
|
function XWrap(fn) {
|
|
5702
5786
|
this.f = fn;
|
|
5703
5787
|
}
|
|
@@ -5744,9 +5828,7 @@
|
|
|
5744
5828
|
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
5745
5829
|
*/
|
|
5746
5830
|
|
|
5747
|
-
var bind =
|
|
5748
|
-
/*#__PURE__*/
|
|
5749
|
-
_curry2(function bind(fn, thisObj) {
|
|
5831
|
+
var bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {
|
|
5750
5832
|
return _arity(fn.length, function () {
|
|
5751
5833
|
return fn.apply(thisObj, arguments);
|
|
5752
5834
|
});
|
|
@@ -5820,9 +5902,7 @@
|
|
|
5820
5902
|
throw new TypeError('reduce: list must be array or iterable');
|
|
5821
5903
|
}
|
|
5822
5904
|
|
|
5823
|
-
var XMap =
|
|
5824
|
-
/*#__PURE__*/
|
|
5825
|
-
function () {
|
|
5905
|
+
var XMap = /*#__PURE__*/function () {
|
|
5826
5906
|
function XMap(f, xf) {
|
|
5827
5907
|
this.xf = xf;
|
|
5828
5908
|
this.f = f;
|
|
@@ -5838,9 +5918,7 @@
|
|
|
5838
5918
|
return XMap;
|
|
5839
5919
|
}();
|
|
5840
5920
|
|
|
5841
|
-
var _xmap =
|
|
5842
|
-
/*#__PURE__*/
|
|
5843
|
-
_curry2(function _xmap(f, xf) {
|
|
5921
|
+
var _xmap = /*#__PURE__*/_curry2(function _xmap(f, xf) {
|
|
5844
5922
|
return new XMap(f, xf);
|
|
5845
5923
|
});
|
|
5846
5924
|
|
|
@@ -5850,9 +5928,7 @@
|
|
|
5850
5928
|
|
|
5851
5929
|
var toString = Object.prototype.toString;
|
|
5852
5930
|
|
|
5853
|
-
var _isArguments =
|
|
5854
|
-
/*#__PURE__*/
|
|
5855
|
-
function () {
|
|
5931
|
+
var _isArguments = /*#__PURE__*/function () {
|
|
5856
5932
|
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
5857
5933
|
return toString.call(x) === '[object Arguments]';
|
|
5858
5934
|
} : function _isArguments(x) {
|
|
@@ -5860,16 +5936,12 @@
|
|
|
5860
5936
|
};
|
|
5861
5937
|
}();
|
|
5862
5938
|
|
|
5863
|
-
var hasEnumBug = !
|
|
5864
|
-
/*#__PURE__*/
|
|
5865
|
-
{
|
|
5939
|
+
var hasEnumBug = ! /*#__PURE__*/{
|
|
5866
5940
|
toString: null
|
|
5867
5941
|
}.propertyIsEnumerable('toString');
|
|
5868
5942
|
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
5869
5943
|
|
|
5870
|
-
var hasArgsEnumBug =
|
|
5871
|
-
/*#__PURE__*/
|
|
5872
|
-
function () {
|
|
5944
|
+
var hasArgsEnumBug = /*#__PURE__*/function () {
|
|
5873
5945
|
|
|
5874
5946
|
return arguments.propertyIsEnumerable('length');
|
|
5875
5947
|
}();
|
|
@@ -5907,13 +5979,9 @@
|
|
|
5907
5979
|
*/
|
|
5908
5980
|
|
|
5909
5981
|
|
|
5910
|
-
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
5911
|
-
/*#__PURE__*/
|
|
5912
|
-
_curry1(function keys(obj) {
|
|
5982
|
+
var keys$1 = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/_curry1(function keys(obj) {
|
|
5913
5983
|
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
5914
|
-
}) :
|
|
5915
|
-
/*#__PURE__*/
|
|
5916
|
-
_curry1(function keys(obj) {
|
|
5984
|
+
}) : /*#__PURE__*/_curry1(function keys(obj) {
|
|
5917
5985
|
if (Object(obj) !== obj) {
|
|
5918
5986
|
return [];
|
|
5919
5987
|
}
|
|
@@ -5982,11 +6050,7 @@
|
|
|
5982
6050
|
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
5983
6051
|
*/
|
|
5984
6052
|
|
|
5985
|
-
var map =
|
|
5986
|
-
/*#__PURE__*/
|
|
5987
|
-
_curry2(
|
|
5988
|
-
/*#__PURE__*/
|
|
5989
|
-
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
6053
|
+
var map = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
5990
6054
|
switch (Object.prototype.toString.call(functor)) {
|
|
5991
6055
|
case '[object Function]':
|
|
5992
6056
|
return curryN(functor.length, function () {
|
|
@@ -5997,13 +6061,28 @@
|
|
|
5997
6061
|
return _reduce(function (acc, key) {
|
|
5998
6062
|
acc[key] = fn(functor[key]);
|
|
5999
6063
|
return acc;
|
|
6000
|
-
}, {}, keys(functor));
|
|
6064
|
+
}, {}, keys$1(functor));
|
|
6001
6065
|
|
|
6002
6066
|
default:
|
|
6003
6067
|
return _map(fn, functor);
|
|
6004
6068
|
}
|
|
6005
6069
|
}));
|
|
6006
6070
|
|
|
6071
|
+
var floor$1 = Math.floor;
|
|
6072
|
+
|
|
6073
|
+
// `IsIntegralNumber` abstract operation
|
|
6074
|
+
// https://tc39.es/ecma262/#sec-isintegralnumber
|
|
6075
|
+
// eslint-disable-next-line es/no-number-isinteger -- safe
|
|
6076
|
+
var isIntegralNumber = Number.isInteger || function isInteger(it) {
|
|
6077
|
+
return !isObject(it) && isFinite(it) && floor$1(it) === it;
|
|
6078
|
+
};
|
|
6079
|
+
|
|
6080
|
+
// `Number.isInteger` method
|
|
6081
|
+
// https://tc39.es/ecma262/#sec-number.isinteger
|
|
6082
|
+
_export({ target: 'Number', stat: true }, {
|
|
6083
|
+
isInteger: isIntegralNumber
|
|
6084
|
+
});
|
|
6085
|
+
|
|
6007
6086
|
/**
|
|
6008
6087
|
* Determine if the passed argument is an integer.
|
|
6009
6088
|
*
|
|
@@ -6043,9 +6122,7 @@
|
|
|
6043
6122
|
* @symb R.nth(1, [a, b, c]) = b
|
|
6044
6123
|
*/
|
|
6045
6124
|
|
|
6046
|
-
var nth =
|
|
6047
|
-
/*#__PURE__*/
|
|
6048
|
-
_curry2(function nth(offset, list) {
|
|
6125
|
+
var nth = /*#__PURE__*/_curry2(function nth(offset, list) {
|
|
6049
6126
|
var idx = offset < 0 ? list.length + offset : offset;
|
|
6050
6127
|
return _isString(list) ? list.charAt(idx) : list[idx];
|
|
6051
6128
|
});
|
|
@@ -6069,9 +6146,7 @@
|
|
|
6069
6146
|
* R.paths([['a', 'b'], ['p', 'r']], {a: {b: 2}, p: [{q: 3}]}); //=> [2, undefined]
|
|
6070
6147
|
*/
|
|
6071
6148
|
|
|
6072
|
-
var paths =
|
|
6073
|
-
/*#__PURE__*/
|
|
6074
|
-
_curry2(function paths(pathsArray, obj) {
|
|
6149
|
+
var paths = /*#__PURE__*/_curry2(function paths(pathsArray, obj) {
|
|
6075
6150
|
return pathsArray.map(function (paths) {
|
|
6076
6151
|
var val = obj;
|
|
6077
6152
|
var idx = 0;
|
|
@@ -6112,9 +6187,7 @@
|
|
|
6112
6187
|
* R.path(['a', 'b', -2], {a: {b: [1, 2, 3]}}); //=> 2
|
|
6113
6188
|
*/
|
|
6114
6189
|
|
|
6115
|
-
var path =
|
|
6116
|
-
/*#__PURE__*/
|
|
6117
|
-
_curry2(function path(pathAr, obj) {
|
|
6190
|
+
var path = /*#__PURE__*/_curry2(function path(pathAr, obj) {
|
|
6118
6191
|
return paths([pathAr], obj)[0];
|
|
6119
6192
|
});
|
|
6120
6193
|
|
|
@@ -6140,9 +6213,7 @@
|
|
|
6140
6213
|
* R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
|
|
6141
6214
|
*/
|
|
6142
6215
|
|
|
6143
|
-
var prop =
|
|
6144
|
-
/*#__PURE__*/
|
|
6145
|
-
_curry2(function prop(p, obj) {
|
|
6216
|
+
var prop = /*#__PURE__*/_curry2(function prop(p, obj) {
|
|
6146
6217
|
return path([p], obj);
|
|
6147
6218
|
});
|
|
6148
6219
|
|
|
@@ -6174,9 +6245,7 @@
|
|
|
6174
6245
|
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
6175
6246
|
*/
|
|
6176
6247
|
|
|
6177
|
-
var pluck =
|
|
6178
|
-
/*#__PURE__*/
|
|
6179
|
-
_curry2(function pluck(p, list) {
|
|
6248
|
+
var pluck = /*#__PURE__*/_curry2(function pluck(p, list) {
|
|
6180
6249
|
return map(prop(p), list);
|
|
6181
6250
|
});
|
|
6182
6251
|
|
|
@@ -6227,9 +6296,7 @@
|
|
|
6227
6296
|
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
6228
6297
|
*/
|
|
6229
6298
|
|
|
6230
|
-
var reduce =
|
|
6231
|
-
/*#__PURE__*/
|
|
6232
|
-
_curry3(_reduce);
|
|
6299
|
+
var reduce = /*#__PURE__*/_curry3(_reduce);
|
|
6233
6300
|
|
|
6234
6301
|
/**
|
|
6235
6302
|
* `_makeFlat` is a helper function that returns a one-level or fully recursive
|
|
@@ -6273,13 +6340,13 @@
|
|
|
6273
6340
|
};
|
|
6274
6341
|
}
|
|
6275
6342
|
|
|
6276
|
-
var preservingReduced = function (xf) {
|
|
6343
|
+
var preservingReduced = function preservingReduced(xf) {
|
|
6277
6344
|
return {
|
|
6278
6345
|
'@@transducer/init': _xfBase.init,
|
|
6279
|
-
'@@transducer/result': function (result) {
|
|
6346
|
+
'@@transducer/result': function transducerResult(result) {
|
|
6280
6347
|
return xf['@@transducer/result'](result);
|
|
6281
6348
|
},
|
|
6282
|
-
'@@transducer/step': function (result, input) {
|
|
6349
|
+
'@@transducer/step': function transducerStep(result, input) {
|
|
6283
6350
|
var ret = xf['@@transducer/step'](result, input);
|
|
6284
6351
|
return ret['@@transducer/reduced'] ? _forceReduced(ret) : ret;
|
|
6285
6352
|
}
|
|
@@ -6290,18 +6357,16 @@
|
|
|
6290
6357
|
var rxf = preservingReduced(xf);
|
|
6291
6358
|
return {
|
|
6292
6359
|
'@@transducer/init': _xfBase.init,
|
|
6293
|
-
'@@transducer/result': function (result) {
|
|
6360
|
+
'@@transducer/result': function transducerResult(result) {
|
|
6294
6361
|
return rxf['@@transducer/result'](result);
|
|
6295
6362
|
},
|
|
6296
|
-
'@@transducer/step': function (result, input) {
|
|
6363
|
+
'@@transducer/step': function transducerStep(result, input) {
|
|
6297
6364
|
return !_isArrayLike(input) ? _reduce(rxf, result, [input]) : _reduce(rxf, result, input);
|
|
6298
6365
|
}
|
|
6299
6366
|
};
|
|
6300
6367
|
};
|
|
6301
6368
|
|
|
6302
|
-
var _xchain =
|
|
6303
|
-
/*#__PURE__*/
|
|
6304
|
-
_curry2(function _xchain(f, xf) {
|
|
6369
|
+
var _xchain = /*#__PURE__*/_curry2(function _xchain(f, xf) {
|
|
6305
6370
|
return map(f, _flatCat(xf));
|
|
6306
6371
|
});
|
|
6307
6372
|
|
|
@@ -6332,11 +6397,7 @@
|
|
|
6332
6397
|
* R.chain(R.append, R.head)([1, 2, 3]); //=> [1, 2, 3, 1]
|
|
6333
6398
|
*/
|
|
6334
6399
|
|
|
6335
|
-
var chain =
|
|
6336
|
-
/*#__PURE__*/
|
|
6337
|
-
_curry2(
|
|
6338
|
-
/*#__PURE__*/
|
|
6339
|
-
_dispatchable(['fantasy-land/chain', 'chain'], _xchain, function chain(fn, monad) {
|
|
6400
|
+
var chain = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/chain', 'chain'], _xchain, function chain(fn, monad) {
|
|
6340
6401
|
if (typeof monad === 'function') {
|
|
6341
6402
|
return function (x) {
|
|
6342
6403
|
return fn(monad(x))(x);
|
|
@@ -6346,6 +6407,200 @@
|
|
|
6346
6407
|
return _makeFlat(false)(map(fn, monad));
|
|
6347
6408
|
}));
|
|
6348
6409
|
|
|
6410
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
6411
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
6412
|
+
|
|
6413
|
+
|
|
6414
|
+
|
|
6415
|
+
|
|
6416
|
+
|
|
6417
|
+
|
|
6418
|
+
|
|
6419
|
+
|
|
6420
|
+
var enforceInternalState = internalState.enforce;
|
|
6421
|
+
|
|
6422
|
+
|
|
6423
|
+
|
|
6424
|
+
|
|
6425
|
+
|
|
6426
|
+
var MATCH = wellKnownSymbol('match');
|
|
6427
|
+
var NativeRegExp = global$1.RegExp;
|
|
6428
|
+
var RegExpPrototype = NativeRegExp.prototype;
|
|
6429
|
+
var SyntaxError = global$1.SyntaxError;
|
|
6430
|
+
var getFlags = functionUncurryThis(regexpFlags);
|
|
6431
|
+
var exec = functionUncurryThis(RegExpPrototype.exec);
|
|
6432
|
+
var charAt$1 = functionUncurryThis(''.charAt);
|
|
6433
|
+
var replace$1 = functionUncurryThis(''.replace);
|
|
6434
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
|
6435
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
|
6436
|
+
// TODO: Use only propper RegExpIdentifierName
|
|
6437
|
+
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
6438
|
+
var re1 = /a/g;
|
|
6439
|
+
var re2 = /a/g;
|
|
6440
|
+
|
|
6441
|
+
// "new" should create a new object, old webkit bug
|
|
6442
|
+
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
|
6443
|
+
|
|
6444
|
+
var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
|
|
6445
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
6446
|
+
|
|
6447
|
+
var BASE_FORCED = descriptors &&
|
|
6448
|
+
(!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
|
|
6449
|
+
re2[MATCH] = false;
|
|
6450
|
+
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
6451
|
+
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
6452
|
+
}));
|
|
6453
|
+
|
|
6454
|
+
var handleDotAll = function (string) {
|
|
6455
|
+
var length = string.length;
|
|
6456
|
+
var index = 0;
|
|
6457
|
+
var result = '';
|
|
6458
|
+
var brackets = false;
|
|
6459
|
+
var chr;
|
|
6460
|
+
for (; index <= length; index++) {
|
|
6461
|
+
chr = charAt$1(string, index);
|
|
6462
|
+
if (chr === '\\') {
|
|
6463
|
+
result += chr + charAt$1(string, ++index);
|
|
6464
|
+
continue;
|
|
6465
|
+
}
|
|
6466
|
+
if (!brackets && chr === '.') {
|
|
6467
|
+
result += '[\\s\\S]';
|
|
6468
|
+
} else {
|
|
6469
|
+
if (chr === '[') {
|
|
6470
|
+
brackets = true;
|
|
6471
|
+
} else if (chr === ']') {
|
|
6472
|
+
brackets = false;
|
|
6473
|
+
} result += chr;
|
|
6474
|
+
}
|
|
6475
|
+
} return result;
|
|
6476
|
+
};
|
|
6477
|
+
|
|
6478
|
+
var handleNCG = function (string) {
|
|
6479
|
+
var length = string.length;
|
|
6480
|
+
var index = 0;
|
|
6481
|
+
var result = '';
|
|
6482
|
+
var named = [];
|
|
6483
|
+
var names = {};
|
|
6484
|
+
var brackets = false;
|
|
6485
|
+
var ncg = false;
|
|
6486
|
+
var groupid = 0;
|
|
6487
|
+
var groupname = '';
|
|
6488
|
+
var chr;
|
|
6489
|
+
for (; index <= length; index++) {
|
|
6490
|
+
chr = charAt$1(string, index);
|
|
6491
|
+
if (chr === '\\') {
|
|
6492
|
+
chr = chr + charAt$1(string, ++index);
|
|
6493
|
+
} else if (chr === ']') {
|
|
6494
|
+
brackets = false;
|
|
6495
|
+
} else if (!brackets) switch (true) {
|
|
6496
|
+
case chr === '[':
|
|
6497
|
+
brackets = true;
|
|
6498
|
+
break;
|
|
6499
|
+
case chr === '(':
|
|
6500
|
+
if (exec(IS_NCG, stringSlice$1(string, index + 1))) {
|
|
6501
|
+
index += 2;
|
|
6502
|
+
ncg = true;
|
|
6503
|
+
}
|
|
6504
|
+
result += chr;
|
|
6505
|
+
groupid++;
|
|
6506
|
+
continue;
|
|
6507
|
+
case chr === '>' && ncg:
|
|
6508
|
+
if (groupname === '' || hasOwnProperty_1(names, groupname)) {
|
|
6509
|
+
throw new SyntaxError('Invalid capture group name');
|
|
6510
|
+
}
|
|
6511
|
+
names[groupname] = true;
|
|
6512
|
+
named[named.length] = [groupname, groupid];
|
|
6513
|
+
ncg = false;
|
|
6514
|
+
groupname = '';
|
|
6515
|
+
continue;
|
|
6516
|
+
}
|
|
6517
|
+
if (ncg) groupname += chr;
|
|
6518
|
+
else result += chr;
|
|
6519
|
+
} return [result, named];
|
|
6520
|
+
};
|
|
6521
|
+
|
|
6522
|
+
// `RegExp` constructor
|
|
6523
|
+
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
6524
|
+
if (isForced_1('RegExp', BASE_FORCED)) {
|
|
6525
|
+
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
6526
|
+
var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype, this);
|
|
6527
|
+
var patternIsRegExp = isRegexp(pattern);
|
|
6528
|
+
var flagsAreUndefined = flags === undefined;
|
|
6529
|
+
var groups = [];
|
|
6530
|
+
var rawPattern = pattern;
|
|
6531
|
+
var rawFlags, dotAll, sticky, handled, result, state;
|
|
6532
|
+
|
|
6533
|
+
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
|
|
6534
|
+
return pattern;
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype, pattern)) {
|
|
6538
|
+
pattern = pattern.source;
|
|
6539
|
+
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags(rawPattern);
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6542
|
+
pattern = pattern === undefined ? '' : toString$1(pattern);
|
|
6543
|
+
flags = flags === undefined ? '' : toString$1(flags);
|
|
6544
|
+
rawPattern = pattern;
|
|
6545
|
+
|
|
6546
|
+
if (regexpUnsupportedDotAll && 'dotAll' in re1) {
|
|
6547
|
+
dotAll = !!flags && stringIndexOf(flags, 's') > -1;
|
|
6548
|
+
if (dotAll) flags = replace$1(flags, /s/g, '');
|
|
6549
|
+
}
|
|
6550
|
+
|
|
6551
|
+
rawFlags = flags;
|
|
6552
|
+
|
|
6553
|
+
if (MISSED_STICKY && 'sticky' in re1) {
|
|
6554
|
+
sticky = !!flags && stringIndexOf(flags, 'y') > -1;
|
|
6555
|
+
if (sticky && UNSUPPORTED_Y) flags = replace$1(flags, /y/g, '');
|
|
6556
|
+
}
|
|
6557
|
+
|
|
6558
|
+
if (regexpUnsupportedNcg) {
|
|
6559
|
+
handled = handleNCG(pattern);
|
|
6560
|
+
pattern = handled[0];
|
|
6561
|
+
groups = handled[1];
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
|
|
6565
|
+
|
|
6566
|
+
if (dotAll || sticky || groups.length) {
|
|
6567
|
+
state = enforceInternalState(result);
|
|
6568
|
+
if (dotAll) {
|
|
6569
|
+
state.dotAll = true;
|
|
6570
|
+
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
|
|
6571
|
+
}
|
|
6572
|
+
if (sticky) state.sticky = true;
|
|
6573
|
+
if (groups.length) state.groups = groups;
|
|
6574
|
+
}
|
|
6575
|
+
|
|
6576
|
+
if (pattern !== rawPattern) try {
|
|
6577
|
+
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
|
6578
|
+
createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
|
6579
|
+
} catch (error) { /* empty */ }
|
|
6580
|
+
|
|
6581
|
+
return result;
|
|
6582
|
+
};
|
|
6583
|
+
|
|
6584
|
+
var proxy = function (key) {
|
|
6585
|
+
key in RegExpWrapper || defineProperty$2(RegExpWrapper, key, {
|
|
6586
|
+
configurable: true,
|
|
6587
|
+
get: function () { return NativeRegExp[key]; },
|
|
6588
|
+
set: function (it) { NativeRegExp[key] = it; }
|
|
6589
|
+
});
|
|
6590
|
+
};
|
|
6591
|
+
|
|
6592
|
+
for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
|
|
6593
|
+
proxy(keys[index++]);
|
|
6594
|
+
}
|
|
6595
|
+
|
|
6596
|
+
RegExpPrototype.constructor = RegExpWrapper;
|
|
6597
|
+
RegExpWrapper.prototype = RegExpPrototype;
|
|
6598
|
+
redefine(global$1, 'RegExp', RegExpWrapper);
|
|
6599
|
+
}
|
|
6600
|
+
|
|
6601
|
+
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
6602
|
+
setSpecies('RegExp');
|
|
6603
|
+
|
|
6349
6604
|
function _cloneRegExp(pattern) {
|
|
6350
6605
|
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
|
|
6351
6606
|
}
|
|
@@ -6376,9 +6631,7 @@
|
|
|
6376
6631
|
* R.type(undefined); //=> "Undefined"
|
|
6377
6632
|
*/
|
|
6378
6633
|
|
|
6379
|
-
var type =
|
|
6380
|
-
/*#__PURE__*/
|
|
6381
|
-
_curry1(function type(val) {
|
|
6634
|
+
var type = /*#__PURE__*/_curry1(function type(val) {
|
|
6382
6635
|
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
6383
6636
|
});
|
|
6384
6637
|
|
|
@@ -6456,9 +6709,7 @@
|
|
|
6456
6709
|
* objects[0] === objectsClone[0]; //=> false
|
|
6457
6710
|
*/
|
|
6458
6711
|
|
|
6459
|
-
var clone =
|
|
6460
|
-
/*#__PURE__*/
|
|
6461
|
-
_curry1(function clone(value) {
|
|
6712
|
+
var clone = /*#__PURE__*/_curry1(function clone(value) {
|
|
6462
6713
|
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
|
|
6463
6714
|
});
|
|
6464
6715
|
|
|
@@ -6517,11 +6768,7 @@
|
|
|
6517
6768
|
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
6518
6769
|
*/
|
|
6519
6770
|
|
|
6520
|
-
var slice =
|
|
6521
|
-
/*#__PURE__*/
|
|
6522
|
-
_curry3(
|
|
6523
|
-
/*#__PURE__*/
|
|
6524
|
-
_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
|
6771
|
+
var slice = /*#__PURE__*/_curry3( /*#__PURE__*/_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
|
6525
6772
|
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
6526
6773
|
}));
|
|
6527
6774
|
|
|
@@ -6553,13 +6800,7 @@
|
|
|
6553
6800
|
* R.tail(''); //=> ''
|
|
6554
6801
|
*/
|
|
6555
6802
|
|
|
6556
|
-
var tail =
|
|
6557
|
-
/*#__PURE__*/
|
|
6558
|
-
_curry1(
|
|
6559
|
-
/*#__PURE__*/
|
|
6560
|
-
_checkForMethod('tail',
|
|
6561
|
-
/*#__PURE__*/
|
|
6562
|
-
slice(1, Infinity)));
|
|
6803
|
+
var tail = /*#__PURE__*/_curry1( /*#__PURE__*/_checkForMethod('tail', /*#__PURE__*/slice(1, Infinity)));
|
|
6563
6804
|
|
|
6564
6805
|
/**
|
|
6565
6806
|
* Performs left-to-right function composition. The first argument may have
|
|
@@ -6617,82 +6858,263 @@
|
|
|
6617
6858
|
* @symb R.identity(a) = a
|
|
6618
6859
|
*/
|
|
6619
6860
|
|
|
6620
|
-
var identity =
|
|
6621
|
-
/*#__PURE__*/
|
|
6622
|
-
_curry1(_identity);
|
|
6623
|
-
|
|
6624
|
-
function _arrayFromIterator(iter) {
|
|
6625
|
-
var list = [];
|
|
6626
|
-
var next;
|
|
6861
|
+
var identity = /*#__PURE__*/_curry1(_identity);
|
|
6627
6862
|
|
|
6628
|
-
|
|
6629
|
-
list.push(next.value);
|
|
6630
|
-
}
|
|
6863
|
+
var floor = Math.floor;
|
|
6631
6864
|
|
|
6632
|
-
|
|
6633
|
-
|
|
6865
|
+
var mergeSort = function (array, comparefn) {
|
|
6866
|
+
var length = array.length;
|
|
6867
|
+
var middle = floor(length / 2);
|
|
6868
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
6869
|
+
array,
|
|
6870
|
+
mergeSort(arraySliceSimple(array, 0, middle), comparefn),
|
|
6871
|
+
mergeSort(arraySliceSimple(array, middle), comparefn),
|
|
6872
|
+
comparefn
|
|
6873
|
+
);
|
|
6874
|
+
};
|
|
6634
6875
|
|
|
6635
|
-
function
|
|
6636
|
-
var
|
|
6637
|
-
var
|
|
6876
|
+
var insertionSort = function (array, comparefn) {
|
|
6877
|
+
var length = array.length;
|
|
6878
|
+
var i = 1;
|
|
6879
|
+
var element, j;
|
|
6638
6880
|
|
|
6639
|
-
while (
|
|
6640
|
-
|
|
6641
|
-
|
|
6881
|
+
while (i < length) {
|
|
6882
|
+
j = i;
|
|
6883
|
+
element = array[i];
|
|
6884
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
|
6885
|
+
array[j] = array[--j];
|
|
6642
6886
|
}
|
|
6887
|
+
if (j !== i++) array[j] = element;
|
|
6888
|
+
} return array;
|
|
6889
|
+
};
|
|
6643
6890
|
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6891
|
+
var merge = function (array, left, right, comparefn) {
|
|
6892
|
+
var llength = left.length;
|
|
6893
|
+
var rlength = right.length;
|
|
6894
|
+
var lindex = 0;
|
|
6895
|
+
var rindex = 0;
|
|
6649
6896
|
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6897
|
+
while (lindex < llength || rindex < rlength) {
|
|
6898
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
6899
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
6900
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
6901
|
+
} return array;
|
|
6902
|
+
};
|
|
6655
6903
|
|
|
6656
|
-
|
|
6657
|
-
function _objectIs(a, b) {
|
|
6658
|
-
// SameValue algorithm
|
|
6659
|
-
if (a === b) {
|
|
6660
|
-
// Steps 1-5, 7-10
|
|
6661
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6662
|
-
return a !== 0 || 1 / a === 1 / b;
|
|
6663
|
-
} else {
|
|
6664
|
-
// Step 6.a: NaN == NaN
|
|
6665
|
-
return a !== a && b !== b;
|
|
6666
|
-
}
|
|
6667
|
-
}
|
|
6904
|
+
var arraySort = mergeSort;
|
|
6668
6905
|
|
|
6669
|
-
var
|
|
6906
|
+
var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
|
|
6670
6907
|
|
|
6671
|
-
|
|
6672
|
-
* private _uniqContentEquals function.
|
|
6673
|
-
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
6674
|
-
* - iterators lengths are the same
|
|
6675
|
-
* - iterators values are unique
|
|
6676
|
-
*
|
|
6677
|
-
* false-positive result will be returned for comparision of, e.g.
|
|
6678
|
-
* - [1,2,3] and [1,2,3,4]
|
|
6679
|
-
* - [1,1,1] and [1,2,3]
|
|
6680
|
-
* */
|
|
6908
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
6681
6909
|
|
|
6682
|
-
|
|
6683
|
-
var a = _arrayFromIterator(aIterator);
|
|
6910
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
|
|
6684
6911
|
|
|
6685
|
-
|
|
6912
|
+
var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
|
|
6686
6913
|
|
|
6687
|
-
|
|
6688
|
-
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
6689
|
-
} // if *a* array contains any element that is not included in *b*
|
|
6914
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
6690
6915
|
|
|
6916
|
+
var test = [];
|
|
6917
|
+
var un$Sort = functionUncurryThis(test.sort);
|
|
6918
|
+
var push$2 = functionUncurryThis(test.push);
|
|
6691
6919
|
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
}
|
|
6920
|
+
// IE8-
|
|
6921
|
+
var FAILS_ON_UNDEFINED = fails(function () {
|
|
6922
|
+
test.sort(undefined);
|
|
6923
|
+
});
|
|
6924
|
+
// V8 bug
|
|
6925
|
+
var FAILS_ON_NULL = fails(function () {
|
|
6926
|
+
test.sort(null);
|
|
6927
|
+
});
|
|
6928
|
+
// Old WebKit
|
|
6929
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
|
|
6930
|
+
|
|
6931
|
+
var STABLE_SORT = !fails(function () {
|
|
6932
|
+
// feature detection can be too slow, so check engines versions
|
|
6933
|
+
if (engineV8Version) return engineV8Version < 70;
|
|
6934
|
+
if (engineFfVersion && engineFfVersion > 3) return;
|
|
6935
|
+
if (engineIsIeOrEdge) return true;
|
|
6936
|
+
if (engineWebkitVersion) return engineWebkitVersion < 603;
|
|
6937
|
+
|
|
6938
|
+
var result = '';
|
|
6939
|
+
var code, chr, value, index;
|
|
6940
|
+
|
|
6941
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
6942
|
+
for (code = 65; code < 76; code++) {
|
|
6943
|
+
chr = String.fromCharCode(code);
|
|
6944
|
+
|
|
6945
|
+
switch (code) {
|
|
6946
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
|
6947
|
+
case 68: case 71: value = 4; break;
|
|
6948
|
+
default: value = 2;
|
|
6949
|
+
}
|
|
6950
|
+
|
|
6951
|
+
for (index = 0; index < 47; index++) {
|
|
6952
|
+
test.push({ k: chr + index, v: value });
|
|
6953
|
+
}
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
6957
|
+
|
|
6958
|
+
for (index = 0; index < test.length; index++) {
|
|
6959
|
+
chr = test[index].k.charAt(0);
|
|
6960
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6963
|
+
return result !== 'DGBEFHACIJK';
|
|
6964
|
+
});
|
|
6965
|
+
|
|
6966
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
|
6967
|
+
|
|
6968
|
+
var getSortCompare = function (comparefn) {
|
|
6969
|
+
return function (x, y) {
|
|
6970
|
+
if (y === undefined) return -1;
|
|
6971
|
+
if (x === undefined) return 1;
|
|
6972
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
6973
|
+
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
6974
|
+
};
|
|
6975
|
+
};
|
|
6976
|
+
|
|
6977
|
+
// `Array.prototype.sort` method
|
|
6978
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
6979
|
+
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
6980
|
+
sort: function sort(comparefn) {
|
|
6981
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
|
6982
|
+
|
|
6983
|
+
var array = toObject(this);
|
|
6984
|
+
|
|
6985
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
|
6986
|
+
|
|
6987
|
+
var items = [];
|
|
6988
|
+
var arrayLength = lengthOfArrayLike(array);
|
|
6989
|
+
var itemsLength, index;
|
|
6990
|
+
|
|
6991
|
+
for (index = 0; index < arrayLength; index++) {
|
|
6992
|
+
if (index in array) push$2(items, array[index]);
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
arraySort(items, getSortCompare(comparefn));
|
|
6996
|
+
|
|
6997
|
+
itemsLength = items.length;
|
|
6998
|
+
index = 0;
|
|
6999
|
+
|
|
7000
|
+
while (index < itemsLength) array[index] = items[index++];
|
|
7001
|
+
while (index < arrayLength) delete array[index++];
|
|
7002
|
+
|
|
7003
|
+
return array;
|
|
7004
|
+
}
|
|
7005
|
+
});
|
|
7006
|
+
|
|
7007
|
+
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
7008
|
+
|
|
7009
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
7010
|
+
|
|
7011
|
+
var FunctionPrototype = Function.prototype;
|
|
7012
|
+
var functionToString = functionUncurryThis(FunctionPrototype.toString);
|
|
7013
|
+
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
7014
|
+
var regExpExec = functionUncurryThis(nameRE.exec);
|
|
7015
|
+
var NAME = 'name';
|
|
7016
|
+
|
|
7017
|
+
// Function instances `.name` property
|
|
7018
|
+
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
7019
|
+
if (descriptors && !FUNCTION_NAME_EXISTS) {
|
|
7020
|
+
defineProperty$1(FunctionPrototype, NAME, {
|
|
7021
|
+
configurable: true,
|
|
7022
|
+
get: function () {
|
|
7023
|
+
try {
|
|
7024
|
+
return regExpExec(nameRE, functionToString(this))[1];
|
|
7025
|
+
} catch (error) {
|
|
7026
|
+
return '';
|
|
7027
|
+
}
|
|
7028
|
+
}
|
|
7029
|
+
});
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
function _arrayFromIterator(iter) {
|
|
7033
|
+
var list = [];
|
|
7034
|
+
var next;
|
|
7035
|
+
|
|
7036
|
+
while (!(next = iter.next()).done) {
|
|
7037
|
+
list.push(next.value);
|
|
7038
|
+
}
|
|
7039
|
+
|
|
7040
|
+
return list;
|
|
7041
|
+
}
|
|
7042
|
+
|
|
7043
|
+
function _includesWith(pred, x, list) {
|
|
7044
|
+
var idx = 0;
|
|
7045
|
+
var len = list.length;
|
|
7046
|
+
|
|
7047
|
+
while (idx < len) {
|
|
7048
|
+
if (pred(x, list[idx])) {
|
|
7049
|
+
return true;
|
|
7050
|
+
}
|
|
7051
|
+
|
|
7052
|
+
idx += 1;
|
|
7053
|
+
}
|
|
7054
|
+
|
|
7055
|
+
return false;
|
|
7056
|
+
}
|
|
7057
|
+
|
|
7058
|
+
function _functionName(f) {
|
|
7059
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
7060
|
+
var match = String(f).match(/^function (\w*)/);
|
|
7061
|
+
return match == null ? '' : match[1];
|
|
7062
|
+
}
|
|
7063
|
+
|
|
7064
|
+
// `SameValue` abstract operation
|
|
7065
|
+
// https://tc39.es/ecma262/#sec-samevalue
|
|
7066
|
+
// eslint-disable-next-line es/no-object-is -- safe
|
|
7067
|
+
var sameValue = Object.is || function is(x, y) {
|
|
7068
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7069
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
7070
|
+
};
|
|
7071
|
+
|
|
7072
|
+
// `Object.is` method
|
|
7073
|
+
// https://tc39.es/ecma262/#sec-object.is
|
|
7074
|
+
_export({ target: 'Object', stat: true }, {
|
|
7075
|
+
is: sameValue
|
|
7076
|
+
});
|
|
7077
|
+
|
|
7078
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
7079
|
+
function _objectIs(a, b) {
|
|
7080
|
+
// SameValue algorithm
|
|
7081
|
+
if (a === b) {
|
|
7082
|
+
// Steps 1-5, 7-10
|
|
7083
|
+
// Steps 6.b-6.e: +0 != -0
|
|
7084
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
7085
|
+
} else {
|
|
7086
|
+
// Step 6.a: NaN == NaN
|
|
7087
|
+
return a !== a && b !== b;
|
|
7088
|
+
}
|
|
7089
|
+
}
|
|
7090
|
+
|
|
7091
|
+
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
7092
|
+
|
|
7093
|
+
/**
|
|
7094
|
+
* private _uniqContentEquals function.
|
|
7095
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
7096
|
+
* - iterators lengths are the same
|
|
7097
|
+
* - iterators values are unique
|
|
7098
|
+
*
|
|
7099
|
+
* false-positive result will be returned for comparision of, e.g.
|
|
7100
|
+
* - [1,2,3] and [1,2,3,4]
|
|
7101
|
+
* - [1,1,1] and [1,2,3]
|
|
7102
|
+
* */
|
|
7103
|
+
|
|
7104
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
7105
|
+
var a = _arrayFromIterator(aIterator);
|
|
7106
|
+
|
|
7107
|
+
var b = _arrayFromIterator(bIterator);
|
|
7108
|
+
|
|
7109
|
+
function eq(_a, _b) {
|
|
7110
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
7111
|
+
} // if *a* array contains any element that is not included in *b*
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
return !_includesWith(function (b, aItem) {
|
|
7115
|
+
return !_includesWith(eq, aItem, b);
|
|
7116
|
+
}, b, a);
|
|
7117
|
+
}
|
|
6696
7118
|
|
|
6697
7119
|
function _equals(a, b, stackA, stackB) {
|
|
6698
7120
|
if (_objectIs$1(a, b)) {
|
|
@@ -6730,7 +7152,7 @@
|
|
|
6730
7152
|
case 'Boolean':
|
|
6731
7153
|
case 'Number':
|
|
6732
7154
|
case 'String':
|
|
6733
|
-
if (!(
|
|
7155
|
+
if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
6734
7156
|
return false;
|
|
6735
7157
|
}
|
|
6736
7158
|
|
|
@@ -6805,9 +7227,9 @@
|
|
|
6805
7227
|
return false;
|
|
6806
7228
|
}
|
|
6807
7229
|
|
|
6808
|
-
var keysA = keys(a);
|
|
7230
|
+
var keysA = keys$1(a);
|
|
6809
7231
|
|
|
6810
|
-
if (keysA.length !== keys(b).length) {
|
|
7232
|
+
if (keysA.length !== keys$1(b).length) {
|
|
6811
7233
|
return false;
|
|
6812
7234
|
}
|
|
6813
7235
|
|
|
@@ -6854,9 +7276,7 @@
|
|
|
6854
7276
|
* R.equals(a, b); //=> true
|
|
6855
7277
|
*/
|
|
6856
7278
|
|
|
6857
|
-
var equals =
|
|
6858
|
-
/*#__PURE__*/
|
|
6859
|
-
_curry2(function equals(a, b) {
|
|
7279
|
+
var equals = /*#__PURE__*/_curry2(function equals(a, b) {
|
|
6860
7280
|
return _equals(a, b, [], []);
|
|
6861
7281
|
});
|
|
6862
7282
|
|
|
@@ -6864,7 +7284,7 @@
|
|
|
6864
7284
|
var inf, item; // Array.prototype.indexOf doesn't exist below IE9
|
|
6865
7285
|
|
|
6866
7286
|
if (typeof list.indexOf === 'function') {
|
|
6867
|
-
switch (
|
|
7287
|
+
switch (_typeof(a)) {
|
|
6868
7288
|
case 'number':
|
|
6869
7289
|
if (a === 0) {
|
|
6870
7290
|
// manually crawl the list to distinguish between +0 and -0
|
|
@@ -6951,9 +7371,7 @@
|
|
|
6951
7371
|
return Object.prototype.toString.call(x) === '[object Object]';
|
|
6952
7372
|
}
|
|
6953
7373
|
|
|
6954
|
-
var XFilter =
|
|
6955
|
-
/*#__PURE__*/
|
|
6956
|
-
function () {
|
|
7374
|
+
var XFilter = /*#__PURE__*/function () {
|
|
6957
7375
|
function XFilter(f, xf) {
|
|
6958
7376
|
this.xf = xf;
|
|
6959
7377
|
this.f = f;
|
|
@@ -6969,9 +7387,7 @@
|
|
|
6969
7387
|
return XFilter;
|
|
6970
7388
|
}();
|
|
6971
7389
|
|
|
6972
|
-
var _xfilter =
|
|
6973
|
-
/*#__PURE__*/
|
|
6974
|
-
_curry2(function _xfilter(f, xf) {
|
|
7390
|
+
var _xfilter = /*#__PURE__*/_curry2(function _xfilter(f, xf) {
|
|
6975
7391
|
return new XFilter(f, xf);
|
|
6976
7392
|
});
|
|
6977
7393
|
|
|
@@ -7003,24 +7419,18 @@
|
|
|
7003
7419
|
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
7004
7420
|
*/
|
|
7005
7421
|
|
|
7006
|
-
var filter =
|
|
7007
|
-
/*#__PURE__*/
|
|
7008
|
-
_curry2(
|
|
7009
|
-
/*#__PURE__*/
|
|
7010
|
-
_dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
7422
|
+
var filter = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
7011
7423
|
return _isObject(filterable) ? _reduce(function (acc, key) {
|
|
7012
7424
|
if (pred(filterable[key])) {
|
|
7013
7425
|
acc[key] = filterable[key];
|
|
7014
7426
|
}
|
|
7015
7427
|
|
|
7016
7428
|
return acc;
|
|
7017
|
-
}, {}, keys(filterable)) : // else
|
|
7429
|
+
}, {}, keys$1(filterable)) : // else
|
|
7018
7430
|
_filter(pred, filterable);
|
|
7019
7431
|
}));
|
|
7020
7432
|
|
|
7021
|
-
var XReduceBy =
|
|
7022
|
-
/*#__PURE__*/
|
|
7023
|
-
function () {
|
|
7433
|
+
var XReduceBy = /*#__PURE__*/function () {
|
|
7024
7434
|
function XReduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7025
7435
|
this.valueFn = valueFn;
|
|
7026
7436
|
this.valueAcc = valueAcc;
|
|
@@ -7059,9 +7469,7 @@
|
|
|
7059
7469
|
return XReduceBy;
|
|
7060
7470
|
}();
|
|
7061
7471
|
|
|
7062
|
-
var _xreduceBy =
|
|
7063
|
-
/*#__PURE__*/
|
|
7064
|
-
_curryN(4, [], function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7472
|
+
var _xreduceBy = /*#__PURE__*/_curryN(4, [], function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7065
7473
|
return new XReduceBy(valueFn, valueAcc, keyFn, xf);
|
|
7066
7474
|
});
|
|
7067
7475
|
|
|
@@ -7107,11 +7515,7 @@
|
|
|
7107
7515
|
* //=> {"A": ["Dora"], "B": ["Abby", "Curt"], "F": ["Bart"]}
|
|
7108
7516
|
*/
|
|
7109
7517
|
|
|
7110
|
-
var reduceBy =
|
|
7111
|
-
/*#__PURE__*/
|
|
7112
|
-
_curryN(4, [],
|
|
7113
|
-
/*#__PURE__*/
|
|
7114
|
-
_dispatchable([], _xreduceBy, function reduceBy(valueFn, valueAcc, keyFn, list) {
|
|
7518
|
+
var reduceBy = /*#__PURE__*/_curryN(4, [], /*#__PURE__*/_dispatchable([], _xreduceBy, function reduceBy(valueFn, valueAcc, keyFn, list) {
|
|
7115
7519
|
return _reduce(function (acc, elt) {
|
|
7116
7520
|
var key = keyFn(elt);
|
|
7117
7521
|
acc[key] = valueFn(_has(key, acc) ? acc[key] : _clone(valueAcc, [], [], false), elt);
|
|
@@ -7119,19 +7523,17 @@
|
|
|
7119
7523
|
}, {}, list);
|
|
7120
7524
|
}));
|
|
7121
7525
|
|
|
7122
|
-
var _Set =
|
|
7123
|
-
/*#__PURE__*/
|
|
7124
|
-
function () {
|
|
7526
|
+
var _Set = /*#__PURE__*/function () {
|
|
7125
7527
|
function _Set() {
|
|
7126
7528
|
/* globals Set */
|
|
7127
7529
|
this._nativeSet = typeof Set === 'function' ? new Set() : null;
|
|
7128
7530
|
this._items = {};
|
|
7129
|
-
}
|
|
7130
|
-
|
|
7131
|
-
// until we figure out why jsdoc chokes on this
|
|
7531
|
+
} // until we figure out why jsdoc chokes on this
|
|
7132
7532
|
// @param item The item to add to the Set
|
|
7133
7533
|
// @returns {boolean} true if the item did not exist prior, otherwise false
|
|
7134
7534
|
//
|
|
7535
|
+
|
|
7536
|
+
|
|
7135
7537
|
_Set.prototype.add = function (item) {
|
|
7136
7538
|
return !hasOrAdd(item, true, this);
|
|
7137
7539
|
}; //
|
|
@@ -7158,7 +7560,8 @@
|
|
|
7158
7560
|
}();
|
|
7159
7561
|
|
|
7160
7562
|
function hasOrAdd(item, shouldAdd, set) {
|
|
7161
|
-
var type =
|
|
7563
|
+
var type = _typeof(item);
|
|
7564
|
+
|
|
7162
7565
|
var prevSize, newSize;
|
|
7163
7566
|
|
|
7164
7567
|
switch (type) {
|
|
@@ -7316,9 +7719,67 @@
|
|
|
7316
7719
|
}
|
|
7317
7720
|
} // A simple Set type that honours R.equals semantics
|
|
7318
7721
|
|
|
7319
|
-
var
|
|
7320
|
-
|
|
7321
|
-
|
|
7722
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
|
7723
|
+
|
|
7724
|
+
var TypeError$2 = global$1.TypeError;
|
|
7725
|
+
var max = Math.max;
|
|
7726
|
+
var min = Math.min;
|
|
7727
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
7728
|
+
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
|
7729
|
+
|
|
7730
|
+
// `Array.prototype.splice` method
|
|
7731
|
+
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
|
7732
|
+
// with adding support of @@species
|
|
7733
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
7734
|
+
splice: function splice(start, deleteCount /* , ...items */) {
|
|
7735
|
+
var O = toObject(this);
|
|
7736
|
+
var len = lengthOfArrayLike(O);
|
|
7737
|
+
var actualStart = toAbsoluteIndex(start, len);
|
|
7738
|
+
var argumentsLength = arguments.length;
|
|
7739
|
+
var insertCount, actualDeleteCount, A, k, from, to;
|
|
7740
|
+
if (argumentsLength === 0) {
|
|
7741
|
+
insertCount = actualDeleteCount = 0;
|
|
7742
|
+
} else if (argumentsLength === 1) {
|
|
7743
|
+
insertCount = 0;
|
|
7744
|
+
actualDeleteCount = len - actualStart;
|
|
7745
|
+
} else {
|
|
7746
|
+
insertCount = argumentsLength - 2;
|
|
7747
|
+
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
7748
|
+
}
|
|
7749
|
+
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
|
7750
|
+
throw TypeError$2(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
7751
|
+
}
|
|
7752
|
+
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
7753
|
+
for (k = 0; k < actualDeleteCount; k++) {
|
|
7754
|
+
from = actualStart + k;
|
|
7755
|
+
if (from in O) createProperty(A, k, O[from]);
|
|
7756
|
+
}
|
|
7757
|
+
A.length = actualDeleteCount;
|
|
7758
|
+
if (insertCount < actualDeleteCount) {
|
|
7759
|
+
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
7760
|
+
from = k + actualDeleteCount;
|
|
7761
|
+
to = k + insertCount;
|
|
7762
|
+
if (from in O) O[to] = O[from];
|
|
7763
|
+
else delete O[to];
|
|
7764
|
+
}
|
|
7765
|
+
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
|
7766
|
+
} else if (insertCount > actualDeleteCount) {
|
|
7767
|
+
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
7768
|
+
from = k + actualDeleteCount - 1;
|
|
7769
|
+
to = k + insertCount - 1;
|
|
7770
|
+
if (from in O) O[to] = O[from];
|
|
7771
|
+
else delete O[to];
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
for (k = 0; k < insertCount; k++) {
|
|
7775
|
+
O[k + actualStart] = arguments[k + 2];
|
|
7776
|
+
}
|
|
7777
|
+
O.length = len - actualDeleteCount + insertCount;
|
|
7778
|
+
return A;
|
|
7779
|
+
}
|
|
7780
|
+
});
|
|
7781
|
+
|
|
7782
|
+
var XTake = /*#__PURE__*/function () {
|
|
7322
7783
|
function XTake(n, xf) {
|
|
7323
7784
|
this.xf = xf;
|
|
7324
7785
|
this.n = n;
|
|
@@ -7337,9 +7798,7 @@
|
|
|
7337
7798
|
return XTake;
|
|
7338
7799
|
}();
|
|
7339
7800
|
|
|
7340
|
-
var _xtake =
|
|
7341
|
-
/*#__PURE__*/
|
|
7342
|
-
_curry2(function _xtake(n, xf) {
|
|
7801
|
+
var _xtake = /*#__PURE__*/_curry2(function _xtake(n, xf) {
|
|
7343
7802
|
return new XTake(n, xf);
|
|
7344
7803
|
});
|
|
7345
7804
|
|
|
@@ -7387,11 +7846,7 @@
|
|
|
7387
7846
|
* @symb R.take(2, [a, b]) = [a, b]
|
|
7388
7847
|
*/
|
|
7389
7848
|
|
|
7390
|
-
var take =
|
|
7391
|
-
/*#__PURE__*/
|
|
7392
|
-
_curry2(
|
|
7393
|
-
/*#__PURE__*/
|
|
7394
|
-
_dispatchable(['take'], _xtake, function take(n, xs) {
|
|
7849
|
+
var take = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['take'], _xtake, function take(n, xs) {
|
|
7395
7850
|
return slice(0, n < 0 ? Infinity : n, xs);
|
|
7396
7851
|
}));
|
|
7397
7852
|
|
|
@@ -7399,9 +7854,7 @@
|
|
|
7399
7854
|
return take(n < xs.length ? xs.length - n : 0, xs);
|
|
7400
7855
|
}
|
|
7401
7856
|
|
|
7402
|
-
var XDropLast =
|
|
7403
|
-
/*#__PURE__*/
|
|
7404
|
-
function () {
|
|
7857
|
+
var XDropLast = /*#__PURE__*/function () {
|
|
7405
7858
|
function XDropLast(n, xf) {
|
|
7406
7859
|
this.xf = xf;
|
|
7407
7860
|
this.pos = 0;
|
|
@@ -7438,9 +7891,7 @@
|
|
|
7438
7891
|
return XDropLast;
|
|
7439
7892
|
}();
|
|
7440
7893
|
|
|
7441
|
-
var _xdropLast =
|
|
7442
|
-
/*#__PURE__*/
|
|
7443
|
-
_curry2(function _xdropLast(n, xf) {
|
|
7894
|
+
var _xdropLast = /*#__PURE__*/_curry2(function _xdropLast(n, xf) {
|
|
7444
7895
|
return new XDropLast(n, xf);
|
|
7445
7896
|
});
|
|
7446
7897
|
|
|
@@ -7468,11 +7919,7 @@
|
|
|
7468
7919
|
* R.dropLast(3, 'ramda'); //=> 'ra'
|
|
7469
7920
|
*/
|
|
7470
7921
|
|
|
7471
|
-
var dropLast =
|
|
7472
|
-
/*#__PURE__*/
|
|
7473
|
-
_curry2(
|
|
7474
|
-
/*#__PURE__*/
|
|
7475
|
-
_dispatchable([], _xdropLast, dropLast$1));
|
|
7922
|
+
var dropLast = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xdropLast, dropLast$1));
|
|
7476
7923
|
|
|
7477
7924
|
/**
|
|
7478
7925
|
* Returns a new list by pulling every item out of it (and all its sub-arrays)
|
|
@@ -7492,11 +7939,7 @@
|
|
|
7492
7939
|
* //=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
|
7493
7940
|
*/
|
|
7494
7941
|
|
|
7495
|
-
var flatten =
|
|
7496
|
-
/*#__PURE__*/
|
|
7497
|
-
_curry1(
|
|
7498
|
-
/*#__PURE__*/
|
|
7499
|
-
_makeFlat(true));
|
|
7942
|
+
var flatten = /*#__PURE__*/_curry1( /*#__PURE__*/_makeFlat(true));
|
|
7500
7943
|
|
|
7501
7944
|
/**
|
|
7502
7945
|
* Creates a new object from a list key-value pairs. If a key appears in
|
|
@@ -7515,9 +7958,7 @@
|
|
|
7515
7958
|
* R.fromPairs([['a', 1], ['b', 2], ['c', 3]]); //=> {a: 1, b: 2, c: 3}
|
|
7516
7959
|
*/
|
|
7517
7960
|
|
|
7518
|
-
var fromPairs =
|
|
7519
|
-
/*#__PURE__*/
|
|
7520
|
-
_curry1(function fromPairs(pairs) {
|
|
7961
|
+
var fromPairs = /*#__PURE__*/_curry1(function fromPairs(pairs) {
|
|
7521
7962
|
var result = {};
|
|
7522
7963
|
var idx = 0;
|
|
7523
7964
|
|
|
@@ -7570,13 +8011,7 @@
|
|
|
7570
8011
|
* // }
|
|
7571
8012
|
*/
|
|
7572
8013
|
|
|
7573
|
-
var groupBy =
|
|
7574
|
-
/*#__PURE__*/
|
|
7575
|
-
_curry2(
|
|
7576
|
-
/*#__PURE__*/
|
|
7577
|
-
_checkForMethod('groupBy',
|
|
7578
|
-
/*#__PURE__*/
|
|
7579
|
-
reduceBy(function (acc, item) {
|
|
8014
|
+
var groupBy = /*#__PURE__*/_curry2( /*#__PURE__*/_checkForMethod('groupBy', /*#__PURE__*/reduceBy(function (acc, item) {
|
|
7580
8015
|
if (acc == null) {
|
|
7581
8016
|
acc = [];
|
|
7582
8017
|
}
|
|
@@ -7608,9 +8043,7 @@
|
|
|
7608
8043
|
* //=> {abc: {id: 'abc', title: 'B'}, xyz: {id: 'xyz', title: 'A'}}
|
|
7609
8044
|
*/
|
|
7610
8045
|
|
|
7611
|
-
var indexBy =
|
|
7612
|
-
/*#__PURE__*/
|
|
7613
|
-
reduceBy(function (acc, elem) {
|
|
8046
|
+
var indexBy = /*#__PURE__*/reduceBy(function (acc, elem) {
|
|
7614
8047
|
return elem;
|
|
7615
8048
|
}, null);
|
|
7616
8049
|
|
|
@@ -7633,9 +8066,7 @@
|
|
|
7633
8066
|
* R.uniqBy(Math.abs, [-1, -5, 2, 10, 1, 2]); //=> [-1, -5, 2, 10]
|
|
7634
8067
|
*/
|
|
7635
8068
|
|
|
7636
|
-
var uniqBy =
|
|
7637
|
-
/*#__PURE__*/
|
|
7638
|
-
_curry2(function uniqBy(fn, list) {
|
|
8069
|
+
var uniqBy = /*#__PURE__*/_curry2(function uniqBy(fn, list) {
|
|
7639
8070
|
var set = new _Set();
|
|
7640
8071
|
var result = [];
|
|
7641
8072
|
var idx = 0;
|
|
@@ -7673,9 +8104,61 @@
|
|
|
7673
8104
|
* R.uniq([[42], [42]]); //=> [[42]]
|
|
7674
8105
|
*/
|
|
7675
8106
|
|
|
7676
|
-
var uniq =
|
|
7677
|
-
|
|
7678
|
-
|
|
8107
|
+
var uniq = /*#__PURE__*/uniqBy(identity);
|
|
8108
|
+
|
|
8109
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
8110
|
+
var $assign = Object.assign;
|
|
8111
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
8112
|
+
var defineProperty = Object.defineProperty;
|
|
8113
|
+
var concat = functionUncurryThis([].concat);
|
|
8114
|
+
|
|
8115
|
+
// `Object.assign` method
|
|
8116
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
8117
|
+
var objectAssign = !$assign || fails(function () {
|
|
8118
|
+
// should have correct order of operations (Edge bug)
|
|
8119
|
+
if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
8120
|
+
enumerable: true,
|
|
8121
|
+
get: function () {
|
|
8122
|
+
defineProperty(this, 'b', {
|
|
8123
|
+
value: 3,
|
|
8124
|
+
enumerable: false
|
|
8125
|
+
});
|
|
8126
|
+
}
|
|
8127
|
+
}), { b: 2 })).b !== 1) return true;
|
|
8128
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
8129
|
+
var A = {};
|
|
8130
|
+
var B = {};
|
|
8131
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
8132
|
+
var symbol = Symbol();
|
|
8133
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
8134
|
+
A[symbol] = 7;
|
|
8135
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
8136
|
+
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
8137
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
8138
|
+
var T = toObject(target);
|
|
8139
|
+
var argumentsLength = arguments.length;
|
|
8140
|
+
var index = 1;
|
|
8141
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
8142
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
8143
|
+
while (argumentsLength > index) {
|
|
8144
|
+
var S = indexedObject(arguments[index++]);
|
|
8145
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
8146
|
+
var length = keys.length;
|
|
8147
|
+
var j = 0;
|
|
8148
|
+
var key;
|
|
8149
|
+
while (length > j) {
|
|
8150
|
+
key = keys[j++];
|
|
8151
|
+
if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
8152
|
+
}
|
|
8153
|
+
} return T;
|
|
8154
|
+
} : $assign;
|
|
8155
|
+
|
|
8156
|
+
// `Object.assign` method
|
|
8157
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
8158
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
8159
|
+
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
|
8160
|
+
assign: objectAssign
|
|
8161
|
+
});
|
|
7679
8162
|
|
|
7680
8163
|
function _objectAssign(target) {
|
|
7681
8164
|
if (target == null) {
|
|
@@ -7730,9 +8213,7 @@
|
|
|
7730
8213
|
* R.reduce(R.maxBy(square), 0, []); //=> 0
|
|
7731
8214
|
*/
|
|
7732
8215
|
|
|
7733
|
-
var maxBy =
|
|
7734
|
-
/*#__PURE__*/
|
|
7735
|
-
_curry3(function maxBy(f, a, b) {
|
|
8216
|
+
var maxBy = /*#__PURE__*/_curry3(function maxBy(f, a, b) {
|
|
7736
8217
|
return f(b) > f(a) ? b : a;
|
|
7737
8218
|
});
|
|
7738
8219
|
|
|
@@ -7754,9 +8235,7 @@
|
|
|
7754
8235
|
* @symb R.mergeAll([{ x: 1 }, { y: 2 }, { z: 3 }]) = { x: 1, y: 2, z: 3 }
|
|
7755
8236
|
*/
|
|
7756
8237
|
|
|
7757
|
-
var mergeAll =
|
|
7758
|
-
/*#__PURE__*/
|
|
7759
|
-
_curry1(function mergeAll(list) {
|
|
8238
|
+
var mergeAll = /*#__PURE__*/_curry1(function mergeAll(list) {
|
|
7760
8239
|
return _objectAssign$1.apply(null, [{}].concat(list));
|
|
7761
8240
|
});
|
|
7762
8241
|
|
|
@@ -7786,9 +8265,7 @@
|
|
|
7786
8265
|
* @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }
|
|
7787
8266
|
*/
|
|
7788
8267
|
|
|
7789
|
-
var mergeWithKey =
|
|
7790
|
-
/*#__PURE__*/
|
|
7791
|
-
_curry3(function mergeWithKey(fn, l, r) {
|
|
8268
|
+
var mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {
|
|
7792
8269
|
var result = {};
|
|
7793
8270
|
var k;
|
|
7794
8271
|
|
|
@@ -7836,9 +8313,7 @@
|
|
|
7836
8313
|
* //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}
|
|
7837
8314
|
*/
|
|
7838
8315
|
|
|
7839
|
-
var mergeDeepWithKey =
|
|
7840
|
-
/*#__PURE__*/
|
|
7841
|
-
_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
8316
|
+
var mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
7842
8317
|
return mergeWithKey(function (k, lVal, rVal) {
|
|
7843
8318
|
if (_isObject(lVal) && _isObject(rVal)) {
|
|
7844
8319
|
return mergeDeepWithKey(fn, lVal, rVal);
|
|
@@ -7870,9 +8345,7 @@
|
|
|
7870
8345
|
* //=> { name: 'fred', age: 10, contact: { email: 'moo@example.com' }}
|
|
7871
8346
|
*/
|
|
7872
8347
|
|
|
7873
|
-
var mergeDeepLeft =
|
|
7874
|
-
/*#__PURE__*/
|
|
7875
|
-
_curry2(function mergeDeepLeft(lObj, rObj) {
|
|
8348
|
+
var mergeDeepLeft = /*#__PURE__*/_curry2(function mergeDeepLeft(lObj, rObj) {
|
|
7876
8349
|
return mergeDeepWithKey(function (k, lVal, rVal) {
|
|
7877
8350
|
return lVal;
|
|
7878
8351
|
}, lObj, rObj);
|
|
@@ -7903,9 +8376,7 @@
|
|
|
7903
8376
|
* R.reduce(R.minBy(square), Infinity, []); //=> Infinity
|
|
7904
8377
|
*/
|
|
7905
8378
|
|
|
7906
|
-
var minBy =
|
|
7907
|
-
/*#__PURE__*/
|
|
7908
|
-
_curry3(function minBy(f, a, b) {
|
|
8379
|
+
var minBy = /*#__PURE__*/_curry3(function minBy(f, a, b) {
|
|
7909
8380
|
return f(b) < f(a) ? b : a;
|
|
7910
8381
|
});
|
|
7911
8382
|
|
|
@@ -7928,9 +8399,7 @@
|
|
|
7928
8399
|
* R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
|
|
7929
8400
|
*/
|
|
7930
8401
|
|
|
7931
|
-
var toPairs =
|
|
7932
|
-
/*#__PURE__*/
|
|
7933
|
-
_curry1(function toPairs(obj) {
|
|
8402
|
+
var toPairs = /*#__PURE__*/_curry1(function toPairs(obj) {
|
|
7934
8403
|
var pairs = [];
|
|
7935
8404
|
|
|
7936
8405
|
for (var prop in obj) {
|
|
@@ -7960,9 +8429,7 @@
|
|
|
7960
8429
|
* R.unnest([[1, 2], [3, 4], [5, 6]]); //=> [1, 2, 3, 4, 5, 6]
|
|
7961
8430
|
*/
|
|
7962
8431
|
|
|
7963
|
-
var unnest$1 =
|
|
7964
|
-
/*#__PURE__*/
|
|
7965
|
-
chain(_identity);
|
|
8432
|
+
var unnest$1 = /*#__PURE__*/chain(_identity);
|
|
7966
8433
|
|
|
7967
8434
|
var $entries = objectToArray.entries;
|
|
7968
8435
|
|
|
@@ -7977,76 +8444,16 @@
|
|
|
7977
8444
|
var $every = arrayIteration.every;
|
|
7978
8445
|
|
|
7979
8446
|
|
|
7980
|
-
var STRICT_METHOD
|
|
8447
|
+
var STRICT_METHOD = arrayMethodIsStrict('every');
|
|
7981
8448
|
|
|
7982
8449
|
// `Array.prototype.every` method
|
|
7983
8450
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
7984
|
-
_export({ target: 'Array', proto: true, forced: !STRICT_METHOD
|
|
8451
|
+
_export({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {
|
|
7985
8452
|
every: function every(callbackfn /* , thisArg */) {
|
|
7986
8453
|
return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
7987
8454
|
}
|
|
7988
8455
|
});
|
|
7989
8456
|
|
|
7990
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
|
7991
|
-
|
|
7992
|
-
var TypeError$2 = global$1.TypeError;
|
|
7993
|
-
var max = Math.max;
|
|
7994
|
-
var min = Math.min;
|
|
7995
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
7996
|
-
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
|
7997
|
-
|
|
7998
|
-
// `Array.prototype.splice` method
|
|
7999
|
-
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
|
8000
|
-
// with adding support of @@species
|
|
8001
|
-
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
8002
|
-
splice: function splice(start, deleteCount /* , ...items */) {
|
|
8003
|
-
var O = toObject(this);
|
|
8004
|
-
var len = lengthOfArrayLike(O);
|
|
8005
|
-
var actualStart = toAbsoluteIndex(start, len);
|
|
8006
|
-
var argumentsLength = arguments.length;
|
|
8007
|
-
var insertCount, actualDeleteCount, A, k, from, to;
|
|
8008
|
-
if (argumentsLength === 0) {
|
|
8009
|
-
insertCount = actualDeleteCount = 0;
|
|
8010
|
-
} else if (argumentsLength === 1) {
|
|
8011
|
-
insertCount = 0;
|
|
8012
|
-
actualDeleteCount = len - actualStart;
|
|
8013
|
-
} else {
|
|
8014
|
-
insertCount = argumentsLength - 2;
|
|
8015
|
-
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
8016
|
-
}
|
|
8017
|
-
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
|
8018
|
-
throw TypeError$2(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
8019
|
-
}
|
|
8020
|
-
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
8021
|
-
for (k = 0; k < actualDeleteCount; k++) {
|
|
8022
|
-
from = actualStart + k;
|
|
8023
|
-
if (from in O) createProperty(A, k, O[from]);
|
|
8024
|
-
}
|
|
8025
|
-
A.length = actualDeleteCount;
|
|
8026
|
-
if (insertCount < actualDeleteCount) {
|
|
8027
|
-
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
8028
|
-
from = k + actualDeleteCount;
|
|
8029
|
-
to = k + insertCount;
|
|
8030
|
-
if (from in O) O[to] = O[from];
|
|
8031
|
-
else delete O[to];
|
|
8032
|
-
}
|
|
8033
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
|
8034
|
-
} else if (insertCount > actualDeleteCount) {
|
|
8035
|
-
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
8036
|
-
from = k + actualDeleteCount - 1;
|
|
8037
|
-
to = k + insertCount - 1;
|
|
8038
|
-
if (from in O) O[to] = O[from];
|
|
8039
|
-
else delete O[to];
|
|
8040
|
-
}
|
|
8041
|
-
}
|
|
8042
|
-
for (k = 0; k < insertCount; k++) {
|
|
8043
|
-
O[k + actualStart] = arguments[k + 2];
|
|
8044
|
-
}
|
|
8045
|
-
O.length = len - actualDeleteCount + insertCount;
|
|
8046
|
-
return A;
|
|
8047
|
-
}
|
|
8048
|
-
});
|
|
8049
|
-
|
|
8050
8457
|
var _excluded$2 = ["query"];
|
|
8051
8458
|
|
|
8052
8459
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -9310,175 +9717,6 @@
|
|
|
9310
9717
|
return SqlQuery;
|
|
9311
9718
|
}();
|
|
9312
9719
|
|
|
9313
|
-
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
9314
|
-
|
|
9315
|
-
var defineProperty = objectDefineProperty.f;
|
|
9316
|
-
|
|
9317
|
-
var FunctionPrototype = Function.prototype;
|
|
9318
|
-
var functionToString = functionUncurryThis(FunctionPrototype.toString);
|
|
9319
|
-
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
9320
|
-
var regExpExec = functionUncurryThis(nameRE.exec);
|
|
9321
|
-
var NAME = 'name';
|
|
9322
|
-
|
|
9323
|
-
// Function instances `.name` property
|
|
9324
|
-
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
9325
|
-
if (descriptors && !FUNCTION_NAME_EXISTS) {
|
|
9326
|
-
defineProperty(FunctionPrototype, NAME, {
|
|
9327
|
-
configurable: true,
|
|
9328
|
-
get: function () {
|
|
9329
|
-
try {
|
|
9330
|
-
return regExpExec(nameRE, functionToString(this))[1];
|
|
9331
|
-
} catch (error) {
|
|
9332
|
-
return '';
|
|
9333
|
-
}
|
|
9334
|
-
}
|
|
9335
|
-
});
|
|
9336
|
-
}
|
|
9337
|
-
|
|
9338
|
-
var floor = Math.floor;
|
|
9339
|
-
|
|
9340
|
-
var mergeSort = function (array, comparefn) {
|
|
9341
|
-
var length = array.length;
|
|
9342
|
-
var middle = floor(length / 2);
|
|
9343
|
-
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
9344
|
-
array,
|
|
9345
|
-
mergeSort(arraySliceSimple(array, 0, middle), comparefn),
|
|
9346
|
-
mergeSort(arraySliceSimple(array, middle), comparefn),
|
|
9347
|
-
comparefn
|
|
9348
|
-
);
|
|
9349
|
-
};
|
|
9350
|
-
|
|
9351
|
-
var insertionSort = function (array, comparefn) {
|
|
9352
|
-
var length = array.length;
|
|
9353
|
-
var i = 1;
|
|
9354
|
-
var element, j;
|
|
9355
|
-
|
|
9356
|
-
while (i < length) {
|
|
9357
|
-
j = i;
|
|
9358
|
-
element = array[i];
|
|
9359
|
-
while (j && comparefn(array[j - 1], element) > 0) {
|
|
9360
|
-
array[j] = array[--j];
|
|
9361
|
-
}
|
|
9362
|
-
if (j !== i++) array[j] = element;
|
|
9363
|
-
} return array;
|
|
9364
|
-
};
|
|
9365
|
-
|
|
9366
|
-
var merge = function (array, left, right, comparefn) {
|
|
9367
|
-
var llength = left.length;
|
|
9368
|
-
var rlength = right.length;
|
|
9369
|
-
var lindex = 0;
|
|
9370
|
-
var rindex = 0;
|
|
9371
|
-
|
|
9372
|
-
while (lindex < llength || rindex < rlength) {
|
|
9373
|
-
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
9374
|
-
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
9375
|
-
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
9376
|
-
} return array;
|
|
9377
|
-
};
|
|
9378
|
-
|
|
9379
|
-
var arraySort = mergeSort;
|
|
9380
|
-
|
|
9381
|
-
var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
|
|
9382
|
-
|
|
9383
|
-
var engineFfVersion = !!firefox && +firefox[1];
|
|
9384
|
-
|
|
9385
|
-
var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
|
|
9386
|
-
|
|
9387
|
-
var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
|
|
9388
|
-
|
|
9389
|
-
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
9390
|
-
|
|
9391
|
-
var test = [];
|
|
9392
|
-
var un$Sort = functionUncurryThis(test.sort);
|
|
9393
|
-
var push$2 = functionUncurryThis(test.push);
|
|
9394
|
-
|
|
9395
|
-
// IE8-
|
|
9396
|
-
var FAILS_ON_UNDEFINED = fails(function () {
|
|
9397
|
-
test.sort(undefined);
|
|
9398
|
-
});
|
|
9399
|
-
// V8 bug
|
|
9400
|
-
var FAILS_ON_NULL = fails(function () {
|
|
9401
|
-
test.sort(null);
|
|
9402
|
-
});
|
|
9403
|
-
// Old WebKit
|
|
9404
|
-
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
9405
|
-
|
|
9406
|
-
var STABLE_SORT = !fails(function () {
|
|
9407
|
-
// feature detection can be too slow, so check engines versions
|
|
9408
|
-
if (engineV8Version) return engineV8Version < 70;
|
|
9409
|
-
if (engineFfVersion && engineFfVersion > 3) return;
|
|
9410
|
-
if (engineIsIeOrEdge) return true;
|
|
9411
|
-
if (engineWebkitVersion) return engineWebkitVersion < 603;
|
|
9412
|
-
|
|
9413
|
-
var result = '';
|
|
9414
|
-
var code, chr, value, index;
|
|
9415
|
-
|
|
9416
|
-
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
9417
|
-
for (code = 65; code < 76; code++) {
|
|
9418
|
-
chr = String.fromCharCode(code);
|
|
9419
|
-
|
|
9420
|
-
switch (code) {
|
|
9421
|
-
case 66: case 69: case 70: case 72: value = 3; break;
|
|
9422
|
-
case 68: case 71: value = 4; break;
|
|
9423
|
-
default: value = 2;
|
|
9424
|
-
}
|
|
9425
|
-
|
|
9426
|
-
for (index = 0; index < 47; index++) {
|
|
9427
|
-
test.push({ k: chr + index, v: value });
|
|
9428
|
-
}
|
|
9429
|
-
}
|
|
9430
|
-
|
|
9431
|
-
test.sort(function (a, b) { return b.v - a.v; });
|
|
9432
|
-
|
|
9433
|
-
for (index = 0; index < test.length; index++) {
|
|
9434
|
-
chr = test[index].k.charAt(0);
|
|
9435
|
-
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
9436
|
-
}
|
|
9437
|
-
|
|
9438
|
-
return result !== 'DGBEFHACIJK';
|
|
9439
|
-
});
|
|
9440
|
-
|
|
9441
|
-
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
9442
|
-
|
|
9443
|
-
var getSortCompare = function (comparefn) {
|
|
9444
|
-
return function (x, y) {
|
|
9445
|
-
if (y === undefined) return -1;
|
|
9446
|
-
if (x === undefined) return 1;
|
|
9447
|
-
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
9448
|
-
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
9449
|
-
};
|
|
9450
|
-
};
|
|
9451
|
-
|
|
9452
|
-
// `Array.prototype.sort` method
|
|
9453
|
-
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
9454
|
-
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
9455
|
-
sort: function sort(comparefn) {
|
|
9456
|
-
if (comparefn !== undefined) aCallable(comparefn);
|
|
9457
|
-
|
|
9458
|
-
var array = toObject(this);
|
|
9459
|
-
|
|
9460
|
-
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
|
9461
|
-
|
|
9462
|
-
var items = [];
|
|
9463
|
-
var arrayLength = lengthOfArrayLike(array);
|
|
9464
|
-
var itemsLength, index;
|
|
9465
|
-
|
|
9466
|
-
for (index = 0; index < arrayLength; index++) {
|
|
9467
|
-
if (index in array) push$2(items, array[index]);
|
|
9468
|
-
}
|
|
9469
|
-
|
|
9470
|
-
arraySort(items, getSortCompare(comparefn));
|
|
9471
|
-
|
|
9472
|
-
itemsLength = items.length;
|
|
9473
|
-
index = 0;
|
|
9474
|
-
|
|
9475
|
-
while (index < itemsLength) array[index] = items[index++];
|
|
9476
|
-
while (index < arrayLength) delete array[index++];
|
|
9477
|
-
|
|
9478
|
-
return array;
|
|
9479
|
-
}
|
|
9480
|
-
});
|
|
9481
|
-
|
|
9482
9720
|
var memberMap = function memberMap(memberArray) {
|
|
9483
9721
|
return fromPairs(memberArray.map(function (m) {
|
|
9484
9722
|
return [m.name, m];
|
|
@@ -9507,9 +9745,15 @@
|
|
|
9507
9745
|
}, {
|
|
9508
9746
|
name: 'startsWith',
|
|
9509
9747
|
title: 'starts with'
|
|
9748
|
+
}, {
|
|
9749
|
+
name: 'notStartsWith',
|
|
9750
|
+
title: 'starts with'
|
|
9510
9751
|
}, {
|
|
9511
9752
|
name: 'endsWith',
|
|
9512
9753
|
title: 'ends with'
|
|
9754
|
+
}, {
|
|
9755
|
+
name: 'notEndsWith',
|
|
9756
|
+
title: 'ends with'
|
|
9513
9757
|
}],
|
|
9514
9758
|
number: [{
|
|
9515
9759
|
name: 'equals',
|