victory-box-plot 36.9.2-next.3 → 36.9.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.
package/CHANGELOG.md CHANGED
@@ -1,23 +1,16 @@
1
1
  # victory-box-plot
2
2
 
3
- ## 36.9.2-next.3
3
+ ## 36.9.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 7da790934: Replace lodash keys with native code
8
- - 7efd582cc: Replace lodash array utils with native code
9
- - f6f7cc515: Replace lodash isNil and isNan with native code
10
- - 6e34169a5: Replace lodash isFunction with native code
11
- - Updated dependencies [7da790934]
12
- - Updated dependencies [3f2da66e3]
13
- - Updated dependencies [c13308624]
14
- - Updated dependencies [65d02419f]
15
- - Updated dependencies [7efd582cc]
16
- - Updated dependencies [9cdaf2c08]
17
- - Updated dependencies [f6f7cc515]
18
- - Updated dependencies [6e34169a5]
19
- - victory-core@36.9.2-next.3
20
- - victory-vendor@36.9.2-next.3
7
+ - Replace lodash keys with native code ([#2811](https://github.com/FormidableLabs/victory/pull/2811))
8
+
9
+ * Replace lodash array utils with native code ([#2810](https://github.com/FormidableLabs/victory/pull/2810))
10
+
11
+ - Replace lodash isNil and isNan with native code ([#2800](https://github.com/FormidableLabs/victory/pull/2800))
12
+
13
+ * Replace lodash isFunction with native code ([#2802](https://github.com/FormidableLabs/victory/pull/2802))
21
14
 
22
15
  ## 36.9.1
23
16
 
package/README.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  `victory-box-plot@^30.0.0` exports `VictoryBoxPlot` component
4
4
 
5
- To view documentation for `VictoryBoxPlot` please see https://formidable.com/open-source/victory/docs/victory-box-plot
5
+ To view documentation for `VictoryBoxPlot` please see https://commerce.nearform.com/open-source/victory/docs/victory-box-plot
6
6
 
7
- To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-boxplot.md
7
+ To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-boxplot.md
@@ -1307,83 +1307,6 @@ function baseAssignValue(object, key, value) {
1307
1307
  module.exports = baseAssignValue;
1308
1308
 
1309
1309
 
1310
- /***/ }),
1311
-
1312
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
1313
- /*!*****************************************************************************************!*\
1314
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
1315
- \*****************************************************************************************/
1316
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1317
-
1318
- var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
1319
- arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
1320
- arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
1321
- arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
1322
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
1323
- cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
1324
-
1325
- /** Used as the size to enable large array optimizations. */
1326
- var LARGE_ARRAY_SIZE = 200;
1327
-
1328
- /**
1329
- * The base implementation of methods like `_.difference` without support
1330
- * for excluding multiple arrays or iteratee shorthands.
1331
- *
1332
- * @private
1333
- * @param {Array} array The array to inspect.
1334
- * @param {Array} values The values to exclude.
1335
- * @param {Function} [iteratee] The iteratee invoked per element.
1336
- * @param {Function} [comparator] The comparator invoked per element.
1337
- * @returns {Array} Returns the new array of filtered values.
1338
- */
1339
- function baseDifference(array, values, iteratee, comparator) {
1340
- var index = -1,
1341
- includes = arrayIncludes,
1342
- isCommon = true,
1343
- length = array.length,
1344
- result = [],
1345
- valuesLength = values.length;
1346
-
1347
- if (!length) {
1348
- return result;
1349
- }
1350
- if (iteratee) {
1351
- values = arrayMap(values, baseUnary(iteratee));
1352
- }
1353
- if (comparator) {
1354
- includes = arrayIncludesWith;
1355
- isCommon = false;
1356
- }
1357
- else if (values.length >= LARGE_ARRAY_SIZE) {
1358
- includes = cacheHas;
1359
- isCommon = false;
1360
- values = new SetCache(values);
1361
- }
1362
- outer:
1363
- while (++index < length) {
1364
- var value = array[index],
1365
- computed = iteratee == null ? value : iteratee(value);
1366
-
1367
- value = (comparator || value !== 0) ? value : 0;
1368
- if (isCommon && computed === computed) {
1369
- var valuesIndex = valuesLength;
1370
- while (valuesIndex--) {
1371
- if (values[valuesIndex] === computed) {
1372
- continue outer;
1373
- }
1374
- }
1375
- result.push(value);
1376
- }
1377
- else if (!includes(values, computed, comparator)) {
1378
- result.push(value);
1379
- }
1380
- }
1381
- return result;
1382
- }
1383
-
1384
- module.exports = baseDifference;
1385
-
1386
-
1387
1310
  /***/ }),
1388
1311
 
1389
1312
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
@@ -3806,29 +3729,29 @@ module.exports = stringToPath;
3806
3729
  /*!********************************************************************************!*\
3807
3730
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js ***!
3808
3731
  \********************************************************************************/
3809
- /***/ ((module) => {
3732
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3733
+
3734
+ var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
3735
+
3736
+ /** Used as references for various `Number` constants. */
3737
+ var INFINITY = 1 / 0;
3810
3738
 
3811
3739
  /**
3812
- * This method returns the first argument it receives.
3740
+ * Converts `value` to a string key if it's not a string or symbol.
3813
3741
  *
3814
- * @static
3815
- * @since 0.1.0
3816
- * @memberOf _
3817
- * @category Util
3818
- * @param {*} value Any value.
3819
- * @returns {*} Returns `value`.
3820
- * @example
3821
- *
3822
- * var object = { 'a': 1 };
3823
- *
3824
- * console.log(_.identity(object) === object);
3825
- * // => true
3742
+ * @private
3743
+ * @param {*} value The value to inspect.
3744
+ * @returns {string|symbol} Returns the key.
3826
3745
  */
3827
- function identity(value) {
3828
- return value;
3746
+ function toKey(value) {
3747
+ if (typeof value == 'string' || isSymbol(value)) {
3748
+ return value;
3749
+ }
3750
+ var result = (value + '');
3751
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
3829
3752
  }
3830
3753
 
3831
- module.exports = identity;
3754
+ module.exports = toKey;
3832
3755
 
3833
3756
 
3834
3757
  /***/ }),
@@ -3905,49 +3828,6 @@ var defaults = baseRest(function(object, sources) {
3905
3828
  module.exports = defaults;
3906
3829
 
3907
3830
 
3908
- /***/ }),
3909
-
3910
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
3911
- /*!************************************************************************************!*\
3912
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
3913
- \************************************************************************************/
3914
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3915
-
3916
- var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
3917
- baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
3918
- baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
3919
- isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
3920
-
3921
- /**
3922
- * Creates an array of `array` values not included in the other given arrays
3923
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3924
- * for equality comparisons. The order and references of result values are
3925
- * determined by the first array.
3926
- *
3927
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
3928
- *
3929
- * @static
3930
- * @memberOf _
3931
- * @since 0.1.0
3932
- * @category Array
3933
- * @param {Array} array The array to inspect.
3934
- * @param {...Array} [values] The values to exclude.
3935
- * @returns {Array} Returns the new array of filtered values.
3936
- * @see _.without, _.xor
3937
- * @example
3938
- *
3939
- * _.difference([2, 1], [2, 3]);
3940
- * // => [1]
3941
- */
3942
- var difference = baseRest(function(array, values) {
3943
- return isArrayLikeObject(array)
3944
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
3945
- : [];
3946
- });
3947
-
3948
- module.exports = difference;
3949
-
3950
-
3951
3831
  /***/ }),
3952
3832
 
3953
3833
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
@@ -4303,49 +4183,6 @@ function isArrayLike(value) {
4303
4183
  module.exports = isArrayLike;
4304
4184
 
4305
4185
 
4306
- /***/ }),
4307
-
4308
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
4309
- /*!*******************************************************************************************!*\
4310
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
4311
- \*******************************************************************************************/
4312
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4313
-
4314
- var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
4315
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
4316
-
4317
- /**
4318
- * This method is like `_.isArrayLike` except that it also checks if `value`
4319
- * is an object.
4320
- *
4321
- * @static
4322
- * @memberOf _
4323
- * @since 4.0.0
4324
- * @category Lang
4325
- * @param {*} value The value to check.
4326
- * @returns {boolean} Returns `true` if `value` is an array-like object,
4327
- * else `false`.
4328
- * @example
4329
- *
4330
- * _.isArrayLikeObject([1, 2, 3]);
4331
- * // => true
4332
- *
4333
- * _.isArrayLikeObject(document.body.children);
4334
- * // => true
4335
- *
4336
- * _.isArrayLikeObject('abc');
4337
- * // => false
4338
- *
4339
- * _.isArrayLikeObject(_.noop);
4340
- * // => false
4341
- */
4342
- function isArrayLikeObject(value) {
4343
- return isObjectLike(value) && isArrayLike(value);
4344
- }
4345
-
4346
- module.exports = isArrayLikeObject;
4347
-
4348
-
4349
4186
  /***/ }),
4350
4187
 
4351
4188
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
@@ -8394,18 +8231,16 @@ __webpack_require__.r(__webpack_exports__);
8394
8231
  /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8395
8232
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8396
8233
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8397
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js");
8398
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_2__);
8399
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8400
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
8401
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
8402
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
8403
- /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
8404
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8405
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
8234
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8235
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8236
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8237
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8238
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8239
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
8406
8240
  /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
