victory-scatter 36.4.1 → 36.5.2

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.
@@ -241,6 +241,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
241
241
 
242
242
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
243
243
 
244
+ 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; }
245
+
244
246
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
245
247
 
246
248
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -249,7 +251,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
249
251
 
250
252
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
251
253
 
252
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
254
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
253
255
 
254
256
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
255
257
 
@@ -259,9 +261,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
259
261
 
260
262
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
261
263
 
262
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
263
-
264
- 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; }
264
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
265
265
 
266
266
 
267
267
 
@@ -312,44 +312,36 @@ var VictoryScatter = /*#__PURE__*/function (_React$Component) {
312
312
  return VictoryScatter;
313
313
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
314
314
 
315
- _defineProperty(VictoryScatter, "animationWhitelist", ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"]);
316
-
317
- _defineProperty(VictoryScatter, "displayName", "VictoryScatter");
318
-
319
- _defineProperty(VictoryScatter, "role", "scatter");
320
-
321
- _defineProperty(VictoryScatter, "defaultTransitions", victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions());
322
-
323
- _defineProperty(VictoryScatter, "propTypes", _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.dataProps), {}, {
315
+ VictoryScatter.animationWhitelist = ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"];
316
+ VictoryScatter.displayName = "VictoryScatter";
317
+ VictoryScatter.role = "scatter";
318
+ VictoryScatter.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions();
319
+ VictoryScatter.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.dataProps), {}, {
324
320
  bubbleProperty: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),
325
321
  maxBubbleSize: victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative,
326
322
  minBubbleSize: victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative,
327
323
  size: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]),
328
324
  symbol: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)])
329
- }));
330
-
331
- _defineProperty(VictoryScatter, "defaultProps", {
332
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
333
- dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
334
- labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
325
+ });
326
+ VictoryScatter.defaultProps = {
327
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryContainer, null),
328
+ dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Point, null),
329
+ labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
335
330
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
336
331
  samples: 50,
337
332
  sortOrder: "ascending",
338
333
  standalone: true,
339
- theme: victory_core__WEBPACK_IMPORTED_MODULE_10__["default"].grayscale
340
- });
341
-
342
- _defineProperty(VictoryScatter, "getDomain", victory_core__WEBPACK_IMPORTED_MODULE_11__.getDomain);
343
-
344
- _defineProperty(VictoryScatter, "getData", victory_core__WEBPACK_IMPORTED_MODULE_12__.getData);
334
+ theme: victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryTheme.grayscale
335
+ };
336
+ VictoryScatter.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_11__.getDomain;
337
+ VictoryScatter.getData = victory_core__WEBPACK_IMPORTED_MODULE_12__.getData;
345
338
 
346
- _defineProperty(VictoryScatter, "getBaseProps", function (props) {
339
+ VictoryScatter.getBaseProps = function (props) {
347
340
  return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_13__.getBaseProps)(props, fallbackProps);
348
- });
349
-
350
- _defineProperty(VictoryScatter, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
341
+ };
351
342
 
352
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_14__["default"])(VictoryScatter));
343
+ VictoryScatter.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
344
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_14__.addEvents)(VictoryScatter));
353
345
 
354
346
  /***/ }),
355
347
 
@@ -5915,7 +5907,7 @@ module.exports = checkPropTypes;
5915
5907
 
5916
5908
 
5917
5909
 
5918
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
5910
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
5919
5911
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
5920
5912
 
5921
5913
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -6534,7 +6526,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
6534
6526
  */
6535
6527
 
6536
6528
  if (true) {
6537
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
6529
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
6538
6530
 
6539
6531
  // By explicitly using `prop-types` you are opting into new development behavior.
6540
6532
  // http://fb.me/prop-types-in-prod
@@ -6579,154 +6571,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
6579
6571
 
6580
6572
  /***/ }),
6581
6573
 
6582
- /***/ "../../../node_modules/react-fast-compare/index.js":
6583
- /*!*********************************************************!*\
6584
- !*** ../../../node_modules/react-fast-compare/index.js ***!
6585
- \*********************************************************/
6586
- /***/ ((module) => {
6587
-
6588
- /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
6589
-
6590
- var hasElementType = typeof Element !== 'undefined';
6591
- var hasMap = typeof Map === 'function';
6592
- var hasSet = typeof Set === 'function';
6593
- var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
6594
-
6595
- // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
6596
-
6597
- function equal(a, b) {
6598
- // START: fast-deep-equal es6/index.js 3.1.1
6599
- if (a === b) return true;
6600
-
6601
- if (a && b && typeof a == 'object' && typeof b == 'object') {
6602
- if (a.constructor !== b.constructor) return false;
6603
-
6604
- var length, i, keys;
6605
- if (Array.isArray(a)) {
6606
- length = a.length;
6607
- if (length != b.length) return false;
6608
- for (i = length; i-- !== 0;)
6609
- if (!equal(a[i], b[i])) return false;
6610
- return true;
6611
- }
6612
-
6613
- // START: Modifications:
6614
- // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6615
- // to co-exist with es5.
6616
- // 2. Replace `for of` with es5 compliant iteration using `for`.
6617
- // Basically, take:
6618
- //
6619
- // ```js
6620
- // for (i of a.entries())
6621
- // if (!b.has(i[0])) return false;
6622
- // ```
6623
- //
6624
- // ... and convert to:
6625
- //
6626
- // ```js
6627
- // it = a.entries();
6628
- // while (!(i = it.next()).done)
6629
- // if (!b.has(i.value[0])) return false;
6630
- // ```
6631
- //
6632
- // **Note**: `i` access switches to `i.value`.
6633
- var it;
6634
- if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6635
- if (a.size !== b.size) return false;
6636
- it = a.entries();
6637
- while (!(i = it.next()).done)
6638
- if (!b.has(i.value[0])) return false;
6639
- it = a.entries();
6640
- while (!(i = it.next()).done)
6641
- if (!equal(i.value[1], b.get(i.value[0]))) return false;
6642
- return true;
6643
- }
6644
-
6645
- if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6646
- if (a.size !== b.size) return false;
6647
- it = a.entries();
6648
- while (!(i = it.next()).done)
6649
- if (!b.has(i.value[0])) return false;
6650
- return true;
6651
- }
6652
- // END: Modifications
6653
-
6654
- if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6655
- length = a.length;
6656
- if (length != b.length) return false;
6657
- for (i = length; i-- !== 0;)
6658
- if (a[i] !== b[i]) return false;
6659
- return true;
6660
- }
6661
-
6662
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6663
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6664
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6665
-
6666
- keys = Object.keys(a);
6667
- length = keys.length;
6668
- if (length !== Object.keys(b).length) return false;
6669
-
6670
- for (i = length; i-- !== 0;)
6671
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6672
- // END: fast-deep-equal
6673
-
6674
- // START: react-fast-compare
6675
- // custom handling for DOM elements
6676
- if (hasElementType && a instanceof Element) return false;
6677
-
6678
- // custom handling for React/Preact
6679
- for (i = length; i-- !== 0;) {
6680
- if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6681
- // React-specific: avoid traversing React elements' _owner
6682
- // Preact-specific: avoid traversing Preact elements' __v and __o
6683
- // __v = $_original / $_vnode
6684
- // __o = $_owner
6685
- // These properties contain circular references and are not needed when
6686
- // comparing the actual elements (and not their owners)
6687
- // .$$typeof and ._store on just reasonable markers of elements
6688
-
6689
- continue;
6690
- }
6691
-
6692
- // all other properties should be traversed as usual
6693
- if (!equal(a[keys[i]], b[keys[i]])) return false;
6694
- }
6695
- // END: react-fast-compare
6696
-
6697
- // START: fast-deep-equal
6698
- return true;
6699
- }
6700
-
6701
- return a !== a && b !== b;
6702
- }
6703
- // end fast-deep-equal
6704
-
6705
- module.exports = function isEqual(a, b) {
6706
- try {
6707
- return equal(a, b);
6708
- } catch (error) {
6709
- if (((error.message || '').match(/stack|recursion/i))) {
6710
- // warn on circular references, don't crash
6711
- // browsers give this different errors name and messages:
6712
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6713
- // firefox: "InternalError", too much recursion"
6714
- // edge: "Error", "Out of stack space"
6715
- console.warn('react-fast-compare cannot handle circular refs');
6716
- return false;
6717
- }
6718
- // some other error. we should definitely know about these
6719
- throw error;
6720
- }
6721
- };
6722
-
6723
-
6724
- /***/ }),
6725
-
6726
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
6727
- /*!******************************************************************!*\
6728
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
6729
- \******************************************************************/
6574
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
6575
+ /*!******************************************************************************************!*\
6576
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
6577
+ \******************************************************************************************/
6730
6578
  /***/ ((__unused_webpack_module, exports) => {
6731
6579
 
6732
6580
  "use strict";
@@ -6915,98 +6763,242 @@ exports.typeOf = typeOf;
6915
6763
 
6916
6764
  /***/ }),
6917
6765
 
6918
- /***/ "../../../node_modules/react-is/index.js":
6919
- /*!***********************************************!*\
6920
- !*** ../../../node_modules/react-is/index.js ***!
6921
- \***********************************************/
6766
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
6767
+ /*!***********************************************************************!*\
6768
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
6769
+ \***********************************************************************/
6922
6770
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6923
6771
 
6924
6772
  "use strict";
6925
6773
 
6926
6774
 
6927
6775
  if (false) {} else {
6928
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
6776
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
6929
6777
  }
6930
6778
 
6931
6779
 
6932
6780
  /***/ }),
6933
6781
 
