victory-shared-events 36.9.2-next.1 → 36.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,19 +1,14 @@
1
1
  # victory-shared-events
2
2
 
3
- ## 36.9.2-next.1
3
+ ## 36.9.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 7da790934: Replace lodash keys with native code
8
- - 6e34169a5: Replace lodash isFunction with native code
9
- - Updated dependencies [7da790934]
10
- - Updated dependencies [3f2da66e3]
11
- - Updated dependencies [c13308624]
12
- - Updated dependencies [7efd582cc]
13
- - Updated dependencies [9cdaf2c08]
14
- - Updated dependencies [f6f7cc515]
15
- - Updated dependencies [6e34169a5]
16
- - victory-core@36.9.2-next.1
7
+ - Replace lodash keys with native code ([#2811](https://github.com/FormidableLabs/victory/pull/2811))
8
+
9
+ * Replace lodash difference with native code ([#2828](https://github.com/FormidableLabs/victory/pull/2828))
10
+
11
+ - Replace lodash isFunction with native code ([#2802](https://github.com/FormidableLabs/victory/pull/2802))
17
12
 
18
13
  ## 36.9.1
19
14
 
package/README.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  `victory-shared-events@^30.0.0` exports `VictorySharedEvents`
4
4
 
5
- To view documentation for `VictorySharedEvents` please see https://formidable.com/open-source/victory/docs/victory-shared-events
5
+ To view documentation for `VictorySharedEvents` please see https://commerce.nearform.com/open-source/victory/docs/victory-shared-events
6
6
 
7
- To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-shared-events.md
7
+ To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-shared-events.md
@@ -22,24 +22,22 @@ __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
23
  /* harmony export */ "VictorySharedEvents": () => (/* binding */ VictorySharedEvents)
24
24
  /* harmony export */ });
25
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js");
26
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
27
- /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
28
- /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_1__);
29
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
30
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
31
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
32
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
33
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
34
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
35
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
25
+ /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
26
+ /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
27
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
28
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
29
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
30
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
31
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
32
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
33
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
34
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
36
35
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
37
36
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
38
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
39
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
40
- /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
41
- /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_6__);
42
-
37
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
38
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
39
+ /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
40
+ /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__);
43
41
 
44
42
 
45
43
 
@@ -106,8 +104,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
106
104
  _this.globalEvents = void 0;
107
105
  _this.prevGlobalEventKeys = void 0;
108
106
  _this.boundGlobalEvents = void 0;
109
- _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getScopedEvents.bind(_assertThisInitialized(_this));
110
- _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_7__.getEventState.bind(_assertThisInitialized(_this));
107
+ _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
108
+ _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
111
109
  _this.state = _this.state || {};
112
110
  _this.sharedEventsCache = {};
113
111
  _this.globalEvents = {};
@@ -120,7 +118,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
120
118
  _createClass(VictorySharedEvents, [{
121
119
  key: "shouldComponentUpdate",
122
120
  value: function shouldComponentUpdate(nextProps) {
123
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
121
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
124
122
  this.baseProps = this.getBaseProps(nextProps);
125
123
  var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
126
124
  this.applyExternalMutations(nextProps, externalMutations);
@@ -145,15 +143,11 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
145
143
  var _this3 = this;
146
144
 
147
145
  var globalEventKeys = Object.keys(this.globalEvents);
148
-
149
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
150
-
146
+ var removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(this.prevGlobalEventKeys, globalEventKeys);
151
147
  removedGlobalEventKeys.forEach(function (key) {
152
148
  return _this3.removeGlobalListener(key);
153
149
  });
154
-
155
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
156
-
150
+ var addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(globalEventKeys, this.prevGlobalEventKeys);
157
151
  addedGlobalEventKeys.forEach(function (key) {
158
152
  return _this3.addGlobalListener(key);
159
153
  });
@@ -175,22 +169,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
175
169
 
176
170
  var boundListener = function (event) {
177
171
  var listener = _this5.globalEvents[key];
178
- return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_7__.emulateReactEvent(event));
172
+ return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
179
173
  };
180
174
 
181
175
  this.boundGlobalEvents[key] = boundListener;
182
- window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), boundListener);
176
+ window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
183
177
  }
184
178
  }, {
185
179
  key: "removeGlobalListener",
186
180
  value: function removeGlobalListener(key) {
187
- window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
181
+ window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
188
182
  }
189
183
  }, {
190
184
  key: "getAllEvents",
191
185
  value: function getAllEvents(props) {
192
186
  var components = ["container", "groupComponent"];
193
- var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getComponentEvents(props, components);
187
+ var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
194
188
 
195
189
  if (Array.isArray(componentEvents)) {
196
190
  return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
@@ -201,7 +195,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
201
195
  }, {
202
196
  key: "applyExternalMutations",
203
197
  value: function applyExternalMutations(props, externalMutations) {
204
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
198
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
205
199
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
206
200
  return victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo;
207
201
  }, []);
@@ -216,7 +210,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
216
210
  }, {
217
211
  key: "getExternalMutations",
218
212
  value: function getExternalMutations(props, baseProps) {
219
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_7__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
213
+ return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_6__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
220
214
  }
221
215
  }, {
222
216
  key: "cacheSharedEvents",
@@ -231,7 +225,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
231
225
  sharedEvents = _ref2[0],
232
226
  prevCacheValues = _ref2[1];
233
227
 
234
- if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(cacheValues, prevCacheValues)) {
228
+ if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
235
229
  return sharedEvents;
236
230
  }
237
231
 
@@ -241,7 +235,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
241
235
  key: "getBaseProps",
242
236
  value: function getBaseProps(props) {
243
237
  var container = props.container;
244
- var children = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(this.props.children);
238
+ var children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
245
239
  var childBaseProps = this.getBasePropsFromChildren(children);
246
240
  var parentBaseProps = container ? container.props : {};
247
241
  return Object.assign({}, childBaseProps, {
@@ -262,7 +256,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
262
256
  };
263
257
 
264
258
  var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.reduceChildren(childComponents, iteratee);
265
- return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_1___default()(baseProps);
259
+ return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
266
260
  }
267
261
  }, {
268
262
  key: "getNewChildren",
@@ -275,9 +269,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
275
269
  var alterChildren = function (children, childNames) {
276
270
  return children.reduce(function (memo, child, index) {
277
271
  if (child.props.children) {
278
- var newChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children);
272
+ var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
279
273
  var names = childNames.slice(index, index + newChildren.length);
280
- var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, child.props, alterChildren(newChildren, names));
274
+ var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
281
275
  return memo.concat(results);
282
276
  } else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
283
277
  var name = child.props.name || childNames[index];
@@ -288,7 +282,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
288
282
 
289
283
  return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
290
284
  });
291
- var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_6___default()(_this6.state[name])];
285
+ var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(_this6.state[name])];
292
286
  var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
293
287
  events: childEvents,
294
288
  // partially apply child name and baseProps,
@@ -303,7 +297,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
303
297
 
304
298
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
305
299
 
306
- return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, Object.assign({
300
+ return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
307
301
  key: "events-".concat(name),
308
302
  sharedEvents: sharedEvents,
309
303
  eventKey: eventKey,
@@ -316,7 +310,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
316
310
  };
317
311
 
318
312
  var childNames = Object.keys(baseProps);
319
- var childComponents = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
313
+ var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
320
314
  return alterChildren(childComponents, childNames);
321
315
  }
322
316
  }, {
@@ -339,22 +333,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
339
333
  var container = props.container || props.groupComponent;
340
334
  var role = container.type && container.type.role;
341
335
  var containerProps = container.props || {};
342
- var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getEvents.bind(this);
336
+ var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEvents.bind(this);
343
337
  var parentEvents = sharedEvents && boundGetEvents({
344
338
  sharedEvents: sharedEvents
345
339
  }, "parent");
346
340
 
347
- var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
341
+ var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
348
342
  children: children
349
343
  });
350
344
 
351
- var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
345
+ var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
352
346
 
353
- this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEvents(containerEvents);
354
- var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.omitGlobalEvents(containerEvents);
355
- return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(container, Object.assign({}, parentProps, {
347
+ this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(containerEvents);
348
+ var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(containerEvents);
349
+ return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
356
350
  events: localEvents
357
- })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(container, localEvents, children);
351
+ })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
358
352
  }
359
353
  }, {
360
354
  key: "render",
@@ -365,19 +359,19 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
365
359
  return this.getContainer(this.props, this.baseProps, events);
366
360
  }
367
361
 
368
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(this.props.container, {
362
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
369
363
  children: this.props.children
370
364
  });
371
365
  }
372
366
  }]);
373
367
 
374
368
  return VictorySharedEvents;
375
- }((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
369
+ }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
376
370
  VictorySharedEvents.displayName = "VictorySharedEvents";
377
371
  VictorySharedEvents.role = "shared-event-wrapper";
378
372
  VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_9__["default"];
379
373
  VictorySharedEvents.defaultProps = {
380
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
374
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
381
375
  };
382
376
 
383
377
  /***/ }),
@@ -817,83 +811,6 @@ function baseAssignValue(object, key, value) {
817
811
  module.exports = baseAssignValue;
818
812
 
819
813
 
820
- /***/ }),
821
-
822
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
823
- /*!*****************************************************************************************!*\
824
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
825
- \*****************************************************************************************/
826
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
827
-
828
- var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
829
- arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
830
- arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
831
- arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
832
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
833
- cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
834
-
835
- /** Used as the size to enable large array optimizations. */
836
- var LARGE_ARRAY_SIZE = 200;
837
-
838
- /**
839
- * The base implementation of methods like `_.difference` without support
840
- * for excluding multiple arrays or iteratee shorthands.
841
- *
842
- * @private
843
- * @param {Array} array The array to inspect.
844
- * @param {Array} values The values to exclude.
845
- * @param {Function} [iteratee] The iteratee invoked per element.
846
- * @param {Function} [comparator] The comparator invoked per element.
847
- * @returns {Array} Returns the new array of filtered values.
848
- */
849
- function baseDifference(array, values, iteratee, comparator) {
850
- var index = -1,
851
- includes = arrayIncludes,
852
- isCommon = true,
853
- length = array.length,
854
- result = [],
855
- valuesLength = values.length;
856
-
857
- if (!length) {
858
- return result;
859
- }
860
- if (iteratee) {
861
- values = arrayMap(values, baseUnary(iteratee));
862
- }
863
- if (comparator) {
864
- includes = arrayIncludesWith;
865
- isCommon = false;
866
- }
867
- else if (values.length >= LARGE_ARRAY_SIZE) {
868
- includes = cacheHas;
869
- isCommon = false;
870
- values = new SetCache(values);
871
- }
872
- outer:
873
- while (++index < length) {
874
- var value = array[index],
875
- computed = iteratee == null ? value : iteratee(value);
876
-
877
- value = (comparator || value !== 0) ? value : 0;
878
- if (isCommon && computed === computed) {
879
- var valuesIndex = valuesLength;
880
- while (valuesIndex--) {
881
- if (values[valuesIndex] === computed) {
882
- continue outer;
883
- }
884
- }
885
- result.push(value);
886
- }
887
- else if (!includes(values, computed, comparator)) {
888
- result.push(value);
889
- }
890
- }
891
- return result;
892
- }
893
-
894
- module.exports = baseDifference;
895
-
896
-
897
814
  /***/ }),
