victory-create-container 36.8.6 → 36.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/victory-create-container.js +34 -2037
- package/dist/victory-create-container.min.js +1 -1
- package/package.json +7 -7
|
@@ -1652,40 +1652,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1652
1652
|
module.exports = baseDifference;
|
|
1653
1653
|
|
|
1654
1654
|
|
|
1655
|
-
/***/ }),
|
|
1656
|
-
|
|
1657
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1658
|
-
/*!****************************************************************************************!*\
|
|
1659
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1660
|
-
\****************************************************************************************/
|
|
1661
|
-
/***/ ((module) => {
|
|
1662
|
-
|
|
1663
|
-
/**
|
|
1664
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1665
|
-
* support for iteratee shorthands.
|
|
1666
|
-
*
|
|
1667
|
-
* @private
|
|
1668
|
-
* @param {Array} array The array to inspect.
|
|
1669
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1670
|
-
* @param {number} fromIndex The index to search from.
|
|
1671
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1672
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1673
|
-
*/
|
|
1674
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1675
|
-
var length = array.length,
|
|
1676
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1677
|
-
|
|
1678
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1679
|
-
if (predicate(array[index], index, array)) {
|
|
1680
|
-
return index;
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
return -1;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
module.exports = baseFindIndex;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
1655
|
/***/ }),
|
|
1690
1656
|
|
|
1691
1657
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -3199,41 +3165,6 @@ function createBaseFor(fromRight) {
|
|
|
3199
3165
|
module.exports = createBaseFor;
|
|
3200
3166
|
|
|
3201
3167
|
|
|
3202
|
-
/***/ }),
|
|
3203
|
-
|
|
3204
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
3205
|
-
/*!*************************************************************************************!*\
|
|
3206
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
3207
|
-
\*************************************************************************************/
|
|
3208
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3209
|
-
|
|
3210
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
3211
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
3212
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
3213
|
-
|
|
3214
|
-
/**
|
|
3215
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
3216
|
-
*
|
|
3217
|
-
* @private
|
|
3218
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
3219
|
-
* @returns {Function} Returns the new find function.
|
|
3220
|
-
*/
|
|
3221
|
-
function createFind(findIndexFunc) {
|
|
3222
|
-
return function(collection, predicate, fromIndex) {
|
|
3223
|
-
var iterable = Object(collection);
|
|
3224
|
-
if (!isArrayLike(collection)) {
|
|
3225
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
3226
|
-
collection = keys(collection);
|
|
3227
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
3228
|
-
}
|
|
3229
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
3230
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
3231
|
-
};
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
|
-
module.exports = createFind;
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
3168
|
/***/ }),
|
|
3238
3169
|
|
|
3239
3170
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFlow.js":
|
|
@@ -5160,123 +5091,6 @@ function eq(value, other) {
|
|
|
5160
5091
|
module.exports = eq;
|
|
5161
5092
|
|
|
5162
5093
|
|
|
5163
|
-
/***/ }),
|
|
5164
|
-
|
|
5165
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
5166
|
-
/*!******************************************************************************!*\
|
|
5167
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
5168
|
-
\******************************************************************************/
|
|
5169
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5170
|
-
|
|
5171
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
5172
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
5173
|
-
|
|
5174
|
-
/**
|
|
5175
|
-
* Iterates over elements of `collection`, returning the first element
|
|
5176
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
5177
|
-
* arguments: (value, index|key, collection).
|
|
5178
|
-
*
|
|
5179
|
-
* @static
|
|
5180
|
-
* @memberOf _
|
|
5181
|
-
* @since 0.1.0
|
|
5182
|
-
* @category Collection
|
|
5183
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
5184
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
5185
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
5186
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
5187
|
-
* @example
|
|
5188
|
-
*
|
|
5189
|
-
* var users = [
|
|
5190
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
5191
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
5192
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
5193
|
-
* ];
|
|
5194
|
-
*
|
|
5195
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
5196
|
-
* // => object for 'barney'
|
|
5197
|
-
*
|
|
5198
|
-
* // The `_.matches` iteratee shorthand.
|
|
5199
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
5200
|
-
* // => object for 'pebbles'
|
|
5201
|
-
*
|
|
5202
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
5203
|
-
* _.find(users, ['active', false]);
|
|
5204
|
-
* // => object for 'fred'
|
|
5205
|
-
*
|
|
5206
|
-
* // The `_.property` iteratee shorthand.
|
|
5207
|
-
* _.find(users, 'active');
|
|
5208
|
-
* // => object for 'barney'
|
|
5209
|
-
*/
|
|
5210
|
-
var find = createFind(findIndex);
|
|
5211
|
-
|
|
5212
|
-
module.exports = find;
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
/***/ }),
|
|
5216
|
-
|
|
5217
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
5218
|
-
/*!***********************************************************************************!*\
|
|
5219
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
5220
|
-
\***********************************************************************************/
|
|
5221
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5222
|
-
|
|
5223
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
5224
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
5225
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
5226
|
-
|
|
5227
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5228
|
-
var nativeMax = Math.max;
|
|
5229
|
-
|
|
5230
|
-
/**
|
|
5231
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
5232
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
5233
|
-
*
|
|
5234
|
-
* @static
|
|
5235
|
-
* @memberOf _
|
|
5236
|
-
* @since 1.1.0
|
|
5237
|
-
* @category Array
|
|
5238
|
-
* @param {Array} array The array to inspect.
|
|
5239
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
5240
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
5241
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
5242
|
-
* @example
|
|
5243
|
-
*
|
|
5244
|
-
* var users = [
|
|
5245
|
-
* { 'user': 'barney', 'active': false },
|
|
5246
|
-
* { 'user': 'fred', 'active': false },
|
|
5247
|
-
* { 'user': 'pebbles', 'active': true }
|
|
5248
|
-
* ];
|
|
5249
|
-
*
|
|
5250
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
5251
|
-
* // => 0
|
|
5252
|
-
*
|
|
5253
|
-
* // The `_.matches` iteratee shorthand.
|
|
5254
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
5255
|
-
* // => 1
|
|
5256
|
-
*
|
|
5257
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
5258
|
-
* _.findIndex(users, ['active', false]);
|
|
5259
|
-
* // => 0
|
|
5260
|
-
*
|
|
5261
|
-
* // The `_.property` iteratee shorthand.
|
|
5262
|
-
* _.findIndex(users, 'active');
|
|
5263
|
-
* // => 2
|
|
5264
|
-
*/
|
|
5265
|
-
function findIndex(array, predicate, fromIndex) {
|
|
5266
|
-
var length = array == null ? 0 : array.length;
|
|
5267
|
-
if (!length) {
|
|
5268
|
-
return -1;
|
|
5269
|
-
}
|
|
5270
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
5271
|
-
if (index < 0) {
|
|
5272
|
-
index = nativeMax(length + index, 0);
|
|
5273
|
-
}
|
|
5274
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
5275
|
-
}
|
|
5276
|
-
|
|
5277
|
-
module.exports = findIndex;
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
5094
|
/***/ }),
|
|
5281
5095
|
|
|
5282
5096
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -7024,104 +6838,6 @@ function throttle(func, wait, options) {
|
|
|
7024
6838
|
module.exports = throttle;
|
|
7025
6839
|
|
|
7026
6840
|
|
|
7027
|
-
/***/ }),
|
|
7028
|
-
|
|
7029
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js":
|
|
7030
|
-
/*!**********************************************************************************!*\
|
|
7031
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js ***!
|
|
7032
|
-
\**********************************************************************************/
|
|
7033
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7034
|
-
|
|
7035
|
-
var toNumber = __webpack_require__(/*! ./toNumber */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js");
|
|
7036
|
-
|
|
7037
|
-
/** Used as references for various `Number` constants. */
|
|
7038
|
-
var INFINITY = 1 / 0,
|
|
7039
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
7040
|
-
|
|
7041
|
-
/**
|
|
7042
|
-
* Converts `value` to a finite number.
|
|
7043
|
-
*
|
|
7044
|
-
* @static
|
|
7045
|
-
* @memberOf _
|
|
7046
|
-
* @since 4.12.0
|
|
7047
|
-
* @category Lang
|
|
7048
|
-
* @param {*} value The value to convert.
|
|
7049
|
-
* @returns {number} Returns the converted number.
|
|
7050
|
-
* @example
|
|
7051
|
-
*
|
|
7052
|
-
* _.toFinite(3.2);
|
|
7053
|
-
* // => 3.2
|
|
7054
|
-
*
|
|
7055
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
7056
|
-
* // => 5e-324
|
|
7057
|
-
*
|
|
7058
|
-
* _.toFinite(Infinity);
|
|
7059
|
-
* // => 1.7976931348623157e+308
|
|
7060
|
-
*
|
|
7061
|
-
* _.toFinite('3.2');
|
|
7062
|
-
* // => 3.2
|
|
7063
|
-
*/
|
|
7064
|
-
function toFinite(value) {
|
|
7065
|
-
if (!value) {
|
|
7066
|
-
return value === 0 ? value : 0;
|
|
7067
|
-
}
|
|
7068
|
-
value = toNumber(value);
|
|
7069
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
7070
|
-
var sign = (value < 0 ? -1 : 1);
|
|
7071
|
-
return sign * MAX_INTEGER;
|
|
7072
|
-
}
|
|
7073
|
-
return value === value ? value : 0;
|
|
7074
|
-
}
|
|
7075
|
-
|
|
7076
|
-
module.exports = toFinite;
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
/***/ }),
|
|
7080
|
-
|
|
7081
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js":
|
|
7082
|
-
/*!***********************************************************************************!*\
|
|
7083
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js ***!
|
|
7084
|
-
\***********************************************************************************/
|
|
7085
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7086
|
-
|
|
7087
|
-
var toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
|
|
7088
|
-
|
|
7089
|
-
/**
|
|
7090
|
-
* Converts `value` to an integer.
|
|
7091
|
-
*
|
|
7092
|
-
* **Note:** This method is loosely based on
|
|
7093
|
-
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
7094
|
-
*
|
|
7095
|
-
* @static
|
|
7096
|
-
* @memberOf _
|
|
7097
|
-
* @since 4.0.0
|
|
7098
|
-
* @category Lang
|
|
7099
|
-
* @param {*} value The value to convert.
|
|
7100
|
-
* @returns {number} Returns the converted integer.
|
|
7101
|
-
* @example
|
|
7102
|
-
*
|
|
7103
|
-
* _.toInteger(3.2);
|
|
7104
|
-
* // => 3
|
|
7105
|
-
*
|
|
7106
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
7107
|
-
* // => 0
|
|
7108
|
-
*
|
|
7109
|
-
* _.toInteger(Infinity);
|
|
7110
|
-
* // => 1.7976931348623157e+308
|
|
7111
|
-
*
|
|
7112
|
-
* _.toInteger('3.2');
|
|
7113
|
-
* // => 3
|
|
7114
|
-
*/
|
|
7115
|
-
function toInteger(value) {
|
|
7116
|
-
var result = toFinite(value),
|
|
7117
|
-
remainder = result % 1;
|
|
7118
|
-
|
|
7119
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
7120
|
-
}
|
|
7121
|
-
|
|
7122
|
-
module.exports = toInteger;
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
6841
|
/***/ }),
|
|
7126
6842
|
|
|
7127
6843
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js":
|
|
@@ -7455,917 +7171,22 @@ var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node
|
|
|
7455
7171
|
* @memberOf _
|
|
7456
7172
|
* @since 0.1.0
|
|
7457
7173
|
* @category Array
|
|
7458
|
-
* @param {Array} array The array to inspect.
|
|
7459
|
-
* @param {...*} [values] The values to exclude.
|
|
7460
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
7461
|
-
* @see _.difference, _.xor
|
|
7462
|
-
* @example
|
|
7463
|
-
*
|
|
7464
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
7465
|
-
* // => [3]
|
|
7466
|
-
*/
|
|
7467
|
-
var without = baseRest(function(array, values) {
|
|
7468
|
-
return isArrayLikeObject(array)
|
|
7469
|
-
? baseDifference(array, values)
|
|
7470
|
-
: [];
|
|
7471
|
-
});
|
|
7472
|
-
|
|
7473
|
-
module.exports = without;
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
/***/ }),
|
|
7477
|
-
|
|
7478
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
7479
|
-
/*!*******************************************************************************************!*\
|
|
7480
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
7481
|
-
\*******************************************************************************************/
|
|
7482
|
-
/***/ ((module) => {
|
|
7483
|
-
|
|
7484
|
-
"use strict";
|
|
7485
|
-
/*
|
|
7486
|
-
object-assign
|
|
7487
|
-
(c) Sindre Sorhus
|
|
7488
|
-
@license MIT
|
|
7489
|
-
*/
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
/* eslint-disable no-unused-vars */
|
|
7493
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
7494
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7495
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
7496
|
-
|
|
7497
|
-
function toObject(val) {
|
|
7498
|
-
if (val === null || val === undefined) {
|
|
7499
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
7500
|
-
}
|
|
7501
|
-
|
|
7502
|
-
return Object(val);
|
|
7503
|
-
}
|
|
7504
|
-
|
|
7505
|
-
function shouldUseNative() {
|
|
7506
|
-
try {
|
|
7507
|
-
if (!Object.assign) {
|
|
7508
|
-
return false;
|
|
7509
|
-
}
|
|
7510
|
-
|
|
7511
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
7512
|
-
|
|
7513
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
7514
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
7515
|
-
test1[5] = 'de';
|
|
7516
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
7517
|
-
return false;
|
|
7518
|
-
}
|
|
7519
|
-
|
|
7520
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
7521
|
-
var test2 = {};
|
|
7522
|
-
for (var i = 0; i < 10; i++) {
|
|
7523
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
7524
|
-
}
|
|
7525
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
7526
|
-
return test2[n];
|
|
7527
|
-
});
|
|
7528
|
-
if (order2.join('') !== '0123456789') {
|
|
7529
|
-
return false;
|
|
7530
|
-
}
|
|
7531
|
-
|
|
7532
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
7533
|
-
var test3 = {};
|
|
7534
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
7535
|
-
test3[letter] = letter;
|
|
7536
|
-
});
|
|
7537
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
7538
|
-
'abcdefghijklmnopqrst') {
|
|
7539
|
-
return false;
|
|
7540
|
-
}
|
|
7541
|
-
|
|
7542
|
-
return true;
|
|
7543
|
-
} catch (err) {
|
|
7544
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
7545
|
-
return false;
|
|
7546
|
-
}
|
|
7547
|
-
}
|
|
7548
|
-
|
|
7549
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
7550
|
-
var from;
|
|
7551
|
-
var to = toObject(target);
|
|
7552
|
-
var symbols;
|
|
7553
|
-
|
|
7554
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
7555
|
-
from = Object(arguments[s]);
|
|
7556
|
-
|
|
7557
|
-
for (var key in from) {
|
|
7558
|
-
if (hasOwnProperty.call(from, key)) {
|
|
7559
|
-
to[key] = from[key];
|
|
7560
|
-
}
|
|
7561
|
-
}
|
|
7562
|
-
|
|
7563
|
-
if (getOwnPropertySymbols) {
|
|
7564
|
-
symbols = getOwnPropertySymbols(from);
|
|
7565
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
7566
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
7567
|
-
to[symbols[i]] = from[symbols[i]];
|
|
7568
|
-
}
|
|
7569
|
-
}
|
|
7570
|
-
}
|
|
7571
|
-
}
|
|
7572
|
-
|
|
7573
|
-
return to;
|
|
7574
|
-
};
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
/***/ }),
|
|
7578
|
-
|
|
7579
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
7580
|
-
/*!***********************************************************************************************!*\
|
|
7581
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
7582
|
-
\***********************************************************************************************/
|
|
7583
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7584
|
-
|
|
7585
|
-
"use strict";
|
|
7586
|
-
/**
|
|
7587
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7588
|
-
*
|
|
7589
|
-
* This source code is licensed under the MIT license found in the
|
|
7590
|
-
* LICENSE file in the root directory of this source tree.
|
|
7591
|
-
*/
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
var printWarning = function() {};
|
|
7596
|
-
|
|
7597
|
-
if (true) {
|
|
7598
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
7599
|
-
var loggedTypeFailures = {};
|
|
7600
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
7601
|
-
|
|
7602
|
-
printWarning = function(text) {
|
|
7603
|
-
var message = 'Warning: ' + text;
|
|
7604
|
-
if (typeof console !== 'undefined') {
|
|
7605
|
-
console.error(message);
|
|
7606
|
-
}
|
|
7607
|
-
try {
|
|
7608
|
-
// --- Welcome to debugging React ---
|
|
7609
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
7610
|
-
// to find the callsite that caused this warning to fire.
|
|
7611
|
-
throw new Error(message);
|
|
7612
|
-
} catch (x) { /**/ }
|
|
7613
|
-
};
|
|
7614
|
-
}
|
|
7615
|
-
|
|
7616
|
-
/**
|
|
7617
|
-
* Assert that the values match with the type specs.
|
|
7618
|
-
* Error messages are memorized and will only be shown once.
|
|
7619
|
-
*
|
|
7620
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
7621
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
7622
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
7623
|
-
* @param {string} componentName Name of the component for error messages.
|
|
7624
|
-
* @param {?Function} getStack Returns the component stack.
|
|
7625
|
-
* @private
|
|
7626
|
-
*/
|
|
7627
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
7628
|
-
if (true) {
|
|
7629
|
-
for (var typeSpecName in typeSpecs) {
|
|
7630
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
7631
|
-
var error;
|
|
7632
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
7633
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
7634
|
-
// After these have been cleaned up, we'll let them throw.
|
|
7635
|
-
try {
|
|
7636
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
7637
|
-
// behavior as without this statement except with a better message.
|
|
7638
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
7639
|
-
var err = Error(
|
|
7640
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
7641
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
7642
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
7643
|
-
);
|
|
7644
|
-
err.name = 'Invariant Violation';
|
|
7645
|
-
throw err;
|
|
7646
|
-
}
|
|
7647
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
7648
|
-
} catch (ex) {
|
|
7649
|
-
error = ex;
|
|
7650
|
-
}
|
|
7651
|
-
if (error && !(error instanceof Error)) {
|
|
7652
|
-
printWarning(
|
|
7653
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
7654
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
7655
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
7656
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
7657
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
7658
|
-
'shape all require an argument).'
|
|
7659
|
-
);
|
|
7660
|
-
}
|
|
7661
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
7662
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
7663
|
-
// same error.
|
|
7664
|
-
loggedTypeFailures[error.message] = true;
|
|
7665
|
-
|
|
7666
|
-
var stack = getStack ? getStack() : '';
|
|
7667
|
-
|
|
7668
|
-
printWarning(
|
|
7669
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
7670
|
-
);
|
|
7671
|
-
}
|
|
7672
|
-
}
|
|
7673
|
-
}
|
|
7674
|
-
}
|
|
7675
|
-
}
|
|
7676
|
-
|
|
7677
|
-
/**
|
|
7678
|
-
* Resets warning cache when testing.
|
|
7679
|
-
*
|
|
7680
|
-
* @private
|
|
7681
|
-
*/
|
|
7682
|
-
checkPropTypes.resetWarningCache = function() {
|
|
7683
|
-
if (true) {
|
|
7684
|
-
loggedTypeFailures = {};
|
|
7685
|
-
}
|
|
7686
|
-
}
|
|
7687
|
-
|
|
7688
|
-
module.exports = checkPropTypes;
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
/***/ }),
|
|
7692
|
-
|
|
7693
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
7694
|
-
/*!********************************************************************************************************!*\
|
|
7695
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
7696
|
-
\********************************************************************************************************/
|
|
7697
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7698
|
-
|
|
7699
|
-
"use strict";
|
|
7700
|
-
/**
|
|
7701
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7702
|
-
*
|
|
7703
|
-
* This source code is licensed under the MIT license found in the
|
|
7704
|
-
* LICENSE file in the root directory of this source tree.
|
|
7705
|
-
*/
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
7710
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
7711
|
-
|
|
7712
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
7713
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
7714
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
7715
|
-
|
|
7716
|
-
var printWarning = function() {};
|
|
7717
|
-
|
|
7718
|
-
if (true) {
|
|
7719
|
-
printWarning = function(text) {
|
|
7720
|
-
var message = 'Warning: ' + text;
|
|
7721
|
-
if (typeof console !== 'undefined') {
|
|
7722
|
-
console.error(message);
|
|
7723
|
-
}
|
|
7724
|
-
try {
|
|
7725
|
-
// --- Welcome to debugging React ---
|
|
7726
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
7727
|
-
// to find the callsite that caused this warning to fire.
|
|
7728
|
-
throw new Error(message);
|
|
7729
|
-
} catch (x) {}
|
|
7730
|
-
};
|
|
7731
|
-
}
|
|
7732
|
-
|
|
7733
|
-
function emptyFunctionThatReturnsNull() {
|
|
7734
|
-
return null;
|
|
7735
|
-
}
|
|
7736
|
-
|
|
7737
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
7738
|
-
/* global Symbol */
|
|
7739
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
7740
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
7741
|
-
|
|
7742
|
-
/**
|
|
7743
|
-
* Returns the iterator method function contained on the iterable object.
|
|
7744
|
-
*
|
|
7745
|
-
* Be sure to invoke the function with the iterable as context:
|
|
7746
|
-
*
|
|
7747
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
7748
|
-
* if (iteratorFn) {
|
|
7749
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
7750
|
-
* ...
|
|
7751
|
-
* }
|
|
7752
|
-
*
|
|
7753
|
-
* @param {?object} maybeIterable
|
|
7754
|
-
* @return {?function}
|
|
7755
|
-
*/
|
|
7756
|
-
function getIteratorFn(maybeIterable) {
|
|
7757
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
7758
|
-
if (typeof iteratorFn === 'function') {
|
|
7759
|
-
return iteratorFn;
|
|
7760
|
-
}
|
|
7761
|
-
}
|
|
7762
|
-
|
|
7763
|
-
/**
|
|
7764
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
7765
|
-
* supplied to React components. Example usage:
|
|
7766
|
-
*
|
|
7767
|
-
* var Props = require('ReactPropTypes');
|
|
7768
|
-
* var MyArticle = React.createClass({
|
|
7769
|
-
* propTypes: {
|
|
7770
|
-
* // An optional string prop named "description".
|
|
7771
|
-
* description: Props.string,
|
|
7772
|
-
*
|
|
7773
|
-
* // A required enum prop named "category".
|
|
7774
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
7775
|
-
*
|
|
7776
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
7777
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
7778
|
-
* },
|
|
7779
|
-
* render: function() { ... }
|
|
7780
|
-
* });
|
|
7781
|
-
*
|
|
7782
|
-
* A more formal specification of how these methods are used:
|
|
7783
|
-
*
|
|
7784
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
7785
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
7786
|
-
*
|
|
7787
|
-
* Each and every declaration produces a function with the same signature. This
|
|
7788
|
-
* allows the creation of custom validation functions. For example:
|
|
7789
|
-
*
|
|
7790
|
-
* var MyLink = React.createClass({
|
|
7791
|
-
* propTypes: {
|
|
7792
|
-
* // An optional string or URI prop named "href".
|
|
7793
|
-
* href: function(props, propName, componentName) {
|
|
7794
|
-
* var propValue = props[propName];
|
|
7795
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
7796
|
-
* !(propValue instanceof URI)) {
|
|
7797
|
-
* return new Error(
|
|
7798
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
7799
|
-
* componentName
|
|
7800
|
-
* );
|
|
7801
|
-
* }
|
|
7802
|
-
* }
|
|
7803
|
-
* },
|
|
7804
|
-
* render: function() {...}
|
|
7805
|
-
* });
|
|
7806
|
-
*
|
|
7807
|
-
* @internal
|
|
7808
|
-
*/
|
|
7809
|
-
|
|
7810
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
7811
|
-
|
|
7812
|
-
// Important!
|
|
7813
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
7814
|
-
var ReactPropTypes = {
|
|
7815
|
-
array: createPrimitiveTypeChecker('array'),
|
|
7816
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
7817
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
7818
|
-
func: createPrimitiveTypeChecker('function'),
|
|
7819
|
-
number: createPrimitiveTypeChecker('number'),
|
|
7820
|
-
object: createPrimitiveTypeChecker('object'),
|
|
7821
|
-
string: createPrimitiveTypeChecker('string'),
|
|
7822
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
7823
|
-
|
|
7824
|
-
any: createAnyTypeChecker(),
|
|
7825
|
-
arrayOf: createArrayOfTypeChecker,
|
|
7826
|
-
element: createElementTypeChecker(),
|
|
7827
|
-
elementType: createElementTypeTypeChecker(),
|
|
7828
|
-
instanceOf: createInstanceTypeChecker,
|
|
7829
|
-
node: createNodeChecker(),
|
|
7830
|
-
objectOf: createObjectOfTypeChecker,
|
|
7831
|
-
oneOf: createEnumTypeChecker,
|
|
7832
|
-
oneOfType: createUnionTypeChecker,
|
|
7833
|
-
shape: createShapeTypeChecker,
|
|
7834
|
-
exact: createStrictShapeTypeChecker,
|
|
7835
|
-
};
|
|
7836
|
-
|
|
7837
|
-
/**
|
|
7838
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
7839
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
7840
|
-
*/
|
|
7841
|
-
/*eslint-disable no-self-compare*/
|
|
7842
|
-
function is(x, y) {
|
|
7843
|
-
// SameValue algorithm
|
|
7844
|
-
if (x === y) {
|
|
7845
|
-
// Steps 1-5, 7-10
|
|
7846
|
-
// Steps 6.b-6.e: +0 != -0
|
|
7847
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
7848
|
-
} else {
|
|
7849
|
-
// Step 6.a: NaN == NaN
|
|
7850
|
-
return x !== x && y !== y;
|
|
7851
|
-
}
|
|
7852
|
-
}
|
|
7853
|
-
/*eslint-enable no-self-compare*/
|
|
7854
|
-
|
|
7855
|
-
/**
|
|
7856
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
7857
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
7858
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
7859
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
7860
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
7861
|
-
*/
|
|
7862
|
-
function PropTypeError(message, data) {
|
|
7863
|
-
this.message = message;
|
|
7864
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
7865
|
-
this.stack = '';
|
|
7866
|
-
}
|
|
7867
|
-
// Make `instanceof Error` still work for returned errors.
|
|
7868
|
-
PropTypeError.prototype = Error.prototype;
|
|
7869
|
-
|
|
7870
|
-
function createChainableTypeChecker(validate) {
|
|
7871
|
-
if (true) {
|
|
7872
|
-
var manualPropTypeCallCache = {};
|
|
7873
|
-
var manualPropTypeWarningCount = 0;
|
|
7874
|
-
}
|
|
7875
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
7876
|
-
componentName = componentName || ANONYMOUS;
|
|
7877
|
-
propFullName = propFullName || propName;
|
|
7878
|
-
|
|
7879
|
-
if (secret !== ReactPropTypesSecret) {
|
|
7880
|
-
if (throwOnDirectAccess) {
|
|
7881
|
-
// New behavior only for users of `prop-types` package
|
|
7882
|
-
var err = new Error(
|
|
7883
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
7884
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
7885
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
7886
|
-
);
|
|
7887
|
-
err.name = 'Invariant Violation';
|
|
7888
|
-
throw err;
|
|
7889
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
7890
|
-
// Old behavior for people using React.PropTypes
|
|
7891
|
-
var cacheKey = componentName + ':' + propName;
|
|
7892
|
-
if (
|
|
7893
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
7894
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
7895
|
-
manualPropTypeWarningCount < 3
|
|
7896
|
-
) {
|
|
7897
|
-
printWarning(
|
|
7898
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
7899
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
7900
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
7901
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
7902
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
7903
|
-
);
|
|
7904
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
7905
|
-
manualPropTypeWarningCount++;
|
|
7906
|
-
}
|
|
7907
|
-
}
|
|
7908
|
-
}
|
|
7909
|
-
if (props[propName] == null) {
|
|
7910
|
-
if (isRequired) {
|
|
7911
|
-
if (props[propName] === null) {
|
|
7912
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
7913
|
-
}
|
|
7914
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
7915
|
-
}
|
|
7916
|
-
return null;
|
|
7917
|
-
} else {
|
|
7918
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
7919
|
-
}
|
|
7920
|
-
}
|
|
7921
|
-
|
|
7922
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
7923
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
7924
|
-
|
|
7925
|
-
return chainedCheckType;
|
|
7926
|
-
}
|
|
7927
|
-
|
|
7928
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
7929
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
7930
|
-
var propValue = props[propName];
|
|
7931
|
-
var propType = getPropType(propValue);
|
|
7932
|
-
if (propType !== expectedType) {
|
|
7933
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
7934
|
-
// check, but we can offer a more precise error message here rather than
|
|
7935
|
-
// 'of type `object`'.
|
|
7936
|
-
var preciseType = getPreciseType(propValue);
|
|
7937
|
-
|
|
7938
|
-
return new PropTypeError(
|
|
7939
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
7940
|
-
{expectedType: expectedType}
|
|
7941
|
-
);
|
|
7942
|
-
}
|
|
7943
|
-
return null;
|
|
7944
|
-
}
|
|
7945
|
-
return createChainableTypeChecker(validate);
|
|
7946
|
-
}
|
|
7947
|
-
|
|
7948
|
-
function createAnyTypeChecker() {
|
|
7949
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
7950
|
-
}
|
|
7951
|
-
|
|
7952
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
7953
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
7954
|
-
if (typeof typeChecker !== 'function') {
|
|
7955
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
7956
|
-
}
|
|
7957
|
-
var propValue = props[propName];
|
|
7958
|
-
if (!Array.isArray(propValue)) {
|
|
7959
|
-
var propType = getPropType(propValue);
|
|
7960
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
7961
|
-
}
|
|
7962
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
7963
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
7964
|
-
if (error instanceof Error) {
|
|
7965
|
-
return error;
|
|
7966
|
-
}
|
|
7967
|
-
}
|
|
7968
|
-
return null;
|
|
7969
|
-
}
|
|
7970
|
-
return createChainableTypeChecker(validate);
|
|
7971
|
-
}
|
|
7972
|
-
|
|
7973
|
-
function createElementTypeChecker() {
|
|
7974
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
7975
|
-
var propValue = props[propName];
|
|
7976
|
-
if (!isValidElement(propValue)) {
|
|
7977
|
-
var propType = getPropType(propValue);
|
|
7978
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
7979
|
-
}
|
|
7980
|
-
return null;
|
|
7981
|
-
}
|
|
7982
|
-
return createChainableTypeChecker(validate);
|
|
7983
|
-
}
|
|
7984
|
-
|
|
7985
|
-
function createElementTypeTypeChecker() {
|
|
7986
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
7987
|
-
var propValue = props[propName];
|
|
7988
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
7989
|
-
var propType = getPropType(propValue);
|
|
7990
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
7991
|
-
}
|
|
7992
|
-
return null;
|
|
7993
|
-
}
|
|
7994
|
-
return createChainableTypeChecker(validate);
|
|
7995
|
-
}
|
|
7996
|
-
|
|
7997
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
7998
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
7999
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
8000
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
8001
|
-
var actualClassName = getClassName(props[propName]);
|
|
8002
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
8003
|
-
}
|
|
8004
|
-
return null;
|
|
8005
|
-
}
|
|
8006
|
-
return createChainableTypeChecker(validate);
|
|
8007
|
-
}
|
|
8008
|
-
|
|
8009
|
-
function createEnumTypeChecker(expectedValues) {
|
|
8010
|
-
if (!Array.isArray(expectedValues)) {
|
|
8011
|
-
if (true) {
|
|
8012
|
-
if (arguments.length > 1) {
|
|
8013
|
-
printWarning(
|
|
8014
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
8015
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
8016
|
-
);
|
|
8017
|
-
} else {
|
|
8018
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
8019
|
-
}
|
|
8020
|
-
}
|
|
8021
|
-
return emptyFunctionThatReturnsNull;
|
|
8022
|
-
}
|
|
8023
|
-
|
|
8024
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8025
|
-
var propValue = props[propName];
|
|
8026
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
8027
|
-
if (is(propValue, expectedValues[i])) {
|
|
8028
|
-
return null;
|
|
8029
|
-
}
|
|
8030
|
-
}
|
|
8031
|
-
|
|
8032
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
8033
|
-
var type = getPreciseType(value);
|
|
8034
|
-
if (type === 'symbol') {
|
|
8035
|
-
return String(value);
|
|
8036
|
-
}
|
|
8037
|
-
return value;
|
|
8038
|
-
});
|
|
8039
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
8040
|
-
}
|
|
8041
|
-
return createChainableTypeChecker(validate);
|
|
8042
|
-
}
|
|
8043
|
-
|
|
8044
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
8045
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8046
|
-
if (typeof typeChecker !== 'function') {
|
|
8047
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
8048
|
-
}
|
|
8049
|
-
var propValue = props[propName];
|
|
8050
|
-
var propType = getPropType(propValue);
|
|
8051
|
-
if (propType !== 'object') {
|
|
8052
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
8053
|
-
}
|
|
8054
|
-
for (var key in propValue) {
|
|
8055
|
-
if (has(propValue, key)) {
|
|
8056
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
8057
|
-
if (error instanceof Error) {
|
|
8058
|
-
return error;
|
|
8059
|
-
}
|
|
8060
|
-
}
|
|
8061
|
-
}
|
|
8062
|
-
return null;
|
|
8063
|
-
}
|
|
8064
|
-
return createChainableTypeChecker(validate);
|
|
8065
|
-
}
|
|
8066
|
-
|
|
8067
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
8068
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
8069
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
8070
|
-
return emptyFunctionThatReturnsNull;
|
|
8071
|
-
}
|
|
8072
|
-
|
|
8073
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
8074
|
-
var checker = arrayOfTypeCheckers[i];
|
|
8075
|
-
if (typeof checker !== 'function') {
|
|
8076
|
-
printWarning(
|
|
8077
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
8078
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
8079
|
-
);
|
|
8080
|
-
return emptyFunctionThatReturnsNull;
|
|
8081
|
-
}
|
|
8082
|
-
}
|
|
8083
|
-
|
|
8084
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8085
|
-
var expectedTypes = [];
|
|
8086
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
8087
|
-
var checker = arrayOfTypeCheckers[i];
|
|
8088
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
8089
|
-
if (checkerResult == null) {
|
|
8090
|
-
return null;
|
|
8091
|
-
}
|
|
8092
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
8093
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
8094
|
-
}
|
|
8095
|
-
}
|
|
8096
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
8097
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
8098
|
-
}
|
|
8099
|
-
return createChainableTypeChecker(validate);
|
|
8100
|
-
}
|
|
8101
|
-
|
|
8102
|
-
function createNodeChecker() {
|
|
8103
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8104
|
-
if (!isNode(props[propName])) {
|
|
8105
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
8106
|
-
}
|
|
8107
|
-
return null;
|
|
8108
|
-
}
|
|
8109
|
-
return createChainableTypeChecker(validate);
|
|
8110
|
-
}
|
|
8111
|
-
|
|
8112
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
8113
|
-
return new PropTypeError(
|
|
8114
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
8115
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
8116
|
-
);
|
|
8117
|
-
}
|
|
8118
|
-
|
|
8119
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
8120
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8121
|
-
var propValue = props[propName];
|
|
8122
|
-
var propType = getPropType(propValue);
|
|
8123
|
-
if (propType !== 'object') {
|
|
8124
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
8125
|
-
}
|
|
8126
|
-
for (var key in shapeTypes) {
|
|
8127
|
-
var checker = shapeTypes[key];
|
|
8128
|
-
if (typeof checker !== 'function') {
|
|
8129
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
8130
|
-
}
|
|
8131
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
8132
|
-
if (error) {
|
|
8133
|
-
return error;
|
|
8134
|
-
}
|
|
8135
|
-
}
|
|
8136
|
-
return null;
|
|
8137
|
-
}
|
|
8138
|
-
return createChainableTypeChecker(validate);
|
|
8139
|
-
}
|
|
8140
|
-
|
|
8141
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
8142
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
8143
|
-
var propValue = props[propName];
|
|
8144
|
-
var propType = getPropType(propValue);
|
|
8145
|
-
if (propType !== 'object') {
|
|
8146
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
8147
|
-
}
|
|
8148
|
-
// We need to check all keys in case some are required but missing from props.
|
|
8149
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
8150
|
-
for (var key in allKeys) {
|
|
8151
|
-
var checker = shapeTypes[key];
|
|
8152
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
8153
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
8154
|
-
}
|
|
8155
|
-
if (!checker) {
|
|
8156
|
-
return new PropTypeError(
|
|
8157
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
8158
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
8159
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
8160
|
-
);
|
|
8161
|
-
}
|
|
8162
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
8163
|
-
if (error) {
|
|
8164
|
-
return error;
|
|
8165
|
-
}
|
|
8166
|
-
}
|
|
8167
|
-
return null;
|
|
8168
|
-
}
|
|
8169
|
-
|
|
8170
|
-
return createChainableTypeChecker(validate);
|
|
8171
|
-
}
|
|
8172
|
-
|
|
8173
|
-
function isNode(propValue) {
|
|
8174
|
-
switch (typeof propValue) {
|
|
8175
|
-
case 'number':
|
|
8176
|
-
case 'string':
|
|
8177
|
-
case 'undefined':
|
|
8178
|
-
return true;
|
|
8179
|
-
case 'boolean':
|
|
8180
|
-
return !propValue;
|
|
8181
|
-
case 'object':
|
|
8182
|
-
if (Array.isArray(propValue)) {
|
|
8183
|
-
return propValue.every(isNode);
|
|
8184
|
-
}
|
|
8185
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
8186
|
-
return true;
|
|
8187
|
-
}
|
|
8188
|
-
|
|
8189
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
8190
|
-
if (iteratorFn) {
|
|
8191
|
-
var iterator = iteratorFn.call(propValue);
|
|
8192
|
-
var step;
|
|
8193
|
-
if (iteratorFn !== propValue.entries) {
|
|
8194
|
-
while (!(step = iterator.next()).done) {
|
|
8195
|
-
if (!isNode(step.value)) {
|
|
8196
|
-
return false;
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8199
|
-
} else {
|
|
8200
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
8201
|
-
while (!(step = iterator.next()).done) {
|
|
8202
|
-
var entry = step.value;
|
|
8203
|
-
if (entry) {
|
|
8204
|
-
if (!isNode(entry[1])) {
|
|
8205
|
-
return false;
|
|
8206
|
-
}
|
|
8207
|
-
}
|
|
8208
|
-
}
|
|
8209
|
-
}
|
|
8210
|
-
} else {
|
|
8211
|
-
return false;
|
|
8212
|
-
}
|
|
8213
|
-
|
|
8214
|
-
return true;
|
|
8215
|
-
default:
|
|
8216
|
-
return false;
|
|
8217
|
-
}
|
|
8218
|
-
}
|
|
8219
|
-
|
|
8220
|
-
function isSymbol(propType, propValue) {
|
|
8221
|
-
// Native Symbol.
|
|
8222
|
-
if (propType === 'symbol') {
|
|
8223
|
-
return true;
|
|
8224
|
-
}
|
|
8225
|
-
|
|
8226
|
-
// falsy value can't be a Symbol
|
|
8227
|
-
if (!propValue) {
|
|
8228
|
-
return false;
|
|
8229
|
-
}
|
|
8230
|
-
|
|
8231
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
8232
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
8233
|
-
return true;
|
|
8234
|
-
}
|
|
8235
|
-
|
|
8236
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
8237
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
8238
|
-
return true;
|
|
8239
|
-
}
|
|
8240
|
-
|
|
8241
|
-
return false;
|
|
8242
|
-
}
|
|
8243
|
-
|
|
8244
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
8245
|
-
function getPropType(propValue) {
|
|
8246
|
-
var propType = typeof propValue;
|
|
8247
|
-
if (Array.isArray(propValue)) {
|
|
8248
|
-
return 'array';
|
|
8249
|
-
}
|
|
8250
|
-
if (propValue instanceof RegExp) {
|
|
8251
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
8252
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
8253
|
-
// passes PropTypes.object.
|
|
8254
|
-
return 'object';
|
|
8255
|
-
}
|
|
8256
|
-
if (isSymbol(propType, propValue)) {
|
|
8257
|
-
return 'symbol';
|
|
8258
|
-
}
|
|
8259
|
-
return propType;
|
|
8260
|
-
}
|
|
8261
|
-
|
|
8262
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
8263
|
-
// See `createPrimitiveTypeChecker`.
|
|
8264
|
-
function getPreciseType(propValue) {
|
|
8265
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
8266
|
-
return '' + propValue;
|
|
8267
|
-
}
|
|
8268
|
-
var propType = getPropType(propValue);
|
|
8269
|
-
if (propType === 'object') {
|
|
8270
|
-
if (propValue instanceof Date) {
|
|
8271
|
-
return 'date';
|
|
8272
|
-
} else if (propValue instanceof RegExp) {
|
|
8273
|
-
return 'regexp';
|
|
8274
|
-
}
|
|
8275
|
-
}
|
|
8276
|
-
return propType;
|
|
8277
|
-
}
|
|
8278
|
-
|
|
8279
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
8280
|
-
// For example, "undefined" or "of type array"
|
|
8281
|
-
function getPostfixForTypeWarning(value) {
|
|
8282
|
-
var type = getPreciseType(value);
|
|
8283
|
-
switch (type) {
|
|
8284
|
-
case 'array':
|
|
8285
|
-
case 'object':
|
|
8286
|
-
return 'an ' + type;
|
|
8287
|
-
case 'boolean':
|
|
8288
|
-
case 'date':
|
|
8289
|
-
case 'regexp':
|
|
8290
|
-
return 'a ' + type;
|
|
8291
|
-
default:
|
|
8292
|
-
return type;
|
|
8293
|
-
}
|
|
8294
|
-
}
|
|
8295
|
-
|
|
8296
|
-
// Returns class name of the object, if any.
|
|
8297
|
-
function getClassName(propValue) {
|
|
8298
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
8299
|
-
return ANONYMOUS;
|
|
8300
|
-
}
|
|
8301
|
-
return propValue.constructor.name;
|
|
8302
|
-
}
|
|
8303
|
-
|
|
8304
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
8305
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
8306
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
8307
|
-
|
|
8308
|
-
return ReactPropTypes;
|
|
8309
|
-
};
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
/***/ }),
|
|
8313
|
-
|
|
8314
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
8315
|
-
/*!**************************************************************************************!*\
|
|
8316
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
8317
|
-
\**************************************************************************************/
|
|
8318
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8319
|
-
|
|
8320
|
-
/**
|
|
8321
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
8322
|
-
*
|
|
8323
|
-
* This source code is licensed under the MIT license found in the
|
|
8324
|
-
* LICENSE file in the root directory of this source tree.
|
|
8325
|
-
*/
|
|
8326
|
-
|
|
8327
|
-
if (true) {
|
|
8328
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
8329
|
-
|
|
8330
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
8331
|
-
// http://fb.me/prop-types-in-prod
|
|
8332
|
-
var throwOnDirectAccess = true;
|
|
8333
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
8334
|
-
} else {}
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
/***/ }),
|
|
8338
|
-
|
|
8339
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
8340
|
-
/*!*********************************************************************************************************!*\
|
|
8341
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
8342
|
-
\*********************************************************************************************************/
|
|
8343
|
-
/***/ ((module) => {
|
|
8344
|
-
|
|
8345
|
-
"use strict";
|
|
8346
|
-
/**
|
|
8347
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7174
|
+
* @param {Array} array The array to inspect.
|
|
7175
|
+
* @param {...*} [values] The values to exclude.
|
|
7176
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
7177
|
+
* @see _.difference, _.xor
|
|
7178
|
+
* @example
|
|
8348
7179
|
*
|
|
8349
|
-
*
|
|
8350
|
-
*
|
|
7180
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
7181
|
+
* // => [3]
|
|
8351
7182
|
*/
|
|
7183
|
+
var without = baseRest(function(array, values) {
|
|
7184
|
+
return isArrayLikeObject(array)
|
|
7185
|
+
? baseDifference(array, values)
|
|
7186
|
+
: [];
|
|
7187
|
+
});
|
|
8352
7188
|
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
8356
|
-
|
|
8357
|
-
module.exports = ReactPropTypesSecret;
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
/***/ }),
|
|
8361
|
-
|
|
8362
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
8363
|
-
/*!****************************************************************************************!*\
|
|
8364
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
8365
|
-
\****************************************************************************************/
|
|
8366
|
-
/***/ ((module) => {
|
|
8367
|
-
|
|
8368
|
-
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7189
|
+
module.exports = without;
|
|
8369
7190
|
|
|
8370
7191
|
|
|
8371
7192
|
/***/ }),
|
|
@@ -8512,214 +7333,6 @@ module.exports = function isEqual(a, b) {
|
|
|
8512
7333
|
};
|
|
8513
7334
|
|
|
8514
7335
|
|
|
8515
|
-
/***/ }),
|
|
8516
|
-
|
|
8517
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
8518
|
-
/*!******************************************************************************************************!*\
|
|
8519
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
8520
|
-
\******************************************************************************************************/
|
|
8521
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
8522
|
-
|
|
8523
|
-
"use strict";
|
|
8524
|
-
/** @license React v16.13.1
|
|
8525
|
-
* react-is.development.js
|
|
8526
|
-
*
|
|
8527
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8528
|
-
*
|
|
8529
|
-
* This source code is licensed under the MIT license found in the
|
|
8530
|
-
* LICENSE file in the root directory of this source tree.
|
|
8531
|
-
*/
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
if (true) {
|
|
8538
|
-
(function() {
|
|
8539
|
-
'use strict';
|
|
8540
|
-
|
|
8541
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
8542
|
-
// nor polyfill, then a plain number is used for performance.
|
|
8543
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
8544
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
8545
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
8546
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
8547
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
8548
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
8549
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
8550
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
8551
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
8552
|
-
|
|
8553
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
8554
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
8555
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
8556
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
8557
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
8558
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
8559
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
8560
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
8561
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
8562
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
8563
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
8564
|
-
|
|
8565
|
-
function isValidElementType(type) {
|
|
8566
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
8567
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
8568
|
-
}
|
|
8569
|
-
|
|
8570
|
-
function typeOf(object) {
|
|
8571
|
-
if (typeof object === 'object' && object !== null) {
|
|
8572
|
-
var $$typeof = object.$$typeof;
|
|
8573
|
-
|
|
8574
|
-
switch ($$typeof) {
|
|
8575
|
-
case REACT_ELEMENT_TYPE:
|
|
8576
|
-
var type = object.type;
|
|
8577
|
-
|
|
8578
|
-
switch (type) {
|
|
8579
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
8580
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
8581
|
-
case REACT_FRAGMENT_TYPE:
|
|
8582
|
-
case REACT_PROFILER_TYPE:
|
|
8583
|
-
case REACT_STRICT_MODE_TYPE:
|
|
8584
|
-
case REACT_SUSPENSE_TYPE:
|
|
8585
|
-
return type;
|
|
8586
|
-
|
|
8587
|
-
default:
|
|
8588
|
-
var $$typeofType = type && type.$$typeof;
|
|
8589
|
-
|
|
8590
|
-
switch ($$typeofType) {
|
|
8591
|
-
case REACT_CONTEXT_TYPE:
|
|
8592
|
-
case REACT_FORWARD_REF_TYPE:
|
|
8593
|
-
case REACT_LAZY_TYPE:
|
|
8594
|
-
case REACT_MEMO_TYPE:
|
|
8595
|
-
case REACT_PROVIDER_TYPE:
|
|
8596
|
-
return $$typeofType;
|
|
8597
|
-
|
|
8598
|
-
default:
|
|
8599
|
-
return $$typeof;
|
|
8600
|
-
}
|
|
8601
|
-
|
|
8602
|
-
}
|
|
8603
|
-
|
|
8604
|
-
case REACT_PORTAL_TYPE:
|
|
8605
|
-
return $$typeof;
|
|
8606
|
-
}
|
|
8607
|
-
}
|
|
8608
|
-
|
|
8609
|
-
return undefined;
|
|
8610
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
8611
|
-
|
|
8612
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
8613
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
8614
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
8615
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
8616
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
8617
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
8618
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
8619
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
8620
|
-
var Memo = REACT_MEMO_TYPE;
|
|
8621
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
8622
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
8623
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
8624
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
8625
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
8626
|
-
|
|
8627
|
-
function isAsyncMode(object) {
|
|
8628
|
-
{
|
|
8629
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
8630
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
8631
|
-
|
|
8632
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
8633
|
-
}
|
|
8634
|
-
}
|
|
8635
|
-
|
|
8636
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
8637
|
-
}
|
|
8638
|
-
function isConcurrentMode(object) {
|
|
8639
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
8640
|
-
}
|
|
8641
|
-
function isContextConsumer(object) {
|
|
8642
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
8643
|
-
}
|
|
8644
|
-
function isContextProvider(object) {
|
|
8645
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
8646
|
-
}
|
|
8647
|
-
function isElement(object) {
|
|
8648
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
8649
|
-
}
|
|
8650
|
-
function isForwardRef(object) {
|
|
8651
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
8652
|
-
}
|
|
8653
|
-
function isFragment(object) {
|
|
8654
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
8655
|
-
}
|
|
8656
|
-
function isLazy(object) {
|
|
8657
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
8658
|
-
}
|
|
8659
|
-
function isMemo(object) {
|
|
8660
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
8661
|
-
}
|
|
8662
|
-
function isPortal(object) {
|
|
8663
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
8664
|
-
}
|
|
8665
|
-
function isProfiler(object) {
|
|
8666
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
8667
|
-
}
|
|
8668
|
-
function isStrictMode(object) {
|
|
8669
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
8670
|
-
}
|
|
8671
|
-
function isSuspense(object) {
|
|
8672
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
8673
|
-
}
|
|
8674
|
-
|
|
8675
|
-
exports.AsyncMode = AsyncMode;
|
|
8676
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
8677
|
-
exports.ContextConsumer = ContextConsumer;
|
|
8678
|
-
exports.ContextProvider = ContextProvider;
|
|
8679
|
-
exports.Element = Element;
|
|
8680
|
-
exports.ForwardRef = ForwardRef;
|
|
8681
|
-
exports.Fragment = Fragment;
|
|
8682
|
-
exports.Lazy = Lazy;
|
|
8683
|
-
exports.Memo = Memo;
|
|
8684
|
-
exports.Portal = Portal;
|
|
8685
|
-
exports.Profiler = Profiler;
|
|
8686
|
-
exports.StrictMode = StrictMode;
|
|
8687
|
-
exports.Suspense = Suspense;
|
|
8688
|
-
exports.isAsyncMode = isAsyncMode;
|
|
8689
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
8690
|
-
exports.isContextConsumer = isContextConsumer;
|
|
8691
|
-
exports.isContextProvider = isContextProvider;
|
|
8692
|
-
exports.isElement = isElement;
|
|
8693
|
-
exports.isForwardRef = isForwardRef;
|
|
8694
|
-
exports.isFragment = isFragment;
|
|
8695
|
-
exports.isLazy = isLazy;
|
|
8696
|
-
exports.isMemo = isMemo;
|
|
8697
|
-
exports.isPortal = isPortal;
|
|
8698
|
-
exports.isProfiler = isProfiler;
|
|
8699
|
-
exports.isStrictMode = isStrictMode;
|
|
8700
|
-
exports.isSuspense = isSuspense;
|
|
8701
|
-
exports.isValidElementType = isValidElementType;
|
|
8702
|
-
exports.typeOf = typeOf;
|
|
8703
|
-
})();
|
|
8704
|
-
}
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
/***/ }),
|
|
8708
|
-
|
|
8709
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
8710
|
-
/*!***********************************************************************************!*\
|
|
8711
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
8712
|
-
\***********************************************************************************/
|
|
8713
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8714
|
-
|
|
8715
|
-
"use strict";
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
if (false) {} else {
|
|
8719
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js");
|
|
8720
|
-
}
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
7336
|
/***/ }),
|
|
8724
7337
|
|
|
8725
7338
|
/***/ "../../victory-brush-container/es/brush-helpers.js":
|
|
@@ -9293,13 +7906,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9293
7906
|
/* harmony export */ });
|
|
9294
7907
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
9295
7908
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9296
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9297
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
9298
7909
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9299
7910
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9300
7911
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
|
|
9301
7912
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
9302
|
-
/* harmony import */ var
|
|
7913
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
|
|
9303
7914
|
/* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./brush-helpers */ "../../victory-brush-container/es/brush-helpers.js");
|
|
9304
7915
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
9305
7916
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -9347,7 +7958,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9347
7958
|
|
|
9348
7959
|
|
|
9349
7960
|
|
|
9350
|
-
|
|
9351
7961
|
var brushContainerMixin = function (base) {
|
|
9352
7962
|
var _class;
|
|
9353
7963
|
|
|
@@ -9485,36 +8095,17 @@ var brushContainerMixin = function (base) {
|
|
|
9485
8095
|
}]);
|
|
9486
8096
|
|
|
9487
8097
|
return VictoryBrushContainer;
|
|
9488
|
-
}(base), _class.displayName = "VictoryBrushContainer", _class.
|
|
9489
|
-
allowDrag: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
9490
|
-
allowDraw: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
9491
|
-
allowResize: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
9492
|
-
brushComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
9493
|
-
brushDimension: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["x", "y"]),
|
|
9494
|
-
brushDomain: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
9495
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().array),
|
|
9496
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().array)
|
|
9497
|
-
}),
|
|
9498
|
-
brushStyle: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
9499
|
-
defaultBrushArea: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["all", "disable", "none", "move"]),
|
|
9500
|
-
disable: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
9501
|
-
handleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
9502
|
-
handleStyle: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
9503
|
-
handleWidth: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9504
|
-
onBrushCleared: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
9505
|
-
onBrushDomainChange: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
9506
|
-
onBrushDomainChangeEnd: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)
|
|
9507
|
-
}), _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
8098
|
+
}(base), _class.displayName = "VictoryBrushContainer", _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
9508
8099
|
allowDrag: true,
|
|
9509
8100
|
allowDraw: true,
|
|
9510
8101
|
allowResize: true,
|
|
9511
|
-
brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8102
|
+
brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Rect, null),
|
|
9512
8103
|
brushStyle: {
|
|
9513
8104
|
stroke: "transparent",
|
|
9514
8105
|
fill: "black",
|
|
9515
8106
|
fillOpacity: 0.1
|
|
9516
8107
|
},
|
|
9517
|
-
handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8108
|
+
handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Rect, null),
|
|
9518
8109
|
handleStyle: {
|
|
9519
8110
|
stroke: "transparent",
|
|
9520
8111
|
fill: "transparent"
|
|
@@ -9573,14 +8164,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9573
8164
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9574
8165
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9575
8166
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9576
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9577
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
9578
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
9579
8167
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9580
8168
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
9581
|
-
/* harmony import */ var
|
|
9582
|
-
/* harmony import */ var
|
|
9583
|
-
/* harmony import */ var
|
|
8169
|
+
/* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "../../victory-core/es/victory-primitives/clip-path.js");
|
|
8170
|
+
/* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-primitives/circle */ "../../victory-core/es/victory-primitives/circle.js");
|
|
8171
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
9584
8172
|
|
|
9585
8173
|
|
|
9586
8174
|
|
|
@@ -9629,8 +8217,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9629
8217
|
|
|
9630
8218
|
|
|
9631
8219
|
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
8220
|
var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
|
|
9635
8221
|
_inherits(VictoryClipContainer, _React$Component);
|
|
9636
8222
|
|
|
@@ -9821,39 +8407,10 @@ var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
9821
8407
|
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
9822
8408
|
VictoryClipContainer.displayName = "VictoryClipContainer";
|
|
9823
8409
|
VictoryClipContainer.role = "container";
|
|
9824
|
-
VictoryClipContainer.propTypes = {
|
|
9825
|
-
"aria-label": (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
9826
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node)]),
|
|
9827
|
-
circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
9828
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
9829
|
-
clipHeight: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
|
|
9830
|
-
clipId: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]),
|
|
9831
|
-
clipPadding: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
9832
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9833
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9834
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9835
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
9836
|
-
}),
|
|
9837
|
-
clipPathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
9838
|
-
clipWidth: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
|
|
9839
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
9840
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
9841
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
9842
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
|
|
9843
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative
|
|
9844
|
-
}),
|
|
9845
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
9846
|
-
radius: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
|
|
9847
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
9848
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9849
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
9850
|
-
translateX: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
9851
|
-
translateY: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
9852
|
-
};
|
|
9853
8410
|
VictoryClipContainer.defaultProps = {
|
|
9854
|
-
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(
|
|
9855
|
-
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(
|
|
9856
|
-
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(
|
|
8411
|
+
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_6__.Circle, null),
|
|
8412
|
+
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_7__.Rect, null),
|
|
8413
|
+
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_8__.ClipPath, null),
|
|
9857
8414
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
|
|
9858
8415
|
};
|
|
9859
8416
|
|
|
@@ -9880,12 +8437,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9880
8437
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
9881
8438
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
9882
8439
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
9883
|
-
/* harmony import */ var
|
|
9884
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
9885
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
9886
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8440
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
9887
8441
|
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9888
|
-
/* harmony import */ var
|
|
8442
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
9889
8443
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9890
8444
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
9891
8445
|
|
|
@@ -9927,8 +8481,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9927
8481
|
|
|
9928
8482
|
|
|
9929
8483
|
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
8484
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
9933
8485
|
_inherits(VictoryContainer, _React$Component);
|
|
9934
8486
|
|
|
@@ -10121,44 +8673,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
10121
8673
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
10122
8674
|
VictoryContainer.displayName = "VictoryContainer";
|
|
10123
8675
|
VictoryContainer.role = "container";
|
|
10124
|
-
VictoryContainer.propTypes = {
|
|
10125
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10126
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10127
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
|
|
10128
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10129
|
-
containerId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
10130
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
10131
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10132
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
10133
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
10134
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10135
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
10136
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
10137
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
10138
|
-
}),
|
|
10139
|
-
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
10140
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
10141
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10142
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
10143
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
10144
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
10145
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10146
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
10147
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10148
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
10149
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
10150
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
10151
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
10152
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
10153
|
-
};
|
|
10154
8676
|
VictoryContainer.defaultProps = {
|
|
10155
8677
|
className: "VictoryContainer",
|
|
10156
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
8678
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
10157
8679
|
portalZIndex: 99,
|
|
10158
8680
|
responsive: true,
|
|
10159
8681
|
role: "img"
|
|
10160
8682
|
};
|
|
10161
|
-
VictoryContainer.contextType =
|
|
8683
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
10162
8684
|
|
|
10163
8685
|
/***/ }),
|
|
10164
8686
|
|
|
@@ -10177,8 +8699,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10177
8699
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
10178
8700
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
10179
8701
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
10180
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10181
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
10182
8702
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
10183
8703
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
10184
8704
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
@@ -10188,7 +8708,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10188
8708
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10189
8709
|
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
10190
8710
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
10191
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
10192
8711
|
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
10193
8712
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
10194
8713
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
@@ -10224,8 +8743,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
10224
8743
|
|
|
10225
8744
|
|
|
10226
8745
|
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
8746
|
var defaultStyles = {
|
|
10230
8747
|
fill: "#252525",
|
|
10231
8748
|
fontSize: 14,
|
|
@@ -10744,55 +9261,6 @@ var VictoryLabel = function (initialProps) {
|
|
|
10744
9261
|
VictoryLabel.displayName = "VictoryLabel";
|
|
10745
9262
|
VictoryLabel.role = "label";
|
|
10746
9263
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
10747
|
-
VictoryLabel.propTypes = {
|
|
10748
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
10749
|
-
angle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10750
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10751
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
10752
|
-
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
10753
|
-
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
10754
|
-
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10755
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
10756
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
|
|
10757
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
|
|
10758
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
10759
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10760
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
10761
|
-
dx: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10762
|
-
dy: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10763
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
10764
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
10765
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10766
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
10767
|
-
inline: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
10768
|
-
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
10769
|
-
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
10770
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
10771
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired,
|
|
10772
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired
|
|
10773
|
-
}),
|
|
10774
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
10775
|
-
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
10776
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
10777
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale,
|
|
10778
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale
|
|
10779
|
-
}),
|
|
10780
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
10781
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10782
|
-
text: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
10783
|
-
// @ts-expect-error Function is not assignable to string"
|
|
10784
|
-
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10785
|
-
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
10786
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
10787
|
-
transform: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10788
|
-
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
10789
|
-
// @ts-expect-error Function is not assignable to string"
|
|
10790
|
-
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
10791
|
-
// @ts-expect-error Number is not assignable to string
|
|
10792
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
10793
|
-
// @ts-expect-error Number is not assignable to string
|
|
10794
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)])
|
|
10795
|
-
};
|
|
10796
9264
|
|
|
10797
9265
|
/***/ }),
|
|
10798
9266
|
|
|
@@ -10835,9 +9303,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10835
9303
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
10836
9304
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
10837
9305
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
10838
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10839
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
10840
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
10841
9306
|
|
|
10842
9307
|
|
|
10843
9308
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -10861,8 +9326,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10861
9326
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10862
9327
|
|
|
10863
9328
|
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
9329
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
10867
9330
|
_inherits(Portal, _ref);
|
|
10868
9331
|
|
|
@@ -10921,13 +9384,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
10921
9384
|
return Portal;
|
|
10922
9385
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
10923
9386
|
Portal.displayName = "Portal";
|
|
10924
|
-
Portal.propTypes = {
|
|
10925
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
10926
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
10927
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
10928
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
10929
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
10930
|
-
};
|
|
10931
9387
|
|
|
10932
9388
|
/***/ }),
|
|
10933
9389
|
|
|
@@ -10946,11 +9402,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10946
9402
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
10947
9403
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
10948
9404
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
10949
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10950
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
10951
9405
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
10952
9406
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10953
|
-
/* harmony import */ var
|
|
9407
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
10954
9408
|
|
|
10955
9409
|
|
|
10956
9410
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -10977,7 +9431,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10977
9431
|
|
|
10978
9432
|
|
|
10979
9433
|
|
|
10980
|
-
|
|
10981
9434
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
10982
9435
|
_inherits(VictoryPortal, _React$Component);
|
|
10983
9436
|
|
|
@@ -11063,14 +9516,10 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
11063
9516
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
11064
9517
|
VictoryPortal.displayName = "VictoryPortal";
|
|
11065
9518
|
VictoryPortal.role = "portal";
|
|
11066
|
-
VictoryPortal.propTypes = {
|
|
11067
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
11068
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
11069
|
-
};
|
|
11070
9519
|
VictoryPortal.defaultProps = {
|
|
11071
9520
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
11072
9521
|
};
|
|
11073
|
-
VictoryPortal.contextType =
|
|
9522
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalContext;
|
|
11074
9523
|
|
|
11075
9524
|
/***/ }),
|
|
11076
9525
|
|
|
@@ -11168,10 +9617,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11168
9617
|
/* harmony export */ });
|
|
11169
9618
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11170
9619
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11171
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
11172
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
11173
9620
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
11174
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
11175
9621
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
11176
9622
|
function ownKeys(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; }
|
|
11177
9623
|
|
|
@@ -11183,8 +9629,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11183
9629
|
|
|
11184
9630
|
|
|
11185
9631
|
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
9632
|
var evaluateProps = function (props) {
|
|
11189
9633
|
/**
|
|
11190
9634
|
* Potential evaluated props are:
|
|
@@ -11233,14 +9677,6 @@ var LineSegment = function (initialProps) {
|
|
|
11233
9677
|
clipPath: props.clipPath
|
|
11234
9678
|
}));
|
|
11235
9679
|
};
|
|
11236
|
-
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
11237
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
11238
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
11239
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
11240
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
11241
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
11242
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
11243
|
-
});
|
|
11244
9680
|
|
|
11245
9681
|
/***/ }),
|
|
11246
9682
|
|
|
@@ -12677,155 +11113,6 @@ function getMinValue(arr) {
|
|
|
12677
11113
|
|
|
12678
11114
|
/***/ }),
|
|
12679
11115
|
|
|
12680
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
12681
|
-
/*!**********************************************************!*\
|
|
12682
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
12683
|
-
\**********************************************************/
|
|
12684
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12685
|
-
|
|
12686
|
-
"use strict";
|
|
12687
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12688
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12689
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
12690
|
-
/* harmony export */ });
|
|
12691
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
12692
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
12693
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
var dataProps = {
|
|
12697
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12698
|
-
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12699
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
12700
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
12701
|
-
})]),
|
|
12702
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12703
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12704
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12705
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12706
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12707
|
-
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
12708
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12709
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12710
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
12711
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12712
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12713
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12714
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12715
|
-
}),
|
|
12716
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12717
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12718
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
12719
|
-
};
|
|
12720
|
-
var baseProps = {
|
|
12721
|
-
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12722
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12723
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12724
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
12725
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
12726
|
-
})]),
|
|
12727
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12728
|
-
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12729
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
12730
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
12731
|
-
})]),
|
|
12732
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12733
|
-
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12734
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
12735
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
12736
|
-
})]),
|
|
12737
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12738
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12739
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
12740
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
12741
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
12742
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12743
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12744
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
12745
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12746
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12747
|
-
})),
|
|
12748
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12749
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12750
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
12751
|
-
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
12752
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12753
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
12754
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
12755
|
-
})),
|
|
12756
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12757
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12758
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12759
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12760
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12761
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12762
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12763
|
-
}),
|
|
12764
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12765
|
-
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12766
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12767
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12768
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12769
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12770
|
-
})]),
|
|
12771
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12772
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12773
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
12774
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
12775
|
-
})]),
|
|
12776
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12777
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
12778
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
12779
|
-
})]),
|
|
12780
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12781
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12782
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
12783
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
12784
|
-
}),
|
|
12785
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12786
|
-
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12787
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
12788
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
12789
|
-
})]),
|
|
12790
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12791
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12792
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
12793
|
-
};
|
|
12794
|
-
var primitiveProps = {
|
|
12795
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12796
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12797
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12798
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12799
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12800
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12801
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12802
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12803
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12804
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12805
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12806
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12807
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12808
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12809
|
-
}),
|
|
12810
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12811
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12812
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12813
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
12814
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
12815
|
-
})]),
|
|
12816
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12817
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12818
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12819
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
12820
|
-
};
|
|
12821
|
-
var CommonProps = {
|
|
12822
|
-
dataProps: dataProps,
|
|
12823
|
-
baseProps: baseProps,
|
|
12824
|
-
primitiveProps: primitiveProps
|
|
12825
|
-
};
|
|
12826
|
-
|
|
12827
|
-
/***/ }),
|
|
12828
|
-
|
|
12829
11116
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
12830
11117
|
/*!**************************************************!*\
|
|
12831
11118
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -15049,278 +13336,6 @@ function warn(message) {
|
|
|
15049
13336
|
|
|
15050
13337
|
/***/ }),
|
|
15051
13338
|
|
|
15052
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
15053
|
-
/*!********************************************************!*\
|
|
15054
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
15055
|
-
\********************************************************/
|
|
15056
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15057
|
-
|
|
15058
|
-
"use strict";
|
|
15059
|
-
__webpack_require__.r(__webpack_exports__);
|
|
15060
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15061
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
15062
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
15063
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
15064
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
15065
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
15066
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
15067
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
15068
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
15069
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
15070
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
15071
|
-
/* harmony export */ });
|
|
15072
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js");
|
|
15073
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
15074
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js");
|
|
15075
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
15076
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
15077
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
15078
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
15079
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
/**
|
|
15090
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
15091
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
15092
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
15093
|
-
* @param {Function} validator Validation function.
|
|
15094
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
15095
|
-
*/
|
|
15096
|
-
var makeChainable = function (validator) {
|
|
15097
|
-
var createChainable = function (isRequired) {
|
|
15098
|
-
return function (props, propName, componentName) {
|
|
15099
|
-
var value = props[propName];
|
|
15100
|
-
|
|
15101
|
-
if (value === undefined || value === null) {
|
|
15102
|
-
if (isRequired) {
|
|
15103
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
15104
|
-
}
|
|
15105
|
-
|
|
15106
|
-
return null;
|
|
15107
|
-
}
|
|
15108
|
-
|
|
15109
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
15110
|
-
rest[_key - 3] = arguments[_key];
|
|
15111
|
-
}
|
|
15112
|
-
|
|
15113
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15114
|
-
};
|
|
15115
|
-
};
|
|
15116
|
-
|
|
15117
|
-
var chainable = Object.assign(createChainable(false), {
|
|
15118
|
-
isRequired: createChainable(true)
|
|
15119
|
-
});
|
|
15120
|
-
return chainable;
|
|
15121
|
-
};
|
|
15122
|
-
|
|
15123
|
-
var nullConstructor = function () {
|
|
15124
|
-
return null;
|
|
15125
|
-
};
|
|
15126
|
-
|
|
15127
|
-
var undefinedConstructor = function () {
|
|
15128
|
-
return undefined;
|
|
15129
|
-
};
|
|
15130
|
-
/**
|
|
15131
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
15132
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
15133
|
-
* @param {*} value Instance to return the constructor of.
|
|
15134
|
-
* @returns {Function} Constructor of `value`.
|
|
15135
|
-
*/
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
var getConstructor = function (value) {
|
|
15139
|
-
if (value === undefined) {
|
|
15140
|
-
return undefinedConstructor;
|
|
15141
|
-
} else if (value === null) {
|
|
15142
|
-
return nullConstructor;
|
|
15143
|
-
}
|
|
15144
|
-
|
|
15145
|
-
return value.constructor;
|
|
15146
|
-
};
|
|
15147
|
-
/**
|
|
15148
|
-
* Get the name of the constructor used to create `value`, using
|
|
15149
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
15150
|
-
* "null" or "undefined", respectively.
|
|
15151
|
-
* @param {*} value Instance to return the constructor name of.
|
|
15152
|
-
* @returns {String} Name of the constructor.
|
|
15153
|
-
*/
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
var getConstructorName = function (value) {
|
|
15157
|
-
if (value === undefined) {
|
|
15158
|
-
return "undefined";
|
|
15159
|
-
} else if (value === null) {
|
|
15160
|
-
return "null";
|
|
15161
|
-
}
|
|
15162
|
-
|
|
15163
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
15164
|
-
};
|
|
15165
|
-
/**
|
|
15166
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
15167
|
-
* with `explanation` if used.
|
|
15168
|
-
* @param {Function} propType The old, deprecated propType.
|
|
15169
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
15170
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
15171
|
-
*/
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
function deprecated(propType, explanation) {
|
|
15175
|
-
return function (props, propName, componentName) {
|
|
15176
|
-
var value = props[propName];
|
|
15177
|
-
|
|
15178
|
-
if (value !== null && value !== undefined) {
|
|
15179
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
15180
|
-
}
|
|
15181
|
-
|
|
15182
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
15183
|
-
return null;
|
|
15184
|
-
};
|
|
15185
|
-
}
|
|
15186
|
-
/**
|
|
15187
|
-
* Return a new validator which returns true
|
|
15188
|
-
* if and only if all validators passed as arguments return true.
|
|
15189
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
15190
|
-
* @param {Array} validators Validation functions.
|
|
15191
|
-
* @returns {Function} Combined validator function
|
|
15192
|
-
*/
|
|
15193
|
-
|
|
15194
|
-
function allOfType(validators) {
|
|
15195
|
-
return makeChainable(function (props, propName, componentName) {
|
|
15196
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
15197
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
15198
|
-
}
|
|
15199
|
-
|
|
15200
|
-
return validators.reduce(function (result, validator) {
|
|
15201
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15202
|
-
}, null);
|
|
15203
|
-
});
|
|
15204
|
-
}
|
|
15205
|
-
/**
|
|
15206
|
-
* Check that the value is a non-negative number.
|
|
15207
|
-
*/
|
|
15208
|
-
|
|
15209
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
15210
|
-
var value = props[propName];
|
|
15211
|
-
|
|
15212
|
-
if (typeof value !== "number" || value < 0) {
|
|
15213
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
15214
|
-
}
|
|
15215
|
-
|
|
15216
|
-
return null;
|
|
15217
|
-
});
|
|
15218
|
-
/**
|
|
15219
|
-
* Check that the value is an integer.
|
|
15220
|
-
*/
|
|
15221
|
-
|
|
15222
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
15223
|
-
var value = props[propName];
|
|
15224
|
-
|
|
15225
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
15226
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
15227
|
-
}
|
|
15228
|
-
|
|
15229
|
-
return null;
|
|
15230
|
-
});
|
|
15231
|
-
/**
|
|
15232
|
-
* Check that the value is greater than zero.
|
|
15233
|
-
*/
|
|
15234
|
-
|
|
15235
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
15236
|
-
var value = props[propName];
|
|
15237
|
-
|
|
15238
|
-
if (typeof value !== "number" || value <= 0) {
|
|
15239
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
15240
|
-
}
|
|
15241
|
-
|
|
15242
|
-
return null;
|
|
15243
|
-
});
|
|
15244
|
-
/**
|
|
15245
|
-
* Check that the value is an Array of two unique values.
|
|
15246
|
-
*/
|
|
15247
|
-
|
|
15248
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
15249
|
-
var value = props[propName];
|
|
15250
|
-
|
|
15251
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
15252
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
15253
|
-
}
|
|
15254
|
-
|
|
15255
|
-
return null;
|
|
15256
|
-
});
|
|
15257
|
-
/**
|
|
15258
|
-
* Check that the value looks like a d3 `scale` function.
|
|
15259
|
-
*/
|
|
15260
|
-
|
|
15261
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
15262
|
-
var value = props[propName];
|
|
15263
|
-
|
|
15264
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
15265
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
15266
|
-
}
|
|
15267
|
-
|
|
15268
|
-
return null;
|
|
15269
|
-
});
|
|
15270
|
-
/**
|
|
15271
|
-
* Check that an array contains items of the same type.
|
|
15272
|
-
*/
|
|
15273
|
-
|
|
15274
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
15275
|
-
var values = props[propName];
|
|
15276
|
-
|
|
15277
|
-
if (!Array.isArray(values)) {
|
|
15278
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
15279
|
-
}
|
|
15280
|
-
|
|
15281
|
-
if (values.length < 2) {
|
|
15282
|
-
return null;
|
|
15283
|
-
}
|
|
15284
|
-
|
|
15285
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
15286
|
-
|
|
15287
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
15288
|
-
return comparisonConstructor !== getConstructor(value);
|
|
15289
|
-
});
|
|
15290
|
-
|
|
15291
|
-
if (typeMismatchedValue) {
|
|
15292
|
-
var constructorName = getConstructorName(values[0]);
|
|
15293
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
15294
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
15295
|
-
}
|
|
15296
|
-
|
|
15297
|
-
return null;
|
|
15298
|
-
});
|
|
15299
|
-
/**
|
|
15300
|
-
* Check that array prop length matches props.data.length
|
|
15301
|
-
*/
|
|
15302
|
-
|
|
15303
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
15304
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
15305
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
15306
|
-
}
|
|
15307
|
-
|
|
15308
|
-
return null;
|
|
15309
|
-
});
|
|
15310
|
-
/**
|
|
15311
|
-
* Check that the value is a regular expression
|
|
15312
|
-
*/
|
|
15313
|
-
|
|
15314
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
15315
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
15316
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
15317
|
-
}
|
|
15318
|
-
|
|
15319
|
-
return null;
|
|
15320
|
-
});
|
|
15321
|
-
|
|
15322
|
-
/***/ }),
|
|
15323
|
-
|
|
15324
13339
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
15325
13340
|
/*!***************************************************!*\
|
|
15326
13341
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|
|
@@ -17044,14 +15059,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17044
15059
|
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
17045
15060
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
17046
15061
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
17047
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
17048
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
17049
15062
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
17050
15063
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
17051
15064
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
17052
15065
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
17053
|
-
/* harmony import */ var
|
|
17054
|
-
/* harmony import */ var
|
|
15066
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
15067
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
|
|
17055
15068
|
/* harmony import */ var _cursor_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cursor-helpers */ "../../victory-cursor-container/es/cursor-helpers.js");
|
|
17056
15069
|
|
|
17057
15070
|
|
|
@@ -17097,7 +15110,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
17097
15110
|
|
|
17098
15111
|
|
|
17099
15112
|
|
|
17100
|
-
|
|
17101
15113
|
function cursorContainerMixin(Base) {
|
|
17102
15114
|
var _class;
|
|
17103
15115
|
|
|
@@ -17246,27 +15258,13 @@ function cursorContainerMixin(Base) {
|
|
|
17246
15258
|
}]);
|
|
17247
15259
|
|
|
17248
15260
|
return VictoryCursorContainer;
|
|
17249
|
-
}(Base), _class.displayName = "VictoryCursorContainer", _class.
|
|
17250
|
-
|
|
17251
|
-
cursorLabel: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
17252
|
-
cursorLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
17253
|
-
cursorLabelOffset: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
17254
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
17255
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
17256
|
-
})]),
|
|
17257
|
-
defaultCursorValue: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
17258
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
17259
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
17260
|
-
})]),
|
|
17261
|
-
disable: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
17262
|
-
onCursorChange: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)
|
|
17263
|
-
}), _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
17264
|
-
cursorLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryLabel, null),
|
|
15261
|
+
}(Base), _class.displayName = "VictoryCursorContainer", _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
15262
|
+
cursorLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
|
|
17265
15263
|
cursorLabelOffset: {
|
|
17266
15264
|
x: 5,
|
|
17267
15265
|
y: -10
|
|
17268
15266
|
},
|
|
17269
|
-
cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
15267
|
+
cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.LineSegment, null)
|
|
17270
15268
|
}), _class.defaultEvents = function (props) {
|
|
17271
15269
|
return [{
|
|
17272
15270
|
target: "parent",
|
|
@@ -17957,7 +15955,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
17957
15955
|
|
|
17958
15956
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
17959
15957
|
|
|
17960
|
-
/* eslint-disable react/prop-types */
|
|
17961
15958
|
|
|
17962
15959
|
|
|
17963
15960
|
|