6934
- /***/ "../../victory-core/es/victory-animation/util.js":
6935
- /*!*******************************************************!*\
6936
- !*** ../../victory-core/es/victory-animation/util.js ***!
6937
- \*******************************************************/
6938
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6939
-
6940
- "use strict";
6941
- __webpack_require__.r(__webpack_exports__);
6942
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6943
- /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
6944
- /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
6945
- /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
6946
- /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
6947
- /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
6948
- /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
6949
- /* harmony export */ });
6950
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
6951
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
6952
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
6953
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
6954
- /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
6955
-
6956
-
6782
+ /***/ "../../../node_modules/react-fast-compare/index.js":
6783
+ /*!*********************************************************!*\
6784
+ !*** ../../../node_modules/react-fast-compare/index.js ***!
6785
+ \*********************************************************/
6786
+ /***/ ((module) => {
6957
6787
 
6958
- var isInterpolatable = function (obj) {
6959
- // d3 turns null into 0 and undefined into NaN, which we don't want.
6960
- if (obj !== null) {
6961
- switch (typeof obj) {
6962
- case "undefined":
6963
- return false;
6788
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
6964
6789
 
6965
- case "number":
6966
- // The standard `isNaN` is fine in this case since we already know the
6967
- // type is number.
6968
- return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
6790
+ var hasElementType = typeof Element !== 'undefined';
6791
+ var hasMap = typeof Map === 'function';
6792
+ var hasSet = typeof Set === 'function';
6793
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
6969
6794
 
6970
- case "string":
6971
- // d3 might not *actually* be able to interpolate the string, but it
6972
- // won't cause any issues to let it try.
6973
- return true;
6795
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
6974
6796
 
6975
- case "boolean":
6976
- // d3 turns Booleans into integers, which we don't want. Sure, we could
6977
- // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
6978
- // something expecting a Boolean.
6979
- return false;
6797
+ function equal(a, b) {
6798
+ // START: fast-deep-equal es6/index.js 3.1.1
6799
+ if (a === b) return true;
6980
6800
 
6981
- case "object":
6982
- // Don't try to interpolate class instances (except Date or Array).
6983
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
6801
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
6802
+ if (a.constructor !== b.constructor) return false;
6984
6803
 
6985
- case "function":
6986
- // Careful! There may be extra properties on function objects that the
6987
- // component expects to access - for instance, it may be a `d3.scale()`
6988
- // function, which has its own methods attached. We don't know if the
6989
- // component is only going to call the function (in which case it's
6990
- // safely interpolatable) or if it's going to access special properties
6991
- // (in which case our function generated from `interpolateFunction` will
6992
- // most likely cause an error. We could check for enumerable properties
6993
- // on the function object here to see if it's a "plain" function, but
6994
- // let's just require that components prevent such function props from
6995
- // being animated in the first place.
6996
- return true;
6804
+ var length, i, keys;
6805
+ if (Array.isArray(a)) {
6806
+ length = a.length;
6807
+ if (length != b.length) return false;
6808
+ for (i = length; i-- !== 0;)
6809
+ if (!equal(a[i], b[i])) return false;
6810
+ return true;
6997
6811
  }
6998
- }
6999
6812
 
7000
- return false;
7001
- };
7002
- /**
7003
- * Interpolate immediately to the end value at the given step `when`.
7004
- * Some nicer default behavior might be to jump at the halfway point or return
7005
- * `a` if `t` is 0 (instead of always returning `b`). But d3's default
7006
- * interpolator does not do these things:
7007
- *
7008
- * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7009
- *
6813
+ // START: Modifications:
6814
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6815
+ // to co-exist with es5.
6816
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
6817
+ // Basically, take:
6818
+ //
6819
+ // ```js
6820
+ // for (i of a.entries())
6821
+ // if (!b.has(i[0])) return false;
6822
+ // ```
6823
+ //
6824
+ // ... and convert to:
6825
+ //
6826
+ // ```js
6827
+ // it = a.entries();
6828
+ // while (!(i = it.next()).done)
6829
+ // if (!b.has(i.value[0])) return false;
6830
+ // ```
6831
+ //
6832
+ // **Note**: `i` access switches to `i.value`.
6833
+ var it;
6834
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6835
+ if (a.size !== b.size) return false;
6836
+ it = a.entries();
6837
+ while (!(i = it.next()).done)
6838
+ if (!b.has(i.value[0])) return false;
6839
+ it = a.entries();
6840
+ while (!(i = it.next()).done)
6841
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
6842
+ return true;
6843
+ }
6844
+
6845
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6846
+ if (a.size !== b.size) return false;
6847
+ it = a.entries();
6848
+ while (!(i = it.next()).done)
6849
+ if (!b.has(i.value[0])) return false;
6850
+ return true;
6851
+ }
6852
+ // END: Modifications
6853
+
6854
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6855
+ length = a.length;
6856
+ if (length != b.length) return false;
6857
+ for (i = length; i-- !== 0;)
6858
+ if (a[i] !== b[i]) return false;
6859
+ return true;
6860
+ }
6861
+
6862
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6863
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6864
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6865
+
6866
+ keys = Object.keys(a);
6867
+ length = keys.length;
6868
+ if (length !== Object.keys(b).length) return false;
6869
+
6870
+ for (i = length; i-- !== 0;)
6871
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6872
+ // END: fast-deep-equal
6873
+
6874
+ // START: react-fast-compare
6875
+ // custom handling for DOM elements
6876
+ if (hasElementType && a instanceof Element) return false;
6877
+
6878
+ // custom handling for React/Preact
6879
+ for (i = length; i-- !== 0;) {
6880
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6881
+ // React-specific: avoid traversing React elements' _owner
6882
+ // Preact-specific: avoid traversing Preact elements' __v and __o
6883
+ // __v = $_original / $_vnode
6884
+ // __o = $_owner
6885
+ // These properties contain circular references and are not needed when
6886
+ // comparing the actual elements (and not their owners)
6887
+ // .$$typeof and ._store on just reasonable markers of elements
6888
+
6889
+ continue;
6890
+ }
6891
+
6892
+ // all other properties should be traversed as usual
6893
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
6894
+ }
6895
+ // END: react-fast-compare
6896
+
6897
+ // START: fast-deep-equal
6898
+ return true;
6899
+ }
6900
+
6901
+ return a !== a && b !== b;
6902
+ }
6903
+ // end fast-deep-equal
6904
+
6905
+ module.exports = function isEqual(a, b) {
6906
+ try {
6907
+ return equal(a, b);
6908
+ } catch (error) {
6909
+ if (((error.message || '').match(/stack|recursion/i))) {
6910
+ // warn on circular references, don't crash
6911
+ // browsers give this different errors name and messages:
6912
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6913
+ // firefox: "InternalError", too much recursion"
6914
+ // edge: "Error", "Out of stack space"
6915
+ console.warn('react-fast-compare cannot handle circular refs');
6916
+ return false;
6917
+ }
6918
+ // some other error. we should definitely know about these
6919
+ throw error;
6920
+ }
6921
+ };
6922
+
6923
+
6924
+ /***/ }),
6925
+
6926
+ /***/ "../../victory-core/es/victory-animation/util.js":
6927
+ /*!*******************************************************!*\
6928
+ !*** ../../victory-core/es/victory-animation/util.js ***!
6929
+ \*******************************************************/
6930
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6931
+
6932
+ "use strict";
6933
+ __webpack_require__.r(__webpack_exports__);
6934
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6935
+ /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
6936
+ /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
6937
+ /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
6938
+ /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
6939
+ /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
6940
+ /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
6941
+ /* harmony export */ });
6942
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
6943
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
6944
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
6945
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
6946
+ /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
6947
+
6948
+
6949
+
6950
+ var isInterpolatable = function (obj) {
6951
+ // d3 turns null into 0 and undefined into NaN, which we don't want.
6952
+ if (obj !== null) {
6953
+ switch (typeof obj) {
6954
+ case "undefined":
6955
+ return false;
6956
+
6957
+ case "number":
6958
+ // The standard `isNaN` is fine in this case since we already know the
6959
+ // type is number.
6960
+ return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
6961
+
6962
+ case "string":
6963
+ // d3 might not *actually* be able to interpolate the string, but it
6964
+ // won't cause any issues to let it try.
6965
+ return true;
6966
+
6967
+ case "boolean":
6968
+ // d3 turns Booleans into integers, which we don't want. Sure, we could
6969
+ // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
6970
+ // something expecting a Boolean.
6971
+ return false;
6972
+
6973
+ case "object":
6974
+ // Don't try to interpolate class instances (except Date or Array).
6975
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
6976
+
6977
+ case "function":
6978
+ // Careful! There may be extra properties on function objects that the
6979
+ // component expects to access - for instance, it may be a `d3.scale()`
6980
+ // function, which has its own methods attached. We don't know if the
6981
+ // component is only going to call the function (in which case it's
6982
+ // safely interpolatable) or if it's going to access special properties
6983
+ // (in which case our function generated from `interpolateFunction` will
6984
+ // most likely cause an error). We could check for enumerable properties
6985
+ // on the function object here to see if it's a "plain" function, but
6986
+ // let's just require that components prevent such function props from
6987
+ // being animated in the first place.
6988
+ return true;
6989
+ }
6990
+ }
6991
+
6992
+ return false;
6993
+ };
6994
+ /**
6995
+ * Interpolate immediately to the end value at the given step `when`.
6996
+ * Some nicer default behavior might be to jump at the halfway point or return
6997
+ * `a` if `t` is 0 (instead of always returning `b`). But d3's default
6998
+ * interpolator does not do these things:
6999
+ *
7000
+ * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7001
+ *
7010
7002
  * ...and things might get wonky if we don't replicate that behavior.
7011
7003
  *
7012
7004
  * @param {any} a - Start value.
@@ -7041,7 +7033,7 @@ var interpolateFunction = function (a, b) {
7041
7033
  }
7042
7034
 
7043
7035
  return function () {
7044
- /* eslint-disable no-invalid-this */
7036
+ /* eslint-disable no-invalid-this, prefer-rest-params */
7045
7037
  var aval = typeof a === "function" ? a.apply(this, arguments) : a;
7046
7038
  var bval = typeof b === "function" ? b.apply(this, arguments) : b;
7047
7039
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
@@ -7154,15 +7146,18 @@ var victoryInterpolator = function (a, b) {
7154
7146
  }
7155
7147
 
7156
7148
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7149
+ // @ts-expect-error These generics are tough, but they work :)
7157
7150
  return interpolateObject(a, b);
7158
7151
  }
7159
7152
 
7160
7153
  if (typeof a === "string" || typeof b === "string") {
7161
7154
  return interpolateString(a, b);
7162
- }
7155
+ } // @ts-expect-error These generics are tough, but they work :)
7156
+
7163
7157
 
7164
7158
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7165
7159
  };
7160
+ //# sourceMappingURL=util.js.map
7166
7161
 
7167
7162
  /***/ }),
7168
7163
 
@@ -7175,7 +7170,7 @@ var victoryInterpolator = function (a, b) {
7175
7170
  "use strict";
7176
7171
  __webpack_require__.r(__webpack_exports__);
7177
7172
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7178
- /* harmony export */ "default": () => (/* binding */ VictoryAnimation)
7173
+ /* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
7179
7174
  /* harmony export */ });
7180
7175
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7181
7176
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -7206,7 +7201,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7206
7201
 
7207
7202
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7208
7203
 
7209
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7204
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7210
7205
 
7211
7206
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7212
7207
 
@@ -7216,9 +7211,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7216
7211
 
7217
7212
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7218
7213
 
7219
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7220
-
7221
- 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; }
7214
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7222
7215
 
7223
7216
  /*global setTimeout:false */
7224
7217
 
@@ -7227,7 +7220,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7227
7220
 
7228
7221
 
7229
7222
 
7230
-
7231
7223
  var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7232
7224
  _inherits(VictoryAnimation, _React$Component);
7233
7225
 
@@ -7241,6 +7233,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7241
7233
  _this = _super.call(this, props, context);
7242
7234
  /* defaults */
7243
7235
 
7236
+ _this.interpolator = void 0;
7237
+ _this.queue = void 0;
7238
+ _this.ease = void 0;
7239
+ _this.timer = void 0;
7240
+ _this.loopID = void 0;
7241
+
7242
+ _this.functionToBeRunEachFrame = function (elapsed, duration) {
7243
+ /*
7244
+ step can generate imprecise values, sometimes greater than 1
7245
+ if this happens set the state to 1 and return, cancelling the timer
7246
+ */
7247
+ duration = duration !== undefined ? duration : _this.props.duration;
7248
+ var step = duration ? elapsed / duration : 1;
7249
+
7250
+ if (step >= 1) {
7251
+ _this.setState({
7252
+ data: _this.interpolator(1),
7253
+ animationInfo: {
7254
+ progress: 1,
7255
+ animating: false,
7256
+ terminating: true
7257
+ }
7258
+ });
7259
+
7260
+ if (_this.loopID) {
7261
+ _this.timer.unsubscribe(_this.loopID);
7262
+ }
7263
+
7264
+ _this.queue.shift();
7265
+
7266
+ _this.traverseQueue();
7267
+
7268
+ return;
7269
+ }
7270
+ /*
7271
+ if we're not at the end of the timer, set the state by passing
7272
+ current step value that's transformed by the ease function to the
7273
+ interpolator, which is cached for performance whenever props are received
7274
+ */
7275
+
7276
+
7277
+ _this.setState({
7278
+ data: _this.interpolator(_this.ease(step)),
7279
+ animationInfo: {
7280
+ progress: step,
7281
+ animating: step < 1
7282
+ }
7283
+ });
7284
+ };
7285
+
7244
7286
  _this.state = {
7245
7287
  data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
7246
7288
  animationInfo: {
@@ -7253,12 +7295,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7253
7295
  /* build easing function */
7254
7296
 
7255
7297
  _this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
7256
- /*
7257
- There is no autobinding of this in ES6 classes
7258
- so we bind functionToBeRunEachFrame to current instance of victory animation class
7259
- */
7260
-
7261
- _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
7262
7298
  _this.timer = _this.context.animationTimer;
7263
7299
  return _this;
7264
7300
  }
@@ -7359,49 +7395,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7359
7395
  }
7360
7396
  /* every frame we... */
7361
7397
 
7362
- }, {
7363
- key: "functionToBeRunEachFrame",
7364
- value: function functionToBeRunEachFrame(elapsed, duration) {
7365
- /*
7366
- step can generate imprecise values, sometimes greater than 1
7367
- if this happens set the state to 1 and return, cancelling the timer
7368
- */
7369
- duration = duration !== undefined ? duration : this.props.duration;
7370
- var step = duration ? elapsed / duration : 1;
7371
-
7372
- if (step >= 1) {
7373
- this.setState({
7374
- data: this.interpolator(1),
7375
- animationInfo: {
7376
- progress: 1,
7377
- animating: false,
7378
- terminating: true
7379
- }
7380
- });
7381
-
7382
- if (this.loopID) {
7383
- this.timer.unsubscribe(this.loopID);
7384
- }
7385
-
7386
- this.queue.shift();
7387
- this.traverseQueue();
7388
- return;
7389
- }
7390
- /*
7391
- if we're not at the end of the timer, set the state by passing
7392
- current step value that's transformed by the ease function to the
7393
- interpolator, which is cached for performance whenever props are received
7394
- */
7395
-
7396
-
7397
- this.setState({
7398
- data: this.interpolator(this.ease(step)),
7399
- animationInfo: {
7400
- progress: step,
7401
- animating: step < 1
7402
- }
7403
- });
7404
- }
7405
7398
  }, {
7406
7399
  key: "render",
7407
7400
  value: function render() {
@@ -7411,28 +7404,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7411
7404
 
7412
7405
  return VictoryAnimation;
7413
7406
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
7414
-
7415
- _defineProperty(VictoryAnimation, "displayName", "VictoryAnimation");
7416
-
7417
- _defineProperty(VictoryAnimation, "propTypes", {
7407
+ VictoryAnimation.displayName = "VictoryAnimation";
7408
+ VictoryAnimation.propTypes = {
7418
7409
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
7419
7410
  data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
7420
7411
  delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7421
7412
  duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7422
7413
  easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
7423
7414
  onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
7424
- });
7425
-
7426
- _defineProperty(VictoryAnimation, "defaultProps", {
7415
+ };
7416
+ VictoryAnimation.defaultProps = {
7427
7417
  data: {},
7428
7418
  delay: 0,
7429
7419
  duration: 1000,
7430
7420
  easing: "quadInOut"
7431
- });
7432
-
7433
- _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
7434
-
7435
-
7421
+ };
7422
+ VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
7423
+ //# sourceMappingURL=victory-animation.js.map
7436
7424
 
7437
7425
  /***/ }),
