victory-brush-container 36.9.2 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,20 +7,20 @@
7
7
  exports["VictoryBrushContainer"] = factory(require("react"));
8
8
  else
9
9
  root["VictoryBrushContainer"] = factory(root["React"]);
10
- })(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
11
- return /******/ (() => { // webpackBootstrap
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE_react__) {
11
+ return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
14
  /***/ "./brush-helpers.ts":
15
15
  /*!**************************!*\
16
16
  !*** ./brush-helpers.ts ***!
17
17
  \**************************/
18
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19
19
 
20
20
  "use strict";
21
21
  __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "BrushHelpers": () => (/* binding */ BrushHelpers)
23
+ /* harmony export */ "BrushHelpers": function() { return /* binding */ BrushHelpers; }
24
24
  /* harmony export */ });
25
25
  /* 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");
26
26
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
@@ -33,192 +33,177 @@ __webpack_require__.r(__webpack_exports__);
33
33
 
34
34
 
35
35
 
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
-
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
-
40
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
-
42
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
43
-
44
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
45
-
46
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
47
-
48
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
49
-
50
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
51
-
52
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
53
-
54
-
55
-
56
- var Helpers = {
57
- getDimension: function (props) {
58
- var horizontal = props.horizontal,
59
- brushDimension = props.brushDimension;
60
36
 
37
+ const Helpers = {
38
+ getDimension(props) {
39
+ const {
40
+ horizontal,
41
+ brushDimension
42
+ } = props;
61
43
  if (!horizontal || !brushDimension) {
62
44
  return brushDimension;
63
45
  }
64
-
65
46
  return brushDimension === "x" ? "y" : "x";
66
47
  },
67
- withinBounds: function (point, bounds, padding) {
68
- var _CoreHelpers$mapValue = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(bounds, Number),
69
- x1 = _CoreHelpers$mapValue.x1,
70
- x2 = _CoreHelpers$mapValue.x2,
71
- y1 = _CoreHelpers$mapValue.y1,
72
- y2 = _CoreHelpers$mapValue.y2;
73
-
74
- var _CoreHelpers$mapValue2 = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(point, Number),
75
- x = _CoreHelpers$mapValue2.x,
76
- y = _CoreHelpers$mapValue2.y;
77
-
78
- var paddingValue = padding ? padding / 2 : 0;
48
+ withinBounds(point, bounds, padding) {
49
+ const {
50
+ x1,
51
+ x2,
52
+ y1,
53
+ y2
54
+ } = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(bounds, Number);
55
+ const {
56
+ x,
57
+ y
58
+ } = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(point, Number);
59
+ const paddingValue = padding ? padding / 2 : 0;
79
60
  return x + paddingValue >= Math.min(x1, x2) && x - paddingValue <= Math.max(x1, x2) && y + paddingValue >= Math.min(y1, y2) && y - paddingValue <= Math.max(y1, y2);
80
61
  },
81
- getDomainBox: function (props, fullDomain, selectedDomain) {
82
- var brushDimension = this.getDimension(props);
83
-
84
- var fullDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, fullDomain, props.domain);
85
-
86
- var selectedDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, selectedDomain, fullDomainObject);
87
-
88
- var fullCoords = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomainCoordinates(props, fullDomainObject);
89
- var selectedCoords = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomainCoordinates(props, selectedDomainObject);
62
+ getDomainBox(props, fullDomain, selectedDomain) {
63
+ const brushDimension = this.getDimension(props);
64
+ const fullDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, fullDomain, props.domain);
65
+ const selectedDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, selectedDomain, fullDomainObject);
66
+ const fullCoords = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomainCoordinates(props, fullDomainObject);
67
+ const selectedCoords = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomainCoordinates(props, selectedDomainObject);
90
68
  return {
91
- x1: brushDimension !== "y" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.min.apply(Math, _toConsumableArray(fullCoords.x)),
92
- x2: brushDimension !== "y" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.max.apply(Math, _toConsumableArray(fullCoords.x)),
93
- y1: brushDimension !== "x" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.y)) : Math.min.apply(Math, _toConsumableArray(fullCoords.y)),
94
- y2: brushDimension !== "x" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.y)) : Math.max.apply(Math, _toConsumableArray(fullCoords.y))
69
+ x1: brushDimension !== "y" ? Math.min(...selectedCoords.x) : Math.min(...fullCoords.x),
70
+ x2: brushDimension !== "y" ? Math.max(...selectedCoords.x) : Math.max(...fullCoords.x),
71
+ y1: brushDimension !== "x" ? Math.min(...selectedCoords.y) : Math.min(...fullCoords.y),
72
+ y2: brushDimension !== "x" ? Math.max(...selectedCoords.y) : Math.max(...fullCoords.y)
95
73
  };
96
74
  },
97
- getHandles: function (props, domainBox) {
98
- var brushDimension = this.getDimension(props);
99
- var x1 = domainBox.x1,
100
- x2 = domainBox.x2,
101
- y1 = domainBox.y1,
102
- y2 = domainBox.y2;
103
- var minX = Math.min(x1, x2);
104
- var maxX = Math.max(x1, x2);
105
- var minY = Math.min(y1, y2);
106
- var maxY = Math.max(y1, y2);
107
- var handleWidth = props.handleWidth / 2;
75
+ getHandles(props, domainBox) {
76
+ const brushDimension = this.getDimension(props);
77
+ const {
78
+ x1,
79
+ x2,
80
+ y1,
81
+ y2
82
+ } = domainBox;
83
+ const minX = Math.min(x1, x2);
84
+ const maxX = Math.max(x1, x2);
85
+ const minY = Math.min(y1, y2);
86
+ const maxY = Math.max(y1, y2);
87
+ const handleWidth = props.handleWidth / 2;
108
88
  return {
109
89
  left: brushDimension !== "y" && {
110
90
  x1: minX - handleWidth,
111
91
  x2: minX + handleWidth,
112
- y1: y1,
113
- y2: y2
92
+ y1,
93
+ y2
114
94
  },
115
95
  right: brushDimension !== "y" && {
116
96
  x1: maxX - handleWidth,
117
97
  x2: maxX + handleWidth,
118
- y1: y1,
119
- y2: y2
98
+ y1,
99
+ y2
120
100
  },
121
101
  top: brushDimension !== "x" && {
122
- x1: x1,
123
- x2: x2,
102
+ x1,
103
+ x2,
124
104
  y1: minY - handleWidth,
125
105
  y2: minY + handleWidth
126
106
  },
127
107
  bottom: brushDimension !== "x" && {
128
- x1: x1,
129
- x2: x2,
108
+ x1,
109
+ x2,
130
110
  y1: maxY - handleWidth,
131
111
  y2: maxY + handleWidth
132
112
  }
133
113
  };
134
114
  },
135
- getActiveHandles: function (point, props, domainBox) {
136
- var _this = this;
137
-
138
- var handles = this.getHandles(props, domainBox);
139
- var activeHandles = ["top", "bottom", "left", "right"].reduce(function (memo, opt) {
140
- return handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
141
- }, []);
115
+ getActiveHandles(point, props, domainBox) {
116
+ const handles = this.getHandles(props, domainBox);
117
+ const activeHandles = ["top", "bottom", "left", "right"].reduce((memo, opt) => handles[opt] && this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo, []);
142
118
  return activeHandles.length && activeHandles;
143
119
  },
144
- getResizeMutation: function (box, handles) {
145
- var x1 = box.x1,
146
- y1 = box.y1,
147
- x2 = box.x2,
148
- y2 = box.y2;
149
- var mutations = {
120
+ getResizeMutation(box, handles) {
121
+ const {
122
+ x1,
123
+ y1,
124
+ x2,
125
+ y2
126
+ } = box;
127
+ const mutations = {
150
128
  left: {
151
129
  x1: Math.max(x1, x2),
152
130
  x2: Math.min(x1, x2),
153
- y1: y1,
154
- y2: y2
131
+ y1,
132
+ y2
155
133
  },
156
134
  right: {
157
135
  x1: Math.min(x1, x2),
158
136
  x2: Math.max(x1, x2),
159
- y1: y1,
160
- y2: y2
137
+ y1,
138
+ y2
161
139
  },
162
140
  top: {
163
141
  y1: Math.max(y1, y2),
164
142
  y2: Math.min(y1, y2),
165
- x1: x1,
166
- x2: x2
143
+ x1,
144
+ x2
167
145
  },
168
146
  bottom: {
169
147
  y1: Math.min(y1, y2),
170
148
  y2: Math.max(y1, y2),
171
- x1: x1,
172
- x2: x2
149
+ x1,
150
+ x2
173
151
  }
174
152
  };
175
- return handles.reduce(function (memo, current) {
153
+ return handles.reduce((memo, current) => {
176
154
  return Object.assign(memo, mutations[current]);
177
155
  }, {});
178
156
  },
179
- getMinimumDomain: function () {
157
+ getMinimumDomain() {
180
158
  return {
181
159
  x: [0, 1 / Number.MAX_SAFE_INTEGER],
182
160
  y: [0, 1 / Number.MAX_SAFE_INTEGER]
183
161
  };
184
162
  },
185
- getDefaultBrushArea: function (targetProps, cachedDomain, evt) {
186
- var domain = targetProps.domain,
187
- fullDomain = targetProps.fullDomain,
188
- scale = targetProps.scale,
189
- horizontal = targetProps.horizontal,
190
- allowResize = targetProps.allowResize;
191
- var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
192
-
163
+ getDefaultBrushArea(targetProps, cachedDomain, evt) {
164
+ const {
165
+ domain,
166
+ fullDomain,
167
+ scale,
168
+ horizontal,
169
+ allowResize
170
+ } = targetProps;
171
+ const defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
193
172
  if (defaultBrushArea === "none") {
194
173
  return this.getMinimumDomain();
195
174
  } else if (defaultBrushArea === "disable") {
196
175
  return cachedDomain;
197
176
  } else if (defaultBrushArea === "move") {
198
- var brushBox = this.getDomainBox(targetProps, fullDomain, cachedDomain);
199
- var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_4__.getParentSVG(evt);
200
- var pannedBox = this.panBox(_objectSpread(_objectSpread(_objectSpread({}, targetProps), brushBox), {}, {
177
+ const brushBox = this.getDomainBox(targetProps, fullDomain, cachedDomain);
178
+ const parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_4__.getParentSVG(evt);
179
+ const pannedBox = this.panBox({
180
+ ...targetProps,
181
+ ...brushBox,
201
182
  brushDomain: cachedDomain,
202
183
  startX: (brushBox.x1 + brushBox.x2) / 2,
203
184
  startY: (brushBox.y1 + brushBox.y2) / 2
204
- }), victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG));
205
- var fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, fullDomain);
206
- var constrainedBox = this.constrainBox(pannedBox, fullDomainBox);
207
- return victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds(_objectSpread(_objectSpread({}, constrainedBox), {}, {
208
- scale: scale,
209
- horizontal: horizontal
210
- }));
185
+ }, victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG));
186
+ const fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, fullDomain);
187
+ const constrainedBox = this.constrainBox(pannedBox, fullDomainBox);
188
+ return victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds({
189
+ ...constrainedBox,
190
+ scale,
191
+ horizontal
192
+ });
211
193
  }
212
-
213
194
  return domain;
214
195
  },
215
- getSelectionMutation: function (point, box, brushDimension) {
216
- var x = point.x,
217
- y = point.y;
218
- var x1 = box.x1,
219
- x2 = box.x2,
220
- y1 = box.y1,
221
- y2 = box.y2;
196
+ getSelectionMutation(point, box, brushDimension) {
197
+ const {
198
+ x,
199
+ y
200
+ } = point;
201
+ const {
202
+ x1,
203
+ x2,
204
+ y1,
205
+ y2
206
+ } = box;
222
207
  return {
223
208
  x1: brushDimension !== "y" ? x : x1,
224
209
  y1: brushDimension !== "x" ? y : y1,
@@ -226,25 +211,26 @@ var Helpers = {
226
211
  y2: brushDimension !== "x" ? y : y2
227
212
  };
228
213
  },
229
- panBox: function (props, point) {
230
- var domain = props.domain,
231
- startX = props.startX,
232
- startY = props.startY;
233
- var brushDimension = this.getDimension(props);
234
-
235
- var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, domain);
236
-
237
- var fullDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.fullDomain, domain);
238
-
239
- var _ref = props.x1 ? props : this.getDomainBox(props, fullDomain, brushDomain),
240
- x1 = _ref.x1,
241
- x2 = _ref.x2,
242
- y1 = _ref.y1,
243
- y2 = _ref.y2;
244
-
245
- var x = point.x,
246
- y = point.y;
247
- var delta = {
214
+ panBox(props, point) {
215
+ const {
216
+ domain,
217
+ startX,
218
+ startY
219
+ } = props;
220
+ const brushDimension = this.getDimension(props);
221
+ const brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, domain);
222
+ const fullDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.fullDomain, domain);
223
+ const {
224
+ x1,
225
+ x2,
226
+ y1,
227
+ y2
228
+ } = props.x1 ? props : this.getDomainBox(props, fullDomain, brushDomain);
229
+ const {
230
+ x,
231
+ y
232
+ } = point;
233
+ const delta = {
248
234
  x: startX ? startX - x : 0,
249
235
  y: startY ? startY - y : 0
250
236
  };
@@ -255,13 +241,13 @@ var Helpers = {
255
241
  y2: brushDimension !== "x" ? Math.max(y1, y2) - delta.y : Math.max(y1, y2)
256
242
  };
257
243
  },
258
- constrainBox: function (box, fullDomainBox) {
259
- var _CoreHelpers$mapValue3 = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(fullDomainBox, Number),
260
- x1 = _CoreHelpers$mapValue3.x1,
261
- y1 = _CoreHelpers$mapValue3.y1,
262
- x2 = _CoreHelpers$mapValue3.x2,
263
- y2 = _CoreHelpers$mapValue3.y2;
264
-
244
+ constrainBox(box, fullDomainBox) {
245
+ const {
246
+ x1,
247
+ y1,
248
+ x2,
249
+ y2
250
+ } = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(fullDomainBox, Number);
265
251
  return {
266
252
  x1: box.x2 > x2 ? x2 - Math.abs(box.x2 - box.x1) : Math.max(box.x1, x1),
267
253
  y1: box.y2 > y2 ? y2 - Math.abs(box.y2 - box.y1) : Math.max(box.y1, y1),
@@ -269,271 +255,257 @@ var Helpers = {
269
255
  y2: box.y1 < y1 ? y1 + Math.abs(box.y2 - box.y1) : Math.min(box.y2, y2)
270
256
  };
271
257
  },
272
- constrainPoint: function (point, fullDomainBox) {
273
- var _CoreHelpers$mapValue4 = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(fullDomainBox, Number),
274
- x1 = _CoreHelpers$mapValue4.x1,
275
- y1 = _CoreHelpers$mapValue4.y1,
276
- x2 = _CoreHelpers$mapValue4.x2,
277
- y2 = _CoreHelpers$mapValue4.y2;
278
-
258
+ constrainPoint(point, fullDomainBox) {
259
+ const {
260
+ x1,
261
+ y1,
262
+ x2,
263
+ y2
264
+ } = victory_core__WEBPACK_IMPORTED_MODULE_3__.mapValues(fullDomainBox, Number);
279
265
  return {
280
266
  x: Math.min(Math.max(point.x, x1), x2),
281
267
  y: Math.min(Math.max(point.y, y1), y2)
282
268
  };
283
269
  },
284
- hasMoved: function (props) {
285
- var x1 = props.x1,
286
- x2 = props.x2,
287
- y1 = props.y1,
288
- y2 = props.y2,
289
- mouseMoveThreshold = props.mouseMoveThreshold;
290
- var brushDimension = this.getDimension(props);
291
- var xMoved = Math.abs(x1 - x2) >= mouseMoveThreshold;
292
- var yMoved = Math.abs(y1 - y2) >= mouseMoveThreshold;
293
-
270
+ hasMoved(props) {
271
+ const {
272
+ x1,
273
+ x2,
274
+ y1,
275
+ y2,
276
+ mouseMoveThreshold
277
+ } = props;
278
+ const brushDimension = this.getDimension(props);
279
+ const xMoved = Math.abs(x1 - x2) >= mouseMoveThreshold;
280
+ const yMoved = Math.abs(y1 - y2) >= mouseMoveThreshold;
294
281
  switch (brushDimension) {
295
282
  case "x":
296
283
  return xMoved;
297
-
298
284
  case "y":
299
285
  return yMoved;
300
-
301
286
  default:
302
287
  return xMoved || yMoved;
303
288
  }
304
289
  },
305
290
  // eslint-disable-next-line max-statements, complexity
306
- onMouseDown: function (evt, targetProps) {
307
- var _this2 = this;
308
-
291
+ onMouseDown(evt, targetProps) {
309
292
  evt.preventDefault();
310
- var handleWidth = targetProps.handleWidth,
311
- cachedBrushDomain = targetProps.cachedBrushDomain,
312
- domain = targetProps.domain,
313
- allowResize = targetProps.allowResize,
314
- allowDrag = targetProps.allowDrag,
315
- allowDraw = targetProps.allowDraw;
316
- var brushDimension = this.getDimension(targetProps);
317
- var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; // Don't trigger events for static brushes
318
-
293
+ const {
294
+ handleWidth,
295
+ cachedBrushDomain,
296
+ domain,
297
+ allowResize,
298
+ allowDrag,
299
+ allowDraw
300
+ } = targetProps;
301
+ const brushDimension = this.getDimension(targetProps);
302
+ const defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
303
+ // Don't trigger events for static brushes
319
304
  if (!allowResize && !allowDrag) {
320
305
  return {};
321
306
  }
322
-
323
- var fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, domain);
324
- var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_4__.getParentSVG(evt);
325
-
326
- var _Selection$getSVGEven = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG),
327
- x = _Selection$getSVGEven.x,
328
- y = _Selection$getSVGEven.y; // Ignore events that occur outside of the maximum domain region
329
-
330
-
307
+ const fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, domain);
308
+ const parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_4__.getParentSVG(evt);
309
+ const {
310
+ x,
311
+ y
312
+ } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG);
313
+ // Ignore events that occur outside of the maximum domain region
331
314
  if (!this.withinBounds({
332
- x: x,
333
- y: y
315
+ x,
316
+ y
334
317
  }, fullDomainBox, handleWidth)) {
335
318
  return {};
336
319
  }
337
-
338
- var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, targetProps.brushDomain, domain);
339
-
340
- var currentDomain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? targetProps.currentDomain || brushDomain || domain : brushDomain || domain;
341
- var domainBox = this.getDomainBox(targetProps, domain, currentDomain);
342
- var activeHandles = allowResize && this.getActiveHandles({
343
- x: x,
344
- y: y
345
- }, targetProps, domainBox); // If the event occurs in any of the handle regions, start a resize
346
-
320
+ const brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, targetProps.brushDomain, domain);
321
+ const currentDomain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? targetProps.currentDomain || brushDomain || domain : brushDomain || domain;
322
+ const domainBox = this.getDomainBox(targetProps, domain, currentDomain);
323
+ const activeHandles = allowResize && this.getActiveHandles({
324
+ x,
325
+ y
326
+ }, targetProps, domainBox);
327
+ // If the event occurs in any of the handle regions, start a resize
347
328
  if (activeHandles) {
348
329
  return [{
349
330
  target: "parent",
350
- mutation: function () {
351
- return _objectSpread({
331
+ mutation: () => {
332
+ return {
352
333
  isSelecting: true,
353
- domainBox: domainBox,
354
- fullDomainBox: fullDomainBox,
334
+ domainBox,
335
+ fullDomainBox,
355
336
  cachedBrushDomain: brushDomain,
356
- currentDomain: currentDomain,
357
- parentSVG: parentSVG
358
- }, _this2.getResizeMutation(domainBox, activeHandles));
337
+ currentDomain,
338
+ parentSVG,
339
+ ...this.getResizeMutation(domainBox, activeHandles)
340
+ };
359
341
  }
360
342
  }];
361
343
  } else if (this.withinBounds({
362
- x: x,
363
- y: y
344
+ x,
345
+ y
364
346
  }, domainBox) && !react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(domain, currentDomain)) {
365
347
  // if the event occurs within a selected region start a panning event, unless the whole
366
348
  // domain is selected
367
349
  return [{
368
350
  target: "parent",
369
- mutation: function () {
370
- return _objectSpread({
371
- isPanning: allowDrag,
372
- startX: x,
373
- startY: y,
374
- domainBox: domainBox,
375
- fullDomainBox: fullDomainBox,
376
- currentDomain: currentDomain,
377
- cachedBrushDomain: brushDomain,
378
- parentSVG: parentSVG
379
- }, domainBox);
380
- }
351
+ mutation: () => ({
352
+ isPanning: allowDrag,
353
+ startX: x,
354
+ startY: y,
355
+ domainBox,
356
+ fullDomainBox,
357
+ currentDomain,
358
+ cachedBrushDomain: brushDomain,
359
+ parentSVG,
360
+ ...domainBox // set x1, x2, y1, y2
361
+ })
381
362
  }];
382
- } // if the event occurs outside the region, or if the whole domain is selected,
363
+ }
364
+ // if the event occurs outside the region, or if the whole domain is selected,
383
365
  // start a new selection
384
-
385
-
386
366
  return allowDraw ? [{
387
367
  target: "parent",
388
- mutation: function () {
389
- return _objectSpread({
390
- isSelecting: allowResize || defaultBrushArea === "move",
391
- domainBox: domainBox,
392
- fullDomainBox: fullDomainBox,
393
- parentSVG: parentSVG,
394
- cachedBrushDomain: brushDomain,
395
- cachedCurrentDomain: currentDomain,
396
- currentDomain: _this2.getMinimumDomain()
397
- }, _this2.getSelectionMutation({
398
- x: x,
399
- y: y
400
- }, domainBox, brushDimension));
401
- }
368
+ mutation: () => ({
369
+ isSelecting: allowResize || defaultBrushArea === "move",
370
+ domainBox,
371
+ fullDomainBox,
372
+ parentSVG,
373
+ cachedBrushDomain: brushDomain,
374
+ cachedCurrentDomain: currentDomain,
375
+ currentDomain: this.getMinimumDomain(),
376
+ ...this.getSelectionMutation({
377
+ x,
378
+ y
379
+ }, domainBox, brushDimension)
380
+ })
402
381
  }] : {};
403
382
  },
404
383
  // eslint-disable-next-line max-statements, complexity
405
- onGlobalMouseMove: function (evt, targetProps) {
406
- var scale = targetProps.scale,
407
- isPanning = targetProps.isPanning,
408
- isSelecting = targetProps.isSelecting,
409
- fullDomainBox = targetProps.fullDomainBox,
410
- onBrushDomainChange = targetProps.onBrushDomainChange,
411
- allowResize = targetProps.allowResize,
412
- allowDrag = targetProps.allowDrag,
413
- horizontal = targetProps.horizontal,
414
- mouseMoveThreshold = targetProps.mouseMoveThreshold,
415
- parentSVG = targetProps.parentSVG;
416
- var brushDimension = this.getDimension(targetProps);
417
-
418
- var _Selection$getSVGEven2 = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG),
419
- x = _Selection$getSVGEven2.x,
420
- y = _Selection$getSVGEven2.y;
421
-
422
- if (!allowResize && !allowDrag || mouseMoveThreshold > 0 && !this.hasMoved(_objectSpread(_objectSpread({}, targetProps), {}, {
384
+ onGlobalMouseMove(evt, targetProps) {
385
+ const {
386
+ scale,
387
+ isPanning,
388
+ isSelecting,
389
+ fullDomainBox,
390
+ onBrushDomainChange,
391
+ allowResize,
392
+ allowDrag,
393
+ horizontal,
394
+ mouseMoveThreshold,
395
+ parentSVG
396
+ } = targetProps;
397
+ const brushDimension = this.getDimension(targetProps);
398
+ const {
399
+ x,
400
+ y
401
+ } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSVGEventCoordinates(evt, parentSVG);
402
+ if (!allowResize && !allowDrag || mouseMoveThreshold > 0 && !this.hasMoved({
403
+ ...targetProps,
423
404
  x2: x,
424
405
  y2: y
425
- }))) {
406
+ })) {
426
407
  return {};
427
408
  }
428
-
429
409
  if (allowDrag && isPanning) {
430
- var startX = targetProps.startX,
431
- startY = targetProps.startY;
432
- var pannedBox = this.panBox(targetProps, {
433
- x: x,
434
- y: y
410
+ const {
411
+ startX,
412
+ startY
413
+ } = targetProps;
414
+ const pannedBox = this.panBox(targetProps, {
415
+ x,
416
+ y
417
+ });
418
+ const constrainedBox = this.constrainBox(pannedBox, fullDomainBox);
419
+ const currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds({
420
+ ...constrainedBox,
421
+ scale,
422
+ horizontal
435
423
  });
436
- var constrainedBox = this.constrainBox(pannedBox, fullDomainBox);
437
- var currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds(_objectSpread(_objectSpread({}, constrainedBox), {}, {
438
- scale: scale,
439
- horizontal: horizontal
440
- }));
441
-
442
- var mutatedProps = _objectSpread({
443
- currentDomain: currentDomain,
444
- parentSVG: parentSVG,
424
+ const mutatedProps = {
425
+ currentDomain,
426
+ parentSVG,
445
427
  startX: pannedBox.x2 >= fullDomainBox.x2 || pannedBox.x1 <= fullDomainBox.x1 ? startX : x,
446
- startY: pannedBox.y2 >= fullDomainBox.y2 || pannedBox.y1 <= fullDomainBox.y1 ? startY : y
447
- }, constrainedBox);
448
-
428
+ startY: pannedBox.y2 >= fullDomainBox.y2 || pannedBox.y1 <= fullDomainBox.y1 ? startY : y,
429
+ ...constrainedBox
430
+ };
449
431
  if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isFunction(onBrushDomainChange)) {
450
432
  onBrushDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
451
433
  }
452
-
453
434
  return [{
454
435
  target: "parent",
455
- mutation: function () {
456
- return mutatedProps;
457
- }
436
+ mutation: () => mutatedProps
458
437
  }];
459
438
  } else if (allowResize && isSelecting) {
460
- var _this$constrainPoint = this.constrainPoint({
439
+ const {
440
+ x: x2,
441
+ y: y2
442
+ } = this.constrainPoint({
461
443
  x: brushDimension !== "y" ? x : targetProps.x2,
462
444
  y: brushDimension !== "x" ? y : targetProps.y2
463
- }, fullDomainBox),
464
- x2 = _this$constrainPoint.x,
465
- y2 = _this$constrainPoint.y;
466
-
467
- var _currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds({
468
- x2: x2,
469
- y2: y2,
445
+ }, fullDomainBox);
446
+ const currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getBounds({
447
+ x2,
448
+ y2,
470
449
  x1: targetProps.x1,
471
450
  y1: targetProps.y1,
472
- scale: scale,
473
- horizontal: horizontal
451
+ scale,
452
+ horizontal
474
453
  });
475
-
476
- var _mutatedProps = {
477
- x2: x2,
478
- y2: y2,
479
- currentDomain: _currentDomain,
480
- parentSVG: parentSVG
454
+ const mutatedProps = {
455
+ x2,
456
+ y2,
457
+ currentDomain,
458
+ parentSVG
481
459
  };
482
-
483
460
  if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isFunction(onBrushDomainChange)) {
484
- onBrushDomainChange(_currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, _mutatedProps, targetProps));
461
+ onBrushDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
485
462
  }
486
-
487
463
  return [{
488
464
  target: "parent",
489
- mutation: function () {
490
- return _mutatedProps;
491
- }
465
+ mutation: () => mutatedProps
492
466
  }];
493
467
  }
494
-
495
468
  return {};
496
469
  },
497
470
  // eslint-disable-next-line complexity
498
- onGlobalMouseUp: function (evt, targetProps) {
471
+ onGlobalMouseUp(evt, targetProps) {
499
472
  // if a panning or selection has not been started, ignore the event
500
473
  if (!targetProps.isPanning && !targetProps.isSelecting) {
501
474
  return {};
502
- } // eslint-disable-line max-statements, complexity
503
-
504
-
505
- var x1 = targetProps.x1,
506
- y1 = targetProps.y1,
507
- x2 = targetProps.x2,
508
- y2 = targetProps.y2,
509
- isPanning = targetProps.isPanning,
510
- isSelecting = targetProps.isSelecting,
511
- onBrushDomainChange = targetProps.onBrushDomainChange,
512
- onBrushDomainChangeEnd = targetProps.onBrushDomainChangeEnd,
513
- onBrushCleared = targetProps.onBrushCleared,
514
- currentDomain = targetProps.currentDomain,
515
- allowResize = targetProps.allowResize,
516
- allowDrag = targetProps.allowDrag;
517
- var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
518
- var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none";
519
- var mutatedProps = {
475
+ }
476
+ // eslint-disable-line max-statements, complexity
477
+ const {
478
+ x1,
479
+ y1,
480
+ x2,
481
+ y2,
482
+ isPanning,
483
+ isSelecting,
484
+ onBrushDomainChange,
485
+ onBrushDomainChangeEnd,
486
+ onBrushCleared,
487
+ currentDomain,
488
+ allowResize,
489
+ allowDrag
490
+ } = targetProps;
491
+ const defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
492
+ const defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none";
493
+ const mutatedProps = {
520
494
  isPanning: false,
521
495
  isSelecting: false
522
- }; // if the mouse hasn't moved since a mouseDown event, select the default brush area
496
+ };
523
497
 
498
+ // if the mouse hasn't moved since a mouseDown event, select the default brush area
524
499
  if ((allowResize || defaultBrushHasArea) && (x1 === x2 || y1 === y2)) {
525
- var cachedDomain = targetProps.cachedCurrentDomain || currentDomain;
526
- var defaultDomain = this.getDefaultBrushArea(targetProps, cachedDomain, evt);
500
+ const cachedDomain = targetProps.cachedCurrentDomain || currentDomain;
501
+ const defaultDomain = this.getDefaultBrushArea(targetProps, cachedDomain, evt);
527
502
  mutatedProps.currentDomain = defaultDomain;
528
-
529
503
  if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isFunction(onBrushDomainChange)) {
530
504
  onBrushDomainChange(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
531
505
  }
532
-
533
506
  if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isFunction(onBrushDomainChangeEnd)) {
534
507
  onBrushDomainChangeEnd(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
535
508
  }
536
-
537
509
  if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isFunction(onBrushCleared)) {
538
510
  onBrushCleared(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
539
511
  }
@@ -542,24 +514,23 @@ var Helpers = {
542
514
  onBrushDomainChangeEnd(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, mutatedProps, targetProps));
543
515
  }
544
516
  }
545
-
546
517
  return [{
547
518
  target: "parent",
548
- mutation: function () {
549
- return mutatedProps;
550
- }
519
+ mutation: () => mutatedProps
551
520
  }];
552
521
  }
553
522
  };
554
- var BrushHelpers = _objectSpread(_objectSpread({}, Helpers), {}, {
523
+ const BrushHelpers = {
524
+ ...Helpers,
555
525
  onMouseDown: Helpers.onMouseDown.bind(Helpers),
556
526
  onGlobalMouseUp: Helpers.onGlobalMouseUp.bind(Helpers),
557
- onGlobalMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(Helpers.onGlobalMouseMove.bind(Helpers), 16, // eslint-disable-line no-magic-numbers
527
+ onGlobalMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(Helpers.onGlobalMouseMove.bind(Helpers), 16,
528
+ // eslint-disable-line no-magic-numbers
558
529
  {
559
530
  leading: true,
560
531
  trailing: false
561
532
  })
562
- });
533
+ };
563
534
 
564
535
  /***/ }),
