victory-core 37.3.2 → 37.3.3

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.
Files changed (127) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/victory-core.js +423 -371
  3. package/dist/victory-core.min.js +1 -1
  4. package/es/types/callbacks.d.ts +11 -11
  5. package/es/types/prop-types.d.ts +28 -28
  6. package/es/victory-animation/util.js +6 -6
  7. package/es/victory-animation/victory-animation.d.ts +3 -3
  8. package/es/victory-clip-container/victory-clip-container.d.ts +6 -1
  9. package/es/victory-clip-container/victory-clip-container.js +20 -12
  10. package/es/victory-container/victory-container.js +2 -2
  11. package/es/victory-label/victory-label.d.ts +3 -3
  12. package/es/victory-label/victory-label.js +12 -16
  13. package/es/victory-portal/victory-portal.js +4 -4
  14. package/es/victory-primitives/arc.js +2 -2
  15. package/es/victory-primitives/background.js +2 -2
  16. package/es/victory-primitives/border.js +2 -2
  17. package/es/victory-primitives/line-segment.js +2 -2
  18. package/es/victory-primitives/point.js +2 -2
  19. package/es/victory-primitives/tspan.d.ts +0 -1
  20. package/es/victory-primitives/types.d.ts +1 -1
  21. package/es/victory-primitives/whisker.d.ts +1 -1
  22. package/es/victory-primitives/whisker.js +2 -2
  23. package/es/victory-theme/types.d.ts +11 -11
  24. package/es/victory-transition/victory-transition.d.ts +1 -1
  25. package/es/victory-transition/victory-transition.js +7 -7
  26. package/es/victory-util/add-events.d.ts +8 -8
  27. package/es/victory-util/add-events.js +13 -13
  28. package/es/victory-util/axis.js +11 -11
  29. package/es/victory-util/data.js +16 -16
  30. package/es/victory-util/domain.js +13 -13
  31. package/es/victory-util/events.d.ts +4 -4
  32. package/es/victory-util/events.js +14 -14
  33. package/es/victory-util/helpers.d.ts +94 -19
  34. package/es/victory-util/helpers.js +95 -49
  35. package/es/victory-util/hooks/use-animation-state.d.ts +2 -2
  36. package/es/victory-util/hooks/use-animation-state.js +4 -4
  37. package/es/victory-util/label-helpers.d.ts +4 -3
  38. package/es/victory-util/label-helpers.js +3 -2
  39. package/es/victory-util/line-helpers.d.ts +1 -1
  40. package/es/victory-util/log.js +3 -2
  41. package/es/victory-util/merge-refs.d.ts +1 -1
  42. package/es/victory-util/scale.js +2 -2
  43. package/es/victory-util/selection.d.ts +3 -3
  44. package/es/victory-util/textsize.js +7 -5
  45. package/es/victory-util/timer.d.ts +1 -1
  46. package/es/victory-util/transitions.d.ts +1 -1
  47. package/es/victory-util/transitions.js +12 -12
  48. package/es/victory-util/type-helpers.d.ts +0 -1
  49. package/es/victory-util/type-helpers.js +0 -5
  50. package/es/victory-util/user-props.d.ts +2 -2
  51. package/es/victory-util/wrapper.js +12 -12
  52. package/lib/types/callbacks.d.ts +11 -11
  53. package/lib/types/prop-types.d.ts +28 -28
  54. package/lib/victory-animation/util.js +6 -6
  55. package/lib/victory-animation/victory-animation.d.ts +3 -3
  56. package/lib/victory-clip-container/victory-clip-container.d.ts +6 -1
  57. package/lib/victory-clip-container/victory-clip-container.js +20 -12
  58. package/lib/victory-container/victory-container.js +3 -3
  59. package/lib/victory-label/victory-label.d.ts +3 -3
  60. package/lib/victory-label/victory-label.js +12 -16
  61. package/lib/victory-portal/victory-portal.js +5 -5
  62. package/lib/victory-primitives/arc.js +2 -2
  63. package/lib/victory-primitives/background.js +2 -2
  64. package/lib/victory-primitives/border.js +2 -2
  65. package/lib/victory-primitives/line-segment.js +2 -2
  66. package/lib/victory-primitives/point.js +2 -2
  67. package/lib/victory-primitives/tspan.d.ts +0 -1
  68. package/lib/victory-primitives/types.d.ts +1 -1
  69. package/lib/victory-primitives/whisker.d.ts +1 -1
  70. package/lib/victory-primitives/whisker.js +2 -2
  71. package/lib/victory-theme/types.d.ts +11 -11
  72. package/lib/victory-transition/victory-transition.d.ts +1 -1
  73. package/lib/victory-transition/victory-transition.js +7 -7
  74. package/lib/victory-util/add-events.d.ts +8 -8
  75. package/lib/victory-util/add-events.js +13 -13
  76. package/lib/victory-util/axis.js +11 -11
  77. package/lib/victory-util/data.js +16 -16
  78. package/lib/victory-util/domain.js +13 -13
  79. package/lib/victory-util/events.d.ts +4 -4
  80. package/lib/victory-util/events.js +14 -14
  81. package/lib/victory-util/helpers.d.ts +94 -19
  82. package/lib/victory-util/helpers.js +96 -50
  83. package/lib/victory-util/hooks/use-animation-state.d.ts +2 -2
  84. package/lib/victory-util/hooks/use-animation-state.js +4 -4
  85. package/lib/victory-util/label-helpers.d.ts +4 -3
  86. package/lib/victory-util/label-helpers.js +3 -3
  87. package/lib/victory-util/line-helpers.d.ts +1 -1
  88. package/lib/victory-util/log.js +3 -2
  89. package/lib/victory-util/merge-refs.d.ts +1 -1
  90. package/lib/victory-util/scale.js +2 -2
  91. package/lib/victory-util/selection.d.ts +3 -3
  92. package/lib/victory-util/textsize.js +5 -5
  93. package/lib/victory-util/timer.d.ts +1 -1
  94. package/lib/victory-util/transitions.d.ts +1 -1
  95. package/lib/victory-util/transitions.js +12 -12
  96. package/lib/victory-util/type-helpers.d.ts +0 -1
  97. package/lib/victory-util/type-helpers.js +0 -6
  98. package/lib/victory-util/user-props.d.ts +2 -2
  99. package/lib/victory-util/wrapper.js +12 -12
  100. package/package.json +2 -30
  101. package/src/victory-animation/util.ts +3 -1
  102. package/src/victory-clip-container/victory-clip-container.tsx +26 -11
  103. package/src/victory-container/victory-container.tsx +1 -1
  104. package/src/victory-label/victory-label.tsx +5 -3
  105. package/src/victory-portal/victory-portal.tsx +3 -1
  106. package/src/victory-primitives/arc.tsx +1 -1
  107. package/src/victory-primitives/background.tsx +1 -1
  108. package/src/victory-primitives/border.tsx +1 -1
  109. package/src/victory-primitives/line-segment.tsx +1 -1
  110. package/src/victory-primitives/point.tsx +1 -1
  111. package/src/victory-primitives/whisker.tsx +1 -1
  112. package/src/victory-transition/victory-transition.tsx +4 -2
  113. package/src/victory-util/add-events.tsx +5 -2
  114. package/src/victory-util/axis.tsx +7 -3
  115. package/src/victory-util/data.ts +9 -10
  116. package/src/victory-util/domain.ts +8 -4
  117. package/src/victory-util/events.ts +4 -1
  118. package/src/victory-util/helpers.ts +155 -39
  119. package/src/victory-util/hooks/use-animation-state.ts +1 -1
  120. package/src/victory-util/label-helpers.ts +1 -1
  121. package/src/victory-util/log.ts +3 -2
  122. package/src/victory-util/scale.ts +1 -1
  123. package/src/victory-util/textsize.ts +2 -1
  124. package/src/victory-util/transitions.ts +3 -1
  125. package/src/victory-util/type-helpers.ts +0 -5
  126. package/src/victory-util/user-props.ts +1 -1
  127. package/src/victory-util/wrapper.tsx +5 -1
@@ -67,10 +67,10 @@ __webpack_require__.r(__webpack_exports__);
67
67
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
68
68
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
69
69
  /* harmony export */ });
70
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
71
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
72
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
73
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
70
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
71
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
72
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
73
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
74
74
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
75
75
 
76
76
 
@@ -96,7 +96,7 @@ const isInterpolatable = function (obj) {
96
96
  return false;
97
97
  case "object":
98
98
  // Don't try to interpolate class instances (except Date or Array).
99
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
99
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
100
100
  case "function":
101
101
  // Careful! There may be extra properties on function objects that the
102
102
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -182,7 +182,7 @@ const interpolateObject = function (startValue, endValue) {
182
182
  if (typeof x === "function" || typeof y === "function") {
183
183
  return interpolateFunction(x, y);
184
184
  }
185
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
185
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
186
186
  return interpolateObject(x, y);
187
187
  }
188
188
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -191,7 +191,7 @@ const interpolateObject = function (startValue, endValue) {
191
191
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
192
192
  // based on "key" instead of index
193
193
  const keyData = val => {
194
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
194
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
195
195
  };
196
196
  const i = {};
197
197
  const c = {};
@@ -258,7 +258,7 @@ const victoryInterpolator = function (a, b) {
258
258
  if (typeof a === "function" || typeof b === "function") {
259
259
  return interpolateFunction(a, b);
260
260
  }
261
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
261
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
262
262
  // @ts-expect-error These generics are tough, but they work :)
263
263
  return interpolateObject(a, b);
264
264
  }
@@ -433,20 +433,17 @@ __webpack_require__.r(__webpack_exports__);
433
433
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
434
434
  /* harmony export */ "VictoryClipContainer": function() { return /* binding */ VictoryClipContainer; }
435
435
  /* harmony export */ });