7438
7426
 
@@ -7445,7 +7433,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
7445
7433
  "use strict";
7446
7434
  __webpack_require__.r(__webpack_exports__);
7447
7435
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7448
- /* harmony export */ "default": () => (/* binding */ VictoryContainer)
7436
+ /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
7449
7437
  /* harmony export */ });
7450
7438
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
7451
7439
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
@@ -7473,12 +7461,14 @@ __webpack_require__.r(__webpack_exports__);
7473
7461
 
7474
7462
 
7475
7463
 
7476
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7464
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7477
7465
 
7478
7466
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7479
7467
 
7480
7468
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7481
7469
 
7470
+ 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; }
7471
+
7482
7472
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7483
7473
 
7484
7474
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -7487,7 +7477,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7487
7477
 
7488
7478
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7489
7479
 
7490
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7480
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7491
7481
 
7492
7482
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7493
7483
 
@@ -7497,10 +7487,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7497
7487
 
7498
7488
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7499
7489
 
7500
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7501
-
7502
- 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; }
7503
-
7490
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7504
7491
 
7505
7492
 
7506
7493
 
@@ -7515,13 +7502,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7515
7502
 
7516
7503
  var _super = _createSuper(VictoryContainer);
7517
7504
 
7505
+ // @ts-expect-error Ref will be initialized on mount
7506
+ // @ts-expect-error Ref will be initialized on mount
7518
7507
  function VictoryContainer(props) {
7519
7508
  var _this;
7520
7509
 
7521
7510
  _classCallCheck(this, VictoryContainer);
7522
7511
 
7523
7512
  _this = _super.call(this, props);
7524
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7513
+ _this.containerId = void 0;
7514
+ _this.portalRef = void 0;
7515
+ _this.containerRef = void 0;
7516
+ _this.shouldHandleWheel = void 0;
7525
7517
 
7526
7518
  _this.savePortalRef = function (portal) {
7527
7519
  _this.portalRef = portal;
@@ -7540,18 +7532,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7540
7532
  return _this.portalRef.portalDeregister(key);
7541
7533
  };
7542
7534
 
7543
- _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
7535
+ _this.saveContainerRef = function (container) {
7536
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
7537
+ _this.props.containerRef(container);
7538
+ }
7539
+
7544
7540
  _this.containerRef = container;
7545
7541
  return container;
7546
7542
  };
7547
- _this.shouldHandleWheel = props && props.events && props.events.onWheel;
7548
7543
 
7549
- if (_this.shouldHandleWheel) {
7550
- _this.handleWheel = function (e) {
7551
- return e.preventDefault();
7552
- };
7553
- }
7544
+ _this.handleWheel = function (e) {
7545
+ return e.preventDefault();
7546
+ };
7554
7547
 
7548
+ _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7549
+ _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
7555
7550
  return _this;
7556
7551
  }
7557
7552
 
@@ -7644,7 +7639,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7644
7639
  preserveAspectRatio: svgProps.preserveAspectRatio,
7645
7640
  style: portalSvgStyle
7646
7641
  };
7647
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
7642
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
7648
7643
  value: {
7649
7644
  portalUpdate: this.portalUpdate,
7650
7645
  portalRegister: this.portalRegister,
@@ -7698,13 +7693,10 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7698
7693
  }]);
7699
7694
 
7700
7695
  return VictoryContainer;
7701
- }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
7702
-
7703
- _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
7704
-
7705
- _defineProperty(VictoryContainer, "role", "container");
7706
-
7707
- _defineProperty(VictoryContainer, "propTypes", {
7696
+ }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
7697
+ VictoryContainer.displayName = "VictoryContainer";
7698
+ VictoryContainer.role = "container";
7699
+ VictoryContainer.propTypes = {
7708
7700
  "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7709
7701
  "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7710
7702
  children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
@@ -7733,19 +7725,16 @@ _defineProperty(VictoryContainer, "propTypes", {
7733
7725
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
7734
7726
  title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7735
7727
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
7736
- });
7737
-
7738
- _defineProperty(VictoryContainer, "defaultProps", {
7728
+ };
7729
+ VictoryContainer.defaultProps = {
7739
7730
  className: "VictoryContainer",
7740
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
7731
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
7741
7732
  portalZIndex: 99,
7742
7733
  responsive: true,
7743
7734
  role: "img"
7744
- });
7745
-
7746
- _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
7747
-
7748
-
7735
+ };
7736
+ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
7737
+ //# sourceMappingURL=victory-container.js.map
7749
7738
 
7750
7739
  /***/ }),
7751
7740
 
@@ -7758,7 +7747,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
7758
7747
  "use strict";
7759
7748
  __webpack_require__.r(__webpack_exports__);
7760
7749
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7761
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
7750
+ /* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
7762
7751
  /* harmony export */ });
7763
7752
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
7764
7753
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
@@ -8308,6 +8297,7 @@ var VictoryLabel = function (props) {
8308
8297
  fontSize: currentStyle.fontSize || defaultStyles.fontSize,
8309
8298
  capHeight: capHeightPx,
8310
8299
  text: line,
8300
+ // @ts-expect-error TODO: This looks like a bug:
8311
8301
  textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
8312
8302
  lineHeight: currentLineHeight,
8313
8303
  backgroundPadding: getSingleValue(backgroundPadding, i)
@@ -8319,12 +8309,11 @@ var VictoryLabel = function (props) {
8319
8309
  var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
8320
8310
  var children = [backgroundElement, label];
8321
8311
  var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
8322
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, backgroundWithLabel) : backgroundWithLabel;
8312
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
8323
8313
  }
8324
8314
 
8325
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, label) : label;
8315
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
8326
8316
  };
8327
-
8328
8317
  VictoryLabel.displayName = "VictoryLabel";
8329
8318
  VictoryLabel.role = "label";
8330
8319
  VictoryLabel.defaultStyles = defaultStyles;
@@ -8339,6 +8328,7 @@ VictoryLabel.propTypes = {
8339
8328
  className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8340
8329
  data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
8341
8330
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
8331
+ // @ts-expect-error "Function is not assignable to string"
8342
8332
  desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8343
8333
  direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
8344
8334
  dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
@@ -8351,8 +8341,8 @@ VictoryLabel.propTypes = {
8351
8341
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
8352
8342
  lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8353
8343
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
8354
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
8355
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
8344
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
8345
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
8356
8346
  }),
8357
8347
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
8358
8348
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -8363,26 +8353,30 @@ VictoryLabel.propTypes = {
8363
8353
  style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8364
8354
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8365
8355
  text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8356
+ // @ts-expect-error Function is not assignable to string"
8366
8357
  textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8367
8358
  textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8368
8359
  title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8369
8360
  transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8370
8361
  tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8362
+ // @ts-expect-error Function is not assignable to string"
8371
8363
  verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8364
+ // @ts-expect-error Number is not assignable to string
8372
8365
  x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
8366
+ // @ts-expect-error Number is not assignable to string
8373
8367
  y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
8374
8368
  };
8375
8369
  VictoryLabel.defaultProps = {
8376
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__["default"], null),
8370
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
8377
8371
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
8378
8372
  direction: "inherit",
8379
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__["default"], null),
8380
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__["default"], null),
8373
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
8374
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
8381
8375
  capHeight: 0.71,
8382
8376
  // Magic number from d3.
8383
8377
  lineHeight: 1
8384
8378
  };
8385
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryLabel);
8379
+ //# sourceMappingURL=victory-label.js.map
8386
8380
 
8387
8381
  /***/ }),
8388
8382
 
@@ -8395,19 +8389,19 @@ VictoryLabel.defaultProps = {
8395
8389
  "use strict";
8396
8390
  __webpack_require__.r(__webpack_exports__);
8397
8391
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8398
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8392
+ /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
8399
8393
  /* harmony export */ });
8400
8394
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8401
8395
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8402
8396
 
8397
+
8403
8398
  /**
8404
8399
  * The React context object consumers may use to access the context of the
8405
8400
  * portal.
8406
8401
  */
8407
-
8408
8402
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
8409
8403
  PortalContext.displayName = "PortalContext";
8410
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
8404
+ //# sourceMappingURL=portal-context.js.map
8411
8405
 
8412
8406
  /***/ }),
8413
8407
 
@@ -8420,7 +8414,7 @@ PortalContext.displayName = "PortalContext";
8420
8414
  "use strict";
8421
8415
  __webpack_require__.r(__webpack_exports__);
8422
8416
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8423
- /* harmony export */ "default": () => (/* binding */ Portal)
8417
+ /* harmony export */ "Portal": () => (/* binding */ Portal)
8424
8418
  /* harmony export */ });
8425
8419
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
8426
8420
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
@@ -8439,7 +8433,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8439
8433
 
8440
8434
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8441
8435
 
8442
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8436
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8443
8437
 
8444
8438
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8445
8439
 
@@ -8449,10 +8443,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8449
8443
 
8450
8444
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8451
8445
 
8452
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8453
-
8454
- 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; }
8455
-
8446
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8456
8447
 
8457
8448
 
8458
8449
 
@@ -8468,32 +8459,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8468
8459
  _classCallCheck(this, Portal);
8469
8460
 
8470
8461
  _this = _super.call(this, props);
8462
+ _this.map = void 0;
8463
+ _this.index = void 0;
8464
+
8465
+ _this.portalRegister = function () {
8466
+ return ++_this.index;
8467
+ };
8468
+
8469
+ _this.portalUpdate = function (key, element) {
8470
+ _this.map[key] = element;
8471
+
8472
+ _this.forceUpdate();
8473
+ };
8474
+
8475
+ _this.portalDeregister = function (key) {
8476
+ delete _this.map[key];
8477
+
8478
+ _this.forceUpdate();
8479
+ };
8480
+
8471
8481
  _this.map = {};
8472
8482
  _this.index = 1;
8473
- _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
8474
- _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
8475
- _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
8476
8483
  return _this;
8477
8484
  }
8478
8485
 
8479
8486
  _createClass(Portal, [{
8480
- key: "portalRegister",
8481
- value: function portalRegister() {
8482
- return ++this.index;
8483
- }
8484
- }, {
8485
- key: "portalUpdate",
8486
- value: function portalUpdate(key, element) {
8487
- this.map[key] = element;
8488
- this.forceUpdate();
8489
- }
8490
- }, {
8491
- key: "portalDeregister",
8492
- value: function portalDeregister(key) {
8493
- delete this.map[key];
8494
- this.forceUpdate();
8495
- }
8496
- }, {
8497
8487
  key: "getChildren",
8498
8488
  value: function getChildren() {
8499
8489
  var _this2 = this;
@@ -8515,18 +8505,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8515
8505
 
8516
8506
  return Portal;
8517
8507
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8518
-
8519
- _defineProperty(Portal, "displayName", "Portal");
8520
-
8521
- _defineProperty(Portal, "propTypes", {
8508
+ Portal.displayName = "Portal";
8509
+ Portal.propTypes = {
8522
8510
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8523
8511
  height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
8524
8512
  style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
8525
8513
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8526
8514
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
8527
- });
8528
-
8529
-
8515
+ };
8516
+ //# sourceMappingURL=portal.js.map
8530
8517
 
8531
8518
  /***/ }),
8532
8519
 
@@ -8539,7 +8526,7 @@ _defineProperty(Portal, "propTypes", {
8539
8526
  "use strict";
8540
8527
  __webpack_require__.r(__webpack_exports__);
8541
8528
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8542
- /* harmony export */ "default": () => (/* binding */ VictoryPortal)
8529
+ /* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
8543
8530
  /* harmony export */ });
8544
8531
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
8545
8532
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
@@ -8560,7 +8547,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8560
8547
 
8561
8548
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8562
8549
 
8563
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8550
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8564
8551
 
8565
8552
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8566
8553
 
@@ -8570,10 +8557,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8570
8557
 
8571
8558
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8572
8559
 
8573
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8574
-
8575
- 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; }
8576
-
8560
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8577
8561
 
8578
8562
 
8579
8563
 
@@ -8586,9 +8570,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8586
8570
  var _super = _createSuper(VictoryPortal);
8587
8571
 
8588
8572
  function VictoryPortal() {
8573
+ var _this;
8574
+
8589
8575
  _classCallCheck(this, VictoryPortal);
8590
8576
 
8591
- return _super.apply(this, arguments);
8577
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8578
+ args[_key] = arguments[_key];
8579
+ }
8580
+
8581
+ _this = _super.call.apply(_super, [this].concat(args));
8582
+ _this.checkedContext = void 0;
8583
+ _this.renderInPlace = void 0;
8584
+ _this.element = void 0;
8585
+ _this.portalKey = void 0;
8586
+ return _this;
8592
8587
  }