8407
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8408
-
8241
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8242
+ /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
8243
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8409
8244
 
8410
8245
 
8411
8246
 
@@ -8446,13 +8281,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
8446
8281
 
8447
8282
 
8448
8283
 
8284
+
8449
8285
  // DISCLAIMER:
8450
8286
  // This file is not currently tested, and it is first on the list of files
8451
8287
  // to refactor in our current refactoring effort. Please do not make changes
8452
8288
  // to this file without manual testing and/or refactoring and adding tests.
8453
8289
 
8454
8290
  var datumHasXandY = function (datum) {
8455
- return !(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isNil)(datum._y);
8291
+ return !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._y);
8456
8292
  }; // used for checking state changes. Expected components can be passed in via options
8457
8293
 
8458
8294
 
@@ -8480,11 +8316,11 @@ function addEvents(WrappedComponent) {
8480
8316
 
8481
8317
  _this = _super.call(this, props);
8482
8318
  _this.state = {};
8483
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_7__.getEventState.bind(_assertThisInitialized(_this));
8484
- _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getScopedEvents.bind(_assertThisInitialized(_this));
8319
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
8320
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
8485
8321
 
8486
8322
  _this.getEvents = function (p, target, eventKey) {
8487
- return _events__WEBPACK_IMPORTED_MODULE_7__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
8323
+ return _events__WEBPACK_IMPORTED_MODULE_6__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
8488
8324
  };
8489
8325
 
8490
8326
  _this.externalMutations = _this.getExternalMutations(_this.props);
@@ -8504,7 +8340,7 @@ function addEvents(WrappedComponent) {
8504
8340
  var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
8505
8341
 
8506
8342
  var animating = this.props.animating || this.props.animate;
8507
- var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations, this.externalMutations);
8343
+ var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(externalMutations, this.externalMutations);
8508
8344
 
8509
8345
  if (animating || newMutation) {
8510
8346
  this.cacheValues(this.getCalculatedValues(nextProps));
@@ -8515,12 +8351,12 @@ function addEvents(WrappedComponent) {
8515
8351
 
8516
8352
  var calculatedState = this.getStateChanges(nextProps);
8517
8353
 
8518
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.calculatedState, calculatedState)) {
8354
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.calculatedState, calculatedState)) {
8519
8355
  this.cacheValues(this.getCalculatedValues(nextProps));
8520
8356
  return true;
8521
8357
  }