436
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
437
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
438
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
439
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__);
440
- /* 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");
441
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
442
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
443
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
444
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
445
- /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "./victory-util/user-props.ts");
446
- /* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "./victory-primitives/clip-path.tsx");
447
- /* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-primitives/circle */ "./victory-primitives/circle.tsx");
448
- /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-primitives/rect */ "./victory-primitives/rect.tsx");
449
-
436
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
437
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
438
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
439
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
440
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
441
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
442
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
443
+ /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "./victory-util/user-props.ts");
444
+ /* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "./victory-primitives/clip-path.tsx");
445
+ /* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-primitives/circle */ "./victory-primitives/circle.tsx");
446
+ /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-primitives/rect */ "./victory-primitives/rect.tsx");
450
447
 
451
448
 
452
449
 
@@ -455,18 +452,31 @@ __webpack_require__.r(__webpack_exports__);
455
452
 
456
453
 
457
454
 
458
- class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default().Component) {
455
+ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
459
456
  static displayName = "VictoryClipContainer";
460
457
  static role = "container";
461
458
  static defaultProps = {
462
- circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_4__.Circle, null),
463
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_5__.Rect, null),
464
- clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_6__.ClipPath, null),
465
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
459
+ circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
460
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
461
+ clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_5__.ClipPath, null),
462
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
466
463
  };
467
464
  constructor(props) {
468
465
  super(props);
469
- this.clipId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.clipId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-clip-") : props.clipId;
466
+ this.state = {
467
+ clipId: props?.clipId
468
+ };
469
+ }
470
+
471
+ // The clipId state is used to prevent hydration mismatches between the server and client (issue #2941).
472
+ // A better alternative would be to utilize React 18's useId hook instead of uniqueId, which would avoid needing state for this purpose.
473
+ // However, this component currently supports React 16 at the time of writing, so this workaround is necessary.
474
+ componentDidMount() {
475
+ if (!this.state.clipId) {
476
+ this.setState({
477
+ clipId: lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-clip-")
478
+ });
479
+ }
470
480
  }
471
481
  calculateAttributes(props) {
472
482
  const {
@@ -477,10 +487,8 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
477
487
  translateX = 0,
478
488
  translateY = 0
479
489
  } = props;
480
- const clipPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getPadding({
481
- padding: props.clipPadding
482
- });
483
- const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRadius(props);
490
+ const clipPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getPadding(props.clipPadding);
491
+ const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRadius(props);
484
492
  return {
485
493
  x: (polar ? origin.x : translateX) - clipPadding.left,
486
494
  y: (polar ? origin.y : translateY) - clipPadding.top,
@@ -489,7 +497,7 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
489
497
  };
490
498
  }
491
499
  renderClippedGroup(props, clipId) {
492
- const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(props);
500
+ const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__.getSafeUserProps(props);
493
501
  const {
494
502
  style,
495
503
  events,
@@ -507,11 +515,11 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
507
515
  key: `clipped-group-${clipId}`,
508
516
  clipPath: `url(#${clipId})`
509
517
  }, events);
510
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(groupComponent, {
518
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {
511
519
  ...groupProps,
512
520
  tabIndex,
513
521
  ...userProps
514
- }, [clipComponent, ...react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(children)]);
522
+ }, [clipComponent, ...react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children)]);
515
523
  }
516
524
  renderGroup(props) {
517
525
  const {
@@ -523,7 +531,7 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
523
531
  groupComponent,
524
532
  tabIndex
525
533
  } = props;
526
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(groupComponent, Object.assign({
534
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, Object.assign({
527
535
  className,
528
536
  style,
529
537
  transform,
@@ -548,18 +556,16 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
548
556
  bottom,
549
557
  left,
550
558
  right
551
- } = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getPadding({
552
- padding: props.clipPadding
553
- });
559
+ } = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getPadding(props.clipPadding);
554
560
  let child;
555
561
  if (polar) {
556
- const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRadius(props);
562
+ const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRadius(props);
557
563
  const circleProps = {
558
564
  r: Math.max(radius + left + right, radius + top + bottom, 0),
559
565
  cx: origin.x - left,
560
566
  cy: origin.y - top
561
567
  };
562
- child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(circleComponent, circleProps);
568
+ child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(circleComponent, circleProps);
563
569
  } else {
564
570
  const rectProps = {
565
571
  x: translateX - left,
@@ -567,9 +573,9 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
567
573
  width: Math.max(clipWidth + left + right, 0),
568
574
  height: Math.max(clipHeight + top + bottom, 0)
569
575
  };
570
- child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(rectComponent, rectProps);
576
+ child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(rectComponent, rectProps);
571
577
  }
572
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(clipPathComponent, Object.assign({
578
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(clipPathComponent, Object.assign({
573
579
  key: `clip-path-${clipId}`
574
580
  }, props, {
575
581
  clipId
@@ -583,7 +589,7 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
583
589
  if (clipValues[axis] !== undefined) {
584
590
  return clipValues[axis];
585
591
  }
586
- const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(props, axis);
592
+ const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRange(props, axis);
587
593
  return range ? Math.abs(range[0] - range[1]) || undefined : undefined;
588
594
  }
589
595
  getTranslateValue(props, axis) {
@@ -594,7 +600,7 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
594
600
  if (translateValues[axis] !== undefined) {
595
601
  return translateValues[axis];
596
602
  }
597
- const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(props, axis);
603
+ const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRange(props, axis);
598
604
  return range ? Math.min(...range) : undefined;
599
605
  }
600
606
  render() {
@@ -605,13 +611,13 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
605
611
  }
606
612
  const translateX = this.getTranslateValue(this.props, "x");
607
613
  const translateY = this.getTranslateValue(this.props, "y");
608
- const clipProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.props, {
614
+ const clipProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.props, {
609
615
  clipHeight,
610
616
  clipWidth,
611
617
  translateX,
612
618
  translateY
613
619
  });
614
- return this.renderClippedGroup(clipProps, this.clipId);
620
+ return this.renderClippedGroup(clipProps, this.state.clipId);
615
621
  }
616
622
  }
617
623
 
@@ -629,16 +635,15 @@ __webpack_require__.r(__webpack_exports__);
629
635
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
630
636
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
631
637
  /* harmony export */ });
632
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
633
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
634
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
635
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
638
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
639
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
640
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
641
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
636
642
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "./victory-portal/portal.tsx");
637
643
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/user-props */ "./victory-util/user-props.ts");
638
644
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "./victory-util/merge-refs.ts");
639
645
  /* harmony import */ var _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-outlet */ "./victory-portal/portal-outlet.tsx");
640
646
  /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "./victory-portal/portal-context.tsx");
641
-
642
647
  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); }
643
648
 
644
649
 
@@ -646,9 +651,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
646
651
 
647
652
 
648
653
 
654
+
649
655
  const defaultProps = {
650
656
  className: "VictoryContainer",
651
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
657
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
652
658
  portalZIndex: 99,
653
659
  responsive: true,
654
660
  role: "img"
@@ -665,10 +671,10 @@ function useVictoryContainer(initialProps) {
665
671
  height,
666
672
  responsive
667
673
  } = props;
668
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
674
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
669
675
 
670
676
  // Generated ID stored in ref because it needs to persist across renders
671
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
677
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
672
678
  const containerId = props.containerId ?? generatedId.current;
673
679
  const getIdForElement = elName => `${containerId}-${elName}`;
674
680
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -727,7 +733,7 @@ const VictoryContainer = initialProps => {
727
733
  containerRef,
728
734
  localContainerRef
729
735
  } = useVictoryContainer(initialProps);
730
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
736
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
731
737
  if (!events?.onWheel) return;
732
738
  const handleWheel = e => e.preventDefault();
733
739
  const container = localContainerRef?.current;
@@ -737,7 +743,7 @@ const VictoryContainer = initialProps => {
737
743
  };
738
744
  // eslint-disable-next-line react-hooks/exhaustive-deps
739
745
  }, []);
740
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
746
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
741
747
  className: className,