898
815
 
899
816
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
@@ -1653,30 +1570,6 @@ function baseToString(value) {
1653
1570
  module.exports = baseToString;
1654
1571
 
1655
1572
 
1656
- /***/ }),
1657
-
1658
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
1659
- /*!************************************************************************************!*\
1660
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js ***!
1661
- \************************************************************************************/
1662
- /***/ ((module) => {
1663
-
1664
- /**
1665
- * The base implementation of `_.unary` without support for storing metadata.
1666
- *
1667
- * @private
1668
- * @param {Function} func The function to cap arguments for.
1669
- * @returns {Function} Returns the new capped function.
1670
- */
1671
- function baseUnary(func) {
1672
- return function(value) {
1673
- return func(value);
1674
- };
1675
- }
1676
-
1677
- module.exports = baseUnary;
1678
-
1679
-
1680
1573
  /***/ }),
1681
1574
 
1682
1575
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js":
@@ -3031,49 +2924,6 @@ var defaults = baseRest(function(object, sources) {
3031
2924
  module.exports = defaults;
3032
2925
 
3033
2926
 
3034
- /***/ }),
3035
-
3036
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
3037
- /*!************************************************************************************!*\
3038
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
3039
- \************************************************************************************/
3040
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3041
-
3042
- var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
3043
- baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
3044
- baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
3045
- isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
3046
-
3047
- /**
3048
- * Creates an array of `array` values not included in the other given arrays
3049
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3050
- * for equality comparisons. The order and references of result values are
3051
- * determined by the first array.
3052
- *
3053
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
3054
- *
3055
- * @static
3056
- * @memberOf _
3057
- * @since 0.1.0
3058
- * @category Array
3059
- * @param {Array} array The array to inspect.
3060
- * @param {...Array} [values] The values to exclude.
3061
- * @returns {Array} Returns the new array of filtered values.
3062
- * @see _.without, _.xor
3063
- * @example
3064
- *
3065
- * _.difference([2, 1], [2, 3]);
3066
- * // => [1]
3067
- */
3068
- var difference = baseRest(function(array, values) {
3069
- return isArrayLikeObject(array)
3070
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
3071
- : [];
3072
- });
3073
-
3074
- module.exports = difference;
3075
-
3076
-
3077
2927
  /***/ }),
3078
2928
 
3079
2929
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
@@ -3416,49 +3266,6 @@ function isArrayLike(value) {
3416
3266
  module.exports = isArrayLike;
3417
3267
 
3418
3268
 
3419
- /***/ }),
3420
-
3421
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
3422
- /*!*******************************************************************************************!*\
3423
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
3424
- \*******************************************************************************************/
3425
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3426
-
3427
- var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
3428
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
3429
-
3430
- /**
3431
- * This method is like `_.isArrayLike` except that it also checks if `value`
3432
- * is an object.
3433
- *
3434
- * @static
3435
- * @memberOf _
3436
- * @since 4.0.0
3437
- * @category Lang
3438
- * @param {*} value The value to check.
3439
- * @returns {boolean} Returns `true` if `value` is an array-like object,
3440
- * else `false`.
3441
- * @example
3442
- *
3443
- * _.isArrayLikeObject([1, 2, 3]);
3444
- * // => true
3445
- *
3446
- * _.isArrayLikeObject(document.body.children);
3447
- * // => true
3448
- *
3449
- * _.isArrayLikeObject('abc');
3450
- * // => false
3451
- *
3452
- * _.isArrayLikeObject(_.noop);
3453
- * // => false
3454
- */
3455
- function isArrayLikeObject(value) {
3456
- return isObjectLike(value) && isArrayLike(value);
3457
- }
3458
-
3459
- module.exports = isArrayLikeObject;
3460
-
3461
-
3462
3269
  /***/ }),
3463
3270
 
3464
3271
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
@@ -4278,6 +4085,106 @@ module.exports = function isEqual(a, b) {
4278
4085
  };
4279
4086
 
4280
4087
 
4088
+ /***/ }),
4089
+
4090
+ /***/ "../../victory-core/es/victory-util/collection.js":
4091
+ /*!********************************************************!*\
4092
+ !*** ../../victory-core/es/victory-util/collection.js ***!
4093
+ \********************************************************/
4094
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4095
+
4096
+ "use strict";
4097
+ __webpack_require__.r(__webpack_exports__);
4098
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4099
+ /* harmony export */ "containsDates": () => (/* binding */ containsDates),
4100
+ /* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
4101
+ /* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
4102
+ /* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
4103
+ /* harmony export */ "difference": () => (/* binding */ difference),
4104
+ /* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
4105
+ /* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
4106
+ /* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
4107
+ /* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
4108
+ /* harmony export */ });
4109
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4110
+
4111
+ 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."); }
4112
+
4113
+ 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); }
4114
+
4115
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4116
+
4117
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
4118
+
4119
+ 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; }
4120
+
4121
+ function isNonEmptyArray(collection) {
4122
+ return Array.isArray(collection) && collection.length > 0;
4123
+ }
4124
+
4125
+ function containsStrings(collection) {
4126
+ return Array.isArray(collection) && collection.some(function (value) {
4127
+ return typeof value === "string";
4128
+ });
4129
+ }
4130
+ function containsDates(collection) {
4131
+ return Array.isArray(collection) && collection.some(function (value) {
4132
+ return value instanceof Date;
4133
+ });
4134
+ }
4135
+ function containsNumbers(collection) {
4136
+ return Array.isArray(collection) && collection.some(function (value) {
4137
+ return typeof value === "number";
4138
+ });
4139
+ }
4140
+ function containsOnlyStrings(collection) {
4141
+ return isNonEmptyArray(collection) && collection.every(function (value) {
4142
+ return typeof value === "string";
4143
+ });
4144
+ }
4145
+ /**
4146
+ * Creates an array of array values not included in the other given arrays
4147
+ * @param a The array to inspect
4148
+ * @param b The values to exclude
4149
+ * @returns The new array of filtered values
4150
+ */
4151
+
4152
+ function difference(a, b) {
4153
+ if (a && b) {
4154
+ return a.filter(function (value) {
4155
+ return !b.includes(value);
4156
+ });
4157
+ }
4158
+
4159
+ return [];
4160
+ }
4161
+ function isArrayOfArrays(collection) {
4162
+ return isNonEmptyArray(collection) && collection.every(Array.isArray);
4163
+ }
4164
+ function removeUndefined(arr) {
4165
+ return arr.filter(function (el) {
4166
+ return el !== undefined;
4167
+ });
4168
+ }
4169
+ function getMaxValue(arr) {
4170
+ for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4171
+ values[_key - 1] = arguments[_key];
4172
+ }
4173
+
4174
+ var array = arr.concat(values);
4175
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
4176
+ : Math.max.apply(Math, _toConsumableArray(array));
4177
+ }
4178
+ function getMinValue(arr) {
4179
+ for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4180
+ values[_key2 - 1] = arguments[_key2];
4181
+ }
4182
+
4183
+ var array = arr.concat(values);
4184
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
4185
+ : Math.min.apply(Math, _toConsumableArray(array));
4186
+ }
4187
+
4281
4188
  /***/ }),
4282
4189
 
4283
4190
  /***/ "../../victory-core/es/victory-util/events.js":
@@ -4794,6 +4701,7 @@ __webpack_require__.r(__webpack_exports__);
4794
4701
  /* harmony export */ "getRadius": () => (/* binding */ getRadius),
4795
4702
  /* harmony export */ "getRange": () => (/* binding */ getRange),
4796
4703
  /* harmony export */ "getStyles": () => (/* binding */ getStyles),
4704
+ /* harmony export */ "invert": () => (/* binding */ invert),
4797
4705
  /* harmony export */ "isFunction": () => (/* binding */ isFunction),
4798
4706
  /* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
4799
4707
  /* harmony export */ "isNil": () => (/* binding */ isNil),
@@ -4844,6 +4752,18 @@ function getPolarRange(props, axis) {
4844
4752
  return [props.innerRadius || 0, getRadius(props)];
4845
4753
  } // Exported Functions
4846
4754
 
4755
+ /**
4756
+ * Creates an object composed of the inverted keys and values of object.
4757
+ * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
4758
+ */
4759
+
4760
+
4761
+ function invert(original) {
4762
+ return Object.entries(original).reduce(function (acc, current) {
4763
+ acc[current[1]] = current[0];
4764
+ return acc;
4765
+ }, {});
4766
+ }
4847
4767
  /**
4848
4768
  * creates an object with some keys excluded
4849
4769
  * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
@@ -4852,7 +4772,6 @@ function getPolarRange(props, axis) {
4852
4772
  * @returns {Object} new object with same properties as originalObject
4853
4773
  */
4854
4774
 