565
536
 
@@ -567,253 +538,195 @@ var BrushHelpers = _objectSpread(_objectSpread({}, Helpers), {}, {
567
538
  /*!*************************************!*\
568
539
  !*** ./victory-brush-container.tsx ***!
569
540
  \*************************************/
570
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
541
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
571
542
 
572
543
  "use strict";
573
544
  __webpack_require__.r(__webpack_exports__);
574
545
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
575
- /* harmony export */ "VictoryBrushContainer": () => (/* binding */ VictoryBrushContainer),
576
- /* harmony export */ "brushContainerMixin": () => (/* binding */ brushContainerMixin)
546
+ /* harmony export */ "VictoryBrushContainer": function() { return /* binding */ VictoryBrushContainer; },
547
+ /* harmony export */ "brushContainerMixin": function() { return /* binding */ brushContainerMixin; }
577
548
  /* harmony export */ });
578
549
  /* 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");
579
550
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
580
551
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
581
552
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
582
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
583
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
584
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
585
- /* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./brush-helpers */ "./brush-helpers.ts");
553
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
554
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
555
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
556
+ /* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./brush-helpers */ "./brush-helpers.ts");
586
557
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
587
558
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
588
559
 
589
560
 
590
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
591
-
592
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
593
-
594
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
595
-
596
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
597
-
598
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
599
-
600
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
601
-
602
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
603
-
604
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
605
-
606
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
607
-
608
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
609
-
610
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
611
-
612
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
613
-
614
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
615
-
616
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
617
-
618
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
619
-
620
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
621
-
622
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
623
-
624
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
625
-
626
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
627
-
628
-
629
561
 
630
562
 
631
563
 