8593
8588
 
8594
8589
  _createClass(VictoryPortal, [{
@@ -8652,23 +8647,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8652
8647
 
8653
8648
  return VictoryPortal;
8654
8649
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8655
-
8656
- _defineProperty(VictoryPortal, "displayName", "VictoryPortal");
8657
-
8658
- _defineProperty(VictoryPortal, "role", "portal");
8659
-
8660
- _defineProperty(VictoryPortal, "propTypes", {
8650
+ VictoryPortal.displayName = "VictoryPortal";
8651
+ VictoryPortal.role = "portal";
8652
+ VictoryPortal.propTypes = {
8661
8653
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
8662
8654
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
8663
- });
8664
-
8665
- _defineProperty(VictoryPortal, "defaultProps", {
8655
+ };
8656
+ VictoryPortal.defaultProps = {
8666
8657
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
8667
- });
8668
-
8669
- _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
8670
-
8671
-
8658
+ };
8659
+ VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
8660
+ //# sourceMappingURL=victory-portal.js.map
8672
8661
 
8673
8662
  /***/ }),
8674
8663
 
@@ -8681,7 +8670,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
8681
8670
  "use strict";
8682
8671
  __webpack_require__.r(__webpack_exports__);
8683
8672
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8684
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8673
+ /* harmony export */ "Path": () => (/* binding */ Path)
8685
8674
  /* harmony export */ });
8686
8675
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8687
8676
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8692,16 +8681,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8692
8681
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8693
8682
 
8694
8683
 
8695
-
8696
8684
  var Path = function (props) {
8697
8685
  // eslint-disable-next-line react/prop-types
8698
8686
  var desc = props.desc,
8699
8687
  rest = _objectWithoutProperties(props, _excluded);
8700
8688
 
8701
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8689
+ return desc ?
8690
+ /*#__PURE__*/
8691
+ // @ts-expect-error FIXME: "id cannot be a number"
8692
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8693
+ /*#__PURE__*/
8694
+ // @ts-expect-error FIXME: "id cannot be a number"
8695
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8702
8696
  };
8703
-
8704
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
8697
+ //# sourceMappingURL=path.js.map
8705
8698
 
8706
8699
  /***/ }),
8707
8700
 
@@ -8714,18 +8707,19 @@ var Path = function (props) {
8714
8707
  "use strict";
8715
8708
  __webpack_require__.r(__webpack_exports__);
8716
8709
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8717
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8710
+ /* harmony export */ "Point": () => (/* binding */ Point)
8718
8711
  /* harmony export */ });
8719
8712
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8720
8713
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
8714
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
8715
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
8721
8716
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
8722
8717
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
8723
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
8724
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
8725
8718
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
8726
8719
  /* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
8727
- /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
8728
- /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
8720
+ /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
8721
+ /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
8722
+ /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
8729
8723
 
8730
8724
 
8731
8725
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -8741,6 +8735,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8741
8735
 
8742
8736
 
8743
8737
 
8738
+
8744
8739
  var getPath = function (props) {
8745
8740
  var x = props.x,
8746
8741
  y = props.y,
@@ -8751,17 +8746,7 @@ var getPath = function (props) {
8751
8746
  return props.getPath(x, y, size);
8752
8747
  }
8753
8748
 
8754
- var pathFunctions = {
8755
- circle: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].circle,
8756
- square: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].square,
8757
- diamond: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].diamond,
8758
- triangleDown: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].triangleDown,
8759
- triangleUp: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].triangleUp,
8760
- plus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].plus,
8761
- minus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].minus,
8762
- star: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].star,
8763
- cross: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].cross
8764
- };
8749
+ var pathFunctions = _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__;
8765
8750
  var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
8766
8751
  return symbolFunction(x, y, size);
8767
8752
  };
@@ -8797,6 +8782,7 @@ var evaluateProps = function (props) {
8797
8782
 
8798
8783
  var Point = function (props) {
8799
8784
  props = evaluateProps(props);
8785
+ var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
8800
8786
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, props.events), {}, {
8801
8787
  "aria-label": props.ariaLabel,
8802
8788
  d: getPath(props),
@@ -8808,24 +8794,23 @@ var Point = function (props) {
8808
8794
  className: props.className,
8809
8795
  transform: props.transform,
8810
8796
  clipPath: props.clipPath
8811
- }));
8797
+ }, userProps));
8812
8798
  };
8813
-
8814
- Point.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__.primitiveProps), {}, {
8815
- datum: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
8816
- getPath: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),
8817
- pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
8818
- size: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]),
8819
- symbol: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]),
8820
- x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
8821
- y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
8799
+ Point.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
8800
+ datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
8801
+ getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
8802
+ pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
8803
+ size: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
8804
+ symbol: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
8805
+ x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
8806
+ y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
8822
8807
  });
8823
8808
  Point.defaultProps = {
8824
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_6__["default"], null),
8809
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_7__.Path, null),
8825
8810
  role: "presentation",
8826
8811
  shapeRendering: "auto"
8827
8812
  };
8828
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Point);
8813
+ //# sourceMappingURL=point.js.map
8829
8814
 
8830
8815
  /***/ }),
8831
8816
 
@@ -8838,33 +8823,37 @@ Point.defaultProps = {
8838
8823
  "use strict";
8839
8824
  __webpack_require__.r(__webpack_exports__);
8840
8825
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8841
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8826
+ /* harmony export */ "Rect": () => (/* binding */ Rect)
8842
8827
  /* harmony export */ });
8843
8828
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8844
8829
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8845
8830
  var _excluded = ["desc"];
8846
8831
 
8847
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8832
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8848
8833
 
8849
8834
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8850
8835
 
8851
8836
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8852
8837
 
8853
8838
 
8854
-
8855
8839
  var Rect = function (props) {
8856
8840
  // eslint-disable-next-line react/prop-types
8857
8841
  var desc = props.desc,
8858
8842
  rest = _objectWithoutProperties(props, _excluded);
8859
8843
 
8860
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8844
+ return desc ?
8845
+ /*#__PURE__*/
8846
+ // @ts-expect-error FIXME: "id cannot be a number"
8847
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8861
8848
  vectorEffect: "non-scaling-stroke"
8862
- }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8849
+ }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8850
+ /*#__PURE__*/
8851
+ // @ts-expect-error FIXME: "id cannot be a number"
8852
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8863
8853
  vectorEffect: "non-scaling-stroke"
8864
8854
  }, rest));
8865
8855
  };
8866
-
8867
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
8856
+ //# sourceMappingURL=rect.js.map
8868
8857
 
8869
8858
  /***/ }),
8870
8859
 
@@ -8877,7 +8866,7 @@ var Rect = function (props) {
8877
8866
  "use strict";
8878
8867
  __webpack_require__.r(__webpack_exports__);
8879
8868
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8880
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8869
+ /* harmony export */ "Text": () => (/* binding */ Text)
8881
8870
  /* harmony export */ });
8882
8871
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8883
8872
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8891,22 +8880,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
8891
8880
 
8892
8881
 
8893
8882
 
8894
-
8895
8883
  var Text = function (props) {
8896
8884
  var children = props.children,
8897
8885
  title = props.title,
8898
8886
  desc = props.desc,
8899
8887
  rest = _objectWithoutProperties(props, _excluded);
8900
8888
 
8901
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children);
8889
+ return (
8890
+ /*#__PURE__*/
8891
+ // @ts-expect-error FIXME: "id cannot be a number"
8892
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
8893
+ );
8902
8894
  };
8903
-
8904
8895
  Text.propTypes = {
8905
8896
  children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
8906
8897
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
8907
8898
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
8908
8899
  };
8909
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);
8900
+ //# sourceMappingURL=text.js.map
8910
8901
 
8911
8902
  /***/ }),
8912
8903
 
@@ -8919,17 +8910,19 @@ Text.propTypes = {
8919
8910
  "use strict";
8920
8911
  __webpack_require__.r(__webpack_exports__);
8921
8912
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8922
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8913
+ /* harmony export */ "TSpan": () => (/* binding */ TSpan)
8923
8914
  /* harmony export */ });
8924
8915
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8925
8916
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8926
8917
 
8927
-
8928
8918
  var TSpan = function (props) {
8929
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props);
8919
+ return (
8920
+ /*#__PURE__*/
8921
+ // @ts-expect-error FIXME: "id cannot be a number"
8922
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
8923
+ );
8930
8924
  };
8931
-
8932
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
8925
+ //# sourceMappingURL=tspan.js.map
8933
8926
 
8934
8927
  /***/ }),
8935
8928
 
@@ -8942,7 +8935,7 @@ var TSpan = function (props) {
8942
8935
  "use strict";
8943
8936
  __webpack_require__.r(__webpack_exports__);
8944
8937
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8945
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8938
+ /* harmony export */ "grayscale": () => (/* binding */ grayscale)
8946
8939
  /* harmony export */ });
8947
8940
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8948
8941
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -8989,7 +8982,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8989
8982
 
8990
8983
  var strokeLinecap = "round";
8991
8984
  var strokeLinejoin = "round";
8992
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8985
+ var grayscale = {
8993
8986
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8994
8987
  style: {
8995
8988
  data: {
@@ -9204,7 +9197,8 @@ var strokeLinejoin = "round";
9204
9197
  }
9205
9198
  }
9206
9199
  }, baseProps)
9207
- });
9200
+ };
9201
+ //# sourceMappingURL=grayscale.js.map
9208
9202
 
9209
9203
  /***/ }),
9210
9204
 
@@ -9217,7 +9211,7 @@ var strokeLinejoin = "round";
9217
9211
  "use strict";
9218
9212
  __webpack_require__.r(__webpack_exports__);
9219
9213
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9220
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9214
+ /* harmony export */ "material": () => (/* binding */ material)
9221
9215
  /* harmony export */ });
9222
9216
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9223
9217
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -9274,7 +9268,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9274
9268
  var strokeDasharray = "10, 5";
9275
9269
  var strokeLinecap = "round";
9276
9270
  var strokeLinejoin = "round";
9277
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9271
+ var material = {
9278
9272
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9279
9273
  style: {
9280
9274
  data: {
@@ -9506,7 +9500,8 @@ var strokeLinejoin = "round";
9506
9500
  }
9507
9501
  }
9508
9502
  }, baseProps)
9509
- });
9503
+ };
9504
+ //# sourceMappingURL=material.js.map
9510
9505
 
9511
9506
  /***/ }),
9512
9507
 
@@ -9519,16 +9514,18 @@ var strokeLinejoin = "round";
9519
9514
  "use strict";
9520
9515
  __webpack_require__.r(__webpack_exports__);
9521
9516
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9522
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9517
+ /* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
9523
9518
  /* harmony export */ });
9524
- /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9525
- /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9519
+ /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9520
+ /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9526
9521
 
9527
9522
 
9528
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9529
- material: _material__WEBPACK_IMPORTED_MODULE_0__["default"],
9530
- grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"]
9531
- });
9523
+
9524
+ var VictoryTheme = {
9525
+ grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9526
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9527
+ };
9528
+ //# sourceMappingURL=victory-theme.js.map
9532
9529
 
9533
9530
  /***/ }),
9534
9531
 
@@ -9541,33 +9538,30 @@ __webpack_require__.r(__webpack_exports__);
9541
9538
  "use strict";
9542
9539
  __webpack_require__.r(__webpack_exports__);
9543
9540
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9544
- /* harmony export */ "default": () => (/* binding */ VictoryTransition)
9541
+ /* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
9545
9542
  /* harmony export */ });
9546
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js");
9547
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
9548
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9549
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9550
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9551
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
9552
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9553
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
9554
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
9555
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
9556
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9557
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
9558
- /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9559
- /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9560
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9561
- /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9562
- /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9563
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9564
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
9565
-
9543
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9544
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9545
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9546
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
9547
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9548
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9549
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9550
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9551
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9552
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
9553
+ /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9554
+ /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9555
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9556
+ /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9557
+ /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9558
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9559
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
9566
9560
 
