@cubejs-client/vue3 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-vue3.umd.js +1312 -550
- package/dist/cubejs-client-vue3.umd.js.map +1 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -1205
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
var toString$
|
|
90
|
-
var stringSlice$
|
|
89
|
+
var toString$4 = functionUncurryThis({}.toString);
|
|
90
|
+
var stringSlice$6 = functionUncurryThis(''.slice);
|
|
91
91
|
|
|
92
92
|
var classofRaw = function (it) {
|
|
93
|
-
return stringSlice$
|
|
93
|
+
return stringSlice$6(toString$4(it), 8, -1);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
var Object$5 = global$1.Object;
|
|
@@ -236,11 +236,11 @@
|
|
|
236
236
|
var isPure = false;
|
|
237
237
|
|
|
238
238
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
239
|
-
var defineProperty$
|
|
239
|
+
var defineProperty$8 = Object.defineProperty;
|
|
240
240
|
|
|
241
241
|
var setGlobal = function (key, value) {
|
|
242
242
|
try {
|
|
243
|
-
defineProperty$
|
|
243
|
+
defineProperty$8(global$1, key, { value: value, configurable: true, writable: true });
|
|
244
244
|
} catch (error) {
|
|
245
245
|
global$1[key] = value;
|
|
246
246
|
} return value;
|
|
@@ -279,10 +279,10 @@
|
|
|
279
279
|
|
|
280
280
|
var id = 0;
|
|
281
281
|
var postfix = Math.random();
|
|
282
|
-
var toString$
|
|
282
|
+
var toString$3 = functionUncurryThis(1.0.toString);
|
|
283
283
|
|
|
284
284
|
var uid = function (key) {
|
|
285
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
285
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
var WellKnownSymbolsStore$1 = shared('wks');
|
|
@@ -416,10 +416,10 @@
|
|
|
416
416
|
|
|
417
417
|
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
418
418
|
|
|
419
|
-
var keys$
|
|
419
|
+
var keys$4 = shared('keys');
|
|
420
420
|
|
|
421
421
|
var sharedKey = function (key) {
|
|
422
|
-
return keys$
|
|
422
|
+
return keys$4[key] || (keys$4[key] = uid(key));
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
var hiddenKeys$1 = {};
|
|
@@ -542,14 +542,14 @@
|
|
|
542
542
|
});
|
|
543
543
|
|
|
544
544
|
var ceil = Math.ceil;
|
|
545
|
-
var floor$
|
|
545
|
+
var floor$2 = Math.floor;
|
|
546
546
|
|
|
547
547
|
// `ToIntegerOrInfinity` abstract operation
|
|
548
548
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
549
549
|
var toIntegerOrInfinity = function (argument) {
|
|
550
550
|
var number = +argument;
|
|
551
551
|
// eslint-disable-next-line no-self-compare -- safe
|
|
552
|
-
return number !== number || number === 0 ? 0 : (number > 0 ? floor$
|
|
552
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$2 : ceil)(number);
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
var max$3 = Math.max;
|
|
@@ -655,13 +655,13 @@
|
|
|
655
655
|
f: f$3
|
|
656
656
|
};
|
|
657
657
|
|
|
658
|
-
var concat$
|
|
658
|
+
var concat$2 = functionUncurryThis([].concat);
|
|
659
659
|
|
|
660
660
|
// all object keys, includes non-enumerable and symbols
|
|
661
661
|
var ownKeys$3 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
662
662
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
|
663
663
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
664
|
-
return getOwnPropertySymbols ? concat$
|
|
664
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
667
|
var copyConstructorProperties = function (target, source) {
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
|
|
801
801
|
var String$3 = global$1.String;
|
|
802
802
|
|
|
803
|
-
var toString$
|
|
803
|
+
var toString$2 = function (argument) {
|
|
804
804
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
805
805
|
return String$3(argument);
|
|
806
806
|
};
|
|
@@ -960,16 +960,16 @@
|
|
|
960
960
|
|
|
961
961
|
var path$1 = global$1;
|
|
962
962
|
|
|
963
|
-
var defineProperty$
|
|
963
|
+
var defineProperty$7 = objectDefineProperty.f;
|
|
964
964
|
|
|
965
965
|
var defineWellKnownSymbol = function (NAME) {
|
|
966
966
|
var Symbol = path$1.Symbol || (path$1.Symbol = {});
|
|
967
|
-
if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$
|
|
967
|
+
if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$7(Symbol, NAME, {
|
|
968
968
|
value: wellKnownSymbolWrapped.f(NAME)
|
|
969
969
|
});
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
var defineProperty$
|
|
972
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
973
973
|
|
|
974
974
|
|
|
975
975
|
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
|
|
978
978
|
var setToStringTag = function (it, TAG, STATIC) {
|
|
979
979
|
if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG$1)) {
|
|
980
|
-
defineProperty$
|
|
980
|
+
defineProperty$6(it, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
983
|
|
|
@@ -995,7 +995,7 @@
|
|
|
995
995
|
var empty = [];
|
|
996
996
|
var construct$1 = getBuiltIn('Reflect', 'construct');
|
|
997
997
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
998
|
-
var exec$
|
|
998
|
+
var exec$2 = functionUncurryThis(constructorRegExp.exec);
|
|
999
999
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1000
1000
|
|
|
1001
1001
|
var isConstructorModern = function (argument) {
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
case 'GeneratorFunction':
|
|
1016
1016
|
case 'AsyncGeneratorFunction': return false;
|
|
1017
1017
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1018
|
-
} return INCORRECT_TO_STRING || !!exec$
|
|
1018
|
+
} return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
|
|
1019
1019
|
};
|
|
1020
1020
|
|
|
1021
1021
|
// `IsConstructor` abstract operation
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
|
|
1132
1132
|
var ObjectPrototype$2 = Object[PROTOTYPE];
|
|
1133
1133
|
var $Symbol = global$1.Symbol;
|
|
1134
|
-
var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
|
|
1134
|
+
var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
|
|
1135
1135
|
var TypeError$e = global$1.TypeError;
|
|
1136
1136
|
var QObject = global$1.QObject;
|
|
1137
1137
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -1165,7 +1165,7 @@
|
|
|
1165
1165
|
} : nativeDefineProperty;
|
|
1166
1166
|
|
|
1167
1167
|
var wrap$1 = function (tag, description) {
|
|
1168
|
-
var symbol = AllSymbols[tag] = objectCreate(SymbolPrototype);
|
|
1168
|
+
var symbol = AllSymbols[tag] = objectCreate(SymbolPrototype$1);
|
|
1169
1169
|
setInternalState$5(symbol, {
|
|
1170
1170
|
type: SYMBOL,
|
|
1171
1171
|
tag: tag,
|
|
@@ -1249,8 +1249,8 @@
|
|
|
1249
1249
|
// https://tc39.es/ecma262/#sec-symbol-constructor
|
|
1250
1250
|
if (!nativeSymbol) {
|
|
1251
1251
|
$Symbol = function Symbol() {
|
|
1252
|
-
if (objectIsPrototypeOf(SymbolPrototype, this)) throw TypeError$e('Symbol is not a constructor');
|
|
1253
|
-
var description = !arguments.length || arguments[0] === undefined ? undefined : toString$
|
|
1252
|
+
if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$e('Symbol is not a constructor');
|
|
1253
|
+
var description = !arguments.length || arguments[0] === undefined ? undefined : toString$2(arguments[0]);
|
|
1254
1254
|
var tag = uid(description);
|
|
1255
1255
|
var setter = function (value) {
|
|
1256
1256
|
if (this === ObjectPrototype$2) functionCall(setter, ObjectPrototypeSymbols, value);
|
|
@@ -1261,9 +1261,9 @@
|
|
|
1261
1261
|
return wrap$1(tag, description);
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
|
-
SymbolPrototype = $Symbol[PROTOTYPE];
|
|
1264
|
+
SymbolPrototype$1 = $Symbol[PROTOTYPE];
|
|
1265
1265
|
|
|
1266
|
-
redefine(SymbolPrototype, 'toString', function toString() {
|
|
1266
|
+
redefine(SymbolPrototype$1, 'toString', function toString() {
|
|
1267
1267
|
return getInternalState$4(this).tag;
|
|
1268
1268
|
});
|
|
1269
1269
|
|
|
@@ -1283,7 +1283,7 @@
|
|
|
1283
1283
|
|
|
1284
1284
|
if (descriptors) {
|
|
1285
1285
|
// https://github.com/tc39/proposal-Symbol-description
|
|
1286
|
-
nativeDefineProperty(SymbolPrototype, 'description', {
|
|
1286
|
+
nativeDefineProperty(SymbolPrototype$1, 'description', {
|
|
1287
1287
|
configurable: true,
|
|
1288
1288
|
get: function description() {
|
|
1289
1289
|
return getInternalState$4(this).description;
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
// `Symbol.for` method
|
|
1308
1308
|
// https://tc39.es/ecma262/#sec-symbol.for
|
|
1309
1309
|
'for': function (key) {
|
|
1310
|
-
var string = toString$
|
|
1310
|
+
var string = toString$2(key);
|
|
1311
1311
|
if (hasOwnProperty_1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
1312
1312
|
var symbol = $Symbol(string);
|
|
1313
1313
|
StringToSymbolRegistry[string] = symbol;
|
|
@@ -1387,10 +1387,10 @@
|
|
|
1387
1387
|
|
|
1388
1388
|
// `Symbol.prototype[@@toPrimitive]` method
|
|
1389
1389
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
1390
|
-
if (!SymbolPrototype[TO_PRIMITIVE]) {
|
|
1391
|
-
var valueOf = SymbolPrototype.valueOf;
|
|
1390
|
+
if (!SymbolPrototype$1[TO_PRIMITIVE]) {
|
|
1391
|
+
var valueOf = SymbolPrototype$1.valueOf;
|
|
1392
1392
|
// eslint-disable-next-line no-unused-vars -- required for .length
|
|
1393
|
-
redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
|
|
1393
|
+
redefine(SymbolPrototype$1, TO_PRIMITIVE, function (hint) {
|
|
1394
1394
|
// TODO: improve hint logic
|
|
1395
1395
|
return functionCall(valueOf, this);
|
|
1396
1396
|
});
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
});
|
|
1447
1447
|
|
|
1448
1448
|
var Function$3 = global$1.Function;
|
|
1449
|
-
var concat = functionUncurryThis([].concat);
|
|
1449
|
+
var concat$1 = functionUncurryThis([].concat);
|
|
1450
1450
|
var join$1 = functionUncurryThis([].join);
|
|
1451
1451
|
var factories = {};
|
|
1452
1452
|
|
|
@@ -1464,7 +1464,7 @@
|
|
|
1464
1464
|
var Prototype = F.prototype;
|
|
1465
1465
|
var partArgs = arraySlice$1(arguments, 1);
|
|
1466
1466
|
var boundFunction = function bound(/* args... */) {
|
|
1467
|
-
var args = concat(partArgs, arraySlice$1(arguments));
|
|
1467
|
+
var args = concat$1(partArgs, arraySlice$1(arguments));
|
|
1468
1468
|
return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
|
|
1469
1469
|
};
|
|
1470
1470
|
if (isObject(Prototype)) boundFunction.prototype = Prototype;
|
|
@@ -1526,6 +1526,16 @@
|
|
|
1526
1526
|
}
|
|
1527
1527
|
});
|
|
1528
1528
|
|
|
1529
|
+
function _typeof(obj) {
|
|
1530
|
+
"@babel/helpers - typeof";
|
|
1531
|
+
|
|
1532
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1533
|
+
return typeof obj;
|
|
1534
|
+
} : function (obj) {
|
|
1535
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1536
|
+
}, _typeof(obj);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1529
1539
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1530
1540
|
try {
|
|
1531
1541
|
var info = gen[key](arg);
|
|
@@ -3451,7 +3461,7 @@
|
|
|
3451
3461
|
}
|
|
3452
3462
|
};
|
|
3453
3463
|
|
|
3454
|
-
var defineProperty$
|
|
3464
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
3455
3465
|
|
|
3456
3466
|
|
|
3457
3467
|
|
|
@@ -3602,7 +3612,7 @@
|
|
|
3602
3612
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
3603
3613
|
}
|
|
3604
3614
|
});
|
|
3605
|
-
if (descriptors) defineProperty$
|
|
3615
|
+
if (descriptors) defineProperty$5(Prototype, 'size', {
|
|
3606
3616
|
get: function () {
|
|
3607
3617
|
return getInternalState(this).size;
|
|
3608
3618
|
}
|
|
@@ -3661,13 +3671,13 @@
|
|
|
3661
3671
|
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
3662
3672
|
}, collectionStrong);
|
|
3663
3673
|
|
|
3664
|
-
var charAt$
|
|
3674
|
+
var charAt$6 = functionUncurryThis(''.charAt);
|
|
3665
3675
|
var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
|
|
3666
|
-
var stringSlice$
|
|
3676
|
+
var stringSlice$5 = functionUncurryThis(''.slice);
|
|
3667
3677
|
|
|
3668
3678
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
3669
3679
|
return function ($this, pos) {
|
|
3670
|
-
var S = toString$
|
|
3680
|
+
var S = toString$2(requireObjectCoercible($this));
|
|
3671
3681
|
var position = toIntegerOrInfinity(pos);
|
|
3672
3682
|
var size = S.length;
|
|
3673
3683
|
var first, second;
|
|
@@ -3676,10 +3686,10 @@
|
|
|
3676
3686
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3677
3687
|
|| (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3678
3688
|
? CONVERT_TO_STRING
|
|
3679
|
-
? charAt$
|
|
3689
|
+
? charAt$6(S, position)
|
|
3680
3690
|
: first
|
|
3681
3691
|
: CONVERT_TO_STRING
|
|
3682
|
-
? stringSlice$
|
|
3692
|
+
? stringSlice$5(S, position, position + 2)
|
|
3683
3693
|
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3684
3694
|
};
|
|
3685
3695
|
};
|
|
@@ -3693,7 +3703,7 @@
|
|
|
3693
3703
|
charAt: createMethod$1(true)
|
|
3694
3704
|
};
|
|
3695
3705
|
|
|
3696
|
-
var charAt$
|
|
3706
|
+
var charAt$5 = stringMultibyte.charAt;
|
|
3697
3707
|
|
|
3698
3708
|
|
|
3699
3709
|
|
|
@@ -3707,7 +3717,7 @@
|
|
|
3707
3717
|
defineIterator(String, 'String', function (iterated) {
|
|
3708
3718
|
setInternalState$2(this, {
|
|
3709
3719
|
type: STRING_ITERATOR,
|
|
3710
|
-
string: toString$
|
|
3720
|
+
string: toString$2(iterated),
|
|
3711
3721
|
index: 0
|
|
3712
3722
|
});
|
|
3713
3723
|
// `%StringIteratorPrototype%.next` method
|
|
@@ -3718,7 +3728,7 @@
|
|
|
3718
3728
|
var index = state.index;
|
|
3719
3729
|
var point;
|
|
3720
3730
|
if (index >= string.length) return { value: undefined, done: true };
|
|
3721
|
-
point = charAt$
|
|
3731
|
+
point = charAt$5(string, index);
|
|
3722
3732
|
state.index += point.length;
|
|
3723
3733
|
return { value: point, done: false };
|
|
3724
3734
|
});
|
|
@@ -3896,13 +3906,13 @@
|
|
|
3896
3906
|
from: arrayFrom
|
|
3897
3907
|
});
|
|
3898
3908
|
|
|
3899
|
-
var MATCH$
|
|
3909
|
+
var MATCH$2 = wellKnownSymbol('match');
|
|
3900
3910
|
|
|
3901
3911
|
// `IsRegExp` abstract operation
|
|
3902
3912
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
3903
3913
|
var isRegexp = function (it) {
|
|
3904
3914
|
var isRegExp;
|
|
3905
|
-
return isObject(it) && ((isRegExp = it[MATCH$
|
|
3915
|
+
return isObject(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
3906
3916
|
};
|
|
3907
3917
|
|
|
3908
3918
|
var TypeError$5 = global$1.TypeError;
|
|
@@ -3913,7 +3923,7 @@
|
|
|
3913
3923
|
} return it;
|
|
3914
3924
|
};
|
|
3915
3925
|
|
|
3916
|
-
var MATCH = wellKnownSymbol('match');
|
|
3926
|
+
var MATCH$1 = wellKnownSymbol('match');
|
|
3917
3927
|
|
|
3918
3928
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
3919
3929
|
var regexp = /./;
|
|
@@ -3921,21 +3931,21 @@
|
|
|
3921
3931
|
'/./'[METHOD_NAME](regexp);
|
|
3922
3932
|
} catch (error1) {
|
|
3923
3933
|
try {
|
|
3924
|
-
regexp[MATCH] = false;
|
|
3934
|
+
regexp[MATCH$1] = false;
|
|
3925
3935
|
return '/./'[METHOD_NAME](regexp);
|
|
3926
3936
|
} catch (error2) { /* empty */ }
|
|
3927
3937
|
} return false;
|
|
3928
3938
|
};
|
|
3929
3939
|
|
|
3930
|
-
var stringIndexOf = functionUncurryThis(''.indexOf);
|
|
3940
|
+
var stringIndexOf$1 = functionUncurryThis(''.indexOf);
|
|
3931
3941
|
|
|
3932
3942
|
// `String.prototype.includes` method
|
|
3933
3943
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3934
3944
|
_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
|
|
3935
3945
|
includes: function includes(searchString /* , position = 0 */) {
|
|
3936
|
-
return !!~stringIndexOf(
|
|
3937
|
-
toString$
|
|
3938
|
-
toString$
|
|
3946
|
+
return !!~stringIndexOf$1(
|
|
3947
|
+
toString$2(requireObjectCoercible(this)),
|
|
3948
|
+
toString$2(notARegexp(searchString)),
|
|
3939
3949
|
arguments.length > 1 ? arguments[1] : undefined
|
|
3940
3950
|
);
|
|
3941
3951
|
}
|
|
@@ -3968,7 +3978,7 @@
|
|
|
3968
3978
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3969
3979
|
var $RegExp$2 = global$1.RegExp;
|
|
3970
3980
|
|
|
3971
|
-
var UNSUPPORTED_Y$
|
|
3981
|
+
var UNSUPPORTED_Y$3 = fails(function () {
|
|
3972
3982
|
var re = $RegExp$2('a', 'y');
|
|
3973
3983
|
re.lastIndex = 2;
|
|
3974
3984
|
return re.exec('abcd') != null;
|
|
@@ -3976,11 +3986,11 @@
|
|
|
3976
3986
|
|
|
3977
3987
|
// UC Browser bug
|
|
3978
3988
|
// https://github.com/zloirock/core-js/issues/1008
|
|
3979
|
-
var MISSED_STICKY = UNSUPPORTED_Y$
|
|
3989
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails(function () {
|
|
3980
3990
|
return !$RegExp$2('a', 'y').sticky;
|
|
3981
3991
|
});
|
|
3982
3992
|
|
|
3983
|
-
var BROKEN_CARET = UNSUPPORTED_Y$
|
|
3993
|
+
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails(function () {
|
|
3984
3994
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3985
3995
|
var re = $RegExp$2('^r', 'gy');
|
|
3986
3996
|
re.lastIndex = 2;
|
|
@@ -3989,8 +3999,8 @@
|
|
|
3989
3999
|
|
|
3990
4000
|
var regexpStickyHelpers = {
|
|
3991
4001
|
BROKEN_CARET: BROKEN_CARET,
|
|
3992
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
3993
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$
|
|
4002
|
+
MISSED_STICKY: MISSED_STICKY$1,
|
|
4003
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$3
|
|
3994
4004
|
};
|
|
3995
4005
|
|
|
3996
4006
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
@@ -4026,10 +4036,10 @@
|
|
|
4026
4036
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4027
4037
|
var nativeExec = RegExp.prototype.exec;
|
|
4028
4038
|
var patchedExec = nativeExec;
|
|
4029
|
-
var charAt$
|
|
4039
|
+
var charAt$4 = functionUncurryThis(''.charAt);
|
|
4030
4040
|
var indexOf = functionUncurryThis(''.indexOf);
|
|
4031
|
-
var replace$
|
|
4032
|
-
var stringSlice$
|
|
4041
|
+
var replace$4 = functionUncurryThis(''.replace);
|
|
4042
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
|
4033
4043
|
|
|
4034
4044
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4035
4045
|
var re1 = /a/;
|
|
@@ -4039,18 +4049,18 @@
|
|
|
4039
4049
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4040
4050
|
})();
|
|
4041
4051
|
|
|
4042
|
-
var UNSUPPORTED_Y$
|
|
4052
|
+
var UNSUPPORTED_Y$2 = regexpStickyHelpers.BROKEN_CARET;
|
|
4043
4053
|
|
|
4044
4054
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
4045
4055
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
4046
4056
|
|
|
4047
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$
|
|
4057
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
|
4048
4058
|
|
|
4049
4059
|
if (PATCH) {
|
|
4050
4060
|
patchedExec = function exec(string) {
|
|
4051
4061
|
var re = this;
|
|
4052
4062
|
var state = getInternalState$1(re);
|
|
4053
|
-
var str = toString$
|
|
4063
|
+
var str = toString$2(string);
|
|
4054
4064
|
var raw = state.raw;
|
|
4055
4065
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
4056
4066
|
|
|
@@ -4062,21 +4072,21 @@
|
|
|
4062
4072
|
}
|
|
4063
4073
|
|
|
4064
4074
|
var groups = state.groups;
|
|
4065
|
-
var sticky = UNSUPPORTED_Y$
|
|
4075
|
+
var sticky = UNSUPPORTED_Y$2 && re.sticky;
|
|
4066
4076
|
var flags = functionCall(regexpFlags, re);
|
|
4067
4077
|
var source = re.source;
|
|
4068
4078
|
var charsAdded = 0;
|
|
4069
4079
|
var strCopy = str;
|
|
4070
4080
|
|
|
4071
4081
|
if (sticky) {
|
|
4072
|
-
flags = replace$
|
|
4082
|
+
flags = replace$4(flags, 'y', '');
|
|
4073
4083
|
if (indexOf(flags, 'g') === -1) {
|
|
4074
4084
|
flags += 'g';
|
|
4075
4085
|
}
|
|
4076
4086
|
|
|
4077
|
-
strCopy = stringSlice$
|
|
4087
|
+
strCopy = stringSlice$4(str, re.lastIndex);
|
|
4078
4088
|
// Support anchored sticky behavior.
|
|
4079
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$
|
|
4089
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
|
|
4080
4090
|
source = '(?: ' + source + ')';
|
|
4081
4091
|
strCopy = ' ' + strCopy;
|
|
4082
4092
|
charsAdded++;
|
|
@@ -4095,8 +4105,8 @@
|
|
|
4095
4105
|
|
|
4096
4106
|
if (sticky) {
|
|
4097
4107
|
if (match) {
|
|
4098
|
-
match.input = stringSlice$
|
|
4099
|
-
match[0] = stringSlice$
|
|
4108
|
+
match.input = stringSlice$4(match.input, charsAdded);
|
|
4109
|
+
match[0] = stringSlice$4(match[0], charsAdded);
|
|
4100
4110
|
match.index = re.lastIndex;
|
|
4101
4111
|
re.lastIndex += match[0].length;
|
|
4102
4112
|
} else re.lastIndex = 0;
|
|
@@ -4143,7 +4153,7 @@
|
|
|
4143
4153
|
|
|
4144
4154
|
|
|
4145
4155
|
var SPECIES$3 = wellKnownSymbol('species');
|
|
4146
|
-
var RegExpPrototype$
|
|
4156
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
4147
4157
|
|
|
4148
4158
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
4149
4159
|
var SYMBOL = wellKnownSymbol(KEY);
|
|
@@ -4188,7 +4198,7 @@
|
|
|
4188
4198
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
4189
4199
|
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
|
4190
4200
|
var $exec = regexp.exec;
|
|
4191
|
-
if ($exec === regexpExec || $exec === RegExpPrototype$
|
|
4201
|
+
if ($exec === regexpExec || $exec === RegExpPrototype$2.exec) {
|
|
4192
4202
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
4193
4203
|
// The native String method already delegates to @@method (this
|
|
4194
4204
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -4201,10 +4211,10 @@
|
|
|
4201
4211
|
});
|
|
4202
4212
|
|
|
4203
4213
|
redefine(String.prototype, KEY, methods[0]);
|
|
4204
|
-
redefine(RegExpPrototype$
|
|
4214
|
+
redefine(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
4205
4215
|
}
|
|
4206
4216
|
|
|
4207
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$
|
|
4217
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
4208
4218
|
};
|
|
4209
4219
|
|
|
4210
4220
|
var SPECIES$2 = wellKnownSymbol('species');
|
|
@@ -4217,12 +4227,12 @@
|
|
|
4217
4227
|
return C === undefined || (S = anObject(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
|
4218
4228
|
};
|
|
4219
4229
|
|
|
4220
|
-
var charAt$
|
|
4230
|
+
var charAt$3 = stringMultibyte.charAt;
|
|
4221
4231
|
|
|
4222
4232
|
// `AdvanceStringIndex` abstract operation
|
|
4223
4233
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
4224
4234
|
var advanceStringIndex = function (S, index, unicode) {
|
|
4225
|
-
return index + (unicode ? charAt$
|
|
4235
|
+
return index + (unicode ? charAt$3(S, index).length : 1);
|
|
4226
4236
|
};
|
|
4227
4237
|
|
|
4228
4238
|
var TypeError$4 = global$1.TypeError;
|
|
@@ -4240,13 +4250,13 @@
|
|
|
4240
4250
|
throw TypeError$4('RegExp#exec called on incompatible receiver');
|
|
4241
4251
|
};
|
|
4242
4252
|
|
|
4243
|
-
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
4253
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
4244
4254
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
4245
4255
|
var min = Math.min;
|
|
4246
4256
|
var $push = [].push;
|
|
4247
|
-
var exec = functionUncurryThis(/./.exec);
|
|
4257
|
+
var exec$1 = functionUncurryThis(/./.exec);
|
|
4248
4258
|
var push$2 = functionUncurryThis($push);
|
|
4249
|
-
var stringSlice$
|
|
4259
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
|
4250
4260
|
|
|
4251
4261
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
4252
4262
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
@@ -4274,7 +4284,7 @@
|
|
|
4274
4284
|
) {
|
|
4275
4285
|
// based on es5-shim implementation, need to rework it
|
|
4276
4286
|
internalSplit = function (separator, limit) {
|
|
4277
|
-
var string = toString$
|
|
4287
|
+
var string = toString$2(requireObjectCoercible(this));
|
|
4278
4288
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
4279
4289
|
if (lim === 0) return [];
|
|
4280
4290
|
if (separator === undefined) return [string];
|
|
@@ -4294,7 +4304,7 @@
|
|
|
4294
4304
|
while (match = functionCall(regexpExec, separatorCopy, string)) {
|
|
4295
4305
|
lastIndex = separatorCopy.lastIndex;
|
|
4296
4306
|
if (lastIndex > lastLastIndex) {
|
|
4297
|
-
push$2(output, stringSlice$
|
|
4307
|
+
push$2(output, stringSlice$3(string, lastLastIndex, match.index));
|
|
4298
4308
|
if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySliceSimple(match, 1));
|
|
4299
4309
|
lastLength = match[0].length;
|
|
4300
4310
|
lastLastIndex = lastIndex;
|
|
@@ -4303,8 +4313,8 @@
|
|
|
4303
4313
|
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
4304
4314
|
}
|
|
4305
4315
|
if (lastLastIndex === string.length) {
|
|
4306
|
-
if (lastLength || !exec(separatorCopy, '')) push$2(output, '');
|
|
4307
|
-
} else push$2(output, stringSlice$
|
|
4316
|
+
if (lastLength || !exec$1(separatorCopy, '')) push$2(output, '');
|
|
4317
|
+
} else push$2(output, stringSlice$3(string, lastLastIndex));
|
|
4308
4318
|
return output.length > lim ? arraySliceSimple(output, 0, lim) : output;
|
|
4309
4319
|
};
|
|
4310
4320
|
// Chakra, V8
|
|
@@ -4322,7 +4332,7 @@
|
|
|
4322
4332
|
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
|
4323
4333
|
return splitter
|
|
4324
4334
|
? functionCall(splitter, separator, O, limit)
|
|
4325
|
-
: functionCall(internalSplit, toString$
|
|
4335
|
+
: functionCall(internalSplit, toString$2(O), separator, limit);
|
|
4326
4336
|
},
|
|
4327
4337
|
// `RegExp.prototype[@@split]` method
|
|
4328
4338
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -4331,7 +4341,7 @@
|
|
|
4331
4341
|
// the 'y' flag.
|
|
4332
4342
|
function (string, limit) {
|
|
4333
4343
|
var rx = anObject(this);
|
|
4334
|
-
var S = toString$
|
|
4344
|
+
var S = toString$2(string);
|
|
4335
4345
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
4336
4346
|
|
|
4337
4347
|
if (res.done) return res.value;
|
|
@@ -4342,11 +4352,11 @@
|
|
|
4342
4352
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
4343
4353
|
(rx.multiline ? 'm' : '') +
|
|
4344
4354
|
(rx.unicode ? 'u' : '') +
|
|
4345
|
-
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
4355
|
+
(UNSUPPORTED_Y$1 ? 'g' : 'y');
|
|
4346
4356
|
|
|
4347
4357
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
4348
4358
|
// simulate the 'y' flag.
|
|
4349
|
-
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
4359
|
+
var splitter = new C(UNSUPPORTED_Y$1 ? '^(?:' + rx.source + ')' : rx, flags);
|
|
4350
4360
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
4351
4361
|
if (lim === 0) return [];
|
|
4352
4362
|
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
|
|
@@ -4354,16 +4364,16 @@
|
|
|
4354
4364
|
var q = 0;
|
|
4355
4365
|
var A = [];
|
|
4356
4366
|
while (q < S.length) {
|
|
4357
|
-
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
4358
|
-
var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? stringSlice$
|
|
4367
|
+
splitter.lastIndex = UNSUPPORTED_Y$1 ? 0 : q;
|
|
4368
|
+
var z = regexpExecAbstract(splitter, UNSUPPORTED_Y$1 ? stringSlice$3(S, q) : S);
|
|
4359
4369
|
var e;
|
|
4360
4370
|
if (
|
|
4361
4371
|
z === null ||
|
|
4362
|
-
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
4372
|
+
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p
|
|
4363
4373
|
) {
|
|
4364
4374
|
q = advanceStringIndex(S, q, unicodeMatching);
|
|
4365
4375
|
} else {
|
|
4366
|
-
push$2(A, stringSlice$
|
|
4376
|
+
push$2(A, stringSlice$3(S, p, q));
|
|
4367
4377
|
if (A.length === lim) return A;
|
|
4368
4378
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
4369
4379
|
push$2(A, z[i]);
|
|
@@ -4372,11 +4382,11 @@
|
|
|
4372
4382
|
q = p = e;
|
|
4373
4383
|
}
|
|
4374
4384
|
}
|
|
4375
|
-
push$2(A, stringSlice$
|
|
4385
|
+
push$2(A, stringSlice$3(S, p));
|
|
4376
4386
|
return A;
|
|
4377
4387
|
}
|
|
4378
4388
|
];
|
|
4379
|
-
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
4389
|
+
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y$1);
|
|
4380
4390
|
|
|
4381
4391
|
var un$Join = functionUncurryThis([].join);
|
|
4382
4392
|
|
|
@@ -4416,9 +4426,9 @@
|
|
|
4416
4426
|
|
|
4417
4427
|
|
|
4418
4428
|
var TO_STRING = 'toString';
|
|
4419
|
-
var RegExpPrototype = RegExp.prototype;
|
|
4420
|
-
var n$ToString = RegExpPrototype[TO_STRING];
|
|
4421
|
-
var getFlags = functionUncurryThis(regexpFlags);
|
|
4429
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
4430
|
+
var n$ToString = RegExpPrototype$1[TO_STRING];
|
|
4431
|
+
var getFlags$1 = functionUncurryThis(regexpFlags);
|
|
4422
4432
|
|
|
4423
4433
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
4424
4434
|
// FF44- RegExp#toString has a wrong name
|
|
@@ -4429,9 +4439,9 @@
|
|
|
4429
4439
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
4430
4440
|
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
4431
4441
|
var R = anObject(this);
|
|
4432
|
-
var p = toString$
|
|
4442
|
+
var p = toString$2(R.source);
|
|
4433
4443
|
var rf = R.flags;
|
|
4434
|
-
var f = toString$
|
|
4444
|
+
var f = toString$2(rf === undefined && objectIsPrototypeOf(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags$1(R) : rf);
|
|
4435
4445
|
return '/' + p + '/' + f;
|
|
4436
4446
|
}, { unsafe: true });
|
|
4437
4447
|
}
|
|
@@ -4444,13 +4454,13 @@
|
|
|
4444
4454
|
function match(regexp) {
|
|
4445
4455
|
var O = requireObjectCoercible(this);
|
|
4446
4456
|
var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
|
|
4447
|
-
return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$
|
|
4457
|
+
return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
|
|
4448
4458
|
},
|
|
4449
4459
|
// `RegExp.prototype[@@match]` method
|
|
4450
4460
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
4451
4461
|
function (string) {
|
|
4452
4462
|
var rx = anObject(this);
|
|
4453
|
-
var S = toString$
|
|
4463
|
+
var S = toString$2(string);
|
|
4454
4464
|
var res = maybeCallNative(nativeMatch, rx, S);
|
|
4455
4465
|
|
|
4456
4466
|
if (res.done) return res.value;
|
|
@@ -4463,7 +4473,7 @@
|
|
|
4463
4473
|
var n = 0;
|
|
4464
4474
|
var result;
|
|
4465
4475
|
while ((result = regexpExecAbstract(rx, S)) !== null) {
|
|
4466
|
-
var matchStr = toString$
|
|
4476
|
+
var matchStr = toString$2(result[0]);
|
|
4467
4477
|
A[n] = matchStr;
|
|
4468
4478
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
4469
4479
|
n++;
|
|
@@ -4490,7 +4500,7 @@
|
|
|
4490
4500
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
4491
4501
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
4492
4502
|
|
|
4493
|
-
var replace$
|
|
4503
|
+
var replace$3 = functionUncurryThis(''.replace);
|
|
4494
4504
|
var whitespace = '[' + whitespaces + ']';
|
|
4495
4505
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
4496
4506
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -4498,9 +4508,9 @@
|
|
|
4498
4508
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
4499
4509
|
var createMethod = function (TYPE) {
|
|
4500
4510
|
return function ($this) {
|
|
4501
|
-
var string = toString$
|
|
4502
|
-
if (TYPE & 1) string = replace$
|
|
4503
|
-
if (TYPE & 2) string = replace$
|
|
4511
|
+
var string = toString$2(requireObjectCoercible($this));
|
|
4512
|
+
if (TYPE & 1) string = replace$3(string, ltrim, '');
|
|
4513
|
+
if (TYPE & 2) string = replace$3(string, rtrim, '');
|
|
4504
4514
|
return string;
|
|
4505
4515
|
};
|
|
4506
4516
|
};
|
|
@@ -4517,9 +4527,9 @@
|
|
|
4517
4527
|
trim: createMethod(3)
|
|
4518
4528
|
};
|
|
4519
4529
|
|
|
4520
|
-
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4530
|
+
var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
|
4521
4531
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
4522
|
-
var defineProperty$
|
|
4532
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
4523
4533
|
|
|
4524
4534
|
var trim$1 = stringTrim.trim;
|
|
4525
4535
|
|
|
@@ -4577,16 +4587,16 @@
|
|
|
4577
4587
|
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
|
|
4578
4588
|
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
4579
4589
|
};
|
|
4580
|
-
for (var keys$
|
|
4590
|
+
for (var keys$3 = descriptors ? getOwnPropertyNames$1(NativeNumber) : (
|
|
4581
4591
|
// ES3:
|
|
4582
4592
|
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
4583
4593
|
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
4584
4594
|
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
4585
4595
|
// ESNext
|
|
4586
4596
|
'fromString,range'
|
|
4587
|
-
).split(','), j = 0, key; keys$
|
|
4588
|
-
if (hasOwnProperty_1(NativeNumber, key = keys$
|
|
4589
|
-
defineProperty$
|
|
4597
|
+
).split(','), j = 0, key; keys$3.length > j; j++) {
|
|
4598
|
+
if (hasOwnProperty_1(NativeNumber, key = keys$3[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
4599
|
+
defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
|
|
4590
4600
|
}
|
|
4591
4601
|
}
|
|
4592
4602
|
NumberWrapper.prototype = NumberPrototype;
|
|
@@ -4597,7 +4607,7 @@
|
|
|
4597
4607
|
var trim = stringTrim.trim;
|
|
4598
4608
|
|
|
4599
4609
|
|
|
4600
|
-
var charAt$
|
|
4610
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
|
4601
4611
|
var n$ParseFloat = global$1.parseFloat;
|
|
4602
4612
|
var Symbol$1 = global$1.Symbol;
|
|
4603
4613
|
var ITERATOR$2 = Symbol$1 && Symbol$1.iterator;
|
|
@@ -4608,9 +4618,9 @@
|
|
|
4608
4618
|
// `parseFloat` method
|
|
4609
4619
|
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
4610
4620
|
var numberParseFloat = FORCED$2 ? function parseFloat(string) {
|
|
4611
|
-
var trimmedString = trim(toString$
|
|
4621
|
+
var trimmedString = trim(toString$2(string));
|
|
4612
4622
|
var result = n$ParseFloat(trimmedString);
|
|
4613
|
-
return result === 0 && charAt$
|
|
4623
|
+
return result === 0 && charAt$2(trimmedString, 0) == '-' ? -0 : result;
|
|
4614
4624
|
} : n$ParseFloat;
|
|
4615
4625
|
|
|
4616
4626
|
// `Number.parseFloat` method
|
|
@@ -4672,7 +4682,7 @@
|
|
|
4672
4682
|
|
|
4673
4683
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
4674
4684
|
|
|
4675
|
-
var defineProperty = objectDefineProperty.f;
|
|
4685
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
4676
4686
|
|
|
4677
4687
|
var FunctionPrototype = Function.prototype;
|
|
4678
4688
|
var functionToString = functionUncurryThis(FunctionPrototype.toString);
|
|
@@ -4683,7 +4693,7 @@
|
|
|
4683
4693
|
// Function instances `.name` property
|
|
4684
4694
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
4685
4695
|
if (descriptors && !FUNCTION_NAME_EXISTS) {
|
|
4686
|
-
defineProperty(FunctionPrototype, NAME, {
|
|
4696
|
+
defineProperty$3(FunctionPrototype, NAME, {
|
|
4687
4697
|
configurable: true,
|
|
4688
4698
|
get: function () {
|
|
4689
4699
|
try {
|
|
@@ -4695,11 +4705,11 @@
|
|
|
4695
4705
|
});
|
|
4696
4706
|
}
|
|
4697
4707
|
|
|
4698
|
-
var floor = Math.floor;
|
|
4708
|
+
var floor$1 = Math.floor;
|
|
4699
4709
|
|
|
4700
4710
|
var mergeSort = function (array, comparefn) {
|
|
4701
4711
|
var length = array.length;
|
|
4702
|
-
var middle = floor(length / 2);
|
|
4712
|
+
var middle = floor$1(length / 2);
|
|
4703
4713
|
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
4704
4714
|
array,
|
|
4705
4715
|
mergeSort(arraySliceSimple(array, 0, middle), comparefn),
|
|
@@ -4805,7 +4815,7 @@
|
|
|
4805
4815
|
if (y === undefined) return -1;
|
|
4806
4816
|
if (x === undefined) return 1;
|
|
4807
4817
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
4808
|
-
return toString$
|
|
4818
|
+
return toString$2(x) > toString$2(y) ? 1 : -1;
|
|
4809
4819
|
};
|
|
4810
4820
|
};
|
|
4811
4821
|
|
|
@@ -4913,14 +4923,14 @@
|
|
|
4913
4923
|
var TypeError$2 = global$1.TypeError;
|
|
4914
4924
|
var decodeURIComponent$1 = global$1.decodeURIComponent;
|
|
4915
4925
|
var encodeURIComponent$1 = global$1.encodeURIComponent;
|
|
4916
|
-
var charAt = functionUncurryThis(''.charAt);
|
|
4926
|
+
var charAt$1 = functionUncurryThis(''.charAt);
|
|
4917
4927
|
var join = functionUncurryThis([].join);
|
|
4918
4928
|
var push = functionUncurryThis([].push);
|
|
4919
|
-
var replace = functionUncurryThis(''.replace);
|
|
4929
|
+
var replace$2 = functionUncurryThis(''.replace);
|
|
4920
4930
|
var shift = functionUncurryThis([].shift);
|
|
4921
4931
|
var splice = functionUncurryThis([].splice);
|
|
4922
4932
|
var split = functionUncurryThis(''.split);
|
|
4923
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
4933
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
|
4924
4934
|
|
|
4925
4935
|
var plus = /\+/g;
|
|
4926
4936
|
var sequences = Array(4);
|
|
@@ -4938,13 +4948,13 @@
|
|
|
4938
4948
|
};
|
|
4939
4949
|
|
|
4940
4950
|
var deserialize = function (it) {
|
|
4941
|
-
var result = replace(it, plus, ' ');
|
|
4951
|
+
var result = replace$2(it, plus, ' ');
|
|
4942
4952
|
var bytes = 4;
|
|
4943
4953
|
try {
|
|
4944
4954
|
return decodeURIComponent$1(result);
|
|
4945
4955
|
} catch (error) {
|
|
4946
4956
|
while (bytes) {
|
|
4947
|
-
result = replace(result, percentSequence(bytes--), percentDecode);
|
|
4957
|
+
result = replace$2(result, percentSequence(bytes--), percentDecode);
|
|
4948
4958
|
}
|
|
4949
4959
|
return result;
|
|
4950
4960
|
}
|
|
@@ -4966,7 +4976,7 @@
|
|
|
4966
4976
|
};
|
|
4967
4977
|
|
|
4968
4978
|
var serialize = function (it) {
|
|
4969
|
-
return replace(encodeURIComponent$1(it), find, replacer);
|
|
4979
|
+
return replace$2(encodeURIComponent$1(it), find, replacer);
|
|
4970
4980
|
};
|
|
4971
4981
|
|
|
4972
4982
|
var validateArgumentsLength = function (passed, required) {
|
|
@@ -4995,7 +5005,7 @@
|
|
|
4995
5005
|
|
|
4996
5006
|
if (init !== undefined) {
|
|
4997
5007
|
if (isObject(init)) this.parseObject(init);
|
|
4998
|
-
else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : toString$
|
|
5008
|
+
else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$2(init, 1) : init : toString$2(init));
|
|
4999
5009
|
}
|
|
5000
5010
|
};
|
|
5001
5011
|
|
|
@@ -5020,10 +5030,10 @@
|
|
|
5020
5030
|
(second = functionCall(entryNext, entryIterator)).done ||
|
|
5021
5031
|
!functionCall(entryNext, entryIterator).done
|
|
5022
5032
|
) throw TypeError$2('Expected sequence with length 2');
|
|
5023
|
-
push(this.entries, { key: toString$
|
|
5033
|
+
push(this.entries, { key: toString$2(first.value), value: toString$2(second.value) });
|
|
5024
5034
|
}
|
|
5025
5035
|
} else for (var key in object) if (hasOwnProperty_1(object, key)) {
|
|
5026
|
-
push(this.entries, { key: key, value: toString$
|
|
5036
|
+
push(this.entries, { key: key, value: toString$2(object[key]) });
|
|
5027
5037
|
}
|
|
5028
5038
|
},
|
|
5029
5039
|
parseQuery: function (query) {
|
|
@@ -5078,7 +5088,7 @@
|
|
|
5078
5088
|
append: function append(name, value) {
|
|
5079
5089
|
validateArgumentsLength(arguments.length, 2);
|
|
5080
5090
|
var state = getInternalParamsState(this);
|
|
5081
|
-
push(state.entries, { key: toString$
|
|
5091
|
+
push(state.entries, { key: toString$2(name), value: toString$2(value) });
|
|
5082
5092
|
state.updateURL();
|
|
5083
5093
|
},
|
|
5084
5094
|
// `URLSearchParams.prototype.delete` method
|
|
@@ -5087,7 +5097,7 @@
|
|
|
5087
5097
|
validateArgumentsLength(arguments.length, 1);
|
|
5088
5098
|
var state = getInternalParamsState(this);
|
|
5089
5099
|
var entries = state.entries;
|
|
5090
|
-
var key = toString$
|
|
5100
|
+
var key = toString$2(name);
|
|
5091
5101
|
var index = 0;
|
|
5092
5102
|
while (index < entries.length) {
|
|
5093
5103
|
if (entries[index].key === key) splice(entries, index, 1);
|
|
@@ -5100,7 +5110,7 @@
|
|
|
5100
5110
|
get: function get(name) {
|
|
5101
5111
|
validateArgumentsLength(arguments.length, 1);
|
|
5102
5112
|
var entries = getInternalParamsState(this).entries;
|
|
5103
|
-
var key = toString$
|
|
5113
|
+
var key = toString$2(name);
|
|
5104
5114
|
var index = 0;
|
|
5105
5115
|
for (; index < entries.length; index++) {
|
|
5106
5116
|
if (entries[index].key === key) return entries[index].value;
|
|
@@ -5112,7 +5122,7 @@
|
|
|
5112
5122
|
getAll: function getAll(name) {
|
|
5113
5123
|
validateArgumentsLength(arguments.length, 1);
|
|
5114
5124
|
var entries = getInternalParamsState(this).entries;
|
|
5115
|
-
var key = toString$
|
|
5125
|
+
var key = toString$2(name);
|
|
5116
5126
|
var result = [];
|
|
5117
5127
|
var index = 0;
|
|
5118
5128
|
for (; index < entries.length; index++) {
|
|
@@ -5125,7 +5135,7 @@
|
|
|
5125
5135
|
has: function has(name) {
|
|
5126
5136
|
validateArgumentsLength(arguments.length, 1);
|
|
5127
5137
|
var entries = getInternalParamsState(this).entries;
|
|
5128
|
-
var key = toString$
|
|
5138
|
+
var key = toString$2(name);
|
|
5129
5139
|
var index = 0;
|
|
5130
5140
|
while (index < entries.length) {
|
|
5131
5141
|
if (entries[index++].key === key) return true;
|
|
@@ -5139,8 +5149,8 @@
|
|
|
5139
5149
|
var state = getInternalParamsState(this);
|
|
5140
5150
|
var entries = state.entries;
|
|
5141
5151
|
var found = false;
|
|
5142
|
-
var key = toString$
|
|
5143
|
-
var val = toString$
|
|
5152
|
+
var key = toString$2(name);
|
|
5153
|
+
var val = toString$2(value);
|
|
5144
5154
|
var index = 0;
|
|
5145
5155
|
var entry;
|
|
5146
5156
|
for (; index < entries.length; index++) {
|
|
@@ -5220,7 +5230,7 @@
|
|
|
5220
5230
|
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
5221
5231
|
}
|
|
5222
5232
|
return objectCreate(init, {
|
|
5223
|
-
body: createPropertyDescriptor(0, toString$
|
|
5233
|
+
body: createPropertyDescriptor(0, toString$2(body)),
|
|
5224
5234
|
headers: createPropertyDescriptor(0, headers)
|
|
5225
5235
|
});
|
|
5226
5236
|
}
|
|
@@ -5910,8 +5920,8 @@
|
|
|
5910
5920
|
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")}}));
|
|
5911
5921
|
});
|
|
5912
5922
|
|
|
5913
|
-
function _isPlaceholder(a) {
|
|
5914
|
-
return a != null &&
|
|
5923
|
+
function _isPlaceholder$1(a) {
|
|
5924
|
+
return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5915
5925
|
}
|
|
5916
5926
|
|
|
5917
5927
|
/**
|
|
@@ -5923,9 +5933,9 @@
|
|
|
5923
5933
|
* @return {Function} The curried function.
|
|
5924
5934
|
*/
|
|
5925
5935
|
|
|
5926
|
-
function _curry1(fn) {
|
|
5936
|
+
function _curry1$1(fn) {
|
|
5927
5937
|
return function f1(a) {
|
|
5928
|
-
if (arguments.length === 0 || _isPlaceholder(a)) {
|
|
5938
|
+
if (arguments.length === 0 || _isPlaceholder$1(a)) {
|
|
5929
5939
|
return f1;
|
|
5930
5940
|
} else {
|
|
5931
5941
|
return fn.apply(this, arguments);
|
|
@@ -5942,27 +5952,64 @@
|
|
|
5942
5952
|
* @return {Function} The curried function.
|
|
5943
5953
|
*/
|
|
5944
5954
|
|
|
5945
|
-
function _curry2(fn) {
|
|
5955
|
+
function _curry2$1(fn) {
|
|
5946
5956
|
return function f2(a, b) {
|
|
5947
5957
|
switch (arguments.length) {
|
|
5948
5958
|
case 0:
|
|
5949
5959
|
return f2;
|
|
5950
5960
|
|
|
5951
5961
|
case 1:
|
|
5952
|
-
return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
|
|
5962
|
+
return _isPlaceholder$1(a) ? f2 : _curry1$1(function (_b) {
|
|
5953
5963
|
return fn(a, _b);
|
|
5954
5964
|
});
|
|
5955
5965
|
|
|
5956
5966
|
default:
|
|
5957
|
-
return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
|
|
5967
|
+
return _isPlaceholder$1(a) && _isPlaceholder$1(b) ? f2 : _isPlaceholder$1(a) ? _curry1$1(function (_a) {
|
|
5958
5968
|
return fn(_a, b);
|
|
5959
|
-
}) : _isPlaceholder(b) ? _curry1(function (_b) {
|
|
5969
|
+
}) : _isPlaceholder$1(b) ? _curry1$1(function (_b) {
|
|
5960
5970
|
return fn(a, _b);
|
|
5961
5971
|
}) : fn(a, b);
|
|
5962
5972
|
}
|
|
5963
5973
|
};
|
|
5964
5974
|
}
|
|
5965
5975
|
|
|
5976
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
|
5977
|
+
|
|
5978
|
+
var SPECIES = wellKnownSymbol('species');
|
|
5979
|
+
var Array$1 = global$1.Array;
|
|
5980
|
+
var max = Math.max;
|
|
5981
|
+
|
|
5982
|
+
// `Array.prototype.slice` method
|
|
5983
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
5984
|
+
// fallback for not array-like ES3 strings and DOM objects
|
|
5985
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
5986
|
+
slice: function slice(start, end) {
|
|
5987
|
+
var O = toIndexedObject(this);
|
|
5988
|
+
var length = lengthOfArrayLike(O);
|
|
5989
|
+
var k = toAbsoluteIndex(start, length);
|
|
5990
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
5991
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
5992
|
+
var Constructor, result, n;
|
|
5993
|
+
if (isArray(O)) {
|
|
5994
|
+
Constructor = O.constructor;
|
|
5995
|
+
// cross-realm fallback
|
|
5996
|
+
if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
|
|
5997
|
+
Constructor = undefined;
|
|
5998
|
+
} else if (isObject(Constructor)) {
|
|
5999
|
+
Constructor = Constructor[SPECIES];
|
|
6000
|
+
if (Constructor === null) Constructor = undefined;
|
|
6001
|
+
}
|
|
6002
|
+
if (Constructor === Array$1 || Constructor === undefined) {
|
|
6003
|
+
return arraySlice$1(O, k, fin);
|
|
6004
|
+
}
|
|
6005
|
+
}
|
|
6006
|
+
result = new (Constructor === undefined ? Array$1 : Constructor)(max(fin - k, 0));
|
|
6007
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
6008
|
+
result.length = n;
|
|
6009
|
+
return result;
|
|
6010
|
+
}
|
|
6011
|
+
});
|
|
6012
|
+
|
|
5966
6013
|
function _arity(n, fn) {
|
|
5967
6014
|
/* eslint-disable no-unused-vars */
|
|
5968
6015
|
switch (n) {
|
|
@@ -6047,7 +6094,7 @@
|
|
|
6047
6094
|
while (combinedIdx < received.length || argsIdx < arguments.length) {
|
|
6048
6095
|
var result;
|
|
6049
6096
|
|
|
6050
|
-
if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
|
6097
|
+
if (combinedIdx < received.length && (!_isPlaceholder$1(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
|
6051
6098
|
result = received[combinedIdx];
|
|
6052
6099
|
} else {
|
|
6053
6100
|
result = arguments[argsIdx];
|
|
@@ -6056,7 +6103,7 @@
|
|
|
6056
6103
|
|
|
6057
6104
|
combined[combinedIdx] = result;
|
|
6058
6105
|
|
|
6059
|
-
if (!_isPlaceholder(result)) {
|
|
6106
|
+
if (!_isPlaceholder$1(result)) {
|
|
6060
6107
|
left -= 1;
|
|
6061
6108
|
}
|
|
6062
6109
|
|
|
@@ -6110,11 +6157,9 @@
|
|
|
6110
6157
|
* g(4); //=> 10
|
|
6111
6158
|
*/
|
|
6112
6159
|
|
|
6113
|
-
var curryN =
|
|
6114
|
-
/*#__PURE__*/
|
|
6115
|
-
_curry2(function curryN(length, fn) {
|
|
6160
|
+
var curryN = /*#__PURE__*/_curry2$1(function curryN(length, fn) {
|
|
6116
6161
|
if (length === 1) {
|
|
6117
|
-
return _curry1(fn);
|
|
6162
|
+
return _curry1$1(fn);
|
|
6118
6163
|
}
|
|
6119
6164
|
|
|
6120
6165
|
return _arity(length, _curryN(length, [], fn));
|
|
@@ -6136,31 +6181,31 @@
|
|
|
6136
6181
|
return f3;
|
|
6137
6182
|
|
|
6138
6183
|
case 1:
|
|
6139
|
-
return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
|
|
6184
|
+
return _isPlaceholder$1(a) ? f3 : _curry2$1(function (_b, _c) {
|
|
6140
6185
|
return fn(a, _b, _c);
|
|
6141
6186
|
});
|
|
6142
6187
|
|
|
6143
6188
|
case 2:
|
|
6144
|
-
return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
|
|
6189
|
+
return _isPlaceholder$1(a) && _isPlaceholder$1(b) ? f3 : _isPlaceholder$1(a) ? _curry2$1(function (_a, _c) {
|
|
6145
6190
|
return fn(_a, b, _c);
|
|
6146
|
-
}) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
|
|
6191
|
+
}) : _isPlaceholder$1(b) ? _curry2$1(function (_b, _c) {
|
|
6147
6192
|
return fn(a, _b, _c);
|
|
6148
|
-
}) : _curry1(function (_c) {
|
|
6193
|
+
}) : _curry1$1(function (_c) {
|
|
6149
6194
|
return fn(a, b, _c);
|
|
6150
6195
|
});
|
|
6151
6196
|
|
|
6152
6197
|
default:
|
|
6153
|
-
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
|
|
6198
|
+
return _isPlaceholder$1(a) && _isPlaceholder$1(b) && _isPlaceholder$1(c) ? f3 : _isPlaceholder$1(a) && _isPlaceholder$1(b) ? _curry2$1(function (_a, _b) {
|
|
6154
6199
|
return fn(_a, _b, c);
|
|
6155
|
-
}) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
|
|
6200
|
+
}) : _isPlaceholder$1(a) && _isPlaceholder$1(c) ? _curry2$1(function (_a, _c) {
|
|
6156
6201
|
return fn(_a, b, _c);
|
|
6157
|
-
}) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
|
|
6202
|
+
}) : _isPlaceholder$1(b) && _isPlaceholder$1(c) ? _curry2$1(function (_b, _c) {
|
|
6158
6203
|
return fn(a, _b, _c);
|
|
6159
|
-
}) : _isPlaceholder(a) ? _curry1(function (_a) {
|
|
6204
|
+
}) : _isPlaceholder$1(a) ? _curry1$1(function (_a) {
|
|
6160
6205
|
return fn(_a, b, c);
|
|
6161
|
-
}) : _isPlaceholder(b) ? _curry1(function (_b) {
|
|
6206
|
+
}) : _isPlaceholder$1(b) ? _curry1$1(function (_b) {
|
|
6162
6207
|
return fn(a, _b, c);
|
|
6163
|
-
}) : _isPlaceholder(c) ? _curry1(function (_c) {
|
|
6208
|
+
}) : _isPlaceholder$1(c) ? _curry1$1(function (_c) {
|
|
6164
6209
|
return fn(a, b, _c);
|
|
6165
6210
|
}) : fn(a, b, c);
|
|
6166
6211
|
}
|
|
@@ -6240,11 +6285,11 @@
|
|
|
6240
6285
|
}
|
|
6241
6286
|
|
|
6242
6287
|
var _xfBase = {
|
|
6243
|
-
init: function () {
|
|
6288
|
+
init: function init() {
|
|
6244
6289
|
return this.xf['@@transducer/init']();
|
|
6245
6290
|
},
|
|
6246
|
-
result: function (
|
|
6247
|
-
return this.xf['@@transducer/result'](
|
|
6291
|
+
result: function result(_result) {
|
|
6292
|
+
return this.xf['@@transducer/result'](_result);
|
|
6248
6293
|
}
|
|
6249
6294
|
};
|
|
6250
6295
|
|
|
@@ -6261,6 +6306,59 @@
|
|
|
6261
6306
|
return result;
|
|
6262
6307
|
}
|
|
6263
6308
|
|
|
6309
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
6310
|
+
|
|
6311
|
+
|
|
6312
|
+
var NativeSymbol = global$1.Symbol;
|
|
6313
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
6314
|
+
|
|
6315
|
+
if (descriptors && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
6316
|
+
// Safari 12 bug
|
|
6317
|
+
NativeSymbol().description !== undefined
|
|
6318
|
+
)) {
|
|
6319
|
+
var EmptyStringDescriptionStore = {};
|
|
6320
|
+
// wrap Symbol constructor for correct work with undefined description
|
|
6321
|
+
var SymbolWrapper = function Symbol() {
|
|
6322
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$2(arguments[0]);
|
|
6323
|
+
var result = objectIsPrototypeOf(SymbolPrototype, this)
|
|
6324
|
+
? new NativeSymbol(description)
|
|
6325
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
6326
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
6327
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
6328
|
+
return result;
|
|
6329
|
+
};
|
|
6330
|
+
|
|
6331
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
6332
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
|
6333
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
|
6334
|
+
|
|
6335
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
6336
|
+
var symbolToString = functionUncurryThis(SymbolPrototype.toString);
|
|
6337
|
+
var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
|
|
6338
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
6339
|
+
var replace$1 = functionUncurryThis(''.replace);
|
|
6340
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
|
6341
|
+
|
|
6342
|
+
defineProperty$2(SymbolPrototype, 'description', {
|
|
6343
|
+
configurable: true,
|
|
6344
|
+
get: function description() {
|
|
6345
|
+
var symbol = symbolValueOf(this);
|
|
6346
|
+
var string = symbolToString(symbol);
|
|
6347
|
+
if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return '';
|
|
6348
|
+
var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace$1(string, regexp, '$1');
|
|
6349
|
+
return desc === '' ? undefined : desc;
|
|
6350
|
+
}
|
|
6351
|
+
});
|
|
6352
|
+
|
|
6353
|
+
_export({ global: true, forced: true }, {
|
|
6354
|
+
Symbol: SymbolWrapper
|
|
6355
|
+
});
|
|
6356
|
+
}
|
|
6357
|
+
|
|
6358
|
+
// `Symbol.iterator` well-known symbol
|
|
6359
|
+
// https://tc39.es/ecma262/#sec-symbol.iterator
|
|
6360
|
+
defineWellKnownSymbol('iterator');
|
|
6361
|
+
|
|
6264
6362
|
function _isString(x) {
|
|
6265
6363
|
return Object.prototype.toString.call(x) === '[object String]';
|
|
6266
6364
|
}
|
|
@@ -6283,9 +6381,7 @@
|
|
|
6283
6381
|
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
6284
6382
|
*/
|
|
6285
6383
|
|
|
6286
|
-
var _isArrayLike =
|
|
6287
|
-
/*#__PURE__*/
|
|
6288
|
-
_curry1(function isArrayLike(x) {
|
|
6384
|
+
var _isArrayLike = /*#__PURE__*/_curry1$1(function isArrayLike(x) {
|
|
6289
6385
|
if (_isArray(x)) {
|
|
6290
6386
|
return true;
|
|
6291
6387
|
}
|
|
@@ -6294,7 +6390,7 @@
|
|
|
6294
6390
|
return false;
|
|
6295
6391
|
}
|
|
6296
6392
|
|
|
6297
|
-
if (
|
|
6393
|
+
if (_typeof(x) !== 'object') {
|
|
6298
6394
|
return false;
|
|
6299
6395
|
}
|
|
6300
6396
|
|
|
@@ -6317,9 +6413,7 @@
|
|
|
6317
6413
|
return false;
|
|
6318
6414
|
});
|
|
6319
6415
|
|
|
6320
|
-
var XWrap =
|
|
6321
|
-
/*#__PURE__*/
|
|
6322
|
-
function () {
|
|
6416
|
+
var XWrap = /*#__PURE__*/function () {
|
|
6323
6417
|
function XWrap(fn) {
|
|
6324
6418
|
this.f = fn;
|
|
6325
6419
|
}
|
|
@@ -6366,9 +6460,7 @@
|
|
|
6366
6460
|
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
6367
6461
|
*/
|
|
6368
6462
|
|
|
6369
|
-
var bind =
|
|
6370
|
-
/*#__PURE__*/
|
|
6371
|
-
_curry2(function bind(fn, thisObj) {
|
|
6463
|
+
var bind = /*#__PURE__*/_curry2$1(function bind(fn, thisObj) {
|
|
6372
6464
|
return _arity(fn.length, function () {
|
|
6373
6465
|
return fn.apply(thisObj, arguments);
|
|
6374
6466
|
});
|
|
@@ -6442,9 +6534,7 @@
|
|
|
6442
6534
|
throw new TypeError('reduce: list must be array or iterable');
|
|
6443
6535
|
}
|
|
6444
6536
|
|
|
6445
|
-
var XMap =
|
|
6446
|
-
/*#__PURE__*/
|
|
6447
|
-
function () {
|
|
6537
|
+
var XMap = /*#__PURE__*/function () {
|
|
6448
6538
|
function XMap(f, xf) {
|
|
6449
6539
|
this.xf = xf;
|
|
6450
6540
|
this.f = f;
|
|
@@ -6460,43 +6550,35 @@
|
|
|
6460
6550
|
return XMap;
|
|
6461
6551
|
}();
|
|
6462
6552
|
|
|
6463
|
-
var _xmap =
|
|
6464
|
-
/*#__PURE__*/
|
|
6465
|
-
_curry2(function _xmap(f, xf) {
|
|
6553
|
+
var _xmap = /*#__PURE__*/_curry2$1(function _xmap(f, xf) {
|
|
6466
6554
|
return new XMap(f, xf);
|
|
6467
6555
|
});
|
|
6468
6556
|
|
|
6469
|
-
function _has(prop, obj) {
|
|
6557
|
+
function _has$1(prop, obj) {
|
|
6470
6558
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
6471
6559
|
}
|
|
6472
6560
|
|
|
6473
|
-
var toString = Object.prototype.toString;
|
|
6561
|
+
var toString$1 = Object.prototype.toString;
|
|
6474
6562
|
|
|
6475
|
-
var _isArguments =
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
6479
|
-
return toString.call(x) === '[object Arguments]';
|
|
6563
|
+
var _isArguments$1 = /*#__PURE__*/function () {
|
|
6564
|
+
return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
6565
|
+
return toString$1.call(x) === '[object Arguments]';
|
|
6480
6566
|
} : function _isArguments(x) {
|
|
6481
|
-
return _has('callee', x);
|
|
6567
|
+
return _has$1('callee', x);
|
|
6482
6568
|
};
|
|
6483
6569
|
}();
|
|
6484
6570
|
|
|
6485
|
-
var hasEnumBug = !
|
|
6486
|
-
/*#__PURE__*/
|
|
6487
|
-
{
|
|
6571
|
+
var hasEnumBug$1 = ! /*#__PURE__*/{
|
|
6488
6572
|
toString: null
|
|
6489
6573
|
}.propertyIsEnumerable('toString');
|
|
6490
|
-
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
6574
|
+
var nonEnumerableProps$1 = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
6491
6575
|
|
|
6492
|
-
var hasArgsEnumBug =
|
|
6493
|
-
/*#__PURE__*/
|
|
6494
|
-
function () {
|
|
6576
|
+
var hasArgsEnumBug$1 = /*#__PURE__*/function () {
|
|
6495
6577
|
|
|
6496
6578
|
return arguments.propertyIsEnumerable('length');
|
|
6497
6579
|
}();
|
|
6498
6580
|
|
|
6499
|
-
var contains = function contains(list, item) {
|
|
6581
|
+
var contains$1 = function contains(list, item) {
|
|
6500
6582
|
var idx = 0;
|
|
6501
6583
|
|
|
6502
6584
|
while (idx < list.length) {
|
|
@@ -6529,13 +6611,9 @@
|
|
|
6529
6611
|
*/
|
|
6530
6612
|
|
|
6531
6613
|
|
|
6532
|
-
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
6533
|
-
/*#__PURE__*/
|
|
6534
|
-
_curry1(function keys(obj) {
|
|
6614
|
+
var keys$2 = typeof Object.keys === 'function' && !hasArgsEnumBug$1 ? /*#__PURE__*/_curry1$1(function keys(obj) {
|
|
6535
6615
|
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
6536
|
-
}) :
|
|
6537
|
-
/*#__PURE__*/
|
|
6538
|
-
_curry1(function keys(obj) {
|
|
6616
|
+
}) : /*#__PURE__*/_curry1$1(function keys(obj) {
|
|
6539
6617
|
if (Object(obj) !== obj) {
|
|
6540
6618
|
return [];
|
|
6541
6619
|
}
|
|
@@ -6543,21 +6621,21 @@
|
|
|
6543
6621
|
var prop, nIdx;
|
|
6544
6622
|
var ks = [];
|
|
6545
6623
|
|
|
6546
|
-
var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
|
|
6624
|
+
var checkArgsLength = hasArgsEnumBug$1 && _isArguments$1(obj);
|
|
6547
6625
|
|
|
6548
6626
|
for (prop in obj) {
|
|
6549
|
-
if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
6627
|
+
if (_has$1(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
6550
6628
|
ks[ks.length] = prop;
|
|
6551
6629
|
}
|
|
6552
6630
|
}
|
|
6553
6631
|
|
|
6554
|
-
if (hasEnumBug) {
|
|
6555
|
-
nIdx = nonEnumerableProps.length - 1;
|
|
6632
|
+
if (hasEnumBug$1) {
|
|
6633
|
+
nIdx = nonEnumerableProps$1.length - 1;
|
|
6556
6634
|
|
|
6557
6635
|
while (nIdx >= 0) {
|
|
6558
|
-
prop = nonEnumerableProps[nIdx];
|
|
6636
|
+
prop = nonEnumerableProps$1[nIdx];
|
|
6559
6637
|
|
|
6560
|
-
if (_has(prop, obj) && !contains(ks, prop)) {
|
|
6638
|
+
if (_has$1(prop, obj) && !contains$1(ks, prop)) {
|
|
6561
6639
|
ks[ks.length] = prop;
|
|
6562
6640
|
}
|
|
6563
6641
|
|
|
@@ -6604,11 +6682,7 @@
|
|
|
6604
6682
|
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
6605
6683
|
*/
|
|
6606
6684
|
|
|
6607
|
-
var map =
|
|
6608
|
-
/*#__PURE__*/
|
|
6609
|
-
_curry2(
|
|
6610
|
-
/*#__PURE__*/
|
|
6611
|
-
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
6685
|
+
var map = /*#__PURE__*/_curry2$1( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
6612
6686
|
switch (Object.prototype.toString.call(functor)) {
|
|
6613
6687
|
case '[object Function]':
|
|
6614
6688
|
return curryN(functor.length, function () {
|
|
@@ -6619,13 +6693,28 @@
|
|
|
6619
6693
|
return _reduce(function (acc, key) {
|
|
6620
6694
|
acc[key] = fn(functor[key]);
|
|
6621
6695
|
return acc;
|
|
6622
|
-
}, {}, keys(functor));
|
|
6696
|
+
}, {}, keys$2(functor));
|
|
6623
6697
|
|
|
6624
6698
|
default:
|
|
6625
6699
|
return _map(fn, functor);
|
|
6626
6700
|
}
|
|
6627
6701
|
}));
|
|
6628
6702
|
|
|
6703
|
+
var floor = Math.floor;
|
|
6704
|
+
|
|
6705
|
+
// `IsIntegralNumber` abstract operation
|
|
6706
|
+
// https://tc39.es/ecma262/#sec-isintegralnumber
|
|
6707
|
+
// eslint-disable-next-line es/no-number-isinteger -- safe
|
|
6708
|
+
var isIntegralNumber = Number.isInteger || function isInteger(it) {
|
|
6709
|
+
return !isObject(it) && isFinite(it) && floor(it) === it;
|
|
6710
|
+
};
|
|
6711
|
+
|
|
6712
|
+
// `Number.isInteger` method
|
|
6713
|
+
// https://tc39.es/ecma262/#sec-number.isinteger
|
|
6714
|
+
_export({ target: 'Number', stat: true }, {
|
|
6715
|
+
isInteger: isIntegralNumber
|
|
6716
|
+
});
|
|
6717
|
+
|
|
6629
6718
|
/**
|
|
6630
6719
|
* Determine if the passed argument is an integer.
|
|
6631
6720
|
*
|
|
@@ -6665,9 +6754,7 @@
|
|
|
6665
6754
|
* @symb R.nth(1, [a, b, c]) = b
|
|
6666
6755
|
*/
|
|
6667
6756
|
|
|
6668
|
-
var nth =
|
|
6669
|
-
/*#__PURE__*/
|
|
6670
|
-
_curry2(function nth(offset, list) {
|
|
6757
|
+
var nth = /*#__PURE__*/_curry2$1(function nth(offset, list) {
|
|
6671
6758
|
var idx = offset < 0 ? list.length + offset : offset;
|
|
6672
6759
|
return _isString(list) ? list.charAt(idx) : list[idx];
|
|
6673
6760
|
});
|
|
@@ -6691,9 +6778,7 @@
|
|
|
6691
6778
|
* R.paths([['a', 'b'], ['p', 'r']], {a: {b: 2}, p: [{q: 3}]}); //=> [2, undefined]
|
|
6692
6779
|
*/
|
|
6693
6780
|
|
|
6694
|
-
var paths =
|
|
6695
|
-
/*#__PURE__*/
|
|
6696
|
-
_curry2(function paths(pathsArray, obj) {
|
|
6781
|
+
var paths = /*#__PURE__*/_curry2$1(function paths(pathsArray, obj) {
|
|
6697
6782
|
return pathsArray.map(function (paths) {
|
|
6698
6783
|
var val = obj;
|
|
6699
6784
|
var idx = 0;
|
|
@@ -6734,9 +6819,7 @@
|
|
|
6734
6819
|
* R.path(['a', 'b', -2], {a: {b: [1, 2, 3]}}); //=> 2
|
|
6735
6820
|
*/
|
|
6736
6821
|
|
|
6737
|
-
var path =
|
|
6738
|
-
/*#__PURE__*/
|
|
6739
|
-
_curry2(function path(pathAr, obj) {
|
|
6822
|
+
var path = /*#__PURE__*/_curry2$1(function path(pathAr, obj) {
|
|
6740
6823
|
return paths([pathAr], obj)[0];
|
|
6741
6824
|
});
|
|
6742
6825
|
|
|
@@ -6762,9 +6845,7 @@
|
|
|
6762
6845
|
* R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
|
|
6763
6846
|
*/
|
|
6764
6847
|
|
|
6765
|
-
var prop =
|
|
6766
|
-
/*#__PURE__*/
|
|
6767
|
-
_curry2(function prop(p, obj) {
|
|
6848
|
+
var prop = /*#__PURE__*/_curry2$1(function prop(p, obj) {
|
|
6768
6849
|
return path([p], obj);
|
|
6769
6850
|
});
|
|
6770
6851
|
|
|
@@ -6796,9 +6877,7 @@
|
|
|
6796
6877
|
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
6797
6878
|
*/
|
|
6798
6879
|
|
|
6799
|
-
var pluck =
|
|
6800
|
-
/*#__PURE__*/
|
|
6801
|
-
_curry2(function pluck(p, list) {
|
|
6880
|
+
var pluck = /*#__PURE__*/_curry2$1(function pluck(p, list) {
|
|
6802
6881
|
return map(prop(p), list);
|
|
6803
6882
|
});
|
|
6804
6883
|
|
|
@@ -6849,9 +6928,7 @@
|
|
|
6849
6928
|
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
6850
6929
|
*/
|
|
6851
6930
|
|
|
6852
|
-
var reduce =
|
|
6853
|
-
/*#__PURE__*/
|
|
6854
|
-
_curry3(_reduce);
|
|
6931
|
+
var reduce = /*#__PURE__*/_curry3(_reduce);
|
|
6855
6932
|
|
|
6856
6933
|
/**
|
|
6857
6934
|
* `_makeFlat` is a helper function that returns a one-level or fully recursive
|
|
@@ -6888,7 +6965,201 @@
|
|
|
6888
6965
|
};
|
|
6889
6966
|
}
|
|
6890
6967
|
|
|
6891
|
-
|
|
6968
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
6969
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
6970
|
+
|
|
6971
|
+
|
|
6972
|
+
|
|
6973
|
+
|
|
6974
|
+
|
|
6975
|
+
|
|
6976
|
+
|
|
6977
|
+
|
|
6978
|
+
var enforceInternalState = internalState.enforce;
|
|
6979
|
+
|
|
6980
|
+
|
|
6981
|
+
|
|
6982
|
+
|
|
6983
|
+
|
|
6984
|
+
var MATCH = wellKnownSymbol('match');
|
|
6985
|
+
var NativeRegExp = global$1.RegExp;
|
|
6986
|
+
var RegExpPrototype = NativeRegExp.prototype;
|
|
6987
|
+
var SyntaxError = global$1.SyntaxError;
|
|
6988
|
+
var getFlags = functionUncurryThis(regexpFlags);
|
|
6989
|
+
var exec = functionUncurryThis(RegExpPrototype.exec);
|
|
6990
|
+
var charAt = functionUncurryThis(''.charAt);
|
|
6991
|
+
var replace = functionUncurryThis(''.replace);
|
|
6992
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
|
6993
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
6994
|
+
// TODO: Use only propper RegExpIdentifierName
|
|
6995
|
+
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
6996
|
+
var re1 = /a/g;
|
|
6997
|
+
var re2 = /a/g;
|
|
6998
|
+
|
|
6999
|
+
// "new" should create a new object, old webkit bug
|
|
7000
|
+
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
|
7001
|
+
|
|
7002
|
+
var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
|
|
7003
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
7004
|
+
|
|
7005
|
+
var BASE_FORCED = descriptors &&
|
|
7006
|
+
(!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
|
|
7007
|
+
re2[MATCH] = false;
|
|
7008
|
+
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
7009
|
+
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
7010
|
+
}));
|
|
7011
|
+
|
|
7012
|
+
var handleDotAll = function (string) {
|
|
7013
|
+
var length = string.length;
|
|
7014
|
+
var index = 0;
|
|
7015
|
+
var result = '';
|
|
7016
|
+
var brackets = false;
|
|
7017
|
+
var chr;
|
|
7018
|
+
for (; index <= length; index++) {
|
|
7019
|
+
chr = charAt(string, index);
|
|
7020
|
+
if (chr === '\\') {
|
|
7021
|
+
result += chr + charAt(string, ++index);
|
|
7022
|
+
continue;
|
|
7023
|
+
}
|
|
7024
|
+
if (!brackets && chr === '.') {
|
|
7025
|
+
result += '[\\s\\S]';
|
|
7026
|
+
} else {
|
|
7027
|
+
if (chr === '[') {
|
|
7028
|
+
brackets = true;
|
|
7029
|
+
} else if (chr === ']') {
|
|
7030
|
+
brackets = false;
|
|
7031
|
+
} result += chr;
|
|
7032
|
+
}
|
|
7033
|
+
} return result;
|
|
7034
|
+
};
|
|
7035
|
+
|
|
7036
|
+
var handleNCG = function (string) {
|
|
7037
|
+
var length = string.length;
|
|
7038
|
+
var index = 0;
|
|
7039
|
+
var result = '';
|
|
7040
|
+
var named = [];
|
|
7041
|
+
var names = {};
|
|
7042
|
+
var brackets = false;
|
|
7043
|
+
var ncg = false;
|
|
7044
|
+
var groupid = 0;
|
|
7045
|
+
var groupname = '';
|
|
7046
|
+
var chr;
|
|
7047
|
+
for (; index <= length; index++) {
|
|
7048
|
+
chr = charAt(string, index);
|
|
7049
|
+
if (chr === '\\') {
|
|
7050
|
+
chr = chr + charAt(string, ++index);
|
|
7051
|
+
} else if (chr === ']') {
|
|
7052
|
+
brackets = false;
|
|
7053
|
+
} else if (!brackets) switch (true) {
|
|
7054
|
+
case chr === '[':
|
|
7055
|
+
brackets = true;
|
|
7056
|
+
break;
|
|
7057
|
+
case chr === '(':
|
|
7058
|
+
if (exec(IS_NCG, stringSlice(string, index + 1))) {
|
|
7059
|
+
index += 2;
|
|
7060
|
+
ncg = true;
|
|
7061
|
+
}
|
|
7062
|
+
result += chr;
|
|
7063
|
+
groupid++;
|
|
7064
|
+
continue;
|
|
7065
|
+
case chr === '>' && ncg:
|
|
7066
|
+
if (groupname === '' || hasOwnProperty_1(names, groupname)) {
|
|
7067
|
+
throw new SyntaxError('Invalid capture group name');
|
|
7068
|
+
}
|
|
7069
|
+
names[groupname] = true;
|
|
7070
|
+
named[named.length] = [groupname, groupid];
|
|
7071
|
+
ncg = false;
|
|
7072
|
+
groupname = '';
|
|
7073
|
+
continue;
|
|
7074
|
+
}
|
|
7075
|
+
if (ncg) groupname += chr;
|
|
7076
|
+
else result += chr;
|
|
7077
|
+
} return [result, named];
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
// `RegExp` constructor
|
|
7081
|
+
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
7082
|
+
if (isForced_1('RegExp', BASE_FORCED)) {
|
|
7083
|
+
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
7084
|
+
var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype, this);
|
|
7085
|
+
var patternIsRegExp = isRegexp(pattern);
|
|
7086
|
+
var flagsAreUndefined = flags === undefined;
|
|
7087
|
+
var groups = [];
|
|
7088
|
+
var rawPattern = pattern;
|
|
7089
|
+
var rawFlags, dotAll, sticky, handled, result, state;
|
|
7090
|
+
|
|
7091
|
+
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
|
|
7092
|
+
return pattern;
|
|
7093
|
+
}
|
|
7094
|
+
|
|
7095
|
+
if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype, pattern)) {
|
|
7096
|
+
pattern = pattern.source;
|
|
7097
|
+
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags(rawPattern);
|
|
7098
|
+
}
|
|
7099
|
+
|
|
7100
|
+
pattern = pattern === undefined ? '' : toString$2(pattern);
|
|
7101
|
+
flags = flags === undefined ? '' : toString$2(flags);
|
|
7102
|
+
rawPattern = pattern;
|
|
7103
|
+
|
|
7104
|
+
if (regexpUnsupportedDotAll && 'dotAll' in re1) {
|
|
7105
|
+
dotAll = !!flags && stringIndexOf(flags, 's') > -1;
|
|
7106
|
+
if (dotAll) flags = replace(flags, /s/g, '');
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
rawFlags = flags;
|
|
7110
|
+
|
|
7111
|
+
if (MISSED_STICKY && 'sticky' in re1) {
|
|
7112
|
+
sticky = !!flags && stringIndexOf(flags, 'y') > -1;
|
|
7113
|
+
if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, '');
|
|
7114
|
+
}
|
|
7115
|
+
|
|
7116
|
+
if (regexpUnsupportedNcg) {
|
|
7117
|
+
handled = handleNCG(pattern);
|
|
7118
|
+
pattern = handled[0];
|
|
7119
|
+
groups = handled[1];
|
|
7120
|
+
}
|
|
7121
|
+
|
|
7122
|
+
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
|
|
7123
|
+
|
|
7124
|
+
if (dotAll || sticky || groups.length) {
|
|
7125
|
+
state = enforceInternalState(result);
|
|
7126
|
+
if (dotAll) {
|
|
7127
|
+
state.dotAll = true;
|
|
7128
|
+
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
|
|
7129
|
+
}
|
|
7130
|
+
if (sticky) state.sticky = true;
|
|
7131
|
+
if (groups.length) state.groups = groups;
|
|
7132
|
+
}
|
|
7133
|
+
|
|
7134
|
+
if (pattern !== rawPattern) try {
|
|
7135
|
+
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
|
7136
|
+
createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
|
7137
|
+
} catch (error) { /* empty */ }
|
|
7138
|
+
|
|
7139
|
+
return result;
|
|
7140
|
+
};
|
|
7141
|
+
|
|
7142
|
+
var proxy = function (key) {
|
|
7143
|
+
key in RegExpWrapper || defineProperty$1(RegExpWrapper, key, {
|
|
7144
|
+
configurable: true,
|
|
7145
|
+
get: function () { return NativeRegExp[key]; },
|
|
7146
|
+
set: function (it) { NativeRegExp[key] = it; }
|
|
7147
|
+
});
|
|
7148
|
+
};
|
|
7149
|
+
|
|
7150
|
+
for (var keys$1 = getOwnPropertyNames(NativeRegExp), index$1 = 0; keys$1.length > index$1;) {
|
|
7151
|
+
proxy(keys$1[index$1++]);
|
|
7152
|
+
}
|
|
7153
|
+
|
|
7154
|
+
RegExpPrototype.constructor = RegExpWrapper;
|
|
7155
|
+
RegExpWrapper.prototype = RegExpPrototype;
|
|
7156
|
+
redefine(global$1, 'RegExp', RegExpWrapper);
|
|
7157
|
+
}
|
|
7158
|
+
|
|
7159
|
+
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
7160
|
+
setSpecies('RegExp');
|
|
7161
|
+
|
|
7162
|
+
function _cloneRegExp$1(pattern) {
|
|
6892
7163
|
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
|
|
6893
7164
|
}
|
|
6894
7165
|
|
|
@@ -6918,9 +7189,7 @@
|
|
|
6918
7189
|
* R.type(undefined); //=> "Undefined"
|
|
6919
7190
|
*/
|
|
6920
7191
|
|
|
6921
|
-
var type =
|
|
6922
|
-
/*#__PURE__*/
|
|
6923
|
-
_curry1(function type(val) {
|
|
7192
|
+
var type$1 = /*#__PURE__*/_curry1$1(function type(val) {
|
|
6924
7193
|
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
6925
7194
|
});
|
|
6926
7195
|
|
|
@@ -6935,7 +7204,7 @@
|
|
|
6935
7204
|
* @return {*} The copied value.
|
|
6936
7205
|
*/
|
|
6937
7206
|
|
|
6938
|
-
function _clone(value, refFrom, refTo, deep) {
|
|
7207
|
+
function _clone$1(value, refFrom, refTo, deep) {
|
|
6939
7208
|
var copy = function copy(copiedValue) {
|
|
6940
7209
|
var len = refFrom.length;
|
|
6941
7210
|
var idx = 0;
|
|
@@ -6952,13 +7221,13 @@
|
|
|
6952
7221
|
refTo[idx + 1] = copiedValue;
|
|
6953
7222
|
|
|
6954
7223
|
for (var key in value) {
|
|
6955
|
-
copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];
|
|
7224
|
+
copiedValue[key] = deep ? _clone$1(value[key], refFrom, refTo, true) : value[key];
|
|
6956
7225
|
}
|
|
6957
7226
|
|
|
6958
7227
|
return copiedValue;
|
|
6959
7228
|
};
|
|
6960
7229
|
|
|
6961
|
-
switch (type(value)) {
|
|
7230
|
+
switch (type$1(value)) {
|
|
6962
7231
|
case 'Object':
|
|
6963
7232
|
return copy({});
|
|
6964
7233
|
|
|
@@ -6969,7 +7238,7 @@
|
|
|
6969
7238
|
return new Date(value.valueOf());
|
|
6970
7239
|
|
|
6971
7240
|
case 'RegExp':
|
|
6972
|
-
return _cloneRegExp(value);
|
|
7241
|
+
return _cloneRegExp$1(value);
|
|
6973
7242
|
|
|
6974
7243
|
default:
|
|
6975
7244
|
return value;
|
|
@@ -6998,10 +7267,8 @@
|
|
|
6998
7267
|
* objects[0] === objectsClone[0]; //=> false
|
|
6999
7268
|
*/
|
|
7000
7269
|
|
|
7001
|
-
var clone =
|
|
7002
|
-
|
|
7003
|
-
_curry1(function clone(value) {
|
|
7004
|
-
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
|
|
7270
|
+
var clone$1 = /*#__PURE__*/_curry1$1(function clone(value) {
|
|
7271
|
+
return value != null && typeof value.clone === 'function' ? value.clone() : _clone$1(value, [], [], true);
|
|
7005
7272
|
});
|
|
7006
7273
|
|
|
7007
7274
|
function _pipe(f, g) {
|
|
@@ -7059,11 +7326,7 @@
|
|
|
7059
7326
|
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
7060
7327
|
*/
|
|
7061
7328
|
|
|
7062
|
-
var slice =
|
|
7063
|
-
/*#__PURE__*/
|
|
7064
|
-
_curry3(
|
|
7065
|
-
/*#__PURE__*/
|
|
7066
|
-
_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
|
7329
|
+
var slice = /*#__PURE__*/_curry3( /*#__PURE__*/_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
|
7067
7330
|
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
7068
7331
|
}));
|
|
7069
7332
|
|
|
@@ -7095,13 +7358,7 @@
|
|
|
7095
7358
|
* R.tail(''); //=> ''
|
|
7096
7359
|
*/
|
|
7097
7360
|
|
|
7098
|
-
var tail =
|
|
7099
|
-
/*#__PURE__*/
|
|
7100
|
-
_curry1(
|
|
7101
|
-
/*#__PURE__*/
|
|
7102
|
-
_checkForMethod('tail',
|
|
7103
|
-
/*#__PURE__*/
|
|
7104
|
-
slice(1, Infinity)));
|
|
7361
|
+
var tail = /*#__PURE__*/_curry1$1( /*#__PURE__*/_checkForMethod('tail', /*#__PURE__*/slice(1, Infinity)));
|
|
7105
7362
|
|
|
7106
7363
|
/**
|
|
7107
7364
|
* Performs left-to-right function composition. The first argument may have
|
|
@@ -7159,11 +7416,9 @@
|
|
|
7159
7416
|
* @symb R.identity(a) = a
|
|
7160
7417
|
*/
|
|
7161
7418
|
|
|
7162
|
-
var identity =
|
|
7163
|
-
/*#__PURE__*/
|
|
7164
|
-
_curry1(_identity);
|
|
7419
|
+
var identity = /*#__PURE__*/_curry1$1(_identity);
|
|
7165
7420
|
|
|
7166
|
-
function _arrayFromIterator(iter) {
|
|
7421
|
+
function _arrayFromIterator$1(iter) {
|
|
7167
7422
|
var list = [];
|
|
7168
7423
|
var next;
|
|
7169
7424
|
|
|
@@ -7174,7 +7429,7 @@
|
|
|
7174
7429
|
return list;
|
|
7175
7430
|
}
|
|
7176
7431
|
|
|
7177
|
-
function _includesWith(pred, x, list) {
|
|
7432
|
+
function _includesWith$1(pred, x, list) {
|
|
7178
7433
|
var idx = 0;
|
|
7179
7434
|
var len = list.length;
|
|
7180
7435
|
|
|
@@ -7189,14 +7444,28 @@
|
|
|
7189
7444
|
return false;
|
|
7190
7445
|
}
|
|
7191
7446
|
|
|
7192
|
-
function _functionName(f) {
|
|
7447
|
+
function _functionName$1(f) {
|
|
7193
7448
|
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
7194
7449
|
var match = String(f).match(/^function (\w*)/);
|
|
7195
7450
|
return match == null ? '' : match[1];
|
|
7196
7451
|
}
|
|
7197
7452
|
|
|
7453
|
+
// `SameValue` abstract operation
|
|
7454
|
+
// https://tc39.es/ecma262/#sec-samevalue
|
|
7455
|
+
// eslint-disable-next-line es/no-object-is -- safe
|
|
7456
|
+
var sameValue = Object.is || function is(x, y) {
|
|
7457
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7458
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
7459
|
+
};
|
|
7460
|
+
|
|
7461
|
+
// `Object.is` method
|
|
7462
|
+
// https://tc39.es/ecma262/#sec-object.is
|
|
7463
|
+
_export({ target: 'Object', stat: true }, {
|
|
7464
|
+
is: sameValue
|
|
7465
|
+
});
|
|
7466
|
+
|
|
7198
7467
|
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
7199
|
-
function _objectIs(a, b) {
|
|
7468
|
+
function _objectIs$2(a, b) {
|
|
7200
7469
|
// SameValue algorithm
|
|
7201
7470
|
if (a === b) {
|
|
7202
7471
|
// Steps 1-5, 7-10
|
|
@@ -7208,7 +7477,7 @@
|
|
|
7208
7477
|
}
|
|
7209
7478
|
}
|
|
7210
7479
|
|
|
7211
|
-
var _objectIs$
|
|
7480
|
+
var _objectIs$3 = typeof Object.is === 'function' ? Object.is : _objectIs$2;
|
|
7212
7481
|
|
|
7213
7482
|
/**
|
|
7214
7483
|
* private _uniqContentEquals function.
|
|
@@ -7221,29 +7490,29 @@
|
|
|
7221
7490
|
* - [1,1,1] and [1,2,3]
|
|
7222
7491
|
* */
|
|
7223
7492
|
|
|
7224
|
-
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
7225
|
-
var a = _arrayFromIterator(aIterator);
|
|
7493
|
+
function _uniqContentEquals$1(aIterator, bIterator, stackA, stackB) {
|
|
7494
|
+
var a = _arrayFromIterator$1(aIterator);
|
|
7226
7495
|
|
|
7227
|
-
var b = _arrayFromIterator(bIterator);
|
|
7496
|
+
var b = _arrayFromIterator$1(bIterator);
|
|
7228
7497
|
|
|
7229
7498
|
function eq(_a, _b) {
|
|
7230
|
-
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
7499
|
+
return _equals$1(_a, _b, stackA.slice(), stackB.slice());
|
|
7231
7500
|
} // if *a* array contains any element that is not included in *b*
|
|
7232
7501
|
|
|
7233
7502
|
|
|
7234
|
-
return !_includesWith(function (b, aItem) {
|
|
7235
|
-
return !_includesWith(eq, aItem, b);
|
|
7503
|
+
return !_includesWith$1(function (b, aItem) {
|
|
7504
|
+
return !_includesWith$1(eq, aItem, b);
|
|
7236
7505
|
}, b, a);
|
|
7237
7506
|
}
|
|
7238
7507
|
|
|
7239
|
-
function _equals(a, b, stackA, stackB) {
|
|
7240
|
-
if (_objectIs$
|
|
7508
|
+
function _equals$1(a, b, stackA, stackB) {
|
|
7509
|
+
if (_objectIs$3(a, b)) {
|
|
7241
7510
|
return true;
|
|
7242
7511
|
}
|
|
7243
7512
|
|
|
7244
|
-
var typeA = type(a);
|
|
7513
|
+
var typeA = type$1(a);
|
|
7245
7514
|
|
|
7246
|
-
if (typeA !== type(b)) {
|
|
7515
|
+
if (typeA !== type$1(b)) {
|
|
7247
7516
|
return false;
|
|
7248
7517
|
}
|
|
7249
7518
|
|
|
@@ -7263,7 +7532,7 @@
|
|
|
7263
7532
|
case 'Arguments':
|
|
7264
7533
|
case 'Array':
|
|
7265
7534
|
case 'Object':
|
|
7266
|
-
if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
|
|
7535
|
+
if (typeof a.constructor === 'function' && _functionName$1(a.constructor) === 'Promise') {
|
|
7267
7536
|
return a === b;
|
|
7268
7537
|
}
|
|
7269
7538
|
|
|
@@ -7272,14 +7541,14 @@
|
|
|
7272
7541
|
case 'Boolean':
|
|
7273
7542
|
case 'Number':
|
|
7274
7543
|
case 'String':
|
|
7275
|
-
if (!(
|
|
7544
|
+
if (!(_typeof(a) === _typeof(b) && _objectIs$3(a.valueOf(), b.valueOf()))) {
|
|
7276
7545
|
return false;
|
|
7277
7546
|
}
|
|
7278
7547
|
|
|
7279
7548
|
break;
|
|
7280
7549
|
|
|
7281
7550
|
case 'Date':
|
|
7282
|
-
if (!_objectIs$
|
|
7551
|
+
if (!_objectIs$3(a.valueOf(), b.valueOf())) {
|
|
7283
7552
|
return false;
|
|
7284
7553
|
}
|
|
7285
7554
|
|
|
@@ -7312,14 +7581,14 @@
|
|
|
7312
7581
|
return false;
|
|
7313
7582
|
}
|
|
7314
7583
|
|
|
7315
|
-
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
7584
|
+
return _uniqContentEquals$1(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
7316
7585
|
|
|
7317
7586
|
case 'Set':
|
|
7318
7587
|
if (a.size !== b.size) {
|
|
7319
7588
|
return false;
|
|
7320
7589
|
}
|
|
7321
7590
|
|
|
7322
|
-
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
7591
|
+
return _uniqContentEquals$1(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
7323
7592
|
|
|
7324
7593
|
case 'Arguments':
|
|
7325
7594
|
case 'Array':
|
|
@@ -7347,9 +7616,9 @@
|
|
|
7347
7616
|
return false;
|
|
7348
7617
|
}
|
|
7349
7618
|
|
|
7350
|
-
var keysA = keys(a);
|
|
7619
|
+
var keysA = keys$2(a);
|
|
7351
7620
|
|
|
7352
|
-
if (keysA.length !== keys(b).length) {
|
|
7621
|
+
if (keysA.length !== keys$2(b).length) {
|
|
7353
7622
|
return false;
|
|
7354
7623
|
}
|
|
7355
7624
|
|
|
@@ -7360,7 +7629,7 @@
|
|
|
7360
7629
|
while (idx >= 0) {
|
|
7361
7630
|
var key = keysA[idx];
|
|
7362
7631
|
|
|
7363
|
-
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
7632
|
+
if (!(_has$1(key, b) && _equals$1(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
7364
7633
|
return false;
|
|
7365
7634
|
}
|
|
7366
7635
|
|
|
@@ -7396,17 +7665,15 @@
|
|
|
7396
7665
|
* R.equals(a, b); //=> true
|
|
7397
7666
|
*/
|
|
7398
7667
|
|
|
7399
|
-
var equals =
|
|
7400
|
-
|
|
7401
|
-
_curry2(function equals(a, b) {
|
|
7402
|
-
return _equals(a, b, [], []);
|
|
7668
|
+
var equals$1 = /*#__PURE__*/_curry2$1(function equals(a, b) {
|
|
7669
|
+
return _equals$1(a, b, [], []);
|
|
7403
7670
|
});
|
|
7404
7671
|
|
|
7405
7672
|
function _indexOf(list, a, idx) {
|
|
7406
7673
|
var inf, item; // Array.prototype.indexOf doesn't exist below IE9
|
|
7407
7674
|
|
|
7408
7675
|
if (typeof list.indexOf === 'function') {
|
|
7409
|
-
switch (
|
|
7676
|
+
switch (_typeof(a)) {
|
|
7410
7677
|
case 'number':
|
|
7411
7678
|
if (a === 0) {
|
|
7412
7679
|
// manually crawl the list to distinguish between +0 and -0
|
|
@@ -7459,7 +7726,7 @@
|
|
|
7459
7726
|
|
|
7460
7727
|
|
|
7461
7728
|
while (idx < list.length) {
|
|
7462
|
-
if (equals(list[idx], a)) {
|
|
7729
|
+
if (equals$1(list[idx], a)) {
|
|
7463
7730
|
return idx;
|
|
7464
7731
|
}
|
|
7465
7732
|
|
|
@@ -7493,9 +7760,7 @@
|
|
|
7493
7760
|
return Object.prototype.toString.call(x) === '[object Object]';
|
|
7494
7761
|
}
|
|
7495
7762
|
|
|
7496
|
-
var XFilter =
|
|
7497
|
-
/*#__PURE__*/
|
|
7498
|
-
function () {
|
|
7763
|
+
var XFilter = /*#__PURE__*/function () {
|
|
7499
7764
|
function XFilter(f, xf) {
|
|
7500
7765
|
this.xf = xf;
|
|
7501
7766
|
this.f = f;
|
|
@@ -7511,9 +7776,7 @@
|
|
|
7511
7776
|
return XFilter;
|
|
7512
7777
|
}();
|
|
7513
7778
|
|
|
7514
|
-
var _xfilter =
|
|
7515
|
-
/*#__PURE__*/
|
|
7516
|
-
_curry2(function _xfilter(f, xf) {
|
|
7779
|
+
var _xfilter = /*#__PURE__*/_curry2$1(function _xfilter(f, xf) {
|
|
7517
7780
|
return new XFilter(f, xf);
|
|
7518
7781
|
});
|
|
7519
7782
|
|
|
@@ -7545,24 +7808,18 @@
|
|
|
7545
7808
|
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
7546
7809
|
*/
|
|
7547
7810
|
|
|
7548
|
-
var filter =
|
|
7549
|
-
/*#__PURE__*/
|
|
7550
|
-
_curry2(
|
|
7551
|
-
/*#__PURE__*/
|
|
7552
|
-
_dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
7811
|
+
var filter = /*#__PURE__*/_curry2$1( /*#__PURE__*/_dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
7553
7812
|
return _isObject(filterable) ? _reduce(function (acc, key) {
|
|
7554
7813
|
if (pred(filterable[key])) {
|
|
7555
7814
|
acc[key] = filterable[key];
|
|
7556
7815
|
}
|
|
7557
7816
|
|
|
7558
7817
|
return acc;
|
|
7559
|
-
}, {}, keys(filterable)) : // else
|
|
7818
|
+
}, {}, keys$2(filterable)) : // else
|
|
7560
7819
|
_filter(pred, filterable);
|
|
7561
7820
|
}));
|
|
7562
7821
|
|
|
7563
|
-
var XReduceBy =
|
|
7564
|
-
/*#__PURE__*/
|
|
7565
|
-
function () {
|
|
7822
|
+
var XReduceBy = /*#__PURE__*/function () {
|
|
7566
7823
|
function XReduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7567
7824
|
this.valueFn = valueFn;
|
|
7568
7825
|
this.valueAcc = valueAcc;
|
|
@@ -7577,7 +7834,7 @@
|
|
|
7577
7834
|
var key;
|
|
7578
7835
|
|
|
7579
7836
|
for (key in this.inputs) {
|
|
7580
|
-
if (_has(key, this.inputs)) {
|
|
7837
|
+
if (_has$1(key, this.inputs)) {
|
|
7581
7838
|
result = this.xf['@@transducer/step'](result, this.inputs[key]);
|
|
7582
7839
|
|
|
7583
7840
|
if (result['@@transducer/reduced']) {
|
|
@@ -7601,9 +7858,7 @@
|
|
|
7601
7858
|
return XReduceBy;
|
|
7602
7859
|
}();
|
|
7603
7860
|
|
|
7604
|
-
var _xreduceBy =
|
|
7605
|
-
/*#__PURE__*/
|
|
7606
|
-
_curryN(4, [], function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7861
|
+
var _xreduceBy = /*#__PURE__*/_curryN(4, [], function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
|
|
7607
7862
|
return new XReduceBy(valueFn, valueAcc, keyFn, xf);
|
|
7608
7863
|
});
|
|
7609
7864
|
|
|
@@ -7649,31 +7904,25 @@
|
|
|
7649
7904
|
* //=> {"A": ["Dora"], "B": ["Abby", "Curt"], "F": ["Bart"]}
|
|
7650
7905
|
*/
|
|
7651
7906
|
|
|
7652
|
-
var reduceBy =
|
|
7653
|
-
/*#__PURE__*/
|
|
7654
|
-
_curryN(4, [],
|
|
7655
|
-
/*#__PURE__*/
|
|
7656
|
-
_dispatchable([], _xreduceBy, function reduceBy(valueFn, valueAcc, keyFn, list) {
|
|
7907
|
+
var reduceBy = /*#__PURE__*/_curryN(4, [], /*#__PURE__*/_dispatchable([], _xreduceBy, function reduceBy(valueFn, valueAcc, keyFn, list) {
|
|
7657
7908
|
return _reduce(function (acc, elt) {
|
|
7658
7909
|
var key = keyFn(elt);
|
|
7659
|
-
acc[key] = valueFn(_has(key, acc) ? acc[key] : _clone(valueAcc, [], [], false), elt);
|
|
7910
|
+
acc[key] = valueFn(_has$1(key, acc) ? acc[key] : _clone$1(valueAcc, [], [], false), elt);
|
|
7660
7911
|
return acc;
|
|
7661
7912
|
}, {}, list);
|
|
7662
7913
|
}));
|
|
7663
7914
|
|
|
7664
|
-
var _Set =
|
|
7665
|
-
/*#__PURE__*/
|
|
7666
|
-
function () {
|
|
7915
|
+
var _Set = /*#__PURE__*/function () {
|
|
7667
7916
|
function _Set() {
|
|
7668
7917
|
/* globals Set */
|
|
7669
7918
|
this._nativeSet = typeof Set === 'function' ? new Set() : null;
|
|
7670
7919
|
this._items = {};
|
|
7671
|
-
}
|
|
7672
|
-
|
|
7673
|
-
// until we figure out why jsdoc chokes on this
|
|
7920
|
+
} // until we figure out why jsdoc chokes on this
|
|
7674
7921
|
// @param item The item to add to the Set
|
|
7675
7922
|
// @returns {boolean} true if the item did not exist prior, otherwise false
|
|
7676
7923
|
//
|
|
7924
|
+
|
|
7925
|
+
|
|
7677
7926
|
_Set.prototype.add = function (item) {
|
|
7678
7927
|
return !hasOrAdd(item, true, this);
|
|
7679
7928
|
}; //
|
|
@@ -7700,7 +7949,8 @@
|
|
|
7700
7949
|
}();
|
|
7701
7950
|
|
|
7702
7951
|
function hasOrAdd(item, shouldAdd, set) {
|
|
7703
|
-
var type =
|
|
7952
|
+
var type = _typeof(item);
|
|
7953
|
+
|
|
7704
7954
|
var prevSize, newSize;
|
|
7705
7955
|
|
|
7706
7956
|
switch (type) {
|
|
@@ -7858,9 +8108,7 @@
|
|
|
7858
8108
|
}
|
|
7859
8109
|
} // A simple Set type that honours R.equals semantics
|
|
7860
8110
|
|
|
7861
|
-
var XTake =
|
|
7862
|
-
/*#__PURE__*/
|
|
7863
|
-
function () {
|
|
8111
|
+
var XTake = /*#__PURE__*/function () {
|
|
7864
8112
|
function XTake(n, xf) {
|
|
7865
8113
|
this.xf = xf;
|
|
7866
8114
|
this.n = n;
|
|
@@ -7879,9 +8127,7 @@
|
|
|
7879
8127
|
return XTake;
|
|
7880
8128
|
}();
|
|
7881
8129
|
|
|
7882
|
-
var _xtake =
|
|
7883
|
-
/*#__PURE__*/
|
|
7884
|
-
_curry2(function _xtake(n, xf) {
|
|
8130
|
+
var _xtake = /*#__PURE__*/_curry2$1(function _xtake(n, xf) {
|
|
7885
8131
|
return new XTake(n, xf);
|
|
7886
8132
|
});
|
|
7887
8133
|
|
|
@@ -7929,11 +8175,7 @@
|
|
|
7929
8175
|
* @symb R.take(2, [a, b]) = [a, b]
|
|
7930
8176
|
*/
|
|
7931
8177
|
|
|
7932
|
-
var take =
|
|
7933
|
-
/*#__PURE__*/
|
|
7934
|
-
_curry2(
|
|
7935
|
-
/*#__PURE__*/
|
|
7936
|
-
_dispatchable(['take'], _xtake, function take(n, xs) {
|
|
8178
|
+
var take = /*#__PURE__*/_curry2$1( /*#__PURE__*/_dispatchable(['take'], _xtake, function take(n, xs) {
|
|
7937
8179
|
return slice(0, n < 0 ? Infinity : n, xs);
|
|
7938
8180
|
}));
|
|
7939
8181
|
|
|
@@ -7941,9 +8183,7 @@
|
|
|
7941
8183
|
return take(n < xs.length ? xs.length - n : 0, xs);
|
|
7942
8184
|
}
|
|
7943
8185
|
|
|
7944
|
-
var XDropLast =
|
|
7945
|
-
/*#__PURE__*/
|
|
7946
|
-
function () {
|
|
8186
|
+
var XDropLast = /*#__PURE__*/function () {
|
|
7947
8187
|
function XDropLast(n, xf) {
|
|
7948
8188
|
this.xf = xf;
|
|
7949
8189
|
this.pos = 0;
|
|
@@ -7980,9 +8220,7 @@
|
|
|
7980
8220
|
return XDropLast;
|
|
7981
8221
|
}();
|
|
7982
8222
|
|
|
7983
|
-
var _xdropLast =
|
|
7984
|
-
/*#__PURE__*/
|
|
7985
|
-
_curry2(function _xdropLast(n, xf) {
|
|
8223
|
+
var _xdropLast = /*#__PURE__*/_curry2$1(function _xdropLast(n, xf) {
|
|
7986
8224
|
return new XDropLast(n, xf);
|
|
7987
8225
|
});
|
|
7988
8226
|
|
|
@@ -8010,11 +8248,7 @@
|
|
|
8010
8248
|
* R.dropLast(3, 'ramda'); //=> 'ra'
|
|
8011
8249
|
*/
|
|
8012
8250
|
|
|
8013
|
-
var dropLast =
|
|
8014
|
-
/*#__PURE__*/
|
|
8015
|
-
_curry2(
|
|
8016
|
-
/*#__PURE__*/
|
|
8017
|
-
_dispatchable([], _xdropLast, dropLast$1));
|
|
8251
|
+
var dropLast = /*#__PURE__*/_curry2$1( /*#__PURE__*/_dispatchable([], _xdropLast, dropLast$1));
|
|
8018
8252
|
|
|
8019
8253
|
/**
|
|
8020
8254
|
* Returns a new list by pulling every item out of it (and all its sub-arrays)
|
|
@@ -8034,11 +8268,7 @@
|
|
|
8034
8268
|
* //=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
|
8035
8269
|
*/
|
|
8036
8270
|
|
|
8037
|
-
var flatten =
|
|
8038
|
-
/*#__PURE__*/
|
|
8039
|
-
_curry1(
|
|
8040
|
-
/*#__PURE__*/
|
|
8041
|
-
_makeFlat(true));
|
|
8271
|
+
var flatten = /*#__PURE__*/_curry1$1( /*#__PURE__*/_makeFlat(true));
|
|
8042
8272
|
|
|
8043
8273
|
/**
|
|
8044
8274
|
* Creates a new object from a list key-value pairs. If a key appears in
|
|
@@ -8057,9 +8287,7 @@
|
|
|
8057
8287
|
* R.fromPairs([['a', 1], ['b', 2], ['c', 3]]); //=> {a: 1, b: 2, c: 3}
|
|
8058
8288
|
*/
|
|
8059
8289
|
|
|
8060
|
-
var fromPairs =
|
|
8061
|
-
/*#__PURE__*/
|
|
8062
|
-
_curry1(function fromPairs(pairs) {
|
|
8290
|
+
var fromPairs$1 = /*#__PURE__*/_curry1$1(function fromPairs(pairs) {
|
|
8063
8291
|
var result = {};
|
|
8064
8292
|
var idx = 0;
|
|
8065
8293
|
|
|
@@ -8112,13 +8340,7 @@
|
|
|
8112
8340
|
* // }
|
|
8113
8341
|
*/
|
|
8114
8342
|
|
|
8115
|
-
var groupBy =
|
|
8116
|
-
/*#__PURE__*/
|
|
8117
|
-
_curry2(
|
|
8118
|
-
/*#__PURE__*/
|
|
8119
|
-
_checkForMethod('groupBy',
|
|
8120
|
-
/*#__PURE__*/
|
|
8121
|
-
reduceBy(function (acc, item) {
|
|
8343
|
+
var groupBy = /*#__PURE__*/_curry2$1( /*#__PURE__*/_checkForMethod('groupBy', /*#__PURE__*/reduceBy(function (acc, item) {
|
|
8122
8344
|
if (acc == null) {
|
|
8123
8345
|
acc = [];
|
|
8124
8346
|
}
|
|
@@ -8150,9 +8372,7 @@
|
|
|
8150
8372
|
* //=> {abc: {id: 'abc', title: 'B'}, xyz: {id: 'xyz', title: 'A'}}
|
|
8151
8373
|
*/
|
|
8152
8374
|
|
|
8153
|
-
var indexBy =
|
|
8154
|
-
/*#__PURE__*/
|
|
8155
|
-
reduceBy(function (acc, elem) {
|
|
8375
|
+
var indexBy = /*#__PURE__*/reduceBy(function (acc, elem) {
|
|
8156
8376
|
return elem;
|
|
8157
8377
|
}, null);
|
|
8158
8378
|
|
|
@@ -8175,9 +8395,7 @@
|
|
|
8175
8395
|
* R.uniqBy(Math.abs, [-1, -5, 2, 10, 1, 2]); //=> [-1, -5, 2, 10]
|
|
8176
8396
|
*/
|
|
8177
8397
|
|
|
8178
|
-
var uniqBy =
|
|
8179
|
-
/*#__PURE__*/
|
|
8180
|
-
_curry2(function uniqBy(fn, list) {
|
|
8398
|
+
var uniqBy = /*#__PURE__*/_curry2$1(function uniqBy(fn, list) {
|
|
8181
8399
|
var set = new _Set();
|
|
8182
8400
|
var result = [];
|
|
8183
8401
|
var idx = 0;
|
|
@@ -8215,9 +8433,61 @@
|
|
|
8215
8433
|
* R.uniq([[42], [42]]); //=> [[42]]
|
|
8216
8434
|
*/
|
|
8217
8435
|
|
|
8218
|
-
var uniq =
|
|
8219
|
-
|
|
8220
|
-
|
|
8436
|
+
var uniq = /*#__PURE__*/uniqBy(identity);
|
|
8437
|
+
|
|
8438
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
8439
|
+
var $assign = Object.assign;
|
|
8440
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
8441
|
+
var defineProperty = Object.defineProperty;
|
|
8442
|
+
var concat = functionUncurryThis([].concat);
|
|
8443
|
+
|
|
8444
|
+
// `Object.assign` method
|
|
8445
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
8446
|
+
var objectAssign = !$assign || fails(function () {
|
|
8447
|
+
// should have correct order of operations (Edge bug)
|
|
8448
|
+
if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
8449
|
+
enumerable: true,
|
|
8450
|
+
get: function () {
|
|
8451
|
+
defineProperty(this, 'b', {
|
|
8452
|
+
value: 3,
|
|
8453
|
+
enumerable: false
|
|
8454
|
+
});
|
|
8455
|
+
}
|
|
8456
|
+
}), { b: 2 })).b !== 1) return true;
|
|
8457
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
8458
|
+
var A = {};
|
|
8459
|
+
var B = {};
|
|
8460
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
8461
|
+
var symbol = Symbol();
|
|
8462
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
8463
|
+
A[symbol] = 7;
|
|
8464
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
8465
|
+
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
8466
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
8467
|
+
var T = toObject(target);
|
|
8468
|
+
var argumentsLength = arguments.length;
|
|
8469
|
+
var index = 1;
|
|
8470
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
8471
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
8472
|
+
while (argumentsLength > index) {
|
|
8473
|
+
var S = indexedObject(arguments[index++]);
|
|
8474
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
8475
|
+
var length = keys.length;
|
|
8476
|
+
var j = 0;
|
|
8477
|
+
var key;
|
|
8478
|
+
while (length > j) {
|
|
8479
|
+
key = keys[j++];
|
|
8480
|
+
if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
8481
|
+
}
|
|
8482
|
+
} return T;
|
|
8483
|
+
} : $assign;
|
|
8484
|
+
|
|
8485
|
+
// `Object.assign` method
|
|
8486
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
8487
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
8488
|
+
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
|
8489
|
+
assign: objectAssign
|
|
8490
|
+
});
|
|
8221
8491
|
|
|
8222
8492
|
function _objectAssign(target) {
|
|
8223
8493
|
if (target == null) {
|
|
@@ -8233,7 +8503,7 @@
|
|
|
8233
8503
|
|
|
8234
8504
|
if (source != null) {
|
|
8235
8505
|
for (var nextKey in source) {
|
|
8236
|
-
if (_has(nextKey, source)) {
|
|
8506
|
+
if (_has$1(nextKey, source)) {
|
|
8237
8507
|
output[nextKey] = source[nextKey];
|
|
8238
8508
|
}
|
|
8239
8509
|
}
|
|
@@ -8272,9 +8542,7 @@
|
|
|
8272
8542
|
* R.reduce(R.maxBy(square), 0, []); //=> 0
|
|
8273
8543
|
*/
|
|
8274
8544
|
|
|
8275
|
-
var maxBy =
|
|
8276
|
-
/*#__PURE__*/
|
|
8277
|
-
_curry3(function maxBy(f, a, b) {
|
|
8545
|
+
var maxBy = /*#__PURE__*/_curry3(function maxBy(f, a, b) {
|
|
8278
8546
|
return f(b) > f(a) ? b : a;
|
|
8279
8547
|
});
|
|
8280
8548
|
|
|
@@ -8296,9 +8564,7 @@
|
|
|
8296
8564
|
* @symb R.mergeAll([{ x: 1 }, { y: 2 }, { z: 3 }]) = { x: 1, y: 2, z: 3 }
|
|
8297
8565
|
*/
|
|
8298
8566
|
|
|
8299
|
-
var mergeAll =
|
|
8300
|
-
/*#__PURE__*/
|
|
8301
|
-
_curry1(function mergeAll(list) {
|
|
8567
|
+
var mergeAll = /*#__PURE__*/_curry1$1(function mergeAll(list) {
|
|
8302
8568
|
return _objectAssign$1.apply(null, [{}].concat(list));
|
|
8303
8569
|
});
|
|
8304
8570
|
|
|
@@ -8328,20 +8594,18 @@
|
|
|
8328
8594
|
* @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }
|
|
8329
8595
|
*/
|
|
8330
8596
|
|
|
8331
|
-
var mergeWithKey =
|
|
8332
|
-
/*#__PURE__*/
|
|
8333
|
-
_curry3(function mergeWithKey(fn, l, r) {
|
|
8597
|
+
var mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {
|
|
8334
8598
|
var result = {};
|
|
8335
8599
|
var k;
|
|
8336
8600
|
|
|
8337
8601
|
for (k in l) {
|
|
8338
|
-
if (_has(k, l)) {
|
|
8339
|
-
result[k] = _has(k, r) ? fn(k, l[k], r[k]) : l[k];
|
|
8602
|
+
if (_has$1(k, l)) {
|
|
8603
|
+
result[k] = _has$1(k, r) ? fn(k, l[k], r[k]) : l[k];
|
|
8340
8604
|
}
|
|
8341
8605
|
}
|
|
8342
8606
|
|
|
8343
8607
|
for (k in r) {
|
|
8344
|
-
if (_has(k, r) && !_has(k, result)) {
|
|
8608
|
+
if (_has$1(k, r) && !_has$1(k, result)) {
|
|
8345
8609
|
result[k] = r[k];
|
|
8346
8610
|
}
|
|
8347
8611
|
}
|
|
@@ -8378,9 +8642,7 @@
|
|
|
8378
8642
|
* //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}
|
|
8379
8643
|
*/
|
|
8380
8644
|
|
|
8381
|
-
var mergeDeepWithKey =
|
|
8382
|
-
/*#__PURE__*/
|
|
8383
|
-
_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
8645
|
+
var mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
8384
8646
|
return mergeWithKey(function (k, lVal, rVal) {
|
|
8385
8647
|
if (_isObject(lVal) && _isObject(rVal)) {
|
|
8386
8648
|
return mergeDeepWithKey(fn, lVal, rVal);
|
|
@@ -8412,9 +8674,7 @@
|
|
|
8412
8674
|
* //=> { name: 'fred', age: 10, contact: { email: 'moo@example.com' }}
|
|
8413
8675
|
*/
|
|
8414
8676
|
|
|
8415
|
-
var mergeDeepLeft =
|
|
8416
|
-
/*#__PURE__*/
|
|
8417
|
-
_curry2(function mergeDeepLeft(lObj, rObj) {
|
|
8677
|
+
var mergeDeepLeft = /*#__PURE__*/_curry2$1(function mergeDeepLeft(lObj, rObj) {
|
|
8418
8678
|
return mergeDeepWithKey(function (k, lVal, rVal) {
|
|
8419
8679
|
return lVal;
|
|
8420
8680
|
}, lObj, rObj);
|
|
@@ -8445,45 +8705,10 @@
|
|
|
8445
8705
|
* R.reduce(R.minBy(square), Infinity, []); //=> Infinity
|
|
8446
8706
|
*/
|
|
8447
8707
|
|
|
8448
|
-
var minBy =
|
|
8449
|
-
/*#__PURE__*/
|
|
8450
|
-
_curry3(function minBy(f, a, b) {
|
|
8708
|
+
var minBy = /*#__PURE__*/_curry3(function minBy(f, a, b) {
|
|
8451
8709
|
return f(b) < f(a) ? b : a;
|
|
8452
8710
|
});
|
|
8453
8711
|
|
|
8454
|
-
/**
|
|
8455
|
-
* Converts an object into an array of key, value arrays. Only the object's
|
|
8456
|
-
* own properties are used.
|
|
8457
|
-
* Note that the order of the output array is not guaranteed to be consistent
|
|
8458
|
-
* across different JS platforms.
|
|
8459
|
-
*
|
|
8460
|
-
* @func
|
|
8461
|
-
* @memberOf R
|
|
8462
|
-
* @since v0.4.0
|
|
8463
|
-
* @category Object
|
|
8464
|
-
* @sig {String: *} -> [[String,*]]
|
|
8465
|
-
* @param {Object} obj The object to extract from
|
|
8466
|
-
* @return {Array} An array of key, value arrays from the object's own properties.
|
|
8467
|
-
* @see R.fromPairs
|
|
8468
|
-
* @example
|
|
8469
|
-
*
|
|
8470
|
-
* R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
|
|
8471
|
-
*/
|
|
8472
|
-
|
|
8473
|
-
var toPairs =
|
|
8474
|
-
/*#__PURE__*/
|
|
8475
|
-
_curry1(function toPairs(obj) {
|
|
8476
|
-
var pairs = [];
|
|
8477
|
-
|
|
8478
|
-
for (var prop in obj) {
|
|
8479
|
-
if (_has(prop, obj)) {
|
|
8480
|
-
pairs[pairs.length] = [prop, obj[prop]];
|
|
8481
|
-
}
|
|
8482
|
-
}
|
|
8483
|
-
|
|
8484
|
-
return pairs;
|
|
8485
|
-
});
|
|
8486
|
-
|
|
8487
8712
|
createCommonjsModule(function (module, exports) {
|
|
8488
8713
|
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
8489
8714
|
var __self__ = (function () {
|
|
@@ -9418,7 +9643,7 @@
|
|
|
9418
9643
|
function areQueriesEqual() {
|
|
9419
9644
|
var query1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9420
9645
|
var query2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9421
|
-
return equals(Object.entries(query1 && query1.order || {}), Object.entries(query2 && query2.order || {})) && equals(query1, query2);
|
|
9646
|
+
return equals$1(Object.entries(query1 && query1.order || {}), Object.entries(query2 && query2.order || {})) && equals$1(query1, query2);
|
|
9422
9647
|
}
|
|
9423
9648
|
|
|
9424
9649
|
function defaultOrder(query) {
|
|
@@ -9441,7 +9666,7 @@
|
|
|
9441
9666
|
var oldQuery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9442
9667
|
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
9443
9668
|
|
|
9444
|
-
var _clone = clone(newState),
|
|
9669
|
+
var _clone = clone$1(newState),
|
|
9445
9670
|
query = _clone.query,
|
|
9446
9671
|
props = _objectWithoutProperties(_clone, _excluded);
|
|
9447
9672
|
|
|
@@ -10031,7 +10256,7 @@
|
|
|
10031
10256
|
return row[measure] || 0;
|
|
10032
10257
|
};
|
|
10033
10258
|
|
|
10034
|
-
if (pivotConfig.fillMissingDates && pivotConfig.x.length === 1 && equals(pivotConfig.x, (query.timeDimensions || []).filter(function (td) {
|
|
10259
|
+
if (pivotConfig.fillMissingDates && pivotConfig.x.length === 1 && equals$1(pivotConfig.x, (query.timeDimensions || []).filter(function (td) {
|
|
10035
10260
|
return Boolean(td.granularity);
|
|
10036
10261
|
}).map(function (td) {
|
|
10037
10262
|
return ResultSet.timeDimensionMember(td);
|
|
@@ -10198,7 +10423,7 @@
|
|
|
10198
10423
|
return this.pivot(normalizedPivotConfig).map(function (_ref32) {
|
|
10199
10424
|
var xValues = _ref32.xValues,
|
|
10200
10425
|
yValuesArray = _ref32.yValuesArray;
|
|
10201
|
-
return fromPairs(normalizedPivotConfig.x.map(function (key, index) {
|
|
10426
|
+
return fromPairs$1(normalizedPivotConfig.x.map(function (key, index) {
|
|
10202
10427
|
return [key, xValues[index]];
|
|
10203
10428
|
}).concat(isMeasuresPresent ? yValuesArray.map(function (_ref33) {
|
|
10204
10429
|
var _ref34 = _slicedToArray(_ref33, 2),
|
|
@@ -10424,7 +10649,7 @@
|
|
|
10424
10649
|
return Boolean(td.granularity);
|
|
10425
10650
|
});
|
|
10426
10651
|
this.backwardCompatibleData[resultIndex] = data.map(function (row) {
|
|
10427
|
-
return _objectSpread$2(_objectSpread$2({}, row), fromPairs(Object.keys(row).filter(function (field) {
|
|
10652
|
+
return _objectSpread$2(_objectSpread$2({}, row), fromPairs$1(Object.keys(row).filter(function (field) {
|
|
10428
10653
|
return timeDimensions.find(function (d) {
|
|
10429
10654
|
return d.dimension === field;
|
|
10430
10655
|
}) && !row[ResultSet.timeDimensionMember(timeDimensions.find(function (d) {
|
|
@@ -10459,7 +10684,7 @@
|
|
|
10459
10684
|
key: "serialize",
|
|
10460
10685
|
value: function serialize() {
|
|
10461
10686
|
return {
|
|
10462
|
-
loadResponse: clone(this.loadResponse)
|
|
10687
|
+
loadResponse: clone$1(this.loadResponse)
|
|
10463
10688
|
};
|
|
10464
10689
|
}
|
|
10465
10690
|
}], [{
|
|
@@ -10561,105 +10786,679 @@
|
|
|
10561
10786
|
return ResultSet;
|
|
10562
10787
|
}();
|
|
10563
10788
|
|
|
10564
|
-
function
|
|
10789
|
+
function _isPlaceholder(a) {
|
|
10790
|
+
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
|
10791
|
+
}
|
|
10565
10792
|
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
},
|
|
10575
|
-
// TODO: validate with current react implementation
|
|
10576
|
-
queries: {
|
|
10577
|
-
type: Object
|
|
10578
|
-
},
|
|
10579
|
-
loadSql: {
|
|
10580
|
-
required: false
|
|
10581
|
-
},
|
|
10582
|
-
cubejsApi: {
|
|
10583
|
-
type: Object,
|
|
10584
|
-
required: true
|
|
10585
|
-
},
|
|
10586
|
-
builderProps: {
|
|
10587
|
-
type: Object,
|
|
10588
|
-
required: false,
|
|
10589
|
-
"default": function _default() {
|
|
10590
|
-
return {};
|
|
10591
|
-
}
|
|
10592
|
-
},
|
|
10593
|
-
chartType: {
|
|
10594
|
-
type: String,
|
|
10595
|
-
required: false
|
|
10596
|
-
}
|
|
10597
|
-
},
|
|
10598
|
-
data: function data() {
|
|
10599
|
-
return {
|
|
10600
|
-
mutexObj: {},
|
|
10601
|
-
error: undefined,
|
|
10602
|
-
resultSet: undefined,
|
|
10603
|
-
loading: false,
|
|
10604
|
-
sqlQuery: undefined
|
|
10605
|
-
};
|
|
10606
|
-
},
|
|
10607
|
-
mounted: function mounted() {
|
|
10608
|
-
var _this = this;
|
|
10793
|
+
/**
|
|
10794
|
+
* Optimized internal one-arity curry function.
|
|
10795
|
+
*
|
|
10796
|
+
* @private
|
|
10797
|
+
* @category Function
|
|
10798
|
+
* @param {Function} fn The function to curry.
|
|
10799
|
+
* @return {Function} The curried function.
|
|
10800
|
+
*/
|
|
10609
10801
|
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10802
|
+
function _curry1(fn) {
|
|
10803
|
+
return function f1(a) {
|
|
10804
|
+
if (arguments.length === 0 || _isPlaceholder(a)) {
|
|
10805
|
+
return f1;
|
|
10806
|
+
} else {
|
|
10807
|
+
return fn.apply(this, arguments);
|
|
10808
|
+
}
|
|
10809
|
+
};
|
|
10810
|
+
}
|
|
10617
10811
|
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10812
|
+
/**
|
|
10813
|
+
* Optimized internal two-arity curry function.
|
|
10814
|
+
*
|
|
10815
|
+
* @private
|
|
10816
|
+
* @category Function
|
|
10817
|
+
* @param {Function} fn The function to curry.
|
|
10818
|
+
* @return {Function} The curried function.
|
|
10819
|
+
*/
|
|
10622
10820
|
|
|
10623
|
-
|
|
10624
|
-
|
|
10821
|
+
function _curry2(fn) {
|
|
10822
|
+
return function f2(a, b) {
|
|
10823
|
+
switch (arguments.length) {
|
|
10824
|
+
case 0:
|
|
10825
|
+
return f2;
|
|
10625
10826
|
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10827
|
+
case 1:
|
|
10828
|
+
return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
|
|
10829
|
+
return fn(a, _b);
|
|
10830
|
+
});
|
|
10629
10831
|
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10832
|
+
default:
|
|
10833
|
+
return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
|
|
10834
|
+
return fn(_a, b);
|
|
10835
|
+
}) : _isPlaceholder(b) ? _curry1(function (_b) {
|
|
10836
|
+
return fn(a, _b);
|
|
10837
|
+
}) : fn(a, b);
|
|
10838
|
+
}
|
|
10839
|
+
};
|
|
10840
|
+
}
|
|
10635
10841
|
|
|
10636
|
-
|
|
10637
|
-
|
|
10842
|
+
function _has(prop, obj) {
|
|
10843
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
10844
|
+
}
|
|
10638
10845
|
|
|
10639
|
-
|
|
10640
|
-
case "end":
|
|
10641
|
-
return _context.stop();
|
|
10642
|
-
}
|
|
10643
|
-
}
|
|
10644
|
-
}, _callee);
|
|
10645
|
-
}))();
|
|
10646
|
-
},
|
|
10647
|
-
render: function render() {
|
|
10648
|
-
var $slots = this.$slots,
|
|
10649
|
-
resultSet = this.resultSet,
|
|
10650
|
-
error = this.error,
|
|
10651
|
-
loading = this.loading,
|
|
10652
|
-
sqlQuery = this.sqlQuery;
|
|
10653
|
-
var empty = vue.h('div', {});
|
|
10654
|
-
var slot = this.$slots.empty ? this.$slots.empty() : empty;
|
|
10655
|
-
var controls = vue.h('div', {});
|
|
10656
|
-
var onlyDefault = !('empty' in this.$slots) && !('error' in this.$slots);
|
|
10846
|
+
var toString = Object.prototype.toString;
|
|
10657
10847
|
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10848
|
+
var _isArguments =
|
|
10849
|
+
/*#__PURE__*/
|
|
10850
|
+
function () {
|
|
10851
|
+
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
10852
|
+
return toString.call(x) === '[object Arguments]';
|
|
10853
|
+
} : function _isArguments(x) {
|
|
10854
|
+
return _has('callee', x);
|
|
10855
|
+
};
|
|
10856
|
+
}();
|
|
10661
10857
|
|
|
10662
|
-
|
|
10858
|
+
var hasEnumBug = !
|
|
10859
|
+
/*#__PURE__*/
|
|
10860
|
+
{
|
|
10861
|
+
toString: null
|
|
10862
|
+
}.propertyIsEnumerable('toString');
|
|
10863
|
+
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
10864
|
+
|
|
10865
|
+
var hasArgsEnumBug =
|
|
10866
|
+
/*#__PURE__*/
|
|
10867
|
+
function () {
|
|
10868
|
+
|
|
10869
|
+
return arguments.propertyIsEnumerable('length');
|
|
10870
|
+
}();
|
|
10871
|
+
|
|
10872
|
+
var contains = function contains(list, item) {
|
|
10873
|
+
var idx = 0;
|
|
10874
|
+
|
|
10875
|
+
while (idx < list.length) {
|
|
10876
|
+
if (list[idx] === item) {
|
|
10877
|
+
return true;
|
|
10878
|
+
}
|
|
10879
|
+
|
|
10880
|
+
idx += 1;
|
|
10881
|
+
}
|
|
10882
|
+
|
|
10883
|
+
return false;
|
|
10884
|
+
};
|
|
10885
|
+
/**
|
|
10886
|
+
* Returns a list containing the names of all the enumerable own properties of
|
|
10887
|
+
* the supplied object.
|
|
10888
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
10889
|
+
* across different JS platforms.
|
|
10890
|
+
*
|
|
10891
|
+
* @func
|
|
10892
|
+
* @memberOf R
|
|
10893
|
+
* @since v0.1.0
|
|
10894
|
+
* @category Object
|
|
10895
|
+
* @sig {k: v} -> [k]
|
|
10896
|
+
* @param {Object} obj The object to extract properties from
|
|
10897
|
+
* @return {Array} An array of the object's own properties.
|
|
10898
|
+
* @see R.keysIn, R.values
|
|
10899
|
+
* @example
|
|
10900
|
+
*
|
|
10901
|
+
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
10902
|
+
*/
|
|
10903
|
+
|
|
10904
|
+
|
|
10905
|
+
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
10906
|
+
/*#__PURE__*/
|
|
10907
|
+
_curry1(function keys(obj) {
|
|
10908
|
+
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
10909
|
+
}) :
|
|
10910
|
+
/*#__PURE__*/
|
|
10911
|
+
_curry1(function keys(obj) {
|
|
10912
|
+
if (Object(obj) !== obj) {
|
|
10913
|
+
return [];
|
|
10914
|
+
}
|
|
10915
|
+
|
|
10916
|
+
var prop, nIdx;
|
|
10917
|
+
var ks = [];
|
|
10918
|
+
|
|
10919
|
+
var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
|
|
10920
|
+
|
|
10921
|
+
for (prop in obj) {
|
|
10922
|
+
if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
10923
|
+
ks[ks.length] = prop;
|
|
10924
|
+
}
|
|
10925
|
+
}
|
|
10926
|
+
|
|
10927
|
+
if (hasEnumBug) {
|
|
10928
|
+
nIdx = nonEnumerableProps.length - 1;
|
|
10929
|
+
|
|
10930
|
+
while (nIdx >= 0) {
|
|
10931
|
+
prop = nonEnumerableProps[nIdx];
|
|
10932
|
+
|
|
10933
|
+
if (_has(prop, obj) && !contains(ks, prop)) {
|
|
10934
|
+
ks[ks.length] = prop;
|
|
10935
|
+
}
|
|
10936
|
+
|
|
10937
|
+
nIdx -= 1;
|
|
10938
|
+
}
|
|
10939
|
+
}
|
|
10940
|
+
|
|
10941
|
+
return ks;
|
|
10942
|
+
});
|
|
10943
|
+
|
|
10944
|
+
function _cloneRegExp(pattern) {
|
|
10945
|
+
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
|
|
10946
|
+
}
|
|
10947
|
+
|
|
10948
|
+
/**
|
|
10949
|
+
* Gives a single-word string description of the (native) type of a value,
|
|
10950
|
+
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
|
10951
|
+
* attempt to distinguish user Object types any further, reporting them all as
|
|
10952
|
+
* 'Object'.
|
|
10953
|
+
*
|
|
10954
|
+
* @func
|
|
10955
|
+
* @memberOf R
|
|
10956
|
+
* @since v0.8.0
|
|
10957
|
+
* @category Type
|
|
10958
|
+
* @sig (* -> {*}) -> String
|
|
10959
|
+
* @param {*} val The value to test
|
|
10960
|
+
* @return {String}
|
|
10961
|
+
* @example
|
|
10962
|
+
*
|
|
10963
|
+
* R.type({}); //=> "Object"
|
|
10964
|
+
* R.type(1); //=> "Number"
|
|
10965
|
+
* R.type(false); //=> "Boolean"
|
|
10966
|
+
* R.type('s'); //=> "String"
|
|
10967
|
+
* R.type(null); //=> "Null"
|
|
10968
|
+
* R.type([]); //=> "Array"
|
|
10969
|
+
* R.type(/[A-z]/); //=> "RegExp"
|
|
10970
|
+
* R.type(() => {}); //=> "Function"
|
|
10971
|
+
* R.type(undefined); //=> "Undefined"
|
|
10972
|
+
*/
|
|
10973
|
+
|
|
10974
|
+
var type =
|
|
10975
|
+
/*#__PURE__*/
|
|
10976
|
+
_curry1(function type(val) {
|
|
10977
|
+
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
10978
|
+
});
|
|
10979
|
+
|
|
10980
|
+
/**
|
|
10981
|
+
* Copies an object.
|
|
10982
|
+
*
|
|
10983
|
+
* @private
|
|
10984
|
+
* @param {*} value The value to be copied
|
|
10985
|
+
* @param {Array} refFrom Array containing the source references
|
|
10986
|
+
* @param {Array} refTo Array containing the copied source references
|
|
10987
|
+
* @param {Boolean} deep Whether or not to perform deep cloning.
|
|
10988
|
+
* @return {*} The copied value.
|
|
10989
|
+
*/
|
|
10990
|
+
|
|
10991
|
+
function _clone(value, refFrom, refTo, deep) {
|
|
10992
|
+
var copy = function copy(copiedValue) {
|
|
10993
|
+
var len = refFrom.length;
|
|
10994
|
+
var idx = 0;
|
|
10995
|
+
|
|
10996
|
+
while (idx < len) {
|
|
10997
|
+
if (value === refFrom[idx]) {
|
|
10998
|
+
return refTo[idx];
|
|
10999
|
+
}
|
|
11000
|
+
|
|
11001
|
+
idx += 1;
|
|
11002
|
+
}
|
|
11003
|
+
|
|
11004
|
+
refFrom[idx + 1] = value;
|
|
11005
|
+
refTo[idx + 1] = copiedValue;
|
|
11006
|
+
|
|
11007
|
+
for (var key in value) {
|
|
11008
|
+
copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];
|
|
11009
|
+
}
|
|
11010
|
+
|
|
11011
|
+
return copiedValue;
|
|
11012
|
+
};
|
|
11013
|
+
|
|
11014
|
+
switch (type(value)) {
|
|
11015
|
+
case 'Object':
|
|
11016
|
+
return copy({});
|
|
11017
|
+
|
|
11018
|
+
case 'Array':
|
|
11019
|
+
return copy([]);
|
|
11020
|
+
|
|
11021
|
+
case 'Date':
|
|
11022
|
+
return new Date(value.valueOf());
|
|
11023
|
+
|
|
11024
|
+
case 'RegExp':
|
|
11025
|
+
return _cloneRegExp(value);
|
|
11026
|
+
|
|
11027
|
+
default:
|
|
11028
|
+
return value;
|
|
11029
|
+
}
|
|
11030
|
+
}
|
|
11031
|
+
|
|
11032
|
+
/**
|
|
11033
|
+
* Creates a deep copy of the value which may contain (nested) `Array`s and
|
|
11034
|
+
* `Object`s, `Number`s, `String`s, `Boolean`s and `Date`s. `Function`s are
|
|
11035
|
+
* assigned by reference rather than copied
|
|
11036
|
+
*
|
|
11037
|
+
* Dispatches to a `clone` method if present.
|
|
11038
|
+
*
|
|
11039
|
+
* @func
|
|
11040
|
+
* @memberOf R
|
|
11041
|
+
* @since v0.1.0
|
|
11042
|
+
* @category Object
|
|
11043
|
+
* @sig {*} -> {*}
|
|
11044
|
+
* @param {*} value The object or array to clone
|
|
11045
|
+
* @return {*} A deeply cloned copy of `val`
|
|
11046
|
+
* @example
|
|
11047
|
+
*
|
|
11048
|
+
* const objects = [{}, {}, {}];
|
|
11049
|
+
* const objectsClone = R.clone(objects);
|
|
11050
|
+
* objects === objectsClone; //=> false
|
|
11051
|
+
* objects[0] === objectsClone[0]; //=> false
|
|
11052
|
+
*/
|
|
11053
|
+
|
|
11054
|
+
var clone =
|
|
11055
|
+
/*#__PURE__*/
|
|
11056
|
+
_curry1(function clone(value) {
|
|
11057
|
+
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
|
|
11058
|
+
});
|
|
11059
|
+
|
|
11060
|
+
function _arrayFromIterator(iter) {
|
|
11061
|
+
var list = [];
|
|
11062
|
+
var next;
|
|
11063
|
+
|
|
11064
|
+
while (!(next = iter.next()).done) {
|
|
11065
|
+
list.push(next.value);
|
|
11066
|
+
}
|
|
11067
|
+
|
|
11068
|
+
return list;
|
|
11069
|
+
}
|
|
11070
|
+
|
|
11071
|
+
function _includesWith(pred, x, list) {
|
|
11072
|
+
var idx = 0;
|
|
11073
|
+
var len = list.length;
|
|
11074
|
+
|
|
11075
|
+
while (idx < len) {
|
|
11076
|
+
if (pred(x, list[idx])) {
|
|
11077
|
+
return true;
|
|
11078
|
+
}
|
|
11079
|
+
|
|
11080
|
+
idx += 1;
|
|
11081
|
+
}
|
|
11082
|
+
|
|
11083
|
+
return false;
|
|
11084
|
+
}
|
|
11085
|
+
|
|
11086
|
+
function _functionName(f) {
|
|
11087
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
11088
|
+
var match = String(f).match(/^function (\w*)/);
|
|
11089
|
+
return match == null ? '' : match[1];
|
|
11090
|
+
}
|
|
11091
|
+
|
|
11092
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
11093
|
+
function _objectIs(a, b) {
|
|
11094
|
+
// SameValue algorithm
|
|
11095
|
+
if (a === b) {
|
|
11096
|
+
// Steps 1-5, 7-10
|
|
11097
|
+
// Steps 6.b-6.e: +0 != -0
|
|
11098
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
11099
|
+
} else {
|
|
11100
|
+
// Step 6.a: NaN == NaN
|
|
11101
|
+
return a !== a && b !== b;
|
|
11102
|
+
}
|
|
11103
|
+
}
|
|
11104
|
+
|
|
11105
|
+
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
11106
|
+
|
|
11107
|
+
/**
|
|
11108
|
+
* private _uniqContentEquals function.
|
|
11109
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
11110
|
+
* - iterators lengths are the same
|
|
11111
|
+
* - iterators values are unique
|
|
11112
|
+
*
|
|
11113
|
+
* false-positive result will be returned for comparision of, e.g.
|
|
11114
|
+
* - [1,2,3] and [1,2,3,4]
|
|
11115
|
+
* - [1,1,1] and [1,2,3]
|
|
11116
|
+
* */
|
|
11117
|
+
|
|
11118
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
11119
|
+
var a = _arrayFromIterator(aIterator);
|
|
11120
|
+
|
|
11121
|
+
var b = _arrayFromIterator(bIterator);
|
|
11122
|
+
|
|
11123
|
+
function eq(_a, _b) {
|
|
11124
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
11125
|
+
} // if *a* array contains any element that is not included in *b*
|
|
11126
|
+
|
|
11127
|
+
|
|
11128
|
+
return !_includesWith(function (b, aItem) {
|
|
11129
|
+
return !_includesWith(eq, aItem, b);
|
|
11130
|
+
}, b, a);
|
|
11131
|
+
}
|
|
11132
|
+
|
|
11133
|
+
function _equals(a, b, stackA, stackB) {
|
|
11134
|
+
if (_objectIs$1(a, b)) {
|
|
11135
|
+
return true;
|
|
11136
|
+
}
|
|
11137
|
+
|
|
11138
|
+
var typeA = type(a);
|
|
11139
|
+
|
|
11140
|
+
if (typeA !== type(b)) {
|
|
11141
|
+
return false;
|
|
11142
|
+
}
|
|
11143
|
+
|
|
11144
|
+
if (a == null || b == null) {
|
|
11145
|
+
return false;
|
|
11146
|
+
}
|
|
11147
|
+
|
|
11148
|
+
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
|
|
11149
|
+
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
|
|
11150
|
+
}
|
|
11151
|
+
|
|
11152
|
+
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
|
|
11153
|
+
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
|
|
11154
|
+
}
|
|
11155
|
+
|
|
11156
|
+
switch (typeA) {
|
|
11157
|
+
case 'Arguments':
|
|
11158
|
+
case 'Array':
|
|
11159
|
+
case 'Object':
|
|
11160
|
+
if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
|
|
11161
|
+
return a === b;
|
|
11162
|
+
}
|
|
11163
|
+
|
|
11164
|
+
break;
|
|
11165
|
+
|
|
11166
|
+
case 'Boolean':
|
|
11167
|
+
case 'Number':
|
|
11168
|
+
case 'String':
|
|
11169
|
+
if (!(typeof a === typeof b && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
11170
|
+
return false;
|
|
11171
|
+
}
|
|
11172
|
+
|
|
11173
|
+
break;
|
|
11174
|
+
|
|
11175
|
+
case 'Date':
|
|
11176
|
+
if (!_objectIs$1(a.valueOf(), b.valueOf())) {
|
|
11177
|
+
return false;
|
|
11178
|
+
}
|
|
11179
|
+
|
|
11180
|
+
break;
|
|
11181
|
+
|
|
11182
|
+
case 'Error':
|
|
11183
|
+
return a.name === b.name && a.message === b.message;
|
|
11184
|
+
|
|
11185
|
+
case 'RegExp':
|
|
11186
|
+
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
|
|
11187
|
+
return false;
|
|
11188
|
+
}
|
|
11189
|
+
|
|
11190
|
+
break;
|
|
11191
|
+
}
|
|
11192
|
+
|
|
11193
|
+
var idx = stackA.length - 1;
|
|
11194
|
+
|
|
11195
|
+
while (idx >= 0) {
|
|
11196
|
+
if (stackA[idx] === a) {
|
|
11197
|
+
return stackB[idx] === b;
|
|
11198
|
+
}
|
|
11199
|
+
|
|
11200
|
+
idx -= 1;
|
|
11201
|
+
}
|
|
11202
|
+
|
|
11203
|
+
switch (typeA) {
|
|
11204
|
+
case 'Map':
|
|
11205
|
+
if (a.size !== b.size) {
|
|
11206
|
+
return false;
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
11210
|
+
|
|
11211
|
+
case 'Set':
|
|
11212
|
+
if (a.size !== b.size) {
|
|
11213
|
+
return false;
|
|
11214
|
+
}
|
|
11215
|
+
|
|
11216
|
+
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
11217
|
+
|
|
11218
|
+
case 'Arguments':
|
|
11219
|
+
case 'Array':
|
|
11220
|
+
case 'Object':
|
|
11221
|
+
case 'Boolean':
|
|
11222
|
+
case 'Number':
|
|
11223
|
+
case 'String':
|
|
11224
|
+
case 'Date':
|
|
11225
|
+
case 'Error':
|
|
11226
|
+
case 'RegExp':
|
|
11227
|
+
case 'Int8Array':
|
|
11228
|
+
case 'Uint8Array':
|
|
11229
|
+
case 'Uint8ClampedArray':
|
|
11230
|
+
case 'Int16Array':
|
|
11231
|
+
case 'Uint16Array':
|
|
11232
|
+
case 'Int32Array':
|
|
11233
|
+
case 'Uint32Array':
|
|
11234
|
+
case 'Float32Array':
|
|
11235
|
+
case 'Float64Array':
|
|
11236
|
+
case 'ArrayBuffer':
|
|
11237
|
+
break;
|
|
11238
|
+
|
|
11239
|
+
default:
|
|
11240
|
+
// Values of other types are only equal if identical.
|
|
11241
|
+
return false;
|
|
11242
|
+
}
|
|
11243
|
+
|
|
11244
|
+
var keysA = keys(a);
|
|
11245
|
+
|
|
11246
|
+
if (keysA.length !== keys(b).length) {
|
|
11247
|
+
return false;
|
|
11248
|
+
}
|
|
11249
|
+
|
|
11250
|
+
var extendedStackA = stackA.concat([a]);
|
|
11251
|
+
var extendedStackB = stackB.concat([b]);
|
|
11252
|
+
idx = keysA.length - 1;
|
|
11253
|
+
|
|
11254
|
+
while (idx >= 0) {
|
|
11255
|
+
var key = keysA[idx];
|
|
11256
|
+
|
|
11257
|
+
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
11258
|
+
return false;
|
|
11259
|
+
}
|
|
11260
|
+
|
|
11261
|
+
idx -= 1;
|
|
11262
|
+
}
|
|
11263
|
+
|
|
11264
|
+
return true;
|
|
11265
|
+
}
|
|
11266
|
+
|
|
11267
|
+
/**
|
|
11268
|
+
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
11269
|
+
* cyclical data structures.
|
|
11270
|
+
*
|
|
11271
|
+
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
11272
|
+
* present.
|
|
11273
|
+
*
|
|
11274
|
+
* @func
|
|
11275
|
+
* @memberOf R
|
|
11276
|
+
* @since v0.15.0
|
|
11277
|
+
* @category Relation
|
|
11278
|
+
* @sig a -> b -> Boolean
|
|
11279
|
+
* @param {*} a
|
|
11280
|
+
* @param {*} b
|
|
11281
|
+
* @return {Boolean}
|
|
11282
|
+
* @example
|
|
11283
|
+
*
|
|
11284
|
+
* R.equals(1, 1); //=> true
|
|
11285
|
+
* R.equals(1, '1'); //=> false
|
|
11286
|
+
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
11287
|
+
*
|
|
11288
|
+
* const a = {}; a.v = a;
|
|
11289
|
+
* const b = {}; b.v = b;
|
|
11290
|
+
* R.equals(a, b); //=> true
|
|
11291
|
+
*/
|
|
11292
|
+
|
|
11293
|
+
var equals =
|
|
11294
|
+
/*#__PURE__*/
|
|
11295
|
+
_curry2(function equals(a, b) {
|
|
11296
|
+
return _equals(a, b, [], []);
|
|
11297
|
+
});
|
|
11298
|
+
|
|
11299
|
+
/**
|
|
11300
|
+
* Creates a new object from a list key-value pairs. If a key appears in
|
|
11301
|
+
* multiple pairs, the rightmost pair is included in the object.
|
|
11302
|
+
*
|
|
11303
|
+
* @func
|
|
11304
|
+
* @memberOf R
|
|
11305
|
+
* @since v0.3.0
|
|
11306
|
+
* @category List
|
|
11307
|
+
* @sig [[k,v]] -> {k: v}
|
|
11308
|
+
* @param {Array} pairs An array of two-element arrays that will be the keys and values of the output object.
|
|
11309
|
+
* @return {Object} The object made by pairing up `keys` and `values`.
|
|
11310
|
+
* @see R.toPairs, R.pair
|
|
11311
|
+
* @example
|
|
11312
|
+
*
|
|
11313
|
+
* R.fromPairs([['a', 1], ['b', 2], ['c', 3]]); //=> {a: 1, b: 2, c: 3}
|
|
11314
|
+
*/
|
|
11315
|
+
|
|
11316
|
+
var fromPairs =
|
|
11317
|
+
/*#__PURE__*/
|
|
11318
|
+
_curry1(function fromPairs(pairs) {
|
|
11319
|
+
var result = {};
|
|
11320
|
+
var idx = 0;
|
|
11321
|
+
|
|
11322
|
+
while (idx < pairs.length) {
|
|
11323
|
+
result[pairs[idx][0]] = pairs[idx][1];
|
|
11324
|
+
idx += 1;
|
|
11325
|
+
}
|
|
11326
|
+
|
|
11327
|
+
return result;
|
|
11328
|
+
});
|
|
11329
|
+
|
|
11330
|
+
/**
|
|
11331
|
+
* Converts an object into an array of key, value arrays. Only the object's
|
|
11332
|
+
* own properties are used.
|
|
11333
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
11334
|
+
* across different JS platforms.
|
|
11335
|
+
*
|
|
11336
|
+
* @func
|
|
11337
|
+
* @memberOf R
|
|
11338
|
+
* @since v0.4.0
|
|
11339
|
+
* @category Object
|
|
11340
|
+
* @sig {String: *} -> [[String,*]]
|
|
11341
|
+
* @param {Object} obj The object to extract from
|
|
11342
|
+
* @return {Array} An array of key, value arrays from the object's own properties.
|
|
11343
|
+
* @see R.fromPairs
|
|
11344
|
+
* @example
|
|
11345
|
+
*
|
|
11346
|
+
* R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
|
|
11347
|
+
*/
|
|
11348
|
+
|
|
11349
|
+
var toPairs =
|
|
11350
|
+
/*#__PURE__*/
|
|
11351
|
+
_curry1(function toPairs(obj) {
|
|
11352
|
+
var pairs = [];
|
|
11353
|
+
|
|
11354
|
+
for (var prop in obj) {
|
|
11355
|
+
if (_has(prop, obj)) {
|
|
11356
|
+
pairs[pairs.length] = [prop, obj[prop]];
|
|
11357
|
+
}
|
|
11358
|
+
}
|
|
11359
|
+
|
|
11360
|
+
return pairs;
|
|
11361
|
+
});
|
|
11362
|
+
|
|
11363
|
+
function ownKeys$1(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; }
|
|
11364
|
+
|
|
11365
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11366
|
+
var QueryRenderer = {
|
|
11367
|
+
props: {
|
|
11368
|
+
query: {
|
|
11369
|
+
type: [Object, Array],
|
|
11370
|
+
"default": function _default() {
|
|
11371
|
+
return {};
|
|
11372
|
+
}
|
|
11373
|
+
},
|
|
11374
|
+
// TODO: validate with current react implementation
|
|
11375
|
+
queries: {
|
|
11376
|
+
type: Object
|
|
11377
|
+
},
|
|
11378
|
+
loadSql: {
|
|
11379
|
+
required: false
|
|
11380
|
+
},
|
|
11381
|
+
cubejsApi: {
|
|
11382
|
+
type: Object,
|
|
11383
|
+
required: true
|
|
11384
|
+
},
|
|
11385
|
+
builderProps: {
|
|
11386
|
+
type: Object,
|
|
11387
|
+
required: false,
|
|
11388
|
+
"default": function _default() {
|
|
11389
|
+
return {};
|
|
11390
|
+
}
|
|
11391
|
+
},
|
|
11392
|
+
chartType: {
|
|
11393
|
+
type: String,
|
|
11394
|
+
required: false
|
|
11395
|
+
}
|
|
11396
|
+
},
|
|
11397
|
+
data: function data() {
|
|
11398
|
+
return {
|
|
11399
|
+
mutexObj: {},
|
|
11400
|
+
error: undefined,
|
|
11401
|
+
resultSet: undefined,
|
|
11402
|
+
loading: false,
|
|
11403
|
+
sqlQuery: undefined
|
|
11404
|
+
};
|
|
11405
|
+
},
|
|
11406
|
+
mounted: function mounted() {
|
|
11407
|
+
var _this = this;
|
|
11408
|
+
|
|
11409
|
+
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
11410
|
+
var query, queries;
|
|
11411
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
11412
|
+
while (1) {
|
|
11413
|
+
switch (_context.prev = _context.next) {
|
|
11414
|
+
case 0:
|
|
11415
|
+
query = _this.query, queries = _this.queries;
|
|
11416
|
+
|
|
11417
|
+
if (!isQueryPresent(query)) {
|
|
11418
|
+
_context.next = 6;
|
|
11419
|
+
break;
|
|
11420
|
+
}
|
|
11421
|
+
|
|
11422
|
+
_context.next = 4;
|
|
11423
|
+
return _this.load();
|
|
11424
|
+
|
|
11425
|
+
case 4:
|
|
11426
|
+
_context.next = 9;
|
|
11427
|
+
break;
|
|
11428
|
+
|
|
11429
|
+
case 6:
|
|
11430
|
+
if (!isQueryPresent(queries)) {
|
|
11431
|
+
_context.next = 9;
|
|
11432
|
+
break;
|
|
11433
|
+
}
|
|
11434
|
+
|
|
11435
|
+
_context.next = 9;
|
|
11436
|
+
return _this.loadQueries(queries);
|
|
11437
|
+
|
|
11438
|
+
case 9:
|
|
11439
|
+
case "end":
|
|
11440
|
+
return _context.stop();
|
|
11441
|
+
}
|
|
11442
|
+
}
|
|
11443
|
+
}, _callee);
|
|
11444
|
+
}))();
|
|
11445
|
+
},
|
|
11446
|
+
render: function render() {
|
|
11447
|
+
var $slots = this.$slots,
|
|
11448
|
+
resultSet = this.resultSet,
|
|
11449
|
+
error = this.error,
|
|
11450
|
+
loading = this.loading,
|
|
11451
|
+
sqlQuery = this.sqlQuery;
|
|
11452
|
+
var empty = vue.h('div', {});
|
|
11453
|
+
var slot = this.$slots.empty ? this.$slots.empty() : empty;
|
|
11454
|
+
var controls = vue.h('div', {});
|
|
11455
|
+
var onlyDefault = !('empty' in this.$slots) && !('error' in this.$slots);
|
|
11456
|
+
|
|
11457
|
+
if ($slots.builder && this.builderProps.measures) {
|
|
11458
|
+
controls = $slots.builder(_objectSpread$1({}, this.builderProps));
|
|
11459
|
+
}
|
|
11460
|
+
|
|
11461
|
+
if (!loading && resultSet && !error || onlyDefault) {
|
|
10663
11462
|
var slotProps = {
|
|
10664
11463
|
resultSet: resultSet,
|
|
10665
11464
|
sqlQuery: sqlQuery,
|
|
@@ -10883,43 +11682,6 @@
|
|
|
10883
11682
|
}
|
|
10884
11683
|
});
|
|
10885
11684
|
|
|
10886
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
|
10887
|
-
|
|
10888
|
-
var SPECIES = wellKnownSymbol('species');
|
|
10889
|
-
var Array$1 = global$1.Array;
|
|
10890
|
-
var max = Math.max;
|
|
10891
|
-
|
|
10892
|
-
// `Array.prototype.slice` method
|
|
10893
|
-
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
10894
|
-
// fallback for not array-like ES3 strings and DOM objects
|
|
10895
|
-
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
10896
|
-
slice: function slice(start, end) {
|
|
10897
|
-
var O = toIndexedObject(this);
|
|
10898
|
-
var length = lengthOfArrayLike(O);
|
|
10899
|
-
var k = toAbsoluteIndex(start, length);
|
|
10900
|
-
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
10901
|
-
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
10902
|
-
var Constructor, result, n;
|
|
10903
|
-
if (isArray(O)) {
|
|
10904
|
-
Constructor = O.constructor;
|
|
10905
|
-
// cross-realm fallback
|
|
10906
|
-
if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
|
|
10907
|
-
Constructor = undefined;
|
|
10908
|
-
} else if (isObject(Constructor)) {
|
|
10909
|
-
Constructor = Constructor[SPECIES];
|
|
10910
|
-
if (Constructor === null) Constructor = undefined;
|
|
10911
|
-
}
|
|
10912
|
-
if (Constructor === Array$1 || Constructor === undefined) {
|
|
10913
|
-
return arraySlice$1(O, k, fin);
|
|
10914
|
-
}
|
|
10915
|
-
}
|
|
10916
|
-
result = new (Constructor === undefined ? Array$1 : Constructor)(max(fin - k, 0));
|
|
10917
|
-
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
10918
|
-
result.length = n;
|
|
10919
|
-
return result;
|
|
10920
|
-
}
|
|
10921
|
-
});
|
|
10922
|
-
|
|
10923
11685
|
var $findIndex = arrayIteration.findIndex;
|
|
10924
11686
|
|
|
10925
11687
|
|