632
564
  function brushContainerMixin(Base) {
633
- var _class;
634
-
635
565
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
636
- return _class = /*#__PURE__*/function (_Base) {
637
- _inherits(VictoryBrushContainer, _Base);
638
-
639
- var _super = _createSuper(VictoryBrushContainer);
640
-
641
- function VictoryBrushContainer() {
642
- _classCallCheck(this, VictoryBrushContainer);
643
-
644
- return _super.apply(this, arguments);
566
+ return class VictoryBrushContainer extends Base {
567
+ static displayName = "VictoryBrushContainer";
568
+ static defaultProps = {
569
+ ...victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryContainer.defaultProps,
570
+ allowDrag: true,
571
+ allowDraw: true,
572
+ allowResize: true,
573
+ brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
574
+ brushStyle: {
575
+ stroke: "transparent",
576
+ fill: "black",
577
+ fillOpacity: 0.1
578
+ },
579
+ handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
580
+ handleStyle: {
581
+ stroke: "transparent",
582
+ fill: "transparent"
583
+ },
584
+ handleWidth: 8,
585
+ mouseMoveThreshold: 0
586
+ };
587
+ static defaultEvents = props => {
588
+ return [{
589
+ target: "parent",
590
+ eventHandlers: {
591
+ onMouseDown: (evt, targetProps) => {
592
+ return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onMouseDown(evt, targetProps);
593
+ },
594
+ onTouchStart: (evt, targetProps) => {
595
+ return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onMouseDown(evt, targetProps);
596
+ },
597
+ onGlobalMouseMove: (evt, targetProps) => {
598
+ return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
599
+ },
600
+ onGlobalTouchMove: (evt, targetProps) => {
601
+ return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
602
+ },
603
+ onGlobalMouseUp: (evt, targetProps) => {
604
+ return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
605
+ },
606
+ onGlobalTouchEnd: (evt, targetProps) => {
607
+ return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
608
+ },
609
+ onGlobalTouchCancel: (evt, targetProps) => {
610
+ return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
611
+ }
612
+ }
613
+ }];
614
+ };
615
+ getSelectBox(props, coordinates) {
616
+ const {
617
+ x,
618
+ y
619
+ } = coordinates;
620
+ const {
621
+ brushStyle,
622
+ brushComponent,
623
+ name
624
+ } = props;
625
+ const brushComponentStyle = brushComponent.props && brushComponent.props.style;
626
+ const cursor = !props.allowDrag && !props.allowResize ? "auto" : "move";
627
+ return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(brushComponent, {
628
+ key: `${name}-brush`,
629
+ width: Math.abs(x[1] - x[0]) || 1,
630
+ height: Math.abs(y[1] - y[0]) || 1,
631
+ x: Math.min(x[0], x[1]),
632
+ y: Math.min(y[0], y[1]),
633
+ cursor,
634
+ style: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, brushComponentStyle, brushStyle)
635
+ }) : null;
645
636
  }
646
-
647
- _createClass(VictoryBrushContainer, [{
648
- key: "getSelectBox",
649
- value: function getSelectBox(props, coordinates) {
650
- var x = coordinates.x,
651
- y = coordinates.y;
652
- var brushStyle = props.brushStyle,
653
- brushComponent = props.brushComponent,
654
- name = props.name;
655
- var brushComponentStyle = brushComponent.props && brushComponent.props.style;
656
- var cursor = !props.allowDrag && !props.allowResize ? "auto" : "move";
657
- return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(brushComponent, {
658
- key: "".concat(name, "-brush"),
659
- width: Math.abs(x[1] - x[0]) || 1,
660
- height: Math.abs(y[1] - y[0]) || 1,
661
- x: Math.min(x[0], x[1]),
662
- y: Math.min(y[0], y[1]),
663
- cursor: cursor,
664
- style: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, brushComponentStyle, brushStyle)
665
- }) : null;
637
+ getCursorPointers(props) {
638
+ const cursors = {
639
+ yProps: "ns-resize",
640
+ xProps: "ew-resize"
641
+ };
642
+ if (!props.allowResize && props.allowDrag) {
643
+ cursors.xProps = "move";
644
+ cursors.yProps = "move";
645
+ } else if (!props.allowResize && !props.allowDrag) {
646
+ cursors.xProps = "auto";
647
+ cursors.yProps = "auto";
666
648
  }
667
- }, {
668
- key: "getCursorPointers",
669
- value: function getCursorPointers(props) {
670
- var cursors = {
671
- yProps: "ns-resize",
672
- xProps: "ew-resize"
673
- };
674
-
675
- if (!props.allowResize && props.allowDrag) {
676
- cursors.xProps = "move";
677
- cursors.yProps = "move";
678
- } else if (!props.allowResize && !props.allowDrag) {
679
- cursors.xProps = "auto";
680
- cursors.yProps = "auto";
681
- }
649
+ return cursors;
650
+ }
651
+ getHandles(props, domain) {
652
+ const {
653
+ handleWidth,
654
+ handleStyle,
655
+ handleComponent,
656
+ name
657
+ } = props;
658
+ const domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.getDomainBox(props, domain);
659
+ const {
660
+ x1,
661
+ x2,
662
+ y1,
663
+ y2
664
+ } = domainBox;
665
+ const {
666
+ top,
667
+ bottom,
668
+ left,
669
+ right
670
+ } = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.getHandles(props, domainBox);
671
+ const width = Math.abs(x2 - x1) || 1;
672
+ const height = Math.abs(y2 - y1) || 1;
673
+ const handleComponentStyle = handleComponent.props && handleComponent.props.style || {};
674
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, handleComponentStyle, handleStyle);
675
+ const cursors = this.getCursorPointers(props);
676
+ const yProps = {
677
+ style,
678
+ width,
679
+ height: handleWidth,
680
+ cursor: cursors.yProps
681
+ };
682
+ const xProps = {
683
+ style,
684
+ width: handleWidth,
685
+ height,
686
+ cursor: cursors.xProps
687
+ };
688
+ const handleProps = {
689
+ top: top && Object.assign({
690
+ x: top.x1,
691
+ y: top.y1
692
+ }, yProps),
693
+ bottom: bottom && Object.assign({
694
+ x: bottom.x1,
695
+ y: bottom.y1
696
+ }, yProps),
697
+ left: left && Object.assign({
698
+ y: left.y1,
699
+ x: left.x1
700
+ }, xProps),
701
+ right: right && Object.assign({
702
+ y: right.y1,
703
+ x: right.x1
704
+ }, xProps)
705
+ };
706
+ const handles = ["top", "bottom", "left", "right"].reduce((memo, curr) => handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(handleComponent, Object.assign({
707
+ key: `${name}-handle-${curr}`
708
+ }, handleProps[curr]))) : memo, []);
709
+ return handles.length ? handles : null;
710
+ }
711
+ getRect(props) {
712
+ const {
713
+ currentDomain,
714
+ cachedBrushDomain
715
+ } = props;
716
+ const brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain);
717
+ const domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain;
718
+ const coordinates = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, domain);
719
+ const selectBox = this.getSelectBox(props, coordinates);
720
+ return selectBox ? [selectBox, this.getHandles(props, domain)] : [];
721
+ }
682
722
 
683
- return cursors;
684
- }
685
- }, {
686
- key: "getHandles",
687
- value: function getHandles(props, domain) {
688
- var handleWidth = props.handleWidth,
689
- handleStyle = props.handleStyle,
690
- handleComponent = props.handleComponent,
691
- name = props.name;
692
- var domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.getDomainBox(props, domain);
693
- var x1 = domainBox.x1,
694
- x2 = domainBox.x2,
695
- y1 = domainBox.y1,
696
- y2 = domainBox.y2;
697
-
698
- var _BrushHelpers$getHand = _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.getHandles(props, domainBox),
699
- top = _BrushHelpers$getHand.top,
700
- bottom = _BrushHelpers$getHand.bottom,
701
- left = _BrushHelpers$getHand.left,
702
- right = _BrushHelpers$getHand.right;
703
-
704
- var width = Math.abs(x2 - x1) || 1;
705
- var height = Math.abs(y2 - y1) || 1;
706
- var handleComponentStyle = handleComponent.props && handleComponent.props.style || {};
707
-
708
- var style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, handleComponentStyle, handleStyle);
709
-
710
- var cursors = this.getCursorPointers(props);
711
- var yProps = {
712
- style: style,
713
- width: width,
714
- height: handleWidth,
715
- cursor: cursors.yProps
716
- };
717
- var xProps = {
718
- style: style,
719
- width: handleWidth,
720
- height: height,
721
- cursor: cursors.xProps
722
- };
723
- var handleProps = {
724
- top: top && Object.assign({
725
- x: top.x1,
726
- y: top.y1
727
- }, yProps),
728
- bottom: bottom && Object.assign({
729
- x: bottom.x1,
730
- y: bottom.y1
731
- }, yProps),
732
- left: left && Object.assign({
733
- y: left.y1,
734
- x: left.x1
735
- }, xProps),
736
- right: right && Object.assign({
737
- y: right.y1,
738
- x: right.x1
739
- }, xProps)
740
- };
741
- var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) {
742
- return handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(handleComponent, Object.assign({
743
- key: "".concat(name, "-handle-").concat(curr)
744
- }, handleProps[curr]))) : memo;
745
- }, []);
746
- return handles.length ? handles : null;
747
- }
748
- }, {
749
- key: "getRect",
750
- value: function getRect(props) {
751
- var currentDomain = props.currentDomain,
752
- cachedBrushDomain = props.cachedBrushDomain;
753
-
754
- var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain);
755
-
756
- var domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain;
757
- var coordinates = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomainCoordinates(props, domain);
758
- var selectBox = this.getSelectBox(props, coordinates);
759
- return selectBox ? [selectBox, this.getHandles(props, domain)] : [];
760
- } // Overrides method in VictoryContainer
761
-
762
- }, {
763
- key: "getChildren",
764
- value: function getChildren(props) {
765
- return [].concat(_toConsumableArray(react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children)), _toConsumableArray(this.getRect(props)));
766
- }
767
- }]);
768
-
769
- return VictoryBrushContainer;
770
- }(Base), _class.displayName = "VictoryBrushContainer", _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
771
- allowDrag: true,
772
- allowDraw: true,
773
- allowResize: true,
774
- brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Rect, null),
775
- brushStyle: {
776
- stroke: "transparent",
777
- fill: "black",
778
- fillOpacity: 0.1
779
- },
780
- handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Rect, null),
781
- handleStyle: {
782
- stroke: "transparent",
783
- fill: "transparent"
784
- },
785
- handleWidth: 8,
786
- mouseMoveThreshold: 0
787
- }), _class.defaultEvents = function (props) {
788
- return [{
789
- target: "parent",
790
- eventHandlers: {
791
- onMouseDown: function (evt, targetProps) {
792
- return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onMouseDown(evt, targetProps);
793
- },
794
- onTouchStart: function (evt, targetProps) {
795
- return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onMouseDown(evt, targetProps);
796
- },
797
- onGlobalMouseMove: function (evt, targetProps) {
798
- return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
799
- },
800
- onGlobalTouchMove: function (evt, targetProps) {
801
- return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
802
- },
803
- onGlobalMouseUp: function (evt, targetProps) {
804
- return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
805
- },
806
- onGlobalTouchEnd: function (evt, targetProps) {
807
- return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
808
- },
809
- onGlobalTouchCancel: function (evt, targetProps) {
810
- return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_3__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
811
- }
812
- }
813
- }];
814
- }, _class;
723
+ // Overrides method in VictoryContainer
724
+ getChildren(props) {
725
+ return [...react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children), ...this.getRect(props)];
726
+ }
727
+ };
815
728
  }
816
- var VictoryBrushContainer = brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer);
729
+ const VictoryBrushContainer = brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryContainer);
817
730
 
818
731
  /***/ }),
819
732
 