742
748
  style: {
743
749
  ...style,
@@ -751,7 +757,7 @@ const VictoryContainer = initialProps => {
751
757
  "data-ouia-component-type": ouiaType,
752
758
  "data-ouia-safe": ouiaSafe,
753
759
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
754
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("svg", _extends({
760
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
755
761
  width: width,
756
762
  height: height,
757
763
  tabIndex: tabIndex,
@@ -764,11 +770,11 @@ const VictoryContainer = initialProps => {
764
770
  ...dimensions,
765
771
  pointerEvents: "all"
766
772
  }
767
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
773
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
768
774
  id: titleId
769
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
775
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
770
776
  id: descId
771
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
777
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
772
778
  style: {
773
779
  ...dimensions,
774
780
  zIndex: portalZIndex,
@@ -776,7 +782,7 @@ const VictoryContainer = initialProps => {
776
782
  top: 0,
777
783
  left: 0
778
784
  }
779
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
785
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
780
786
  as: portalComponent,
781
787
  width: width,
782
788
  height: height,
@@ -803,12 +809,12 @@ __webpack_require__.r(__webpack_exports__);
803
809
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
804
810
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
805
811
  /* harmony export */ });
806
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
807
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
812
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
813
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
808
814
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
809
815
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
810
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
811
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
816
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
817
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
812
818
  /* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "./victory-portal/victory-portal.tsx");
813
819
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "./victory-primitives/rect.tsx");
814
820
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "./victory-primitives/text.tsx");
@@ -819,9 +825,9 @@ __webpack_require__.r(__webpack_exports__);
819
825
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "./victory-util/style.ts");
820
826
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "./victory-util/textsize.ts");
821
827
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "./victory-util/user-props.ts");
828
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
822
829
 
823
830
 
824
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
825
831
 
826
832
 
827
833
 
@@ -873,7 +879,7 @@ const shouldUseMultilineBackgrounds = props => {
873
879
  backgroundStyle,
874
880
  backgroundPadding
875
881
  } = props;
876
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
882
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
877
883
  };
878
884
  const getStyles = (style, props) => {
879
885
  if (props.disableInlineStyles) {
@@ -889,32 +895,28 @@ const getStyles = (style, props) => {
889
895
  fontSize: getFontSize(baseStyles)
890
896
  });
891
897
  };
892
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
898
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
893
899
  };
894
900
  const getBackgroundStyles = (style, props) => {
895
901
  if (!style) {
896
902
  return undefined;
897
903
  }
898
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
904
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
899
905
  };
900
906
  const getBackgroundPadding = props => {
901
907
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
902
908
  return props.backgroundPadding.map(backgroundPadding => {
903
909
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
904
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
905
- padding
906
- });
910
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
907
911
  });
908
912
  }
909
913
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
910
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
911
- padding
912
- });
914
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
913
915
  };
914
916
  const getLineHeight = props => {
915
917
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
916
918
  if (Array.isArray(lineHeight)) {
917
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
919
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
918
920
  }
919
921
  return lineHeight;
920
922
  };
@@ -1034,7 +1036,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
1034
1036
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
1035
1037
  y: yCoordinate
1036
1038
  };
1037
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
1039
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
1038
1040
  };
1039
1041
  const getInlineXOffset = (calculatedProps, textElements, index) => {
1040
1042
  const {
@@ -1104,7 +1106,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
1104
1106
  x: xCoord - padding.left,
1105
1107
  y: yCoord
1106
1108
  };
1107
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
1109
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
1108
1110
  });
1109
1111
  };
1110
1112
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -1235,16 +1237,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
1235
1237
  style: currentStyle,
1236
1238
  children: line
1237
1239
  };
1238
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
1240
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
1239
1241
  });
1240
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
1242
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
1241
1243
  };
1242
1244
  const defaultProps = {
1243
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
1244
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
1245
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
1246
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
1245
1247
  direction: "inherit",
1246
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
1247
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
1248
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
1249
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
1248
1250
  capHeight: 0.71,
1249
1251
  // Magic number from d3.
1250
1252
  lineHeight: 1
@@ -1281,10 +1283,10 @@ const VictoryLabel = initialProps => {
1281
1283
  if (props.backgroundStyle) {
1282
1284
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
1283
1285
  const children = [backgroundElement, label];
1284
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
1285
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
1286
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
1287
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
1286
1288
  }
1287
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
1289
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
1288
1290
  };
1289
1291
  VictoryLabel.displayName = "VictoryLabel";
1290
1292
  VictoryLabel.role = "label";
@@ -1410,12 +1412,12 @@ __webpack_require__.r(__webpack_exports__);
1410
1412
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1411
1413
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
1412
1414
  /* harmony export */ });
1413
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
1414
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
1415
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1416
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1415
1417
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1416
1418
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1417
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
1418
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
1419
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
1420
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
1419
1421
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "./victory-util/log.ts");
1420
1422
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1421
1423
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "./victory-portal/portal-context.tsx");
@@ -1426,14 +1428,14 @@ __webpack_require__.r(__webpack_exports__);
1426
1428
 
1427
1429
 
1428
1430
  const defaultProps = {
1429
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
1431
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
1430
1432
  };
1431
1433
  const VictoryPortal = initialProps => {
1432
1434
  const props = {
1433
1435
  ...defaultProps,
1434
1436
  ...initialProps
1435
1437
  };
1436
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
1438
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
1437
1439
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
1438
1440
  if (!portalContext) {
1439
1441
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -1451,12 +1453,12 @@ const VictoryPortal = initialProps => {
1451
1453
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
1452
1454
  key: childProps.key ?? id
1453
1455
  });
1454
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
1455
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
1456
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
1457
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
1456
1458
  portalContext?.addChild(id, child);
1457
1459
  // eslint-disable-next-line react-hooks/exhaustive-deps
1458
1460
  }, [props.children]);
1459
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
1461
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
1460
1462
  return () => portalContext?.removeChild(id);
1461
1463
  // eslint-disable-next-line react-hooks/exhaustive-deps
1462
1464
  }, []);
@@ -1477,17 +1479,17 @@ __webpack_require__.r(__webpack_exports__);
1477
1479
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1478
1480
  /* harmony export */ "Arc": function() { return /* binding */ Arc; }
1479
1481
  /* harmony export */ });
1480
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1481
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
1482
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1483
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1482
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1483
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1484
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1485
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1484
1486
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1485
1487
  /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./path */ "./victory-primitives/path.tsx");
1486
-
1487
1488
  /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/
1488
1489
 
1489
1490
 
1490
1491
 
1492
+
1491
1493
  const getArcPath = props => {
1492
1494
  const {
1493
1495
  cx,
@@ -1539,13 +1541,13 @@ const evaluateProps = props => {
1539
1541
  });
1540
1542
  };
1541
1543
  const defaultProps = {
1542
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_3__.Path, null),
1544
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_path__WEBPACK_IMPORTED_MODULE_3__.Path, null),
1543
1545
  role: "presentation",
1544
1546
  shapeRendering: "auto"
1545
1547
  };
1546
1548
  const Arc = initialProps => {
1547
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
1548
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
1549
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
1550
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
1549
1551
  ...props.events,
1550
1552
  "aria-label": props.ariaLabel,
1551
1553
  d: getArcPath(props),
@@ -1573,10 +1575,10 @@ __webpack_require__.r(__webpack_exports__);
1573
1575
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1574
1576
  /* harmony export */ "Background": function() { return /* binding */ Background; }
1575
1577
  /* harmony export */ });
1576
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1577
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
1578
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1579
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1578
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1579
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1580
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1581
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1580
1582
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1581
1583
  /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rect */ "./victory-primitives/rect.tsx");
1582
1584
  /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./circle */ "./victory-primitives/circle.tsx");
@@ -1596,14 +1598,14 @@ const evaluateProps = props => {
1596
1598
  });
1597
1599
  };
1598
1600
  const defaultProps = {
1599
- circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
1600
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
1601
+ circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
1602
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
1601
1603
  role: "presentation",
1602
1604
  shapeRendering: "auto"
1603
1605
  };
1604
1606
  const Background = initialProps => {
1605
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
1606
- return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.circleComponent, {
1607
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
1608
+ return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.circleComponent, {
1607
1609
  ...props.events,
1608
1610
  style: props.style,
1609
1611
  role: props.role,
@@ -1612,7 +1614,7 @@ const Background = initialProps => {
1612
1614
  cy: props.y,
1613
1615
  r: props.height,
1614
1616
  className: props.className
1615
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
1617
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
1616
1618
  ...props.events,
1617
1619
  style: props.style,
1618
1620
  role: props.role,
@@ -1640,10 +1642,10 @@ __webpack_require__.r(__webpack_exports__);
1640
1642
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1641
1643
  /* harmony export */ "Border": function() { return /* binding */ Border; }
1642
1644
  /* harmony export */ });
1643
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1644
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
1645
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1646
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1645
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1646
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1647
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1648
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1647
1649
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1648
1650
  /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "./victory-primitives/rect.tsx");
1649
1651
 
@@ -1675,13 +1677,13 @@ const evaluateProps = props => {
1675
1677
  });
1676
1678
  };
1677
1679
  const defaultProps = {
1678
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
1680
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
1679
1681
  role: "presentation",
1680
1682
  shapeRendering: "auto"
1681
1683
  };
1682
1684
  const Border = initialProps => {
1683
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
1684
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
1685
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
1686
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
1685
1687
  ...props.events,
1686
1688
  "aria-label": props.ariaLabel,
1687
1689
  style: props.style,
@@ -1828,10 +1830,10 @@ __webpack_require__.r(__webpack_exports__);
1828
1830
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1829
1831
  /* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
1830
1832
  /* harmony export */ });
1831
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1832
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
1833
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1834
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1833
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1834
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1835
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1836
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1835
1837
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1836
1838
  /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "./victory-primitives/line.tsx");
1837
1839
 
@@ -1863,13 +1865,13 @@ const evaluateProps = props => {
1863
1865
  });
1864
1866
  };
1865
1867
  const defaultProps = {
1866
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
1868
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
1867
1869
  role: "presentation",
1868
1870
  shapeRendering: "auto"
1869
1871
  };
1870
1872
  const LineSegment = initialProps => {
1871
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
1872
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
1873
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
1874
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
1873
1875
  ...props.events,
1874
1876
  "aria-label": props.ariaLabel,
1875
1877
  style: props.style,
@@ -1985,10 +1987,10 @@ __webpack_require__.r(__webpack_exports__);
1985
1987
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1986
1988
  /* harmony export */ "Point": function() { return /* binding */ Point; }
1987
1989
  /* harmony export */ });