8522
8358
 
8523
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
8359
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
8524
8360
  this.cacheValues(this.getCalculatedValues(nextProps));
8525
8361
  return true;
8526
8362
  }
@@ -8546,15 +8382,11 @@ function addEvents(WrappedComponent) {
8546
8382
  var calculatedState = this.getStateChanges(prevProps);
8547
8383
  this.calculatedState = calculatedState;
8548
8384
  var globalEventKeys = Object.keys(this.globalEvents);
8549
-
8550
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(this.prevGlobalEventKeys, globalEventKeys);
8551
-
8385
+ var removedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(this.prevGlobalEventKeys, globalEventKeys);
8552
8386
  removedGlobalEventKeys.forEach(function (key) {
8553
8387
  return _this3.removeGlobalListener(key);
8554
8388
  });
8555
-
8556
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(globalEventKeys, this.prevGlobalEventKeys);
8557
-
8389
+ var addedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(globalEventKeys, this.prevGlobalEventKeys);
8558
8390
  addedGlobalEventKeys.forEach(function (key) {
8559
8391
  return _this3.addGlobalListener(key);
8560
8392
  });
@@ -8576,16 +8408,16 @@ function addEvents(WrappedComponent) {
8576
8408
 
8577
8409
  var boundListener = function (event) {
8578
8410
  var listener = _this5.globalEvents[key];
8579
- return listener && listener(_events__WEBPACK_IMPORTED_MODULE_7__.emulateReactEvent(event));
8411
+ return listener && listener(_events__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
8580
8412
  };
8581
8413
 
8582
8414
  this.boundGlobalEvents[key] = boundListener;
8583
- window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), boundListener);
8415
+ window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
8584
8416
  }