9567
9561
 
9568
9562
 
9569
9563
 
9570
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9564
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9571
9565
 
9572
9566
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9573
9567
 
@@ -9577,7 +9571,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9577
9571
 
9578
9572
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
9579
9573
 
9580
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9574
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9581
9575
 
9582
9576
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9583
9577
 
@@ -9587,10 +9581,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9587
9581
 
9588
9582
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9589
9583
 
9590
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9591
-
9592
- 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; }
9593
-
9584
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9594
9585
 
9595
9586
 
9596
9587
 
@@ -9611,6 +9602,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9611
9602
  _classCallCheck(this, VictoryTransition);
9612
9603
 
9613
9604
  _this = _super.call(this, props, context);
9605
+ _this.continuous = void 0;
9606
+ _this.timer = void 0;
9607
+ _this.transitionProps = void 0;
9614
9608
  _this.state = {
9615
9609
  nodesShouldLoad: false,
9616
9610
  nodesDoneLoad: false
@@ -9618,7 +9612,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9618
9612
  var child = _this.props.children;
9619
9613
  var polar = child.props.polar;
9620
9614
  _this.continuous = !polar && child.type && child.type.continuous === true;
9621
- _this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
9622
9615
  _this.timer = _this.context.transitionTimer;
9623
9616
  return _this;
9624
9617
  }
@@ -9635,7 +9628,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9635
9628
  value: function shouldComponentUpdate(nextProps) {
9636
9629
  var _this2 = this;
9637
9630
 
9638
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
9631
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
9639
9632
  this.timer.bypassAnimation();
9640
9633
  this.setState(this.getTransitionState(this.props, nextProps), function () {
9641
9634
  return _this2.timer.resumeAnimation();
@@ -9664,10 +9657,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9664
9657
  nextProps: nextProps
9665
9658
  };
9666
9659
  } else {
9667
- var oldChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
9668
- var nextChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(nextProps.children);
9660
+ var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
9661
+ var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
9669
9662
 
9670
- var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getInitialTransitionState(oldChildren, nextChildren),
9663
+ var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
9671
9664
  nodesWillExit = _Transitions$getIniti.nodesWillExit,
9672
9665
  nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
9673
9666
  childrenTransitions = _Transitions$getIniti.childrenTransitions,
@@ -9688,18 +9681,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9688
9681
  value: function getDomainFromChildren(props, axis) {
9689
9682
  var getChildDomains = function (children) {
9690
9683
  return children.reduce(function (memo, child) {
9691
- if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(child.type.getDomain)) {
9684
+ if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
9692
9685
  var childDomain = child.props && child.type.getDomain(child.props, axis);
9693
9686
  return childDomain ? memo.concat(childDomain) : memo;
9694
9687
  } else if (child.props && child.props.children) {
9695
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
9688
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
9696
9689
  }
9697
9690
 
9698
9691
  return memo;
9699
9692
  }, []);
9700
9693
  };
9701
9694
 
9702
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9695
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9703
9696
  var childProps = child.props || {};
9704
9697
  var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
9705
9698
 
@@ -9707,7 +9700,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9707
9700
  return domain;
9708
9701
  } else {
9709
9702
  var childDomains = getChildDomains([child]);
9710
- return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMaxValue(childDomains)];
9703
+ return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
9711
9704
  }
9712
9705
  }
9713
9706
  }, {
@@ -9722,10 +9715,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9722
9715
  }, {
9723
9716
  key: "pickDomainProps",
9724
9717
  value: function pickDomainProps(props) {
9725
- var parentState = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props.animate) && props.animate.parentState;
9718
+ var _props$animate;
9719
+
9720
+ var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
9726
9721
 
9727
9722
  if (parentState && parentState.nodesWillExit) {
9728
- return this.continous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9723
+ return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9729
9724
  }
9730
9725
 
9731
9726
  return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
@@ -9734,7 +9729,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9734
9729
  key: "getClipWidth",
9735
9730
  value: function getClipWidth(props, child) {
9736
9731
  var getDefaultClipWidth = function () {
9737
- var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__.getRange(child.props, "x");
9732
+ var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
9738
9733
  return range ? Math.abs(range[1] - range[0]) : props.width;
9739
9734
  };
9740
9735
 
@@ -9744,13 +9739,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9744
9739
  }, {
9745
9740
  key: "render",
9746
9741
  value: function render() {
9747
- var _this3 = this;
9742
+ var _this$props$animate,
9743
+ _this3 = this;
9748
9744
 
9749
9745
  var props = this.pickProps();
9750
- var getTransitionProps = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(this.props.animate) && this.props.animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getTransitionPropsFactory(props, this.state, function (newState) {
9746
+ var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
9751
9747
  return _this3.setState(newState);
9752
9748
  });
9753
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9749
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9754
9750
  var transitionProps = getTransitionProps(child);
9755
9751
  this.transitionProps = transitionProps;
9756
9752
  var domain = {
@@ -9759,29 +9755,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9759
9755
  };
9760
9756
  var clipWidth = this.getClipWidth(props, child);
9761
9757
 
9762
- var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9758
+ var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9763
9759
  domain: domain,
9764
9760
  clipWidth: clipWidth
9765
9761
  }, transitionProps, child.props);
9766
9762
 
9767
9763
  var animationWhitelist = props.animationWhitelist || [];
9768
9764
  var whitelist = animationWhitelist.concat(["clipWidth"]);
9769
- var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(combinedProps, whitelist) : combinedProps;
9770
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__["default"], _extends({}, combinedProps.animate, {
9765
+ var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
9766
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
9771
9767
  data: propsToAnimate
9772
9768
  }), function (newProps) {
9773
9769
  if (child.props.groupComponent) {
9774
- var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child.props.groupComponent, {
9770
+ var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
9775
9771
  clipWidth: newProps.clipWidth || 0
9776
9772
  }) : child.props.groupComponent;
9777
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9773
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9778
9774
  animate: null,
9779
9775
  animating: true,
9780
9776
  groupComponent: groupComponent
9781
9777
  }, newProps, combinedProps));
9782
9778
  }
9783
9779
 
9784
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9780
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9785
9781
  animate: null,
9786
9782
  animating: true
9787
9783
  }, newProps, combinedProps));
@@ -9790,19 +9786,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9790
9786
  }]);
9791
9787
 
9792
9788
  return VictoryTransition;
9793
- }((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
9794
-
9795
- _defineProperty(VictoryTransition, "displayName", "VictoryTransition");
9796
-
9797
- _defineProperty(VictoryTransition, "propTypes", {
9798
- animate: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object)]),
9799
- animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
9800
- children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)
9801
- });
9802
-
9803
- _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
9804
-
9805
-
9789
+ }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
9790
+ VictoryTransition.displayName = "VictoryTransition";
9791
+ VictoryTransition.propTypes = {
9792
+ animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
9793
+ animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
9794
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
9795
+ };
9796
+ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
9797
+ //# sourceMappingURL=victory-transition.js.map
9806
9798
 
9807
9799
  /***/ }),
9808
9800
 
@@ -9815,26 +9807,26 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
9815
9807
  "use strict";
9816
9808
  __webpack_require__.r(__webpack_exports__);
9817
9809
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9818
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9810
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
9819
9811
  /* harmony export */ });
9820
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9821
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
9822
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9823
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
9824
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9825
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
9826
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9827
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
9828
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9829
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
9830
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9831
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
9832
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9833
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
9834
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9835
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
9836
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9837
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
9812
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9813
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
9814
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9815
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9816
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9817
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
9818
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9819
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
9820
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9821
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
9822
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9823
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
9824
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9825
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
9826
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9827
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
9828
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9829
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
9838
9830
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
9839
9831
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
9840
9832
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -9871,7 +9863,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9871
9863
 
9872
9864
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
9873
9865
 
9874
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9866
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9875
9867
 
9876
9868
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9877
9869
 
@@ -9881,7 +9873,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9881
9873
 
9882
9874
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9883
9875
 
9884
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9876
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9885
9877
 
9886
9878
  /*global window:false */
9887
9879
 
@@ -9889,8 +9881,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
9889
9881
 
9890
9882
 
9891
9883
 
9884
+ // DISCLAIMER:
9885
+ // This file is not currently tested, and it is first on the list of files
9886
+ // to refactor in our current refactoring effort. Please do not make changes
9887
+ // to this file without manual testing and/or refactoring and adding tests.
9892
9888
  var datumHasXandY = function (datum) {
9893
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
9889
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
9894
9890
  }; // used for checking state changes. Expected components can be passed in via options
9895
9891
 
9896
9892
 
@@ -9902,44 +9898,45 @@ var defaultComponents = [{
9902
9898
  }, {
9903
9899
  name: "labels"
9904
9900
  }];