1988
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1989
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
1990
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1991
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1990
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1991
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1992
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
1993
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
1992
1994
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
1993
1995
  /* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "./victory-util/point-path-helpers.ts");
1994
1996
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/user-props */ "./victory-util/user-props.ts");
@@ -2042,14 +2044,14 @@ const evaluateProps = props => {
2042
2044
  });
2043
2045
  };
2044
2046
  const defaultProps = {
2045
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
2047
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
2046
2048
  role: "presentation",
2047
2049
  shapeRendering: "auto"
2048
2050
  };
2049
2051
  const Point = initialProps => {
2050
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
2052
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
2051
2053
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__.getSafeUserProps(props);
2052
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
2054
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
2053
2055
  ...props.events,
2054
2056
  "aria-label": props.ariaLabel,
2055
2057
  d: getPath(props),
@@ -2197,10 +2199,10 @@ __webpack_require__.r(__webpack_exports__);
2197
2199
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2198
2200
  /* harmony export */ "Whisker": function() { return /* binding */ Whisker; }
2199
2201
  /* harmony export */ });
2200
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
2201
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
2202
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
2203
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2202
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2203
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2204
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
2205
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
2204
2206
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
2205
2207
  /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "./victory-primitives/line.tsx");
2206
2208
 
@@ -2230,13 +2232,13 @@ const evaluateProps = props => {
2230
2232
  });
2231
2233
  };
2232
2234
  const defaultProps = {
2233
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
2234
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
2235
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
2236
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
2235
2237
  role: "presentation",
2236
2238
  shapeRendering: "auto"
2237
2239
  };
2238
2240
  const Whisker = initialProps => {
2239
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
2241
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
2240
2242
  const {
2241
2243
  ariaLabel,
2242
2244
  groupComponent,
@@ -2264,10 +2266,10 @@ const Whisker = initialProps => {
2264
2266
  role,
2265
2267
  shapeRendering
2266
2268
  };
2267
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {}, [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
2269
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {}, [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(lineComponent, Object.assign({
2268
2270
  key: "major-whisker",
2269
2271
  "aria-label": ariaLabel
2270
- }, baseProps, majorWhisker)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
2272
+ }, baseProps, majorWhisker)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(lineComponent, Object.assign({
2271
2273
  key: "minor-whisker",
2272
2274
  "aria-label": ariaLabel
2273
2275
  }, baseProps, minorWhisker))]);
@@ -3408,22 +3410,22 @@ __webpack_require__.r(__webpack_exports__);
3408
3410
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3409
3411
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
3410
3412
  /* harmony export */ });
3411
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
3412
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
3413
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3414
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3413
3415
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
3414
3416
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
3415
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
3416
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
3417
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
3418
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
3419
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
3420
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
3417
3421
  /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "./victory-animation/victory-animation.tsx");
3418
3422
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "./victory-util/collection.tsx");
3419
3423
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.ts");
3420
3424
  /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "./victory-util/timer-context.ts");
3421
3425
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "./victory-util/transitions.ts");
3422
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
3423
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
3426
+ 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); }
3424
3427
 
3425
3428
 
3426
- 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); }
3427
3429
 
3428
3430
 
3429
3431
 
@@ -3431,7 +3433,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3431
3433
 
3432
3434
 
3433
3435
 
3434
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
3436
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
3435
3437
  static displayName = "VictoryTransition";
3436
3438
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
3437
3439
  constructor(props, context) {
@@ -3474,8 +3476,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
3474
3476
  nextProps
3475
3477
  };
3476
3478
  }
3477
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
3478
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
3479
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
3480
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
3479
3481
  const {
3480
3482
  nodesWillExit,
3481
3483
  nodesWillEnter,
@@ -3498,12 +3500,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
3498
3500
  const childDomain = child.props && child.type.getDomain(child.props, axis);
3499
3501
  return childDomain ? memo.concat(childDomain) : memo;
3500
3502
  } else if (child.props && child.props.children) {
3501
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
3503
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
3502
3504
  }
3503
3505
  return memo;
3504
3506
  }, []);
3505
3507
  };
3506
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
3508
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
3507
3509
  const childProps = child.props || {};
3508
3510
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
3509
3511
  if (!childProps.children && domain) {
@@ -3536,7 +3538,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
3536
3538
  render() {
3537
3539
  const props = this.pickProps();
3538
3540
  const getTransitionProps = this.props.animate?.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, newState => this.setState(newState));
3539
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
3541
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
3540
3542
  const transitionProps = getTransitionProps(child);
3541
3543
  this.transitionProps = transitionProps;
3542
3544
  const domain = {
@@ -3550,21 +3552,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
3550
3552
  }, transitionProps, child.props);
3551
3553
  const animationWhitelist = props.animationWhitelist || [];
3552
3554
  const whitelist = animationWhitelist.concat(["clipWidth"]);
3553
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
3554
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
3555
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
3556
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
3555
3557
  data: propsToAnimate
3556
3558
  }), newProps => {
3557
3559
  if (child.props.groupComponent) {
3558
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
3560
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
3559
3561
  clipWidth: newProps.clipWidth || 0
3560
3562
  }) : child.props.groupComponent;
3561
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3563
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3562
3564
  animate: null,
3563
3565
  animating: true,
3564
3566
  groupComponent
3565
3567
  }, newProps, combinedProps));
3566
3568
  }
3567
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3569
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3568
3570
  animate: null,
3569
3571
  animating: true
3570
3572
  }, newProps, combinedProps));
@@ -3585,14 +3587,14 @@ __webpack_require__.r(__webpack_exports__);
3585
3587
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3586
3588
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
3587
3589
  /* harmony export */ });
3588
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
3589
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
3590
- /* 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");
3591
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
3592
- /* 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");
3593
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
3594
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
3595
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
3590
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3591
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3592
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
3593
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
3594
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
3595
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
3596
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
3597
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
3596
3598
  /* 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");
3597
3599
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
3598
3600
  /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "./victory-transition/victory-transition.tsx");
@@ -3739,8 +3741,8 @@ function addEvents(WrappedComponent, options) {
3739
3741
  return {};
3740
3742
  }
3741
3743
  const getState = (key, type) => {
3742
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
3743
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
3744
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
3745
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
3744
3746
  };
3745
3747
  const components = options.components || defaultComponents;
3746
3748
  const stateChanges = components.map(component => {
@@ -3753,7 +3755,7 @@ function addEvents(WrappedComponent, options) {
3753
3755
  return stateChanges;
3754
3756
  }
3755
3757
  applyExternalMutations(props, externalMutations) {
3756
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
3758
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
3757
3759
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
3758
3760
  const compiledCallbacks = callbacks.length ? () => {
3759
3761
  callbacks.forEach(c => c());
@@ -3786,7 +3788,7 @@ function addEvents(WrappedComponent, options) {
3786
3788
  sharedEvents,
3787
3789
  externalEventMutations
3788
3790
  } = props;
3789
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
3791
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
3790
3792
  }
3791
3793
  cacheValues(obj) {
3792
3794
  Object.keys(obj).forEach(key => {
@@ -3797,10 +3799,10 @@ function addEvents(WrappedComponent, options) {
3797
3799
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
3798
3800
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
3799
3801
  const parentState = this.getEventState("parent", "parent");
3800
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
3802
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
3801
3803
  const parentPropsList = baseParentProps.parentControlledProps;
3802
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
3803
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
3804
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
3805
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
3804
3806
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
3805
3807
  }
3806
3808
  getAllEvents(props) {
@@ -3820,18 +3822,18 @@ function addEvents(WrappedComponent, options) {
3820
3822
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
3821
3823
  if (this.hasEvents) {
3822
3824
  const baseEvents = this.getEvents(this.props, type, key);
3823
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
3825
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3824
3826
  index,
3825
3827
  key: id
3826
3828
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
3827
3829
  id
3828
3830
  });
3829
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
3831
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
3830
3832
  return Object.assign({}, componentProps, {
3831
3833
  events
3832
3834
  });
3833
3835
  }
3834
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
3836
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
3835
3837
  index,
3836
3838
  key: id
3837
3839
  }, currentProps, baseProps, {
@@ -3845,15 +3847,15 @@ function addEvents(WrappedComponent, options) {
3845
3847
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
3846
3848
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
3847
3849
  }
3848
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
3850
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
3849
3851
  }
3850
3852
  animateComponent(props, defaultAnimationWhitelist) {
3851
3853
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
3852
3854
  const Comp = this.constructor;
3853
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
3855
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
3854
3856
  animate: props.animate,
3855
3857
  animationWhitelist: animationWhitelist
3856
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
3858
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
3857
3859
  }
3858
3860
 
3859
3861
  // Used by `VictoryLine` and `VictoryArea`
@@ -3868,12 +3870,12 @@ function addEvents(WrappedComponent, options) {
3868
3870
  let newMemo = memo;
3869
3871
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
3870
3872
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
3871
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
3873
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
3872
3874
  }
3873
3875
  return newMemo;
3874
3876
  }, []);
3875
3877
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
3876
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
3878
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
3877
3879
  return this.renderContainer(groupComponent, children);
3878
3880
  }
3879
3881
  renderData(props, shouldRenderDatum) {
@@ -3888,14 +3890,14 @@ function addEvents(WrappedComponent, options) {
3888
3890
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
3889
3891
  const dataProps = this.getComponentProps(dataComponent, "data", index);
3890
3892
  if (shouldRenderDatum(dataProps.datum)) {
3891
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
3893
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
3892
3894
  }
3893
3895
  return validDataComponents;
3894
3896
  }, []);
3895
3897
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
3896
3898
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
3897
3899
  if (labelProps.text !== undefined && labelProps.text !== null) {
3898
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
3900
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
3899
3901
  }
3900
3902
  return undefined;
3901
3903
  }).filter(Boolean);
@@ -3931,16 +3933,16 @@ __webpack_require__.r(__webpack_exports__);
3931
3933
  /* harmony export */ "modifyProps": function() { return /* binding */ modifyProps; },