4855
-
4856
4775
  function omit(originalObject) {
4857
4776
  var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
4858
4777
  // code based on babel's _objectWithoutProperties
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictorySharedEvents=e(require("react")):t.VictorySharedEvents=e(t.React)}(self,(t=>(()=>{var e={2516:(t,e)=>{function r(t,e){var r=[],n=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(e)).join(".")+"]"}),function(o,i){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?n.splice(u,1/0,o):n.push(o),~r.indexOf(i)&&(i=e.call(this,o,i))}else r.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,n,o){return JSON.stringify(t,r(e,o),n)}).getSerialize=r},3273:(t,e,r)=>{var n=r(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,e,r)=>{var n=r(1171),o=r(7838),i=r(4859),u=r(4073),a=r(8541);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},2596:(t,e,r)=>{var n=r(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},5510:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9955:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},8644:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},9559:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},1634:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4132:(t,e,r)=>{var n=r(8347),o=r(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var u=t[e];i.call(t,e)&&o(u,r)&&(void 0!==r||e in t)||n(t,e,r)}},3162:(t,e,r)=>{var n=r(788);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8347:(t,e,r)=>{var n=r(5525);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},1377:(t,e,r)=>{var n=r(3273),o=r(5510),i=r(9955),u=r(8644),a=r(9110),c=r(9914);t.exports=function(t,e,r,s){var l=-1,f=o,p=!0,v=t.length,h=[],y=e.length;if(!v)return h;r&&(e=u(e,a(r))),s?(f=i,p=!1):e.length>=200&&(f=c,p=!1,e=new n(e));t:for(;++l<v;){var d=t[l],b=null==r?d:r(d);if(d=s||0!==d?d:0,p&&b==b){for(var g=y;g--;)if(e[g]===b)continue t;h.push(d)}else f(e,b,s)||h.push(d)}return h}},6457:(t,e,r)=>{var n=r(9559),o=r(3608);t.exports=function t(e,r,i,u,a){var c=-1,s=e.length;for(i||(i=o),a||(a=[]);++c<s;){var l=e[c];r>0&&i(l)?r>1?t(l,r-1,i,u,a):n(a,l):u||(a[a.length]=l)}return a}},4432:(t,e,r)=>{var n=r(9026),o=r(3110);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},9070:(t,e,r)=>{var n=r(7028),o=r(3474);t.exports=function t(e,r,i,u,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,u,t,a))}},7028:(t,e,r)=>{var n=r(8708),o=r(8705),i=r(2813),u=r(6682),a=r(9667),c=r(163),s=r(4801),l=r(4289),f="[object Arguments]",p="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,d,b){var g=c(t),m=c(e),x=g?p:a(t),j=m?p:a(e),O=(x=x==f?v:x)==v,E=(j=j==f?v:j)==v,w=x==j;if(w&&s(t)){if(!s(e))return!1;g=!0,O=!1}if(w&&!O)return b||(b=new n),g||l(t)?o(t,e,r,y,d,b):i(t,e,x,r,y,d,b);if(!(1&r)){var A=O&&h.call(t,"__wrapped__"),_=E&&h.call(e,"__wrapped__");if(A||_){var k=A?t.value():t,S=_?e.value():e;return b||(b=new n),d(k,S,r,y,b)}}return!!w&&(b||(b=new n),u(t,e,r,y,d,b))}},9548:(t,e,r)=>{var n=r(8708),o=r(9070);t.exports=function(t,e,r,i){var u=r.length,a=u,c=!i;if(null==t)return!a;for(t=Object(t);u--;){var s=r[u];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<a;){var l=(s=r[u])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var v=new n;if(i)var h=i(f,p,l,t,e,v);if(!(void 0===h?o(p,f,3,i,v):h))return!1}}return!0}},3472:(t,e,r)=>{var n=r(758),o=r(5223),i=r(5346),u=r(163),a=r(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):a(t)}},7190:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},758:(t,e,r)=>{var n=r(9548),o=r(597),i=r(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},5223:(t,e,r)=>{var n=r(9070),o=r(9201),i=r(5066),u=r(726),a=r(5385),c=r(6878),s=r(3110);t.exports=function(t,e){return u(t)&&a(e)?c(s(t),e):function(r){var u=o(r,t);return void 0===u&&u===e?i(r,t):n(e,u,3)}}},5436:(t,e,r)=>{var n=r(6371),o=r(5066);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6371:(t,e,r)=>{var n=r(4432),o=r(6539),i=r(9026);t.exports=function(t,e,r){for(var u=-1,a=e.length,c={};++u<a;){var s=e[u],l=n(t,s);r(l,s)&&o(c,i(s,t),l)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,r)=>{var n=r(4432);t.exports=function(t){return function(e){return n(e,t)}}},6317:(t,e,r)=>{var n=r(5346),o=r(4280),i=r(201);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6539:(t,e,r)=>{var n=r(4132),o=r(9026),i=r(9099),u=r(7709),a=r(3110);t.exports=function(t,e,r,c){if(!u(t))return t;for(var s=-1,l=(e=o(e,t)).length,f=l-1,p=t;null!=p&&++s<l;){var v=a(e[s]),h=r;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(s!=f){var y=p[v];void 0===(h=c?c(y,v,p):void 0)&&(h=u(y)?y:i(e[s+1])?[]:{})}n(p,v,h),p=p[v]}return t}},6316:(t,e,r)=>{var n=r(2596),o=r(8644),i=r(163),u=r(1995),a=n?n.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},946:(t,e,r)=>{var n=r(3273),o=r(5510),i=r(9955),u=r(9914),a=r(6602),c=r(6226);t.exports=function(t,e,r){var s=-1,l=o,f=t.length,p=!0,v=[],h=v;if(r)p=!1,l=i;else if(f>=200){var y=e?null:a(t);if(y)return c(y);p=!1,l=u,h=new n}else h=e?[]:v;t:for(;++s<f;){var d=t[s],b=e?e(d):d;if(d=r||0!==d?d:0,p&&b==b){for(var g=h.length;g--;)if(h[g]===b)continue t;e&&h.push(b),v.push(d)}else l(h,b,r)||(h!==v&&h.push(b),v.push(d))}return v}},9914:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9026:(t,e,r)=>{var n=r(163),o=r(726),i=r(7801),u=r(7010);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))}},6602:t=>{t.exports=function(){}},5525:(t,e,r)=>{var n=r(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,r)=>{var n=r(3273),o=r(1634),i=r(9914);t.exports=function(t,e,r,u,a,c){var s=1&r,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(t),v=c.get(e);if(p&&v)return p==e&&v==t;var h=-1,y=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var b=t[h],g=e[h];if(u)var m=s?u(g,b,h,e,t,c):u(b,g,h,t,e,c);if(void 0!==m){if(m)continue;y=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,u,c)))return d.push(e)}))){y=!1;break}}else if(b!==g&&!a(b,g,r,u,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,r)=>{var n=r(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,u,a){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var v=a.get(t),h=a.get(e);if(v&&h)return v==e&&h==t;var y=!0;a.set(t,e),a.set(e,t);for(var d=c;++f<l;){var b=t[p=s[f]],g=e[p];if(i)var m=c?i(g,b,p,e,t,a):i(b,g,p,t,e,a);if(!(void 0===m?b===g||u(b,g,r,i,a):m)){y=!1;break}d||(d="constructor"==p)}if(y&&!d){var x=t.constructor,j=e.constructor;x==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j||(y=!1)}return a.delete(t),a.delete(e),y}},5557:(t,e,r)=>{var n=r(2645),o=r(4280),i=r(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8143:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},7271:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},597:(t,e,r)=>{var n=r(5385),o=r(7747);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],u=t[i];e[r]=[i,u,n(u)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,r)=>{var n=r(9026),o=r(5075),i=r(163),u=r(9099),a=r(8454),c=r(3110);t.exports=function(t,e,r){for(var s=-1,l=(e=n(e,t)).length,f=!1;++s<l;){var p=c(e[s]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&a(l)&&u(p,l)&&(i(t)||o(t))}},3608:(t,e,r)=>{var n=r(2596),o=r(5075),i=r(163),u=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(u&&t&&t[u])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8286:t=>{t.exports=function(){return!1}},726:(t,e,r)=>{var n=r(163),o=r(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,r)=>{var n=r(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,r)=>{var n=r(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4859:(t,e,r)=>{var n=r(3162);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4073:(t,e,r)=>{var n=r(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,e,r)=>{var n=r(3162);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6878:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2453:t=>{t.exports=function(t){return t}},5125:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4280:(t,e,r)=>{var n=r(6082),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),c=Array(a);++u<a;)c[u]=i[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=i[u];return s[e]=r(c),n(t,this,s)}}},2373:(t,e,r)=>{var n=r(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,e,r)=>{var n=r(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=u},3110:(t,e,r)=>{var n=r(1995);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:(t,e,r)=>{var n=r(6317),o=r(788),i=r(8286),u=r(8855),a=Object.prototype,c=a.hasOwnProperty,s=n((function(t,e){t=Object(t);var r=-1,n=e.length,s=n>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(n=1);++r<n;)for(var l=e[r],f=u(l),p=-1,v=f.length;++p<v;){var h=f[p],y=t[h];(void 0===y||o(y,a[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},6354:(t,e,r)=>{var n=r(1377),o=r(6457),i=r(6317),u=r(7605),a=i((function(t,e){return u(t)?n(t,o(e,1,u,!0)):[]}));t.exports=a},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:(t,e,r)=>{var n=r(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7314:t=>{t.exports=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n}},9201:(t,e,r)=>{var n=r(4432);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},5066:(t,e,r)=>{var n=r(6776),o=r(3096);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5346:t=>{t.exports=function(t){return t}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,r)=>{var n=r(9642),o=r(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},7605:(t,e,r)=>{var n=r(981),o=r(3474);t.exports=function(t){return o(t)&&n(t)}},4801:t=>{t.exports=function(){return!1}},4155:(t,e,r)=>{var n=r(7190),o=r(9667),i=r(5075),u=r(163),a=r(981),c=r(4801),s=r(5782),l=r(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!n(t).length;for(var r in t)if(f.call(t,r))return!1;return!0}},9642:(t,e,r)=>{var n=r(563),o=r(7709);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1616:(t,e,r)=>{var n=r(3472),o=r(6051),i=r(4912);t.exports=function(t,e){return i(t,o(n(e)))}},9082:(t,e,r)=>{var n=r(5436),o=r(5557)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},4912:(t,e,r)=>{var n=r(8644),o=r(3472),i=r(6371),u=r(7271);t.exports=function(t,e){if(null==t)return{};var r=n(u(t),(function(t){return[t]}));return e=o(e),i(t,r,(function(t,r){return e(t,r[0])}))}},8532:(t,e,r)=>{var n=r(1600),o=r(3301),i=r(726),u=r(3110);t.exports=function(t){return i(t)?n(u(t)):o(t)}},7010:(t,e,r)=>{var n=r(6316);t.exports=function(t){return null==t?"":n(t)}},9602:(t,e,r)=>{var n=r(946);t.exports=function(t){return t&&t.length?n(t):[]}},7491:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,u){if(t===u)return!0;if(t&&u&&"object"==typeof t&&"object"==typeof u){if(t.constructor!==u.constructor)return!1;var a,c,s,l;if(Array.isArray(t)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(!i(t[c],u[c]))return!1;return!0}if(r&&t instanceof Map&&u instanceof Map){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],u.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&u instanceof Set){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(u)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(t[c]!==u[c])return!1;return!0}if(t.constructor===RegExp)return t.source===u.source&&t.flags===u.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===u.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===u.toString();if((a=(s=Object.keys(t)).length)!==Object.keys(u).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(u,s[c]))return!1;if(e&&t instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!i(t[s[c]],u[s[c]]))return!1;return!0}return t!=t&&u!=u}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>st});var t=n(6354),e=n.n(t),r=n(7314),i=n.n(r),u=n(4155),a=n.n(u),c=n(1893),s=n.n(c),l=n(9787),f=n.n(l),p=n(9602),v=n.n(p),h=n(1616),y=n.n(h),d=n(4912),b=n.n(d),g=n(9082),m=n.n(g);function x(t){return"function"==typeof t}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}n(8532);var w=/^onGlobal(.*)$/;function A(t,e,r,n){var o,i=this,u=function(t){var n,o=(n=t.reduce((function(t,r){return void 0!==r.target?(Array.isArray(r.target)?r.target.includes(e):"".concat(r.target)==="".concat(e))?t.concat(r):t:t.concat(r)}),[]),void 0!==r&&"parent"!==e?n.filter((function(t){var e=t.eventKey,n=function(t){return!t||"".concat(t)==="".concat(r)};return Array.isArray(e)?e.some((function(t){return n(t)})):n(e)})):n);return Array.isArray(o)&&o.reduce((function(t,e){return e?Object.assign(t,e.eventHandlers):t}),{})},a=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,O(t.events)):i.componentEvents:t.events,c=a&&x(n)?n(u(a),e):void 0;if(!t.sharedEvents)return c;var s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(u(t.sharedEvents.events),e);return Object.assign({},l,c)}function _(t,e,r,n){var o=this;if(a()(t))return{};var i=n||this.baseProps,u=function(t,e){var r=t.childName,n=t.target,u=t.key,a="props"===e?i:o.state||{},c=null!=r&&a[r]?a[r]:a;return"parent"===u?c.parent:c[u]&&c[u][n]},c=function(t,n){var a="parent"===e?t.childName:t.childName||r,c=t.target||e,s=function(e,r){var n=o.state||{};if(!x(t.mutation))return n;var a=u({childName:r,key:e,target:c},"props"),s=u({childName:r,key:e,target:c},"state"),l=t.mutation(Object.assign({},a,s),i),f=n[r]||{},p=function(t){return l?function(t){return"parent"===c?Object.assign(t,j({},e,Object.assign(t[e]||{},l))):Object.assign(t,j({},e,Object.assign(t[e]||{},j({},c,l))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Object.keys(t[e]).length&&delete t[e],t}(t)};return null!=r?Object.assign(n,j({},r,p(f))):p(n)},l=function(e){var r=function(e){return"parent"===c?"parent":"all"===t.eventKey?i[e]?Object.keys(i[e]).filter((function(t){return"parent"!==t})):Object.keys(i).filter((function(t){return"parent"!==t})):void 0===t.eventKey&&"parent"===n?i[e]?Object.keys(i[e]):Object.keys(i):void 0!==t.eventKey?t.eventKey:n}(e);return Array.isArray(r)?r.reduce((function(t,r){return Object.assign(t,s(r,e))}),{}):s(r,e)},f="all"===a?Object.keys(i).filter((function(t){return"parent"!==t})):a;return Array.isArray(f)?f.reduce((function(t,e){return Object.assign(t,l(e))}),{}):l(f)},s=function(e,r,n,i){var u=t[i](e,r,n,o);if(!a()(u)){var s=function(t){var e=function(t){return x(t.callback)&&t.callback},r=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return r.length?function(){return r.forEach((function(t){return t()}))}:void 0}(u);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,r){return Object.assign({},t,c(r,e))}),{}):c(t,e)}(u,n),s)}};return Object.keys(t).reduce((function(t,e){return t[e]=s,t}),{})}function k(t,e,r){var n=this.state||{};return r?n[r]&&n[r][t]&&n[r][t][e]:"parent"===t?n[t]&&n[t][e]||n[t]:n[t]&&n[t][e]}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=Object.keys(e);return o.reduce((function(o,i){var u=r[i]||{},c=e[i]||{};if("parent"===i){var s=P(t,c,u,{eventKey:i,target:"parent"});o[i]=void 0!==s?Object.assign({},u,s):u}else{var l=v()(Object.keys(c).concat(Object.keys(u)));o[i]=l.reduce((function(e,r){var o={eventKey:i,target:r,childName:n},s=P(t,c[r],u[r],o);return e[r]=void 0!==s?Object.assign({},u[r],s):u[r],b()(e,(function(t){return!a()(t)}))}),{})}return b()(o,(function(t){return!a()(t)}))}),{})}function P(t,e,r,n){var o=function(t,e){return"string"==typeof t[e]?"all"===t[e]||t[e]===n[e]:!!Array.isArray(t[e])&&t[e].map((function(t){return"".concat(t)})).includes(n[e])},i=Array.isArray(t)?t:[t];n.childName&&(i=t.filter((function(t){return o(t,"childName")})));var u=i.filter((function(t){return o(t,"target")}));if(!a()(u)){var c=u.filter((function(t){return o(t,"eventKey")}));if(!a()(c))return c.reduce((function(t,n){var o=(n&&x(n.mutation)?n.mutation:function(){})(Object.assign({},e,r));return Object.assign({},t,o)}),{})}}function C(t){var e=t.match(w);return e&&e[1]&&e[1].toLowerCase()}var T,G,M=0,K=0,N=0,B=0,z=0,I=0,F="object"==typeof performance&&performance.now?performance:Date,L="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $(){return z||(L(R),z=F.now()+I)}function R(){z=0}function V(){this._call=this._time=this._next=null}function D(t,e,r){var n=new V;return n.restart(t,e,r),n}function U(){z=(B=F.now())+I,M=K=0;try{!function(){$(),++M;for(var t,e=T;e;)(t=z-e._time)>=0&&e._call.call(void 0,t),e=e._next;--M}()}finally{M=0,function(){for(var t,e,r=T,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:T=e);G=t,H(n)}(),z=0}}function q(){var t=F.now(),e=t-B;e>1e3&&(I-=e,B=t)}function H(t){M||(K&&(K=clearTimeout(K)),t-z>24?(t<1/0&&(K=setTimeout(U,t-F.now()-I)),N&&(N=clearInterval(N))):(N||(B=F.now(),N=setInterval(q,1e3)),M=1,L(U)))}function J(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}V.prototype=D.prototype={constructor:V,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?$():+r)+(null==e?0:+e),this._next||G===this||(G?G._next=this:T=this,G=this),this._call=t,this._time=r,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}};var W=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback($()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=D(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){var r=this.subscribers.push({startTime:$(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&J(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Q=f().createContext({transitionTimer:new W,animationTimer:new W});Q.displayName="TimerContext";const X=Q;var Y=n(7491),Z=n.n(Y),tt=n(2516),et=n.n(tt);function rt(t,e){if(t){if("string"==typeof t)return nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(t,e):void 0}}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function it(t,e){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},it(t,e)}function ut(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return at(t)}function at(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ct(t){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ct(t)}var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(p,t);var r,n,o,u,c=(o=p,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ct(o);if(u){var r=ct(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ut(this,t)});function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(e=c.call(this,t)).getScopedEvents=void 0,e.getEventState=void 0,e.baseProps=void 0,e.sharedEventsCache=void 0,e.globalEvents=void 0,e.prevGlobalEventKeys=void 0,e.boundGlobalEvents=void 0,e.getScopedEvents=_.bind(at(e)),e.getEventState=k.bind(at(e)),e.state=e.state||{},e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.baseProps=e.getBaseProps(t),e}return r=p,n=[{key:"shouldComponentUpdate",value:function(t){if(!Z()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,r=Object.keys(this.globalEvents);e()(this.prevGlobalEventKeys,r).forEach((function(e){return t.removeGlobalListener(e)})),e()(r,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,r=function(r){var n=e.globalEvents[t];return n&&n(function(t){return Object.assign(t,{nativeEvent:t})}(r))};this.boundGlobalEvents[t]=r,window.addEventListener(C(t),r)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(C(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,r=function(t,e){var r=Array.isArray(e)&&e.reduce((function(e,r){var n=t[r],o=n&&n.type&&n.type.defaultEvents,i=x(o)?o(n.props):o;return Array.isArray(i)?e.concat.apply(e,O(i)):e}),[]);return r&&r.length?r:void 0}(t,["container","groupComponent"]);return Array.isArray(r)?Array.isArray(t.events)?r.concat.apply(r,function(t){if(Array.isArray(t))return nt(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||rt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):r:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!a()(e)){var r=t.externalEventMutations.reduce((function(t,e){return x(e.callback)?t.concat(e.callback):t}),[]),n=r.length?function(){r.forEach((function(t){return t()}))}:void 0;this.setState(e,n)}}},{key:"getExternalMutations",value:function(t,e){return a()(t.externalEventMutations)?void 0:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(arguments.length>3?arguments[3]:void 0).reduce((function(n,o){var i=r[o],u=S(t,e[o],r[o],o);return n[o]=u||i,b()(n,(function(t){return!a()(t)}))}),{})}(t.externalEventMutations,e,this.state,Object.keys(e))}},{key:"cacheSharedEvents",value:function(t,e,r){this.sharedEventsCache[t]=[e,r]}},{key:"getCachedSharedEvents",value:function(t,e){var r,n,o=(r=this.sharedEventsCache[t]||[],n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(r,n)||rt(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];if(i&&Z()(e,u))return i}},{key:"getBaseProps",value:function(t){var e=t.container,r=f().Children.toArray(this.props.children),n=this.getBasePropsFromChildren(r),o=e?e.props:{};return Object.assign({},n,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var e=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,a,c){return t.reduce((function(t,n,s){var l=t,p=n.type&&n.type.role,v=n.props.name||"".concat(p,"-").concat(a[s]);if(n.props&&n.props.children){var h=Object.assign({},n.props,m()(r,i)),y=n.type&&"stack"===n.type.role&&x(n.type.getChildren)?n.type.getChildren(h):f().Children.toArray(n.props.children).map((function(t){var e=Object.assign({},t.props,m()(h,i));return f().cloneElement(t,e)})),d=y.map((function(t,e){return"".concat(v,"-").concat(e)})),b=u(y,d,n);l=o(l,b)}else{var g=e(n,v,c);g&&(l=o(l,g))}return l}),n)},a=t.filter(l.isValidElement),c=a.map((function(t,e){return e}));return u(a,c)}(t,(function(t,e){if(t.type&&x(t.type.getBaseProps)){var r=t.props&&t.type.getBaseProps(t.props);return r?[[e,r]]:null}return null}));return i()(e)}},{key:"getNewChildren",value:function(t,e){var r=this,n=t.events,o=t.eventKey,i=function(t,u){return t.reduce((function(t,a,c){if(a.props.children){var s=f().Children.toArray(a.props.children),l=u.slice(c,c+s.length),p=f().cloneElement(a,a.props,i(s,l));return t.concat(p)}if("parent"!==u[c]&&a.type&&x(a.type.getBaseProps)){var v=a.props.name||u[c],h=Array.isArray(n)&&n.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(v)>-1:t.childName===v||"all"===t.childName)})),y=[v,e,h,et()(r.state[v])],d=r.getCachedSharedEvents(v,y)||{events:h,getEvents:function(t,n){return r.getScopedEvents(t,n,v,e)},getEventState:function(t,e){return r.getEventState(t,e,v)}};return r.cacheSharedEvents(v,d,y),t.concat(f().cloneElement(a,Object.assign({key:"events-".concat(v),sharedEvents:d,eventKey:o,name:v},a.props)))}return t.concat(a)}),[])},u=Object.keys(e),a=f().Children.toArray(t.children);return i(a,u)}},{key:"getContainer",value:function(t,e,r){var n=this,o=this.getNewChildren(t,e),i=Array.isArray(r)?r.filter((function(t){return"parent"===t.target})):[],u=i.length>0?{events:i,getEvents:function(t,r){return n.getScopedEvents(t,r,null,e)},getEventState:this.getEventState}:null,a=t.container||t.groupComponent,c=a.type&&a.type.role,l=a.props||{},p=A.bind(this),v=u&&p({sharedEvents:u},"parent"),h=s()({},this.getEventState("parent","parent"),l,e.parent,{children:o}),d=s()({},function(t,e,r){return t?Object.keys(t).reduce((function(e,n){return e[n]=function(e){return t[n](e,r,"parent",n)},e}),{}):{}}(v,0,h),l.events);this.globalEvents=function(t){return b()(t,(function(t,e){return w.test(e)}))}(d);var g=function(t){return y()(t,(function(t,e){return w.test(e)}))}(d);return"container"===c?f().cloneElement(a,Object.assign({},h,{events:g})):f().cloneElement(a,g,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):f().cloneElement(this.props.container,{children:this.props.children})}}],n&&ot(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),p}(f().Component);st.displayName="VictorySharedEvents",st.role="shared-event-wrapper",st.contextType=X,st.defaultProps={groupComponent:f().createElement("g",null)}})(),o})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictorySharedEvents=e(require("react")):t.VictorySharedEvents=e(t.React)}(self,(t=>(()=>{var e={2516:(t,e)=>{function r(t,e){var r=[],n=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(e)).join(".")+"]"}),function(o,i){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?n.splice(u,1/0,o):n.push(o),~r.indexOf(i)&&(i=e.call(this,o,i))}else r.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,n,o){return JSON.stringify(t,r(e,o),n)}).getSerialize=r},3273:(t,e,r)=>{var n=r(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,e,r)=>{var n=r(1171),o=r(7838),i=r(4859),u=r(4073),a=r(8541);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},2596:(t,e,r)=>{var n=r(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},5510:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9955:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},8644:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},9559:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},1634:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4132:(t,e,r)=>{var n=r(8347),o=r(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var u=t[e];i.call(t,e)&&o(u,r)&&(void 0!==r||e in t)||n(t,e,r)}},3162:(t,e,r)=>{var n=r(788);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8347:(t,e,r)=>{var n=r(5525);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},6457:(t,e,r)=>{var n=r(9559),o=r(3608);t.exports=function t(e,r,i,u,a){var c=-1,s=e.length;for(i||(i=o),a||(a=[]);++c<s;){var l=e[c];r>0&&i(l)?r>1?t(l,r-1,i,u,a):n(a,l):u||(a[a.length]=l)}return a}},4432:(t,e,r)=>{var n=r(9026),o=r(3110);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},9070:(t,e,r)=>{var n=r(7028),o=r(3474);t.exports=function t(e,r,i,u,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,u,t,a))}},7028:(t,e,r)=>{var n=r(8708),o=r(8705),i=r(2813),u=r(6682),a=r(9667),c=r(163),s=r(4801),l=r(4289),f="[object Arguments]",p="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,d,b){var g=c(t),m=c(e),x=g?p:a(t),j=m?p:a(e),O=(x=x==f?v:x)==v,E=(j=j==f?v:j)==v,w=x==j;if(w&&s(t)){if(!s(e))return!1;g=!0,O=!1}if(w&&!O)return b||(b=new n),g||l(t)?o(t,e,r,y,d,b):i(t,e,x,r,y,d,b);if(!(1&r)){var A=O&&h.call(t,"__wrapped__"),_=E&&h.call(e,"__wrapped__");if(A||_){var k=A?t.value():t,S=_?e.value():e;return b||(b=new n),d(k,S,r,y,b)}}return!!w&&(b||(b=new n),u(t,e,r,y,d,b))}},9548:(t,e,r)=>{var n=r(8708),o=r(9070);t.exports=function(t,e,r,i){var u=r.length,a=u,c=!i;if(null==t)return!a;for(t=Object(t);u--;){var s=r[u];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<a;){var l=(s=r[u])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var v=new n;if(i)var h=i(f,p,l,t,e,v);if(!(void 0===h?o(p,f,3,i,v):h))return!1}}return!0}},3472:(t,e,r)=>{var n=r(758),o=r(5223),i=r(5346),u=r(163),a=r(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):a(t)}},7190:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},758:(t,e,r)=>{var n=r(9548),o=r(597),i=r(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},5223:(t,e,r)=>{var n=r(9070),o=r(9201),i=r(5066),u=r(726),a=r(5385),c=r(6878),s=r(3110);t.exports=function(t,e){return u(t)&&a(e)?c(s(t),e):function(r){var u=o(r,t);return void 0===u&&u===e?i(r,t):n(e,u,3)}}},5436:(t,e,r)=>{var n=r(6371),o=r(5066);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6371:(t,e,r)=>{var n=r(4432),o=r(6539),i=r(9026);t.exports=function(t,e,r){for(var u=-1,a=e.length,c={};++u<a;){var s=e[u],l=n(t,s);r(l,s)&&o(c,i(s,t),l)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,r)=>{var n=r(4432);t.exports=function(t){return function(e){return n(e,t)}}},6317:(t,e,r)=>{var n=r(5346),o=r(4280),i=r(201);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6539:(t,e,r)=>{var n=r(4132),o=r(9026),i=r(9099),u=r(7709),a=r(3110);t.exports=function(t,e,r,c){if(!u(t))return t;for(var s=-1,l=(e=o(e,t)).length,f=l-1,p=t;null!=p&&++s<l;){var v=a(e[s]),h=r;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(s!=f){var y=p[v];void 0===(h=c?c(y,v,p):void 0)&&(h=u(y)?y:i(e[s+1])?[]:{})}n(p,v,h),p=p[v]}return t}},6316:(t,e,r)=>{var n=r(2596),o=r(8644),i=r(163),u=r(1995),a=n?n.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},946:(t,e,r)=>{var n=r(3273),o=r(5510),i=r(9955),u=r(9914),a=r(6602),c=r(6226);t.exports=function(t,e,r){var s=-1,l=o,f=t.length,p=!0,v=[],h=v;if(r)p=!1,l=i;else if(f>=200){var y=e?null:a(t);if(y)return c(y);p=!1,l=u,h=new n}else h=e?[]:v;t:for(;++s<f;){var d=t[s],b=e?e(d):d;if(d=r||0!==d?d:0,p&&b==b){for(var g=h.length;g--;)if(h[g]===b)continue t;e&&h.push(b),v.push(d)}else l(h,b,r)||(h!==v&&h.push(b),v.push(d))}return v}},9914:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9026:(t,e,r)=>{var n=r(163),o=r(726),i=r(7801),u=r(7010);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))}},6602:t=>{t.exports=function(){}},5525:(t,e,r)=>{var n=r(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,r)=>{var n=r(3273),o=r(1634),i=r(9914);t.exports=function(t,e,r,u,a,c){var s=1&r,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(t),v=c.get(e);if(p&&v)return p==e&&v==t;var h=-1,y=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var b=t[h],g=e[h];if(u)var m=s?u(g,b,h,e,t,c):u(b,g,h,t,e,c);if(void 0!==m){if(m)continue;y=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,u,c)))return d.push(e)}))){y=!1;break}}else if(b!==g&&!a(b,g,r,u,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,r)=>{var n=r(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,u,a){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var v=a.get(t),h=a.get(e);if(v&&h)return v==e&&h==t;var y=!0;a.set(t,e),a.set(e,t);for(var d=c;++f<l;){var b=t[p=s[f]],g=e[p];if(i)var m=c?i(g,b,p,e,t,a):i(b,g,p,t,e,a);if(!(void 0===m?b===g||u(b,g,r,i,a):m)){y=!1;break}d||(d="constructor"==p)}if(y&&!d){var x=t.constructor,j=e.constructor;x==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j||(y=!1)}return a.delete(t),a.delete(e),y}},5557:(t,e,r)=>{var n=r(2645),o=r(4280),i=r(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8143:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},7271:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},597:(t,e,r)=>{var n=r(5385),o=r(7747);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],u=t[i];e[r]=[i,u,n(u)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,r)=>{var n=r(9026),o=r(5075),i=r(163),u=r(9099),a=r(8454),c=r(3110);t.exports=function(t,e,r){for(var s=-1,l=(e=n(e,t)).length,f=!1;++s<l;){var p=c(e[s]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&a(l)&&u(p,l)&&(i(t)||o(t))}},3608:(t,e,r)=>{var n=r(2596),o=r(5075),i=r(163),u=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(u&&t&&t[u])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8286:t=>{t.exports=function(){return!1}},726:(t,e,r)=>{var n=r(163),o=r(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,r)=>{var n=r(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,r)=>{var n=r(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4859:(t,e,r)=>{var n=r(3162);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4073:(t,e,r)=>{var n=r(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,e,r)=>{var n=r(3162);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6878:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2453:t=>{t.exports=function(t){return t}},5125:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4280:(t,e,r)=>{var n=r(6082),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),c=Array(a);++u<a;)c[u]=i[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=i[u];return s[e]=r(c),n(t,this,s)}}},2373:(t,e,r)=>{var n=r(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,e,r)=>{var n=r(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=u},3110:(t,e,r)=>{var n=r(1995);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:(t,e,r)=>{var n=r(6317),o=r(788),i=r(8286),u=r(8855),a=Object.prototype,c=a.hasOwnProperty,s=n((function(t,e){t=Object(t);var r=-1,n=e.length,s=n>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(n=1);++r<n;)for(var l=e[r],f=u(l),p=-1,v=f.length;++p<v;){var h=f[p],y=t[h];(void 0===y||o(y,a[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:(t,e,r)=>{var n=r(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7314:t=>{t.exports=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n}},9201:(t,e,r)=>{var n=r(4432);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},5066:(t,e,r)=>{var n=r(6776),o=r(3096);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5346:t=>{t.exports=function(t){return t}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,r)=>{var n=r(9642),o=r(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4801:t=>{t.exports=function(){return!1}},4155:(t,e,r)=>{var n=r(7190),o=r(9667),i=r(5075),u=r(163),a=r(981),c=r(4801),s=r(5782),l=r(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!n(t).length;for(var r in t)if(f.call(t,r))return!1;return!0}},9642:(t,e,r)=>{var n=r(563),o=r(7709);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1616:(t,e,r)=>{var n=r(3472),o=r(6051),i=r(4912);t.exports=function(t,e){return i(t,o(n(e)))}},9082:(t,e,r)=>{var n=r(5436),o=r(5557)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},4912:(t,e,r)=>{var n=r(8644),o=r(3472),i=r(6371),u=r(7271);t.exports=function(t,e){if(null==t)return{};var r=n(u(t),(function(t){return[t]}));return e=o(e),i(t,r,(function(t,r){return e(t,r[0])}))}},8532:(t,e,r)=>{var n=r(1600),o=r(3301),i=r(726),u=r(3110);t.exports=function(t){return i(t)?n(u(t)):o(t)}},7010:(t,e,r)=>{var n=r(6316);t.exports=function(t){return null==t?"":n(t)}},9602:(t,e,r)=>{var n=r(946);t.exports=function(t){return t&&t.length?n(t):[]}},7491:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,u){if(t===u)return!0;if(t&&u&&"object"==typeof t&&"object"==typeof u){if(t.constructor!==u.constructor)return!1;var a,c,s,l;if(Array.isArray(t)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(!i(t[c],u[c]))return!1;return!0}if(r&&t instanceof Map&&u instanceof Map){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],u.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&u instanceof Set){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(u)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(t[c]!==u[c])return!1;return!0}if(t.constructor===RegExp)return t.source===u.source&&t.flags===u.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===u.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===u.toString();if((a=(s=Object.keys(t)).length)!==Object.keys(u).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(u,s[c]))return!1;if(e&&t instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!i(t[s[c]],u[s[c]]))return!1;return!0}return t!=t&&u!=u}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>ct});var t=n(7314),e=n.n(t),r=n(4155),i=n.n(r),u=n(1893),a=n.n(u),c=n(9787),s=n.n(c),l=n(9602),f=n.n(l),p=n(1616),v=n.n(p),h=n(4912),y=n.n(h),d=n(9082),b=n.n(d);function g(t){return"function"==typeof t}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}n(8532);var O=/^onGlobal(.*)$/;function E(t,e,r,n){var o,i=this,u=function(t){var n,o=(n=t.reduce((function(t,r){return void 0!==r.target?(Array.isArray(r.target)?r.target.includes(e):"".concat(r.target)==="".concat(e))?t.concat(r):t:t.concat(r)}),[]),void 0!==r&&"parent"!==e?n.filter((function(t){var e=t.eventKey,n=function(t){return!t||"".concat(t)==="".concat(r)};return Array.isArray(e)?e.some((function(t){return n(t)})):n(e)})):n);return Array.isArray(o)&&o.reduce((function(t,e){return e?Object.assign(t,e.eventHandlers):t}),{})},a=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,x(t.events)):i.componentEvents:t.events,c=a&&g(n)?n(u(a),e):void 0;if(!t.sharedEvents)return c;var s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(u(t.sharedEvents.events),e);return Object.assign({},l,c)}function w(t,e,r,n){var o=this;if(i()(t))return{};var u=n||this.baseProps,a=function(t,e){var r=t.childName,n=t.target,i=t.key,a="props"===e?u:o.state||{},c=null!=r&&a[r]?a[r]:a;return"parent"===i?c.parent:c[i]&&c[i][n]},c=function(t,n){var i="parent"===e?t.childName:t.childName||r,c=t.target||e,s=function(e,r){var n=o.state||{};if(!g(t.mutation))return n;var i=a({childName:r,key:e,target:c},"props"),s=a({childName:r,key:e,target:c},"state"),l=t.mutation(Object.assign({},i,s),u),f=n[r]||{},p=function(t){return l?function(t){return"parent"===c?Object.assign(t,m({},e,Object.assign(t[e]||{},l))):Object.assign(t,m({},e,Object.assign(t[e]||{},m({},c,l))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Object.keys(t[e]).length&&delete t[e],t}(t)};return null!=r?Object.assign(n,m({},r,p(f))):p(n)},l=function(e){var r=function(e){return"parent"===c?"parent":"all"===t.eventKey?u[e]?Object.keys(u[e]).filter((function(t){return"parent"!==t})):Object.keys(u).filter((function(t){return"parent"!==t})):void 0===t.eventKey&&"parent"===n?u[e]?Object.keys(u[e]):Object.keys(u):void 0!==t.eventKey?t.eventKey:n}(e);return Array.isArray(r)?r.reduce((function(t,r){return Object.assign(t,s(r,e))}),{}):s(r,e)},f="all"===i?Object.keys(u).filter((function(t){return"parent"!==t})):i;return Array.isArray(f)?f.reduce((function(t,e){return Object.assign(t,l(e))}),{}):l(f)},s=function(e,r,n,u){var a=t[u](e,r,n,o);if(!i()(a)){var s=function(t){var e=function(t){return g(t.callback)&&t.callback},r=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return r.length?function(){return r.forEach((function(t){return t()}))}:void 0}(a);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,r){return Object.assign({},t,c(r,e))}),{}):c(t,e)}(a,n),s)}};return Object.keys(t).reduce((function(t,e){return t[e]=s,t}),{})}function A(t,e,r){var n=this.state||{};return r?n[r]&&n[r][t]&&n[r][t][e]:"parent"===t?n[t]&&n[t][e]||n[t]:n[t]&&n[t][e]}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=Object.keys(e);return o.reduce((function(o,u){var a=r[u]||{},c=e[u]||{};if("parent"===u){var s=k(t,c,a,{eventKey:u,target:"parent"});o[u]=void 0!==s?Object.assign({},a,s):a}else{var l=f()(Object.keys(c).concat(Object.keys(a)));o[u]=l.reduce((function(e,r){var o={eventKey:u,target:r,childName:n},s=k(t,c[r],a[r],o);return e[r]=void 0!==s?Object.assign({},a[r],s):a[r],y()(e,(function(t){return!i()(t)}))}),{})}return y()(o,(function(t){return!i()(t)}))}),{})}function k(t,e,r,n){var o=function(t,e){return"string"==typeof t[e]?"all"===t[e]||t[e]===n[e]:!!Array.isArray(t[e])&&t[e].map((function(t){return"".concat(t)})).includes(n[e])},u=Array.isArray(t)?t:[t];n.childName&&(u=t.filter((function(t){return o(t,"childName")})));var a=u.filter((function(t){return o(t,"target")}));if(!i()(a)){var c=a.filter((function(t){return o(t,"eventKey")}));if(!i()(c))return c.reduce((function(t,n){var o=(n&&g(n.mutation)?n.mutation:function(){})(Object.assign({},e,r));return Object.assign({},t,o)}),{})}}function S(t){var e=t.match(O);return e&&e[1]&&e[1].toLowerCase()}function P(t,e){return t&&e?t.filter((function(t){return!e.includes(t)})):[]}var C,T,G=0,M=0,K=0,N=0,B=0,z=0,I="object"==typeof performance&&performance.now?performance:Date,F="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function L(){return B||(F($),B=I.now()+z)}function $(){B=0}function R(){this._call=this._time=this._next=null}function V(t,e,r){var n=new R;return n.restart(t,e,r),n}function D(){B=(N=I.now())+z,G=M=0;try{!function(){L(),++G;for(var t,e=C;e;)(t=B-e._time)>=0&&e._call.call(void 0,t),e=e._next;--G}()}finally{G=0,function(){for(var t,e,r=C,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:C=e);T=t,q(n)}(),B=0}}function U(){var t=I.now(),e=t-N;e>1e3&&(z-=e,N=t)}function q(t){G||(M&&(M=clearTimeout(M)),t-B>24?(t<1/0&&(M=setTimeout(D,t-I.now()-z)),K&&(K=clearInterval(K))):(K||(N=I.now(),K=setInterval(U,1e3)),G=1,F(D)))}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}R.prototype=V.prototype={constructor:R,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?L():+r)+(null==e?0:+e),this._next||T===this||(T?T._next=this:C=this,T=this),this._call=t,this._time=r,q()},stop:function(){this._call&&(this._call=null,this._time=1/0,q())}};var J=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(L()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=V(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){var r=this.subscribers.push({startTime:L(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&H(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),W=s().createContext({transitionTimer:new J,animationTimer:new J});W.displayName="TimerContext";const Q=W;var X=n(7491),Y=n.n(X),Z=n(2516),tt=n.n(Z);function et(t,e){if(t){if("string"==typeof t)return rt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}function it(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ut(t)}function ut(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function at(t){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},at(t)}var ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(f,t);var r,n,o,u,l=(o=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=at(o);if(u){var r=at(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return it(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this,t)).getScopedEvents=void 0,e.getEventState=void 0,e.baseProps=void 0,e.sharedEventsCache=void 0,e.globalEvents=void 0,e.prevGlobalEventKeys=void 0,e.boundGlobalEvents=void 0,e.getScopedEvents=w.bind(ut(e)),e.getEventState=A.bind(ut(e)),e.state=e.state||{},e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.baseProps=e.getBaseProps(t),e}return r=f,n=[{key:"shouldComponentUpdate",value:function(t){if(!Y()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=Object.keys(this.globalEvents);P(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)})),P(e,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,r=function(r){var n=e.globalEvents[t];return n&&n(function(t){return Object.assign(t,{nativeEvent:t})}(r))};this.boundGlobalEvents[t]=r,window.addEventListener(S(t),r)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(S(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,r=function(t,e){var r=Array.isArray(e)&&e.reduce((function(e,r){var n=t[r],o=n&&n.type&&n.type.defaultEvents,i=g(o)?o(n.props):o;return Array.isArray(i)?e.concat.apply(e,x(i)):e}),[]);return r&&r.length?r:void 0}(t,["container","groupComponent"]);return Array.isArray(r)?Array.isArray(t.events)?r.concat.apply(r,function(t){if(Array.isArray(t))return rt(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):r:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!i()(e)){var r=t.externalEventMutations.reduce((function(t,e){return g(e.callback)?t.concat(e.callback):t}),[]),n=r.length?function(){r.forEach((function(t){return t()}))}:void 0;this.setState(e,n)}}},{key:"getExternalMutations",value:function(t,e){return i()(t.externalEventMutations)?void 0:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(arguments.length>3?arguments[3]:void 0).reduce((function(n,o){var u=r[o],a=_(t,e[o],r[o],o);return n[o]=a||u,y()(n,(function(t){return!i()(t)}))}),{})}(t.externalEventMutations,e,this.state,Object.keys(e))}},{key:"cacheSharedEvents",value:function(t,e,r){this.sharedEventsCache[t]=[e,r]}},{key:"getCachedSharedEvents",value:function(t,e){var r,n,o=(r=this.sharedEventsCache[t]||[],n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(r,n)||et(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];if(i&&Y()(e,u))return i}},{key:"getBaseProps",value:function(t){var e=t.container,r=s().Children.toArray(this.props.children),n=this.getBasePropsFromChildren(r),o=e?e.props:{};return Object.assign({},n,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var r=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,a,c){return t.reduce((function(t,n,l){var f=t,p=n.type&&n.type.role,v=n.props.name||"".concat(p,"-").concat(a[l]);if(n.props&&n.props.children){var h=Object.assign({},n.props,b()(r,i)),y=n.type&&"stack"===n.type.role&&g(n.type.getChildren)?n.type.getChildren(h):s().Children.toArray(n.props.children).map((function(t){var e=Object.assign({},t.props,b()(h,i));return s().cloneElement(t,e)})),d=y.map((function(t,e){return"".concat(v,"-").concat(e)})),m=u(y,d,n);f=o(f,m)}else{var x=e(n,v,c);x&&(f=o(f,x))}return f}),n)},a=t.filter(c.isValidElement),l=a.map((function(t,e){return e}));return u(a,l)}(t,(function(t,e){if(t.type&&g(t.type.getBaseProps)){var r=t.props&&t.type.getBaseProps(t.props);return r?[[e,r]]:null}return null}));return e()(r)}},{key:"getNewChildren",value:function(t,e){var r=this,n=t.events,o=t.eventKey,i=function(t,u){return t.reduce((function(t,a,c){if(a.props.children){var l=s().Children.toArray(a.props.children),f=u.slice(c,c+l.length),p=s().cloneElement(a,a.props,i(l,f));return t.concat(p)}if("parent"!==u[c]&&a.type&&g(a.type.getBaseProps)){var v=a.props.name||u[c],h=Array.isArray(n)&&n.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(v)>-1:t.childName===v||"all"===t.childName)})),y=[v,e,h,tt()(r.state[v])],d=r.getCachedSharedEvents(v,y)||{events:h,getEvents:function(t,n){return r.getScopedEvents(t,n,v,e)},getEventState:function(t,e){return r.getEventState(t,e,v)}};return r.cacheSharedEvents(v,d,y),t.concat(s().cloneElement(a,Object.assign({key:"events-".concat(v),sharedEvents:d,eventKey:o,name:v},a.props)))}return t.concat(a)}),[])},u=Object.keys(e),a=s().Children.toArray(t.children);return i(a,u)}},{key:"getContainer",value:function(t,e,r){var n=this,o=this.getNewChildren(t,e),i=Array.isArray(r)?r.filter((function(t){return"parent"===t.target})):[],u=i.length>0?{events:i,getEvents:function(t,r){return n.getScopedEvents(t,r,null,e)},getEventState:this.getEventState}:null,c=t.container||t.groupComponent,l=c.type&&c.type.role,f=c.props||{},p=E.bind(this),h=u&&p({sharedEvents:u},"parent"),d=a()({},this.getEventState("parent","parent"),f,e.parent,{children:o}),b=a()({},function(t,e,r){return t?Object.keys(t).reduce((function(e,n){return e[n]=function(e){return t[n](e,r,"parent",n)},e}),{}):{}}(h,0,d),f.events);this.globalEvents=function(t){return y()(t,(function(t,e){return O.test(e)}))}(b);var g=function(t){return v()(t,(function(t,e){return O.test(e)}))}(b);return"container"===l?s().cloneElement(c,Object.assign({},d,{events:g})):s().cloneElement(c,g,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):s().cloneElement(this.props.container,{children:this.props.children})}}],n&&nt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),f}(s().Component);ct.displayName="VictorySharedEvents",ct.role="shared-event-wrapper",ct.contextType=Q,ct.defaultProps={groupComponent:s().createElement("g",null)}})(),o})()));
2
2
  //# sourceMappingURL=victory-shared-events.min.js.map