9905
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
9906
- return /*#__PURE__*/function (_WrappedComponent) {
9907
- _inherits(addEvents, _WrappedComponent);
9901
+ function addEvents(WrappedComponent) {
9902
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9908
9903
 
9909
- var _super = _createSuper(addEvents);
9904
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
9905
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
9906
+ _inherits(AddEventsMixin, _WrappedComponent);
9910
9907
 
9911
- function addEvents(props) {
9908
+ var _super = _createSuper(AddEventsMixin);
9909
+
9910
+ function AddEventsMixin(props) {
9912
9911
  var _this;
9913
9912
 
9914
- _classCallCheck(this, addEvents);
9913
+ _classCallCheck(this, AddEventsMixin);
9915
9914
 
9916
9915
  _this = _super.call(this, props);
9917
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9918
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
9919
9916
  _this.state = {};
9917
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9918
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9920
9919
 
9921
9920
  _this.getEvents = function (p, target, eventKey) {
9922
- return boundGetEvents(p, target, eventKey, getScopedEvents);
9921
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
9923
9922
  };
9924
9923
 
9925
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9926
-
9927
- var calculatedValues = _this.getCalculatedValues(props);
9928
-
9929
- _this.cacheValues(calculatedValues);
9930
-
9931
- _this.externalMutations = _this.getExternalMutations(props);
9932
- _this.calculatedState = _this.getStateChanges(props);
9924
+ _this.externalMutations = _this.getExternalMutations(_this.props);
9925
+ _this.calculatedState = _this.getStateChanges(_this.props);
9933
9926
  _this.globalEvents = {};
9934
9927
  _this.prevGlobalEventKeys = [];
9935
9928
  _this.boundGlobalEvents = {};
9929
+
9930
+ _this.cacheValues(_this.getCalculatedValues(props));
9931
+
9936
9932
  return _this;
9937
9933
  }
9938
9934
 
9939
- _createClass(addEvents, [{
9935
+ _createClass(AddEventsMixin, [{
9940
9936
  key: "shouldComponentUpdate",
9941
9937
  value: function shouldComponentUpdate(nextProps) {
9942
- var externalMutations = this.getExternalMutations(nextProps);
9938
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
9939
+
9943
9940
  var animating = this.props.animating || this.props.animate;
9944
9941
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
9945
9942
 
@@ -9969,7 +9966,7 @@ var defaultComponents = [{
9969
9966
  value: function componentDidMount() {
9970
9967
  var _this2 = this;
9971
9968
 
9972
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
9969
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
9973
9970
 
9974
9971
  globalEventKeys.forEach(function (key) {
9975
9972
  return _this2.addGlobalListener(key);
@@ -9984,15 +9981,15 @@ var defaultComponents = [{
9984
9981
  var calculatedState = this.getStateChanges(prevProps);
9985
9982
  this.calculatedState = calculatedState;
9986
9983
 
9987
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
9984
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
9988
9985
 
9989
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
9986
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
9990
9987
 
9991
9988
  removedGlobalEventKeys.forEach(function (key) {
9992
9989
  return _this3.removeGlobalListener(key);
9993
9990
  });
9994
9991
 
9995
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
9992
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
9996
9993
 
9997
9994
  addedGlobalEventKeys.forEach(function (key) {
9998
9995
  return _this3.addGlobalListener(key);
@@ -10038,12 +10035,11 @@ var defaultComponents = [{
10038
10035
  }
10039
10036
 
10040
10037
  var getState = function (key, type) {
10041
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10038
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10042
10039
 
10043
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10040
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10044
10041
  };
10045
10042
 
10046
- options = options || {};
10047
10043
  var components = options.components || defaultComponents;
10048
10044
  var stateChanges = components.map(function (component) {
10049
10045
  if (!props.standalone && component.name === "parent") {
@@ -10060,9 +10056,9 @@ var defaultComponents = [{
10060
10056
  }, {
10061
10057
  key: "applyExternalMutations",
10062
10058
  value: function applyExternalMutations(props, externalMutations) {
10063
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10059
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10064
10060
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10065
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10061
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10066
10062
  return memo;
10067
10063
  }, []);
10068
10064
  var compiledCallbacks = callbacks.length ? function () {
@@ -10079,12 +10075,12 @@ var defaultComponents = [{
10079
10075
  var sharedEvents = props.sharedEvents;
10080
10076
  var components = WrappedComponent.expectedComponents;
10081
10077
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10082
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10078
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10083
10079
  return undefined;
10084
10080
  };
10085
10081
  var baseProps = this.getBaseProps(props, getSharedEventState);
10086
10082
 
10087
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10083
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10088
10084
  return key !== "parent";
10089
10085
  });
10090
10086
 
@@ -10104,32 +10100,32 @@ var defaultComponents = [{
10104
10100
  value: function getExternalMutations(props) {
10105
10101
  var sharedEvents = props.sharedEvents,
10106
10102
  externalEventMutations = props.externalEventMutations;
10107
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10103
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10108
10104
  }
10109
10105
  }, {
10110
10106
  key: "cacheValues",
10111
10107
  value: function cacheValues(obj) {
10112
10108
  var _this7 = this;
10113
10109
 
10114
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10110
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
10115
10111
  _this7[key] = obj[key];
10116
10112
  });
10117
10113
  }
10118
10114
  }, {
10119
10115
  key: "getBaseProps",
10120
10116
  value: function getBaseProps(props, getSharedEventState) {
10121
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10117
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
10122
10118
  var sharedParentState = getSharedEventState("parent", "parent");
10123
10119
  var parentState = this.getEventState("parent", "parent");
10124
10120
 
10125
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10121
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
10126
10122
 
10127
10123
  var parentPropsList = baseParentProps.parentControlledProps;
10128
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10124
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
10129
10125
 
10130
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10126
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
10131
10127
 
10132
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10128
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
10133
10129
  }
10134
10130
  }, {
10135
10131
  key: "getAllEvents",
@@ -10157,21 +10153,21 @@ var defaultComponents = [{
10157
10153
  if (this.hasEvents) {
10158
10154
  var baseEvents = this.getEvents(this.props, type, key);
10159
10155
 
10160
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10156
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10161
10157
  index: index,
10162
10158
  key: id
10163
10159
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
10164
10160
  id: id
10165
10161
  });
10166
10162
 
10167
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10163
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10168
10164
 
10169
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
10165
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
10170
10166
  events: events
10171
10167
  });
10172
10168
  }
10173
10169
 
10174
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10170
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10175
10171
  index: index,
10176
10172
  key: id
10177
10173
  }, component.props, baseProps, {
@@ -10194,11 +10190,14 @@ var defaultComponents = [{
10194
10190
  }, {
10195
10191
  key: "animateComponent",
10196
10192
  value: function animateComponent(props, defaultAnimationWhitelist) {
10197
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
10198
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__["default"], {
10193
+ var _props$animate;
10194
+
10195
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
10196
+ var Comp = this.constructor;
10197
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
10199
10198
  animate: props.animate,
10200
10199
  animationWhitelist: animationWhitelist
10201
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
10200
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
10202
10201
  } // Used by `VictoryLine` and `VictoryArea`
10203
10202
 
10204
10203
  }, {
@@ -10210,7 +10209,7 @@ var defaultComponents = [{
10210
10209
  labelComponent = props.labelComponent,
10211
10210
  groupComponent = props.groupComponent;
10212
10211
 
10213
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
10212
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
10214
10213
 
10215
10214
  var labelComponents = dataKeys.reduce(function (memo, key) {
10216
10215
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -10257,9 +10256,12 @@ var defaultComponents = [{
10257
10256
  }
10258
10257
  }]);
10259
10258
 
10260
- return addEvents;
10259
+ return AddEventsMixin;
10261
10260
  }(WrappedComponent);
10262
- });
10261
+
10262
+ return AddEventsMixin;
10263
+ }
10264
+ //# sourceMappingURL=add-events.js.map
10263
10265
 
10264
10266
  /***/ }),
10265
10267
 
@@ -10293,9 +10295,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10293
10295
 
10294
10296
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10295
10297
 
10296
- /* eslint-disable func-style */
10297
-
10298
- /* eslint-disable no-use-before-define */
10299
10298
  function isNonEmptyArray(collection) {
10300
10299
  return Array.isArray(collection) && collection.length > 0;
10301
10300
  }
@@ -10334,7 +10333,8 @@ function getMaxValue(arr) {
10334
10333
  }
10335
10334
 
10336
10335
  var array = arr.concat(values);
10337
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
10336
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10337
+ : Math.max.apply(Math, _toConsumableArray(array));
10338
10338
  }
10339
10339
  function getMinValue(arr) {
10340
10340
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -10342,8 +10342,10 @@ function getMinValue(arr) {
10342
10342
  }
10343
10343
 
10344
10344
  var array = arr.concat(values);
10345
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
10345
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10346
+ : Math.min.apply(Math, _toConsumableArray(array));
10346
10347
  }
10348
+ //# sourceMappingURL=collection.js.map
10347
10349
 
10348
10350
  /***/ }),
10349
10351
 
@@ -10356,9 +10358,7 @@ function getMinValue(arr) {
10356
10358
  "use strict";
10357
10359
  __webpack_require__.r(__webpack_exports__);
10358
10360
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10359
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
10360
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
10361
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
10361
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
10362
10362
  /* harmony export */ });
10363
10363
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
10364
10364
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -10366,26 +10366,28 @@ __webpack_require__.r(__webpack_exports__);
10366
10366
 
10367
10367
 
10368
10368
  var dataProps = {
10369
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10369
10370
  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({
10370
10371
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
10371
10372
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
10372
10373
  })]),
10374
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10373
10375
  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)]),
10374
10376
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10375
10377
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10376
10378
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10377
10379
  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)]),
10378
10380
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10379
- 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))]),
10381
+ 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))]),
10380
10382
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
10381
10383
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10382
10384
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10383
10385
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10384
10386
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10385
10387
  }),
10386
- 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))]),
10387
- 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))]),
10388
- 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))])
10388
+ 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))]),
10389
+ 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))]),
10390
+ 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))])
10389
10391
  };
10390
10392
  var baseProps = {
10391
10393
  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)]),
@@ -10394,14 +10396,17 @@ var baseProps = {
10394
10396
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10395
10397
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10396
10398
  })]),
10399
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10397
10400
  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({
10398
10401
  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)]),
10399
10402
  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)])
10400
10403
  })]),
10404
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10401
10405
  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({
10402
10406
  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)]),
10403
10407
  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)])
10404
10408
  })]),
10409
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10405
10410
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10406
10411
  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))]),
10407
10412
  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))])
@@ -10412,6 +10417,7 @@ var baseProps = {
10412
10417
  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)]),
10413
10418
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10414
10419
  })),
10420
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10415
10421
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10416
10422
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
10417
10423
  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)]),
@@ -10422,10 +10428,12 @@ var baseProps = {
10422
10428
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10423
10429
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10424
10430
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
10431
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10425
10432
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10426
10433
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10427
10434
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
10428
10435
  }),
10436
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10429
10437
  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({
10430
10438
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10431
10439
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -10434,17 +10442,19 @@ var baseProps = {
10434
10442
  })]),
10435
10443
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10436
10444
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10437
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10438
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10445
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
10446
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
10439
10447
  })]),
10440
10448
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10441
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
10442
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
10449
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
10450
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
10443
10451
  })]),
10452
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10444
10453
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10445
10454
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
10446
10455
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
10447
10456
  }),
10457
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10448
10458
  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({
10449
10459
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
10450
10460
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -10464,6 +10474,7 @@ var primitiveProps = {
10464
10474
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10465
10475
  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)]),
10466
10476
  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)]),
10477
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10467
10478
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10468
10479
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10469
10480
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -10479,6 +10490,12 @@ var primitiveProps = {
10479
10490
  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)]),
10480
10491
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
10481
10492
  };
10493
+ var CommonProps = {
10494
+ dataProps: dataProps,
10495
+ baseProps: baseProps,
10496
+ primitiveProps: primitiveProps
10497
+ };
10498
+ //# sourceMappingURL=common-props.js.map
10482
10499
 
10483
10500
  /***/ }),
10484
10501
 
@@ -10561,8 +10578,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10561
10578
 
10562
10579
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10563
10580
 
10564
- /* eslint-disable func-style */
10565
-
10566
10581
  /* eslint-disable no-use-before-define */
10567
10582
 
10568
10583
 
@@ -10994,6 +11009,7 @@ function isDataComponent(component) {
10994
11009
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
10995
11010
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
10996
11011
  }
11012
+ //# sourceMappingURL=data.js.map
10997
11013
 
10998
11014
  /***/ }),
10999
11015
 
@@ -11010,7 +11026,6 @@ __webpack_require__.r(__webpack_exports__);
11010
11026
  /* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
11011
11027
  /* harmony export */ "discreteTransitions": () => (/* binding */ discreteTransitions)
11012
11028
  /* harmony export */ });
11013
- /* eslint-disable func-style */
11014
11029
  function continuousTransitions() {
11015
11030
  return {
11016
11031
  onLoad: {
@@ -11117,6 +11132,7 @@ function discreteTransitions() {
11117
11132
  }
11118
11133
  };
11119
11134
  }
11135
+ //# sourceMappingURL=default-transitions.js.map
11120
11136
 
11121
11137
  /***/ }),
11122
11138
 
@@ -11179,8 +11195,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11179
11195
 
11180
11196
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
11181
11197
 
11182
- /* eslint-disable func-style */
11183
-
11184
11198
  /* eslint-disable no-use-before-define */
11185
11199
 
11186
11200
 
@@ -11220,8 +11234,9 @@ function getDomainPadding(props, axis) {
11220
11234
  }
11221
11235
 
11222
11236
  function getFlatData(dataset, axis) {
11237
+ var axisKey = "_".concat(axis);
11223
11238
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
11224
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
11239
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
11225
11240
  });
11226
11241
  }
11227
11242
 
@@ -11286,7 +11301,9 @@ function padDomain(domain, props, axis) {
11286
11301
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
11287
11302
  // Naive initial padding calculation
11288
11303
  var initialPadding = {
11304
+ // @ts-expect-error `max/min` might be dates
11289
11305
  left: Math.abs(max - min) * padding.left / rangeExtent,
11306
+ // @ts-expect-error `max/min` might be dates
11290
11307
  right: Math.abs(max - min) * padding.right / rangeExtent
11291
11308
  }; // Adjust the domain by the initial padding
11292
11309
 
@@ -11571,6 +11588,7 @@ function isDomainComponent(component) {
11571
11588
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11572
11589
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
11573
11590
  }
11591
+ //# sourceMappingURL=domain.js.map
11574
11592
 
11575
11593
  /***/ }),
11576
11594
 
@@ -11639,15 +11657,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11639
11657
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
11640
11658
 
11641
11659
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
11660
+
11642
11661
  /* Returns all own and shared events that should be attached to a single target element,
11643
11662
  * i.e. an individual bar specified by target: "data", eventKey: [index].
11644
11663
  * Returned events are scoped to the appropriate state. Either that of the component itself
11645
11664
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
11646
11665
  * (i.e. VictoryChart) in the case of shared events
11647
11666
  */
11648
- // eslint-disable-next-line max-params,no-shadow
11649
-
11650
- function getEvents(props, target, eventKey, getScopedEvents) {
11667
+ // eslint-disable-next-line max-params
11668
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
11669
+ getScopedEvents) {
11651
11670
  var _this = this;
11652
11671
 
11653
11672
  // Returns all events that apply to a particular target element
@@ -11870,24 +11889,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
11870
11889
  return memo;
11871
11890
  }, {});
11872
11891
  }
11873
- /* Returns a partially applied event handler for a specific target element
11892
+ /*
11893
+ * Returns a partially applied event handler for a specific target element
11874
11894
  * This allows event handlers to have access to props controlling each element
11875
11895
  */
11876
11896
 
11877
11897
  function getPartialEvents(events, eventKey, childProps) {
11878
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11898
+ if (!events) return {};
11899
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11879
11900
  var appliedEvent = function (evt) {
11880
11901
  return events[eventName](evt, childProps, eventKey, eventName);
11881
11902
  };
11882
11903
 
11883
11904
  memo[eventName] = appliedEvent;
11884
11905
  return memo;
11885
- }, {}) : {};
11906
+ }, {});
11886
11907
  }
11908
+
11887
11909
  /* Returns the property of the state object corresponding to event changes for
11888
11910
  * a particular element
11889
11911
  */
11890
-
11912
+ // eslint-disable-next-line max-params
11891
11913
  function getEventState(eventKey, namespace, childType) {
11892
11914
  // Mandatory usage: `getEventState.bind(this)`
11893
11915
  // eslint-disable-next-line no-invalid-this
@@ -12072,6 +12094,7 @@ var emulateReactEvent = function (event) {
12072
12094
  nativeEvent: event
12073
12095
  });