3932
3934
  /* harmony export */ "stringTicks": function() { return /* binding */ stringTicks; }
3933
3935
  /* harmony export */ });
3934
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
3935
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
3936
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
3937
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
3936
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3937
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3938
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
3939
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
3938
3940
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
3939
3941
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_2__);
3940
- /* 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");
3941
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
3942
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
3943
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
3942
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
3943
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
3944
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
3945
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
3944
3946
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
3945
3947
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain */ "./victory-util/domain.ts");
3946
3948
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
@@ -3987,7 +3989,7 @@ function findAxisComponents(childComponents, predicate) {
3987
3989
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
3988
3990
  return memo.concat(child);
3989
3991
  } else if (child.props && child.props.children) {
3990
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
3992
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
3991
3993
  }
3992
3994
  return memo;
3993
3995
  }, []);
@@ -4025,7 +4027,7 @@ function getAxisComponentsWithParent(childComponents, type) {
4025
4027
  if (child.type && child.type.role === "axis" && matchesType(child)) {
4026
4028
  return memo.concat(child);
4027
4029
  } else if (child.props && child.props.children) {
4028
- const childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children));
4030
+ const childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children));
4029
4031
  return childAxis.length > 0 ? memo.concat(child) : memo;
4030
4032
  }
4031
4033
  return memo;
@@ -4084,7 +4086,7 @@ function getDefaultTickFormat(props) {
4084
4086
  return stringTicks(props) ? (x, index) => tickValues[index] : fallbackFormat;
4085
4087
  }
4086
4088
  const invertedStringMap = stringMap && _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
4087
- const tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(Object.values(stringMap), n => n);
4089
+ const tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(Object.values(stringMap), n => n);
4088
4090
  const dataNames = tickValueArray.map(tick => invertedStringMap[tick]);
4089
4091
  // string ticks should have one tick of padding at the beginning
4090
4092
  const dataTicks = ["", ...dataNames, ""];
@@ -4121,14 +4123,14 @@ function getTickArray(props) {
4121
4123
  if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickValues)) {
4122
4124
  ticks = stringMap ? tickValues.map(tick => stringMap[tick]) : _helpers__WEBPACK_IMPORTED_MODULE_6__.range(1, tickValues.length + 1);
4123
4125
  }
4124
- const tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ticks) : getTicksFromFormat();
4126
+ const tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(ticks) : getTicksFromFormat();
4125
4127
  const buildTickArray = arr => {
4126
4128
  const newTickArray = [];
4127
4129
  const domain = props.domain && props.domain[axis] || props.domain;
4128
4130
  if (arr) {
4129
4131
  arr.forEach((t, index) => {
4130
4132
  if (Array.isArray(domain)) {
4131
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain)) {
4133
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain).valueOf() && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain).valueOf()) {
4132
4134
  newTickArray.push({
4133
4135
  value: t,
4134
4136
  index
@@ -4280,7 +4282,7 @@ function modifyProps(props, fallbackProps) {
4280
4282
  if (role === "axis") {
4281
4283
  return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
4282
4284
  }
4283
- const axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.theme[role], props.theme.axis);
4285
+ const axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.theme[role], props.theme.axis);
4284
4286
  const theme = Object.assign({}, props.theme, {
4285
4287
  axis: axisTheme
4286
4288
  });
@@ -4384,24 +4386,24 @@ __webpack_require__.r(__webpack_exports__);
4384
4386
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
4385
4387
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
4386
4388
  /* harmony export */ });
4387
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
4388
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
4389
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isUndefined */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isUndefined.js");
4390
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
4389
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4390
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4391
+ /* 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");
4392
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
4391
4393
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEqual */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js");
4392
4394
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
4393
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
4394
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
4395
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
4396
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
4397
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
4398
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
4399
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
4400
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
4401
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
4402
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
4403
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
4404
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
4395
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
4396
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
4397
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isUndefined */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isUndefined.js");
4398
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
4399
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
4400
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
4401
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
4402
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
4403
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
4404
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
4405
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
4406
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
4405
4407
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
4406
4408
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
4407
4409
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "./victory-util/scale.ts");
@@ -4435,7 +4437,7 @@ function getLength(data) {
4435
4437
 
4436
4438
  // Returns generated data for a given axis based on domain and sample from props
4437
4439
  function generateDataArray(props, axis) {
4438
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
4440
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
4439
4441
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
4440
4442
  const samples = props.samples || 1;
4441
4443
  const domainMax = Math.max(...domain);
@@ -4460,7 +4462,7 @@ function sortData(dataset, sortKey, sortOrder) {
4460
4462
  formattedSortKey = `_${sortKey}`;
4461
4463
  }
4462
4464
  const order = sortOrder === "ascending" ? "asc" : "desc";
4463
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
4465
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
4464
4466
  }
4465
4467
 
4466
4468
  // This method will remove data points that break certain scales. (log scale only)
@@ -4504,7 +4506,7 @@ function getEventKey(key) {
4504
4506
  return () => undefined;
4505
4507
  }
4506
4508
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
4507
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
4509
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
4508
4510
  }
4509
4511
 
4510
4512
  // Returns data with an eventKey prop added to each datum
@@ -4563,12 +4565,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
4563
4565
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
4564
4566
  // baseline and value with only baseline above max, set baseline to maxDomainY
4565
4567
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
4566
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
4568
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
4567
4569
  _x,
4568
4570
  _y,
4569
4571
  _y0,
4570
4572
  _y1
4571
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
4573
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
4572
4574
  });
4573
4575
  }
4574
4576
 
@@ -4582,7 +4584,7 @@ function createStringMap(props, axis) {
4582
4584
  const stringsFromAxes = getStringsFromAxes(props, axis);
4583
4585
  const stringsFromCategories = getStringsFromCategories(props, axis);
4584
4586
  const stringsFromData = getStringsFromData(props, axis);
4585
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
4587
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
4586
4588
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
4587
4589
  memo[string] = index + 1;
4588
4590
  return memo;
@@ -4668,7 +4670,7 @@ function formatData(dataset, props, expectedKeys) {
4668
4670
  return memo;
4669
4671
  }, {});
4670
4672
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
4671
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
4673
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
4672
4674
  dataArr.push(formattedDatum);
4673
4675
  }
4674
4676
  return dataArr;
@@ -4795,7 +4797,7 @@ function isDataComponent(component) {
4795
4797
  };
4796
4798
  let role = getRole(component);
4797
4799
  if (role === "portal") {
4798
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
4800
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
4799
4801
  role = children.length ? getRole(children[0]) : "";
4800
4802
  }
4801
4803
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -4930,14 +4932,14 @@ __webpack_require__.r(__webpack_exports__);
4930
4932
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
4931
4933
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
4932
4934
  /* harmony export */ });
4933
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isDate */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isDate.js");
4934
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
4935
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/sortedUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js");
4936
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
4935
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4936
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4937
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isDate */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isDate.js");
4938
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
4937
4939
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
4938
4940
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
4939
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
4940
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
4941
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/sortedUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js");
4942
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
4941
4943
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "./victory-util/data.ts");
4942
4944
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "./victory-util/scale.ts");
4943
4945
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
@@ -5026,9 +5028,9 @@ function padDomain(domain, props, axis) {
5026
5028
  max: max.valueOf() + simplePadding.right
5027
5029
  };
5028
5030
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
5029
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
5031
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
5030
5032
  const adjust = (val, type) => {
5031
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
5033
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
5032
5034
  return coerce ? 0 : val;
5033
5035
  };
5034
5036
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -5251,7 +5253,7 @@ function getMaxFromProps(props, axis) {
5251
5253
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
5252
5254
  return props.maxDomain[axis];
5253
5255
  }
5254
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
5256
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
5255
5257
  }
5256
5258
 
5257
5259
  /**
@@ -5264,7 +5266,7 @@ function getMinFromProps(props, axis) {
5264
5266
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
5265
5267
  return props.minDomain[axis];
5266
5268
  }
5267
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
5269
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
5268
5270
  }
5269
5271
 
5270
5272
  /**
@@ -5275,7 +5277,7 @@ function getMinFromProps(props, axis) {
5275
5277
  * @returns {Array} the symmetric domain
5276
5278
  */
5277
5279
  function getSymmetricDomain(domain, values) {
5278
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
5280
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
5279
5281
  const step = processedData[1] - processedData[0];
5280
5282
  return [domain[0], domain[1] + step];
5281
5283
  }
@@ -5291,7 +5293,7 @@ function isDomainComponent(component) {
5291
5293
  };
5292
5294
  let role = getRole(component);
5293
5295
  if (role === "portal") {
5294
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
5296
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
5295
5297
  role = children.length ? getRole(children[0]) : "";
5296
5298
  }