package/es/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-shared-events";
1
+ export * from "./victory-shared-events";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,51 +1,51 @@
1
- /// <reference types="lodash" />
2
- import React from "react";
3
- import { EventCallbackInterface, EventMixinCalculatedValues, EventPropTypeInterface, StringOrNumberOrCallback } from "victory-core";
4
- export declare type VictorySharedEventsProps = {
5
- children?: React.ReactElement | React.ReactElement[];
6
- container?: React.ReactElement;
7
- groupComponent?: React.ReactElement;
8
- events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
9
- eventKey?: StringOrNumberOrCallback;
10
- externalEventMutations?: EventCallbackInterface<string | string[], string | number | (string | number)[]>[];
11
- };
12
- export interface VictorySharedEvents extends EventMixinCalculatedValues {
13
- }
14
- export declare class VictorySharedEvents extends React.Component<VictorySharedEventsProps> {
15
- static displayName: string;
16
- static role: string;
17
- static contextType: React.Context<{
18
- transitionTimer: import("victory-core").Timer;
19
- animationTimer: import("victory-core").Timer;
20
- }>;
21
- static defaultProps: {
22
- groupComponent: JSX.Element;
23
- };
24
- getScopedEvents: any;
25
- getEventState: any;
26
- baseProps: any;
27
- sharedEventsCache: any;
28
- globalEvents: any;
29
- prevGlobalEventKeys: any;
30
- boundGlobalEvents: any;
31
- constructor(props: VictorySharedEventsProps);
32
- shouldComponentUpdate(nextProps: any): boolean;
33
- componentDidMount(): void;
34
- componentDidUpdate(): void;
35
- componentWillUnmount(): void;
36
- addGlobalListener(key: any): void;
37
- removeGlobalListener(key: any): void;
38
- getAllEvents(props: any): any;
39
- applyExternalMutations(props: any, externalMutations: any): void;
40
- getExternalMutations(props: any, baseProps: any): any;
41
- cacheSharedEvents(name: any, sharedEvents: any, cacheValues: any): void;
42
- getCachedSharedEvents(name: any, cacheValues: any): any;
43
- getBaseProps(props: any): import("lodash").Dictionary<any> & {
44
- parent: any;
45
- };
46
- getBasePropsFromChildren(childComponents: any): import("lodash").Dictionary<any>;
47
- getNewChildren(props: any, baseProps: any): any;
48
- getContainer(props: any, baseProps: any, events: any): React.DetailedReactHTMLElement<any, HTMLElement>;
49
- render(): React.ReactElement;
50
- }
1
+ /// <reference types="lodash" />
2
+ import React from "react";
3
+ import { EventCallbackInterface, EventMixinCalculatedValues, EventPropTypeInterface, StringOrNumberOrCallback } from "victory-core";
4
+ export declare type VictorySharedEventsProps = {
5
+ children?: React.ReactElement | React.ReactElement[];
6
+ container?: React.ReactElement;
7
+ groupComponent?: React.ReactElement;
8
+ events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
9
+ eventKey?: StringOrNumberOrCallback;
10
+ externalEventMutations?: EventCallbackInterface<string | string[], string | number | (string | number)[]>[];
11
+ };
12
+ export interface VictorySharedEvents extends EventMixinCalculatedValues {
13
+ }
14
+ export declare class VictorySharedEvents extends React.Component<VictorySharedEventsProps> {
15
+ static displayName: string;
16
+ static role: string;
17
+ static contextType: React.Context<{
18
+ transitionTimer: import("victory-core").Timer;
19
+ animationTimer: import("victory-core").Timer;
20
+ }>;
21
+ static defaultProps: {
22
+ groupComponent: JSX.Element;
23
+ };
24
+ getScopedEvents: any;
25
+ getEventState: any;
26
+ baseProps: any;
27
+ sharedEventsCache: any;
28
+ globalEvents: any;
29
+ prevGlobalEventKeys: any;
30
+ boundGlobalEvents: any;
31
+ constructor(props: VictorySharedEventsProps);
32
+ shouldComponentUpdate(nextProps: any): boolean;
33
+ componentDidMount(): void;
34
+ componentDidUpdate(): void;
35
+ componentWillUnmount(): void;
36
+ addGlobalListener(key: any): void;
37
+ removeGlobalListener(key: any): void;
38
+ getAllEvents(props: any): any;
39
+ applyExternalMutations(props: any, externalMutations: any): void;
40
+ getExternalMutations(props: any, baseProps: any): any;
41
+ cacheSharedEvents(name: any, sharedEvents: any, cacheValues: any): void;
42
+ getCachedSharedEvents(name: any, cacheValues: any): any;
43
+ getBaseProps(props: any): import("lodash").Dictionary<any> & {
44
+ parent: any;
45
+ };
46
+ getBasePropsFromChildren(childComponents: any): import("lodash").Dictionary<any>;
47
+ getNewChildren(props: any, baseProps: any): any;
48
+ getContainer(props: any, baseProps: any, events: any): React.DetailedReactHTMLElement<any, HTMLElement>;
49
+ render(): React.ReactElement;
50
+ }
51
51
  //# sourceMappingURL=victory-shared-events.d.ts.map
