victory-pie 35.11.3 → 36.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -534,9 +534,7 @@ var fallbackProps = {
534
534
  labelPosition: "centroid"
535
535
  };
536
536
 
537
- var VictoryPie =
538
- /*#__PURE__*/
539
- function (_React$Component) {
537
+ var VictoryPie = /*#__PURE__*/function (_React$Component) {
540
538
  _inherits(VictoryPie, _React$Component);
541
539
 
542
540
  function VictoryPie() {
@@ -635,7 +633,7 @@ Object.defineProperty(VictoryPie, "propTypes", {
635
633
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)]),
636
634
  events: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
637
635
  target: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(["data", "labels", "parent"]),
638
- eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)]),
636
+ eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)]),
639
637
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
640
638
  })),
641
639
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
@@ -14267,7 +14265,7 @@ __webpack_require__.r(__webpack_exports__);
14267
14265
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
14268
14266
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
14269
14267
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
14270
- /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-core/node_modules/d3-interpolate/src/value.js");
14268
+ /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/value.js");
14271
14269
 
14272
14270
 
14273
14271
 
@@ -14530,9 +14528,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
14530
14528
 
14531
14529
 
14532
14530
 
14533
- var VictoryAnimation =
14534
- /*#__PURE__*/
14535
- function (_React$Component) {
14531
+ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
14536
14532
  _inherits(VictoryAnimation, _React$Component);
14537
14533
 
14538
14534
  function VictoryAnimation(props, context) {
@@ -14816,9 +14812,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
14816
14812
 
14817
14813
 
14818
14814
 
14819
- var VictoryContainer =
14820
- /*#__PURE__*/
14821
- function (_React$Component) {
14815
+ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
14822
14816
  _inherits(VictoryContainer, _React$Component);
14823
14817
 
14824
14818
  function VictoryContainer(props) {
@@ -15176,7 +15170,7 @@ var getSingleValue = function (prop) {
15176
15170
  return Array.isArray(prop) ? prop[index] || prop[0] : prop;
15177
15171
  };
15178
15172
 
15179
- var useMultiLineBackgrounds = function (props) {
15173
+ var shouldUseMultilineBackgrounds = function (props) {
15180
15174
  var backgroundStyle = props.backgroundStyle,
15181
15175
  backgroundPadding = props.backgroundPadding;
15182
15176
  return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
@@ -15468,7 +15462,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
15468
15462
  };
15469
15463
 
15470
15464
  var getBackgroundElement = function (calculatedProps, tspanValues) {
15471
- return useMultiLineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
15465
+ return shouldUseMultilineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
15472
15466
  };
15473
15467
 
15474
15468
  var calculateSpanDy = function (tspanValues, i, calculatedProps) {
@@ -15479,7 +15473,7 @@ var calculateSpanDy = function (tspanValues, i, calculatedProps) {
15479
15473
  var previousCaps = previous.fontSize - previous.capHeight;
15480
15474
  var currentCaps = current.fontSize - current.capHeight;
15481
15475
  var textHeight = previousHeight - previous.fontSize / 2 + current.fontSize / 2 - previousHeight / 2 + currentHeight / 2 - currentCaps / 2 + previousCaps / 2;
15482
- return useMultiLineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
15476
+ return shouldUseMultilineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
15483
15477
  };
15484
15478
 
15485
15479
  var getTSpanDy = function (tspanValues, calculatedProps, i) {
@@ -15764,9 +15758,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
15764
15758
 
15765
15759
 
15766
15760
 
15767
- var Portal =
15768
- /*#__PURE__*/
15769
- function (_React$Component) {
15761
+ var Portal = /*#__PURE__*/function (_React$Component) {
15770
15762
  _inherits(Portal, _React$Component);
15771
15763
 
15772
15764
  function Portal(props) {
@@ -15885,9 +15877,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
15885
15877
 
15886
15878
 
15887
15879
 
15888
- var VictoryPortal =
15889
- /*#__PURE__*/
15890
- function (_React$Component) {
15880
+ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
15891
15881
  _inherits(VictoryPortal, _React$Component);
15892
15882
 
15893
15883
  function VictoryPortal() {
@@ -16779,9 +16769,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
16779
16769
 
16780
16770
 
16781
16771
 
16782
- var VictoryTransition =
16783
- /*#__PURE__*/
16784
- function (_React$Component) {
16772
+ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
16785
16773
  _inherits(VictoryTransition, _React$Component);
16786
16774
 
16787
16775
  function VictoryTransition(props, context) {
@@ -17082,365 +17070,362 @@ var defaultComponents = [{
17082
17070
  name: "labels"
17083
17071
  }];
17084
17072
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
17085
- return (
17086
- /*#__PURE__*/
17087
- function (_WrappedComponent) {
17088
- _inherits(addEvents, _WrappedComponent);
17073
+ return /*#__PURE__*/function (_WrappedComponent) {
17074
+ _inherits(addEvents, _WrappedComponent);
17089
17075
 
17090
- function addEvents(props) {
17091
- var _this;
17076
+ function addEvents(props) {
17077
+ var _this;
17092
17078
 
17093
- _classCallCheck(this, addEvents);
17079
+ _classCallCheck(this, addEvents);
17094
17080
 
17095
- _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
17096
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
17097
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
17098
- _this.state = {};
17081
+ _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
17082
+ var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
17083
+ var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
17084
+ _this.state = {};
17099
17085
 
17100
- _this.getEvents = function (p, target, eventKey) {
17101
- return boundGetEvents(p, target, eventKey, getScopedEvents);
17102
- };
17103
-
17104
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
17086
+ _this.getEvents = function (p, target, eventKey) {
17087
+ return boundGetEvents(p, target, eventKey, getScopedEvents);
17088
+ };
17105
17089
 
17106
- var calculatedValues = _this.getCalculatedValues(props);
17090
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
17107
17091
 
17108
- _this.cacheValues(calculatedValues);
17092
+ var calculatedValues = _this.getCalculatedValues(props);
17109
17093
 
17110
- _this.externalMutations = _this.getExternalMutations(props);
17111
- _this.calculatedState = _this.getStateChanges(props);
17112
- _this.globalEvents = {};
17113
- _this.prevGlobalEventKeys = [];
17114
- _this.boundGlobalEvents = {};
17115
- return _this;
17116
- }
17094
+ _this.cacheValues(calculatedValues);
17117
17095
 
17118
- _createClass(addEvents, [{
17119
- key: "shouldComponentUpdate",
17120
- value: function shouldComponentUpdate(nextProps) {
17121
- var externalMutations = this.getExternalMutations(nextProps);
17122
- var animating = this.props.animating || this.props.animate;
17123
- var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
17124
-
17125
- if (animating || newMutation) {
17126
- this.cacheValues(this.getCalculatedValues(nextProps));
17127
- this.externalMutations = externalMutations;
17128
- this.applyExternalMutations(nextProps, externalMutations);
17129
- return true;
17130
- }
17096
+ _this.externalMutations = _this.getExternalMutations(props);
17097
+ _this.calculatedState = _this.getStateChanges(props);
17098
+ _this.globalEvents = {};
17099
+ _this.prevGlobalEventKeys = [];
17100
+ _this.boundGlobalEvents = {};
17101
+ return _this;
17102
+ }
17131
17103
 
17132
- var calculatedState = this.getStateChanges(nextProps);
17104
+ _createClass(addEvents, [{
17105
+ key: "shouldComponentUpdate",
17106
+ value: function shouldComponentUpdate(nextProps) {
17107
+ var externalMutations = this.getExternalMutations(nextProps);
17108
+ var animating = this.props.animating || this.props.animate;
17109
+ var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
17110
+
17111
+ if (animating || newMutation) {
17112
+ this.cacheValues(this.getCalculatedValues(nextProps));
17113
+ this.externalMutations = externalMutations;
17114
+ this.applyExternalMutations(nextProps, externalMutations);
17115
+ return true;
17116
+ }
17133
17117
 
17134
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
17135
- this.cacheValues(this.getCalculatedValues(nextProps));
17136
- return true;
17137
- }
17118
+ var calculatedState = this.getStateChanges(nextProps);
17138
17119
 
17139
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
17140
- this.cacheValues(this.getCalculatedValues(nextProps));
17141
- return true;
17142
- }
17120
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
17121
+ this.cacheValues(this.getCalculatedValues(nextProps));
17122
+ return true;
17123
+ }
17143
17124
 
17144
- return false;
17125
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
17126
+ this.cacheValues(this.getCalculatedValues(nextProps));
17127
+ return true;
17145
17128
  }
17146
- }, {
17147
- key: "componentDidMount",
17148
- value: function componentDidMount() {
17149
- var _this2 = this;
17150
17129
 
17151
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
17130
+ return false;
17131
+ }
17132
+ }, {
17133
+ key: "componentDidMount",
17134
+ value: function componentDidMount() {
17135
+ var _this2 = this;
17152
17136
 
17153
- globalEventKeys.forEach(function (key) {
17154
- return _this2.addGlobalListener(key);
17155
- });
17156
- this.prevGlobalEventKeys = globalEventKeys;
17157
- }
17158
- }, {
17159
- key: "componentDidUpdate",
17160
- value: function componentDidUpdate(prevProps) {
17161
- var _this3 = this;
17137
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
17162
17138
 
17163
- var calculatedState = this.getStateChanges(prevProps);
17164
- this.calculatedState = calculatedState;
17139
+ globalEventKeys.forEach(function (key) {
17140
+ return _this2.addGlobalListener(key);
17141
+ });
17142
+ this.prevGlobalEventKeys = globalEventKeys;
17143
+ }
17144
+ }, {
17145
+ key: "componentDidUpdate",
17146
+ value: function componentDidUpdate(prevProps) {
17147
+ var _this3 = this;
17165
17148
 
17166
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
17149
+ var calculatedState = this.getStateChanges(prevProps);
17150
+ this.calculatedState = calculatedState;
17167
17151
 
17168
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
17152
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
17169
17153
 
17170
- removedGlobalEventKeys.forEach(function (key) {
17171
- return _this3.removeGlobalListener(key);
17172
- });
17154
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
17173
17155
 
17174
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
17156
+ removedGlobalEventKeys.forEach(function (key) {
17157
+ return _this3.removeGlobalListener(key);
17158
+ });
17175
17159
 
17176
- addedGlobalEventKeys.forEach(function (key) {
17177
- return _this3.addGlobalListener(key);
17178
- });
17179
- this.prevGlobalEventKeys = globalEventKeys;
17180
- }
17181
- }, {
17182
- key: "componentWillUnmount",
17183
- value: function componentWillUnmount() {
17184
- var _this4 = this;
17160
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
17185
17161
 
17186
- this.prevGlobalEventKeys.forEach(function (key) {
17187
- return _this4.removeGlobalListener(key);
17188
- });
17189
- }
17190
- }, {
17191
- key: "addGlobalListener",
17192
- value: function addGlobalListener(key) {
17193
- var _this5 = this;
17194
-
17195
- var boundListener = function (event) {
17196
- var listener = _this5.globalEvents[key];
17197
- return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
17198
- };
17162
+ addedGlobalEventKeys.forEach(function (key) {
17163
+ return _this3.addGlobalListener(key);
17164
+ });
17165
+ this.prevGlobalEventKeys = globalEventKeys;
17166
+ }
17167
+ }, {
17168
+ key: "componentWillUnmount",
17169
+ value: function componentWillUnmount() {
17170
+ var _this4 = this;
17199
17171
 
17200
- this.boundGlobalEvents[key] = boundListener;
17201
- window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
17202
- }
17203
- }, {
17204
- key: "removeGlobalListener",
17205
- value: function removeGlobalListener(key) {
17206
- window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
17207
- } // compile all state changes from own and parent state. Order doesn't matter, as any state
17208
- // state change should trigger a re-render
17209
-
17210
- }, {
17211
- key: "getStateChanges",
17212
- value: function getStateChanges(props) {
17213
- var _this6 = this;
17214
-
17215
- if (!this.hasEvents) {
17216
- return {};
17217
- }
17172
+ this.prevGlobalEventKeys.forEach(function (key) {
17173
+ return _this4.removeGlobalListener(key);
17174
+ });
17175
+ }
17176
+ }, {
17177
+ key: "addGlobalListener",
17178
+ value: function addGlobalListener(key) {
17179
+ var _this5 = this;
17218
17180
 
17219
- var getState = function (key, type) {
17220
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
17181
+ var boundListener = function (event) {
17182
+ var listener = _this5.globalEvents[key];
17183
+ return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
17184
+ };
17221
17185
 
17222
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
17223
- };
17186
+ this.boundGlobalEvents[key] = boundListener;
17187
+ window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
17188
+ }
17189
+ }, {
17190
+ key: "removeGlobalListener",
17191
+ value: function removeGlobalListener(key) {
17192
+ window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
17193
+ } // compile all state changes from own and parent state. Order doesn't matter, as any state
17194
+ // state change should trigger a re-render
17224
17195
 
17225
- options = options || {};
17226
- var components = options.components || defaultComponents;
17227
- var stateChanges = components.map(function (component) {
17228
- if (!props.standalone && component.name === "parent") {
17229
- // don't check for changes on parent props for non-standalone components
17230
- return undefined;
17231
- } else {
17232
- return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
17233
- return getState(key, component.name);
17234
- }).filter(Boolean);
17235
- }
17236
- }).filter(Boolean);
17237
- return stateChanges;
17238
- }
17239
- }, {
17240
- key: "applyExternalMutations",
17241
- value: function applyExternalMutations(props, externalMutations) {
17242
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
17243
- var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
17244
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
17245
- return memo;
17246
- }, []);
17247
- var compiledCallbacks = callbacks.length ? function () {
17248
- callbacks.forEach(function (c) {
17249
- return c();
17250
- });
17251
- } : undefined;
17252
- this.setState(externalMutations, compiledCallbacks);
17253
- }
17196
+ }, {
17197
+ key: "getStateChanges",
17198
+ value: function getStateChanges(props) {
17199
+ var _this6 = this;
17200
+
17201
+ if (!this.hasEvents) {
17202
+ return {};
17254
17203
  }
17255
- }, {
17256
- key: "getCalculatedValues",
17257
- value: function getCalculatedValues(props) {
17258
- var sharedEvents = props.sharedEvents;
17259
- var components = WrappedComponent.expectedComponents;
17260
- var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
17261
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
17262
- return undefined;
17263
- };
17264
- var baseProps = this.getBaseProps(props, getSharedEventState);
17265
17204
 
17266
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
17267
- return key !== "parent";
17268
- });
17205
+ var getState = function (key, type) {
17206
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
17269
17207
 
17270
- var hasEvents = props.events || props.sharedEvents || componentEvents;
17271
- var events = this.getAllEvents(props);
17272
- return {
17273
- componentEvents: componentEvents,
17274
- getSharedEventState: getSharedEventState,
17275
- baseProps: baseProps,
17276
- dataKeys: dataKeys,
17277
- hasEvents: hasEvents,
17278
- events: events
17279
- };
17280
- }
17281
- }, {
17282
- key: "getExternalMutations",
17283
- value: function getExternalMutations(props) {
17284
- var sharedEvents = props.sharedEvents,
17285
- externalEventMutations = props.externalEventMutations;
17286
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
17287
- }
17288
- }, {
17289
- key: "cacheValues",
17290
- value: function cacheValues(obj) {
17291
- var _this7 = this;
17208
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
17209
+ };
17292
17210
 
17293
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
17294
- _this7[key] = obj[key];
17295
- });
17211
+ options = options || {};
17212
+ var components = options.components || defaultComponents;
17213
+ var stateChanges = components.map(function (component) {
17214
+ if (!props.standalone && component.name === "parent") {
17215
+ // don't check for changes on parent props for non-standalone components
17216
+ return undefined;
17217
+ } else {
17218
+ return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
17219
+ return getState(key, component.name);
17220
+ }).filter(Boolean);
17221
+ }
17222
+ }).filter(Boolean);
17223
+ return stateChanges;
17224
+ }
17225
+ }, {
17226
+ key: "applyExternalMutations",
17227
+ value: function applyExternalMutations(props, externalMutations) {
17228
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
17229
+ var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
17230
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
17231
+ return memo;
17232
+ }, []);
17233
+ var compiledCallbacks = callbacks.length ? function () {
17234
+ callbacks.forEach(function (c) {
17235
+ return c();
17236
+ });
17237
+ } : undefined;
17238
+ this.setState(externalMutations, compiledCallbacks);
17296
17239
  }
17297
- }, {
17298
- key: "getBaseProps",
17299
- value: function getBaseProps(props, getSharedEventState) {
17300
- getSharedEventState = getSharedEventState || this.getSharedEventState;
17301
- var sharedParentState = getSharedEventState("parent", "parent");
17302
- var parentState = this.getEventState("parent", "parent");
17240
+ }
17241
+ }, {
17242
+ key: "getCalculatedValues",
17243
+ value: function getCalculatedValues(props) {
17244
+ var sharedEvents = props.sharedEvents;
17245
+ var components = WrappedComponent.expectedComponents;
17246
+ var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
17247
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
17248
+ return undefined;
17249
+ };
17250
+ var baseProps = this.getBaseProps(props, getSharedEventState);
17303
17251
 
17304
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
17252
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
17253
+ return key !== "parent";
17254
+ });
17305
17255
 
17306
- var parentPropsList = baseParentProps.parentControlledProps;
17307
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
17256
+ var hasEvents = props.events || props.sharedEvents || componentEvents;
17257
+ var events = this.getAllEvents(props);
17258
+ return {
17259
+ componentEvents: componentEvents,
17260
+ getSharedEventState: getSharedEventState,
17261
+ baseProps: baseProps,
17262
+ dataKeys: dataKeys,
17263
+ hasEvents: hasEvents,
17264
+ events: events
17265
+ };
17266
+ }
17267
+ }, {
17268
+ key: "getExternalMutations",
17269
+ value: function getExternalMutations(props) {
17270
+ var sharedEvents = props.sharedEvents,
17271
+ externalEventMutations = props.externalEventMutations;
17272
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
17273
+ }
17274
+ }, {
17275
+ key: "cacheValues",
17276
+ value: function cacheValues(obj) {
17277
+ var _this7 = this;
17308
17278
 
17309
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
17279
+ lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
17280
+ _this7[key] = obj[key];
17281
+ });
17282
+ }
17283
+ }, {
17284
+ key: "getBaseProps",
17285
+ value: function getBaseProps(props, getSharedEventState) {
17286
+ getSharedEventState = getSharedEventState || this.getSharedEventState;
17287
+ var sharedParentState = getSharedEventState("parent", "parent");
17288
+ var parentState = this.getEventState("parent", "parent");
17310
17289
 
17311
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
17312
- }
17313
- }, {
17314
- key: "getAllEvents",
17315
- value: function getAllEvents(props) {
17316
- if (Array.isArray(this.componentEvents)) {
17317
- var _componentEvents;
17290
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
17318
17291
 
17319
- return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
17320
- }
17292
+ var parentPropsList = baseParentProps.parentControlledProps;
17293
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
17321
17294
 
17322
- return props.events;
17323
- }
17324
- }, {
17325
- key: "getComponentProps",
17326
- value: function getComponentProps(component, type, index) {
17327
- var name = this.props.name || WrappedComponent.role;
17328
- var key = this.dataKeys && this.dataKeys[index] || index;
17329
- var id = "".concat(name, "-").concat(type, "-").concat(key);
17330
- var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
17331
-
17332
- if (!baseProps && !this.hasEvents) {
17333
- return undefined;
17334
- }
17295
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
17335
17296
 
17336
- if (this.hasEvents) {
17337
- var baseEvents = this.getEvents(this.props, type, key);
17297
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
17298
+ }
17299
+ }, {
17300
+ key: "getAllEvents",
17301
+ value: function getAllEvents(props) {
17302
+ if (Array.isArray(this.componentEvents)) {
17303
+ var _componentEvents;
17338
17304
 
17339
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
17340
- index: index,
17341
- key: id
17342
- }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
17343
- id: id
17344
- });
17305
+ return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
17306
+ }
17345
17307
 
17346
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
17308
+ return props.events;
17309
+ }
17310
+ }, {
17311
+ key: "getComponentProps",
17312
+ value: function getComponentProps(component, type, index) {
17313
+ var name = this.props.name || WrappedComponent.role;
17314
+ var key = this.dataKeys && this.dataKeys[index] || index;
17315
+ var id = "".concat(name, "-").concat(type, "-").concat(key);
17316
+ var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
17317
+
17318
+ if (!baseProps && !this.hasEvents) {
17319
+ return undefined;
17320
+ }
17347
17321
 
17348
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
17349
- events: events
17350
- });
17351
- }
17322
+ if (this.hasEvents) {
17323
+ var baseEvents = this.getEvents(this.props, type, key);
17352
17324
 
17353
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
17325
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
17354
17326
  index: index,
17355
17327
  key: id
17356
- }, component.props, baseProps, {
17328
+ }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
17357
17329
  id: id