12074
12096
  };
12097
+ //# sourceMappingURL=events.js.map
12075
12098
 
12076
12099
  /***/ }),
12077
12100
 
@@ -12125,8 +12148,6 @@ __webpack_require__.r(__webpack_exports__);
12125
12148
 
12126
12149
 
12127
12150
 
12128
- /* eslint-disable func-style */
12129
-
12130
12151
  /* eslint-disable no-use-before-define */
12131
12152
 
12132
12153
 
@@ -12155,7 +12176,7 @@ function getPolarRange(props, axis) {
12155
12176
 
12156
12177
  /**
12157
12178
  * creates an object with some keys excluded
12158
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
12179
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
12159
12180
  * @param {Object} originalObject: created object will be based on this object
12160
12181
  * @param {Array<String>} ks: an array of keys to omit from the new object
12161
12182
  * @returns {Object} new object with same properties as originalObject
@@ -12168,6 +12189,7 @@ function omit(originalObject) {
12168
12189
  var newObject = {};
12169
12190
 
12170
12191
  for (var key in originalObject) {
12192
+ // @ts-expect-error String is not assignable to Key
12171
12193
  if (ks.indexOf(key) >= 0) {
12172
12194
  continue;
12173
12195
  }
@@ -12400,7 +12422,9 @@ function reduceChildren(children, iteratee) {
12400
12422
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
12401
12423
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
12402
12424
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
12403
- return memo.concat(item);
12425
+ return (// @ts-expect-error These defaults are hard to type
12426
+ memo.concat(item)
12427
+ );
12404
12428
  };
12405
12429
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
12406
12430
 
@@ -12444,7 +12468,7 @@ function reduceChildren(children, iteratee) {
12444
12468
  /**
12445
12469
  * @param {Object} props: the props object
12446
12470
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
12447
- * children or nested children are hoizontal
12471
+ * children or nested children are horizontal
12448
12472
  */
12449
12473
 
12450
12474
  function isHorizontal(props) {
@@ -12467,6 +12491,7 @@ function isHorizontal(props) {
12467
12491
 
12468
12492
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
12469
12493
  }
12494
+ //# sourceMappingURL=helpers.js.map
12470
12495
 
12471
12496
  /***/ }),
12472
12497
 
@@ -12490,7 +12515,6 @@ __webpack_require__.r(__webpack_exports__);
12490
12515
  /* harmony export */ "isRecord": () => (/* binding */ isRecord),
12491
12516
  /* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
12492
12517
  /* harmony export */ });
12493
- /* eslint-disable func-style */
12494
12518
  var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
12495
12519
  var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
12496
12520
  var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
@@ -12511,15 +12535,16 @@ function isMap(x) {
12511
12535
  return !!(x && x[IMMUTABLE_MAP]);
12512
12536
  }
12513
12537
  function shallowToJS(x, whitelist) {
12514
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
12538
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
12515
12539
  if (whitelist && whitelist[key]) {
12516
12540
  curr = shallowToJS(curr);
12517
12541
  }
12518
12542
 
12519
- prev[key] = curr;
12520
- return prev;
12543
+ result[key] = curr;
12544
+ return result;
12521
12545
  }, isList(x) ? [] : {}) : x;
12522
12546
  }
12547
+ //# sourceMappingURL=immutable.js.map
12523
12548
 
12524
12549
  /***/ }),
12525
12550
 
@@ -12544,8 +12569,6 @@ __webpack_require__.r(__webpack_exports__);
12544
12569
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12545
12570
 
12546
12571
 
12547
- /* eslint-disable func-style */
12548
-
12549
12572
  /* eslint-disable no-use-before-define */
12550
12573
 
12551
12574
 
@@ -12779,6 +12802,7 @@ function getProps(props, index) {
12779
12802
  var tooltipTheme = theme && theme.tooltip || {};
12780
12803
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
12781
12804
  }
12805
+ //# sourceMappingURL=label-helpers.js.map
12782
12806
 
12783
12807
  /***/ }),
12784
12808
 
@@ -12797,7 +12821,6 @@ __webpack_require__.r(__webpack_exports__);
12797
12821
 
12798
12822
  /* eslint-disable no-console */
12799
12823
  // TODO: Use "warning" npm module like React is switching to.
12800
- // eslint-disable-next-line func-style
12801
12824
  function warn(message) {
12802
12825
  if (true) {
12803
12826
  if (console && console.warn) {
@@ -12805,6 +12828,7 @@ function warn(message) {
12805
12828
  }
12806
12829
  }
12807
12830
  }
12831
+ //# sourceMappingURL=log.js.map
12808
12832
 
12809
12833
  /***/ }),
12810
12834
 
@@ -12817,83 +12841,90 @@ function warn(message) {
12817
12841
  "use strict";
12818
12842
  __webpack_require__.r(__webpack_exports__);
12819
12843
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12820
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12844
+ /* harmony export */ "circle": () => (/* binding */ circle),
12845
+ /* harmony export */ "cross": () => (/* binding */ cross),
12846
+ /* harmony export */ "diamond": () => (/* binding */ diamond),
12847
+ /* harmony export */ "minus": () => (/* binding */ minus),
12848
+ /* harmony export */ "plus": () => (/* binding */ plus),
12849
+ /* harmony export */ "square": () => (/* binding */ square),
12850
+ /* harmony export */ "star": () => (/* binding */ star),
12851
+ /* harmony export */ "triangleDown": () => (/* binding */ triangleDown),
12852
+ /* harmony export */ "triangleUp": () => (/* binding */ triangleUp)
12821
12853
  /* harmony export */ });
12822
12854
  /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
12823
12855
  /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
12824
12856
 
12825
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
12826
- circle: function (x, y, size) {
12827
- return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
12828
- },
12829
- square: function (x, y, size) {
12830
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
12857
+ function circle(x, y, size) {
12858
+ return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
12859
+ }
12860
+ function square(x, y, size) {
12861
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
12831
12862
 
12832
- var x0 = x - baseSize;
12833
- var y1 = y + baseSize;
12834
- var distance = x + baseSize - x0;
12835
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
12836
- },
12837
- diamond: function (x, y, size) {
12838
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
12863
+ var x0 = x - baseSize;
12864
+ var y1 = y + baseSize;
12865
+ var distance = x + baseSize - x0;
12866
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
12867
+ }
12868
+ function diamond(x, y, size) {
12869
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
12839
12870
 
12840
- var length = Math.sqrt(2 * (baseSize * baseSize));
12841
- return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
12842
- },
12843
- triangleDown: function (x, y, size) {
12844
- var height = size / 2 * Math.sqrt(3);
12845
- var x0 = x - size;
12846
- var x1 = x + size;
12847
- var y0 = y - size;
12848
- var y1 = y + height;
12849
- return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
12850
- },
12851
- triangleUp: function (x, y, size) {
12852
- var height = size / 2 * Math.sqrt(3);
12853
- var x0 = x - size;
12854
- var x1 = x + size;
12855
- var y0 = y - height;
12856
- var y1 = y + size;
12857
- return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
12858
- },
12859
- plus: function (x, y, size) {
12860
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
12871
+ var length = Math.sqrt(2 * (baseSize * baseSize));
12872
+ return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
12873
+ }
12874
+ function triangleDown(x, y, size) {
12875
+ var height = size / 2 * Math.sqrt(3);
12876
+ var x0 = x - size;
12877
+ var x1 = x + size;
12878
+ var y0 = y - size;
12879
+ var y1 = y + height;
12880
+ return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
12881
+ }
12882
+ function triangleUp(x, y, size) {
12883
+ var height = size / 2 * Math.sqrt(3);
12884
+ var x0 = x - size;
12885
+ var x1 = x + size;
12886
+ var y0 = y - height;
12887
+ var y1 = y + size;
12888
+ return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
12889
+ }
12890
+ function plus(x, y, size) {
12891
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
12861
12892
 
12862
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
12893
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
12863
12894
 
12864
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
12865
- },
12866
- cross: function (x, y, size) {
12867
- var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
12895
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
12896
+ }
12897
+ function cross(x, y, size) {
12898
+ var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
12868
12899
 
12869
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
12900
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
12870
12901
 
12871
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
12872
- },
12873
- minus: function (x, y, size) {
12874
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
12902
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
12903
+ }
12904
+ function minus(x, y, size) {
12905
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
12875
12906
 
12876
- var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
12907
+ var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
12877
12908
 
12878
- var x0 = x - baseSize;
12879
- var y1 = y + lineHeight / 2;
12880
- var distance = x + baseSize - x0;
12881
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
12882
- },
12883
- star: function (x, y, size) {
12884
- var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
12909
+ var x0 = x - baseSize;
12910
+ var y1 = y + lineHeight / 2;
12911
+ var distance = x + baseSize - x0;
12912
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
12913
+ }
12914
+ function star(x, y, size) {
12915
+ var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
12885
12916
 
12886
- var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
12887
- // eslint-disable-next-line no-magic-numbers
12917
+ var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
12918
+ // eslint-disable-next-line no-magic-numbers
12888
12919
 
12889
- var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
12890
- var length = index % 2 === 0 ? baseSize : baseSize / 2;
12891
- return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
12892
- });
12920
+ var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
12921
+ var length = index % 2 === 0 ? baseSize : baseSize / 2;
12922
+ return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
12923
+ });
12893
12924
 
12894
- return "M ".concat(starCoords.join("L"), " z");
12895
- }
12896
- });
12925
+ return "M ".concat(starCoords.join("L"), " z");
12926
+ }
12927
+ //# sourceMappingURL=point-path-helpers.js.map
12897
12928
 
12898
12929
  /***/ }),
12899
12930
 
@@ -12921,12 +12952,10 @@ __webpack_require__.r(__webpack_exports__);
12921
12952
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
12922
12953
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
12923
12954
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
12924
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
12925
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
12926
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12927
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12928
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
12929
-
12955
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12956
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12957
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
12958
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12930
12959
 
12931
12960
 
12932
12961
 
@@ -12934,6 +12963,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12934
12963
 
12935
12964
 
12936
12965
 
12966
+
12967
+
12937
12968
  /**
12938
12969
  * Return a new validator based on `validator` but with the option to chain
12939
12970
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -12941,30 +12972,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12941
12972
  * @param {Function} validator Validation function.
12942
12973
  * @returns {Function} Validator with `isRequired` option.
12943
12974
  */
12944
-
12945
12975
  var makeChainable = function (validator) {
12946
- /* eslint-disable max-params */
12947
- var _chainable = function (isRequired, props, propName, componentName) {
12948
- var value = props[propName];
12976
+ var createChainable = function (isRequired) {
12977
+ return function (props, propName, componentName) {
12978
+ var value = props[propName];
12949
12979
 
12950
- if (value === undefined || value === null) {
12951
- if (isRequired) {
12952
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12953
- }
12980
+ if (value === undefined || value === null) {
12981
+ if (isRequired) {
12982
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12983
+ }
12954
12984
 
12955
- return null;
12956
- }
12985
+ return null;
12986
+ }
12957
12987
 
12958
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
12959
- rest[_key - 4] = arguments[_key];
12960
- }
12988
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
12989
+ rest[_key - 3] = arguments[_key];
12990
+ }
12961
12991
 
12962
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
12992
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
12993
+ };
12963
12994
  };
12964
12995
 
12965
- var chainable = _chainable.bind(null, false);
12966
-
12967
- chainable.isRequired = _chainable.bind(null, true);
12996
+ var chainable = Object.assign(createChainable(false), {
12997
+ isRequired: createChainable(true)
12998
+ });
12968
12999
  return chainable;
12969
13000
  };
12970
13001
 
@@ -12994,7 +13025,7 @@ var getConstructor = function (value) {
12994
13025
  };