8585
8417
  }, {
8586
8418
  key: "removeGlobalListener",
8587
8419
  value: function removeGlobalListener(key) {
8588
- window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
8420
+ window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
8589
8421
  } // compile all state changes from own and parent state. Order doesn't matter, as any state
8590
8422
  // state change should trigger a re-render
8591
8423
 
@@ -8599,7 +8431,7 @@ function addEvents(WrappedComponent) {
8599
8431
  }
8600
8432
 
8601
8433
  var getState = function (key, type) {
8602
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
8434
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
8603
8435
 
8604
8436
  return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
8605
8437
  };
@@ -8622,7 +8454,7 @@ function addEvents(WrappedComponent) {
8622
8454
  value: function applyExternalMutations(props, externalMutations) {
8623
8455
  if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
8624
8456
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
8625
- return (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
8457
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
8626
8458
  }, []);
8627
8459
  var compiledCallbacks = callbacks.length ? function () {
8628
8460
  callbacks.forEach(function (c) {
@@ -8637,8 +8469,8 @@ function addEvents(WrappedComponent) {
8637
8469
  value: function getCalculatedValues(props) {
8638
8470
  var sharedEvents = props.sharedEvents;
8639
8471
  var components = WrappedComponent.expectedComponents;
8640
- var componentEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getComponentEvents(props, components);
8641
- var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
8472
+ var componentEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
8473
+ var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
8642
8474
  return undefined;
8643
8475
  };
8644
8476
  var baseProps = this.getBaseProps(props, getSharedEventState);
@@ -8661,7 +8493,7 @@ function addEvents(WrappedComponent) {
8661
8493
  value: function getExternalMutations(props) {
8662
8494
  var sharedEvents = props.sharedEvents,
8663
8495
  externalEventMutations = props.externalEventMutations;
8664
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_7__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8496
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8665
8497
  }
8666
8498
  }, {
8667
8499
  key: "cacheValues",
@@ -8679,12 +8511,12 @@ function addEvents(WrappedComponent) {
8679
8511
  var sharedParentState = getSharedEventStateFunction("parent", "parent");
8680
8512
  var parentState = this.getEventState("parent", "parent");
8681
8513
 
8682
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, parentState, sharedParentState);
8514
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
8683
8515
 
8684
8516
  var parentPropsList = baseParentProps.parentControlledProps;
8685
8517
  var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
8686
8518
 
8687
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, parentProps, props);
8519
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
8688
8520
 
8689
8521
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
8690
8522
  }
@@ -8716,21 +8548,21 @@ function addEvents(WrappedComponent) {
8716
8548
  if (this.hasEvents) {
8717
8549
  var baseEvents = this.getEvents(this.props, type, key);
8718
8550
 
8719
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
8551
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8720
8552
  index: index,
8721
8553
  key: id
8722
8554
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
8723
8555
  id: id
8724
8556
  });
8725
8557
 
8726
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, _events__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8558
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8727
8559
 
8728
8560
  return Object.assign({}, componentProps, {
8729
8561
  events: events
8730
8562
  });
8731
8563
  }
8732
8564
 
8733
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
8565
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8734
8566
  index: index,
8735
8567
  key: id
8736
8568
  }, currentProps, baseProps, {
@@ -8744,11 +8576,11 @@ function addEvents(WrappedComponent) {
8744
8576
  var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
8745
8577
 
8746
8578
  if (parentProps.events) {
8747
- this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEvents(parentProps.events);
8748
- parentProps.events = _events__WEBPACK_IMPORTED_MODULE_7__.omitGlobalEvents(parentProps.events);
8579
+ this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
8580
+ parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
8749
8581
  }
8750
8582
 
8751
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(component, parentProps, children);
8583
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
8752
8584
  }
8753
8585
  }, {
8754
8586
  key: "animateComponent",
@@ -8757,10 +8589,10 @@ function addEvents(WrappedComponent) {
8757
8589
 
8758
8590
  var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
8759
8591
  var Comp = this.constructor;
8760
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8592
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8761
8593
  animate: props.animate,
8762
8594
  animationWhitelist: animationWhitelist
8763
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(Comp, props));
8595
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
8764
8596
  } // Used by `VictoryLine` and `VictoryArea`
8765
8597
 
8766
8598
  }, {
@@ -8780,13 +8612,13 @@ function addEvents(WrappedComponent) {
8780
8612
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
8781
8613
 
8782
8614
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
8783
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(labelComponent, labelProps));
8615
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
8784
8616
  }
8785
8617
 
8786
8618
  return newMemo;
8787
8619
  }, []);