5297
5299
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -5322,14 +5324,14 @@ __webpack_require__.r(__webpack_exports__);
5322
5324
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
5323
5325
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
5324
5326
  /* harmony export */ });
5325
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
5326
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
5327
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
5328
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
5329
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
5330
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
5331
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5332
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
5327
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5328
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5329
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
5330
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
5331
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
5332
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
5333
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
5334
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
5333
5335
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
5334
5336
 
5335
5337
 
@@ -5405,7 +5407,7 @@ getScopedEvents) {
5405
5407
  */
5406
5408
  // eslint-disable-next-line max-params
5407
5409
  function getScopedEvents(events, namespace, childType, baseProps) {
5408
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
5410
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
5409
5411
  return {};
5410
5412
  }
5411
5413
 
@@ -5518,7 +5520,7 @@ function getScopedEvents(events, namespace, childType, baseProps) {
5518
5520
  // eslint-disable-next-line max-params
5519
5521
  const onEvent = (evt, childProps, eventKey, eventName) => {
5520
5522
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
5521
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
5523
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
5522
5524
  const callbacks = compileCallbacks(eventReturn);
5523
5525
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
5524
5526
  }
@@ -5579,7 +5581,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
5579
5581
  const childState = baseState[childName];
5580
5582
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
5581
5583
  memo[childName] = mutation ? mutation : childState;
5582
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
5584
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
5583
5585
  }, {});
5584
5586
  }
5585
5587
 
@@ -5615,7 +5617,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
5615
5617
  } else {
5616
5618
  // use keys from both state and props so that elements not intially included in baseProps
5617
5619
  // will be used. (i.e. labels)
5618
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
5620
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
5619
5621
  memo[eventKey] = targets.reduce((m, target) => {
5620
5622
  const identifier = {
5621
5623
  eventKey,
@@ -5624,10 +5626,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
5624
5626
  };
5625
5627
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
5626
5628
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
5627
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
5629
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
5628
5630
  }, {});
5629
5631
  }
5630
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
5632
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
5631
5633
  }, {});
5632
5634
  }
5633
5635
 
@@ -5659,11 +5661,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
5659
5661
  }
5660
5662
  // find any mutation objects that match the target
5661
5663
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
5662
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
5664
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
5663
5665
  return undefined;
5664
5666
  }
5665
5667
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
5666
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
5668
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
5667
5669
  return undefined;
5668
5670
  }
5669
5671
  return keyMutations.reduce((memo, curr) => {
@@ -5689,8 +5691,8 @@ function getGlobalEventNameFromKey(key) {
5689
5691
  const match = key.match(GLOBAL_EVENT_REGEX);
5690
5692
  return match && match[1] && match[1].toLowerCase();
5691
5693
  }
5692
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
5693
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
5694
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
5695
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
5694
5696
  const emulateReactEvent = event => Object.assign(event, {
5695
5697
  nativeEvent: event
5696
5698
  });
@@ -5731,40 +5733,45 @@ __webpack_require__.r(__webpack_exports__);
5731
5733
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
5732
5734
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
5733
5735
  /* harmony export */ });
5734
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
5735
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
5736
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
5737
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
5738
- /* 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");
5739
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
5740
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
5741
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
5742
-
5736
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5737
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5738
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
5739
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5740
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
5741
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
5742
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
5743
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
5743
5744
 
5744
5745
 
5745
5746
 
5746
- // Private Functions
5747
5747
 
5748
- function getCartesianRange(props, axis) {
5749
- // determine how to lay the axis and what direction positive and negative are
5750
- const vertical = axis !== "x";
5751
- const padding = getPadding(props);
5748
+ /**
5749
+ * Determine the range of a cartesian axis
5750
+ */
5751
+ function getCartesianRange(options) {
5752
+ const vertical = options.axis !== "x";
5752
5753
  if (vertical) {
5753
- return [props.height - padding.bottom, padding.top];
5754
+ return [options.height - options.padding.bottom, options.padding.top];
5754
5755
  }
5755
- return [padding.left, props.width - padding.right];
5756
+ return [options.padding.left, options.width - options.padding.right];
5756
5757
  }
5757
- function getPolarRange(props, axis) {
5758
- if (axis === "x") {
5759
- const startAngle = degreesToRadians(props.startAngle || 0);
5760
- const endAngle = degreesToRadians(props.endAngle || 360);
5758
+
5759
+ /**
5760
+ * Determine the range of a polar axis in radians
5761
+ */
5762
+ function getPolarRange(options) {
5763
+ if (options.axis === "x") {
5764
+ const startAngle = degreesToRadians(options.startAngle || 0);
5765
+ const endAngle = degreesToRadians(options.endAngle || 360);
5761
5766
  return [startAngle, endAngle];
5762
5767
  }
5763
- return [props.innerRadius || 0, getRadius(props)];
5768
+ return [options.innerRadius || 0, getRadius({
5769
+ height: options.height,
5770
+ width: options.width,
5771
+ padding: options.padding
5772
+ })];
5764
5773
  }
5765
5774
 
5766
- // Exported Functions
5767
-
5768
5775
  /**
5769
5776
  * Creates an object composed of the inverted keys and values of object.
5770
5777
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -5801,8 +5808,11 @@ function omit(originalObject, ks) {
5801
5808
  }
5802
5809
  return newObject;
5803
5810
  }
5811
+
5812
+ /**
5813
+ * Coalesce the x and y values from a data point
5814
+ */
5804
5815
  function getPoint(datum) {
5805
- const exists = val => val !== undefined;
5806
5816
  const {
5807
5817
  _x,
5808
5818
  _x1,
@@ -5813,16 +5823,20 @@ function getPoint(datum) {
5813
5823
  _y0,
5814
5824
  _voronoiY
5815
5825
  } = datum;
5816
- const defaultX = exists(_x1) ? _x1 : _x;
5817
- const defaultY = exists(_y1) ? _y1 : _y;
5826
+ const defaultX = _x1 ?? _x;
5827
+ const defaultY = _y1 ?? _y;
5818
5828
  const point = {
5819
- x: exists(_voronoiX) ? _voronoiX : defaultX,
5820
- x0: exists(_x0) ? _x0 : _x,
5821
- y: exists(_voronoiY) ? _voronoiY : defaultY,
5822
- y0: exists(_y0) ? _y0 : _y
5829
+ x: _voronoiX ?? defaultX,
5830
+ x0: _x0 ?? _x,
5831
+ y: _voronoiY ?? defaultY,
5832
+ y0: _y0 ?? _y
5823
5833
  };
5824
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
5834
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
5825
5835
  }
5836
+
5837
+ /**
5838
+ * Scale a point based on the origin, direction, and given scale function
5839
+ */
5826
5840
  function scalePoint(props, datum) {
5827
5841
  const {
5828
5842
  scale,
@@ -5845,11 +5859,11 @@ function scalePoint(props, datum) {
5845
5859
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
5846
5860
  };
5847
5861
  }
5848
- function getPadding(props, name) {
5849
- if (name === void 0) {
5850
- name = "padding";
5851
- }
5852
- const padding = props[name];
5862
+
5863
+ /**
5864
+ * Returns a padding value from a number or partial padding values
5865
+ */
5866
+ function getPadding(padding) {
5853
5867
  const paddingVal = typeof padding === "number" ? padding : 0;
5854
5868
  const paddingObj = typeof padding === "object" ? padding : {};
5855
5869
  return {
@@ -5859,6 +5873,10 @@ function getPadding(props, name) {
5859
5873
  right: paddingObj.right || paddingVal
5860
5874
  };
5861
5875
  }
5876
+
5877
+ /**
5878
+ * Returns true if the component is defined as a tooltip
5879
+ */
5862
5880
  function isTooltip(component) {
5863
5881
  const labelRole = component && component.type && component.type.role;
5864
5882
  return labelRole === "tooltip";
@@ -5873,8 +5891,8 @@ function getDefaultStyles(props, role) {
5873
5891
  return defaultStyles;
5874
5892
  }
5875
5893
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
5876
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
5877
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
5894
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
5895
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
5878
5896
  labels: labelStyle
5879
5897
  }, defaultStyles);
5880
5898
  }
@@ -5882,7 +5900,7 @@ function getStyles(style, defaultStyles) {
5882
5900
  const width = "100%";
5883
5901
  const height = "100%";
5884
5902
  if (!style) {
5885
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
5903
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
5886
5904
  parent: {
5887
5905
  height,
5888
5906
  width
@@ -5898,14 +5916,18 @@ function getStyles(style, defaultStyles) {
5898
5916
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
5899
5917
  const defaultData = defaultStyles && defaultStyles.data || {};
5900
5918
  return {
5901
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
5919
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
5902
5920
  width,
5903
5921
  height
5904
5922
  }),
5905
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
5906
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
5923
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
5924
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
5907
5925
  };
5908
5926
  }
5927
+
5928
+ /**
5929
+ * Returns the value of a prop or accessor function with the given props
5930
+ */
5909
5931
  function evaluateProp(prop, props) {
5910
5932
  return isFunction(prop) ? prop(props) : prop;
5911
5933
  }
@@ -5927,19 +5949,28 @@ function degreesToRadians(degrees) {
5927
5949
  function radiansToDegrees(radians) {
5928
5950
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
5929
5951
  }
5930
- function getRadius(props) {
5952
+
5953
+ /**
5954
+ * Get the maximum radius that will fit in the container
5955
+ */
5956
+ function getRadius(options) {
5957
+ const {
5958
+ width,
5959
+ height,
5960
+ padding
5961
+ } = options;
5931
5962
  const {
5932
5963
  left,
5933
5964
  right,
5934
5965
  top,
5935
5966
  bottom
5936
- } = getPadding(props);
5937
- const {
5938
- width,
5939
- height
5940
- } = props;
5967
+ } = padding;
5941
5968
  return Math.min(width - left - right, height - top - bottom) / 2;
5942
5969
  }
5970
+
5971
+ /**
5972
+ * Returns the origin for a polar chart within the padded area
5973
+ */
5943
5974
  function getPolarOrigin(props) {
5944
5975
  const {
5945
5976
  width,
@@ -5950,7 +5981,7 @@ function getPolarOrigin(props) {
5950
5981
  bottom,
5951
5982
  left,
5952
5983
  right
5953
- } = getPadding(props);
5984
+ } = getPadding(props.padding);
5954
5985
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
5955
5986
  const offsetWidth = width / 2 + left - right;
5956
5987
  const offsetHeight = height / 2 + top - bottom;
@@ -5959,13 +5990,30 @@ function getPolarOrigin(props) {
5959
5990
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
5960
5991
  };
5961
5992
  }
5993
+
5994
+ /**
5995
+ * Determine the range of an axis based on the given props
5996
+ */
5962
5997
  function getRange(props, axis) {
5963
5998
  if (props.range && props.range[axis]) {
5964
5999
  return props.range[axis];
5965
6000
  } else if (props.range && Array.isArray(props.range)) {
5966
6001
  return props.range;
5967
6002
  }
5968
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
6003
+ return props.polar ? getPolarRange({
6004
+ axis,
6005
+ innerRadius: props.innerRadius,
6006
+ startAngle: props.startAngle,
6007
+ endAngle: props.endAngle,
6008
+ height: props.height,
6009
+ width: props.width,
6010
+ padding: getPadding(props.padding)
6011
+ }) : getCartesianRange({
6012
+ axis,
6013
+ height: props.height,
6014
+ width: props.width,
6015
+ padding: getPadding(props.padding)
6016
+ });
5969
6017
  }
5970
6018
 
5971
6019
  /**
@@ -5997,7 +6045,7 @@ function createAccessor(key) {
5997
6045
  return x => x;
5998
6046
  }
5999
6047
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
6000
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
6048
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
6001
6049
  }
6002
6050
  function modifyProps(props, fallbackProps, role) {
6003
6051
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -6006,7 +6054,7 @@ function modifyProps(props, fallbackProps, role) {
6006
6054
  const defaultObject = horizontal === undefined ? {} : {
6007
6055
  horizontal
6008
6056
  };
6009
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
6057
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
6010
6058
  }
6011
6059
 
6012
6060
  /**
@@ -6093,10 +6141,10 @@ initialMemo, combine) {
6093
6141
  const childRole = child.type && child.type.role;
6094
6142
  const childName = child.props.name || `${childRole}-${names[index]}`;
6095
6143
  if (child.props && child.props.children) {
6096
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
6097
- const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children).map(c => {
6098
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
6099
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
6144
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
6145
+ const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children).map(c => {
6146
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
6147
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
6100
6148
  });
6101
6149
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
6102
6150
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -6110,7 +6158,7 @@ initialMemo, combine) {
6110
6158
  return newMemo;
6111
6159
  }, initialMemo);
6112
6160
  };
6113
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
6161
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
6114
6162
  const childNames = validChildren.map((c, i) => i);
6115
6163
  return traverseChildren(validChildren, childNames);
6116
6164
  }
@@ -6130,10 +6178,10 @@ function isHorizontal(props) {
6130
6178
  if (memo || childProps.horizontal || !childProps.children) {
6131
6179
  return memo || childProps.horizontal;
6132
6180
  }
6133
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
6181
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
6134
6182
  }, false);
6135
6183
  };
6136
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
6184
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
6137
6185
  }
6138
6186
 
6139
6187
  /***/ }),
@@ -6168,10 +6216,10 @@ __webpack_require__.r(__webpack_exports__);
6168
6216
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6169
6217
  /* harmony export */ "useAnimationState": function() { return /* binding */ useAnimationState; }
6170
6218
  /* harmony export */ });
6171
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6172
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6173
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6174
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6219
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6220
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6221
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6222
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6175
6223
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../collection */ "./victory-util/collection.tsx");
6176
6224
  /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transitions */ "./victory-util/transitions.ts");