@@ -1,4 +1,3 @@
1
- import _difference from "lodash/difference";
2
1
  import _fromPairs from "lodash/fromPairs";
3
2
  import _isEmpty from "lodash/isEmpty";
4
3
  import _defaults from "lodash/defaults";
@@ -44,7 +43,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
44
43
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
44
 
46
45
  import React from "react";
47
- import { Events, Helpers, TimerContext } from "victory-core";
46
+ import { Collection, Events, Helpers, TimerContext } from "victory-core";
48
47
  import isEqual from "react-fast-compare";
49
48
  import stringify from "json-stringify-safe";
50
49
  export var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
@@ -104,15 +103,11 @@ export var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
104
103
  var _this3 = this;
105
104
 
106
105
  var globalEventKeys = Object.keys(this.globalEvents);
107
-
108
- var removedGlobalEventKeys = _difference(this.prevGlobalEventKeys, globalEventKeys);
109
-
106
+ var removedGlobalEventKeys = Collection.difference(this.prevGlobalEventKeys, globalEventKeys);
110
107
  removedGlobalEventKeys.forEach(function (key) {
111
108
  return _this3.removeGlobalListener(key);
112
109
  });
113
-
114
- var addedGlobalEventKeys = _difference(globalEventKeys, this.prevGlobalEventKeys);
115
-
110
+ var addedGlobalEventKeys = Collection.difference(globalEventKeys, this.prevGlobalEventKeys);
116
111
  addedGlobalEventKeys.forEach(function (key) {
117
112
  return _this3.addGlobalListener(key);
118
113
  });
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-shared-events";
1
+ export * from "./victory-shared-events";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,51 +1,51 @@
1
- /// <reference types="lodash" />
2
- import React from "react";
3
- import { EventCallbackInterface, EventMixinCalculatedValues, EventPropTypeInterface, StringOrNumberOrCallback } from "victory-core";
4
- export declare type VictorySharedEventsProps = {
5
- children?: React.ReactElement | React.ReactElement[];
6
- container?: React.ReactElement;
7
- groupComponent?: React.ReactElement;
8
- events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
9
- eventKey?: StringOrNumberOrCallback;
10
- externalEventMutations?: EventCallbackInterface<string | string[], string | number | (string | number)[]>[];
11
- };
12
- export interface VictorySharedEvents extends EventMixinCalculatedValues {
13
- }
14
- export declare class VictorySharedEvents extends React.Component<VictorySharedEventsProps> {
15
- static displayName: string;
16
- static role: string;
17
- static contextType: React.Context<{
18
- transitionTimer: import("victory-core").Timer;
19
- animationTimer: import("victory-core").Timer;
20
- }>;
21
- static defaultProps: {
22
- groupComponent: JSX.Element;
23
- };
24
- getScopedEvents: any;
25
- getEventState: any;
26
- baseProps: any;
27
- sharedEventsCache: any;
28
- globalEvents: any;
29
- prevGlobalEventKeys: any;
30
- boundGlobalEvents: any;
31
- constructor(props: VictorySharedEventsProps);
32
- shouldComponentUpdate(nextProps: any): boolean;
33
- componentDidMount(): void;
34
- componentDidUpdate(): void;
35
- componentWillUnmount(): void;
36
- addGlobalListener(key: any): void;
37
- removeGlobalListener(key: any): void;
38
- getAllEvents(props: any): any;
39
- applyExternalMutations(props: any, externalMutations: any): void;
40
- getExternalMutations(props: any, baseProps: any): any;
41
- cacheSharedEvents(name: any, sharedEvents: any, cacheValues: any): void;
42
- getCachedSharedEvents(name: any, cacheValues: any): any;
43
- getBaseProps(props: any): import("lodash").Dictionary<any> & {
44
- parent: any;
45
- };
46
- getBasePropsFromChildren(childComponents: any): import("lodash").Dictionary<any>;
47
- getNewChildren(props: any, baseProps: any): any;
48
- getContainer(props: any, baseProps: any, events: any): React.DetailedReactHTMLElement<any, HTMLElement>;
49
- render(): React.ReactElement;
50
- }
1
+ /// <reference types="lodash" />
2
+ import React from "react";
3
+ import { EventCallbackInterface, EventMixinCalculatedValues, EventPropTypeInterface, StringOrNumberOrCallback } from "victory-core";
4
+ export declare type VictorySharedEventsProps = {
5
+ children?: React.ReactElement | React.ReactElement[];
6
+ container?: React.ReactElement;
7
+ groupComponent?: React.ReactElement;
8
+ events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
9
+ eventKey?: StringOrNumberOrCallback;
10
+ externalEventMutations?: EventCallbackInterface<string | string[], string | number | (string | number)[]>[];
11
+ };
12
+ export interface VictorySharedEvents extends EventMixinCalculatedValues {
13
+ }
14
+ export declare class VictorySharedEvents extends React.Component<VictorySharedEventsProps> {
15
+ static displayName: string;
16
+ static role: string;
17
+ static contextType: React.Context<{
18
+ transitionTimer: import("victory-core").Timer;
19
+ animationTimer: import("victory-core").Timer;
20
+ }>;
21
+ static defaultProps: {
22
+ groupComponent: JSX.Element;
23
+ };
24
+ getScopedEvents: any;
25
+ getEventState: any;
26
+ baseProps: any;
27
+ sharedEventsCache: any;
28
+ globalEvents: any;
29
+ prevGlobalEventKeys: any;
30
+ boundGlobalEvents: any;
31
+ constructor(props: VictorySharedEventsProps);
32
+ shouldComponentUpdate(nextProps: any): boolean;
33
+ componentDidMount(): void;
34
+ componentDidUpdate(): void;
35
+ componentWillUnmount(): void;
36
+ addGlobalListener(key: any): void;
37
+ removeGlobalListener(key: any): void;
38
+ getAllEvents(props: any): any;
39
+ applyExternalMutations(props: any, externalMutations: any): void;
40
+ getExternalMutations(props: any, baseProps: any): any;
41
+ cacheSharedEvents(name: any, sharedEvents: any, cacheValues: any): void;
42
+ getCachedSharedEvents(name: any, cacheValues: any): any;
43
+ getBaseProps(props: any): import("lodash").Dictionary<any> & {
44
+ parent: any;
45
+ };
46
+ getBasePropsFromChildren(childComponents: any): import("lodash").Dictionary<any>;
47
+ getNewChildren(props: any, baseProps: any): any;
48
+ getContainer(props: any, baseProps: any, events: any): React.DetailedReactHTMLElement<any, HTMLElement>;
49
+ render(): React.ReactElement;
50
+ }
51
51
  //# sourceMappingURL=victory-shared-events.d.ts.map
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VictorySharedEvents = void 0;
7
7
 