17358
17330
  });
17359
- }
17360
- }, {
17361
- key: "renderContainer",
17362
- value: function renderContainer(component, children) {
17363
- var isContainer = component.type && component.type.role === "container";
17364
- var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
17365
-
17366
- if (parentProps.events) {
17367
- this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
17368
- parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
17369
- }
17370
17331
 
17371
- return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
17332
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
17333
+
17334
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
17335
+ events: events
17336
+ });
17372
17337
  }
17373
- }, {
17374
- key: "animateComponent",
17375
- value: function animateComponent(props, defaultAnimationWhitelist) {
17376
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
17377
- return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
17378
- animate: props.animate,
17379
- animationWhitelist: animationWhitelist
17380
- }, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
17381
- } // Used by `VictoryLine` and `VictoryArea`
17382
-
17383
- }, {
17384
- key: "renderContinuousData",
17385
- value: function renderContinuousData(props) {
17386
- var _this8 = this;
17387
-
17388
- var dataComponent = props.dataComponent,
17389
- labelComponent = props.labelComponent,
17390
- groupComponent = props.groupComponent;
17391
-
17392
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
17393
-
17394
- var labelComponents = dataKeys.reduce(function (memo, key) {
17395
- var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
17396
-
17397
- if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
17398
- memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
17399
- }
17400
17338
 
17401
- return memo;
17402
- }, []);
17403
- var dataProps = this.getComponentProps(dataComponent, "data", "all");
17404
- var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
17405
- return this.renderContainer(groupComponent, children);
17339
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
17340
+ index: index,
17341
+ key: id
17342
+ }, component.props, baseProps, {
17343
+ id: id
17344
+ });
17345
+ }
17346
+ }, {
17347
+ key: "renderContainer",
17348
+ value: function renderContainer(component, children) {
17349
+ var isContainer = component.type && component.type.role === "container";
17350
+ var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
17351
+
17352
+ if (parentProps.events) {
17353
+ this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
17354
+ parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
17406
17355
  }
17407
- }, {
17408
- key: "renderData",
17409
- value: function renderData(props) {
17410
- var _this9 = this;
17411
-
17412
- var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
17413
- var dataComponent = props.dataComponent,
17414
- labelComponent = props.labelComponent,
17415
- groupComponent = props.groupComponent;
17416
- var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
17417
- var dataProps = _this9.getComponentProps(dataComponent, "data", index);
17418
-
17419
- if (shouldRenderDatum(dataProps.datum)) {
17420
- validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
17421
- }
17422
17356
 
17423
- return validDataComponents;
17424
- }, []);
17425
- var labelComponents = this.dataKeys.map(function (_dataKey, index) {
17426
- var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
17357
+ return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
17358
+ }
17359
+ }, {
17360
+ key: "animateComponent",
17361
+ value: function animateComponent(props, defaultAnimationWhitelist) {
17362
+ var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
17363
+ return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
17364
+ animate: props.animate,
17365
+ animationWhitelist: animationWhitelist
17366
+ }, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
17367
+ } // Used by `VictoryLine` and `VictoryArea`
17427
17368
 
17428
- if (labelProps.text !== undefined && labelProps.text !== null) {
17429
- return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
17430
- }
17369
+ }, {
17370
+ key: "renderContinuousData",
17371
+ value: function renderContinuousData(props) {
17372
+ var _this8 = this;
17431
17373
 
17432
- return undefined;
17433
- }).filter(Boolean);
17374
+ var dataComponent = props.dataComponent,
17375
+ labelComponent = props.labelComponent,
17376
+ groupComponent = props.groupComponent;
17434
17377
 
