victory-stack 36.8.6 → 36.9.1-next.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 +13 -0
- package/dist/victory-stack.js +79 -2155
- package/dist/victory-stack.min.js +1 -1
- package/es/helper-methods.d.ts +52 -52
- package/es/index.d.ts +1 -1
- package/es/victory-stack.d.ts +18 -75
- package/es/victory-stack.js +1 -21
- package/lib/helper-methods.d.ts +52 -52
- package/lib/index.d.ts +1 -1
- package/lib/victory-stack.d.ts +18 -75
- package/lib/victory-stack.js +0 -21
- package/package.json +6 -10
- package/src/victory-stack.tsx +0 -50
package/dist/victory-stack.js
CHANGED
|
@@ -341,8 +341,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
341
341
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
342
342
|
/* 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");
|
|
343
343
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
344
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
345
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
|
|
346
344
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
347
345
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
348
346
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
@@ -352,8 +350,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
352
350
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
353
351
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/wrapper.js");
|
|
354
352
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-previous-props.js");
|
|
355
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
356
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
357
353
|
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
|
|
358
354
|
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
359
355
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
@@ -372,7 +368,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
372
368
|
|
|
373
369
|
|
|
374
370
|
|
|
375
|
-
|
|
376
371
|
var fallbackProps = {
|
|
377
372
|
width: 450,
|
|
378
373
|
height: 300,
|
|
@@ -486,25 +481,6 @@ var VictoryStackBase = function (initialProps) {
|
|
|
486
481
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(container, container.props, newChildren);
|
|
487
482
|
};
|
|
488
483
|
|
|
489
|
-
VictoryStackBase.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_13__.CommonProps.baseProps), {}, {
|
|
490
|
-
bins: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_15__.nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_14___default().instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_15__.nonNegative]),
|
|
491
|
-
categories: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({
|
|
492
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)),
|
|
493
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().string))
|
|
494
|
-
})]),
|
|
495
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().node)]),
|
|
496
|
-
colorScale: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
|
|
497
|
-
fillInMissingData: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),
|
|
498
|
-
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),
|
|
499
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().element),
|
|
500
|
-
labels: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().array)]),
|
|
501
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({
|
|
502
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object),
|
|
503
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object),
|
|
504
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object)
|
|
505
|
-
}),
|
|
506
|
-
xOffset: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)
|
|
507
|
-
});
|
|
508
484
|
var componentConfig = {
|
|
509
485
|
role: "stack",
|
|
510
486
|
expectedComponents: ["groupComponent", "containerComponent", "labelComponent"],
|
|
@@ -1091,40 +1067,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1091
1067
|
module.exports = baseDifference;
|
|
1092
1068
|
|
|
1093
1069
|
|
|
1094
|
-
/***/ }),
|
|
1095
|
-
|
|
1096
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1097
|
-
/*!****************************************************************************************!*\
|
|
1098
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1099
|
-
\****************************************************************************************/
|
|
1100
|
-
/***/ ((module) => {
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1104
|
-
* support for iteratee shorthands.
|
|
1105
|
-
*
|
|
1106
|
-
* @private
|
|
1107
|
-
* @param {Array} array The array to inspect.
|
|
1108
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1109
|
-
* @param {number} fromIndex The index to search from.
|
|
1110
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1111
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1112
|
-
*/
|
|
1113
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1114
|
-
var length = array.length,
|
|
1115
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1116
|
-
|
|
1117
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1118
|
-
if (predicate(array[index], index, array)) {
|
|
1119
|
-
return index;
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
return -1;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
module.exports = baseFindIndex;
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
1070
|
/***/ }),
|
|
1129
1071
|
|
|
1130
1072
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1609,34 +1551,6 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
1609
1551
|
module.exports = baseIsMatch;
|
|
1610
1552
|
|
|
1611
1553
|
|
|
1612
|
-
/***/ }),
|
|
1613
|
-
|
|
1614
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js":
|
|
1615
|
-
/*!***************************************************************************************!*\
|
|
1616
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js ***!
|
|
1617
|
-
\***************************************************************************************/
|
|
1618
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1619
|
-
|
|
1620
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
1621
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
1622
|
-
|
|
1623
|
-
/** `Object#toString` result references. */
|
|
1624
|
-
var regexpTag = '[object RegExp]';
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* The base implementation of `_.isRegExp` without Node.js optimizations.
|
|
1628
|
-
*
|
|
1629
|
-
* @private
|
|
1630
|
-
* @param {*} value The value to check.
|
|
1631
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
1632
|
-
*/
|
|
1633
|
-
function baseIsRegExp(value) {
|
|
1634
|
-
return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
module.exports = baseIsRegExp;
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
1554
|
/***/ }),
|
|
1641
1555
|
|
|
1642
1556
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":
|
|
@@ -2184,35 +2098,6 @@ function baseToString(value) {
|
|
|
2184
2098
|
module.exports = baseToString;
|
|
2185
2099
|
|
|
2186
2100
|
|
|
2187
|
-
/***/ }),
|
|
2188
|
-
|
|
2189
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
2190
|
-
/*!***********************************************************************************!*\
|
|
2191
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js ***!
|
|
2192
|
-
\***********************************************************************************/
|
|
2193
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2194
|
-
|
|
2195
|
-
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
2196
|
-
|
|
2197
|
-
/** Used to match leading whitespace. */
|
|
2198
|
-
var reTrimStart = /^\s+/;
|
|
2199
|
-
|
|
2200
|
-
/**
|
|
2201
|
-
* The base implementation of `_.trim`.
|
|
2202
|
-
*
|
|
2203
|
-
* @private
|
|
2204
|
-
* @param {string} string The string to trim.
|
|
2205
|
-
* @returns {string} Returns the trimmed string.
|
|
2206
|
-
*/
|
|
2207
|
-
function baseTrim(string) {
|
|
2208
|
-
return string
|
|
2209
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2210
|
-
: string;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
module.exports = baseTrim;
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
2101
|
/***/ }),
|
|
2217
2102
|
|
|
2218
2103
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2579,41 +2464,6 @@ function createBaseFor(fromRight) {
|
|
|
2579
2464
|
module.exports = createBaseFor;
|
|
2580
2465
|
|
|
2581
2466
|
|
|
2582
|
-
/***/ }),
|
|
2583
|
-
|
|
2584
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
2585
|
-
/*!*************************************************************************************!*\
|
|
2586
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
2587
|
-
\*************************************************************************************/
|
|
2588
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2589
|
-
|
|
2590
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
2591
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
2592
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
2593
|
-
|
|
2594
|
-
/**
|
|
2595
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
2596
|
-
*
|
|
2597
|
-
* @private
|
|
2598
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
2599
|
-
* @returns {Function} Returns the new find function.
|
|
2600
|
-
*/
|
|
2601
|
-
function createFind(findIndexFunc) {
|
|
2602
|
-
return function(collection, predicate, fromIndex) {
|
|
2603
|
-
var iterable = Object(collection);
|
|
2604
|
-
if (!isArrayLike(collection)) {
|
|
2605
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
2606
|
-
collection = keys(collection);
|
|
2607
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
2608
|
-
}
|
|
2609
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2610
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
2611
|
-
};
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
module.exports = createFind;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
2467
|
/***/ }),
|
|
2618
2468
|
|
|
2619
2469
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js":
|
|
@@ -3838,35 +3688,6 @@ function identity(value) {
|
|
|
3838
3688
|
module.exports = identity;
|
|
3839
3689
|
|
|
3840
3690
|
|
|
3841
|
-
/***/ }),
|
|
3842
|
-
|
|
3843
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
3844
|
-
/*!******************************************************************************************!*\
|
|
3845
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js ***!
|
|
3846
|
-
\******************************************************************************************/
|
|
3847
|
-
/***/ ((module) => {
|
|
3848
|
-
|
|
3849
|
-
/** Used to match a single whitespace character. */
|
|
3850
|
-
var reWhitespace = /\s/;
|
|
3851
|
-
|
|
3852
|
-
/**
|
|
3853
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
3854
|
-
* character of `string`.
|
|
3855
|
-
*
|
|
3856
|
-
* @private
|
|
3857
|
-
* @param {string} string The string to inspect.
|
|
3858
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
3859
|
-
*/
|
|
3860
|
-
function trimmedEndIndex(string) {
|
|
3861
|
-
var index = string.length;
|
|
3862
|
-
|
|
3863
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
3864
|
-
return index;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
module.exports = trimmedEndIndex;
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
3691
|
/***/ }),
|
|
3871
3692
|
|
|
3872
3693
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js":
|
|
@@ -4067,123 +3888,6 @@ function eq(value, other) {
|
|
|
4067
3888
|
module.exports = eq;
|
|
4068
3889
|
|
|
4069
3890
|
|
|
4070
|
-
/***/ }),
|
|
4071
|
-
|
|
4072
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
4073
|
-
/*!******************************************************************************!*\
|
|
4074
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
4075
|
-
\******************************************************************************/
|
|
4076
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4077
|
-
|
|
4078
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
4079
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
4080
|
-
|
|
4081
|
-
/**
|
|
4082
|
-
* Iterates over elements of `collection`, returning the first element
|
|
4083
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
4084
|
-
* arguments: (value, index|key, collection).
|
|
4085
|
-
*
|
|
4086
|
-
* @static
|
|
4087
|
-
* @memberOf _
|
|
4088
|
-
* @since 0.1.0
|
|
4089
|
-
* @category Collection
|
|
4090
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
4091
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4092
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4093
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
4094
|
-
* @example
|
|
4095
|
-
*
|
|
4096
|
-
* var users = [
|
|
4097
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
4098
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
4099
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
4100
|
-
* ];
|
|
4101
|
-
*
|
|
4102
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
4103
|
-
* // => object for 'barney'
|
|
4104
|
-
*
|
|
4105
|
-
* // The `_.matches` iteratee shorthand.
|
|
4106
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
4107
|
-
* // => object for 'pebbles'
|
|
4108
|
-
*
|
|
4109
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4110
|
-
* _.find(users, ['active', false]);
|
|
4111
|
-
* // => object for 'fred'
|
|
4112
|
-
*
|
|
4113
|
-
* // The `_.property` iteratee shorthand.
|
|
4114
|
-
* _.find(users, 'active');
|
|
4115
|
-
* // => object for 'barney'
|
|
4116
|
-
*/
|
|
4117
|
-
var find = createFind(findIndex);
|
|
4118
|
-
|
|
4119
|
-
module.exports = find;
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
/***/ }),
|
|
4123
|
-
|
|
4124
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
4125
|
-
/*!***********************************************************************************!*\
|
|
4126
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
4127
|
-
\***********************************************************************************/
|
|
4128
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4129
|
-
|
|
4130
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
4131
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
4132
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
4133
|
-
|
|
4134
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4135
|
-
var nativeMax = Math.max;
|
|
4136
|
-
|
|
4137
|
-
/**
|
|
4138
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
4139
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
4140
|
-
*
|
|
4141
|
-
* @static
|
|
4142
|
-
* @memberOf _
|
|
4143
|
-
* @since 1.1.0
|
|
4144
|
-
* @category Array
|
|
4145
|
-
* @param {Array} array The array to inspect.
|
|
4146
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4147
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4148
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
4149
|
-
* @example
|
|
4150
|
-
*
|
|
4151
|
-
* var users = [
|
|
4152
|
-
* { 'user': 'barney', 'active': false },
|
|
4153
|
-
* { 'user': 'fred', 'active': false },
|
|
4154
|
-
* { 'user': 'pebbles', 'active': true }
|
|
4155
|
-
* ];
|
|
4156
|
-
*
|
|
4157
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
4158
|
-
* // => 0
|
|
4159
|
-
*
|
|
4160
|
-
* // The `_.matches` iteratee shorthand.
|
|
4161
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
4162
|
-
* // => 1
|
|
4163
|
-
*
|
|
4164
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4165
|
-
* _.findIndex(users, ['active', false]);
|
|
4166
|
-
* // => 0
|
|
4167
|
-
*
|
|
4168
|
-
* // The `_.property` iteratee shorthand.
|
|
4169
|
-
* _.findIndex(users, 'active');
|
|
4170
|
-
* // => 2
|
|
4171
|
-
*/
|
|
4172
|
-
function findIndex(array, predicate, fromIndex) {
|
|
4173
|
-
var length = array == null ? 0 : array.length;
|
|
4174
|
-
if (!length) {
|
|
4175
|
-
return -1;
|
|
4176
|
-
}
|
|
4177
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4178
|
-
if (index < 0) {
|
|
4179
|
-
index = nativeMax(length + index, 0);
|
|
4180
|
-
}
|
|
4181
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4184
|
-
module.exports = findIndex;
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
3891
|
/***/ }),
|
|
4188
3892
|
|
|
4189
3893
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -5093,43 +4797,6 @@ function isPlainObject(value) {
|
|
|
5093
4797
|
module.exports = isPlainObject;
|
|
5094
4798
|
|
|
5095
4799
|
|
|
5096
|
-
/***/ }),
|
|
5097
|
-
|
|
5098
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js":
|
|
5099
|
-
/*!**********************************************************************************!*\
|
|
5100
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js ***!
|
|
5101
|
-
\**********************************************************************************/
|
|
5102
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5103
|
-
|
|
5104
|
-
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js"),
|
|
5105
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
5106
|
-
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js");
|
|
5107
|
-
|
|
5108
|
-
/* Node.js helper references. */
|
|
5109
|
-
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
5110
|
-
|
|
5111
|
-
/**
|
|
5112
|
-
* Checks if `value` is classified as a `RegExp` object.
|
|
5113
|
-
*
|
|
5114
|
-
* @static
|
|
5115
|
-
* @memberOf _
|
|
5116
|
-
* @since 0.1.0
|
|
5117
|
-
* @category Lang
|
|
5118
|
-
* @param {*} value The value to check.
|
|
5119
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
5120
|
-
* @example
|
|
5121
|
-
*
|
|
5122
|
-
* _.isRegExp(/abc/);
|
|
5123
|
-
* // => true
|
|
5124
|
-
*
|
|
5125
|
-
* _.isRegExp('/abc/');
|
|
5126
|
-
* // => false
|
|
5127
|
-
*/
|
|
5128
|
-
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
5129
|
-
|
|
5130
|
-
module.exports = isRegExp;
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
4800
|
/***/ }),
|
|
5134
4801
|
|
|
5135
4802
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -5633,259 +5300,87 @@ module.exports = sortedUniq;
|
|
|
5633
5300
|
|
|
5634
5301
|
/***/ }),
|
|
5635
5302
|
|
|
5636
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5303
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5637
5304
|
/*!**********************************************************************************!*\
|
|
5638
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5305
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5639
5306
|
\**********************************************************************************/
|
|
5640
5307
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5641
5308
|
|
|
5642
|
-
var
|
|
5643
|
-
|
|
5644
|
-
/** Used as references for various `Number` constants. */
|
|
5645
|
-
var INFINITY = 1 / 0,
|
|
5646
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
5309
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5647
5310
|
|
|
5648
5311
|
/**
|
|
5649
|
-
* Converts `value` to a
|
|
5312
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5313
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5650
5314
|
*
|
|
5651
5315
|
* @static
|
|
5652
5316
|
* @memberOf _
|
|
5653
|
-
* @since 4.
|
|
5317
|
+
* @since 4.0.0
|
|
5654
5318
|
* @category Lang
|
|
5655
5319
|
* @param {*} value The value to convert.
|
|
5656
|
-
* @returns {
|
|
5320
|
+
* @returns {string} Returns the converted string.
|
|
5657
5321
|
* @example
|
|
5658
5322
|
*
|
|
5659
|
-
* _.
|
|
5660
|
-
* // =>
|
|
5661
|
-
*
|
|
5662
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
5663
|
-
* // => 5e-324
|
|
5323
|
+
* _.toString(null);
|
|
5324
|
+
* // => ''
|
|
5664
5325
|
*
|
|
5665
|
-
* _.
|
|
5666
|
-
* // =>
|
|
5326
|
+
* _.toString(-0);
|
|
5327
|
+
* // => '-0'
|
|
5667
5328
|
*
|
|
5668
|
-
* _.
|
|
5669
|
-
* // => 3
|
|
5329
|
+
* _.toString([1, 2, 3]);
|
|
5330
|
+
* // => '1,2,3'
|
|
5670
5331
|
*/
|
|
5671
|
-
function
|
|
5672
|
-
|
|
5673
|
-
return value === 0 ? value : 0;
|
|
5674
|
-
}
|
|
5675
|
-
value = toNumber(value);
|
|
5676
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
5677
|
-
var sign = (value < 0 ? -1 : 1);
|
|
5678
|
-
return sign * MAX_INTEGER;
|
|
5679
|
-
}
|
|
5680
|
-
return value === value ? value : 0;
|
|
5332
|
+
function toString(value) {
|
|
5333
|
+
return value == null ? '' : baseToString(value);
|
|
5681
5334
|
}
|
|
5682
5335
|
|
|
5683
|
-
module.exports =
|
|
5336
|
+
module.exports = toString;
|
|
5684
5337
|
|
|
5685
5338
|
|
|
5686
5339
|
/***/ }),
|
|
5687
5340
|
|
|
5688
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5689
|
-
|
|
5690
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5691
|
-
|
|
5341
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5342
|
+
/*!******************************************************************************!*\
|
|
5343
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5344
|
+
\******************************************************************************/
|
|
5692
5345
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5693
5346
|
|
|
5694
|
-
var
|
|
5347
|
+
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5695
5348
|
|
|
5696
5349
|
/**
|
|
5697
|
-
*
|
|
5698
|
-
*
|
|
5699
|
-
*
|
|
5700
|
-
*
|
|
5350
|
+
* Creates a duplicate-free version of an array, using
|
|
5351
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5352
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
5353
|
+
* is kept. The order of result values is determined by the order they occur
|
|
5354
|
+
* in the array.
|
|
5701
5355
|
*
|
|
5702
5356
|
* @static
|
|
5703
5357
|
* @memberOf _
|
|
5704
|
-
* @since
|
|
5705
|
-
* @category
|
|
5706
|
-
* @param {
|
|
5707
|
-
* @returns {
|
|
5358
|
+
* @since 0.1.0
|
|
5359
|
+
* @category Array
|
|
5360
|
+
* @param {Array} array The array to inspect.
|
|
5361
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
5708
5362
|
* @example
|
|
5709
5363
|
*
|
|
5710
|
-
* _.
|
|
5711
|
-
* // =>
|
|
5712
|
-
*
|
|
5713
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
5714
|
-
* // => 0
|
|
5715
|
-
*
|
|
5716
|
-
* _.toInteger(Infinity);
|
|
5717
|
-
* // => 1.7976931348623157e+308
|
|
5718
|
-
*
|
|
5719
|
-
* _.toInteger('3.2');
|
|
5720
|
-
* // => 3
|
|
5364
|
+
* _.uniq([2, 1, 2]);
|
|
5365
|
+
* // => [2, 1]
|
|
5721
5366
|
*/
|
|
5722
|
-
function
|
|
5723
|
-
|
|
5724
|
-
remainder = result % 1;
|
|
5725
|
-
|
|
5726
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
5367
|
+
function uniq(array) {
|
|
5368
|
+
return (array && array.length) ? baseUniq(array) : [];
|
|
5727
5369
|
}
|
|
5728
5370
|
|
|
5729
|
-
module.exports =
|
|
5371
|
+
module.exports = uniq;
|
|
5730
5372
|
|
|
5731
5373
|
|
|
5732
5374
|
/***/ }),
|
|
5733
5375
|
|
|
5734
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5735
|
-
|
|
5736
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5737
|
-
|
|
5376
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js":
|
|
5377
|
+
/*!********************************************************************************!*\
|
|
5378
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js ***!
|
|
5379
|
+
\********************************************************************************/
|
|
5738
5380
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5739
5381
|
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5742
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
5743
|
-
|
|
5744
|
-
/** Used as references for various `Number` constants. */
|
|
5745
|
-
var NAN = 0 / 0;
|
|
5746
|
-
|
|
5747
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
5748
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5749
|
-
|
|
5750
|
-
/** Used to detect binary string values. */
|
|
5751
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
5752
|
-
|
|
5753
|
-
/** Used to detect octal string values. */
|
|
5754
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
5755
|
-
|
|
5756
|
-
/** Built-in method references without a dependency on `root`. */
|
|
5757
|
-
var freeParseInt = parseInt;
|
|
5758
|
-
|
|
5759
|
-
/**
|
|
5760
|
-
* Converts `value` to a number.
|
|
5761
|
-
*
|
|
5762
|
-
* @static
|
|
5763
|
-
* @memberOf _
|
|
5764
|
-
* @since 4.0.0
|
|
5765
|
-
* @category Lang
|
|
5766
|
-
* @param {*} value The value to process.
|
|
5767
|
-
* @returns {number} Returns the number.
|
|
5768
|
-
* @example
|
|
5769
|
-
*
|
|
5770
|
-
* _.toNumber(3.2);
|
|
5771
|
-
* // => 3.2
|
|
5772
|
-
*
|
|
5773
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
5774
|
-
* // => 5e-324
|
|
5775
|
-
*
|
|
5776
|
-
* _.toNumber(Infinity);
|
|
5777
|
-
* // => Infinity
|
|
5778
|
-
*
|
|
5779
|
-
* _.toNumber('3.2');
|
|
5780
|
-
* // => 3.2
|
|
5781
|
-
*/
|
|
5782
|
-
function toNumber(value) {
|
|
5783
|
-
if (typeof value == 'number') {
|
|
5784
|
-
return value;
|
|
5785
|
-
}
|
|
5786
|
-
if (isSymbol(value)) {
|
|
5787
|
-
return NAN;
|
|
5788
|
-
}
|
|
5789
|
-
if (isObject(value)) {
|
|
5790
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
5791
|
-
value = isObject(other) ? (other + '') : other;
|
|
5792
|
-
}
|
|
5793
|
-
if (typeof value != 'string') {
|
|
5794
|
-
return value === 0 ? value : +value;
|
|
5795
|
-
}
|
|
5796
|
-
value = baseTrim(value);
|
|
5797
|
-
var isBinary = reIsBinary.test(value);
|
|
5798
|
-
return (isBinary || reIsOctal.test(value))
|
|
5799
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
5800
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
5801
|
-
}
|
|
5802
|
-
|
|
5803
|
-
module.exports = toNumber;
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
/***/ }),
|
|
5807
|
-
|
|
5808
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5809
|
-
/*!**********************************************************************************!*\
|
|
5810
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5811
|
-
\**********************************************************************************/
|
|
5812
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5813
|
-
|
|
5814
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5815
|
-
|
|
5816
|
-
/**
|
|
5817
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
5818
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
5819
|
-
*
|
|
5820
|
-
* @static
|
|
5821
|
-
* @memberOf _
|
|
5822
|
-
* @since 4.0.0
|
|
5823
|
-
* @category Lang
|
|
5824
|
-
* @param {*} value The value to convert.
|
|
5825
|
-
* @returns {string} Returns the converted string.
|
|
5826
|
-
* @example
|
|
5827
|
-
*
|
|
5828
|
-
* _.toString(null);
|
|
5829
|
-
* // => ''
|
|
5830
|
-
*
|
|
5831
|
-
* _.toString(-0);
|
|
5832
|
-
* // => '-0'
|
|
5833
|
-
*
|
|
5834
|
-
* _.toString([1, 2, 3]);
|
|
5835
|
-
* // => '1,2,3'
|
|
5836
|
-
*/
|
|
5837
|
-
function toString(value) {
|
|
5838
|
-
return value == null ? '' : baseToString(value);
|
|
5839
|
-
}
|
|
5840
|
-
|
|
5841
|
-
module.exports = toString;
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
/***/ }),
|
|
5845
|
-
|
|
5846
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5847
|
-
/*!******************************************************************************!*\
|
|
5848
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5849
|
-
\******************************************************************************/
|
|
5850
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5851
|
-
|
|
5852
|
-
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5853
|
-
|
|
5854
|
-
/**
|
|
5855
|
-
* Creates a duplicate-free version of an array, using
|
|
5856
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5857
|
-
* for equality comparisons, in which only the first occurrence of each element
|
|
5858
|
-
* is kept. The order of result values is determined by the order they occur
|
|
5859
|
-
* in the array.
|
|
5860
|
-
*
|
|
5861
|
-
* @static
|
|
5862
|
-
* @memberOf _
|
|
5863
|
-
* @since 0.1.0
|
|
5864
|
-
* @category Array
|
|
5865
|
-
* @param {Array} array The array to inspect.
|
|
5866
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
5867
|
-
* @example
|
|
5868
|
-
*
|
|
5869
|
-
* _.uniq([2, 1, 2]);
|
|
5870
|
-
* // => [2, 1]
|
|
5871
|
-
*/
|
|
5872
|
-
function uniq(array) {
|
|
5873
|
-
return (array && array.length) ? baseUniq(array) : [];
|
|
5874
|
-
}
|
|
5875
|
-
|
|
5876
|
-
module.exports = uniq;
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
/***/ }),
|
|
5880
|
-
|
|
5881
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js":
|
|
5882
|
-
/*!********************************************************************************!*\
|
|
5883
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js ***!
|
|
5884
|
-
\********************************************************************************/
|
|
5885
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5886
|
-
|
|
5887
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
5888
|
-
baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5382
|
+
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
5383
|
+
baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5889
5384
|
|
|
5890
5385
|
/**
|
|
5891
5386
|
* This method is like `_.uniq` except that it accepts `iteratee` which is
|
|
@@ -5994,945 +5489,50 @@ var baseValues = __webpack_require__(/*! ./_baseValues */ "../../../node_modules
|
|
|
5994
5489
|
*/
|
|
5995
5490
|
function values(object) {
|
|
5996
5491
|
return object == null ? [] : baseValues(object, keys(object));
|
|
5997
|
-
}
|
|
5998
|
-
|
|
5999
|
-
module.exports = values;
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
/***/ }),
|
|
6003
|
-
|
|
6004
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/without.js":
|
|
6005
|
-
/*!*********************************************************************************!*\
|
|
6006
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/without.js ***!
|
|
6007
|
-
\*********************************************************************************/
|
|
6008
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6009
|
-
|
|
6010
|
-
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
6011
|
-
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
6012
|
-
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
6013
|
-
|
|
6014
|
-
/**
|
|
6015
|
-
* Creates an array excluding all given values using
|
|
6016
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
6017
|
-
* for equality comparisons.
|
|
6018
|
-
*
|
|
6019
|
-
* **Note:** Unlike `_.pull`, this method returns a new array.
|
|
6020
|
-
*
|
|
6021
|
-
* @static
|
|
6022
|
-
* @memberOf _
|
|
6023
|
-
* @since 0.1.0
|
|
6024
|
-
* @category Array
|
|
6025
|
-
* @param {Array} array The array to inspect.
|
|
6026
|
-
* @param {...*} [values] The values to exclude.
|
|
6027
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
6028
|
-
* @see _.difference, _.xor
|
|
6029
|
-
* @example
|
|
6030
|
-
*
|
|
6031
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
6032
|
-
* // => [3]
|
|
6033
|
-
*/
|
|
6034
|
-
var without = baseRest(function(array, values) {
|
|
6035
|
-
return isArrayLikeObject(array)
|
|
6036
|
-
? baseDifference(array, values)
|
|
6037
|
-
: [];
|
|
6038
|
-
});
|
|
6039
|
-
|
|
6040
|
-
module.exports = without;
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
/***/ }),
|
|
6044
|
-
|
|
6045
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
6046
|
-
/*!*******************************************************************************************!*\
|
|
6047
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
6048
|
-
\*******************************************************************************************/
|
|
6049
|
-
/***/ ((module) => {
|
|
6050
|
-
|
|
6051
|
-
"use strict";
|
|
6052
|
-
/*
|
|
6053
|
-
object-assign
|
|
6054
|
-
(c) Sindre Sorhus
|
|
6055
|
-
@license MIT
|
|
6056
|
-
*/
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
/* eslint-disable no-unused-vars */
|
|
6060
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6061
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6062
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6063
|
-
|
|
6064
|
-
function toObject(val) {
|
|
6065
|
-
if (val === null || val === undefined) {
|
|
6066
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
6067
|
-
}
|
|
6068
|
-
|
|
6069
|
-
return Object(val);
|
|
6070
|
-
}
|
|
6071
|
-
|
|
6072
|
-
function shouldUseNative() {
|
|
6073
|
-
try {
|
|
6074
|
-
if (!Object.assign) {
|
|
6075
|
-
return false;
|
|
6076
|
-
}
|
|
6077
|
-
|
|
6078
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
6079
|
-
|
|
6080
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
6081
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
6082
|
-
test1[5] = 'de';
|
|
6083
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
6084
|
-
return false;
|
|
6085
|
-
}
|
|
6086
|
-
|
|
6087
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6088
|
-
var test2 = {};
|
|
6089
|
-
for (var i = 0; i < 10; i++) {
|
|
6090
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
6091
|
-
}
|
|
6092
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
6093
|
-
return test2[n];
|
|
6094
|
-
});
|
|
6095
|
-
if (order2.join('') !== '0123456789') {
|
|
6096
|
-
return false;
|
|
6097
|
-
}
|
|
6098
|
-
|
|
6099
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6100
|
-
var test3 = {};
|
|
6101
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
6102
|
-
test3[letter] = letter;
|
|
6103
|
-
});
|
|
6104
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
6105
|
-
'abcdefghijklmnopqrst') {
|
|
6106
|
-
return false;
|
|
6107
|
-
}
|
|
6108
|
-
|
|
6109
|
-
return true;
|
|
6110
|
-
} catch (err) {
|
|
6111
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
6112
|
-
return false;
|
|
6113
|
-
}
|
|
6114
|
-
}
|
|
6115
|
-
|
|
6116
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
6117
|
-
var from;
|
|
6118
|
-
var to = toObject(target);
|
|
6119
|
-
var symbols;
|
|
6120
|
-
|
|
6121
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
6122
|
-
from = Object(arguments[s]);
|
|
6123
|
-
|
|
6124
|
-
for (var key in from) {
|
|
6125
|
-
if (hasOwnProperty.call(from, key)) {
|
|
6126
|
-
to[key] = from[key];
|
|
6127
|
-
}
|
|
6128
|
-
}
|
|
6129
|
-
|
|
6130
|
-
if (getOwnPropertySymbols) {
|
|
6131
|
-
symbols = getOwnPropertySymbols(from);
|
|
6132
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
6133
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
6134
|
-
to[symbols[i]] = from[symbols[i]];
|
|
6135
|
-
}
|
|
6136
|
-
}
|
|
6137
|
-
}
|
|
6138
|
-
}
|
|
6139
|
-
|
|
6140
|
-
return to;
|
|
6141
|
-
};
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
/***/ }),
|
|
6145
|
-
|
|
6146
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
6147
|
-
/*!***********************************************************************************************!*\
|
|
6148
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
6149
|
-
\***********************************************************************************************/
|
|
6150
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6151
|
-
|
|
6152
|
-
"use strict";
|
|
6153
|
-
/**
|
|
6154
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6155
|
-
*
|
|
6156
|
-
* This source code is licensed under the MIT license found in the
|
|
6157
|
-
* LICENSE file in the root directory of this source tree.
|
|
6158
|
-
*/
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
var printWarning = function() {};
|
|
6163
|
-
|
|
6164
|
-
if (true) {
|
|
6165
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6166
|
-
var loggedTypeFailures = {};
|
|
6167
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6168
|
-
|
|
6169
|
-
printWarning = function(text) {
|
|
6170
|
-
var message = 'Warning: ' + text;
|
|
6171
|
-
if (typeof console !== 'undefined') {
|
|
6172
|
-
console.error(message);
|
|
6173
|
-
}
|
|
6174
|
-
try {
|
|
6175
|
-
// --- Welcome to debugging React ---
|
|
6176
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6177
|
-
// to find the callsite that caused this warning to fire.
|
|
6178
|
-
throw new Error(message);
|
|
6179
|
-
} catch (x) { /**/ }
|
|
6180
|
-
};
|
|
6181
|
-
}
|
|
6182
|
-
|
|
6183
|
-
/**
|
|
6184
|
-
* Assert that the values match with the type specs.
|
|
6185
|
-
* Error messages are memorized and will only be shown once.
|
|
6186
|
-
*
|
|
6187
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
6188
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
6189
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
6190
|
-
* @param {string} componentName Name of the component for error messages.
|
|
6191
|
-
* @param {?Function} getStack Returns the component stack.
|
|
6192
|
-
* @private
|
|
6193
|
-
*/
|
|
6194
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
6195
|
-
if (true) {
|
|
6196
|
-
for (var typeSpecName in typeSpecs) {
|
|
6197
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
6198
|
-
var error;
|
|
6199
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
6200
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
6201
|
-
// After these have been cleaned up, we'll let them throw.
|
|
6202
|
-
try {
|
|
6203
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
6204
|
-
// behavior as without this statement except with a better message.
|
|
6205
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6206
|
-
var err = Error(
|
|
6207
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6208
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6209
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6210
|
-
);
|
|
6211
|
-
err.name = 'Invariant Violation';
|
|
6212
|
-
throw err;
|
|
6213
|
-
}
|
|
6214
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
6215
|
-
} catch (ex) {
|
|
6216
|
-
error = ex;
|
|
6217
|
-
}
|
|
6218
|
-
if (error && !(error instanceof Error)) {
|
|
6219
|
-
printWarning(
|
|
6220
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
6221
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
6222
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
6223
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
6224
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
6225
|
-
'shape all require an argument).'
|
|
6226
|
-
);
|
|
6227
|
-
}
|
|
6228
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
6229
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
6230
|
-
// same error.
|
|
6231
|
-
loggedTypeFailures[error.message] = true;
|
|
6232
|
-
|
|
6233
|
-
var stack = getStack ? getStack() : '';
|
|
6234
|
-
|
|
6235
|
-
printWarning(
|
|
6236
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
6237
|
-
);
|
|
6238
|
-
}
|
|
6239
|
-
}
|
|
6240
|
-
}
|
|
6241
|
-
}
|
|
6242
|
-
}
|
|
6243
|
-
|
|
6244
|
-
/**
|
|
6245
|
-
* Resets warning cache when testing.
|
|
6246
|
-
*
|
|
6247
|
-
* @private
|
|
6248
|
-
*/
|
|
6249
|
-
checkPropTypes.resetWarningCache = function() {
|
|
6250
|
-
if (true) {
|
|
6251
|
-
loggedTypeFailures = {};
|
|
6252
|
-
}
|
|
6253
|
-
}
|
|
6254
|
-
|
|
6255
|
-
module.exports = checkPropTypes;
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
/***/ }),
|
|
6259
|
-
|
|
6260
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
6261
|
-
/*!********************************************************************************************************!*\
|
|
6262
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
6263
|
-
\********************************************************************************************************/
|
|
6264
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6265
|
-
|
|
6266
|
-
"use strict";
|
|
6267
|
-
/**
|
|
6268
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6269
|
-
*
|
|
6270
|
-
* This source code is licensed under the MIT license found in the
|
|
6271
|
-
* LICENSE file in the root directory of this source tree.
|
|
6272
|
-
*/
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6277
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
6278
|
-
|
|
6279
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6280
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6281
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
6282
|
-
|
|
6283
|
-
var printWarning = function() {};
|
|
6284
|
-
|
|
6285
|
-
if (true) {
|
|
6286
|
-
printWarning = function(text) {
|
|
6287
|
-
var message = 'Warning: ' + text;
|
|
6288
|
-
if (typeof console !== 'undefined') {
|
|
6289
|
-
console.error(message);
|
|
6290
|
-
}
|
|
6291
|
-
try {
|
|
6292
|
-
// --- Welcome to debugging React ---
|
|
6293
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6294
|
-
// to find the callsite that caused this warning to fire.
|
|
6295
|
-
throw new Error(message);
|
|
6296
|
-
} catch (x) {}
|
|
6297
|
-
};
|
|
6298
|
-
}
|
|
6299
|
-
|
|
6300
|
-
function emptyFunctionThatReturnsNull() {
|
|
6301
|
-
return null;
|
|
6302
|
-
}
|
|
6303
|
-
|
|
6304
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
6305
|
-
/* global Symbol */
|
|
6306
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
6307
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
6308
|
-
|
|
6309
|
-
/**
|
|
6310
|
-
* Returns the iterator method function contained on the iterable object.
|
|
6311
|
-
*
|
|
6312
|
-
* Be sure to invoke the function with the iterable as context:
|
|
6313
|
-
*
|
|
6314
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
6315
|
-
* if (iteratorFn) {
|
|
6316
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
6317
|
-
* ...
|
|
6318
|
-
* }
|
|
6319
|
-
*
|
|
6320
|
-
* @param {?object} maybeIterable
|
|
6321
|
-
* @return {?function}
|
|
6322
|
-
*/
|
|
6323
|
-
function getIteratorFn(maybeIterable) {
|
|
6324
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
6325
|
-
if (typeof iteratorFn === 'function') {
|
|
6326
|
-
return iteratorFn;
|
|
6327
|
-
}
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
|
-
/**
|
|
6331
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
6332
|
-
* supplied to React components. Example usage:
|
|
6333
|
-
*
|
|
6334
|
-
* var Props = require('ReactPropTypes');
|
|
6335
|
-
* var MyArticle = React.createClass({
|
|
6336
|
-
* propTypes: {
|
|
6337
|
-
* // An optional string prop named "description".
|
|
6338
|
-
* description: Props.string,
|
|
6339
|
-
*
|
|
6340
|
-
* // A required enum prop named "category".
|
|
6341
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
6342
|
-
*
|
|
6343
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
6344
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
6345
|
-
* },
|
|
6346
|
-
* render: function() { ... }
|
|
6347
|
-
* });
|
|
6348
|
-
*
|
|
6349
|
-
* A more formal specification of how these methods are used:
|
|
6350
|
-
*
|
|
6351
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
6352
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
6353
|
-
*
|
|
6354
|
-
* Each and every declaration produces a function with the same signature. This
|
|
6355
|
-
* allows the creation of custom validation functions. For example:
|
|
6356
|
-
*
|
|
6357
|
-
* var MyLink = React.createClass({
|
|
6358
|
-
* propTypes: {
|
|
6359
|
-
* // An optional string or URI prop named "href".
|
|
6360
|
-
* href: function(props, propName, componentName) {
|
|
6361
|
-
* var propValue = props[propName];
|
|
6362
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
6363
|
-
* !(propValue instanceof URI)) {
|
|
6364
|
-
* return new Error(
|
|
6365
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
6366
|
-
* componentName
|
|
6367
|
-
* );
|
|
6368
|
-
* }
|
|
6369
|
-
* }
|
|
6370
|
-
* },
|
|
6371
|
-
* render: function() {...}
|
|
6372
|
-
* });
|
|
6373
|
-
*
|
|
6374
|
-
* @internal
|
|
6375
|
-
*/
|
|
6376
|
-
|
|
6377
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
6378
|
-
|
|
6379
|
-
// Important!
|
|
6380
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6381
|
-
var ReactPropTypes = {
|
|
6382
|
-
array: createPrimitiveTypeChecker('array'),
|
|
6383
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6384
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
6385
|
-
func: createPrimitiveTypeChecker('function'),
|
|
6386
|
-
number: createPrimitiveTypeChecker('number'),
|
|
6387
|
-
object: createPrimitiveTypeChecker('object'),
|
|
6388
|
-
string: createPrimitiveTypeChecker('string'),
|
|
6389
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
6390
|
-
|
|
6391
|
-
any: createAnyTypeChecker(),
|
|
6392
|
-
arrayOf: createArrayOfTypeChecker,
|
|
6393
|
-
element: createElementTypeChecker(),
|
|
6394
|
-
elementType: createElementTypeTypeChecker(),
|
|
6395
|
-
instanceOf: createInstanceTypeChecker,
|
|
6396
|
-
node: createNodeChecker(),
|
|
6397
|
-
objectOf: createObjectOfTypeChecker,
|
|
6398
|
-
oneOf: createEnumTypeChecker,
|
|
6399
|
-
oneOfType: createUnionTypeChecker,
|
|
6400
|
-
shape: createShapeTypeChecker,
|
|
6401
|
-
exact: createStrictShapeTypeChecker,
|
|
6402
|
-
};
|
|
6403
|
-
|
|
6404
|
-
/**
|
|
6405
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6406
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6407
|
-
*/
|
|
6408
|
-
/*eslint-disable no-self-compare*/
|
|
6409
|
-
function is(x, y) {
|
|
6410
|
-
// SameValue algorithm
|
|
6411
|
-
if (x === y) {
|
|
6412
|
-
// Steps 1-5, 7-10
|
|
6413
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6414
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
6415
|
-
} else {
|
|
6416
|
-
// Step 6.a: NaN == NaN
|
|
6417
|
-
return x !== x && y !== y;
|
|
6418
|
-
}
|
|
6419
|
-
}
|
|
6420
|
-
/*eslint-enable no-self-compare*/
|
|
6421
|
-
|
|
6422
|
-
/**
|
|
6423
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
6424
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
6425
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
6426
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
6427
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
6428
|
-
*/
|
|
6429
|
-
function PropTypeError(message, data) {
|
|
6430
|
-
this.message = message;
|
|
6431
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
6432
|
-
this.stack = '';
|
|
6433
|
-
}
|
|
6434
|
-
// Make `instanceof Error` still work for returned errors.
|
|
6435
|
-
PropTypeError.prototype = Error.prototype;
|
|
6436
|
-
|
|
6437
|
-
function createChainableTypeChecker(validate) {
|
|
6438
|
-
if (true) {
|
|
6439
|
-
var manualPropTypeCallCache = {};
|
|
6440
|
-
var manualPropTypeWarningCount = 0;
|
|
6441
|
-
}
|
|
6442
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
6443
|
-
componentName = componentName || ANONYMOUS;
|
|
6444
|
-
propFullName = propFullName || propName;
|
|
6445
|
-
|
|
6446
|
-
if (secret !== ReactPropTypesSecret) {
|
|
6447
|
-
if (throwOnDirectAccess) {
|
|
6448
|
-
// New behavior only for users of `prop-types` package
|
|
6449
|
-
var err = new Error(
|
|
6450
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6451
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6452
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
6453
|
-
);
|
|
6454
|
-
err.name = 'Invariant Violation';
|
|
6455
|
-
throw err;
|
|
6456
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
6457
|
-
// Old behavior for people using React.PropTypes
|
|
6458
|
-
var cacheKey = componentName + ':' + propName;
|
|
6459
|
-
if (
|
|
6460
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
6461
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6462
|
-
manualPropTypeWarningCount < 3
|
|
6463
|
-
) {
|
|
6464
|
-
printWarning(
|
|
6465
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
6466
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6467
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
6468
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6469
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6470
|
-
);
|
|
6471
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
6472
|
-
manualPropTypeWarningCount++;
|
|
6473
|
-
}
|
|
6474
|
-
}
|
|
6475
|
-
}
|
|
6476
|
-
if (props[propName] == null) {
|
|
6477
|
-
if (isRequired) {
|
|
6478
|
-
if (props[propName] === null) {
|
|
6479
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
6480
|
-
}
|
|
6481
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
6482
|
-
}
|
|
6483
|
-
return null;
|
|
6484
|
-
} else {
|
|
6485
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
6486
|
-
}
|
|
6487
|
-
}
|
|
6488
|
-
|
|
6489
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
6490
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
6491
|
-
|
|
6492
|
-
return chainedCheckType;
|
|
6493
|
-
}
|
|
6494
|
-
|
|
6495
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
6496
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
6497
|
-
var propValue = props[propName];
|
|
6498
|
-
var propType = getPropType(propValue);
|
|
6499
|
-
if (propType !== expectedType) {
|
|
6500
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
6501
|
-
// check, but we can offer a more precise error message here rather than
|
|
6502
|
-
// 'of type `object`'.
|
|
6503
|
-
var preciseType = getPreciseType(propValue);
|
|
6504
|
-
|
|
6505
|
-
return new PropTypeError(
|
|
6506
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6507
|
-
{expectedType: expectedType}
|
|
6508
|
-
);
|
|
6509
|
-
}
|
|
6510
|
-
return null;
|
|
6511
|
-
}
|
|
6512
|
-
return createChainableTypeChecker(validate);
|
|
6513
|
-
}
|
|
6514
|
-
|
|
6515
|
-
function createAnyTypeChecker() {
|
|
6516
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6517
|
-
}
|
|
6518
|
-
|
|
6519
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
6520
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6521
|
-
if (typeof typeChecker !== 'function') {
|
|
6522
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
6523
|
-
}
|
|
6524
|
-
var propValue = props[propName];
|
|
6525
|
-
if (!Array.isArray(propValue)) {
|
|
6526
|
-
var propType = getPropType(propValue);
|
|
6527
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
6528
|
-
}
|
|
6529
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
6530
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
6531
|
-
if (error instanceof Error) {
|
|
6532
|
-
return error;
|
|
6533
|
-
}
|
|
6534
|
-
}
|
|
6535
|
-
return null;
|
|
6536
|
-
}
|
|
6537
|
-
return createChainableTypeChecker(validate);
|
|
6538
|
-
}
|
|
6539
|
-
|
|
6540
|
-
function createElementTypeChecker() {
|
|
6541
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6542
|
-
var propValue = props[propName];
|
|
6543
|
-
if (!isValidElement(propValue)) {
|
|
6544
|
-
var propType = getPropType(propValue);
|
|
6545
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
6546
|
-
}
|
|
6547
|
-
return null;
|
|
6548
|
-
}
|
|
6549
|
-
return createChainableTypeChecker(validate);
|
|
6550
|
-
}
|
|
6551
|
-
|
|
6552
|
-
function createElementTypeTypeChecker() {
|
|
6553
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6554
|
-
var propValue = props[propName];
|
|
6555
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
6556
|
-
var propType = getPropType(propValue);
|
|
6557
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6558
|
-
}
|
|
6559
|
-
return null;
|
|
6560
|
-
}
|
|
6561
|
-
return createChainableTypeChecker(validate);
|
|
6562
|
-
}
|
|
6563
|
-
|
|
6564
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
6565
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6566
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
6567
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
6568
|
-
var actualClassName = getClassName(props[propName]);
|
|
6569
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
6570
|
-
}
|
|
6571
|
-
return null;
|
|
6572
|
-
}
|
|
6573
|
-
return createChainableTypeChecker(validate);
|
|
6574
|
-
}
|
|
6575
|
-
|
|
6576
|
-
function createEnumTypeChecker(expectedValues) {
|
|
6577
|
-
if (!Array.isArray(expectedValues)) {
|
|
6578
|
-
if (true) {
|
|
6579
|
-
if (arguments.length > 1) {
|
|
6580
|
-
printWarning(
|
|
6581
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6582
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6583
|
-
);
|
|
6584
|
-
} else {
|
|
6585
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6586
|
-
}
|
|
6587
|
-
}
|
|
6588
|
-
return emptyFunctionThatReturnsNull;
|
|
6589
|
-
}
|
|
6590
|
-
|
|
6591
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6592
|
-
var propValue = props[propName];
|
|
6593
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
6594
|
-
if (is(propValue, expectedValues[i])) {
|
|
6595
|
-
return null;
|
|
6596
|
-
}
|
|
6597
|
-
}
|
|
6598
|
-
|
|
6599
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6600
|
-
var type = getPreciseType(value);
|
|
6601
|
-
if (type === 'symbol') {
|
|
6602
|
-
return String(value);
|
|
6603
|
-
}
|
|
6604
|
-
return value;
|
|
6605
|
-
});
|
|
6606
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6607
|
-
}
|
|
6608
|
-
return createChainableTypeChecker(validate);
|
|
6609
|
-
}
|
|
6610
|
-
|
|
6611
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
6612
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6613
|
-
if (typeof typeChecker !== 'function') {
|
|
6614
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
6615
|
-
}
|
|
6616
|
-
var propValue = props[propName];
|
|
6617
|
-
var propType = getPropType(propValue);
|
|
6618
|
-
if (propType !== 'object') {
|
|
6619
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6620
|
-
}
|
|
6621
|
-
for (var key in propValue) {
|
|
6622
|
-
if (has(propValue, key)) {
|
|
6623
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6624
|
-
if (error instanceof Error) {
|
|
6625
|
-
return error;
|
|
6626
|
-
}
|
|
6627
|
-
}
|
|
6628
|
-
}
|
|
6629
|
-
return null;
|
|
6630
|
-
}
|
|
6631
|
-
return createChainableTypeChecker(validate);
|
|
6632
|
-
}
|
|
6633
|
-
|
|
6634
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6635
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6636
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
6637
|
-
return emptyFunctionThatReturnsNull;
|
|
6638
|
-
}
|
|
6639
|
-
|
|
6640
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6641
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6642
|
-
if (typeof checker !== 'function') {
|
|
6643
|
-
printWarning(
|
|
6644
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6645
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6646
|
-
);
|
|
6647
|
-
return emptyFunctionThatReturnsNull;
|
|
6648
|
-
}
|
|
6649
|
-
}
|
|
6650
|
-
|
|
6651
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6652
|
-
var expectedTypes = [];
|
|
6653
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6654
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6655
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6656
|
-
if (checkerResult == null) {
|
|
6657
|
-
return null;
|
|
6658
|
-
}
|
|
6659
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6660
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
6661
|
-
}
|
|
6662
|
-
}
|
|
6663
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6664
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6665
|
-
}
|
|
6666
|
-
return createChainableTypeChecker(validate);
|
|
6667
|
-
}
|
|
6668
|
-
|
|
6669
|
-
function createNodeChecker() {
|
|
6670
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6671
|
-
if (!isNode(props[propName])) {
|
|
6672
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
6673
|
-
}
|
|
6674
|
-
return null;
|
|
6675
|
-
}
|
|
6676
|
-
return createChainableTypeChecker(validate);
|
|
6677
|
-
}
|
|
6678
|
-
|
|
6679
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6680
|
-
return new PropTypeError(
|
|
6681
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6682
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6683
|
-
);
|
|
6684
|
-
}
|
|
6685
|
-
|
|
6686
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
6687
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6688
|
-
var propValue = props[propName];
|
|
6689
|
-
var propType = getPropType(propValue);
|
|
6690
|
-
if (propType !== 'object') {
|
|
6691
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6692
|
-
}
|
|
6693
|
-
for (var key in shapeTypes) {
|
|
6694
|
-
var checker = shapeTypes[key];
|
|
6695
|
-
if (typeof checker !== 'function') {
|
|
6696
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6697
|
-
}
|
|
6698
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6699
|
-
if (error) {
|
|
6700
|
-
return error;
|
|
6701
|
-
}
|
|
6702
|
-
}
|
|
6703
|
-
return null;
|
|
6704
|
-
}
|
|
6705
|
-
return createChainableTypeChecker(validate);
|
|
6706
|
-
}
|
|
6707
|
-
|
|
6708
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
6709
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6710
|
-
var propValue = props[propName];
|
|
6711
|
-
var propType = getPropType(propValue);
|
|
6712
|
-
if (propType !== 'object') {
|
|
6713
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6714
|
-
}
|
|
6715
|
-
// We need to check all keys in case some are required but missing from props.
|
|
6716
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6717
|
-
for (var key in allKeys) {
|
|
6718
|
-
var checker = shapeTypes[key];
|
|
6719
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6720
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6721
|
-
}
|
|
6722
|
-
if (!checker) {
|
|
6723
|
-
return new PropTypeError(
|
|
6724
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6725
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6726
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6727
|
-
);
|
|
6728
|
-
}
|
|
6729
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6730
|
-
if (error) {
|
|
6731
|
-
return error;
|
|
6732
|
-
}
|
|
6733
|
-
}
|
|
6734
|
-
return null;
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
|
-
return createChainableTypeChecker(validate);
|
|
6738
|
-
}
|
|
6739
|
-
|
|
6740
|
-
function isNode(propValue) {
|
|
6741
|
-
switch (typeof propValue) {
|
|
6742
|
-
case 'number':
|
|
6743
|
-
case 'string':
|
|
6744
|
-
case 'undefined':
|
|
6745
|
-
return true;
|
|
6746
|
-
case 'boolean':
|
|
6747
|
-
return !propValue;
|
|
6748
|
-
case 'object':
|
|
6749
|
-
if (Array.isArray(propValue)) {
|
|
6750
|
-
return propValue.every(isNode);
|
|
6751
|
-
}
|
|
6752
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
6753
|
-
return true;
|
|
6754
|
-
}
|
|
6755
|
-
|
|
6756
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
6757
|
-
if (iteratorFn) {
|
|
6758
|
-
var iterator = iteratorFn.call(propValue);
|
|
6759
|
-
var step;
|
|
6760
|
-
if (iteratorFn !== propValue.entries) {
|
|
6761
|
-
while (!(step = iterator.next()).done) {
|
|
6762
|
-
if (!isNode(step.value)) {
|
|
6763
|
-
return false;
|
|
6764
|
-
}
|
|
6765
|
-
}
|
|
6766
|
-
} else {
|
|
6767
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
6768
|
-
while (!(step = iterator.next()).done) {
|
|
6769
|
-
var entry = step.value;
|
|
6770
|
-
if (entry) {
|
|
6771
|
-
if (!isNode(entry[1])) {
|
|
6772
|
-
return false;
|
|
6773
|
-
}
|
|
6774
|
-
}
|
|
6775
|
-
}
|
|
6776
|
-
}
|
|
6777
|
-
} else {
|
|
6778
|
-
return false;
|
|
6779
|
-
}
|
|
6780
|
-
|
|
6781
|
-
return true;
|
|
6782
|
-
default:
|
|
6783
|
-
return false;
|
|
6784
|
-
}
|
|
6785
|
-
}
|
|
6786
|
-
|
|
6787
|
-
function isSymbol(propType, propValue) {
|
|
6788
|
-
// Native Symbol.
|
|
6789
|
-
if (propType === 'symbol') {
|
|
6790
|
-
return true;
|
|
6791
|
-
}
|
|
6792
|
-
|
|
6793
|
-
// falsy value can't be a Symbol
|
|
6794
|
-
if (!propValue) {
|
|
6795
|
-
return false;
|
|
6796
|
-
}
|
|
6797
|
-
|
|
6798
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6799
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6800
|
-
return true;
|
|
6801
|
-
}
|
|
6802
|
-
|
|
6803
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
6804
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
6805
|
-
return true;
|
|
6806
|
-
}
|
|
6807
|
-
|
|
6808
|
-
return false;
|
|
6809
|
-
}
|
|
6810
|
-
|
|
6811
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
6812
|
-
function getPropType(propValue) {
|
|
6813
|
-
var propType = typeof propValue;
|
|
6814
|
-
if (Array.isArray(propValue)) {
|
|
6815
|
-
return 'array';
|
|
6816
|
-
}
|
|
6817
|
-
if (propValue instanceof RegExp) {
|
|
6818
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
6819
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
6820
|
-
// passes PropTypes.object.
|
|
6821
|
-
return 'object';
|
|
6822
|
-
}
|
|
6823
|
-
if (isSymbol(propType, propValue)) {
|
|
6824
|
-
return 'symbol';
|
|
6825
|
-
}
|
|
6826
|
-
return propType;
|
|
6827
|
-
}
|
|
6828
|
-
|
|
6829
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
6830
|
-
// See `createPrimitiveTypeChecker`.
|
|
6831
|
-
function getPreciseType(propValue) {
|
|
6832
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
6833
|
-
return '' + propValue;
|
|
6834
|
-
}
|
|
6835
|
-
var propType = getPropType(propValue);
|
|
6836
|
-
if (propType === 'object') {
|
|
6837
|
-
if (propValue instanceof Date) {
|
|
6838
|
-
return 'date';
|
|
6839
|
-
} else if (propValue instanceof RegExp) {
|
|
6840
|
-
return 'regexp';
|
|
6841
|
-
}
|
|
6842
|
-
}
|
|
6843
|
-
return propType;
|
|
6844
|
-
}
|
|
6845
|
-
|
|
6846
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
6847
|
-
// For example, "undefined" or "of type array"
|
|
6848
|
-
function getPostfixForTypeWarning(value) {
|
|
6849
|
-
var type = getPreciseType(value);
|
|
6850
|
-
switch (type) {
|
|
6851
|
-
case 'array':
|
|
6852
|
-
case 'object':
|
|
6853
|
-
return 'an ' + type;
|
|
6854
|
-
case 'boolean':
|
|
6855
|
-
case 'date':
|
|
6856
|
-
case 'regexp':
|
|
6857
|
-
return 'a ' + type;
|
|
6858
|
-
default:
|
|
6859
|
-
return type;
|
|
6860
|
-
}
|
|
6861
|
-
}
|
|
6862
|
-
|
|
6863
|
-
// Returns class name of the object, if any.
|
|
6864
|
-
function getClassName(propValue) {
|
|
6865
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
6866
|
-
return ANONYMOUS;
|
|
6867
|
-
}
|
|
6868
|
-
return propValue.constructor.name;
|
|
6869
|
-
}
|
|
6870
|
-
|
|
6871
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
6872
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
6873
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
6874
|
-
|
|
6875
|
-
return ReactPropTypes;
|
|
6876
|
-
};
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
/***/ }),
|
|
6880
|
-
|
|
6881
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
6882
|
-
/*!**************************************************************************************!*\
|
|
6883
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
6884
|
-
\**************************************************************************************/
|
|
6885
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6886
|
-
|
|
6887
|
-
/**
|
|
6888
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6889
|
-
*
|
|
6890
|
-
* This source code is licensed under the MIT license found in the
|
|
6891
|
-
* LICENSE file in the root directory of this source tree.
|
|
6892
|
-
*/
|
|
6893
|
-
|
|
6894
|
-
if (true) {
|
|
6895
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
5492
|
+
}
|
|
6896
5493
|
|
|
6897
|
-
|
|
6898
|
-
// http://fb.me/prop-types-in-prod
|
|
6899
|
-
var throwOnDirectAccess = true;
|
|
6900
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
6901
|
-
} else {}
|
|
5494
|
+
module.exports = values;
|
|
6902
5495
|
|
|
6903
5496
|
|
|
6904
5497
|
/***/ }),
|
|
6905
5498
|
|
|
6906
|
-
/***/ "../../../node_modules/.pnpm/
|
|
6907
|
-
|
|
6908
|
-
!*** ../../../node_modules/.pnpm/
|
|
6909
|
-
|
|
6910
|
-
/***/ ((module) => {
|
|
5499
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/without.js":
|
|
5500
|
+
/*!*********************************************************************************!*\
|
|
5501
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/without.js ***!
|
|
5502
|
+
\*********************************************************************************/
|
|
5503
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5504
|
+
|
|
5505
|
+
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
5506
|
+
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
5507
|
+
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
6911
5508
|
|
|
6912
|
-
"use strict";
|
|
6913
5509
|
/**
|
|
6914
|
-
*
|
|
5510
|
+
* Creates an array excluding all given values using
|
|
5511
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5512
|
+
* for equality comparisons.
|
|
5513
|
+
*
|
|
5514
|
+
* **Note:** Unlike `_.pull`, this method returns a new array.
|
|
5515
|
+
*
|
|
5516
|
+
* @static
|
|
5517
|
+
* @memberOf _
|
|
5518
|
+
* @since 0.1.0
|
|
5519
|
+
* @category Array
|
|
5520
|
+
* @param {Array} array The array to inspect.
|
|
5521
|
+
* @param {...*} [values] The values to exclude.
|
|
5522
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
5523
|
+
* @see _.difference, _.xor
|
|
5524
|
+
* @example
|
|
6915
5525
|
*
|
|
6916
|
-
*
|
|
6917
|
-
*
|
|
5526
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
5527
|
+
* // => [3]
|
|
6918
5528
|
*/
|
|
5529
|
+
var without = baseRest(function(array, values) {
|
|
5530
|
+
return isArrayLikeObject(array)
|
|
5531
|
+
? baseDifference(array, values)
|
|
5532
|
+
: [];
|
|
5533
|
+
});
|
|
6919
5534
|
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
6923
|
-
|
|
6924
|
-
module.exports = ReactPropTypesSecret;
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
/***/ }),
|
|
6928
|
-
|
|
6929
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
6930
|
-
/*!****************************************************************************************!*\
|
|
6931
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
6932
|
-
\****************************************************************************************/
|
|
6933
|
-
/***/ ((module) => {
|
|
6934
|
-
|
|
6935
|
-
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5535
|
+
module.exports = without;
|
|
6936
5536
|
|
|
6937
5537
|
|
|
6938
5538
|
/***/ }),
|
|
@@ -7079,214 +5679,6 @@ module.exports = function isEqual(a, b) {
|
|
|
7079
5679
|
};
|
|
7080
5680
|
|
|
7081
5681
|
|
|
7082
|
-
/***/ }),
|
|
7083
|
-
|
|
7084
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
7085
|
-
/*!******************************************************************************************************!*\
|
|
7086
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7087
|
-
\******************************************************************************************************/
|
|
7088
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7089
|
-
|
|
7090
|
-
"use strict";
|
|
7091
|
-
/** @license React v16.13.1
|
|
7092
|
-
* react-is.development.js
|
|
7093
|
-
*
|
|
7094
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7095
|
-
*
|
|
7096
|
-
* This source code is licensed under the MIT license found in the
|
|
7097
|
-
* LICENSE file in the root directory of this source tree.
|
|
7098
|
-
*/
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
if (true) {
|
|
7105
|
-
(function() {
|
|
7106
|
-
'use strict';
|
|
7107
|
-
|
|
7108
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
7109
|
-
// nor polyfill, then a plain number is used for performance.
|
|
7110
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7111
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
7112
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
7113
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
7114
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
7115
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
7116
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
7117
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
7118
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
7119
|
-
|
|
7120
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
7121
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
7122
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
7123
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
7124
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
7125
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
7126
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
7127
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
7128
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
7129
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
7130
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
7131
|
-
|
|
7132
|
-
function isValidElementType(type) {
|
|
7133
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7134
|
-
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);
|
|
7135
|
-
}
|
|
7136
|
-
|
|
7137
|
-
function typeOf(object) {
|
|
7138
|
-
if (typeof object === 'object' && object !== null) {
|
|
7139
|
-
var $$typeof = object.$$typeof;
|
|
7140
|
-
|
|
7141
|
-
switch ($$typeof) {
|
|
7142
|
-
case REACT_ELEMENT_TYPE:
|
|
7143
|
-
var type = object.type;
|
|
7144
|
-
|
|
7145
|
-
switch (type) {
|
|
7146
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
7147
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
7148
|
-
case REACT_FRAGMENT_TYPE:
|
|
7149
|
-
case REACT_PROFILER_TYPE:
|
|
7150
|
-
case REACT_STRICT_MODE_TYPE:
|
|
7151
|
-
case REACT_SUSPENSE_TYPE:
|
|
7152
|
-
return type;
|
|
7153
|
-
|
|
7154
|
-
default:
|
|
7155
|
-
var $$typeofType = type && type.$$typeof;
|
|
7156
|
-
|
|
7157
|
-
switch ($$typeofType) {
|
|
7158
|
-
case REACT_CONTEXT_TYPE:
|
|
7159
|
-
case REACT_FORWARD_REF_TYPE:
|
|
7160
|
-
case REACT_LAZY_TYPE:
|
|
7161
|
-
case REACT_MEMO_TYPE:
|
|
7162
|
-
case REACT_PROVIDER_TYPE:
|
|
7163
|
-
return $$typeofType;
|
|
7164
|
-
|
|
7165
|
-
default:
|
|
7166
|
-
return $$typeof;
|
|
7167
|
-
}
|
|
7168
|
-
|
|
7169
|
-
}
|
|
7170
|
-
|
|
7171
|
-
case REACT_PORTAL_TYPE:
|
|
7172
|
-
return $$typeof;
|
|
7173
|
-
}
|
|
7174
|
-
}
|
|
7175
|
-
|
|
7176
|
-
return undefined;
|
|
7177
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
7178
|
-
|
|
7179
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
7180
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
7181
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
7182
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
7183
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
7184
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
7185
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
7186
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
7187
|
-
var Memo = REACT_MEMO_TYPE;
|
|
7188
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
7189
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
7190
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7191
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
7192
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
7193
|
-
|
|
7194
|
-
function isAsyncMode(object) {
|
|
7195
|
-
{
|
|
7196
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
7197
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
7198
|
-
|
|
7199
|
-
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.');
|
|
7200
|
-
}
|
|
7201
|
-
}
|
|
7202
|
-
|
|
7203
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
7204
|
-
}
|
|
7205
|
-
function isConcurrentMode(object) {
|
|
7206
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
7207
|
-
}
|
|
7208
|
-
function isContextConsumer(object) {
|
|
7209
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7210
|
-
}
|
|
7211
|
-
function isContextProvider(object) {
|
|
7212
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7213
|
-
}
|
|
7214
|
-
function isElement(object) {
|
|
7215
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7216
|
-
}
|
|
7217
|
-
function isForwardRef(object) {
|
|
7218
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7219
|
-
}
|
|
7220
|
-
function isFragment(object) {
|
|
7221
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7222
|
-
}
|
|
7223
|
-
function isLazy(object) {
|
|
7224
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7225
|
-
}
|
|
7226
|
-
function isMemo(object) {
|
|
7227
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7228
|
-
}
|
|
7229
|
-
function isPortal(object) {
|
|
7230
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7231
|
-
}
|
|
7232
|
-
function isProfiler(object) {
|
|
7233
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7234
|
-
}
|
|
7235
|
-
function isStrictMode(object) {
|
|
7236
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7237
|
-
}
|
|
7238
|
-
function isSuspense(object) {
|
|
7239
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7240
|
-
}
|
|
7241
|
-
|
|
7242
|
-
exports.AsyncMode = AsyncMode;
|
|
7243
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
7244
|
-
exports.ContextConsumer = ContextConsumer;
|
|
7245
|
-
exports.ContextProvider = ContextProvider;
|
|
7246
|
-
exports.Element = Element;
|
|
7247
|
-
exports.ForwardRef = ForwardRef;
|
|
7248
|
-
exports.Fragment = Fragment;
|
|
7249
|
-
exports.Lazy = Lazy;
|
|
7250
|
-
exports.Memo = Memo;
|
|
7251
|
-
exports.Portal = Portal;
|
|
7252
|
-
exports.Profiler = Profiler;
|
|
7253
|
-
exports.StrictMode = StrictMode;
|
|
7254
|
-
exports.Suspense = Suspense;
|
|
7255
|
-
exports.isAsyncMode = isAsyncMode;
|
|
7256
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
7257
|
-
exports.isContextConsumer = isContextConsumer;
|
|
7258
|
-
exports.isContextProvider = isContextProvider;
|
|
7259
|
-
exports.isElement = isElement;
|
|
7260
|
-
exports.isForwardRef = isForwardRef;
|
|
7261
|
-
exports.isFragment = isFragment;
|
|
7262
|
-
exports.isLazy = isLazy;
|
|
7263
|
-
exports.isMemo = isMemo;
|
|
7264
|
-
exports.isPortal = isPortal;
|
|
7265
|
-
exports.isProfiler = isProfiler;
|
|
7266
|
-
exports.isStrictMode = isStrictMode;
|
|
7267
|
-
exports.isSuspense = isSuspense;
|
|
7268
|
-
exports.isValidElementType = isValidElementType;
|
|
7269
|
-
exports.typeOf = typeOf;
|
|
7270
|
-
})();
|
|
7271
|
-
}
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
/***/ }),
|
|
7275
|
-
|
|
7276
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
7277
|
-
/*!***********************************************************************************!*\
|
|
7278
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
7279
|
-
\***********************************************************************************/
|
|
7280
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7281
|
-
|
|
7282
|
-
"use strict";
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
if (false) {} else {
|
|
7286
|
-
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");
|
|
7287
|
-
}
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
5682
|
/***/ }),
|
|
7291
5683
|
|
|
7292
5684
|
/***/ "../../victory-core/es/victory-container/victory-container.js":
|
|
@@ -7310,12 +5702,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7310
5702
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
7311
5703
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
7312
5704
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
7313
|
-
/* harmony import */ var
|
|
7314
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
7315
|
-
/* 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");
|
|
7316
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
5705
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7317
5706
|
/* 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");
|
|
7318
|
-
/* harmony import */ var
|
|
5707
|
+
/* 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");
|
|
7319
5708
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7320
5709
|
/* 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");
|
|
7321
5710
|
|
|
@@ -7357,8 +5746,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7357
5746
|
|
|
7358
5747
|
|
|
7359
5748
|
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
5749
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
7363
5750
|
_inherits(VictoryContainer, _React$Component);
|
|
7364
5751
|
|
|
@@ -7551,44 +5938,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7551
5938
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
7552
5939
|
VictoryContainer.displayName = "VictoryContainer";
|
|
7553
5940
|
VictoryContainer.role = "container";
|
|
7554
|
-
VictoryContainer.propTypes = {
|
|
7555
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7556
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7557
|
-
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)]),
|
|
7558
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7559
|
-
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)]),
|
|
7560
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
7561
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7562
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7563
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7564
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7565
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
7566
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7567
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7568
|
-
}),
|
|
7569
|
-
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)]),
|
|
7570
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7571
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7572
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7573
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
7574
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
7575
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7576
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7577
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7578
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7579
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
7580
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7581
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7582
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7583
|
-
};
|
|
7584
5941
|
VictoryContainer.defaultProps = {
|
|
7585
5942
|
className: "VictoryContainer",
|
|
7586
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
5943
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
7587
5944
|
portalZIndex: 99,
|
|
7588
5945
|
responsive: true,
|
|
7589
5946
|
role: "img"
|
|
7590
5947
|
};
|
|
7591
|
-
VictoryContainer.contextType =
|
|
5948
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
7592
5949
|
|
|
7593
5950
|
/***/ }),
|
|
7594
5951
|
|
|
@@ -7631,9 +5988,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7631
5988
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
7632
5989
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
7633
5990
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
7634
|
-
/* 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");
|
|
7635
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
7636
|
-
/* 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");
|
|
7637
5991
|
|
|
7638
5992
|
|
|
7639
5993
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -7657,8 +6011,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
7657
6011
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7658
6012
|
|
|
7659
6013
|
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
6014
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
7663
6015
|
_inherits(Portal, _ref);
|
|
7664
6016
|
|
|
@@ -7717,13 +6069,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
7717
6069
|
return Portal;
|
|
7718
6070
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
7719
6071
|
Portal.displayName = "Portal";
|
|
7720
|
-
Portal.propTypes = {
|
|
7721
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7722
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
7723
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
7724
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7725
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
7726
|
-
};
|
|
7727
6072
|
|
|
7728
6073
|
/***/ }),
|
|
7729
6074
|
|
|
@@ -8888,155 +7233,6 @@ function getMinValue(arr) {
|
|
|
8888
7233
|
|
|
8889
7234
|
/***/ }),
|
|
8890
7235
|
|
|
8891
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
8892
|
-
/*!**********************************************************!*\
|
|
8893
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
8894
|
-
\**********************************************************/
|
|
8895
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8896
|
-
|
|
8897
|
-
"use strict";
|
|
8898
|
-
__webpack_require__.r(__webpack_exports__);
|
|
8899
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8900
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
8901
|
-
/* harmony export */ });
|
|
8902
|
-
/* 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");
|
|
8903
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
8904
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
var dataProps = {
|
|
8908
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8909
|
-
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({
|
|
8910
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
8911
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
8912
|
-
})]),
|
|
8913
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8914
|
-
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)]),
|
|
8915
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
8916
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
8917
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
8918
|
-
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)]),
|
|
8919
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
8920
|
-
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))]),
|
|
8921
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
8922
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8923
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
8924
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
8925
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
8926
|
-
}),
|
|
8927
|
-
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))]),
|
|
8928
|
-
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))]),
|
|
8929
|
-
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))])
|
|
8930
|
-
};
|
|
8931
|
-
var baseProps = {
|
|
8932
|
-
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)]),
|
|
8933
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
8934
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8935
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
8936
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
8937
|
-
})]),
|
|
8938
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8939
|
-
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({
|
|
8940
|
-
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)]),
|
|
8941
|
-
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)])
|
|
8942
|
-
})]),
|
|
8943
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8944
|
-
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({
|
|
8945
|
-
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)]),
|
|
8946
|
-
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)])
|
|
8947
|
-
})]),
|
|
8948
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8949
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8950
|
-
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))]),
|
|
8951
|
-
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))])
|
|
8952
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
8953
|
-
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)]),
|
|
8954
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8955
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
8956
|
-
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)]),
|
|
8957
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
8958
|
-
})),
|
|
8959
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8960
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8961
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
8962
|
-
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)]),
|
|
8963
|
-
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)]),
|
|
8964
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
8965
|
-
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)])
|
|
8966
|
-
})),
|
|
8967
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
8968
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
8969
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
8970
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8971
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8972
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
8973
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
8974
|
-
}),
|
|
8975
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8976
|
-
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({
|
|
8977
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
8978
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
8979
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
8980
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
8981
|
-
})]),
|
|
8982
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
8983
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8984
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
8985
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
8986
|
-
})]),
|
|
8987
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8988
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
8989
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
8990
|
-
})]),
|
|
8991
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8992
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
8993
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
8994
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
8995
|
-
}),
|
|
8996
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
8997
|
-
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({
|
|
8998
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
8999
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
9000
|
-
})]),
|
|
9001
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9002
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9003
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
9004
|
-
};
|
|
9005
|
-
var primitiveProps = {
|
|
9006
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9007
|
-
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)]),
|
|
9008
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9009
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9010
|
-
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)]),
|
|
9011
|
-
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)]),
|
|
9012
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9013
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9014
|
-
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)]),
|
|
9015
|
-
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)]),
|
|
9016
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9017
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9018
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9019
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9020
|
-
}),
|
|
9021
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9022
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9023
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9024
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9025
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9026
|
-
})]),
|
|
9027
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9028
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9029
|
-
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)]),
|
|
9030
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9031
|
-
};
|
|
9032
|
-
var CommonProps = {
|
|
9033
|
-
dataProps: dataProps,
|
|
9034
|
-
baseProps: baseProps,
|
|
9035
|
-
primitiveProps: primitiveProps
|
|
9036
|
-
};
|
|
9037
|
-
|
|
9038
|
-
/***/ }),
|
|
9039
|
-
|
|
9040
7236
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
9041
7237
|
/*!**************************************************!*\
|
|
9042
7238
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -11186,278 +9382,6 @@ function warn(message) {
|
|
|
11186
9382
|
|
|
11187
9383
|
/***/ }),
|
|
11188
9384
|
|
|
11189
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
11190
|
-
/*!********************************************************!*\
|
|
11191
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
11192
|
-
\********************************************************/
|
|
11193
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
11194
|
-
|
|
11195
|
-
"use strict";
|
|
11196
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11197
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11198
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
11199
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11200
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
11201
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11202
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
11203
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11204
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
11205
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
11206
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
11207
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
11208
|
-
/* harmony export */ });
|
|
11209
|
-
/* 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");
|
|
11210
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11211
|
-
/* 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");
|
|
11212
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11213
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11214
|
-
/* 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");
|
|
11215
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11216
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
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; }
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
/**
|
|
11227
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
11228
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
11229
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
11230
|
-
* @param {Function} validator Validation function.
|
|
11231
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
11232
|
-
*/
|
|
11233
|
-
var makeChainable = function (validator) {
|
|
11234
|
-
var createChainable = function (isRequired) {
|
|
11235
|
-
return function (props, propName, componentName) {
|
|
11236
|
-
var value = props[propName];
|
|
11237
|
-
|
|
11238
|
-
if (value === undefined || value === null) {
|
|
11239
|
-
if (isRequired) {
|
|
11240
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11241
|
-
}
|
|
11242
|
-
|
|
11243
|
-
return null;
|
|
11244
|
-
}
|
|
11245
|
-
|
|
11246
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11247
|
-
rest[_key - 3] = arguments[_key];
|
|
11248
|
-
}
|
|
11249
|
-
|
|
11250
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11251
|
-
};
|
|
11252
|
-
};
|
|
11253
|
-
|
|
11254
|
-
var chainable = Object.assign(createChainable(false), {
|
|
11255
|
-
isRequired: createChainable(true)
|
|
11256
|
-
});
|
|
11257
|
-
return chainable;
|
|
11258
|
-
};
|
|
11259
|
-
|
|
11260
|
-
var nullConstructor = function () {
|
|
11261
|
-
return null;
|
|
11262
|
-
};
|
|
11263
|
-
|
|
11264
|
-
var undefinedConstructor = function () {
|
|
11265
|
-
return undefined;
|
|
11266
|
-
};
|
|
11267
|
-
/**
|
|
11268
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
11269
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
11270
|
-
* @param {*} value Instance to return the constructor of.
|
|
11271
|
-
* @returns {Function} Constructor of `value`.
|
|
11272
|
-
*/
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
var getConstructor = function (value) {
|
|
11276
|
-
if (value === undefined) {
|
|
11277
|
-
return undefinedConstructor;
|
|
11278
|
-
} else if (value === null) {
|
|
11279
|
-
return nullConstructor;
|
|
11280
|
-
}
|
|
11281
|
-
|
|
11282
|
-
return value.constructor;
|
|
11283
|
-
};
|
|
11284
|
-
/**
|
|
11285
|
-
* Get the name of the constructor used to create `value`, using
|
|
11286
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11287
|
-
* "null" or "undefined", respectively.
|
|
11288
|
-
* @param {*} value Instance to return the constructor name of.
|
|
11289
|
-
* @returns {String} Name of the constructor.
|
|
11290
|
-
*/
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
var getConstructorName = function (value) {
|
|
11294
|
-
if (value === undefined) {
|
|
11295
|
-
return "undefined";
|
|
11296
|
-
} else if (value === null) {
|
|
11297
|
-
return "null";
|
|
11298
|
-
}
|
|
11299
|
-
|
|
11300
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
11301
|
-
};
|
|
11302
|
-
/**
|
|
11303
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
11304
|
-
* with `explanation` if used.
|
|
11305
|
-
* @param {Function} propType The old, deprecated propType.
|
|
11306
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
11307
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
11308
|
-
*/
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
function deprecated(propType, explanation) {
|
|
11312
|
-
return function (props, propName, componentName) {
|
|
11313
|
-
var value = props[propName];
|
|
11314
|
-
|
|
11315
|
-
if (value !== null && value !== undefined) {
|
|
11316
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11317
|
-
}
|
|
11318
|
-
|
|
11319
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11320
|
-
return null;
|
|
11321
|
-
};
|
|
11322
|
-
}
|
|
11323
|
-
/**
|
|
11324
|
-
* Return a new validator which returns true
|
|
11325
|
-
* if and only if all validators passed as arguments return true.
|
|
11326
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
11327
|
-
* @param {Array} validators Validation functions.
|
|
11328
|
-
* @returns {Function} Combined validator function
|
|
11329
|
-
*/
|
|
11330
|
-
|
|
11331
|
-
function allOfType(validators) {
|
|
11332
|
-
return makeChainable(function (props, propName, componentName) {
|
|
11333
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
11334
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
11335
|
-
}
|
|
11336
|
-
|
|
11337
|
-
return validators.reduce(function (result, validator) {
|
|
11338
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11339
|
-
}, null);
|
|
11340
|
-
});
|
|
11341
|
-
}
|
|
11342
|
-
/**
|
|
11343
|
-
* Check that the value is a non-negative number.
|
|
11344
|
-
*/
|
|
11345
|
-
|
|
11346
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
11347
|
-
var value = props[propName];
|
|
11348
|
-
|
|
11349
|
-
if (typeof value !== "number" || value < 0) {
|
|
11350
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11351
|
-
}
|
|
11352
|
-
|
|
11353
|
-
return null;
|
|
11354
|
-
});
|
|
11355
|
-
/**
|
|
11356
|
-
* Check that the value is an integer.
|
|
11357
|
-
*/
|
|
11358
|
-
|
|
11359
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
11360
|
-
var value = props[propName];
|
|
11361
|
-
|
|
11362
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
11363
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11364
|
-
}
|
|
11365
|
-
|
|
11366
|
-
return null;
|
|
11367
|
-
});
|
|
11368
|
-
/**
|
|
11369
|
-
* Check that the value is greater than zero.
|
|
11370
|
-
*/
|
|
11371
|
-
|
|
11372
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
11373
|
-
var value = props[propName];
|
|
11374
|
-
|
|
11375
|
-
if (typeof value !== "number" || value <= 0) {
|
|
11376
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11377
|
-
}
|
|
11378
|
-
|
|
11379
|
-
return null;
|
|
11380
|
-
});
|
|
11381
|
-
/**
|
|
11382
|
-
* Check that the value is an Array of two unique values.
|
|
11383
|
-
*/
|
|
11384
|
-
|
|
11385
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
11386
|
-
var value = props[propName];
|
|
11387
|
-
|
|
11388
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
11389
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11390
|
-
}
|
|
11391
|
-
|
|
11392
|
-
return null;
|
|
11393
|
-
});
|
|
11394
|
-
/**
|
|
11395
|
-
* Check that the value looks like a d3 `scale` function.
|
|
11396
|
-
*/
|
|
11397
|
-
|
|
11398
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
11399
|
-
var value = props[propName];
|
|
11400
|
-
|
|
11401
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11402
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11403
|
-
}
|
|
11404
|
-
|
|
11405
|
-
return null;
|
|
11406
|
-
});
|
|
11407
|
-
/**
|
|
11408
|
-
* Check that an array contains items of the same type.
|
|
11409
|
-
*/
|
|
11410
|
-
|
|
11411
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
11412
|
-
var values = props[propName];
|
|
11413
|
-
|
|
11414
|
-
if (!Array.isArray(values)) {
|
|
11415
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
11416
|
-
}
|
|
11417
|
-
|
|
11418
|
-
if (values.length < 2) {
|
|
11419
|
-
return null;
|
|
11420
|
-
}
|
|
11421
|
-
|
|
11422
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
11423
|
-
|
|
11424
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
11425
|
-
return comparisonConstructor !== getConstructor(value);
|
|
11426
|
-
});
|
|
11427
|
-
|
|
11428
|
-
if (typeMismatchedValue) {
|
|
11429
|
-
var constructorName = getConstructorName(values[0]);
|
|
11430
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
11431
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11432
|
-
}
|
|
11433
|
-
|
|
11434
|
-
return null;
|
|
11435
|
-
});
|
|
11436
|
-
/**
|
|
11437
|
-
* Check that array prop length matches props.data.length
|
|
11438
|
-
*/
|
|
11439
|
-
|
|
11440
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
11441
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
11442
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11443
|
-
}
|
|
11444
|
-
|
|
11445
|
-
return null;
|
|
11446
|
-
});
|
|
11447
|
-
/**
|
|
11448
|
-
* Check that the value is a regular expression
|
|
11449
|
-
*/
|
|
11450
|
-
|
|
11451
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
11452
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
11453
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11454
|
-
}
|
|
11455
|
-
|
|
11456
|
-
return null;
|
|
11457
|
-
});
|
|
11458
|
-
|
|
11459
|
-
/***/ }),
|
|
11460
|
-
|
|
11461
9385
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
11462
9386
|
/*!***************************************************!*\
|
|
11463
9387
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|