8
- var _difference2 = _interopRequireDefault(require("lodash/difference"));
9
-
10
8
  var _fromPairs2 = _interopRequireDefault(require("lodash/fromPairs"));
11
9
 
12
10
  var _isEmpty2 = _interopRequireDefault(require("lodash/isEmpty"));
@@ -120,11 +118,15 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
120
118
  var _this3 = this;
121
119
 
122
120
  var globalEventKeys = Object.keys(this.globalEvents);
123
- var removedGlobalEventKeys = (0, _difference2.default)(this.prevGlobalEventKeys, globalEventKeys);
121
+
122
+ var removedGlobalEventKeys = _victoryCore.Collection.difference(this.prevGlobalEventKeys, globalEventKeys);
123
+
124
124
  removedGlobalEventKeys.forEach(function (key) {
125
125
  return _this3.removeGlobalListener(key);
126
126
  });
127
- var addedGlobalEventKeys = (0, _difference2.default)(globalEventKeys, this.prevGlobalEventKeys);
127
+
128
+ var addedGlobalEventKeys = _victoryCore.Collection.difference(globalEventKeys, this.prevGlobalEventKeys);
129
+
128
130
  addedGlobalEventKeys.forEach(function (key) {
129
131
  return _this3.addGlobalListener(key);
130
132
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-shared-events",
3
- "version": "36.9.2-next.1",
3
+ "version": "36.9.2",
4
4
  "description": "Shared Event Helper for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -12,7 +12,7 @@
12
12
  "type": "git",
13
13
  "url": "https://github.com/FormidableLabs/victory"
14
14
  },
15
- "homepage": "https://formidable.com/open-source/victory",
15
+ "homepage": "https://commerce.nearform.com/open-source/victory",
16
16
  "sideEffects": false,
17
17
  "main": "lib/index.js",
18
18
  "module": "es/index.js",
@@ -23,11 +23,14 @@
23
23
  "json-stringify-safe": "^5.0.1",
24
24
  "lodash": "^4.17.19",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-core": "^36.9.2-next.1"
26
+ "victory-core": "^36.9.2"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
30
30
  },