17435
- var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
17378
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
17436
17379
 
17437
- return this.renderContainer(groupComponent, children);
17438
- }
17439
- }]);
17380
+ var labelComponents = dataKeys.reduce(function (memo, key) {
17381
+ var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
17382
+
17383
+ if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
17384
+ memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
17385
+ }
17386
+
17387
+ return memo;
17388
+ }, []);
17389
+ var dataProps = this.getComponentProps(dataComponent, "data", "all");
17390
+ var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
17391
+ return this.renderContainer(groupComponent, children);
17392
+ }
17393
+ }, {
17394
+ key: "renderData",
17395
+ value: function renderData(props) {
17396
+ var _this9 = this;
17397
+
17398
+ var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
17399
+ var dataComponent = props.dataComponent,
17400
+ labelComponent = props.labelComponent,
17401
+ groupComponent = props.groupComponent;
17402
+ var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
17403
+ var dataProps = _this9.getComponentProps(dataComponent, "data", index);
17404
+
17405
+ if (shouldRenderDatum(dataProps.datum)) {
17406
+ validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
17407
+ }
17408
+
17409
+ return validDataComponents;
17410
+ }, []);
17411
+ var labelComponents = this.dataKeys.map(function (_dataKey, index) {
17412
+ var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
17413
+
17414
+ if (labelProps.text !== undefined && labelProps.text !== null) {
17415
+ return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
17416
+ }
17417
+
17418
+ return undefined;
17419
+ }).filter(Boolean);
17420
+
17421
+ var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
17422
+
17423
+ return this.renderContainer(groupComponent, children);
17424
+ }
17425
+ }]);
17440
17426
 