@@ -821,7 +734,7 @@ var VictoryBrushContainer = brushContainerMixin(victory_core__WEBPACK_IMPORTED_M
821
734
  /*!*********************************************************************************!*\
822
735
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js ***!
823
736
  \*********************************************************************************/
824
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
737
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
825
738
 
826
739
  var root = __webpack_require__(/*! ./_root */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
827
740
 
@@ -837,7 +750,7 @@ module.exports = Symbol;
837
750
  /*!********************************************************************************!*\
838
751
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js ***!
839
752
  \********************************************************************************/
840
- /***/ ((module) => {
753
+ /***/ (function(module) {
841
754
 
842
755
  /**
843
756
  * A faster alternative to `Function#apply`, this function invokes `func`
@@ -868,7 +781,7 @@ module.exports = apply;
868
781
  /*!***********************************************************************************!*\
869
782
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js ***!
870
783
  \***********************************************************************************/
871
- /***/ ((module) => {
784
+ /***/ (function(module) {
872
785
 
873
786
  /**
874
787
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -899,7 +812,7 @@ module.exports = arrayMap;
899
812
  /*!************************************************************************************!*\
900
813
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js ***!
901
814
  \************************************************************************************/
902
- /***/ ((module) => {
815
+ /***/ (function(module) {
903
816
 
904
817
  /**
905
818
  * Appends the elements of `values` to `array`.
@@ -929,7 +842,7 @@ module.exports = arrayPush;
929
842
  /*!**************************************************************************************!*\
930
843
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js ***!
931
844
  \**************************************************************************************/
932
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
845
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
933
846
 
934
847
  var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"),
935
848
  eq = __webpack_require__(/*! ./eq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js");
@@ -967,7 +880,7 @@ module.exports = assignValue;
967
880
  /*!******************************************************************************************!*\
968
881
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js ***!
969
882
  \******************************************************************************************/
970
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
883
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
971
884
 
972
885
  var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js");
973
886
 
@@ -1002,7 +915,7 @@ module.exports = baseAssignValue;
1002
915
  /*!**************************************************************************************!*\
1003
916
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js ***!
1004
917
  \**************************************************************************************/
1005
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
918
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1006
919
 
1007
920
  var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js"),
1008
921
  isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js");
@@ -1050,7 +963,7 @@ module.exports = baseFlatten;
1050
963
  /*!**********************************************************************************!*\
1051
964
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js ***!
1052
965
  \**********************************************************************************/
1053
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
966
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1054
967
 
1055
968
  var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
1056
969
  toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");
@@ -1084,7 +997,7 @@ module.exports = baseGet;
1084
997
  /*!************************************************************************************!*\
1085
998
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js ***!
1086
999
  \************************************************************************************/
1087
- /***/ ((module) => {
1000
+ /***/ (function(module) {
1088
1001
 
1089
1002
  /**
1090
1003
  * The base implementation of `_.hasIn` without support for deep paths.
@@ -1107,7 +1020,7 @@ module.exports = baseHasIn;
1107
1020
  /*!***********************************************************************************!*\
1108
1021
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js ***!
1109
1022
  \***********************************************************************************/
1110
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1023
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1111
1024
 
1112
1025
  var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js"),
1113
1026
  hasIn = __webpack_require__(/*! ./hasIn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js");
@@ -1136,7 +1049,7 @@ module.exports = basePick;
1136
1049
  /*!*************************************************************************************!*\
1137
1050
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js ***!
1138
1051
  \*************************************************************************************/
1139
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1052
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1140
1053
 
1141
1054
  var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"),
1142
1055
  baseSet = __webpack_require__(/*! ./_baseSet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"),
@@ -1176,7 +1089,7 @@ module.exports = basePickBy;
1176
1089
  /*!***************************************************************************************!*\
1177
1090
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js ***!
1178
1091
  \***************************************************************************************/
1179
- /***/ ((module) => {
1092
+ /***/ (function(module) {
1180
1093
 
1181
1094
  /**
1182
1095
  * The base implementation of `_.property` without support for deep paths.
@@ -1200,7 +1113,7 @@ module.exports = baseProperty;
1200
1113
  /*!*******************************************************************************************!*\
1201
1114
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js ***!
1202
1115
  \*******************************************************************************************/
1203
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1116
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1204
1117
 
1205
1118
  var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js");
1206
1119
 
@@ -1226,7 +1139,7 @@ module.exports = basePropertyDeep;
1226
1139
  /*!***********************************************************************************!*\
1227
1140
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js ***!
1228
1141
  \***********************************************************************************/
1229
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1142
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1230
1143
 
1231
1144
  var identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"),
1232
1145
  overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"),
@@ -1253,7 +1166,7 @@ module.exports = baseRest;
1253
1166
  /*!**********************************************************************************!*\
1254
1167
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js ***!
1255
1168
  \**********************************************************************************/
1256
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1169
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1257
1170
 
1258
1171
  var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"),
1259
1172
  castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
@@ -1314,7 +1227,7 @@ module.exports = baseSet;
1314
1227
  /*!***************************************************************************************!*\
1315
1228
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js ***!
1316
1229
  \***************************************************************************************/
1317
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1230
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1318
1231
 
1319
1232
  var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),
1320
1233
  arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
@@ -1361,7 +1274,7 @@ module.exports = baseToString;
1361
1274
  /*!***********************************************************************************!*\
1362
1275
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js ***!
1363
1276
  \***********************************************************************************/
1364
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1277
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1365
1278
 
1366
1279
  var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
1367
1280
  isKey = __webpack_require__(/*! ./_isKey */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"),
@@ -1392,7 +1305,7 @@ module.exports = castPath;
1392
1305
  /*!*****************************************************************************************!*\
1393
1306
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js ***!
1394
1307
  \*****************************************************************************************/
1395
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1308
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1396
1309
 
1397
1310
  var getNative = __webpack_require__(/*! ./_getNative */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js");
1398
1311
 
@@ -1413,7 +1326,7 @@ module.exports = defineProperty;
1413
1326
  /*!***********************************************************************************!*\
1414
1327
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js ***!
1415
1328
  \***********************************************************************************/
1416
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1329
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1417
1330
 
1418
1331
  var flatten = __webpack_require__(/*! ./flatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js"),
1419
1332
  overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"),
@@ -1439,7 +1352,7 @@ module.exports = flatRest;
1439
1352
  /*!*************************************************************************************!*\
1440
1353
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js ***!
1441
1354
  \*************************************************************************************/
1442
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1355
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1443
1356
 
1444
1357
  /** Detect free variable `global` from Node.js. */
1445
1358
  var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
@@ -1453,7 +1366,7 @@ module.exports = freeGlobal;
1453
1366
  /*!************************************************************************************!*\
1454
1367
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js ***!
1455
1368
  \************************************************************************************/
1456
- /***/ ((module) => {
1369
+ /***/ (function(module) {
1457
1370
 
1458
1371
  /**
1459
1372
  * Gets the value at `key` of `object`.
@@ -1476,7 +1389,7 @@ module.exports = getValue;
1476
1389
  /*!**********************************************************************************!*\
1477
1390
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js ***!
1478
1391
  \**********************************************************************************/
1479
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1392
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1480
1393
 
1481
1394
  var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
1482
1395
  isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),
@@ -1525,7 +1438,7 @@ module.exports = hasPath;
1525
1438
  /*!****************************************************************************************!*\
1526
1439
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js ***!
1527
1440
  \****************************************************************************************/
1528
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1441
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1529
1442
 
1530
1443
  var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),
1531
1444
  isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),
@@ -1555,7 +1468,7 @@ module.exports = isFlattenable;
1555
1468
  /*!**********************************************************************************!*\
1556
1469
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js ***!
1557
1470
  \**********************************************************************************/
1558
- /***/ ((module) => {
1471
+ /***/ (function(module) {
1559
1472
 
1560
1473
  /** Used as references for various `Number` constants. */
1561
1474
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -1590,7 +1503,7 @@ module.exports = isIndex;
1590
1503
  /*!*****************************************************************************************!*\
1591
1504
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js ***!
1592
1505
  \*****************************************************************************************/
1593
- /***/ ((module) => {
1506
+ /***/ (function(module) {
1594
1507
 
1595
1508
  /**
1596
1509
  * This method returns `false`.
@@ -1618,7 +1531,7 @@ module.exports = stubFalse;
1618
1531
  /*!********************************************************************************!*\
1619
1532
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js ***!
1620
1533
  \********************************************************************************/
1621
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1534
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1622
1535
 
1623
1536
  var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
1624
1537
  isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
@@ -1657,7 +1570,7 @@ module.exports = isKey;
1657
1570
  /*!****************************************************************************************!*\
1658
1571
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js ***!
1659
1572
  \****************************************************************************************/
1660
- /***/ ((module) => {
1573
+ /***/ (function(module) {
1661
1574
 
1662
1575
  /**
1663
1576
  * This method returns the first argument it receives.
@@ -1688,7 +1601,7 @@ module.exports = identity;
1688
1601
  /*!***********************************************************************************!*\
1689
1602
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js ***!
1690
1603
  \***********************************************************************************/
1691
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1604
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1692
1605
 
1693
1606
  var apply = __webpack_require__(/*! ./_apply */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js");
1694
1607
 
@@ -1734,7 +1647,7 @@ module.exports = overRest;
1734
1647
  /*!*******************************************************************************!*\
1735
1648
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js ***!
1736
1649
  \*******************************************************************************/
1737
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1650
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1738
1651
 
1739
1652
  var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js");
1740
1653
 
@@ -1753,7 +1666,7 @@ module.exports = root;
1753
1666
  /*!**************************************************************************************!*\
1754
1667
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js ***!
1755
1668
  \**************************************************************************************/
1756
- /***/ ((module) => {
1669
+ /***/ (function(module) {
1757
1670
 
1758
1671
  /**
1759
1672
  * This method returns the first argument it receives.
@@ -1784,7 +1697,7 @@ module.exports = identity;
1784
1697
  /*!***************************************************************************************!*\
1785
1698
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js ***!
1786
1699
  \***************************************************************************************/
1787
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1700
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1788
1701
 
1789
1702
  var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js");
1790
1703
 
@@ -1821,7 +1734,7 @@ module.exports = stringToPath;
1821
1734
  /*!********************************************************************************!*\
1822
1735
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js ***!
1823
1736
  \********************************************************************************/
1824
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1737
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1825
1738
 
1826
1739
  var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
1827
1740
 
@@ -1852,7 +1765,7 @@ module.exports = toKey;
1852
1765
  /*!**********************************************************************************!*\
1853
1766
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js ***!
1854
1767
  \**********************************************************************************/
1855
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1768
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1856
1769
 
1857
1770
  var isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
1858
1771
  now = __webpack_require__(/*! ./now */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js"),
@@ -2053,7 +1966,7 @@ module.exports = debounce;
2053
1966
  /*!**********************************************************************************!*\
2054
1967
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js ***!
2055
1968
  \**********************************************************************************/
2056
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1969
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2057
1970
 
2058
1971
  var baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
2059
1972
  eq = __webpack_require__(/*! ./eq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"),
@@ -2127,7 +2040,7 @@ module.exports = defaults;
2127
2040
  /*!****************************************************************************!*\
2128
2041
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js ***!
2129
2042
  \****************************************************************************/
2130
- /***/ ((module) => {
2043
+ /***/ (function(module) {
2131
2044
 
2132
2045
  /**
2133
2046
  * Performs a
@@ -2174,7 +2087,7 @@ module.exports = eq;
2174
2087
  /*!*********************************************************************************!*\
2175
2088
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js ***!
2176
2089
  \*********************************************************************************/
2177
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2090
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2178
2091
 
2179
2092
  var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js");
2180
2093
 
@@ -2206,7 +2119,7 @@ module.exports = flatten;
2206
2119
  /*!*******************************************************************************!*\
2207
2120
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js ***!
2208
2121
  \*******************************************************************************/
2209
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2122
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2210
2123
 
2211
2124
  var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js"),
2212
2125
  hasPath = __webpack_require__(/*! ./_hasPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js");
@@ -2250,7 +2163,7 @@ module.exports = hasIn;
2250
2163
  /*!**********************************************************************************!*\
2251
2164
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js ***!
2252
2165
  \**********************************************************************************/
2253
- /***/ ((module) => {
2166
+ /***/ (function(module) {
2254
2167
 
2255
2168
  /**
2256
2169
  * This method returns the first argument it receives.
@@ -2281,7 +2194,7 @@ module.exports = identity;
2281
2194
  /*!*************************************************************************************!*\
2282
2195
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js ***!
2283
2196
  \*************************************************************************************/
2284
- /***/ ((module) => {
2197
+ /***/ (function(module) {
2285
2198
 
2286
2199
  /**
2287
2200
  * This method returns `false`.
@@ -2309,7 +2222,7 @@ module.exports = stubFalse;
2309
2222
  /*!*********************************************************************************!*\
2310
2223
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js ***!
2311
2224
  \*********************************************************************************/
2312
- /***/ ((module) => {
2225
+ /***/ (function(module) {
2313
2226
 
2314
2227
  /**
2315
2228
  * Checks if `value` is classified as an `Array` object.
@@ -2345,7 +2258,7 @@ module.exports = isArray;
2345
2258
  /*!**********************************************************************************!*\
2346
2259
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js ***!
2347
2260
  \**********************************************************************************/
2348
- /***/ ((module) => {
2261
+ /***/ (function(module) {
2349
2262
 
2350
2263
  /** Used as references for various `Number` constants. */
2351
2264
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -2390,7 +2303,7 @@ module.exports = isLength;
2390
2303
  /*!**********************************************************************************!*\
2391
2304
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js ***!
2392
2305
  \**********************************************************************************/
2393
- /***/ ((module) => {
2306
+ /***/ (function(module) {
2394
2307
 
2395
2308
  /**
2396
2309
  * Checks if `value` is the
@@ -2431,7 +2344,7 @@ module.exports = isObject;
2431
2344
  /*!**********************************************************************************!*\
2432
2345
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js ***!
2433
2346
  \**********************************************************************************/
2434
- /***/ ((module) => {
2347
+ /***/ (function(module) {
2435
2348
 
2436
2349
  /**
2437
2350
  * This method returns `false`.
@@ -2459,7 +2372,7 @@ module.exports = stubFalse;
2459
2372
  /*!********************************************************************************!*\
2460
2373
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js ***!
2461
2374
  \********************************************************************************/
2462
- /***/ ((module) => {
2375
+ /***/ (function(module) {
2463
2376
 
2464
2377
  /**
2465
2378
  * This function is like
@@ -2489,7 +2402,7 @@ module.exports = nativeKeysIn;
2489
2402
  /*!*****************************************************************************!*\
2490
2403
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js ***!
2491
2404
  \*****************************************************************************/
2492
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2405
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2493
2406
 
2494
2407
  var root = __webpack_require__(/*! ./_root */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
2495
2408
 
@@ -2522,7 +2435,7 @@ module.exports = now;
2522
2435
  /*!******************************************************************************!*\
2523
2436
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js ***!
2524
2437
  \******************************************************************************/
2525
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2438
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2526
2439
 
2527
2440
  var basePick = __webpack_require__(/*! ./_basePick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js"),
2528
2441
  flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js");
@@ -2557,7 +2470,7 @@ module.exports = pick;
2557
2470
  /*!**********************************************************************************!*\
2558
2471
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js ***!
2559
2472
  \**********************************************************************************/
2560
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2473
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2561
2474
 
2562
2475
  var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"),
2563
2476
  basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js"),
@@ -2599,7 +2512,7 @@ module.exports = property;
2599
2512
  /*!**********************************************************************************!*\
2600
2513
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js ***!
2601
2514
  \**********************************************************************************/
2602
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2515
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2603
2516
 
2604
2517
  var debounce = __webpack_require__(/*! ./debounce */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js"),
2605
2518
  isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
@@ -2678,7 +2591,7 @@ module.exports = throttle;
2678
2591
  /*!**********************************************************************************!*\
2679
2592
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js ***!
2680
2593
  \**********************************************************************************/
2681
- /***/ ((module) => {
2594
+ /***/ (function(module) {
2682
2595
 
2683
2596
  /**
2684
2597
  * This method returns the first argument it receives.
@@ -2709,7 +2622,7 @@ module.exports = identity;
2709
2622
  /*!**********************************************************************************!*\
2710
2623
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
2711
2624
  \**********************************************************************************/
2712
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2625
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2713
2626
 
2714
2627
  var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
2715
2628
 
@@ -2747,7 +2660,7 @@ module.exports = toString;
2747
2660
  /*!**********************************************************************************!*\
2748
2661
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js ***!
2749
2662
  \**********************************************************************************/
2750
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2663
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2751
2664
 
2752
2665
  var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");
2753
2666
 
@@ -2785,7 +2698,7 @@ module.exports = uniqueId;
2785
2698
  /*!*****************************************************************************************************!*\
2786
2699
  !*** ../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js ***!
2787
2700
  \*****************************************************************************************************/
2788
- /***/ ((module) => {
2701
+ /***/ (function(module) {
2789
2702
 
2790
2703
  /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
2791
2704
 
@@ -2929,12 +2842,12 @@ module.exports = function isEqual(a, b) {
2929
2842
  /*!********************************************************************!*\
2930
2843
  !*** ../../victory-core/es/victory-container/victory-container.js ***!
2931
2844
  \********************************************************************/
2932
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2845
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2933
2846
 
2934
2847
  "use strict";
2935
2848
  __webpack_require__.r(__webpack_exports__);
2936
2849
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2937
- /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
2850
+ /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; }
2938
2851
  /* harmony export */ });
2939
2852
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
2940
2853
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -2944,249 +2857,190 @@ __webpack_require__.r(__webpack_exports__);
2944
2857
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
2945
2858
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
2946
2859
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
2947
- /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
2948
- /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
2949
- /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
2950
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
2951
- /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
2952
-
2860
+ /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
2861
+ /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
2862
+ /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
2863
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
2864
+ /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
2953
2865
 
2954
2866
 
2955
2867
 
2956
2868
  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); }
2957
2869
 
2958
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2959
-
2960
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2961
-
2962
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2963
-
2964
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2965
-
2966
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2967
-
2968
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2969
2870
 
2970
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
2971
2871
 
2972
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2973
2872
 
2974
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2975
2873
 
2976
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
2977
2874
 
2978
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2979
-
2980
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2981
-
2982
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2983
-
2984
-
2985
-
2986
-
2987
-
2988
-
2989
-
2990
- var VictoryContainer = /*#__PURE__*/function (_React$Component) {
2991
- _inherits(VictoryContainer, _React$Component);
2992
-
2993
- var _super = _createSuper(VictoryContainer);
2875
+ class VictoryContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default().Component) {
2876
+ static displayName = "VictoryContainer";
2877
+ static role = "container";
2878
+ static defaultProps = {
2879
+ className: "VictoryContainer",
2880
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_4__.Portal, null),
2881
+ portalZIndex: 99,
2882
+ responsive: true,
2883
+ role: "img"
2884
+ };
2885
+ static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
2994
2886
 
2995
2887
  // @ts-expect-error Ref will be initialized on mount
2996
- // @ts-expect-error Ref will be initialized on mount
2997
- function VictoryContainer(props) {
2998
- var _this;
2999
2888
 
3000
- _classCallCheck(this, VictoryContainer);
2889
+ // @ts-expect-error Ref will be initialized on mount
3001
2890
 
3002
- _this = _super.call(this, props);
3003
- _this.containerId = void 0;
3004
- _this.portalRef = void 0;
3005
- _this.containerRef = void 0;
3006
- _this.shouldHandleWheel = void 0;
2891
+ constructor(props) {
2892
+ super(props);
2893
+ this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-") : props.containerId;
2894
+ this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
2895
+ }
2896
+ savePortalRef = portal => {
2897
+ this.portalRef = portal;
2898
+ return portal;
2899
+ };
2900
+ portalUpdate = (key, el) => this.portalRef.portalUpdate(key, el);
2901
+ portalRegister = () => this.portalRef.portalRegister();
2902
+ portalDeregister = key => this.portalRef.portalDeregister(key);
2903
+ saveContainerRef = container => {
2904
+ if (_victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(this.props.containerRef)) {
2905
+ this.props.containerRef(container);
2906
+ }
2907
+ this.containerRef = container;
2908
+ return container;
2909
+ };
2910
+ handleWheel = e => e.preventDefault();
2911
+ componentDidMount() {
2912
+ if (this.shouldHandleWheel && this.containerRef) {
2913
+ this.containerRef.addEventListener("wheel", this.handleWheel);
2914
+ }
2915
+ }
2916
+ componentWillUnmount() {
2917
+ if (this.shouldHandleWheel && this.containerRef) {
2918
+ this.containerRef.removeEventListener("wheel", this.handleWheel);
2919
+ }
2920
+ }
2921
+ getIdForElement(elementName) {
2922
+ return `${this.containerId}-${elementName}`;
2923
+ }
3007
2924
 
3008
- _this.savePortalRef = function (portal) {
3009
- _this.portalRef = portal;
3010
- return portal;
3011
- };
2925
+ // overridden in custom containers
2926
+ getChildren(props) {
2927
+ return props.children;
2928
+ }
3012
2929
 
3013
- _this.portalUpdate = function (key, el) {
3014
- return _this.portalRef.portalUpdate(key, el);
2930
+ // Get props defined by the Open UI Automation (OUIA) 1.0-RC spec
2931
+ // See https://ouia.readthedocs.io/en/latest/README.html#ouia-component
2932
+ getOUIAProps(props) {
2933
+ const {
2934
+ ouiaId,
2935
+ ouiaSafe,
2936
+ ouiaType
2937
+ } = props;
2938
+ return {
2939
+ ...(ouiaId && {
2940
+ "data-ouia-component-id": ouiaId
2941
+ }),
2942
+ ...(ouiaType && {
2943
+ "data-ouia-component-type": ouiaType
2944
+ }),
2945
+ ...(ouiaSafe !== undefined && {
2946
+ "data-ouia-safe": ouiaSafe
2947
+ })
3015
2948
  };
3016
-
3017
- _this.portalRegister = function () {
3018
- return _this.portalRef.portalRegister();
2949
+ }
2950
+ renderContainer(props, svgProps, style) {
2951
+ const {
2952
+ title,
2953
+ desc,
2954
+ portalComponent,
2955
+ className,
2956
+ width,
2957
+ height,
2958
+ portalZIndex,
2959
+ responsive
2960
+ } = props;
2961
+ const children = this.getChildren(props);
2962
+ const dimensions = responsive ? {
2963
+ width: "100%",
2964
+ height: "100%"
2965
+ } : {
2966
+ width,
2967
+ height
3019
2968
  };
3020
-
3021
- _this.portalDeregister = function (key) {
3022
- return _this.portalRef.portalDeregister(key);
2969
+ const divStyle = Object.assign({
2970
+ pointerEvents: "none",
2971
+ touchAction: "none",
2972
+ position: "relative"
2973
+ }, dimensions);
2974
+ const portalDivStyle = Object.assign({
2975
+ zIndex: portalZIndex,
2976
+ position: "absolute",
2977
+ top: 0,
2978
+ left: 0
2979
+ }, dimensions);
2980
+ const svgStyle = Object.assign({
2981
+ pointerEvents: "all"
2982
+ }, dimensions);
2983
+ const portalSvgStyle = Object.assign({
2984
+ overflow: "visible"
2985
+ }, dimensions);
2986
+ const portalProps = {
2987
+ width,
2988
+ height,
2989
+ viewBox: svgProps.viewBox,
2990
+ preserveAspectRatio: svgProps.preserveAspectRatio,
2991
+ style: portalSvgStyle
3023
2992
  };
3024
-
3025
- _this.saveContainerRef = function (container) {
3026
- if (_victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction(_this.props.containerRef)) {
3027
- _this.props.containerRef(container);
2993
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_7__.PortalContext.Provider, {
2994
+ value: {
2995
+ portalUpdate: this.portalUpdate,
2996
+ portalRegister: this.portalRegister,
2997
+ portalDeregister: this.portalDeregister
3028
2998
  }
3029
-
3030
- _this.containerRef = container;
3031
- return container;
3032
- };
3033
-
3034
- _this.handleWheel = function (e) {
3035
- return e.preventDefault();
3036
- };
3037
-
3038
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-") : props.containerId;
3039
- _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
3040
- return _this;
2999
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", _extends({
3000
+ style: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style, divStyle),
3001
+ className: className,
3002
+ ref: this.saveContainerRef
3003
+ }, this.getOUIAProps(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("svg", _extends({}, svgProps, {
3004
+ style: svgStyle
3005
+ }), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("title", {
3006
+ id: this.getIdForElement("title")
3007
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("desc", {
3008
+ id: this.getIdForElement("desc")
3009
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
3010
+ style: portalDivStyle
3011
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(portalComponent, {
3012
+ ...portalProps,
3013
+ ref: this.savePortalRef
3014
+ }))));
3041
3015
  }
3042
-
3043
- _createClass(VictoryContainer, [{
3044
- key: "componentDidMount",
3045
- value: function componentDidMount() {
3046
- if (this.shouldHandleWheel && this.containerRef) {
3047
- this.containerRef.addEventListener("wheel", this.handleWheel);
3048
- }
3049
- }
3050
- }, {
3051
- key: "componentWillUnmount",
3052
- value: function componentWillUnmount() {
3053
- if (this.shouldHandleWheel && this.containerRef) {
3054
- this.containerRef.removeEventListener("wheel", this.handleWheel);
3055
- }
3056
- }
3057
- }, {
3058
- key: "getIdForElement",
3059
- value: function getIdForElement(elementName) {
3060
- return "".concat(this.containerId, "-").concat(elementName);
3061
- } // overridden in custom containers
3062
-
3063
- }, {
3064
- key: "getChildren",
3065
- value: function getChildren(props) {
3066
- return props.children;
3067
- } // Get props defined by the Open UI Automation (OUIA) 1.0-RC spec
3068
- // See https://ouia.readthedocs.io/en/latest/README.html#ouia-component
3069
-
3070
- }, {
3071
- key: "getOUIAProps",
3072
- value: function getOUIAProps(props) {
3073
- var ouiaId = props.ouiaId,
3074
- ouiaSafe = props.ouiaSafe,
3075
- ouiaType = props.ouiaType;
3076
- return _objectSpread(_objectSpread(_objectSpread({}, ouiaId && {
3077
- "data-ouia-component-id": ouiaId
3078
- }), ouiaType && {
3079
- "data-ouia-component-type": ouiaType
3080
- }), ouiaSafe !== undefined && {
3081
- "data-ouia-safe": ouiaSafe
3082
- });
3083
- }
3084
- }, {
3085
- key: "renderContainer",
3086
- value: function renderContainer(props, svgProps, style) {
3087
- var title = props.title,
3088
- desc = props.desc,
3089
- portalComponent = props.portalComponent,
3090
- className = props.className,
3091
- width = props.width,
3092
- height = props.height,
3093
- portalZIndex = props.portalZIndex,
3094
- responsive = props.responsive;
3095
- var children = this.getChildren(props);
3096
- var dimensions = responsive ? {
3097
- width: "100%",
3098
- height: "100%"
3099
- } : {
3100
- width: width,
3101
- height: height
3102
- };
3103
- var divStyle = Object.assign({
3104
- pointerEvents: "none",
3105
- touchAction: "none",
3106
- position: "relative"
3107
- }, dimensions);
3108
- var portalDivStyle = Object.assign({
3109
- zIndex: portalZIndex,
3110
- position: "absolute",
3111
- top: 0,
3112
- left: 0
3113
- }, dimensions);
3114
- var svgStyle = Object.assign({
3115
- pointerEvents: "all"
3116
- }, dimensions);
3117
- var portalSvgStyle = Object.assign({
3118
- overflow: "visible"
3119
- }, dimensions);
3120
- var portalProps = {
3121
- width: width,
3122
- height: height,
3123
- viewBox: svgProps.viewBox,
3124
- preserveAspectRatio: svgProps.preserveAspectRatio,
3125
- style: portalSvgStyle
3126
- };
3127
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext.Provider, {
3128
- value: {
3129
- portalUpdate: this.portalUpdate,
3130
- portalRegister: this.portalRegister,
3131
- portalDeregister: this.portalDeregister
3132
- }
3133
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", _extends({
3134
- style: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style, divStyle),
3135
- className: className,
3136
- ref: this.saveContainerRef
3137
- }, this.getOUIAProps(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("svg", _extends({}, svgProps, {
3138
- style: svgStyle
3139
- }), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("title", {
3140
- id: this.getIdForElement("title")
3141
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("desc", {
3142
- id: this.getIdForElement("desc")
3143
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
3144
- style: portalDivStyle
3145
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(portalComponent, _objectSpread(_objectSpread({}, portalProps), {}, {
3146
- ref: this.savePortalRef
3147
- })))));
3148
- }
3149
- }, {
3150
- key: "render",
3151
- value: function render() {
3152
- var _this$props = this.props,
3153
- width = _this$props.width,
3154
- height = _this$props.height,
3155
- responsive = _this$props.responsive,
3156
- events = _this$props.events,
3157
- title = _this$props.title,
3158
- desc = _this$props.desc,
3159
- tabIndex = _this$props.tabIndex,
3160
- preserveAspectRatio = _this$props.preserveAspectRatio,
3161
- role = _this$props.role;
3162
- var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.omit(this.props.style, ["height", "width"]);
3163
- var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_6__.getSafeUserProps(this.props);
3164
- var svgProps = Object.assign(_objectSpread({
3165
- width: width,
3166
- height: height,
3167
- tabIndex: tabIndex,
3168
- role: role,
3169
- "aria-labelledby": [title && this.getIdForElement("title"), this.props["aria-labelledby"]].filter(Boolean).join(" ") || undefined,
3170
- "aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined,
3171
- viewBox: responsive ? "0 0 ".concat(width, " ").concat(height) : undefined,
3172
- preserveAspectRatio: responsive ? preserveAspectRatio : undefined
3173
- }, userProps), events);
3174
- return this.renderContainer(this.props, svgProps, style);
3175
- }
3176
- }]);
3177
-
3178
- return VictoryContainer;
3179
- }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
3180
- VictoryContainer.displayName = "VictoryContainer";
3181
- VictoryContainer.role = "container";
3182
- VictoryContainer.defaultProps = {
3183
- className: "VictoryContainer",
3184
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_7__.Portal, null),
3185
- portalZIndex: 99,
3186
- responsive: true,
3187
- role: "img"
3188
- };
3189
- VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_8__["default"];
3016
+ render() {
3017
+ const {
3018
+ width,
3019
+ height,
3020
+ responsive,
3021
+ events,
3022
+ title,
3023
+ desc,
3024
+ tabIndex,
3025
+ preserveAspectRatio,
3026
+ role
3027
+ } = this.props;
3028
+ const style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.omit(this.props.style, ["height", "width"]);
3029
+ const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
3030
+ const svgProps = Object.assign({
3031
+ width,
3032
+ height,
3033
+ tabIndex,
3034
+ role,
3035
+ "aria-labelledby": [title && this.getIdForElement("title"), this.props["aria-labelledby"]].filter(Boolean).join(" ") || undefined,
3036
+ "aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined,
3037
+ viewBox: responsive ? `0 0 ${width} ${height}` : undefined,
3038
+ preserveAspectRatio: responsive ? preserveAspectRatio : undefined,
3039
+ ...userProps
3040
+ }, events);
3041
+ return this.renderContainer(this.props, svgProps, style);
3042
+ }
3043
+ }
3190
3044
 
3191
3045
  /***/ }),
3192
3046
 
@@ -3194,22 +3048,21 @@ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MOD
3194
3048
  /*!**************************************************************!*\
3195
3049
  !*** ../../victory-core/es/victory-portal/portal-context.js ***!
3196
3050
  \**************************************************************/
3197
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3051
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3198
3052
 
3199
3053
  "use strict";
3200
3054
  __webpack_require__.r(__webpack_exports__);
3201
3055
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3202
- /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
3056
+ /* harmony export */ "PortalContext": function() { return /* binding */ PortalContext; }
3203
3057
  /* harmony export */ });
3204
3058
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3205
3059
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3206
3060
 
3207
-
3208
3061
  /**
3209
3062
  * The React context object consumers may use to access the context of the
3210
3063
  * portal.
3211
3064
  */
3212
- var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
3065
+ const PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
3213
3066
  PortalContext.displayName = "PortalContext";
3214
3067
 
3215
3068
  /***/ }),
@@ -3218,94 +3071,48 @@ PortalContext.displayName = "PortalContext";
3218
3071
  /*!******************************************************!*\
3219
3072
  !*** ../../victory-core/es/victory-portal/portal.js ***!
3220
3073
  \******************************************************/
3221
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3074
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3222
3075
 
3223
3076
  "use strict";
3224
3077
  __webpack_require__.r(__webpack_exports__);
3225
3078
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3226
- /* harmony export */ "Portal": () => (/* binding */ Portal)
3079
+ /* harmony export */ "Portal": function() { return /* binding */ Portal; }
3227
3080
  /* harmony export */ });
3228
3081
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3229
3082
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3230
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3231
-
3232
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3233
-
3234
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
3235
-
3236
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
3237
-
3238
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3239
-
3240
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3241
-
3242
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
3243
-
3244
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3245
-
3246
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3247
-
3248
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3249
-
3250
-
3251
- var Portal = /*#__PURE__*/function (_ref) {
3252
- _inherits(Portal, _ref);
3253
-
3254
- var _super = _createSuper(Portal);
3255
-
3256
- function Portal(props) {
3257
- var _this;
3258
-
3259
- _classCallCheck(this, Portal);
3260
-
3261
- _this = _super.call(this, props);
3262
- _this.map = void 0;
3263
- _this.index = void 0;
3264
-
3265
- _this.portalRegister = function () {
3266
- return ++_this.index;
3267
- };
3268
-
3269
- _this.portalUpdate = function (key, element) {
3270
- _this.map[key] = element;
3271
3083
 
3272
- _this.forceUpdate();
3273
- };
3274
-
3275
- _this.portalDeregister = function (key) {
3276
- delete _this.map[key];
3277
-
3278
- _this.forceUpdate();
3279
- };
3280
-
3281
- _this.map = {};
3282
- _this.index = 1;
3283
- return _this;
3084
+ class Portal extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
3085
+ static displayName = "Portal";
3086
+ constructor(props) {
3087
+ super(props);
3088
+ this.map = {};
3089
+ this.index = 1;
3090
+ }
3091
+ portalRegister = () => {
3092
+ return ++this.index;
3093
+ };
3094
+ portalUpdate = (key, element) => {
3095
+ this.map[key] = element;
3096
+ this.forceUpdate();
3097
+ };
3098
+ portalDeregister = key => {
3099
+ delete this.map[key];
3100
+ this.forceUpdate();
3101
+ };
3102
+ getChildren() {
3103
+ return Object.keys(this.map).map(key => {
3104
+ const el = this.map[key];
3105
+ return el ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(el, {
3106
+ key
3107
+ }) : el;
3108
+ });
3284
3109
  }
3285
3110
 
3286
- _createClass(Portal, [{
3287
- key: "getChildren",
3288
- value: function getChildren() {
3289
- var _this2 = this;
3290
-
3291
- return Object.keys(this.map).map(function (key) {
3292
- var el = _this2.map[key];
3293
- return el ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(el, {
3294
- key: key
3295
- }) : el;
3296
- });
3297
- } // Overridden in victory-core-native
3298
-
3299
- }, {
3300
- key: "render",
3301
- value: function render() {
3302
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", this.props, this.getChildren());
3303
- }
3304
- }]);
3305
-
3306
- return Portal;
3307
- }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
3308
- Portal.displayName = "Portal";
3111
+ // Overridden in victory-core-native
3112
+ render() {
3113
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", this.props, this.getChildren());
3114
+ }
3115
+ }
3309
3116
 
3310
3117
  /***/ }),
3311
3118
 
@@ -3313,50 +3120,36 @@ Portal.displayName = "Portal";
3313
3120
  /*!********************************************************!*\
3314
3121
  !*** ../../victory-core/es/victory-primitives/rect.js ***!
3315
3122
  \********************************************************/
3316
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3123
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3317
3124
 
3318
3125
  "use strict";
3319
3126
  __webpack_require__.r(__webpack_exports__);
3320
3127
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3321
- /* harmony export */ "Rect": () => (/* binding */ Rect)
3128
+ /* harmony export */ "Rect": function() { return /* binding */ Rect; }
3322
3129
  /* harmony export */ });
3323
3130
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3324
3131
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3325
3132
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
3326
- var _excluded = ["desc", "id", "tabIndex", "origin"];
3327
-
3328
3133
  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); }
3329
3134
 
3330
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3331
-
3332
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3333
-
3334
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3335
-
3336
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3337
-
3338
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3339
-
3340
-
3341
-
3342
- var Rect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
3343
- var _evaluateProp;
3344
3135
 
3136
+ const Rect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => {
3345
3137
  /* eslint-disable-next-line @typescript-eslint/no-unused-vars --
3346
3138
  * origin conflicts with the SVG element's origin attribute
3347
3139
  */
3348
- var desc = props.desc,
3349
- id = props.id,
3350
- tabIndex = props.tabIndex,
3351
- origin = props.origin,
3352
- rest = _objectWithoutProperties(props, _excluded);
3353
-
3354
- var svgProps = _objectSpread({
3140
+ const {
3141
+ desc,
3142
+ id,
3143
+ tabIndex,
3144
+ origin,
3145
+ ...rest
3146
+ } = props;
3147
+ const svgProps = {
3355
3148
  vectorEffect: "non-scaling-stroke",
3356
- id: (_evaluateProp = (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(id, props)) === null || _evaluateProp === void 0 ? void 0 : _evaluateProp.toString(),
3357
- tabIndex: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(tabIndex, props)
3358
- }, rest);
3359
-
3149
+ id: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(id, props)?.toString(),
3150
+ tabIndex: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(tabIndex, props),
3151
+ ...rest
3152
+ };
3360
3153
  return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({}, svgProps, {
3361
3154
  ref: ref
3362
3155
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({}, svgProps, {
@@ -3370,98 +3163,70 @@ var Rect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
3370
3163
  /*!********************************************************!*\
3371
3164
  !*** ../../victory-core/es/victory-util/collection.js ***!
3372
3165
  \********************************************************/
3373
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3166
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3374
3167
 
3375
3168
  "use strict";
3376
3169
  __webpack_require__.r(__webpack_exports__);
3377
3170
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3378
- /* harmony export */ "containsDates": () => (/* binding */ containsDates),
3379
- /* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
3380
- /* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
3381
- /* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
3382
- /* harmony export */ "difference": () => (/* binding */ difference),
3383
- /* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
3384
- /* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
3385
- /* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
3386
- /* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
3171
+ /* harmony export */ "containsDates": function() { return /* binding */ containsDates; },
3172
+ /* harmony export */ "containsNumbers": function() { return /* binding */ containsNumbers; },
3173
+ /* harmony export */ "containsOnlyStrings": function() { return /* binding */ containsOnlyStrings; },
3174
+ /* harmony export */ "containsStrings": function() { return /* binding */ containsStrings; },
3175
+ /* harmony export */ "difference": function() { return /* binding */ difference; },
3176
+ /* harmony export */ "getMaxValue": function() { return /* binding */ getMaxValue; },
3177
+ /* harmony export */ "getMinValue": function() { return /* binding */ getMinValue; },
3178
+ /* harmony export */ "isArrayOfArrays": function() { return /* binding */ isArrayOfArrays; },
3179
+ /* harmony export */ "removeUndefined": function() { return /* binding */ removeUndefined; }
3387
3180
  /* harmony export */ });
3388
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3389
-
3390
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3391
-
3392
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3393
-
3394
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3395
-
3396
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
3397
-
3398
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
3399
-
3400
3181
  function isNonEmptyArray(collection) {
3401
3182
  return Array.isArray(collection) && collection.length > 0;
3402
3183
  }
3403
-
3404
3184
  function containsStrings(collection) {
3405
- return Array.isArray(collection) && collection.some(function (value) {
3406
- return typeof value === "string";
3407
- });
3185
+ return Array.isArray(collection) && collection.some(value => typeof value === "string");
3408
3186
  }
3409
3187
  function containsDates(collection) {
3410
- return Array.isArray(collection) && collection.some(function (value) {
3411
- return value instanceof Date;
3412
- });
3188
+ return Array.isArray(collection) && collection.some(value => value instanceof Date);
3413
3189
  }
3414
3190
  function containsNumbers(collection) {
3415
- return Array.isArray(collection) && collection.some(function (value) {
3416
- return typeof value === "number";
3417
- });
3191
+ return Array.isArray(collection) && collection.some(value => typeof value === "number");
3418
3192
  }
3419
3193
  function containsOnlyStrings(collection) {
3420
- return isNonEmptyArray(collection) && collection.every(function (value) {
3421
- return typeof value === "string";
3422
- });
3194
+ return isNonEmptyArray(collection) && collection.every(value => typeof value === "string");
3423
3195
  }
3196
+
3424
3197
  /**
3425
3198
  * Creates an array of array values not included in the other given arrays
3426
3199
  * @param a The array to inspect
3427
3200
  * @param b The values to exclude
3428
3201
  * @returns The new array of filtered values
3429
3202
  */
3430
-
3431
3203
  function difference(a, b) {
3432
3204
  if (a && b) {
3433
- return a.filter(function (value) {
3434
- return !b.includes(value);
3435
- });
3205
+ return a.filter(value => !b.includes(value));
3436
3206
  }
3437
-
3438
3207
  return [];
3439
3208
  }
3440
3209
  function isArrayOfArrays(collection) {
3441
3210
  return isNonEmptyArray(collection) && collection.every(Array.isArray);
3442
3211
  }
3443
3212
  function removeUndefined(arr) {
3444
- return arr.filter(function (el) {
3445
- return el !== undefined;
3446
- });
3213
+ return arr.filter(el => el !== undefined);
3447
3214
  }
3448
3215
  function getMaxValue(arr) {
3449
3216
  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3450
3217
  values[_key - 1] = arguments[_key];
3451
3218
  }
3452
-
3453
- var array = arr.concat(values);
3454
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
3455
- : Math.max.apply(Math, _toConsumableArray(array));
3219
+ const array = arr.concat(values);
3220
+ return containsDates(array) ? new Date(Math.max(...array)) // Dates will be coerced to numbers
3221
+ : Math.max(...array);
3456
3222
  }
3457
3223
  function getMinValue(arr) {
3458
3224
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3459
3225
  values[_key2 - 1] = arguments[_key2];
3460
3226
  }
3461
-
3462
- var array = arr.concat(values);
3463
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
3464
- : Math.min.apply(Math, _toConsumableArray(array));
3227
+ const array = arr.concat(values);
3228
+ return containsDates(array) ? new Date(Math.min(...array)) // Dates will be coerced to numbers
3229
+ : Math.min(...array);
3465
3230
  }
3466
3231
 
3467
3232
  /***/ }),
@@ -3470,35 +3235,35 @@ function getMinValue(arr) {
3470
3235
  /*!*****************************************************!*\
3471
3236
  !*** ../../victory-core/es/victory-util/helpers.js ***!
3472
3237
  \*****************************************************/
3473
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3238
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3474
3239
 
3475
3240
  "use strict";
3476
3241
  __webpack_require__.r(__webpack_exports__);
3477
3242
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3478
- /* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
3479
- /* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
3480
- /* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
3481
- /* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
3482
- /* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
3483
- /* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
3484
- /* harmony export */ "getPadding": () => (/* binding */ getPadding),
3485
- /* harmony export */ "getPoint": () => (/* binding */ getPoint),
3486
- /* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
3487
- /* harmony export */ "getRadius": () => (/* binding */ getRadius),
3488
- /* harmony export */ "getRange": () => (/* binding */ getRange),
3489
- /* harmony export */ "getStyles": () => (/* binding */ getStyles),
3490
- /* harmony export */ "invert": () => (/* binding */ invert),
3491
- /* harmony export */ "isFunction": () => (/* binding */ isFunction),
3492
- /* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
3493
- /* harmony export */ "isNil": () => (/* binding */ isNil),
3494
- /* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
3495
- /* harmony export */ "mapValues": () => (/* binding */ mapValues),
3496
- /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
3497
- /* harmony export */ "omit": () => (/* binding */ omit),
3498
- /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
3499
- /* harmony export */ "range": () => (/* binding */ range),
3500
- /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
3501
- /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
3243
+ /* harmony export */ "createAccessor": function() { return /* binding */ createAccessor; },
3244
+ /* harmony export */ "degreesToRadians": function() { return /* binding */ degreesToRadians; },
3245
+ /* harmony export */ "evaluateProp": function() { return /* binding */ evaluateProp; },
3246
+ /* harmony export */ "evaluateStyle": function() { return /* binding */ evaluateStyle; },
3247
+ /* harmony export */ "getCurrentAxis": function() { return /* binding */ getCurrentAxis; },
3248
+ /* harmony export */ "getDefaultStyles": function() { return /* binding */ getDefaultStyles; },
3249
+ /* harmony export */ "getPadding": function() { return /* binding */ getPadding; },
3250
+ /* harmony export */ "getPoint": function() { return /* binding */ getPoint; },
3251
+ /* harmony export */ "getPolarOrigin": function() { return /* binding */ getPolarOrigin; },
3252
+ /* harmony export */ "getRadius": function() { return /* binding */ getRadius; },
3253
+ /* harmony export */ "getRange": function() { return /* binding */ getRange; },
3254
+ /* harmony export */ "getStyles": function() { return /* binding */ getStyles; },
3255
+ /* harmony export */ "invert": function() { return /* binding */ invert; },
3256
+ /* harmony export */ "isFunction": function() { return /* binding */ isFunction; },
3257
+ /* harmony export */ "isHorizontal": function() { return /* binding */ isHorizontal; },
3258
+ /* harmony export */ "isNil": function() { return /* binding */ isNil; },
3259
+ /* harmony export */ "isTooltip": function() { return /* binding */ isTooltip; },
3260
+ /* harmony export */ "mapValues": function() { return /* binding */ mapValues; },
3261
+ /* harmony export */ "modifyProps": function() { return /* binding */ modifyProps; },
3262
+ /* harmony export */ "omit": function() { return /* binding */ omit; },
3263
+ /* harmony export */ "radiansToDegrees": function() { return /* binding */ radiansToDegrees; },
3264
+ /* harmony export */ "range": function() { return /* binding */ range; },
3265
+ /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
3266
+ /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
3502
3267
  /* harmony export */ });
3503
3268
  /* 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");
3504
3269
  /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
@@ -3511,45 +3276,41 @@ __webpack_require__.r(__webpack_exports__);
3511
3276
 
3512
3277
 
3513
3278
 
3514
-
3515
3279
  /* eslint-disable no-use-before-define */
3516
3280
 
3517
-
3518
3281
  // Private Functions
3282
+
3519
3283
  function getCartesianRange(props, axis) {
3520
3284
  // determine how to lay the axis and what direction positive and negative are
3521
- var vertical = axis !== "x";
3522
- var padding = getPadding(props);
3523
-
3285
+ const vertical = axis !== "x";
3286
+ const padding = getPadding(props);
3524
3287
  if (vertical) {
3525
3288
  return [props.height - padding.bottom, padding.top];
3526
3289
  }
3527
-
3528
3290
  return [padding.left, props.width - padding.right];
3529
3291
  }
3530
-
3531
3292
  function getPolarRange(props, axis) {
3532
3293
  if (axis === "x") {
3533
- var startAngle = degreesToRadians(props.startAngle || 0);
3534
- var endAngle = degreesToRadians(props.endAngle || 360);
3294
+ const startAngle = degreesToRadians(props.startAngle || 0);
3295
+ const endAngle = degreesToRadians(props.endAngle || 360);
3535
3296
  return [startAngle, endAngle];
3536
3297
  }
3537
-
3538
3298
  return [props.innerRadius || 0, getRadius(props)];
3539
- } // Exported Functions
3299
+ }
3300
+
3301
+ // Exported Functions
3540
3302
 
3541
3303
  /**
3542
3304
  * Creates an object composed of the inverted keys and values of object.
3543
3305
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
3544
3306
  */
3545
-
3546
-
3547
3307
  function invert(original) {
3548
- return Object.entries(original).reduce(function (acc, current) {
3308
+ return Object.entries(original).reduce((acc, current) => {
3549
3309
  acc[current[1]] = current[0];
3550
3310
  return acc;
3551
3311
  }, {});
3552
3312
  }
3313
+
3553
3314
  /**
3554
3315
  * creates an object with some keys excluded
3555
3316
  * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
@@ -3557,43 +3318,39 @@ function invert(original) {
3557
3318
  * @param {Array<String>} ks: an array of keys to omit from the new object
3558
3319
  * @returns {Object} new object with same properties as originalObject
3559
3320
  */
3560
-
3561
- function omit(originalObject) {
3562
- var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3321
+ function omit(originalObject, ks) {
3322
+ if (ks === void 0) {
3323
+ ks = [];
3324
+ }
3563
3325
  // code based on babel's _objectWithoutProperties
3564
- var newObject = {};
3565
-
3566
- for (var key in originalObject) {
3326
+ const newObject = {};
3327
+ for (const key in originalObject) {
3567
3328
  // @ts-expect-error String is not assignable to Key
3568
3329
  if (ks.indexOf(key) >= 0) {
3569
3330
  continue;
3570
3331
  }
3571
-
3572
3332
  if (!Object.prototype.hasOwnProperty.call(originalObject, key)) {
3573
3333
  continue;
3574
3334
  }
3575
-
3576
3335
  newObject[key] = originalObject[key];
3577
3336
  }
3578
-
3579
3337
  return newObject;
3580
3338
  }
3581
3339
  function getPoint(datum) {
3582
- var exists = function (val) {
3583
- return val !== undefined;
3584
- };
3585
-
3586
- var _x = datum._x,
3587
- _x1 = datum._x1,
3588
- _x0 = datum._x0,
3589
- _voronoiX = datum._voronoiX,
3590
- _y = datum._y,
3591
- _y1 = datum._y1,
3592
- _y0 = datum._y0,
3593
- _voronoiY = datum._voronoiY;
3594
- var defaultX = exists(_x1) ? _x1 : _x;
3595
- var defaultY = exists(_y1) ? _y1 : _y;
3596
- var point = {
3340
+ const exists = val => val !== undefined;
3341
+ const {
3342
+ _x,
3343
+ _x1,
3344
+ _x0,
3345
+ _voronoiX,
3346
+ _y,
3347
+ _y1,
3348
+ _y0,
3349
+ _voronoiY
3350
+ } = datum;
3351
+ const defaultX = exists(_x1) ? _x1 : _x;
3352
+ const defaultY = exists(_y1) ? _y1 : _y;
3353
+ const point = {
3597
3354
  x: exists(_voronoiX) ? _voronoiX : defaultX,
3598
3355
  x0: exists(_x0) ? _x0 : _x,
3599
3356
  y: exists(_voronoiY) ? _voronoiY : defaultY,
@@ -3602,18 +3359,20 @@ function getPoint(datum) {
3602
3359
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
3603
3360
  }
3604
3361
  function scalePoint(props, datum) {
3605
- var scale = props.scale,
3606
- polar = props.polar,
3607
- horizontal = props.horizontal;
3608
- var d = getPoint(datum);
3609
- var origin = props.origin || {
3362
+ const {
3363
+ scale,
3364
+ polar,
3365
+ horizontal
3366
+ } = props;
3367
+ const d = getPoint(datum);
3368
+ const origin = props.origin || {
3610
3369
  x: 0,
3611
3370
  y: 0
3612
3371
  };
3613
- var x = horizontal ? scale.y(d.y) : scale.x(d.x);
3614
- var x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0);
3615
- var y = horizontal ? scale.x(d.x) : scale.y(d.y);
3616
- var y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0);
3372
+ const x = horizontal ? scale.y(d.y) : scale.x(d.x);
3373
+ const x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0);
3374
+ const y = horizontal ? scale.x(d.x) : scale.y(d.y);
3375
+ const y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0);
3617
3376
  return {
3618
3377
  x: polar ? y * Math.cos(x) + origin.x : x,
3619
3378
  x0: polar ? y0 * Math.cos(x0) + origin.x : x0,
@@ -3621,11 +3380,13 @@ function scalePoint(props, datum) {
3621
3380
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
3622
3381
  };
3623
3382
  }
3624
- function getPadding(props) {
3625
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "padding";
3626
- var padding = props[name];
3627
- var paddingVal = typeof padding === "number" ? padding : 0;
3628
- var paddingObj = typeof padding === "object" ? padding : {};
3383
+ function getPadding(props, name) {
3384
+ if (name === void 0) {
3385
+ name = "padding";
3386
+ }
3387
+ const padding = props[name];
3388
+ const paddingVal = typeof padding === "number" ? padding : 0;
3389
+ const paddingObj = typeof padding === "object" ? padding : {};
3629
3390
  return {
3630
3391
  top: paddingObj.top || paddingVal,
3631
3392
  bottom: paddingObj.bottom || paddingVal,
@@ -3634,50 +3395,47 @@ function getPadding(props) {
3634
3395
  };
3635
3396
  }
3636
3397
  function isTooltip(component) {
3637
- var labelRole = component && component.type && component.type.role;
3398
+ const labelRole = component && component.type && component.type.role;
3638
3399
  return labelRole === "tooltip";
3639
3400
  }
3640
3401
  function getDefaultStyles(props, role) {
3641
- var _props$theme = props.theme,
3642
- theme = _props$theme === void 0 ? {} : _props$theme,
3643
- labelComponent = props.labelComponent;
3644
- var defaultStyles = theme[role] && theme[role].style || {};
3645
-
3402
+ const {
3403
+ theme = {},
3404
+ labelComponent
3405
+ } = props;
3406
+ const defaultStyles = theme[role] && theme[role].style || {};
3646
3407
  if (!isTooltip(labelComponent)) {
3647
3408
  return defaultStyles;
3648
3409
  }
3649
-
3650
- var tooltipStyle = theme.tooltip && theme.tooltip.style || {};
3651
-
3652
- var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
3653
-
3410
+ const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
3411
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
3654
3412
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
3655
3413
  labels: labelStyle
3656
3414
  }, defaultStyles);
3657
3415
  }
3658
3416
  function getStyles(style, defaultStyles) {
3659
- var width = "100%";
3660
- var height = "100%";
3661
-
3417
+ const width = "100%";
3418
+ const height = "100%";
3662
3419
  if (!style) {
3663
3420
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
3664
3421
  parent: {
3665
- height: height,
3666
- width: width
3422
+ height,
3423
+ width
3667
3424
  }
3668
3425
  }, defaultStyles);
3669
3426
  }
3670
-
3671
- var data = style.data,
3672
- labels = style.labels,
3673
- parent = style.parent;
3674
- var defaultParent = defaultStyles && defaultStyles.parent || {};
3675
- var defaultLabels = defaultStyles && defaultStyles.labels || {};
3676
- var defaultData = defaultStyles && defaultStyles.data || {};
3427
+ const {
3428
+ data,
3429
+ labels,
3430
+ parent
3431
+ } = style;
3432
+ const defaultParent = defaultStyles && defaultStyles.parent || {};
3433
+ const defaultLabels = defaultStyles && defaultStyles.labels || {};
3434
+ const defaultData = defaultStyles && defaultStyles.data || {};
3677
3435
  return {
3678
3436
  parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
3679
- width: width,
3680
- height: height
3437
+ width,
3438
+ height
3681
3439
  }),
3682
3440
  labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
3683
3441
  data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
@@ -3690,14 +3448,10 @@ function evaluateStyle(style, props) {
3690
3448
  if (props.disableInlineStyles) {
3691
3449
  return {};
3692
3450
  }
3693
-
3694
- if (!style || !Object.keys(style).some(function (value) {
3695
- return isFunction(style[value]);
3696
- })) {
3451
+ if (!style || !Object.keys(style).some(value => isFunction(style[value]))) {
3697
3452
  return style;
3698
3453
  }
3699
-
3700
- return Object.keys(style).reduce(function (prev, curr) {
3454
+ return Object.keys(style).reduce((prev, curr) => {
3701
3455
  prev[curr] = evaluateProp(style[curr], props);
3702
3456
  return prev;
3703
3457
  }, {});
@@ -3709,29 +3463,32 @@ function radiansToDegrees(radians) {
3709
3463
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
3710
3464
  }
3711
3465
  function getRadius(props) {
3712
- var _getPadding = getPadding(props),
3713
- left = _getPadding.left,
3714
- right = _getPadding.right,
3715
- top = _getPadding.top,
3716
- bottom = _getPadding.bottom;
3717
-
3718
- var width = props.width,
3719
- height = props.height;
3466
+ const {
3467
+ left,
3468
+ right,
3469
+ top,
3470
+ bottom
3471
+ } = getPadding(props);
3472
+ const {
3473
+ width,
3474
+ height
3475
+ } = props;
3720
3476
  return Math.min(width - left - right, height - top - bottom) / 2;
3721
3477
  }
3722
3478
  function getPolarOrigin(props) {
3723
- var width = props.width,
3724
- height = props.height;
3725
-
3726
- var _getPadding2 = getPadding(props),
3727
- top = _getPadding2.top,
3728
- bottom = _getPadding2.bottom,
3729
- left = _getPadding2.left,
3730
- right = _getPadding2.right;
3731
-
3732
- var radius = Math.min(width - left - right, height - top - bottom) / 2;
3733
- var offsetWidth = width / 2 + left - right;
3734
- var offsetHeight = height / 2 + top - bottom;
3479
+ const {
3480
+ width,
3481
+ height
3482
+ } = props;
3483
+ const {
3484
+ top,
3485
+ bottom,
3486
+ left,
3487
+ right
3488
+ } = getPadding(props);
3489
+ const radius = Math.min(width - left - right, height - top - bottom) / 2;
3490
+ const offsetWidth = width / 2 + left - right;
3491
+ const offsetHeight = height / 2 + top - bottom;
3735
3492
  return {
3736
3493
  x: offsetWidth + radius > width ? radius + left - right : offsetWidth,
3737
3494
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
@@ -3743,18 +3500,18 @@ function getRange(props, axis) {
3743
3500
  } else if (props.range && Array.isArray(props.range)) {
3744
3501
  return props.range;
3745
3502
  }
3746
-
3747
3503
  return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
3748
3504
  }
3505
+
3749
3506
  /**
3750
3507
  * Checks if `value` is `null` or `undefined`.
3751
3508
  * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
3752
3509
  */
3753
-
3754
3510
  function isNil(value) {
3755
3511
  // eslint-disable-next-line eqeqeq
3756
3512
  return value == null;
3757
3513
  }
3514
+
3758
3515
  /**
3759
3516
  * Checks if `value` is classified as a `Function` object.
3760
3517
  *
@@ -3762,7 +3519,6 @@ function isNil(value) {
3762
3519
  * @param {*} value The value to check.
3763
3520
  * @returns {boolean} Returns `true` if `value` is a function, else `false`.
3764
3521
  */
3765
-
3766
3522
  function isFunction(value) {
3767
3523
  return typeof value === "function";
3768
3524
  }
@@ -3773,47 +3529,45 @@ function createAccessor(key) {
3773
3529
  return key;
3774
3530
  } else if (key === null || key === undefined) {
3775
3531
  // null/undefined means "return the data item itself"
3776
- return function (x) {
3777
- return x;
3778
- };
3779
- } // otherwise, assume it is an array index, property key or path (_.property handles all three)
3780
-
3781
-
3532
+ return x => x;
3533
+ }
3534
+ // otherwise, assume it is an array index, property key or path (_.property handles all three)
3782
3535
  return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
3783
3536
  }
3784
3537
  function modifyProps(props, fallbackProps, role) {
3785
- var theme = props.theme && props.theme[role] ? props.theme[role] : {};
3786
- var themeProps = omit(theme, ["style"]);
3787
- var horizontal = isHorizontal(props);
3788
- var defaultObject = horizontal === undefined ? {} : {
3789
- horizontal: horizontal
3538
+ const theme = props.theme && props.theme[role] ? props.theme[role] : {};
3539
+ const themeProps = omit(theme, ["style"]);
3540
+ const horizontal = isHorizontal(props);
3541
+ const defaultObject = horizontal === undefined ? {} : {
3542
+ horizontal
3790
3543
  };
3791
3544
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
3792
3545
  }
3546
+
3793
3547
  /**
3794
3548
  * Returns the given axis or the opposite axis when horizontal
3795
3549
  * @param {string} axis: the given axis, either "x" pr "y"
3796
3550
  * @param {Boolean} horizontal: true when the chart is flipped to the horizontal orientation
3797
3551
  * @returns {String} the dimension appropriate for the axis given its props "x" or "y"
3798
3552
  */
3799
-
3800
3553
  function getCurrentAxis(axis, horizontal) {
3801
- var otherAxis = axis === "x" ? "y" : "x";
3554
+ const otherAxis = axis === "x" ? "y" : "x";
3802
3555
  return horizontal ? otherAxis : axis;
3803
3556
  }
3557
+
3804
3558
  /**
3805
3559
  * Creates an object with the same keys as object and values generated by running
3806
3560
  * each own enumerable string keyed property of object through the function fn
3807
3561
  */
3808
-
3809
3562
  function mapValues(values, fn) {
3810
3563
  if (values) {
3811
- return Object.keys(values).reduce(function (acc, key) {
3564
+ return Object.keys(values).reduce((acc, key) => {
3812
3565
  acc[key] = fn(values[key]);
3813
3566
  return acc;
3814
3567
  }, {});
3815
3568
  }
3816
3569
  }
3570
+
3817
3571
  /**
3818
3572
  * Creates an array of numbers (positive and/or negative) progressing
3819
3573
  * from start up to, but not including, end.
@@ -3824,28 +3578,25 @@ function mapValues(values, fn) {
3824
3578
  * @param end [The end value] If this is defined, start is the start value
3825
3579
  * @returns An array of the given length
3826
3580
  */
3827
-
3828
3581
  function range(start, end, increment) {
3829
3582
  // when the end index is not given, start from 0
3830
- var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
3583
+ const startIndex = end ? start : 0;
3831
3584
 
3832
- var endIndex = end ? end : start; // ensure endIndex is not a falsy value
3585
+ // when the end index is not given, the end of the range is the start index
3586
+ let endIndex = end ? end : start;
3833
3587
 
3588
+ // ensure endIndex is not a falsy value
3834
3589
  if (!endIndex) endIndex = 0;
3835
- var k = endIndex - startIndex; // the value range
3590
+ const k = endIndex - startIndex; // the value range
3591
+ const length = Math.abs(k); // the length of the range
3592
+ const sign = k / length || 1; // the sign of the range (negative or positive)
3593
+ const inc = increment || 1; // the step size of each increment
3836
3594
 
3837
- var length = Math.abs(k); // the length of the range
3838
-
3839
- var sign = k / length || 1; // the sign of the range (negative or positive)
3840
-
3841
- var inc = increment || 1; // the step size of each increment
3842
3595
  // normalize the array length when dealing with floating point values
3843
-
3844
- var arrayLength = Math.max(Math.ceil(length / inc), 0);
3845
- return Array.from(Array(arrayLength), function (_, i) {
3846
- return startIndex + i * sign * inc;
3847
- });
3596
+ const arrayLength = Math.max(Math.ceil(length / inc), 0);
3597
+ return Array.from(Array(arrayLength), (_, i) => startIndex + i * sign * inc);
3848
3598
  }
3599
+
3849
3600
  /**
3850
3601
  * @param {Array} children: an array of child components
3851
3602
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
@@ -3855,79 +3606,68 @@ function range(start, end, increment) {
3855
3606
  * to the memo for the next iteration step
3856
3607
  * @returns {Array} returns an array of results from calling the iteratee on all nested children
3857
3608
  */
3858
-
3859
3609
  /* eslint-disable max-params */
3860
-
3861
- function reduceChildren(children, iteratee) {
3862
- var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
3863
- var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
3864
- var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
3865
- return (// @ts-expect-error These defaults are hard to type
3866
- memo.concat(item)
3867
- );
3868
- };
3869
- var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
3870
-
3871
- var traverseChildren = function (childArray, names, parent) {
3872
- return childArray.reduce(function (memo, child, index) {
3873
- var newMemo = memo;
3874
- var childRole = child.type && child.type.role;
3875
- var childName = child.props.name || "".concat(childRole, "-").concat(names[index]);
3876
-
3610
+ function reduceChildren(children, iteratee, parentProps,
3611
+ // @ts-expect-error These defaults are hard to type
3612
+ initialMemo, combine) {
3613
+ if (parentProps === void 0) {
3614
+ parentProps = {};
3615
+ }
3616
+ if (initialMemo === void 0) {
3617
+ initialMemo = [];
3618
+ }
3619
+ if (combine === void 0) {
3620
+ combine = (memo, item) =>
3621
+ // @ts-expect-error These defaults are hard to type
3622
+ memo.concat(item);
3623
+ }
3624
+ const sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
3625
+ const traverseChildren = (childArray, names, parent) => {
3626
+ return childArray.reduce((memo, child, index) => {
3627
+ let newMemo = memo;
3628
+ const childRole = child.type && child.type.role;
3629
+ const childName = child.props.name || `${childRole}-${names[index]}`;
3877
3630
  if (child.props && child.props.children) {
3878
- var childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
3879
- var 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(function (c) {
3880
- var nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
3631
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
3632
+ 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 => {
3633
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
3881
3634
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
3882
3635
  });
3883
-
3884
- var _childNames = nestedChildren.map(function (c, i) {
3885
- return "".concat(childName, "-").concat(i);
3886
- });
3887
-
3888
- var nestedResults = traverseChildren(nestedChildren, _childNames, child);
3636
+ const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
3637
+ const nestedResults = traverseChildren(nestedChildren, childNames, child);
3889
3638
  newMemo = combine(newMemo, nestedResults);
3890
3639
  } else {
3891
- var result = iteratee(child, childName, parent);
3892
-
3640
+ const result = iteratee(child, childName, parent);
3893
3641
  if (result) {
3894
3642
  newMemo = combine(newMemo, result);
3895
3643
  }
3896
3644
  }
3897
-
3898
3645
  return newMemo;
3899
3646
  }, initialMemo);
3900
3647
  };
3901
-
3902
- var validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
3903
- var childNames = validChildren.map(function (c, i) {
3904
- return i;
3905
- });
3648
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
3649
+ const childNames = validChildren.map((c, i) => i);
3906
3650
  return traverseChildren(validChildren, childNames);
3907
3651
  }
3652
+
3908
3653
  /**
3909
3654
  * @param {Object} props: the props object
3910
3655
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
3911
3656
  * children or nested children are horizontal
3912
3657
  */
3913
-
3914
3658
  function isHorizontal(props) {
3915
3659
  if (props.horizontal !== undefined || !props.children) {
3916
3660
  return props.horizontal;
3917
3661
  }
3918
-
3919
- var traverseChildren = function (childArray) {
3920
- return childArray.reduce(function (memo, child) {
3921
- var childProps = child.props || {};
3922
-
3662
+ const traverseChildren = childArray => {
3663
+ return childArray.reduce((memo, child) => {
3664
+ const childProps = child.props || {};
3923
3665
  if (memo || childProps.horizontal || !childProps.children) {
3924
3666
  return memo || childProps.horizontal;
3925
3667
  }
3926
-
3927
3668
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
3928
3669
  }, false);
3929
3670
  };
3930
-
3931
3671
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
3932
3672
  }
3933
3673
 
@@ -3937,56 +3677,53 @@ function isHorizontal(props) {
3937
3677
  /*!*******************************************************!*\
3938
3678
  !*** ../../victory-core/es/victory-util/selection.js ***!
3939
3679
  \*******************************************************/
3940
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3680
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3941
3681
 
3942
3682
  "use strict";
3943
3683
  __webpack_require__.r(__webpack_exports__);
3944
3684
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3945
- /* harmony export */ "getBounds": () => (/* binding */ getBounds),
3946
- /* harmony export */ "getDataCoordinates": () => (/* binding */ getDataCoordinates),
3947
- /* harmony export */ "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
3948
- /* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
3949
- /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
3685
+ /* harmony export */ "getBounds": function() { return /* binding */ getBounds; },
3686
+ /* harmony export */ "getDataCoordinates": function() { return /* binding */ getDataCoordinates; },
3687
+ /* harmony export */ "getDomainCoordinates": function() { return /* binding */ getDomainCoordinates; },
3688
+ /* harmony export */ "getParentSVG": function() { return /* binding */ getParentSVG; },
3689
+ /* harmony export */ "getSVGEventCoordinates": function() { return /* binding */ getSVGEventCoordinates; }
3950
3690
  /* harmony export */ });
3951
3691
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
3952
3692
 
3953
-
3954
3693
  // Private Functions
3694
+
3955
3695
  function transformTarget(target, matrix, dimension) {
3956
- var a = matrix.a,
3957
- d = matrix.d,
3958
- e = matrix.e,
3959
- f = matrix.f;
3696
+ const {
3697
+ a,
3698
+ d,
3699
+ e,
3700
+ f
3701
+ } = matrix;
3960
3702
  return dimension === "y" ? d * target + f : a * target + e;
3961
3703
  }
3962
-
3963
3704
  function getTransformationMatrix(svg) {
3964
3705
  return svg.getScreenCTM().inverse();
3965
3706
  }
3966
-
3967
3707
  function isNativeTouchEvent(nativeEvent) {
3968
3708
  return !!(nativeEvent && nativeEvent.identifier !== undefined);
3969
3709
  }
3970
-
3971
3710
  function isReactTouchEvent(evt) {
3972
3711
  return evt.changedTouches && evt.changedTouches.length > 0;
3973
- } // Exported Functions
3712
+ }
3974
3713
 
3714
+ // Exported Functions
3975
3715
 
3976
3716
  function getParentSVG(evt) {
3977
3717
  if (isNativeTouchEvent(evt.nativeEvent)) {
3978
3718
  // @ts-expect-error Seems like a superfluous check.
3979
3719
  return undefined;
3980
3720
  }
3981
-
3982
- var getParent = function (target) {
3721
+ const getParent = target => {
3983
3722
  if (target.nodeName === "svg") {
3984
3723
  return target;
3985
3724
  }
3986
-
3987
3725
  return target.parentNode ? getParent(target.parentNode) : target;
3988
3726
  };
3989
-
3990
3727
  return getParent(evt.target);
3991
3728
  }
3992
3729
  function getSVGEventCoordinates(evt, svg) {
@@ -3998,19 +3735,20 @@ function getSVGEventCoordinates(evt, svg) {
3998
3735
  y: evt.nativeEvent.locationY
3999
3736
  };
4000
3737
  }
4001
-
4002
- var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
4003
- var matrix = getTransformationMatrix(svg || getParentSVG(location));
3738
+ const location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
3739
+ const matrix = getTransformationMatrix(svg || getParentSVG(location));
4004
3740
  return {
4005
3741
  x: transformTarget(location.clientX, matrix, "x"),
4006
3742
  y: transformTarget(location.clientY, matrix, "y")
4007
3743
  };
4008
3744
  }
4009
3745
  function getDomainCoordinates(props, domain) {
4010
- var horizontal = props.horizontal;
4011
- var scale = props.scale; // FIXME: add support for DomainTuple: [number, number]
4012
-
4013
- var domainObj = domain || {
3746
+ const {
3747
+ horizontal
3748
+ } = props;
3749
+ const scale = props.scale;
3750
+ // FIXME: add support for DomainTuple: [number, number]
3751
+ const domainObj = domain || {
4014
3752
  x: scale.x.domain(),
4015
3753
  y: scale.y.domain()
4016
3754
  };
@@ -4018,45 +3756,46 @@ function getDomainCoordinates(props, domain) {
4018
3756
  x: horizontal ? [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])] : [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])],
4019
3757
  y: horizontal ? [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])] : [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])]
4020
3758
  };
4021
- } // eslint-disable-next-line max-params
3759
+ }
4022
3760
 
3761
+ // eslint-disable-next-line max-params
4023
3762
  function getDataCoordinates(props, scale, x, y) {
4024
- var polar = props.polar,
4025
- horizontal = props.horizontal;
4026
-
3763
+ const {
3764
+ polar,
3765
+ horizontal
3766
+ } = props;
4027
3767
  if (!polar) {
4028
3768
  return {
4029
3769
  x: horizontal ? scale.x.invert(y) : scale.x.invert(x),
4030
3770
  y: horizontal ? scale.y.invert(x) : scale.y.invert(y)
4031
3771
  };
4032
3772
  }
4033
-
4034
- var origin = props.origin || {
3773
+ const origin = props.origin || {
4035
3774
  x: 0,
4036
3775
  y: 0
4037
3776
  };
4038
- var baseX = x - origin.x;
4039
- var baseY = y - origin.y;
4040
- var radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2)));
4041
- var angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2);
3777
+ const baseX = x - origin.x;
3778
+ const baseY = y - origin.y;
3779
+ const radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2)));
3780
+ const angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2);
4042
3781
  return {
4043
3782
  x: scale.x.invert(angle),
4044
3783
  y: scale.y.invert(radius)
4045
3784
  };
4046
3785
  }
4047
3786
  function getBounds(props) {
4048
- var x1 = props.x1,
4049
- x2 = props.x2,
4050
- y1 = props.y1,
4051
- y2 = props.y2,
4052
- scale = props.scale;
4053
- var point1 = getDataCoordinates(props, scale, x1, y1);
4054
- var point2 = getDataCoordinates(props, scale, x2, y2);
4055
-
4056
- var makeBound = function (a, b) {
3787
+ const {
3788
+ x1,
3789
+ x2,
3790
+ y1,
3791
+ y2,
3792
+ scale
3793
+ } = props;
3794
+ const point1 = getDataCoordinates(props, scale, x1, y1);
3795
+ const point2 = getDataCoordinates(props, scale, x2, y2);
3796
+ const makeBound = (a, b) => {
4057
3797
  return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
4058
3798
  };
4059
-
4060
3799
  return {
4061
3800
  x: makeBound(point1.x, point2.x),
4062
3801
  y: makeBound(point1.y, point2.y)
@@ -4069,29 +3808,26 @@ function getBounds(props) {
4069
3808
  /*!***********************************************************!*\
4070
3809
  !*** ../../victory-core/es/victory-util/timer-context.js ***!
4071
3810
  \***********************************************************/
4072
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3811
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4073
3812
 
4074
3813
  "use strict";
4075
3814
  __webpack_require__.r(__webpack_exports__);
4076
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4077
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4078
- /* harmony export */ });
4079
3815
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4080
3816
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4081
3817
  /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timer */ "../../victory-core/es/victory-util/timer.js");
4082
3818
 
4083
3819
 
3820
+
4084
3821
  /**
4085
3822
  * The React context object consumers may use to access or override the global
4086
3823
  * timer.
4087
3824
  */
4088
-
4089
- var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
3825
+ const TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
4090
3826
  transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](),
4091
3827
  animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]()
4092
3828
  });
4093
3829
  TimerContext.displayName = "TimerContext";
4094
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
3830
+ /* harmony default export */ __webpack_exports__["default"] = (TimerContext);
4095
3831
 
4096
3832
  /***/ }),
4097
3833
 
@@ -4099,100 +3835,64 @@ TimerContext.displayName = "TimerContext";
4099
3835
  /*!***************************************************!*\
4100
3836
  !*** ../../victory-core/es/victory-util/timer.js ***!
4101
3837
  \***************************************************/
4102
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3838
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4103
3839
 
4104
3840
  "use strict";
4105
3841
  __webpack_require__.r(__webpack_exports__);
4106
3842
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4107
- /* harmony export */ "default": () => (/* binding */ Timer)
3843
+ /* harmony export */ "default": function() { return /* binding */ Timer; }
4108
3844
  /* harmony export */ });
4109
3845
  /* harmony import */ var victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-vendor/d3-timer */ "../../victory-vendor/es/d3-timer.js");
4110
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4111
-
4112
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4113
-
4114
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4115
-
4116
-
4117
-
4118
- var Timer = /*#__PURE__*/function () {
4119
- function Timer() {
4120
- var _this = this;
4121
-
4122
- _classCallCheck(this, Timer);
4123
-
4124
- this.shouldAnimate = void 0;
4125
- this.subscribers = void 0;
4126
- this.activeSubscriptions = void 0;
4127
- this.timer = void 0;
4128
-
4129
- this.loop = function () {
4130
- _this.subscribers.forEach(function (s) {
4131
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
4132
- });
4133
- };
4134
3846
 
3847
+ class Timer {
3848
+ constructor() {
4135
3849
  this.shouldAnimate = true;
4136
3850
  this.subscribers = [];
4137
3851
  this.timer = null;
4138
3852
  this.activeSubscriptions = 0;
4139
3853
  }
4140
-
4141
- _createClass(Timer, [{
4142
- key: "bypassAnimation",
4143
- value: function bypassAnimation() {
4144
- this.shouldAnimate = false;
4145
- }
4146
- }, {
4147
- key: "resumeAnimation",
4148
- value: function resumeAnimation() {
4149
- this.shouldAnimate = true;
4150
- }
4151
- }, {
4152
- key: "start",
4153
- value: function start() {
4154
- if (!this.timer) {
4155
- this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
4156
- }
3854
+ bypassAnimation() {
3855
+ this.shouldAnimate = false;
3856
+ }
3857
+ resumeAnimation() {
3858
+ this.shouldAnimate = true;
3859
+ }
3860
+ loop = () => {
3861
+ this.subscribers.forEach(s => {
3862
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
3863
+ });
3864
+ };
3865
+ start() {
3866
+ if (!this.timer) {
3867
+ this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
4157
3868
  }
4158
- }, {
4159
- key: "stop",
4160
- value: function stop() {
4161
- if (this.timer) {
4162
- this.timer.stop();
4163
- this.timer = null;
4164
- }
3869
+ }
3870
+ stop() {
3871
+ if (this.timer) {
3872
+ this.timer.stop();
3873
+ this.timer = null;
4165
3874
  }
4166
- }, {
4167
- key: "subscribe",
4168
- value: function subscribe(callback, duration) {
4169
- var subscriptionID = this.subscribers.push({
4170
- startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
4171
- callback: callback,
4172
- duration: this.shouldAnimate ? duration : 0
4173
- });
4174
- this.activeSubscriptions++;
4175
- this.start();
4176
- return subscriptionID;
3875
+ }
3876
+ subscribe(callback, duration) {
3877
+ const subscriptionID = this.subscribers.push({
3878
+ startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
3879
+ callback,
3880
+ duration: this.shouldAnimate ? duration : 0
3881
+ });
3882
+ this.activeSubscriptions++;
3883
+ this.start();
3884
+ return subscriptionID;
3885
+ }
3886
+ unsubscribe(id) {
3887
+ if (id !== null && this.subscribers[id - 1]) {
3888
+ delete this.subscribers[id - 1];
3889
+ this.activeSubscriptions--;
4177
3890
  }
4178
- }, {
4179
- key: "unsubscribe",
4180
- value: function unsubscribe(id) {
4181
- if (id !== null && this.subscribers[id - 1]) {
4182
- delete this.subscribers[id - 1];
4183
- this.activeSubscriptions--;
4184
- }
4185
-
4186
- if (this.activeSubscriptions === 0) {
4187
- this.stop();
4188
- }
3891
+ if (this.activeSubscriptions === 0) {
3892
+ this.stop();
4189
3893
  }
4190
- }]);
4191
-
4192
- return Timer;
4193
- }();
4194
-
4195
-
3894
+ }
3895
+ }
4196
3896
 
4197
3897
  /***/ }),
4198
3898
 
@@ -4200,35 +3900,18 @@ var Timer = /*#__PURE__*/function () {
4200
3900
  /*!********************************************************!*\
4201
3901
  !*** ../../victory-core/es/victory-util/user-props.js ***!
4202
3902
  \********************************************************/
4203
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3903
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4204
3904
 
4205
3905
  "use strict";
4206
3906
  __webpack_require__.r(__webpack_exports__);
4207
3907
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4208
- /* harmony export */ "assert": () => (/* binding */ assert),
4209
- /* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
4210
- /* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
3908
+ /* harmony export */ "assert": function() { return /* binding */ assert; },
3909
+ /* harmony export */ "getSafeUserProps": function() { return /* binding */ getSafeUserProps; },
3910
+ /* harmony export */ "withSafeUserProps": function() { return /* binding */ withSafeUserProps; }
4211
3911
  /* harmony export */ });
4212
3912
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4213
3913
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4214
3914
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
4215
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4216
-
4217
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4218
-
4219
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4220
-
4221
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
4222
-
4223
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
4224
-
4225
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4226
-
4227
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4228
-
4229
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4230
-
4231
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4232
3915
 
4233
3916
 
4234
3917
 
@@ -4238,11 +3921,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4238
3921
  starts with these characters.
4239
3922
  The exactMatch will contain a list of exact prop names that are accepted.
4240
3923
  */
4241
-
4242
- var USER_PROPS_SAFELIST = {
3924
+ const USER_PROPS_SAFELIST = {
4243
3925
  startsWith: ["data-", "aria-"],
4244
3926
  exactMatch: []
4245
- }; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
3927
+ };
3928
+
3929
+ // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
4246
3930
 
4247
3931
  // `data-${string}` | `aria-${string}`;
4248
3932
 
@@ -4254,14 +3938,15 @@ var USER_PROPS_SAFELIST = {
4254
3938
  * @returns {Boolean}: returns true if the key starts with an option or false if
4255
3939
  * otherwise
4256
3940
  */
4257
- var doesPropStartWith = function (key) {
4258
- var startsWith = false;
4259
- USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
4260
- var regex = new RegExp("\\b(".concat(starterString, ")(\\w|-)+"), "g");
3941
+ const doesPropStartWith = key => {
3942
+ let startsWith = false;
3943
+ USER_PROPS_SAFELIST.startsWith.forEach(starterString => {
3944
+ const regex = new RegExp(`\\b(${starterString})(\\w|-)+`, "g");
4261
3945
  if (regex.test(key)) startsWith = true;
4262
3946
  });
4263
3947
  return startsWith;
4264
3948
  };
3949
+
4265
3950
  /**
4266
3951
  * isExactMatch: checks to see if the given key matches any of the 'exactMatch'
4267
3952
  * items in the whitelist
@@ -4270,34 +3955,29 @@ var doesPropStartWith = function (key) {
4270
3955
  * @returns {Boolean}: return true if whitelist contains that key, otherwise
4271
3956
  * returns false.
4272
3957
  */
3958
+ const isExactMatch = key => USER_PROPS_SAFELIST.exactMatch.includes(key);
4273
3959
 
4274
-
4275
- var isExactMatch = function (key) {
4276
- return USER_PROPS_SAFELIST.exactMatch.includes(key);
4277
- };
4278
3960
  /**
4279
3961
  * testIfSafeProp: tests prop's key against both startsWith and exactMatch values
4280
3962
  * @param {String} key: prop key to be tested against the whitelist
4281
3963
  * @returns {Boolean}: returns true if found in whitelist, otherwise returns false
4282
3964
  */
4283
-
4284
-
4285
- var testIfSafeProp = function (key) {
3965
+ const testIfSafeProp = key => {
4286
3966
  if (doesPropStartWith(key) || isExactMatch(key)) return true;
4287
3967
  return false;
4288
3968
  };
3969
+
4289
3970
  /**
4290
3971
  * Asserts that value is not null or undefined, throwing an error if it is.
4291
3972
  * @param value The value to assert
4292
3973
  * @param message The error message to throw
4293
3974
  */
4294
-
4295
-
4296
3975
  function assert(value, message) {
4297
3976
  if (value === undefined || value === null) {
4298
3977
  throw new Error(message);
4299
3978
  }
4300
3979
  }
3980
+
4301
3981
  /**
4302
3982
  * getSafeUserProps - function that takes in a props object and removes any
4303
3983
  * key-value entries that do not match filter strings in the USER_PROPS_SAFELIST
@@ -4306,23 +3986,19 @@ function assert(value, message) {
4306
3986
  * @param {Object} props: props to be filtered against USER_PROPS_SAFELIST
4307
3987
  * @returns {Object}: object containing remaining acceptable props
4308
3988
  */
4309
-
4310
- var getSafeUserProps = function (props) {
4311
- var propsToFilter = _objectSpread({}, props);
4312
-
4313
- return Object.fromEntries(Object.entries(propsToFilter).filter(function (_ref) {
4314
- var _ref2 = _slicedToArray(_ref, 1),
4315
- key = _ref2[0];
4316
-
3989
+ const getSafeUserProps = props => {
3990
+ const propsToFilter = {
3991
+ ...props
3992
+ };
3993
+ return Object.fromEntries(Object.entries(propsToFilter).filter(_ref => {
3994
+ let [key] = _ref;
4317
3995
  return testIfSafeProp(key);
4318
- }).map(function (_ref3) {
4319
- var _ref4 = _slicedToArray(_ref3, 2),
4320
- key = _ref4[0],
4321
- value = _ref4[1];
4322
-
3996
+ }).map(_ref2 => {
3997
+ let [key, value] = _ref2;
4323
3998
  return [key, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(value, props)];
4324
3999
  }));
4325
4000
  };
4001
+
4326
4002
  /**
4327
4003
  * Wraps a component and adds safe user props
4328
4004
  *
@@ -4330,8 +4006,7 @@ var getSafeUserProps = function (props) {
4330
4006
  * @param {Object} props: props to be filtered
4331
4007
  * @returns {ReactElement} modified component
4332
4008
  */
4333
-
4334
- var withSafeUserProps = function (component, props) {
4009
+ const withSafeUserProps = (component, props) => {
4335
4010
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
4336
4011
  };
4337
4012
 
@@ -4341,16 +4016,16 @@ var withSafeUserProps = function (component, props) {
4341
4016
  /*!*******************************************!*\
4342
4017
  !*** ../../victory-vendor/es/d3-timer.js ***!
4343
4018
  \*******************************************/
4344
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4019
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4345
4020
 
4346
4021
  "use strict";
4347
4022
  __webpack_require__.r(__webpack_exports__);
4348
4023
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4349
- /* harmony export */ "interval": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.interval),
4350
- /* harmony export */ "now": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.now),
4351
- /* harmony export */ "timeout": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timeout),
4352
- /* harmony export */ "timer": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer),
4353
- /* harmony export */ "timerFlush": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timerFlush)
4024
+ /* harmony export */ "interval": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.interval; },
4025
+ /* harmony export */ "now": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.now; },
4026
+ /* harmony export */ "timeout": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timeout; },
4027
+ /* harmony export */ "timer": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer; },
4028
+ /* harmony export */ "timerFlush": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timerFlush; }
4354
4029
  /* harmony export */ });
4355
4030
  /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-timer */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/index.js");
4356
4031
 
@@ -4367,7 +4042,7 @@ __webpack_require__.r(__webpack_exports__);
4367
4042
  /*!**************************************************************************************!*\
4368
4043
  !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
4369
4044
  \**************************************************************************************/
4370
- /***/ ((module) => {
4045
+ /***/ (function(module) {
4371
4046
 
4372
4047
  "use strict";
4373
4048
  module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
@@ -4378,16 +4053,16 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
4378
4053
  /*!*************************************************************************************!*\
4379
4054
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/index.js ***!
4380
4055
  \*************************************************************************************/
4381
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4056
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4382
4057
 
4383
4058
  "use strict";
4384
4059
  __webpack_require__.r(__webpack_exports__);
4385
4060
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4386
- /* harmony export */ "interval": () => (/* reexport safe */ _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
4387
- /* harmony export */ "now": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.now),
4388
- /* harmony export */ "timeout": () => (/* reexport safe */ _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
4389
- /* harmony export */ "timer": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timer),
4390
- /* harmony export */ "timerFlush": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timerFlush)
4061
+ /* harmony export */ "interval": function() { return /* reexport safe */ _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]; },
4062
+ /* harmony export */ "now": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.now; },
4063
+ /* harmony export */ "timeout": function() { return /* reexport safe */ _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]; },
4064
+ /* harmony export */ "timer": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timer; },
4065
+ /* harmony export */ "timerFlush": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timerFlush; }
4391
4066
  /* harmony export */ });
4392
4067
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
4393
4068
  /* harmony import */ var _timeout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeout.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js");
@@ -4405,12 +4080,12 @@ __webpack_require__.r(__webpack_exports__);
4405
4080
  /*!****************************************************************************************!*\
4406
4081
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/interval.js ***!
4407
4082
  \****************************************************************************************/
4408
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4083
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4409
4084
 
4410
4085
  "use strict";
4411
4086
  __webpack_require__.r(__webpack_exports__);
4412
4087
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4413
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
4088
+ /* harmony export */ "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
4414
4089
  /* harmony export */ });
4415
4090
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
4416
4091
 
@@ -4438,12 +4113,12 @@ __webpack_require__.r(__webpack_exports__);
4438
4113
  /*!***************************************************************************************!*\
4439
4114
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js ***!
4440
4115
  \***************************************************************************************/
4441
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4116
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4442
4117
 
4443
4118
  "use strict";
4444
4119
  __webpack_require__.r(__webpack_exports__);
4445
4120
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4446
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
4121
+ /* harmony export */ "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
4447
4122
  /* harmony export */ });
4448
4123
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
4449
4124
 
@@ -4465,15 +4140,15 @@ __webpack_require__.r(__webpack_exports__);
4465
4140
  /*!*************************************************************************************!*\
4466
4141
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js ***!
4467
4142
  \*************************************************************************************/
4468
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4143
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4469
4144
 
4470
4145
  "use strict";
4471
4146
  __webpack_require__.r(__webpack_exports__);
4472
4147
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4473
- /* harmony export */ "Timer": () => (/* binding */ Timer),
4474
- /* harmony export */ "now": () => (/* binding */ now),
4475
- /* harmony export */ "timer": () => (/* binding */ timer),
4476
- /* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
4148
+ /* harmony export */ "Timer": function() { return /* binding */ Timer; },
4149
+ /* harmony export */ "now": function() { return /* binding */ now; },
4150
+ /* harmony export */ "timer": function() { return /* binding */ timer; },
4151
+ /* harmony export */ "timerFlush": function() { return /* binding */ timerFlush; }
4477
4152
  /* harmony export */ });
4478
4153
  var frame = 0, // is an animation frame pending?
4479
4154
  timeout = 0, // is a timeout pending?
@@ -4617,31 +4292,31 @@ function sleep(time) {
4617
4292
  /******/
4618
4293
  /************************************************************************/
4619
4294
  /******/ /* webpack/runtime/compat get default export */
4620
- /******/ (() => {
4295
+ /******/ !function() {
4621
4296
  /******/ // getDefaultExport function for compatibility with non-harmony modules
4622
- /******/ __webpack_require__.n = (module) => {
4297
+ /******/ __webpack_require__.n = function(module) {
4623
4298
  /******/ var getter = module && module.__esModule ?
4624
- /******/ () => (module['default']) :
4625
- /******/ () => (module);
4299
+ /******/ function() { return module['default']; } :
4300
+ /******/ function() { return module; };
4626
4301
  /******/ __webpack_require__.d(getter, { a: getter });
4627
4302
  /******/ return getter;
4628
4303
  /******/ };
4629
- /******/ })();
4304
+ /******/ }();
4630
4305
  /******/
4631
4306
  /******/ /* webpack/runtime/define property getters */
4632
- /******/ (() => {
4307
+ /******/ !function() {
4633
4308
  /******/ // define getter functions for harmony exports
4634
- /******/ __webpack_require__.d = (exports, definition) => {
4309
+ /******/ __webpack_require__.d = function(exports, definition) {
4635
4310
  /******/ for(var key in definition) {
4636
4311
  /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
4637
4312
  /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
4638
4313
  /******/ }
4639
4314
  /******/ }
4640
4315
  /******/ };
4641
- /******/ })();
4316
+ /******/ }();
4642
4317
  /******/
4643
4318
  /******/ /* webpack/runtime/global */
4644
- /******/ (() => {
4319
+ /******/ !function() {
4645
4320
  /******/ __webpack_require__.g = (function() {
4646
4321
  /******/ if (typeof globalThis === 'object') return globalThis;
4647
4322
  /******/ try {
@@ -4650,44 +4325,43 @@ function sleep(time) {
4650
4325
  /******/ if (typeof window === 'object') return window;
4651
4326
  /******/ }
4652
4327
  /******/ })();
4653
- /******/ })();
4328
+ /******/ }();
4654
4329
  /******/
4655
4330
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
4656
- /******/ (() => {
4657
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
4658
- /******/ })();
4331
+ /******/ !function() {
4332
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
4333
+ /******/ }();
4659
4334
  /******/
4660
4335
  /******/ /* webpack/runtime/make namespace object */
4661
- /******/ (() => {
4336
+ /******/ !function() {
4662
4337
  /******/ // define __esModule on exports
4663
- /******/ __webpack_require__.r = (exports) => {
4338
+ /******/ __webpack_require__.r = function(exports) {
4664
4339
  /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
4665
4340
  /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4666
4341
  /******/ }
4667
4342
  /******/ Object.defineProperty(exports, '__esModule', { value: true });
4668
4343
  /******/ };
4669
- /******/ })();
4344
+ /******/ }();
4670
4345
  /******/
4671
4346
  /************************************************************************/
4672
4347
  var __webpack_exports__ = {};
4673
4348
  // This entry need to be wrapped in an IIFE because it need to be in strict mode.
4674
- (() => {
4349
+ !function() {
4675
4350
  "use strict";
4676
4351
  /*!******************!*\
4677
4352
  !*** ./index.ts ***!
4678
4353
  \******************/
4679
4354
  __webpack_require__.r(__webpack_exports__);
4680
4355
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4681
- /* harmony export */ "BrushHelpers": () => (/* reexport safe */ _brush_helpers__WEBPACK_IMPORTED_MODULE_1__.BrushHelpers),
4682
- /* harmony export */ "VictoryBrushContainer": () => (/* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.VictoryBrushContainer),
4683
- /* harmony export */ "brushContainerMixin": () => (/* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.brushContainerMixin)
4356
+ /* harmony export */ "BrushHelpers": function() { return /* reexport safe */ _brush_helpers__WEBPACK_IMPORTED_MODULE_1__.BrushHelpers; },
4357
+ /* harmony export */ "VictoryBrushContainer": function() { return /* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.VictoryBrushContainer; },
4358
+ /* harmony export */ "brushContainerMixin": function() { return /* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.brushContainerMixin; }
4684
4359
  /* harmony export */ });
4685
4360
  /* harmony import */ var _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-brush-container */ "./victory-brush-container.tsx");
4686
4361
  /* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./brush-helpers */ "./brush-helpers.ts");
4687
4362
 
4688
4363
 
4689
- })();
4690
-
4364
+ }();
4691
4365
  /******/ return __webpack_exports__;
4692
4366
  /******/ })()
4693
4367
  ;