31
+ "publishConfig": {
32
+ "provenance": true
33
+ },
31
34
  "wireit": {
32
35
  "### THESE WIREIT CONFIGS ARE GENERATED ####": {},
33
36
  "### DO NOT MODIFY THESE MANUALLY ####": {},
@@ -1,6 +1,7 @@
1
- import { defaults, isEmpty, fromPairs, difference } from "lodash";
1
+ import { defaults, isEmpty, fromPairs } from "lodash";
2
2
  import React from "react";
3
3
  import {
4
+ Collection,
4
5
  EventCallbackInterface,
5
6
  EventMixinCalculatedValues,
6
7
  EventPropTypeInterface,
@@ -81,12 +82,12 @@ export class VictorySharedEvents extends React.Component<VictorySharedEventsProp
81
82
 
82
83
  componentDidUpdate() {
83
84
  const globalEventKeys = Object.keys(this.globalEvents);
84
- const removedGlobalEventKeys = difference(
85
+ const removedGlobalEventKeys = Collection.difference(
85
86
  this.prevGlobalEventKeys,
86
87
  globalEventKeys,
87
88
  );
88
89
  removedGlobalEventKeys.forEach((key) => this.removeGlobalListener(key));
89
- const addedGlobalEventKeys = difference(
90
+ const addedGlobalEventKeys = Collection.difference(
90
91
  globalEventKeys,
91
92
  this.prevGlobalEventKeys,
92
93
  );