17441
- return addEvents;
17442
- }(WrappedComponent)
17443
- );
17427
+ return addEvents;
17428
+ }(WrappedComponent);
17444
17429
  });
17445
17430
 
17446
17431
  /***/ }),
@@ -20271,9 +20256,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
20271
20256
 
20272
20257
 
20273
20258
 
20274
- var Timer =
20275
- /*#__PURE__*/
20276
- function () {
20259
+ var Timer = /*#__PURE__*/function () {
20277
20260
  function Timer() {
20278
20261
  _classCallCheck(this, Timer);
20279
20262
 
@@ -20782,906 +20765,6 @@ function getTransitionPropsFactory(props, state, setState) {
20782
20765
  };
20783
20766
  }
20784
20767
 
20785
- /***/ }),
20786
-
20787
- /***/ "../../victory-core/node_modules/d3-color/src/color.js":
20788
- /*!*************************************************************!*\
20789
- !*** ../../victory-core/node_modules/d3-color/src/color.js ***!
20790
- \*************************************************************/
20791
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
20792
-
20793
- "use strict";
20794
- __webpack_require__.r(__webpack_exports__);
20795
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20796
- /* harmony export */ "Color": () => (/* binding */ Color),
20797
- /* harmony export */ "darker": () => (/* binding */ darker),
20798
- /* harmony export */ "brighter": () => (/* binding */ brighter),
20799
- /* harmony export */ "default": () => (/* binding */ color),
20800
- /* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert),
20801
- /* harmony export */ "rgb": () => (/* binding */ rgb),
20802
- /* harmony export */ "Rgb": () => (/* binding */ Rgb),
20803
- /* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
20804
- /* harmony export */ "hsl": () => (/* binding */ hsl)
20805
- /* harmony export */ });
20806
- /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-core/node_modules/d3-color/src/define.js");
20807
-
20808
-
20809
- function Color() {}
20810
-
20811
- var darker = 0.7;
20812
- var brighter = 1 / darker;
20813
-
20814
- var reI = "\\s*([+-]?\\d+)\\s*",
20815
- reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
20816
- reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
20817
- reHex = /^#([0-9a-f]{3,8})$/,
20818
- reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
20819
- reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
20820
- reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
20821
- reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
20822
- reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
20823
- reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
20824
-
20825
- var named = {
20826
- aliceblue: 0xf0f8ff,
20827
- antiquewhite: 0xfaebd7,
20828
- aqua: 0x00ffff,
20829
- aquamarine: 0x7fffd4,
20830
- azure: 0xf0ffff,
20831
- beige: 0xf5f5dc,
20832
- bisque: 0xffe4c4,
20833
- black: 0x000000,
20834
- blanchedalmond: 0xffebcd,
20835
- blue: 0x0000ff,
20836
- blueviolet: 0x8a2be2,
20837
- brown: 0xa52a2a,
20838
- burlywood: 0xdeb887,
20839
- cadetblue: 0x5f9ea0,
20840
- chartreuse: 0x7fff00,
20841
- chocolate: 0xd2691e,
20842
- coral: 0xff7f50,
20843
- cornflowerblue: 0x6495ed,
20844
- cornsilk: 0xfff8dc,
20845
- crimson: 0xdc143c,
20846
- cyan: 0x00ffff,
20847
- darkblue: 0x00008b,
20848
- darkcyan: 0x008b8b,
20849
- darkgoldenrod: 0xb8860b,
20850
- darkgray: 0xa9a9a9,
20851
- darkgreen: 0x006400,
20852
- darkgrey: 0xa9a9a9,
20853
- darkkhaki: 0xbdb76b,
20854
- darkmagenta: 0x8b008b,
20855
- darkolivegreen: 0x556b2f,
20856
- darkorange: 0xff8c00,
20857
- darkorchid: 0x9932cc,
20858
- darkred: 0x8b0000,
20859
- darksalmon: 0xe9967a,
20860
- darkseagreen: 0x8fbc8f,
20861
- darkslateblue: 0x483d8b,
20862
- darkslategray: 0x2f4f4f,
20863
- darkslategrey: 0x2f4f4f,
20864
- darkturquoise: 0x00ced1,
20865
- darkviolet: 0x9400d3,
20866
- deeppink: 0xff1493,
20867
- deepskyblue: 0x00bfff,
20868
- dimgray: 0x696969,
20869
- dimgrey: 0x696969,
20870
- dodgerblue: 0x1e90ff,
20871
- firebrick: 0xb22222,
20872
- floralwhite: 0xfffaf0,
20873
- forestgreen: 0x228b22,
20874
- fuchsia: 0xff00ff,
20875
- gainsboro: 0xdcdcdc,
20876
- ghostwhite: 0xf8f8ff,
20877
- gold: 0xffd700,
20878
- goldenrod: 0xdaa520,
20879
- gray: 0x808080,
20880
- green: 0x008000,
20881
- greenyellow: 0xadff2f,
20882
- grey: 0x808080,
20883
- honeydew: 0xf0fff0,
20884
- hotpink: 0xff69b4,
20885
- indianred: 0xcd5c5c,
20886
- indigo: 0x4b0082,
20887
- ivory: 0xfffff0,
20888
- khaki: 0xf0e68c,
20889
- lavender: 0xe6e6fa,
20890
- lavenderblush: 0xfff0f5,
20891
- lawngreen: 0x7cfc00,
20892
- lemonchiffon: 0xfffacd,
20893
- lightblue: 0xadd8e6,
20894
- lightcoral: 0xf08080,
20895
- lightcyan: 0xe0ffff,
20896
- lightgoldenrodyellow: 0xfafad2,
20897
- lightgray: 0xd3d3d3,
20898
- lightgreen: 0x90ee90,
20899
- lightgrey: 0xd3d3d3,
20900
- lightpink: 0xffb6c1,
20901
- lightsalmon: 0xffa07a,
20902
- lightseagreen: 0x20b2aa,
20903
- lightskyblue: 0x87cefa,
20904
- lightslategray: 0x778899,
20905
- lightslategrey: 0x778899,
20906
- lightsteelblue: 0xb0c4de,
20907
- lightyellow: 0xffffe0,
20908
- lime: 0x00ff00,
20909
- limegreen: 0x32cd32,
20910
- linen: 0xfaf0e6,
20911
- magenta: 0xff00ff,
20912
- maroon: 0x800000,
20913
- mediumaquamarine: 0x66cdaa,
20914
- mediumblue: 0x0000cd,
20915
- mediumorchid: 0xba55d3,
20916
- mediumpurple: 0x9370db,
20917
- mediumseagreen: 0x3cb371,
20918
- mediumslateblue: 0x7b68ee,
20919
- mediumspringgreen: 0x00fa9a,
20920
- mediumturquoise: 0x48d1cc,
20921
- mediumvioletred: 0xc71585,
20922
- midnightblue: 0x191970,
20923
- mintcream: 0xf5fffa,
20924
- mistyrose: 0xffe4e1,
20925
- moccasin: 0xffe4b5,
20926
- navajowhite: 0xffdead,
20927
- navy: 0x000080,
20928
- oldlace: 0xfdf5e6,
20929
- olive: 0x808000,
20930
- olivedrab: 0x6b8e23,
20931
- orange: 0xffa500,
20932
- orangered: 0xff4500,
20933
- orchid: 0xda70d6,
20934
- palegoldenrod: 0xeee8aa,
20935
- palegreen: 0x98fb98,
20936
- paleturquoise: 0xafeeee,
20937
- palevioletred: 0xdb7093,
20938
- papayawhip: 0xffefd5,
20939
- peachpuff: 0xffdab9,
20940
- peru: 0xcd853f,
20941
- pink: 0xffc0cb,
20942
- plum: 0xdda0dd,
20943
- powderblue: 0xb0e0e6,
20944
- purple: 0x800080,
20945
- rebeccapurple: 0x663399,
20946
- red: 0xff0000,
20947
- rosybrown: 0xbc8f8f,
20948
- royalblue: 0x4169e1,
20949
- saddlebrown: 0x8b4513,
20950
- salmon: 0xfa8072,
20951
- sandybrown: 0xf4a460,
20952
- seagreen: 0x2e8b57,
20953
- seashell: 0xfff5ee,
20954
- sienna: 0xa0522d,
20955
- silver: 0xc0c0c0,
20956
- skyblue: 0x87ceeb,
20957
- slateblue: 0x6a5acd,
20958
- slategray: 0x708090,
20959
- slategrey: 0x708090,
20960
- snow: 0xfffafa,
20961
- springgreen: 0x00ff7f,
20962
- steelblue: 0x4682b4,
20963
- tan: 0xd2b48c,
20964
- teal: 0x008080,
20965
- thistle: 0xd8bfd8,
20966
- tomato: 0xff6347,
20967
- turquoise: 0x40e0d0,
20968
- violet: 0xee82ee,
20969
- wheat: 0xf5deb3,
20970
- white: 0xffffff,
20971
- whitesmoke: 0xf5f5f5,
20972
- yellow: 0xffff00,
20973
- yellowgreen: 0x9acd32
20974
- };
20975
-
20976
- (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.default)(Color, color, {
20977
- copy: function(channels) {
20978
- return Object.assign(new this.constructor, this, channels);
20979
- },
20980
- displayable: function() {
20981
- return this.rgb().displayable();
20982
- },
20983
- hex: color_formatHex, // Deprecated! Use color.formatHex.
20984
- formatHex: color_formatHex,
20985
- formatHsl: color_formatHsl,
20986
- formatRgb: color_formatRgb,
20987
- toString: color_formatRgb
20988
- });
20989
-
20990
- function color_formatHex() {
20991
- return this.rgb().formatHex();
20992
- }
20993
-
20994
- function color_formatHsl() {
20995
- return hslConvert(this).formatHsl();
20996
- }
20997
-
20998
- function color_formatRgb() {
20999
- return this.rgb().formatRgb();
21000
- }
21001
-
21002
- function color(format) {
21003
- var m, l;
21004
- format = (format + "").trim().toLowerCase();
21005
- return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
21006
- : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
21007
- : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
21008
- : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
21009
- : null) // invalid hex
21010
- : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
21011
- : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
21012
- : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
21013
- : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
21014
- : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
21015
- : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
21016
- : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
21017
- : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
21018
- : null;
21019
- }
21020
-
21021
- function rgbn(n) {
21022
- return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
21023
- }
21024
-
21025
- function rgba(r, g, b, a) {
21026
- if (a <= 0) r = g = b = NaN;
21027
- return new Rgb(r, g, b, a);
21028
- }
21029
-
21030
- function rgbConvert(o) {
21031
- if (!(o instanceof Color)) o = color(o);
21032
- if (!o) return new Rgb;
21033
- o = o.rgb();
21034
- return new Rgb(o.r, o.g, o.b, o.opacity);
21035
- }
21036
-
21037
- function rgb(r, g, b, opacity) {
21038
- return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
21039
- }
21040
-
21041
- function Rgb(r, g, b, opacity) {
21042
- this.r = +r;
21043
- this.g = +g;
21044
- this.b = +b;
21045
- this.opacity = +opacity;
21046
- }
21047
-
21048
- (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.default)(Rgb, rgb, (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.extend)(Color, {
21049
- brighter: function(k) {
21050
- k = k == null ? brighter : Math.pow(brighter, k);
21051
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
21052
- },
21053
- darker: function(k) {
21054
- k = k == null ? darker : Math.pow(darker, k);
21055
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
21056
- },
21057
- rgb: function() {
21058
- return this;
21059
- },
21060
- displayable: function() {
21061
- return (-0.5 <= this.r && this.r < 255.5)
21062
- && (-0.5 <= this.g && this.g < 255.5)
21063
- && (-0.5 <= this.b && this.b < 255.5)
21064
- && (0 <= this.opacity && this.opacity <= 1);
21065
- },
21066
- hex: rgb_formatHex, // Deprecated! Use color.formatHex.
21067
- formatHex: rgb_formatHex,
21068
- formatRgb: rgb_formatRgb,
21069
- toString: rgb_formatRgb
21070
- }));
21071
-
21072
- function rgb_formatHex() {
21073
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
21074
- }
21075
-
21076
- function rgb_formatRgb() {
21077
- var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
21078
- return (a === 1 ? "rgb(" : "rgba(")
21079
- + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
21080
- + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
21081
- + Math.max(0, Math.min(255, Math.round(this.b) || 0))
21082
- + (a === 1 ? ")" : ", " + a + ")");
21083
- }
21084
-
21085
- function hex(value) {
21086
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
21087
- return (value < 16 ? "0" : "") + value.toString(16);
21088
- }
21089
-
21090
- function hsla(h, s, l, a) {
21091
- if (a <= 0) h = s = l = NaN;
21092
- else if (l <= 0 || l >= 1) h = s = NaN;
21093
- else if (s <= 0) h = NaN;
21094
- return new Hsl(h, s, l, a);
21095
- }
21096
-
21097
- function hslConvert(o) {
21098
- if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
21099
- if (!(o instanceof Color)) o = color(o);
21100
- if (!o) return new Hsl;
21101
- if (o instanceof Hsl) return o;
21102
- o = o.rgb();
21103
- var r = o.r / 255,
21104
- g = o.g / 255,
21105
- b = o.b / 255,
21106
- min = Math.min(r, g, b),
21107
- max = Math.max(r, g, b),
21108
- h = NaN,
21109
- s = max - min,
21110
- l = (max + min) / 2;
21111
- if (s) {
21112
- if (r === max) h = (g - b) / s + (g < b) * 6;
21113
- else if (g === max) h = (b - r) / s + 2;
21114
- else h = (r - g) / s + 4;
21115
- s /= l < 0.5 ? max + min : 2 - max - min;
21116
- h *= 60;
21117
- } else {
21118
- s = l > 0 && l < 1 ? 0 : h;
21119
- }
21120
- return new Hsl(h, s, l, o.opacity);
21121
- }
21122
-
21123
- function hsl(h, s, l, opacity) {
21124
- return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
21125
- }
21126
-
21127
- function Hsl(h, s, l, opacity) {
21128
- this.h = +h;
21129
- this.s = +s;
21130
- this.l = +l;
21131
- this.opacity = +opacity;
21132
- }
21133
-
21134
- (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.default)(Hsl, hsl, (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.extend)(Color, {
21135
- brighter: function(k) {
21136
- k = k == null ? brighter : Math.pow(brighter, k);
21137
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
21138
- },
21139
- darker: function(k) {
21140
- k = k == null ? darker : Math.pow(darker, k);
21141
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
21142
- },
21143
- rgb: function() {
21144
- var h = this.h % 360 + (this.h < 0) * 360,
21145
- s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
21146
- l = this.l,
21147
- m2 = l + (l < 0.5 ? l : 1 - l) * s,
21148
- m1 = 2 * l - m2;
21149
- return new Rgb(
21150
- hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
21151
- hsl2rgb(h, m1, m2),
21152
- hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
21153
- this.opacity
21154
- );
21155
- },
21156
- displayable: function() {
21157
- return (0 <= this.s && this.s <= 1 || isNaN(this.s))
21158
- && (0 <= this.l && this.l <= 1)
21159
- && (0 <= this.opacity && this.opacity <= 1);
21160
- },
21161
- formatHsl: function() {
21162
- var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
21163
- return (a === 1 ? "hsl(" : "hsla(")
21164
- + (this.h || 0) + ", "
21165
- + (this.s || 0) * 100 + "%, "
21166
- + (this.l || 0) * 100 + "%"
21167
- + (a === 1 ? ")" : ", " + a + ")");
21168
- }
21169
- }));
21170
-
21171
- /* From FvD 13.37, CSS Color Module Level 3 */
21172
- function hsl2rgb(h, m1, m2) {
21173
- return (h < 60 ? m1 + (m2 - m1) * h / 60
21174
- : h < 180 ? m2
21175
- : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
21176
- : m1) * 255;
21177
- }
21178
-
21179
-
21180
- /***/ }),
21181
-
21182
- /***/ "../../victory-core/node_modules/d3-color/src/define.js":
21183
- /*!**************************************************************!*\
21184
- !*** ../../victory-core/node_modules/d3-color/src/define.js ***!
21185
- \**************************************************************/
21186
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21187
-
21188
- "use strict";
21189
- __webpack_require__.r(__webpack_exports__);
21190
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21191
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
21192
- /* harmony export */ "extend": () => (/* binding */ extend)
21193
- /* harmony export */ });
21194
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(constructor, factory, prototype) {
21195
- constructor.prototype = factory.prototype = prototype;
21196
- prototype.constructor = constructor;
21197
- }
21198
-
21199
- function extend(parent, definition) {
21200
- var prototype = Object.create(parent.prototype);
21201
- for (var key in definition) prototype[key] = definition[key];
21202
- return prototype;
21203
- }
21204
-
21205
-
21206
- /***/ }),
21207
-
21208
- /***/ "../../victory-core/node_modules/d3-interpolate/src/array.js":
21209
- /*!*******************************************************************!*\
21210
- !*** ../../victory-core/node_modules/d3-interpolate/src/array.js ***!
21211
- \*******************************************************************/
21212
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21213
-
21214
- "use strict";
21215
- __webpack_require__.r(__webpack_exports__);
21216
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21217
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
21218
- /* harmony export */ "genericArray": () => (/* binding */ genericArray)
21219
- /* harmony export */ });
21220
- /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./value.js */ "../../victory-core/node_modules/d3-interpolate/src/value.js");
21221
- /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./numberArray.js */ "../../victory-core/node_modules/d3-interpolate/src/numberArray.js");
21222
-
21223
-
21224
-
21225
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21226
- return ((0,_numberArray_js__WEBPACK_IMPORTED_MODULE_0__.isNumberArray)(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_0__.default : genericArray)(a, b);
21227
- }
21228
-
21229
- function genericArray(a, b) {
21230
- var nb = b ? b.length : 0,
21231
- na = a ? Math.min(nb, a.length) : 0,
21232
- x = new Array(na),
21233
- c = new Array(nb),
21234
- i;
21235
-
21236
- for (i = 0; i < na; ++i) x[i] = (0,_value_js__WEBPACK_IMPORTED_MODULE_1__.default)(a[i], b[i]);
21237
- for (; i < nb; ++i) c[i] = b[i];
21238
-
21239
- return function(t) {
21240
- for (i = 0; i < na; ++i) c[i] = x[i](t);
21241
- return c;
21242
- };
21243
- }
21244
-
21245
-
21246
- /***/ }),
21247
-
21248
- /***/ "../../victory-core/node_modules/d3-interpolate/src/basis.js":
21249
- /*!*******************************************************************!*\
21250
- !*** ../../victory-core/node_modules/d3-interpolate/src/basis.js ***!
21251
- \*******************************************************************/
21252
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21253
-
21254
- "use strict";
21255
- __webpack_require__.r(__webpack_exports__);
21256
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21257
- /* harmony export */ "basis": () => (/* binding */ basis),
21258
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21259
- /* harmony export */ });
21260
- function basis(t1, v0, v1, v2, v3) {
21261
- var t2 = t1 * t1, t3 = t2 * t1;
21262
- return ((1 - 3 * t1 + 3 * t2 - t3) * v0
21263
- + (4 - 6 * t2 + 3 * t3) * v1
21264
- + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
21265
- + t3 * v3) / 6;
21266
- }
21267
-
21268
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values) {
21269
- var n = values.length - 1;
21270
- return function(t) {
21271
- var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
21272
- v1 = values[i],
21273
- v2 = values[i + 1],
21274
- v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
21275
- v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
21276
- return basis((t - i / n) * n, v0, v1, v2, v3);
21277
- };
21278
- }
21279
-
21280
-
21281
- /***/ }),
21282
-
21283
- /***/ "../../victory-core/node_modules/d3-interpolate/src/basisClosed.js":
21284
- /*!*************************************************************************!*\
21285
- !*** ../../victory-core/node_modules/d3-interpolate/src/basisClosed.js ***!
21286
- \*************************************************************************/
21287
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21288
-
21289
- "use strict";
21290
- __webpack_require__.r(__webpack_exports__);
21291
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21292
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21293
- /* harmony export */ });
21294
- /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../victory-core/node_modules/d3-interpolate/src/basis.js");
21295
-
21296
-
21297
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values) {
21298
- var n = values.length;
21299
- return function(t) {
21300
- var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
21301
- v0 = values[(i + n - 1) % n],
21302
- v1 = values[i % n],
21303
- v2 = values[(i + 1) % n],
21304
- v3 = values[(i + 2) % n];
21305
- return (0,_basis_js__WEBPACK_IMPORTED_MODULE_0__.basis)((t - i / n) * n, v0, v1, v2, v3);
21306
- };
21307
- }
21308
-
21309
-
21310
- /***/ }),
21311
-
21312
- /***/ "../../victory-core/node_modules/d3-interpolate/src/color.js":
21313
- /*!*******************************************************************!*\
21314
- !*** ../../victory-core/node_modules/d3-interpolate/src/color.js ***!
21315
- \*******************************************************************/
21316
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21317
-
21318
- "use strict";
21319
- __webpack_require__.r(__webpack_exports__);
21320
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21321
- /* harmony export */ "hue": () => (/* binding */ hue),
21322
- /* harmony export */ "gamma": () => (/* binding */ gamma),
21323
- /* harmony export */ "default": () => (/* binding */ nogamma)
21324
- /* harmony export */ });
21325
- /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-core/node_modules/d3-interpolate/src/constant.js");
21326
-
21327
-
21328
- function linear(a, d) {
21329
- return function(t) {
21330
- return a + t * d;
21331
- };
21332
- }
21333
-
21334
- function exponential(a, b, y) {
21335
- return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
21336
- return Math.pow(a + t * b, y);
21337
- };
21338
- }
21339
-
21340
- function hue(a, b) {
21341
- var d = b - a;
21342
- return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(isNaN(a) ? b : a);
21343
- }
21344
-
21345
- function gamma(y) {
21346
- return (y = +y) === 1 ? nogamma : function(a, b) {
21347
- return b - a ? exponential(a, b, y) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(isNaN(a) ? b : a);
21348
- };
21349
- }
21350
-
21351
- function nogamma(a, b) {
21352
- var d = b - a;
21353
- return d ? linear(a, d) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(isNaN(a) ? b : a);
21354
- }
21355
-
21356
-
21357
- /***/ }),
21358
-
21359
- /***/ "../../victory-core/node_modules/d3-interpolate/src/constant.js":
21360
- /*!**********************************************************************!*\
21361
- !*** ../../victory-core/node_modules/d3-interpolate/src/constant.js ***!
21362
- \**********************************************************************/
21363
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21364
-
21365
- "use strict";
21366
- __webpack_require__.r(__webpack_exports__);
21367
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21368
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21369
- /* harmony export */ });
21370
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (x => () => x);
21371
-
21372
-
21373
- /***/ }),
21374
-
21375
- /***/ "../../victory-core/node_modules/d3-interpolate/src/date.js":
21376
- /*!******************************************************************!*\
21377
- !*** ../../victory-core/node_modules/d3-interpolate/src/date.js ***!
21378
- \******************************************************************/
21379
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21380
-
21381
- "use strict";
21382
- __webpack_require__.r(__webpack_exports__);
21383
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21384
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21385
- /* harmony export */ });
21386
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21387
- var d = new Date;
21388
- return a = +a, b = +b, function(t) {
21389
- return d.setTime(a * (1 - t) + b * t), d;
21390
- };
21391
- }
21392
-
21393
-
21394
- /***/ }),
21395
-
21396
- /***/ "../../victory-core/node_modules/d3-interpolate/src/number.js":
21397
- /*!********************************************************************!*\
21398
- !*** ../../victory-core/node_modules/d3-interpolate/src/number.js ***!
21399
- \********************************************************************/
21400
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21401
-
21402
- "use strict";
21403
- __webpack_require__.r(__webpack_exports__);
21404
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21405
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21406
- /* harmony export */ });
21407
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21408
- return a = +a, b = +b, function(t) {
21409
- return a * (1 - t) + b * t;
21410
- };
21411
- }
21412
-
21413
-
21414
- /***/ }),
21415
-
21416
- /***/ "../../victory-core/node_modules/d3-interpolate/src/numberArray.js":
21417
- /*!*************************************************************************!*\
21418
- !*** ../../victory-core/node_modules/d3-interpolate/src/numberArray.js ***!
21419
- \*************************************************************************/
21420
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21421
-
21422
- "use strict";
21423
- __webpack_require__.r(__webpack_exports__);
21424
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21425
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
21426
- /* harmony export */ "isNumberArray": () => (/* binding */ isNumberArray)
21427
- /* harmony export */ });
21428
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21429
- if (!b) b = [];
21430
- var n = a ? Math.min(b.length, a.length) : 0,
21431
- c = b.slice(),
21432
- i;
21433
- return function(t) {
21434
- for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
21435
- return c;
21436
- };
21437
- }
21438
-
21439
- function isNumberArray(x) {
21440
- return ArrayBuffer.isView(x) && !(x instanceof DataView);
21441
- }
21442
-
21443
-
21444
- /***/ }),
21445
-
21446
- /***/ "../../victory-core/node_modules/d3-interpolate/src/object.js":
21447
- /*!********************************************************************!*\
21448
- !*** ../../victory-core/node_modules/d3-interpolate/src/object.js ***!
21449
- \********************************************************************/
21450
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21451
-
21452
- "use strict";
21453
- __webpack_require__.r(__webpack_exports__);
21454
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21455
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21456
- /* harmony export */ });
21457
- /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "../../victory-core/node_modules/d3-interpolate/src/value.js");
21458
-
21459
-
21460
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21461
- var i = {},
21462
- c = {},
21463
- k;
21464
-
21465
- if (a === null || typeof a !== "object") a = {};
21466
- if (b === null || typeof b !== "object") b = {};
21467
-
21468
- for (k in b) {
21469
- if (k in a) {
21470
- i[k] = (0,_value_js__WEBPACK_IMPORTED_MODULE_0__.default)(a[k], b[k]);
21471
- } else {
21472
- c[k] = b[k];
21473
- }
21474
- }
21475
-
21476
- return function(t) {
21477
- for (k in i) c[k] = i[k](t);
21478
- return c;
21479
- };
21480
- }
21481
-
21482
-
21483
- /***/ }),
21484
-
21485
- /***/ "../../victory-core/node_modules/d3-interpolate/src/rgb.js":
21486
- /*!*****************************************************************!*\
21487
- !*** ../../victory-core/node_modules/d3-interpolate/src/rgb.js ***!
21488
- \*****************************************************************/
21489
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21490
-
21491
- "use strict";
21492
- __webpack_require__.r(__webpack_exports__);
21493
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21494
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
21495
- /* harmony export */ "rgbBasis": () => (/* binding */ rgbBasis),
21496
- /* harmony export */ "rgbBasisClosed": () => (/* binding */ rgbBasisClosed)
21497
- /* harmony export */ });
21498
- /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-color */ "../../victory-core/node_modules/d3-color/src/color.js");
21499
- /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis.js */ "../../victory-core/node_modules/d3-interpolate/src/basis.js");
21500
- /* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed.js */ "../../victory-core/node_modules/d3-interpolate/src/basisClosed.js");
21501
- /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "../../victory-core/node_modules/d3-interpolate/src/color.js");
21502
-
21503
-
21504
-
21505
-
21506
-
21507
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function rgbGamma(y) {
21508
- var color = (0,_color_js__WEBPACK_IMPORTED_MODULE_0__.gamma)(y);
21509
-
21510
- function rgb(start, end) {
21511
- var r = color((start = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(start)).r, (end = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(end)).r),
21512
- g = color(start.g, end.g),
21513
- b = color(start.b, end.b),
21514
- opacity = (0,_color_js__WEBPACK_IMPORTED_MODULE_0__.default)(start.opacity, end.opacity);
21515
- return function(t) {
21516
- start.r = r(t);
21517
- start.g = g(t);
21518
- start.b = b(t);
21519
- start.opacity = opacity(t);
21520
- return start + "";
21521
- };
21522
- }
21523
-
21524
- rgb.gamma = rgbGamma;
21525
-
21526
- return rgb;
21527
- })(1));
21528
-
21529
- function rgbSpline(spline) {
21530
- return function(colors) {
21531
- var n = colors.length,
21532
- r = new Array(n),
21533
- g = new Array(n),
21534
- b = new Array(n),
21535
- i, color;
21536
- for (i = 0; i < n; ++i) {
21537
- color = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(colors[i]);
21538
- r[i] = color.r || 0;
21539
- g[i] = color.g || 0;
21540
- b[i] = color.b || 0;
21541
- }
21542
- r = spline(r);
21543
- g = spline(g);
21544
- b = spline(b);
21545
- color.opacity = 1;
21546
- return function(t) {
21547
- color.r = r(t);
21548
- color.g = g(t);
21549
- color.b = b(t);
21550
- return color + "";
21551
- };
21552
- };
21553
- }
21554
-
21555
- var rgbBasis = rgbSpline(_basis_js__WEBPACK_IMPORTED_MODULE_2__.default);
21556
- var rgbBasisClosed = rgbSpline(_basisClosed_js__WEBPACK_IMPORTED_MODULE_3__.default);
21557
-
21558
-
21559
- /***/ }),
21560
-
21561
- /***/ "../../victory-core/node_modules/d3-interpolate/src/string.js":
21562
- /*!********************************************************************!*\
21563
- !*** ../../victory-core/node_modules/d3-interpolate/src/string.js ***!
21564
- \********************************************************************/
21565
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21566
-
21567
- "use strict";
21568
- __webpack_require__.r(__webpack_exports__);
21569
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21570
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21571
- /* harmony export */ });
21572
- /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number.js */ "../../victory-core/node_modules/d3-interpolate/src/number.js");
21573
-
21574
-
21575
- var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
21576
- reB = new RegExp(reA.source, "g");
21577
-
21578
- function zero(b) {
21579
- return function() {
21580
- return b;
21581
- };
21582
- }
21583
-
21584
- function one(b) {
21585
- return function(t) {
21586
- return b(t) + "";
21587
- };
21588
- }
21589
-
21590
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21591
- var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
21592
- am, // current match in a
21593
- bm, // current match in b
21594
- bs, // string preceding current number in b, if any
21595
- i = -1, // index in s
21596
- s = [], // string constants and placeholders
21597
- q = []; // number interpolators
21598
-
21599
- // Coerce inputs to strings.
21600
- a = a + "", b = b + "";
21601
-
21602
- // Interpolate pairs of numbers in a & b.
21603
- while ((am = reA.exec(a))
21604
- && (bm = reB.exec(b))) {
21605
- if ((bs = bm.index) > bi) { // a string precedes the next number in b
21606
- bs = b.slice(bi, bs);
21607
- if (s[i]) s[i] += bs; // coalesce with previous string
21608
- else s[++i] = bs;
21609
- }
21610
- if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
21611
- if (s[i]) s[i] += bm; // coalesce with previous string
21612
- else s[++i] = bm;
21613
- } else { // interpolate non-matching numbers
21614
- s[++i] = null;
21615
- q.push({i: i, x: (0,_number_js__WEBPACK_IMPORTED_MODULE_0__.default)(am, bm)});
21616
- }
21617
- bi = reB.lastIndex;
21618
- }
21619
-
21620
- // Add remains of b.
21621
- if (bi < b.length) {
21622
- bs = b.slice(bi);
21623
- if (s[i]) s[i] += bs; // coalesce with previous string
21624
- else s[++i] = bs;
21625
- }
21626
-
21627
- // Special optimization for only a single match.
21628
- // Otherwise, interpolate each of the numbers and rejoin the string.
21629
- return s.length < 2 ? (q[0]
21630
- ? one(q[0].x)
21631
- : zero(b))
21632
- : (b = q.length, function(t) {
21633
- for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
21634
- return s.join("");
21635
- });
21636
- }
21637
-
21638
-
21639
- /***/ }),
21640
-
21641
- /***/ "../../victory-core/node_modules/d3-interpolate/src/value.js":
21642
- /*!*******************************************************************!*\
21643
- !*** ../../victory-core/node_modules/d3-interpolate/src/value.js ***!
21644
- \*******************************************************************/
21645
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
21646
-
21647
- "use strict";
21648
- __webpack_require__.r(__webpack_exports__);
21649
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21650
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
21651
- /* harmony export */ });
21652
- /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-color */ "../../victory-core/node_modules/d3-color/src/color.js");
21653
- /* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rgb.js */ "../../victory-core/node_modules/d3-interpolate/src/rgb.js");
21654
- /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./array.js */ "../../victory-core/node_modules/d3-interpolate/src/array.js");
21655
- /* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date.js */ "../../victory-core/node_modules/d3-interpolate/src/date.js");
21656
- /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number.js */ "../../victory-core/node_modules/d3-interpolate/src/number.js");
21657
- /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object.js */ "../../victory-core/node_modules/d3-interpolate/src/object.js");
21658
- /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./string.js */ "../../victory-core/node_modules/d3-interpolate/src/string.js");
21659
- /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-core/node_modules/d3-interpolate/src/constant.js");
21660
- /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./numberArray.js */ "../../victory-core/node_modules/d3-interpolate/src/numberArray.js");
21661
-
21662
-
21663
-
21664
-
21665
-
21666
-
21667
-
21668
-
21669
-
21670
-
21671
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
21672
- var t = typeof b, c;
21673
- return b == null || t === "boolean" ? (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(b)
21674
- : (t === "number" ? _number_js__WEBPACK_IMPORTED_MODULE_1__.default
21675
- : t === "string" ? ((c = (0,d3_color__WEBPACK_IMPORTED_MODULE_2__.default)(b)) ? (b = c, _rgb_js__WEBPACK_IMPORTED_MODULE_3__.default) : _string_js__WEBPACK_IMPORTED_MODULE_4__.default)
21676
- : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_2__.default ? _rgb_js__WEBPACK_IMPORTED_MODULE_3__.default
21677
- : b instanceof Date ? _date_js__WEBPACK_IMPORTED_MODULE_5__.default
21678
- : (0,_numberArray_js__WEBPACK_IMPORTED_MODULE_6__.isNumberArray)(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_6__.default
21679
- : Array.isArray(b) ? _array_js__WEBPACK_IMPORTED_MODULE_7__.genericArray
21680
- : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object_js__WEBPACK_IMPORTED_MODULE_8__.default
21681
- : _number_js__WEBPACK_IMPORTED_MODULE_1__.default)(a, b);
21682
- }
21683
-
21684
-
21685
20768
  /***/ }),
21686
20769
 
21687
20770
  /***/ "react":