6177
6225
 
@@ -6187,10 +6235,10 @@ const useAnimationState = function (initialState) {
6187
6235
  if (initialState === void 0) {
6188
6236
  initialState = INITIAL_STATE;
6189
6237
  }
6190
- const [state, _setState] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(initialState);
6238
+ const [state, _setState] = react__WEBPACK_IMPORTED_MODULE_0___default().useState(initialState);
6191
6239
 
6192
6240
  // This allows us to use a state object and maintain the same API as this.setState
6193
- const setState = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(newState => {
6241
+ const setState = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(newState => {
6194
6242
  _setState(oldState => ({
6195
6243
  ...oldState,
6196
6244
  ...newState
@@ -6198,14 +6246,14 @@ const useAnimationState = function (initialState) {
6198
6246
  }, [_setState]);
6199
6247
 
6200
6248
  // This is a copy of Wrapper.getAnimationProps
6201
- const getAnimationProps = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback((props, child, index) => {
6249
+ const getAnimationProps = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((props, child, index) => {
6202
6250
  if (!props?.animate) {
6203
6251
  return child.props.animate;
6204
6252
  }
6205
6253
  const getFilteredState = () => {
6206
6254
  let childrenTransitions = state && state.childrenTransitions;
6207
6255
  childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_2__.isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions;
6208
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
6256
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
6209
6257
  childrenTransitions
6210
6258
  }, state);
6211
6259
  };
@@ -6216,28 +6264,28 @@ const useAnimationState = function (initialState) {
6216
6264
  const getTransitionProps = _transitions__WEBPACK_IMPORTED_MODULE_3__.getTransitionPropsFactory(props, filteredState, newState => setState(newState));
6217
6265
  getTransitions = childComponent => getTransitionProps(childComponent, index);
6218
6266
  }
6219
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
6267
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
6220
6268
  getTransitions,
6221
6269
  parentState
6222
6270
  }, props.animate, child.props.animate);
6223
6271
  }, [state, setState]);
6224
6272
 
6225
6273
  // This is a copy of Wrapper.setAnimationState
6226
- const setAnimationState = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback((props, nextProps) => {
6274
+ const setAnimationState = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((props, nextProps) => {
6227
6275
  if (!props?.animate) {
6228
6276
  return;
6229
6277
  }
6230
6278
  if (props.animate.parentState) {
6231
6279
  const nodesWillExit = props.animate.parentState.nodesWillExit;
6232
6280
  const oldProps = nodesWillExit ? props : null;
6233
- const newState = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
6281
+ const newState = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
6234
6282
  oldProps,
6235
6283
  nextProps
6236
6284
  }, props.animate.parentState);
6237
6285
  setState(newState);
6238
6286
  } else {
6239
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children);
6240
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(nextProps.children);
6287
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
6288
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
6241
6289
  const isContinuous = child => {
6242
6290
  const check = c => c.type && c.type.continuous;
6243
6291
  return Array.isArray(child) ? child.some(check) : check(child);
@@ -6262,7 +6310,7 @@ const useAnimationState = function (initialState) {
6262
6310
  });
6263
6311
  }
6264
6312
  }, [setState]);
6265
- const getProps = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(initialProps => {
6313
+ const getProps = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(initialProps => {
6266
6314
  return state && state.nodesWillExit ? state.oldProps || initialProps : initialProps;
6267
6315
  }, [state]);
6268
6316
  return {
@@ -6474,9 +6522,10 @@ __webpack_require__.r(__webpack_exports__);
6474
6522
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
6475
6523
  /* harmony export */ "getText": function() { return /* binding */ getText; }
6476
6524
  /* harmony export */ });
6525
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
6477
6526
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6478
6527
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6479
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
6528
+
6480
6529
 
6481
6530
 
6482
6531
  // Private Functions
@@ -6788,11 +6837,12 @@ __webpack_require__.r(__webpack_exports__);
6788
6837
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6789
6838
  /* harmony export */ "warn": function() { return /* binding */ warn; }
6790
6839
  /* harmony export */ });
6791
- /* global console */
6840
+ /* global console process */
6792
6841
  /* eslint-disable no-console */
6793
6842
 
6794
- // TODO: Use "warning" npm module like React is switching to.
6795
6843
  function warn(message) {
6844
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6845
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
6796
6846
  if (true) {
6797
6847
  if (console && console.warn) {
6798
6848
  console.warn(message);
@@ -7350,13 +7400,15 @@ __webpack_require__.r(__webpack_exports__);
7350
7400
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
7351
7401
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
7352
7402
  /* harmony export */ });
7353
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
7354
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
7355
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7356
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7357
-
7358
- // http://www.pearsonified.com/2012/01/characters-per-line.php
7403
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7404
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
7405
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
7406
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
7407
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
7359
7408
  /* eslint-disable no-magic-numbers */
7409
+
7410
+
7411
+
7360
7412
  // Based on measuring specific character widths
7361
7413
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
7362
7414
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -7535,7 +7587,7 @@ const convertLengthToPixels = (length, fontSize) => {
7535
7587
  };
7536
7588
  const _prepareParams = (inputStyle, index) => {
7537
7589
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
7538
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
7590
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
7539
7591
  return Object.assign({}, style, {
7540
7592
  fontFamily: style.fontFamily,
7541
7593
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -7583,7 +7635,7 @@ const _approximateDimensionsInternal = (text, style) => {
7583
7635
  height: heightWithRotate * coefficients.heightOverlapCoef
7584
7636
  };
7585
7637
  };
7586
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
7638
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
7587
7639
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
7588
7640
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
7589
7641
  element.setAttribute("width", "300");
@@ -7604,7 +7656,7 @@ const styleToKeyComponent = style => {
7604
7656
  }
7605
7657
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
7606
7658
  };
7607
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
7659
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
7608
7660
  let containerElement = _getMeasurementContainer();
7609
7661
  if (!containerElement.isConnected) {
7610
7662
  _getMeasurementContainer.cache.clear?.();
@@ -7774,12 +7826,12 @@ __webpack_require__.r(__webpack_exports__);
7774
7826
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
7775
7827
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
7776
7828
  /* harmony export */ });
7777
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
7778
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
7829
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7830
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7779
7831
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7780
7832
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7781
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
7782
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
7833
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
7834
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
7783
7835
 
7784
7836
 
7785
7837
 
@@ -7870,13 +7922,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
7870
7922
  const getTransitionsFromChildren = (old, next) => {
7871
7923
  return old.map((child, idx) => {
7872
7924
  if (child && child.props && child.props.children && next[idx]) {
7873
- return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(next[idx].props.children));
7925
+ return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(next[idx].props.children));
7874
7926
  }
7875
7927
  // get Transition entering and exiting nodes
7876
7928
  return getTransition(child, next[idx]);
7877
7929
  });
7878
7930
  };
7879
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
7931
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
7880
7932
  return {
7881
7933
  nodesWillExit,
7882
7934
  nodesWillEnter,
@@ -7890,7 +7942,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
7890
7942
  };
7891
7943
  }
7892
7944
  function getInitialChildProps(animate, data) {
7893
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
7945
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
7894
7946
  return {
7895
7947
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
7896
7948
  };
@@ -7907,7 +7959,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
7907
7959
  data
7908
7960
  };
7909
7961
  }