12995
13026
  /**
12996
13027
  * Get the name of the constructor used to create `value`, using
12997
- * `Object.protoype.toString`. If the value is null or undefined, return
13028
+ * `Object.prototype.toString`. If the value is null or undefined, return
12998
13029
  * "null" or "undefined", respectively.
12999
13030
  * @param {*} value Instance to return the constructor name of.
13000
13031
  * @returns {String} Name of the constructor.
@@ -13024,10 +13055,11 @@ function deprecated(propType, explanation) {
13024
13055
  var value = props[propName];
13025
13056
 
13026
13057
  if (value !== null && value !== undefined) {
13027
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13058
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13028
13059
  }
13029
13060
 
13030
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13061
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13062
+ return null;
13031
13063
  };
13032
13064
  }
13033
13065
  /**
@@ -13046,7 +13078,7 @@ function allOfType(validators) {
13046
13078
 
13047
13079
  return validators.reduce(function (result, validator) {
13048
13080
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
13049
- }, undefined);
13081
+ }, null);
13050
13082
  });
13051
13083
  }
13052
13084
  /**
@@ -13060,7 +13092,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
13060
13092
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
13061
13093
  }
13062
13094
 
13063
- return undefined;
13095
+ return null;
13064
13096
  });
13065
13097
  /**
13066
13098
  * Check that the value is an integer.
@@ -13073,7 +13105,7 @@ var integer = makeChainable(function (props, propName, componentName) {
13073
13105
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
13074
13106
  }
13075
13107
 
13076
- return undefined;
13108
+ return null;
13077
13109
  });
13078
13110
  /**
13079
13111
  * Check that the value is greater than zero.
@@ -13086,7 +13118,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
13086
13118
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
13087
13119
  }
13088
13120
 
13089
- return undefined;
13121
+ return null;
13090
13122
  });
13091
13123
  /**
13092
13124
  * Check that the value is an Array of two unique values.
@@ -13099,32 +13131,20 @@ var domain = makeChainable(function (props, propName, componentName) {
13099
13131
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
13100
13132
  }
13101
13133
 
13102
- return undefined;
13134
+ return null;
13103
13135
  });
13104
13136
  /**
13105
13137
  * Check that the value looks like a d3 `scale` function.
13106
13138
  */
13107
13139
 
13108
13140
  var scale = makeChainable(function (props, propName, componentName) {
13109
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13110
-
13111
- var validScale = function (scl) {
13112
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
13113
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
13114
- } else if (typeof scl === "string") {
13115
- return supportedScaleStrings.indexOf(scl) !== -1;
13116
- }
13117
-
13118
- return false;
13119
- };
13120
-
13121
13141
  var value = props[propName];
13122
13142
 
13123
- if (!validScale(value)) {
13143
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
13124
13144
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
13125
13145
  }
13126
13146
 
13127
- return undefined;
13147
+ return null;
13128
13148
  });
13129
13149
  /**
13130
13150
  * Check that an array contains items of the same type.
@@ -13138,7 +13158,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13138
13158
  }
13139
13159
 
13140
13160
  if (values.length < 2) {
13141
- return undefined;
13161
+ return null;
13142
13162
  }
13143
13163
 
13144
13164
  var comparisonConstructor = getConstructor(values[0]);
@@ -13153,7 +13173,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13153
13173
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
13154
13174
  }
13155
13175
 
13156
- return undefined;
13176
+ return null;
13157
13177
  });
13158
13178
  /**
13159
13179
  * Check that array prop length matches props.data.length
@@ -13164,7 +13184,7 @@ var matchDataLength = makeChainable(function (props, propName) {
13164
13184
  return new Error("Length of data and ".concat(propName, " arrays must match."));
13165
13185
  }
13166
13186
 
13167
- return undefined;
13187
+ return null;
13168
13188
  });
13169
13189
  /**
13170
13190
  * Check that the value is a regular expression
@@ -13175,8 +13195,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
13175
13195
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
13176
13196
  }
13177
13197
 
13178
- return undefined;
13198
+ return null;
13179
13199
  });
13200
+ //# sourceMappingURL=prop-types.js.map
13180
13201
 
13181
13202
  /***/ }),
13182
13203
 
@@ -13194,7 +13215,8 @@ __webpack_require__.r(__webpack_exports__);
13194
13215
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
13195
13216
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
13196
13217
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
13197
- /* harmony export */ "getType": () => (/* binding */ getType)
13218
+ /* harmony export */ "getType": () => (/* binding */ getType),
13219
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
13198
13220
  /* harmony export */ });
13199
13221
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
13200
13222
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -13212,8 +13234,9 @@ __webpack_require__.r(__webpack_exports__);
13212
13234
 
13213
13235
 
13214
13236
 
13215
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
13237
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13216
13238
 
13239
+ // Private Functions
13217
13240
  function toNewName(scale) {
13218
13241
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
13219
13242
  var capitalize = function (s) {
@@ -13283,7 +13306,13 @@ function getScaleTypeFromData(props, axis) {
13283
13306
 
13284
13307
 
13285
13308
  function getScaleFromName(name) {
13286
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13309
+ if (validScale(name)) {
13310
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
13311
+
13312
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
13313
+ }
13314
+
13315
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13287
13316
  }
13288
13317
  function getBaseScale(props, axis) {
13289
13318
  var scale = getScaleFromProps(props, axis);
@@ -13293,7 +13322,7 @@ function getBaseScale(props, axis) {
13293
13322
  }
13294
13323
 
13295
13324
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
13296
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
13325
+ return getScaleFromName(defaultScale);
13297
13326
  }
13298
13327
  function getDefaultScale() {
13299
13328
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -13306,7 +13335,7 @@ function getScaleFromProps(props, axis) {
13306
13335
  var scale = props.scale[axis] || props.scale;
13307
13336
 
13308
13337
  if (validScale(scale)) {
13309
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
13338
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
13310
13339
  }
13311
13340
 
13312
13341
  return undefined;
@@ -13341,6 +13370,7 @@ function getType(scale) {
13341
13370
  })[0];
13342
13371
  return scaleType ? scaleType.name : undefined;
13343
13372
  }
13373
+ //# sourceMappingURL=scale.js.map
13344
13374
 
13345
13375
  /***/ }),
13346
13376
 
@@ -13356,8 +13386,6 @@ __webpack_require__.r(__webpack_exports__);
13356
13386
  /* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
13357
13387
  /* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
13358
13388
  /* harmony export */ });
13359
- /* eslint-disable func-style */
13360
-
13361
13389
  /**
13362
13390
  * Given an object with CSS/SVG transform definitions, return the string value
13363
13391
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -13414,6 +13442,7 @@ function getColorScale(name) {
13414
13442
  };
13415
13443
  return name ? scales[name] : scales.grayscale;
13416
13444
  }
13445
+ //# sourceMappingURL=style.js.map
13417
13446
 
13418
13447
  /***/ }),
13419
13448
 
@@ -13618,8 +13647,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
13618
13647
 
13619
13648
 
13620
13649
  var convertLengthToPixels = function (length, fontSize) {
13621
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
13622
- var value = length.match(/[0-9.,]+/);
13650
+ var _length$match;
13651
+
13652
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
13653
+ var value = Number(length.match(/[0-9.,]+/));
13623
13654
  var result;
13624
13655
 
13625
13656
  if (!attribute) {
@@ -13685,9 +13716,9 @@ var _approximateTextHeightInternal = function (text, style) {
13685
13716
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
13686
13717
  return total + lineStyle.lineHeight * height;
13687
13718
  }, 0);
13688
- }; // Stubbable implementation.
13689
-
13719
+ };
13690
13720
 
13721
+ // Stubbable implementation.
13691
13722
  var _approximateTextSizeInternal = {
13692
13723
  impl: function (text, style) {
13693
13724
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -13706,7 +13737,7 @@ var _approximateTextSizeInternal = {
13706
13737
  };
13707
13738
  /**
13708
13739
  * Predict text size by font params.
13709
- * @param {string} text Content for width calculation.
13740
+ * @param {string|string[]} text Content for width calculation.
13710
13741
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
13711
13742
  * @param {string} style.fontFamily Text fontFamily.
13712
13743
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -13719,6 +13750,7 @@ var _approximateTextSizeInternal = {
13719
13750
  var approximateTextSize = function (text, style) {
13720
13751
  return _approximateTextSizeInternal.impl(text, style);
13721
13752
  };
13753
+ //# sourceMappingURL=textsize.js.map
13722
13754
 
13723
13755
  /***/ }),
13724
13756
 
@@ -13749,6 +13781,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
13749
13781
  });
13750
13782
  TimerContext.displayName = "TimerContext";
13751
13783
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
13784
+ //# sourceMappingURL=timer-context.js.map
13752
13785
 
13753
13786
  /***/ }),
13754
13787
 
@@ -13774,11 +13807,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13774
13807
 
13775
13808
  var Timer = /*#__PURE__*/function () {
13776
13809
  function Timer() {
13810
+ var _this = this;
13811
+
13777
13812
  _classCallCheck(this, Timer);
13778
13813
 
13814
+ this.shouldAnimate = void 0;
13815
+ this.subscribers = void 0;
13816
+ this.activeSubscriptions = void 0;
13817
+ this.timer = void 0;
13818
+
13819
+ this.loop = function () {
13820
+ _this.subscribers.forEach(function (s) {
13821
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13822
+ });
13823
+ };
13824
+
13779
13825
  this.shouldAnimate = true;
13780
13826
  this.subscribers = [];
13781
- this.loop = this.loop.bind(this);
13782
13827
  this.timer = null;
13783
13828
  this.activeSubscriptions = 0;
13784
13829
  }
@@ -13793,13 +13838,6 @@ var Timer = /*#__PURE__*/function () {
13793
13838
  value: function resumeAnimation() {
13794
13839
  this.shouldAnimate = true;
13795
13840
  }
13796
- }, {
13797
- key: "loop",
13798
- value: function loop() {
13799
- this.subscribers.forEach(function (s) {
13800
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13801
- });
13802
- }
13803
13841
  }, {
13804
13842
  key: "start",
13805
13843
  value: function start() {
@@ -13846,6 +13884,7 @@ var Timer = /*#__PURE__*/function () {
13846
13884
  }();
13847
13885
 
13848
13886
 
13887
+ //# sourceMappingURL=timer.js.map
13849
13888
 
13850
13889
  /***/ }),
13851
13890
 
@@ -13936,7 +13975,7 @@ function getChildData(child) {
13936
13975
  }
13937
13976
  /**
13938
13977
  * If a parent component has animation enabled, calculate the transitions
13939
- * for any data of any child component that supports data transitions
13978
+ * for any data of any child component that supports data transitions.
13940
13979
  * Data transitions are defined as any two datasets where data nodes exist
13941
13980
  * in the first set and not the second, in the second and not the first,
13942
13981
  * or both.
@@ -14065,7 +14104,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
14065
14104
 
14066
14105
  if (exitingNodes) {
14067
14106
  // After the exit transition occurs, trigger the animations for
14068
- // nodes that are neither exiting or entering.
14107
+ // nodes that are neither exiting nor entering.
14069
14108
  animate.onEnd = cb;
14070
14109
  var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
14071
14110
 
@@ -14135,7 +14174,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
14135
14174
  * and its index in the parent's children array.
14136
14175
  *
14137
14176
  * In particular, this will include an `animate` object that is set appropriately
14138
- * so that each child will be synchoronized for each stage of a transition
14177
+ * so that each child will be synchronized for each stage of a transition
14139
14178
  * animation. It will also include a transformed `data` object, where each datum
14140
14179
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
14141
14180
  * functions.
@@ -14280,6 +14319,7 @@ function getTransitionPropsFactory(props, state, setState) {
14280
14319
  };
14281
14320
  };
14282
14321
  }
14322
+ //# sourceMappingURL=transitions.js.map
14283
14323
 
14284
14324
  /***/ }),
14285
14325
 
@@ -14318,7 +14358,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
14318
14358
 
14319
14359
  /*
14320
14360
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
14321
- The startsWidth array will contain the start of any accepted user-prop that
14361
+ The startsWidth array will contain the start of any accepted user-prop that
14322
14362
  starts with these characters.
14323
14363
  The exactMatch will contain a list of exact prop names that are accepted.
14324
14364
  */
@@ -14327,6 +14367,7 @@ var USER_PROPS_SAFELIST = {
14327
14367
  startsWith: ["data-", "aria-"],
14328
14368
  exactMatch: []
14329
14369
  };
14370
+
14330
14371
  /**
14331
14372
  * doesPropStartWith: Function that takes a prop's key and runs it against all
14332
14373
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -14335,7 +14376,6 @@ var USER_PROPS_SAFELIST = {
14335
14376
  * @returns {Boolean}: returns true if the key starts with an option or false if
14336
14377
  * otherwise
14337
14378
  */
14338
-
14339
14379
  var doesPropStartWith = function (key) {
14340
14380
  var startsWith = false;
14341
14381
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -14412,14 +14452,15 @@ var getSafeUserProps = function (props) {
14412
14452
  /**
14413
14453
  * Wraps a component and adds safe user props
14414
14454
  *
14415
- * @param {ReactNode} component: parent component
14455
+ * @param {ReactElement} component: parent component
14416
14456
  * @param {Object} props: props to be filtered
14417
- * @returns {ReactNode} modified component
14457
+ * @returns {ReactElement} modified component
14418
14458
  */
14419
14459
 
14420
14460
  var withSafeUserProps = function (component, props) {
14421
14461
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
14422
14462
  };
14463
+ //# sourceMappingURL=user-props.js.map
14423
14464
 
14424
14465
  /***/ }),
14425
14466