8788
8620
  var dataProps = this.getComponentProps(dataComponent, "data", "all");
8789
- var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
8621
+ var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
8790
8622
  return this.renderContainer(groupComponent, children);
8791
8623
  }
8792
8624
  }, {
@@ -8802,7 +8634,7 @@ function addEvents(WrappedComponent) {
8802
8634
  var dataProps = _this9.getComponentProps(dataComponent, "data", index);
8803
8635
 
8804
8636
  if (shouldRenderDatum(dataProps.datum)) {
8805
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(dataComponent, dataProps));
8637
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
8806
8638
  }
8807
8639
 
8808
8640
  return validDataComponents;
@@ -8811,7 +8643,7 @@ function addEvents(WrappedComponent) {
8811
8643
  var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
8812
8644
 
8813
8645
  if (labelProps.text !== undefined && labelProps.text !== null) {
8814
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(labelComponent, labelProps);
8646
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
8815
8647
  }
8816
8648
 
8817
8649
  return undefined;
@@ -8842,6 +8674,7 @@ __webpack_require__.r(__webpack_exports__);
8842
8674
  /* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
8843
8675
  /* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
8844
8676
  /* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
8677
+ /* harmony export */ "difference": () => (/* binding */ difference),
8845
8678
  /* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
8846
8679
  /* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
8847
8680
  /* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
@@ -8883,6 +8716,22 @@ function containsOnlyStrings(collection) {
8883
8716
  return typeof value === "string";
8884
8717
  });
8885
8718
  }
8719
+ /**
8720
+ * Creates an array of array values not included in the other given arrays
8721
+ * @param a The array to inspect
8722
+ * @param b The values to exclude
8723
+ * @returns The new array of filtered values
8724
+ */
8725
+
8726
+ function difference(a, b) {
8727
+ if (a && b) {
8728
+ return a.filter(function (value) {
8729
+ return !b.includes(value);
8730
+ });
8731
+ }
8732
+
8733
+ return [];
8734
+ }
8886
8735
  function isArrayOfArrays(collection) {
8887
8736
  return isNonEmptyArray(collection) && collection.every(Array.isArray);
8888
8737
  }
@@ -10492,6 +10341,7 @@ __webpack_require__.r(__webpack_exports__);
10492
10341
  /* harmony export */ "getRadius": () => (/* binding */ getRadius),
10493
10342
  /* harmony export */ "getRange": () => (/* binding */ getRange),
10494
10343
  /* harmony export */ "getStyles": () => (/* binding */ getStyles),
10344
+ /* harmony export */ "invert": () => (/* binding */ invert),
10495
10345
  /* harmony export */ "isFunction": () => (/* binding */ isFunction),
10496
10346
  /* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
10497
10347
  /* harmony export */ "isNil": () => (/* binding */ isNil),
@@ -10542,6 +10392,18 @@ function getPolarRange(props, axis) {
10542
10392
  return [props.innerRadius || 0, getRadius(props)];
10543
10393
  } // Exported Functions
10544
10394
 
10395
+ /**
10396
+ * Creates an object composed of the inverted keys and values of object.
10397
+ * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
10398
+ */
10399
+
10400
+
10401
+ function invert(original) {
10402
+ return Object.entries(original).reduce(function (acc, current) {
10403
+ acc[current[1]] = current[0];
10404
+ return acc;
10405
+ }, {});
10406
+ }
10545
10407
  /**
10546
10408
  * creates an object with some keys excluded
10547
10409
  * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
@@ -10550,7 +10412,6 @@ function getPolarRange(props, axis) {
10550
10412
  * @returns {Object} new object with same properties as originalObject
10551
10413
  */
10552
10414
 
10553
-
10554
10415
  function omit(originalObject) {
10555
10416
  var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
10556
10417
  // code based on babel's _objectWithoutProperties