7910
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
7962
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
7911
7963
  // If nodes need to exit, transform them with the provided onLoad.before function.
7912
7964
  const newData = data.map((datum, idx) => {
7913
7965
  return Object.assign({}, datum, before(datum, idx, data));
@@ -7929,7 +7981,7 @@ function getChildOnLoad(animate, data, cb) {
7929
7981
  data
7930
7982
  };
7931
7983
  }
7932
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
7984
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
7933
7985
  // If nodes need to exit, transform them with the provided onLoad.after function.
7934
7986
  newData = data.map((datum, idx) => {
7935
7987
  return Object.assign({}, datum, after(datum, idx, data));
@@ -7951,7 +8003,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
7951
8003
  // After the exit transition occurs, trigger the animations for
7952
8004
  // nodes that are neither exiting nor entering.
7953
8005
  animate.onEnd = cb;
7954
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
8006
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
7955
8007
  // If nodes need to exit, transform them with the provided onExit.before function.
7956
8008
  newData = data.map((datum, idx) => {
7957
8009
  const key = (datum.key || idx).toString();
@@ -7974,7 +8026,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
7974
8026
  newAnimate = Object.assign({}, animate, {
7975
8027
  onEnd: cb
7976
8028
  });
7977
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
8029
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
7978
8030
  // We want the entering nodes to be included in the transition target
7979
8031
  // domain. However, we may not want these nodes to be displayed initially,
7980
8032
  // so perform the `onEnter.before` transformation on each node.
@@ -8001,7 +8053,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
8001
8053
  // domain should encompass the nodes that will now enter. So perform
8002
8054
  // the `onEnter.after` transformation on each node.
8003
8055
  newAnimate.onEnd = cb;
8004
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
8056
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
8005
8057
  newData = data.map((datum, idx) => {
8006
8058
  const key = getDatumKey(datum, idx);
8007
8059
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -8293,16 +8345,16 @@ __webpack_require__.r(__webpack_exports__);
8293
8345
  /* harmony export */ "getStyle": function() { return /* binding */ getStyle; },
8294
8346
  /* harmony export */ "getWidth": function() { return /* binding */ getWidth; }
8295
8347
  /* harmony export */ });
8296
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js");
8297
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0__);
8298
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
8299
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__);
8348
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8349
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8350
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8351
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8300
8352
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
8301
8353
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_2__);
8302
- /* 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");
8303
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
8304
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
8305
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
8354
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
8355
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__);
8356
+ /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js");
8357
+ /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__);
8306
8358
  /* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./axis */ "./victory-util/axis.tsx");
8307
8359
  /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./style */ "./victory-util/style.ts");
8308
8360
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "./victory-util/data.ts");
@@ -8396,7 +8448,7 @@ function getDataFromChildren(props, childComponents) {
8396
8448
  maxDomain
8397
8449
  };
8398
8450
  let stack = 0;
8399
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
8451
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8400
8452
  parentProps = addBinsToParentPropsIfHistogram({
8401
8453
  children,
8402
8454
  props,
@@ -8410,7 +8462,7 @@ function getDataFromChildren(props, childComponents) {
8410
8462
  if (!_data__WEBPACK_IMPORTED_MODULE_7__.isDataComponent(child)) {
8411
8463
  return null;
8412
8464
  } else if (child.type && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(child.type.getData)) {
8413
- childElement = parent ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, parent.props) : child;
8465
+ childElement = parent ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, parent.props) : child;
8414
8466
  childData = childElement.type.getData(childProps);
8415
8467
  } else {
8416
8468
  childData = _data__WEBPACK_IMPORTED_MODULE_7__.getData(childProps);
@@ -8422,16 +8474,16 @@ function getDataFromChildren(props, childComponents) {
8422
8474
  }, datum));
8423
8475
  };
8424
8476
  const stacked = children.filter(c => c.type && c.type.role === "stack").length;
8425
- const combine = (memo, val) => memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "_group"));
8477
+ const combine = (memo, val) => memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default()(val, "_group"));
8426
8478
  const datasets = _helpers__WEBPACK_IMPORTED_MODULE_6__.reduceChildren(children, iteratee, props, [], combine);
8427
8479
  const group = stacked ? "_group" : "_stack";
8428
- return Object.values(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default()(datasets, group));
8480
+ return Object.values(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default()(datasets, group));
8429
8481
  }
8430
8482
  function getData(props, childComponents) {
8431
8483
  if (props.data) {
8432
8484
  return _data__WEBPACK_IMPORTED_MODULE_7__.getData(props);
8433
8485
  }
8434
- return getDataFromChildren(props, childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children));
8486
+ return getDataFromChildren(props, childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
8435
8487
  }
8436
8488
  function getWidth(props, groupLength, seriesLength) {
8437
8489
  const {
@@ -8483,7 +8535,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
8483
8535
  };
8484
8536
  }
8485
8537
  function getDomainFromChildren(props, axis, childComponents) {
8486
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
8538
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8487
8539
  const parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_7__.getData(props) : undefined;
8488
8540
  const {
8489
8541
  polar,
@@ -8521,7 +8573,7 @@ function getDomainFromChildren(props, axis, childComponents) {
8521
8573
  return [min, max];
8522
8574
  }
8523
8575
  function getDomain(props, axis, childComponents) {
8524
- const children = childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
8576
+ const children = childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8525
8577
  const propsDomain = _domain__WEBPACK_IMPORTED_MODULE_8__.getDomainFromProps(props, axis);
8526
8578
  const domainPadding = getDefaultDomainPadding(props, axis, children);
8527
8579
  let domain;
@@ -8545,7 +8597,7 @@ function getScale(props, axis, childComponents) {
8545
8597
  if (props.data) {
8546
8598
  return _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis);
8547
8599
  }
8548
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
8600
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8549
8601
  const iteratee = child => {
8550
8602
  const sharedProps = Object.assign({}, child.props, {
8551
8603
  horizontal: props.horizontal
@@ -8614,8 +8666,8 @@ function getChildStyle(child, index, calculatedProps, theme) {
8614
8666
  const dataWidth = role === "stack" ? {} : {
8615
8667
  width: getWidth(calculatedProps)
8616
8668
  };
8617
- const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, childStyle.data, Object.assign({}, dataWidth, style.data, defaultColor));
8618
- const labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, childStyle.labels, style.labels);
8669
+ const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childStyle.data, Object.assign({}, dataWidth, style.data, defaultColor));
8670
+ const labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childStyle.labels, style.labels);
8619
8671
  return {
8620
8672
  ...childStyle,
8621
8673
  parent: style.parent,
@@ -8671,7 +8723,7 @@ function getCategoryAndAxisStringsFromChildren(props, axis, childComponents) {
8671
8723
  return lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default()([...categoryStrings, ...axisStrings].flat());
8672
8724
  }
8673
8725
  function getStringsFromChildren(props, childComponents) {
8674
- const children = childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
8726
+ const children = childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8675
8727
  const xStrings = getCategoryAndAxisStringsFromChildren(props, "x", children);
8676
8728
  const yStrings = getCategoryAndAxisStringsFromChildren(props, "y", children);
8677
8729
  const dataStrings = getStringsFromData(children);