victory-brush-container 36.2.1 → 36.3.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/LICENSE.txt +30 -0
- package/dist/victory-brush-container.js +112 -12
- package/dist/victory-brush-container.min.js +1 -1
- package/package.json +4 -3
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2020 Formidable Labs.
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2016-2020 Alexey Svetliakov <https://github.com/asvetliakov>,
|
|
6
|
+
snerks <https://github.com/snerks>, Krzysztof Cebula <https://github.com
|
|
7
|
+
Havret>, Vitaliy Polyanskiy <https://github.com/alreadyExisted>, James Lismore
|
|
8
|
+
<https://github.com/jlismore>, Stack Builders <https://github.com
|
|
9
|
+
stackbuilders>, Esteban Ibarra <https://github.com/ibarrae>, Dominic Lee
|
|
10
|
+
<https://github.com/dominictwlee>, Dave Vedder <https://github.com
|
|
11
|
+
veddermatic>, Alec Flett <https://github.com/alecf> and potentially other
|
|
12
|
+
DefinitelyTyped contributors.
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
The above copyright notice and this permission notice shall be included in all
|
|
30
|
+
copies or substantial portions of the Software.
|
|
@@ -6266,11 +6266,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6266
6266
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
6267
6267
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
6268
6268
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
6269
|
-
/* harmony import */ var
|
|
6270
|
-
/* harmony import */ var
|
|
6269
|
+
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
6270
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
6271
6271
|
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
6272
|
-
/* harmony import */ var
|
|
6272
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
6273
6273
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6274
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
6274
6275
|
|
|
6275
6276
|
|
|
6276
6277
|
|
|
@@ -6303,6 +6304,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
6303
6304
|
|
|
6304
6305
|
|
|
6305
6306
|
|
|
6307
|
+
|
|
6306
6308
|
var VictoryContainer =
|
|
6307
6309
|
/*#__PURE__*/
|
|
6308
6310
|
function (_React$Component) {
|
|
@@ -6473,8 +6475,9 @@ function (_React$Component) {
|
|
|
6473
6475
|
preserveAspectRatio = _props.preserveAspectRatio,
|
|
6474
6476
|
role = _props.role;
|
|
6475
6477
|
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__.omit(this.props.style, ["height", "width"]);
|
|
6478
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_9__.getSafeUserProps(this.props);
|
|
6476
6479
|
|
|
6477
|
-
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
|
|
6480
|
+
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
6478
6481
|
width: width,
|
|
6479
6482
|
height: height,
|
|
6480
6483
|
tabIndex: tabIndex,
|
|
@@ -6483,7 +6486,7 @@ function (_React$Component) {
|
|
|
6483
6486
|
"aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined,
|
|
6484
6487
|
viewBox: responsive ? "0 0 ".concat(width, " ").concat(height) : undefined,
|
|
6485
6488
|
preserveAspectRatio: responsive ? preserveAspectRatio : undefined
|
|
6486
|
-
}, events);
|
|
6489
|
+
}, userProps), events);
|
|
6487
6490
|
|
|
6488
6491
|
return this.renderContainer(this.props, svgProps, style);
|
|
6489
6492
|
}
|
|
@@ -6517,18 +6520,18 @@ Object.defineProperty(VictoryContainer, "propTypes", {
|
|
|
6517
6520
|
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
6518
6521
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
6519
6522
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
6520
|
-
height:
|
|
6523
|
+
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
6521
6524
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
6522
6525
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
6523
|
-
x:
|
|
6524
|
-
y:
|
|
6526
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
6527
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
6525
6528
|
}),
|
|
6526
6529
|
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]),
|
|
6527
6530
|
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
6528
6531
|
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
6529
6532
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
6530
6533
|
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
6531
|
-
portalZIndex:
|
|
6534
|
+
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
6532
6535
|
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
6533
6536
|
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
6534
6537
|
role: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
@@ -6536,7 +6539,7 @@ Object.defineProperty(VictoryContainer, "propTypes", {
|
|
|
6536
6539
|
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
6537
6540
|
theme: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
6538
6541
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
6539
|
-
width:
|
|
6542
|
+
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
6540
6543
|
}
|
|
6541
6544
|
});
|
|
6542
6545
|
Object.defineProperty(VictoryContainer, "defaultProps", {
|
|
@@ -6545,7 +6548,7 @@ Object.defineProperty(VictoryContainer, "defaultProps", {
|
|
|
6545
6548
|
writable: true,
|
|
6546
6549
|
value: {
|
|
6547
6550
|
className: "VictoryContainer",
|
|
6548
|
-
portalComponent: react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
6551
|
+
portalComponent: react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
|
|
6549
6552
|
portalZIndex: 99,
|
|
6550
6553
|
responsive: true,
|
|
6551
6554
|
role: "img"
|
|
@@ -6555,7 +6558,7 @@ Object.defineProperty(VictoryContainer, "contextType", {
|
|
|
6555
6558
|
configurable: true,
|
|
6556
6559
|
enumerable: true,
|
|
6557
6560
|
writable: true,
|
|
6558
|
-
value:
|
|
6561
|
+
value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]
|
|
6559
6562
|
});
|
|
6560
6563
|
|
|
6561
6564
|
|
|
@@ -7774,6 +7777,103 @@ function () {
|
|
|
7774
7777
|
|
|
7775
7778
|
|
|
7776
7779
|
|
|
7780
|
+
/***/ }),
|
|
7781
|
+
|
|
7782
|
+
/***/ "../../victory-core/es/victory-util/user-props.js":
|
|
7783
|
+
/*!********************************************************!*\
|
|
7784
|
+
!*** ../../victory-core/es/victory-util/user-props.js ***!
|
|
7785
|
+
\********************************************************/
|
|
7786
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7787
|
+
|
|
7788
|
+
"use strict";
|
|
7789
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7790
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7791
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
7792
|
+
/* harmony export */ });
|
|
7793
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
7794
|
+
|
|
7795
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
7796
|
+
|
|
7797
|
+
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
7798
|
+
|
|
7799
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7800
|
+
|
|
7801
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
7802
|
+
|
|
7803
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7804
|
+
|
|
7805
|
+
/*
|
|
7806
|
+
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
7807
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
7808
|
+
starts with these characters.
|
|
7809
|
+
The exactMatch will contain a list of exact prop names that are accepted.
|
|
7810
|
+
*/
|
|
7811
|
+
var USER_PROPS_SAFELIST = {
|
|
7812
|
+
startsWith: ["data-", "aria-"],
|
|
7813
|
+
exactMatch: []
|
|
7814
|
+
};
|
|
7815
|
+
/**
|
|
7816
|
+
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
7817
|
+
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
7818
|
+
* of those options.
|
|
7819
|
+
* @param {string} key: prop key to be tested against whitelist
|
|
7820
|
+
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
7821
|
+
* otherwise
|
|
7822
|
+
*/
|
|
7823
|
+
|
|
7824
|
+
var doesPropStartWith = function (key) {
|
|
7825
|
+
var startsWith = false;
|
|
7826
|
+
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
7827
|
+
var regex = new RegExp("\\b(".concat(starterString, ")(\\w|-)+"), "g");
|
|
7828
|
+
if (regex.test(key)) startsWith = true;
|
|
7829
|
+
});
|
|
7830
|
+
return startsWith;
|
|
7831
|
+
};
|
|
7832
|
+
/**
|
|
7833
|
+
* isExactMatch: checks to see if the given key matches any of the 'exactMatch'
|
|
7834
|
+
* items in the whitelist
|
|
7835
|
+
* @param {String} key: prop key to be tested against the whitelist-exact match
|
|
7836
|
+
* array.
|
|
7837
|
+
* @returns {Boolean}: return true if whitelist contains that key, otherwise
|
|
7838
|
+
* returns false.
|
|
7839
|
+
*/
|
|
7840
|
+
|
|
7841
|
+
|
|
7842
|
+
var isExactMatch = function (key) {
|
|
7843
|
+
return USER_PROPS_SAFELIST.exactMatch.includes(key);
|
|
7844
|
+
};
|
|
7845
|
+
/**
|
|
7846
|
+
* testIfSafeProp: tests prop's key against both startsWith and exactMatch values
|
|
7847
|
+
* @param {String} key: prop key to be tested against the whitelist
|
|
7848
|
+
* @returns {Boolean}: returns true if found in whitelist, otherwise returns false
|
|
7849
|
+
*/
|
|
7850
|
+
|
|
7851
|
+
|
|
7852
|
+
var testIfSafeProp = function (key) {
|
|
7853
|
+
if (doesPropStartWith(key) || isExactMatch(key)) return true;
|
|
7854
|
+
return false;
|
|
7855
|
+
};
|
|
7856
|
+
/**
|
|
7857
|
+
* getSafeUserProps - function that takes in a props object and removes any
|
|
7858
|
+
* key-value entries that do not match filter strings in the USER_PROPS_SAFELIST
|
|
7859
|
+
* object.
|
|
7860
|
+
*
|
|
7861
|
+
* @param {Object} props: props to be filtered against USER_PROPS_SAFELIST
|
|
7862
|
+
* @returns {Object}: object containing remaining acceptable props
|
|
7863
|
+
*/
|
|
7864
|
+
|
|
7865
|
+
|
|
7866
|
+
var getSafeUserProps = function (props) {
|
|
7867
|
+
var propsToFilter = _objectSpread({}, props);
|
|
7868
|
+
|
|
7869
|
+
return Object.fromEntries(Object.entries(propsToFilter).filter(function (_ref) {
|
|
7870
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
7871
|
+
key = _ref2[0];
|
|
7872
|
+
|
|
7873
|
+
return testIfSafeProp(key);
|
|
7874
|
+
}));
|
|
7875
|
+
};
|
|
7876
|
+
|
|
7777
7877
|
/***/ }),
|
|
7778
7878
|
|
|
7779
7879
|
/***/ "react":
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.VictoryBrushContainer=t(require("react")):e.VictoryBrushContainer=t(e.React)}(self,(function(e){return(()=>{var t={1124:(e,t,n)=>{var r=n(7236);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},4281:(e,t,n)=>{var r=n(7168),o=n(6582),a=n(3867),i=n(9557),u=n(2726);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},4690:(e,t,n)=>{var r=n(441).Symbol;e.exports=r},5198:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3848:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4793:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7596:(e,t,n)=>{var r=n(999),o=n(6530),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},3833:(e,t,n)=>{var r=n(6530);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},999:(e,t,n)=>{var r=n(9346);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},528:e=>{e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},314:(e,t,n)=>{var r=n(3848),o=n(1754);e.exports=function e(t,n,a,i,u){var c=-1,l=t.length;for(a||(a=o),u||(u=[]);++c<l;){var s=t[c];n>0&&a(s)?n>1?e(s,n-1,a,i,u):r(u,s):i||(u[u.length]=s)}return u}},641:(e,t,n)=>{var r=n(2630)();e.exports=r},5897:(e,t,n)=>{var r=n(641),o=n(2635);e.exports=function(e,t){return e&&r(e,t,o)}},166:(e,t,n)=>{var r=n(8422),o=n(8780);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},4318:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7650:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},1071:(e,t,n)=>{var r=n(7229),o=n(3387);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},7229:(e,t,n)=>{var r=n(4281),o=n(2503),a=n(6001),i=n(8784),u=n(6686),c=n(7236),l=n(8752),s=n(4812),f="[object Arguments]",p="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,b,d){var m=c(e),x=c(t),g=m?p:u(e),w=x?p:u(t),O=(g=g==f?h:g)==h,j=(w=w==f?h:w)==h,M=g==w;if(M&&l(e)){if(!l(t))return!1;m=!0,O=!1}if(M&&!O)return d||(d=new r),m||s(e)?o(e,t,n,y,b,d):a(e,t,g,n,y,b,d);if(!(1&n)){var _=O&&v.call(e,"__wrapped__"),D=j&&v.call(t,"__wrapped__");if(_||D){var E=_?e.value():e,P=D?t.value():t;return d||(d=new r),b(E,P,n,y,d)}}return!!M&&(d||(d=new r),i(e,t,n,y,b,d))}},9157:(e,t,n)=>{var r=n(4281),o=n(1071);e.exports=function(e,t,n,a){var i=n.length,u=i,c=!a;if(null==e)return!u;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<u;){var s=(l=n[i])[0],f=e[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in e))return!1}else{var h=new r;if(a)var v=a(f,p,s,e,t,h);if(!(void 0===v?o(p,f,3,a,h):v))return!1}}return!0}},1131:(e,t,n)=>{var r=n(4318),o=n(3387);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},8904:(e,t,n)=>{var r=n(8418),o=n(4555),a=n(5362),i=n(7236),u=n(1651);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},8418:(e,t,n)=>{var r=n(9157),o=n(9182),a=n(7375);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4555:(e,t,n)=>{var r=n(1071),o=n(3795),a=n(3646),i=n(3266),u=n(1457),c=n(7375),l=n(8780);e.exports=function(e,t){return i(e)&&u(t)?c(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},7410:(e,t,n)=>{var r=n(6621),o=n(3646);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},6621:(e,t,n)=>{var r=n(166),o=n(8116),a=n(8422);e.exports=function(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var l=t[i],s=r(e,l);n(s,l)&&o(c,a(l,e),s)}return c}},1712:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4815:(e,t,n)=>{var r=n(166);e.exports=function(e){return function(t){return r(t,e)}}},4569:(e,t,n)=>{var r=n(5362),o=n(4468),a=n(8756);e.exports=function(e,t){return a(o(e,t,r),e+"")}},8116:(e,t,n)=>{var r=n(7596),o=n(8422),a=n(4363),i=n(5973),u=n(8780);e.exports=function(e,t,n,c){if(!i(e))return e;for(var l=-1,s=(t=o(t,e)).length,f=s-1,p=e;null!=p&&++l<s;){var h=u(t[l]),v=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=f){var y=p[h];void 0===(v=c?c(y,h,p):void 0)&&(v=i(y)?y:a(t[l+1])?[]:{})}r(p,h,v),p=p[h]}return e}},6535:e=>{e.exports=function(e){return function(t){return e(t)}}},555:(e,t,n)=>{var r=n(7650);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},8422:(e,t,n)=>{var r=n(7236),o=n(3266),a=n(3879),i=n(1119);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},6051:(e,t,n)=>{var r=n(7596),o=n(999);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var u=-1,c=t.length;++u<c;){var l=t[u],s=a?a(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?o(n,l,s):r(n,l,s)}return n}},2544:(e,t,n)=>{var r=n(4569),o=n(3108);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,i)}return t}))}},2630:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===n(a[c],c,a))break}return t}}},3086:(e,t,n)=>{var r=n(8904),o=n(1580),a=n(2635);e.exports=function(e){return function(t,n,i){var u=Object(t);if(!o(t)){var c=r(n,3);t=a(t),n=function(e){return c(u[e],e,u)}}var l=e(t,n,i);return l>-1?u[c?t[l]:l]:void 0}}},9346:(e,t,n)=>{var r=n(4457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},2503:(e,t,n)=>{var r=n(1124),o=n(4793),a=n(555);e.exports=function(e,t,n,i,u,c){var l=1&n,s=e.length,f=t.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var v=-1,y=!0,b=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++v<s;){var d=e[v],m=t[v];if(i)var x=l?i(m,d,v,t,e,c):i(d,m,v,e,t,c);if(void 0!==x){if(x)continue;y=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(d===e||u(d,e,n,i,c)))return b.push(t)}))){y=!1;break}}else if(d!==m&&!u(d,m,n,i,c)){y=!1;break}}return c.delete(e),c.delete(t),y}},6001:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8784:(e,t,n)=>{var r=n(6094),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var c=1&n,l=r(e),s=l.length;if(s!=r(t).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in t:o.call(t,p)))return!1}var h=u.get(e),v=u.get(t);if(h&&v)return h==t&&v==e;var y=!0;u.set(e,t),u.set(t,e);for(var b=c;++f<s;){var d=e[p=l[f]],m=t[p];if(a)var x=c?a(m,d,p,t,e,u):a(d,m,p,e,t,u);if(!(void 0===x?d===m||i(d,m,n,a,u):x)){y=!1;break}b||(b="constructor"==p)}if(y&&!b){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(e),u.delete(t),y}},3368:(e,t,n)=>{var r=n(5453),o=n(4468),a=n(8756);e.exports=function(e){return a(o(e,void 0,r),e+"")}},4414:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6094:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},9182:(e,t,n)=>{var r=n(1457),o=n(2635);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},4457:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6686:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7383:(e,t,n)=>{var r=n(8422),o=n(6981),a=n(7236),i=n(4363),u=n(9216),c=n(8780);e.exports=function(e,t,n){for(var l=-1,s=(t=r(t,e)).length,f=!1;++l<s;){var p=c(t[l]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++l!=s?f:!!(s=null==e?0:e.length)&&u(s)&&i(p,s)&&(a(e)||o(e))}},1754:(e,t,n)=>{var r=n(4690),o=n(6981),a=n(7236),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},4363:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3108:e=>{e.exports=function(){return!1}},3266:(e,t,n)=>{var r=n(7236),o=n(2945),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},5003:e=>{e.exports=function(){return!1}},1457:(e,t,n)=>{var r=n(5973);e.exports=function(e){return e==e&&!r(e)}},7168:e=>{e.exports=function(){this.__data__=[],this.size=0}},6582:(e,t,n)=>{var r=n(3833),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},3867:(e,t,n)=>{var r=n(3833);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},9557:(e,t,n)=>{var r=n(3833);e.exports=function(e){return r(this.__data__,e)>-1}},2726:(e,t,n)=>{var r=n(3833);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},7375:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7085:e=>{e.exports=function(e){return e}},1782:(e,t,n)=>{e=n.nmd(e);var r=n(4414),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},3717:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4468:(e,t,n)=>{var r=n(5198),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),c=Array(u);++i<u;)c[i]=a[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=a[i];return l[t]=n(c),r(e,this,l)}}},441:(e,t,n)=>{var r=n(4414),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},8756:e=>{e.exports=function(e){return e}},3879:(e,t,n)=>{var r=n(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},8780:e=>{e.exports=function(e){return e}},6782:(e,t,n)=>{var r=n(7596),o=n(6051),a=n(2544),i=n(1580),u=n(5003),c=n(2635),l=Object.prototype.hasOwnProperty,s=a((function(e,t){if(u(t)||i(t))o(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=s},5750:(e,t,n)=>{var r=n(5973),o=n(8148),a=n(8746),i=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,s,f,p,h,v=0,y=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=c,r=l;return c=l=void 0,v=t,f=e.apply(r,n)}function x(e){return v=e,p=setTimeout(w,t),y?m(e):f}function g(e){var n=e-h;return void 0===h||n>=t||n<0||b&&e-v>=s}function w(){var e=o();if(g(e))return O(e);p=setTimeout(w,function(e){var n=t-(e-h);return b?u(n,s-(e-v)):n}(e))}function O(e){return p=void 0,d&&c?m(e):(c=l=void 0,f)}function j(){var e=o(),n=g(e);if(c=arguments,l=this,h=e,n){if(void 0===p)return x(h);if(b)return clearTimeout(p),p=setTimeout(w,t),m(h)}return void 0===p&&(p=setTimeout(w,t)),f}return t=a(t)||0,r(n)&&(y=!!n.leading,s=(b="maxWait"in n)?i(a(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),j.cancel=function(){void 0!==p&&clearTimeout(p),v=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(e,t,n)=>{var r=n(4569),o=n(6530),a=n(3108),i=n(5850),u=Object.prototype,c=u.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&a(t[0],t[1],l)&&(r=1);++n<r;)for(var s=t[n],f=i(s),p=-1,h=f.length;++p<h;){var v=f[p],y=e[v];(void 0===y||o(y,u[v])&&!c.call(e,v))&&(e[v]=s[v])}return e}));e.exports=l},6530:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6786:(e,t,n)=>{var r=n(3086)(n(8611));e.exports=r},8611:(e,t,n)=>{var r=n(528),o=n(8904),a=n(5225),i=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var c=null==n?0:a(n);return c<0&&(c=i(u+c,0)),r(e,o(t,3),c)}},5453:(e,t,n)=>{var r=n(314);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3795:(e,t,n)=>{var r=n(166);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},3646:(e,t,n)=>{var r=n(7),o=n(7383);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5362:e=>{e.exports=function(e){return e}},6981:e=>{e.exports=function(){return!1}},7236:e=>{var t=Array.isArray;e.exports=t},1580:(e,t,n)=>{var r=n(3839),o=n(9216);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},8752:e=>{e.exports=function(){return!1}},3839:(e,t,n)=>{var r=n(4318),o=n(5973);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9216:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5973:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3387:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2654:(e,t,n)=>{var r=n(1131),o=n(6535),a=n(1782),i=a&&a.isRegExp,u=i?o(i):r;e.exports=u},2945:e=>{e.exports=function(){return!1}},4812:e=>{e.exports=function(){return!1}},2635:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},5850:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},3792:(e,t,n)=>{var r=n(999),o=n(5897),a=n(8904);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},8148:(e,t,n)=>{var r=n(441);e.exports=function(){return r.Date.now()}},8423:(e,t,n)=>{var r=n(7410),o=n(3368)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},1651:(e,t,n)=>{var r=n(1712),o=n(4815),a=n(3266),i=n(8780);e.exports=function(e){return a(e)?r(i(e)):o(e)}},3259:(e,t,n)=>{var r=n(5750),o=n(5973);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},992:(e,t,n)=>{var r=n(8746);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},5225:(e,t,n)=>{var r=n(992);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},8746:e=>{e.exports=function(e){return e}},1119:e=>{e.exports=function(e){return e}},556:(e,t,n)=>{var r=n(1119),o=0;e.exports=function(e){var t=++o;return r(e)+t}},459:(e,t,n)=>{"use strict";var r=n(5704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,s=t(e),f=t(i);if(s&&f){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(s!=f)return!1;var p=e instanceof Date,h=i instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==i.getTime();var v=e instanceof RegExp,y=i instanceof RegExp;if(v!=y)return!1;if(v&&y)return e.toString()==i.toString();var b=n(e);if((c=b.length)!==n(i).length)return!1;for(u=c;0!=u--;)if(!r.call(i,b[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=b[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},9787:t=>{"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{BrushHelpers:()=>Pe,VictoryBrushContainer:()=>Ie,brushContainerMixin:()=>Ce});var e=r(7901),t=r.n(e),n=r(6782),a=r.n(n),i=r(216),u=r.n(i),c=r(9787),l=r.n(c);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return f(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return f(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(e,t,n){var r=t.a,o=t.d,a=t.e,i=t.f;return"y"===n?o*e+i:r*e+a}function y(e){if(!e.nativeEvent||void 0===e.nativeEvent.identifier){var t=function(e){return"svg"===e.nodeName?e:e.parentNode?t(e.parentNode):e};return t(e.target)}}function b(e,t){if(e.nativeEvent&&void 0!==e.nativeEvent.identifier)return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var n=function(e){return e.getScreenCTM().inverse()}(t=t||y(e));return{x:v(e.clientX,n,"x"),y:v(e.clientY,n,"y")}}function d(e,t){var n=e.scale,r=e.horizontal;return t=t||{x:n.x.domain(),y:n.y.domain()},{x:r?[n.y(t.y[0]),n.y(t.y[1])]:[n.x(t.x[0]),n.x(t.x[1])],y:r?[n.x(t.x[0]),n.x(t.x[1])]:[n.y(t.y[0]),n.y(t.y[1])]}}function m(e,t,n,r){var o=e.polar,a=e.horizontal;if(o){var i=e.origin||{x:0,y:0},u=n-i.x,c=r-i.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:t.x.invert(s),y:t.y.invert(l)}}return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)}}function x(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.scale,i=m(e,a,t,r),u=m(e,a,n,o),c=function(e,t){return[h([e,t]),p([e,t])]};return{x:c(i.x,u.x),y:c(i.y,u.y)}}var g=r(3839),w=r.n(g),O=r(5973),j=r.n(O),M=r(556),_=r.n(M),D=r(2654),E=r.n(D),P=r(6786),A=r.n(P),S=function(e){var t=function(t,n,r,o){var a=n[r];if(null==a)return t?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),c=4;c<i;c++)u[c-4]=arguments[c];return e.apply(void 0,[n,r,o].concat(u))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},T=function(){return null},B=function(){},R=function(e){return void 0===e?B:null===e?T:e.constructor},k=function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)},C=S((function(e,t,n){var r=e[t];if("number"!=typeof r||r<0)return new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number."))})),I=S((function(e,t,n){var r=e[t];if("number"!=typeof r||r%1!=0)return new Error("`".concat(t,"` in `").concat(n,"` must be an integer."))})),G=(S((function(e,t,n){var r=e[t];if("number"!=typeof r||r<=0)return new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero."))})),S((function(e,t,n){var r=e[t];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values."))})),S((function(e,t,n){var r;if(r=e[t],!(w()(r)?w()(r.copy)&&w()(r.domain)&&w()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))})),S((function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var o=R(r[0]),a=A()(r,(function(e){return o!==R(e)}));if(a){var i=k(r[0]),u=k(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),S((function(e,t){if(e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length)return new Error("Length of data and ".concat(t," arrays must match."))})),S((function(e,t,n){if(e[t]&&!E()(e[t]))return new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression."))})),r(2635)),z=r.n(G);function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var W=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?U(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).map={},n.index=1,n.portalUpdate=n.portalUpdate.bind(U(n)),n.portalRegister=n.portalRegister.bind(U(n)),n.portalDeregister=n.portalDeregister.bind(U(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n=t,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(e,t){this.map[e]=t,this.forceUpdate()}},{key:"portalDeregister",value:function(e){delete this.map[e],this.forceUpdate()}},{key:"getChildren",value:function(){var e=this;return z()(this.map).map((function(t){var n=e.map[t];return n?l().cloneElement(n,{key:t}):n}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&N(n.prototype,r),t}(l().Component);Object.defineProperty(W,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(W,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:u().string,height:C,style:u().object,viewBox:u().string,width:C}});var F=l().createContext({});F.displayName="PortalContext";const V=F;var H,q,X=0,Y=0,$=0,L=0,Z=0,J=0,K="object"==typeof performance&&performance.now?performance:Date,Q="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ee(){return Z||(Q(te),Z=K.now()+J)}function te(){Z=0}function ne(){this._call=this._time=this._next=null}function re(e,t,n){var r=new ne;return r.restart(e,t,n),r}function oe(){Z=(L=K.now())+J,X=Y=0;try{!function(){ee(),++X;for(var e,t=H;t;)(e=Z-t._time)>=0&&t._call.call(null,e),t=t._next;--X}()}finally{X=0,function(){for(var e,t,n=H,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:H=t);q=e,ie(r)}(),Z=0}}function ae(){var e=K.now(),t=e-L;t>1e3&&(J-=t,L=e)}function ie(e){X||(Y&&(Y=clearTimeout(Y)),e-Z>24?(e<1/0&&(Y=setTimeout(oe,e-K.now()-J)),$&&($=clearInterval($))):($||(L=K.now(),$=setInterval(ae,1e3)),X=1,Q(oe)))}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}ne.prototype=re.prototype={constructor:ne,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?ee():+n)+(null==t?0:+t),this._next||q===this||(q?q._next=this:H=this,q=this),this._call=e,this._time=n,ie()},stop:function(){this._call&&(this._call=null,this._time=1/0,ie())}};var ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var t,n;return t=e,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(e){e.callback(ee()-e.startTime,e.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=re(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(e,t){t=this.shouldAnimate?t:0;var n=this.subscribers.push({startTime:ee(),callback:e,duration:t});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&ue(t.prototype,n),e}(),le=l().createContext({transitionTimer:new ce,animationTimer:new ce});le.displayName="TimerContext";const se=le;function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){he(e,t,n[t])}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}r(8423),r(1651);var ye=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).containerId=j()(e)&&void 0!==e.containerId?e.containerId:_()("victory-container-"),t.savePortalRef=function(e){return t.portalRef=e,e},t.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},t.portalRegister=function(){return t.portalRef.portalRegister()},t.portalDeregister=function(e){return t.portalRef.portalDeregister(e)},t.saveContainerRef=e&&w()(e.containerRef)?e.containerRef:function(e){return t.containerRef=e,e},t.shouldHandleWheel=e&&e.events&&e.events.onWheel,t.shouldHandleWheel&&(t.handleWheel=function(e){return e.preventDefault()}),t}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r=n,(o=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}},{key:"getChildren",value:function(e){return e.children}},{key:"getOUIAProps",value:function(e){var t=e.ouiaId,n=e.ouiaSafe,r=e.ouiaType;return pe({},t&&{"data-ouia-component-id":t},r&&{"data-ouia-component-type":r},void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(e,n,r){var o=e.title,i=e.desc,u=e.portalComponent,c=e.className,s=e.width,f=e.height,p=e.portalZIndex,h=e.responsive,v=this.getChildren(e),y=h?{width:"100%",height:"100%"}:{width:s,height:f},b=a()({pointerEvents:"none",touchAction:"none",position:"relative"},y),d=a()({zIndex:p,position:"absolute",top:0,left:0},y),m=a()({pointerEvents:"all"},y),x=a()({overflow:"visible"},y),g={width:s,height:f,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:x};return l().createElement(V.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",fe({style:t()({},r,b),className:c,ref:this.saveContainerRef},this.getOUIAProps(e)),l().createElement("svg",fe({},n,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,i?l().createElement("desc",{id:this.getIdForElement("desc")},i):null,v),l().createElement("div",{style:d},l().cloneElement(u,pe({},g,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.responsive,o=e.events,i=e.title,u=e.desc,c=e.tabIndex,l=e.preserveAspectRatio,s=e.role,f=r?this.props.style:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props.style,["height","width"]),p=a()({width:t,height:n,tabIndex:c,role:s,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(t," ").concat(n):void 0,preserveAspectRatio:r?l:void 0},o);return this.renderContainer(this.props,p,f)}}])&&ve(r.prototype,o),n}(l().Component);function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}Object.defineProperty(ye,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(ye,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(ye,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:C,name:u().string,origin:u().shape({x:C,y:C}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:I,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:C}}),Object.defineProperty(ye,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:l().createElement(W,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(ye,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:se});const de=function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?l().createElement("rect",be({vectorEffect:"non-scaling-stroke"},n),l().createElement("desc",null,t)):l().createElement("rect",be({vectorEffect:"non-scaling-stroke"},n))};var me=r(3792),xe=r.n(me),ge=r(3259),we=r.n(ge),Oe=r(8266),je=r.n(Oe);function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_e(e,t,n[t])}))}return e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ee={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return t&&n?"x"===n?"y":"x":n},withinBounds:function(e,t,n){var r=xe()(t,Number),o=r.x1,a=r.x2,i=r.y1,u=r.y2,c=xe()(e,Number),l=c.x,s=c.y;return l+(n=n?n/2:0)>=Math.min(o,a)&&l-n<=Math.max(o,a)&&s+n>=Math.min(i,u)&&s-n<=Math.max(i,u)},getDomainBox:function(e,n,r){var o=this.getDimension(e);n=t()({},n,e.domain),r=t()({},r,n);var a=d(e,n),i=d(e,r);return{x1:"y"!==o?Math.min.apply(Math,De(i.x)):Math.min.apply(Math,De(a.x)),x2:"y"!==o?Math.max.apply(Math,De(i.x)):Math.max.apply(Math,De(a.x)),y1:"x"!==o?Math.min.apply(Math,De(i.y)):Math.min.apply(Math,De(a.y)),y2:"x"!==o?Math.max.apply(Math,De(i.y)):Math.max.apply(Math,De(a.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,o=t.x2,a=t.y1,i=t.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(a,i),s=Math.max(a,i),f=e.handleWidth/2;return{left:"y"!==n&&{x1:u-f,x2:u+f,y1:a,y2:i},right:"y"!==n&&{x1:c-f,x2:c+f,y1:a,y2:i},top:"x"!==n&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(e,t,n){var r=this,o=this.getHandles(t,n),a=["top","bottom","left","right"].reduce((function(t,n){return o[n]&&r.withinBounds(e,o[n])?t.concat(n):t}),[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,o=e.x2,i=e.y2,u={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return t.reduce((function(e,t){return a()(e,u[t])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,o=e.fullDomain,a=e.scale,i=e.horizontal,u=e.allowResize||e.defaultBrushArea?e.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return t;if("move"===u){var c=this.getDomainBox(e,o,t),l=e.parentSVG||y(n),s=this.panBox(Me({},e,c,{brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(n,l)),f=e.fullDomainBox||this.getDomainBox(e,o);return x(Me({},this.constrainBox(s,f),{scale:a,horizontal:i}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,o=e.y,a=t.x1,i=t.x2,u=t.y1,c=t.y2;return{x1:"y"!==n?r:a,y1:"x"!==n?o:u,x2:"y"!==n?r:i,y2:"x"!==n?o:c}},panBox:function(e,n){var r=e.domain,o=e.startX,a=e.startY,i=this.getDimension(e),u=t()({},e.brushDomain,r),c=t()({},e.fullDomain,r),l=e.x1?e:this.getDomainBox(e,c,u),s=l.x1,f=l.x2,p=l.y1,h=l.y2,v=n.x,y=n.y,b=o?o-v:0,d=a?a-y:0;return{x1:"y"!==i?Math.min(s,f)-b:Math.min(s,f),x2:"y"!==i?Math.max(s,f)-b:Math.max(s,f),y1:"x"!==i?Math.min(p,h)-d:Math.min(p,h),y2:"x"!==i?Math.max(p,h)-d:Math.max(p,h)}},constrainBox:function(e,t){var n=xe()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>i?i-Math.abs(e.y2-e.y1):Math.max(e.y1,o),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<o?o+Math.abs(e.y2-e.y1):Math.min(e.y2,i)}},constrainPoint:function(e,t){var n=xe()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,o),i)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.mouseMoveThreshold,i=this.getDimension(e),u=Math.abs(t-n)>=a,c=Math.abs(r-o)>=a;switch(i){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(e,n){var r=this;e.preventDefault();var o=n.handleWidth,a=n.cachedBrushDomain,i=n.domain,u=n.allowResize,c=n.allowDrag,l=n.allowDraw,s=this.getDimension(n),f=u||n.defaultBrushArea?n.defaultBrushArea:"move";if(!u&&!c)return{};var p=n.fullDomainBox||this.getDomainBox(n,i),h=n.parentSVG||y(e),v=b(e,h),d=v.x,m=v.y;if(!this.withinBounds({x:d,y:m},p,o))return{};var x=t()({},n.brushDomain,i),g=je()(x,a)?n.currentDomain||x||i:x||i,w=this.getDomainBox(n,i,g),O=u&&this.getActiveHandles({x:d,y:m},n,w);return O?[{target:"parent",mutation:function(){return Me({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:h},r.getResizeMutation(w,O))}}]:this.withinBounds({x:d,y:m},w)&&!je()(i,g)?[{target:"parent",mutation:function(){return Me({isPanning:c,startX:d,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:h},w)}}]:l?[{target:"parent",mutation:function(){return Me({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:h,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:r.getMinimumDomain()},r.getSelectionMutation({x:d,y:m},w,s))}}]:{}},onGlobalMouseMove:function(e,n){var r=n.scale,o=n.isPanning,a=n.isSelecting,i=n.fullDomainBox,u=n.onBrushDomainChange,c=n.allowResize,l=n.allowDrag,s=n.horizontal,f=n.mouseMoveThreshold,p=n.parentSVG,h=this.getDimension(n),v=b(e,p),y=v.x,d=v.y;if(!c&&!l||f>0&&!this.hasMoved(Me({},n,{x2:y,y2:d})))return{};if(l&&o){var m=n.startX,g=n.startY,O=this.panBox(n,{x:y,y:d}),j=this.constrainBox(O,i),M=x(Me({},j,{scale:r,horizontal:s})),_=Me({currentDomain:M,parentSVG:p,startX:O.x2>=i.x2||O.x1<=i.x1?m:y,startY:O.y2>=i.y2||O.y1<=i.y1?g:d},j);return w()(u)&&u(M,t()({},_,n)),[{target:"parent",mutation:function(){return _}}]}if(c&&a){var D=this.constrainPoint({x:"y"!==h?y:n.x2,y:"x"!==h?d:n.y2},i),E=D.x,P=D.y,A=x({x2:E,y2:P,x1:n.x1,y1:n.y1,scale:r,horizontal:s}),S={x2:E,y2:P,currentDomain:A,parentSVG:p};return w()(u)&&u(A,t()({},S,n)),[{target:"parent",mutation:function(){return S}}]}return{}},onGlobalMouseUp:function(e,n){if(!n.isPanning&&!n.isSelecting)return{};var r=n.x1,o=n.y1,a=n.x2,i=n.y2,u=n.isPanning,c=n.isSelecting,l=n.onBrushDomainChange,s=n.onBrushDomainChangeEnd,f=n.onBrushCleared,p=n.currentDomain,h=n.allowResize,v=n.allowDrag,y=h||n.defaultBrushArea?n.defaultBrushArea:"move",b={isPanning:!1,isSelecting:!1};if(!h&&(void 0===y||"none"===y)||r!==a&&o!==i)(v&&u||h&&c)&&w()(s)&&s(p,t()({},b,n));else{var d=n.cachedCurrentDomain||p,m=this.getDefaultBrushArea(n,d,e);b.currentDomain=m,w()(l)&&l(m,t()({},b,n)),w()(s)&&s(m,t()({},b,n)),w()(f)&&f(m,t()({},b,n))}return[{target:"parent",mutation:function(){return b}}]}};const Pe=Me({},Ee,{onMouseDown:Ee.onMouseDown.bind(Ee),onGlobalMouseUp:Ee.onGlobalMouseUp.bind(Ee),onGlobalMouseMove:we()(Ee.onGlobalMouseMove.bind(Ee),16,{leading:!0,trailing:!1})});function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Se(e,t,n[t])}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Ce=function(e){var n,r;return r=n=function(e){function n(){return Be(this,n),ke(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r=n,(o=[{key:"getSelectBox",value:function(e,n){var r=n.x,o=n.y,a=e.brushStyle,i=e.brushComponent,u=e.name,c=i.props&&i.props.style,s=e.allowDrag||e.allowResize?"move":"auto";return r[0]!==r[1]&&o[0]!==o[1]?l().cloneElement(i,{key:"".concat(u,"-brush"),width:Math.abs(r[1]-r[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(r[0],r[1]),y:Math.min(o[0],o[1]),cursor:s,style:t()({},c,a)}):null}},{key:"getCursorPointers",value:function(e){var t={yProps:"ns-resize",xProps:"ew-resize"};return!e.allowResize&&e.allowDrag?(t.xProps="move",t.yProps="move"):e.allowResize||e.allowDrag||(t.xProps="auto",t.yProps="auto"),t}},{key:"getHandles",value:function(e,n){var r=e.handleWidth,o=e.handleStyle,i=e.handleComponent,u=e.name,c=Pe.getDomainBox(e,n),s=c.x1,f=c.x2,p=c.y1,h=c.y2,v=Pe.getHandles(e,c),y=v.top,b=v.bottom,d=v.left,m=v.right,x=Math.abs(f-s)||1,g=Math.abs(h-p)||1,w=i.props&&i.props.style||{},O=t()({},w,o),j=this.getCursorPointers(e),M={style:O,width:x,height:r,cursor:j.yProps},_={style:O,width:r,height:g,cursor:j.xProps},D={top:y&&a()({x:y.x1,y:y.y1},M),bottom:b&&a()({x:b.x1,y:b.y1},M),left:d&&a()({y:d.y1,x:d.x1},_),right:m&&a()({y:m.y1,x:m.x1},_)},E=["top","bottom","left","right"].reduce((function(e,t){return D[t]?e.concat(l().cloneElement(i,a()({key:"".concat(u,"-handle-").concat(t)},D[t]))):e}),[]);return E.length?E:null}},{key:"getRect",value:function(e){var n=e.currentDomain,r=e.cachedBrushDomain,o=t()({},e.brushDomain,e.domain),a=je()(o,r)?t()({},n,o):o,i=d(e,a),u=this.getSelectBox(e,i);return u?[u,this.getHandles(e,a)]:[]}},{key:"getChildren",value:function(e){return Te(l().Children.toArray(e.children)).concat(Te(this.getRect(e)))}}])&&Re(r.prototype,o),n}(e),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryBrushContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Ae({},ye.propTypes,{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Ae({},ye.defaultProps,{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(de,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(de,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseDown:function(t,n){return e.disable?{}:Pe.onMouseDown(t,n)},onTouchStart:function(t,n){return e.disable?{}:Pe.onMouseDown(t,n)},onGlobalMouseMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:Pe.onGlobalMouseMove(t,n)},onGlobalTouchMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:Pe.onGlobalMouseMove(t,n)},onGlobalMouseUp:function(t,n){return e.disable?{}:Pe.onGlobalMouseUp(t,n)},onGlobalTouchEnd:function(t,n){return e.disable?{}:Pe.onGlobalMouseUp(t,n)},onGlobalTouchCancel:function(t,n){return e.disable?{}:Pe.onGlobalMouseUp(t,n)}}}]}}),r};const Ie=Ce(ye)})(),o})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.VictoryBrushContainer=t(require("react")):e.VictoryBrushContainer=t(e.React)}(self,(function(e){return(()=>{var t={1124:(e,t,n)=>{var r=n(7236);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},4281:(e,t,n)=>{var r=n(7168),o=n(6582),a=n(3867),i=n(9557),u=n(2726);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},4690:(e,t,n)=>{var r=n(441).Symbol;e.exports=r},5198:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3848:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4793:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7596:(e,t,n)=>{var r=n(999),o=n(6530),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},3833:(e,t,n)=>{var r=n(6530);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},999:(e,t,n)=>{var r=n(9346);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},528:e=>{e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},314:(e,t,n)=>{var r=n(3848),o=n(1754);e.exports=function e(t,n,a,i,u){var c=-1,l=t.length;for(a||(a=o),u||(u=[]);++c<l;){var s=t[c];n>0&&a(s)?n>1?e(s,n-1,a,i,u):r(u,s):i||(u[u.length]=s)}return u}},641:(e,t,n)=>{var r=n(2630)();e.exports=r},5897:(e,t,n)=>{var r=n(641),o=n(2635);e.exports=function(e,t){return e&&r(e,t,o)}},166:(e,t,n)=>{var r=n(8422),o=n(8780);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},4318:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7650:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},1071:(e,t,n)=>{var r=n(7229),o=n(3387);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},7229:(e,t,n)=>{var r=n(4281),o=n(2503),a=n(6001),i=n(8784),u=n(6686),c=n(7236),l=n(8752),s=n(4812),f="[object Arguments]",p="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,b,d){var m=c(e),x=c(t),g=m?p:u(e),w=x?p:u(t),O=(g=g==f?h:g)==h,j=(w=w==f?h:w)==h,M=g==w;if(M&&l(e)){if(!l(t))return!1;m=!0,O=!1}if(M&&!O)return d||(d=new r),m||s(e)?o(e,t,n,v,b,d):a(e,t,g,n,v,b,d);if(!(1&n)){var _=O&&y.call(e,"__wrapped__"),D=j&&y.call(t,"__wrapped__");if(_||D){var E=_?e.value():e,P=D?t.value():t;return d||(d=new r),b(E,P,n,v,d)}}return!!M&&(d||(d=new r),i(e,t,n,v,b,d))}},9157:(e,t,n)=>{var r=n(4281),o=n(1071);e.exports=function(e,t,n,a){var i=n.length,u=i,c=!a;if(null==e)return!u;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<u;){var s=(l=n[i])[0],f=e[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in e))return!1}else{var h=new r;if(a)var y=a(f,p,s,e,t,h);if(!(void 0===y?o(p,f,3,a,h):y))return!1}}return!0}},1131:(e,t,n)=>{var r=n(4318),o=n(3387);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},8904:(e,t,n)=>{var r=n(8418),o=n(4555),a=n(5362),i=n(7236),u=n(1651);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},8418:(e,t,n)=>{var r=n(9157),o=n(9182),a=n(7375);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4555:(e,t,n)=>{var r=n(1071),o=n(3795),a=n(3646),i=n(3266),u=n(1457),c=n(7375),l=n(8780);e.exports=function(e,t){return i(e)&&u(t)?c(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},7410:(e,t,n)=>{var r=n(6621),o=n(3646);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},6621:(e,t,n)=>{var r=n(166),o=n(8116),a=n(8422);e.exports=function(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var l=t[i],s=r(e,l);n(s,l)&&o(c,a(l,e),s)}return c}},1712:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4815:(e,t,n)=>{var r=n(166);e.exports=function(e){return function(t){return r(t,e)}}},4569:(e,t,n)=>{var r=n(5362),o=n(4468),a=n(8756);e.exports=function(e,t){return a(o(e,t,r),e+"")}},8116:(e,t,n)=>{var r=n(7596),o=n(8422),a=n(4363),i=n(5973),u=n(8780);e.exports=function(e,t,n,c){if(!i(e))return e;for(var l=-1,s=(t=o(t,e)).length,f=s-1,p=e;null!=p&&++l<s;){var h=u(t[l]),y=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=f){var v=p[h];void 0===(y=c?c(v,h,p):void 0)&&(y=i(v)?v:a(t[l+1])?[]:{})}r(p,h,y),p=p[h]}return e}},6535:e=>{e.exports=function(e){return function(t){return e(t)}}},555:(e,t,n)=>{var r=n(7650);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},8422:(e,t,n)=>{var r=n(7236),o=n(3266),a=n(3879),i=n(1119);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},6051:(e,t,n)=>{var r=n(7596),o=n(999);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var u=-1,c=t.length;++u<c;){var l=t[u],s=a?a(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?o(n,l,s):r(n,l,s)}return n}},2544:(e,t,n)=>{var r=n(4569),o=n(3108);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,i)}return t}))}},2630:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===n(a[c],c,a))break}return t}}},3086:(e,t,n)=>{var r=n(8904),o=n(1580),a=n(2635);e.exports=function(e){return function(t,n,i){var u=Object(t);if(!o(t)){var c=r(n,3);t=a(t),n=function(e){return c(u[e],e,u)}}var l=e(t,n,i);return l>-1?u[c?t[l]:l]:void 0}}},9346:(e,t,n)=>{var r=n(4457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},2503:(e,t,n)=>{var r=n(1124),o=n(4793),a=n(555);e.exports=function(e,t,n,i,u,c){var l=1&n,s=e.length,f=t.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var y=-1,v=!0,b=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++y<s;){var d=e[y],m=t[y];if(i)var x=l?i(m,d,y,t,e,c):i(d,m,y,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(d===e||u(d,e,n,i,c)))return b.push(t)}))){v=!1;break}}else if(d!==m&&!u(d,m,n,i,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},6001:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8784:(e,t,n)=>{var r=n(6094),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var c=1&n,l=r(e),s=l.length;if(s!=r(t).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in t:o.call(t,p)))return!1}var h=u.get(e),y=u.get(t);if(h&&y)return h==t&&y==e;var v=!0;u.set(e,t),u.set(t,e);for(var b=c;++f<s;){var d=e[p=l[f]],m=t[p];if(a)var x=c?a(m,d,p,t,e,u):a(d,m,p,e,t,u);if(!(void 0===x?d===m||i(d,m,n,a,u):x)){v=!1;break}b||(b="constructor"==p)}if(v&&!b){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(e),u.delete(t),v}},3368:(e,t,n)=>{var r=n(5453),o=n(4468),a=n(8756);e.exports=function(e){return a(o(e,void 0,r),e+"")}},4414:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6094:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},9182:(e,t,n)=>{var r=n(1457),o=n(2635);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},4457:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6686:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7383:(e,t,n)=>{var r=n(8422),o=n(6981),a=n(7236),i=n(4363),u=n(9216),c=n(8780);e.exports=function(e,t,n){for(var l=-1,s=(t=r(t,e)).length,f=!1;++l<s;){var p=c(t[l]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++l!=s?f:!!(s=null==e?0:e.length)&&u(s)&&i(p,s)&&(a(e)||o(e))}},1754:(e,t,n)=>{var r=n(4690),o=n(6981),a=n(7236),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},4363:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3108:e=>{e.exports=function(){return!1}},3266:(e,t,n)=>{var r=n(7236),o=n(2945),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},5003:e=>{e.exports=function(){return!1}},1457:(e,t,n)=>{var r=n(5973);e.exports=function(e){return e==e&&!r(e)}},7168:e=>{e.exports=function(){this.__data__=[],this.size=0}},6582:(e,t,n)=>{var r=n(3833),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},3867:(e,t,n)=>{var r=n(3833);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},9557:(e,t,n)=>{var r=n(3833);e.exports=function(e){return r(this.__data__,e)>-1}},2726:(e,t,n)=>{var r=n(3833);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},7375:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7085:e=>{e.exports=function(e){return e}},1782:(e,t,n)=>{e=n.nmd(e);var r=n(4414),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},3717:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4468:(e,t,n)=>{var r=n(5198),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),c=Array(u);++i<u;)c[i]=a[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=a[i];return l[t]=n(c),r(e,this,l)}}},441:(e,t,n)=>{var r=n(4414),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},8756:e=>{e.exports=function(e){return e}},3879:(e,t,n)=>{var r=n(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},8780:e=>{e.exports=function(e){return e}},6782:(e,t,n)=>{var r=n(7596),o=n(6051),a=n(2544),i=n(1580),u=n(5003),c=n(2635),l=Object.prototype.hasOwnProperty,s=a((function(e,t){if(u(t)||i(t))o(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=s},5750:(e,t,n)=>{var r=n(5973),o=n(8148),a=n(8746),i=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,s,f,p,h,y=0,v=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=c,r=l;return c=l=void 0,y=t,f=e.apply(r,n)}function x(e){return y=e,p=setTimeout(w,t),v?m(e):f}function g(e){var n=e-h;return void 0===h||n>=t||n<0||b&&e-y>=s}function w(){var e=o();if(g(e))return O(e);p=setTimeout(w,function(e){var n=t-(e-h);return b?u(n,s-(e-y)):n}(e))}function O(e){return p=void 0,d&&c?m(e):(c=l=void 0,f)}function j(){var e=o(),n=g(e);if(c=arguments,l=this,h=e,n){if(void 0===p)return x(h);if(b)return clearTimeout(p),p=setTimeout(w,t),m(h)}return void 0===p&&(p=setTimeout(w,t)),f}return t=a(t)||0,r(n)&&(v=!!n.leading,s=(b="maxWait"in n)?i(a(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),j.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(e,t,n)=>{var r=n(4569),o=n(6530),a=n(3108),i=n(5850),u=Object.prototype,c=u.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&a(t[0],t[1],l)&&(r=1);++n<r;)for(var s=t[n],f=i(s),p=-1,h=f.length;++p<h;){var y=f[p],v=e[y];(void 0===v||o(v,u[y])&&!c.call(e,y))&&(e[y]=s[y])}return e}));e.exports=l},6530:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6786:(e,t,n)=>{var r=n(3086)(n(8611));e.exports=r},8611:(e,t,n)=>{var r=n(528),o=n(8904),a=n(5225),i=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var c=null==n?0:a(n);return c<0&&(c=i(u+c,0)),r(e,o(t,3),c)}},5453:(e,t,n)=>{var r=n(314);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3795:(e,t,n)=>{var r=n(166);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},3646:(e,t,n)=>{var r=n(7),o=n(7383);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5362:e=>{e.exports=function(e){return e}},6981:e=>{e.exports=function(){return!1}},7236:e=>{var t=Array.isArray;e.exports=t},1580:(e,t,n)=>{var r=n(3839),o=n(9216);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},8752:e=>{e.exports=function(){return!1}},3839:(e,t,n)=>{var r=n(4318),o=n(5973);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9216:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5973:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3387:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2654:(e,t,n)=>{var r=n(1131),o=n(6535),a=n(1782),i=a&&a.isRegExp,u=i?o(i):r;e.exports=u},2945:e=>{e.exports=function(){return!1}},4812:e=>{e.exports=function(){return!1}},2635:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},5850:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},3792:(e,t,n)=>{var r=n(999),o=n(5897),a=n(8904);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},8148:(e,t,n)=>{var r=n(441);e.exports=function(){return r.Date.now()}},8423:(e,t,n)=>{var r=n(7410),o=n(3368)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},1651:(e,t,n)=>{var r=n(1712),o=n(4815),a=n(3266),i=n(8780);e.exports=function(e){return a(e)?r(i(e)):o(e)}},3259:(e,t,n)=>{var r=n(5750),o=n(5973);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},992:(e,t,n)=>{var r=n(8746);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},5225:(e,t,n)=>{var r=n(992);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},8746:e=>{e.exports=function(e){return e}},1119:e=>{e.exports=function(e){return e}},556:(e,t,n)=>{var r=n(1119),o=0;e.exports=function(e){var t=++o;return r(e)+t}},459:(e,t,n)=>{"use strict";var r=n(5704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,s=t(e),f=t(i);if(s&&f){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(s!=f)return!1;var p=e instanceof Date,h=i instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==i.getTime();var y=e instanceof RegExp,v=i instanceof RegExp;if(y!=v)return!1;if(y&&v)return e.toString()==i.toString();var b=n(e);if((c=b.length)!==n(i).length)return!1;for(u=c;0!=u--;)if(!r.call(i,b[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=b[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},9787:t=>{"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{BrushHelpers:()=>Te,VictoryBrushContainer:()=>We,brushContainerMixin:()=>ze});var e=r(7901),t=r.n(e),n=r(6782),a=r.n(n),i=r(216),u=r.n(i),c=r(9787),l=r.n(c);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return f(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return f(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function y(e,t,n){var r=t.a,o=t.d,a=t.e,i=t.f;return"y"===n?o*e+i:r*e+a}function v(e){if(!e.nativeEvent||void 0===e.nativeEvent.identifier){var t=function(e){return"svg"===e.nodeName?e:e.parentNode?t(e.parentNode):e};return t(e.target)}}function b(e,t){if(e.nativeEvent&&void 0!==e.nativeEvent.identifier)return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var n=function(e){return e.getScreenCTM().inverse()}(t=t||v(e));return{x:y(e.clientX,n,"x"),y:y(e.clientY,n,"y")}}function d(e,t){var n=e.scale,r=e.horizontal;return t=t||{x:n.x.domain(),y:n.y.domain()},{x:r?[n.y(t.y[0]),n.y(t.y[1])]:[n.x(t.x[0]),n.x(t.x[1])],y:r?[n.x(t.x[0]),n.x(t.x[1])]:[n.y(t.y[0]),n.y(t.y[1])]}}function m(e,t,n,r){var o=e.polar,a=e.horizontal;if(o){var i=e.origin||{x:0,y:0},u=n-i.x,c=r-i.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:t.x.invert(s),y:t.y.invert(l)}}return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)}}function x(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.scale,i=m(e,a,t,r),u=m(e,a,n,o),c=function(e,t){return[h([e,t]),p([e,t])]};return{x:c(i.x,u.x),y:c(i.y,u.y)}}var g=r(3839),w=r.n(g),O=r(5973),j=r.n(O),M=r(556),_=r.n(M),D=r(2654),E=r.n(D),P=r(6786),A=r.n(P),S=function(e){var t=function(t,n,r,o){var a=n[r];if(null==a)return t?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),c=4;c<i;c++)u[c-4]=arguments[c];return e.apply(void 0,[n,r,o].concat(u))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},T=function(){return null},B=function(){},R=function(e){return void 0===e?B:null===e?T:e.constructor},k=function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)},C=S((function(e,t,n){var r=e[t];if("number"!=typeof r||r<0)return new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number."))})),I=S((function(e,t,n){var r=e[t];if("number"!=typeof r||r%1!=0)return new Error("`".concat(t,"` in `").concat(n,"` must be an integer."))})),G=(S((function(e,t,n){var r=e[t];if("number"!=typeof r||r<=0)return new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero."))})),S((function(e,t,n){var r=e[t];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values."))})),S((function(e,t,n){var r;if(r=e[t],!(w()(r)?w()(r.copy)&&w()(r.domain)&&w()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))})),S((function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var o=R(r[0]),a=A()(r,(function(e){return o!==R(e)}));if(a){var i=k(r[0]),u=k(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),S((function(e,t){if(e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length)return new Error("Length of data and ".concat(t," arrays must match."))})),S((function(e,t,n){if(e[t]&&!E()(e[t]))return new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression."))})),r(2635)),z=r.n(G);function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?N(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).map={},n.index=1,n.portalUpdate=n.portalUpdate.bind(N(n)),n.portalRegister=n.portalRegister.bind(N(n)),n.portalDeregister=n.portalDeregister.bind(N(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n=t,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(e,t){this.map[e]=t,this.forceUpdate()}},{key:"portalDeregister",value:function(e){delete this.map[e],this.forceUpdate()}},{key:"getChildren",value:function(){var e=this;return z()(this.map).map((function(t){var n=e.map[t];return n?l().cloneElement(n,{key:t}):n}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&W(n.prototype,r),t}(l().Component);Object.defineProperty(U,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(U,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:u().string,height:C,style:u().object,viewBox:u().string,width:C}});var F=l().createContext({});F.displayName="PortalContext";const V=F;var H,q,X=0,Y=0,$=0,L=0,Z=0,J=0,K="object"==typeof performance&&performance.now?performance:Date,Q="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ee(){return Z||(Q(te),Z=K.now()+J)}function te(){Z=0}function ne(){this._call=this._time=this._next=null}function re(e,t,n){var r=new ne;return r.restart(e,t,n),r}function oe(){Z=(L=K.now())+J,X=Y=0;try{!function(){ee(),++X;for(var e,t=H;t;)(e=Z-t._time)>=0&&t._call.call(null,e),t=t._next;--X}()}finally{X=0,function(){for(var e,t,n=H,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:H=t);q=e,ie(r)}(),Z=0}}function ae(){var e=K.now(),t=e-L;t>1e3&&(J-=t,L=e)}function ie(e){X||(Y&&(Y=clearTimeout(Y)),e-Z>24?(e<1/0&&(Y=setTimeout(oe,e-K.now()-J)),$&&($=clearInterval($))):($||(L=K.now(),$=setInterval(ae,1e3)),X=1,Q(oe)))}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}ne.prototype=re.prototype={constructor:ne,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?ee():+n)+(null==t?0:+t),this._next||q===this||(q?q._next=this:H=this,q=this),this._call=e,this._time=n,ie()},stop:function(){this._call&&(this._call=null,this._time=1/0,ie())}};var ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var t,n;return t=e,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(e){e.callback(ee()-e.startTime,e.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=re(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(e,t){t=this.shouldAnimate?t:0;var n=this.subscribers.push({startTime:ee(),callback:e,duration:t});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&ue(t.prototype,n),e}(),le=l().createContext({transitionTimer:new ce,animationTimer:new ce});le.displayName="TimerContext";const se=le;function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r(8423),r(1651);var pe={startsWith:["data-","aria-"],exactMatch:[]},he=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fe(e,t,n[t])}))}return e}({},e);return Object.fromEntries(Object.entries(t).filter((function(e){var t,n;return function(e){return!(!function(e){var t=!1;return pe.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(e)&&(t=!0)})),t}(e)&&!function(e){return pe.exactMatch.includes(e)}(e))}((t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0])})))};function ye(){return ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){be(e,t,n[t])}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var me=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).containerId=j()(e)&&void 0!==e.containerId?e.containerId:_()("victory-container-"),t.savePortalRef=function(e){return t.portalRef=e,e},t.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},t.portalRegister=function(){return t.portalRef.portalRegister()},t.portalDeregister=function(e){return t.portalRef.portalDeregister(e)},t.saveContainerRef=e&&w()(e.containerRef)?e.containerRef:function(e){return t.containerRef=e,e},t.shouldHandleWheel=e&&e.events&&e.events.onWheel,t.shouldHandleWheel&&(t.handleWheel=function(e){return e.preventDefault()}),t}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r=n,(o=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}},{key:"getChildren",value:function(e){return e.children}},{key:"getOUIAProps",value:function(e){var t=e.ouiaId,n=e.ouiaSafe,r=e.ouiaType;return ve({},t&&{"data-ouia-component-id":t},r&&{"data-ouia-component-type":r},void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(e,n,r){var o=e.title,i=e.desc,u=e.portalComponent,c=e.className,s=e.width,f=e.height,p=e.portalZIndex,h=e.responsive,y=this.getChildren(e),v=h?{width:"100%",height:"100%"}:{width:s,height:f},b=a()({pointerEvents:"none",touchAction:"none",position:"relative"},v),d=a()({zIndex:p,position:"absolute",top:0,left:0},v),m=a()({pointerEvents:"all"},v),x=a()({overflow:"visible"},v),g={width:s,height:f,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:x};return l().createElement(V.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",ye({style:t()({},r,b),className:c,ref:this.saveContainerRef},this.getOUIAProps(e)),l().createElement("svg",ye({},n,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,i?l().createElement("desc",{id:this.getIdForElement("desc")},i):null,y),l().createElement("div",{style:d},l().cloneElement(u,ve({},g,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.responsive,o=e.events,i=e.title,u=e.desc,c=e.tabIndex,l=e.preserveAspectRatio,s=e.role,f=r?this.props.style:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props.style,["height","width"]),p=he(this.props),h=a()(ve({width:t,height:n,tabIndex:c,role:s,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(t," ").concat(n):void 0,preserveAspectRatio:r?l:void 0},p),o);return this.renderContainer(this.props,h,f)}}])&&de(r.prototype,o),n}(l().Component);function xe(){return xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}Object.defineProperty(me,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(me,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(me,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:C,name:u().string,origin:u().shape({x:C,y:C}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:I,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:C}}),Object.defineProperty(me,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:l().createElement(U,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(me,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:se});const ge=function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?l().createElement("rect",xe({vectorEffect:"non-scaling-stroke"},n),l().createElement("desc",null,t)):l().createElement("rect",xe({vectorEffect:"non-scaling-stroke"},n))};var we=r(3792),Oe=r.n(we),je=r(3259),Me=r.n(je),_e=r(8266),De=r.n(_e);function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pe(e,t,n[t])}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Se={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return t&&n?"x"===n?"y":"x":n},withinBounds:function(e,t,n){var r=Oe()(t,Number),o=r.x1,a=r.x2,i=r.y1,u=r.y2,c=Oe()(e,Number),l=c.x,s=c.y;return l+(n=n?n/2:0)>=Math.min(o,a)&&l-n<=Math.max(o,a)&&s+n>=Math.min(i,u)&&s-n<=Math.max(i,u)},getDomainBox:function(e,n,r){var o=this.getDimension(e);n=t()({},n,e.domain),r=t()({},r,n);var a=d(e,n),i=d(e,r);return{x1:"y"!==o?Math.min.apply(Math,Ae(i.x)):Math.min.apply(Math,Ae(a.x)),x2:"y"!==o?Math.max.apply(Math,Ae(i.x)):Math.max.apply(Math,Ae(a.x)),y1:"x"!==o?Math.min.apply(Math,Ae(i.y)):Math.min.apply(Math,Ae(a.y)),y2:"x"!==o?Math.max.apply(Math,Ae(i.y)):Math.max.apply(Math,Ae(a.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,o=t.x2,a=t.y1,i=t.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(a,i),s=Math.max(a,i),f=e.handleWidth/2;return{left:"y"!==n&&{x1:u-f,x2:u+f,y1:a,y2:i},right:"y"!==n&&{x1:c-f,x2:c+f,y1:a,y2:i},top:"x"!==n&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(e,t,n){var r=this,o=this.getHandles(t,n),a=["top","bottom","left","right"].reduce((function(t,n){return o[n]&&r.withinBounds(e,o[n])?t.concat(n):t}),[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,o=e.x2,i=e.y2,u={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return t.reduce((function(e,t){return a()(e,u[t])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,o=e.fullDomain,a=e.scale,i=e.horizontal,u=e.allowResize||e.defaultBrushArea?e.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return t;if("move"===u){var c=this.getDomainBox(e,o,t),l=e.parentSVG||v(n),s=this.panBox(Ee({},e,c,{brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(n,l)),f=e.fullDomainBox||this.getDomainBox(e,o);return x(Ee({},this.constrainBox(s,f),{scale:a,horizontal:i}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,o=e.y,a=t.x1,i=t.x2,u=t.y1,c=t.y2;return{x1:"y"!==n?r:a,y1:"x"!==n?o:u,x2:"y"!==n?r:i,y2:"x"!==n?o:c}},panBox:function(e,n){var r=e.domain,o=e.startX,a=e.startY,i=this.getDimension(e),u=t()({},e.brushDomain,r),c=t()({},e.fullDomain,r),l=e.x1?e:this.getDomainBox(e,c,u),s=l.x1,f=l.x2,p=l.y1,h=l.y2,y=n.x,v=n.y,b=o?o-y:0,d=a?a-v:0;return{x1:"y"!==i?Math.min(s,f)-b:Math.min(s,f),x2:"y"!==i?Math.max(s,f)-b:Math.max(s,f),y1:"x"!==i?Math.min(p,h)-d:Math.min(p,h),y2:"x"!==i?Math.max(p,h)-d:Math.max(p,h)}},constrainBox:function(e,t){var n=Oe()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>i?i-Math.abs(e.y2-e.y1):Math.max(e.y1,o),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<o?o+Math.abs(e.y2-e.y1):Math.min(e.y2,i)}},constrainPoint:function(e,t){var n=Oe()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,o),i)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.mouseMoveThreshold,i=this.getDimension(e),u=Math.abs(t-n)>=a,c=Math.abs(r-o)>=a;switch(i){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(e,n){var r=this;e.preventDefault();var o=n.handleWidth,a=n.cachedBrushDomain,i=n.domain,u=n.allowResize,c=n.allowDrag,l=n.allowDraw,s=this.getDimension(n),f=u||n.defaultBrushArea?n.defaultBrushArea:"move";if(!u&&!c)return{};var p=n.fullDomainBox||this.getDomainBox(n,i),h=n.parentSVG||v(e),y=b(e,h),d=y.x,m=y.y;if(!this.withinBounds({x:d,y:m},p,o))return{};var x=t()({},n.brushDomain,i),g=De()(x,a)?n.currentDomain||x||i:x||i,w=this.getDomainBox(n,i,g),O=u&&this.getActiveHandles({x:d,y:m},n,w);return O?[{target:"parent",mutation:function(){return Ee({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:h},r.getResizeMutation(w,O))}}]:this.withinBounds({x:d,y:m},w)&&!De()(i,g)?[{target:"parent",mutation:function(){return Ee({isPanning:c,startX:d,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:h},w)}}]:l?[{target:"parent",mutation:function(){return Ee({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:h,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:r.getMinimumDomain()},r.getSelectionMutation({x:d,y:m},w,s))}}]:{}},onGlobalMouseMove:function(e,n){var r=n.scale,o=n.isPanning,a=n.isSelecting,i=n.fullDomainBox,u=n.onBrushDomainChange,c=n.allowResize,l=n.allowDrag,s=n.horizontal,f=n.mouseMoveThreshold,p=n.parentSVG,h=this.getDimension(n),y=b(e,p),v=y.x,d=y.y;if(!c&&!l||f>0&&!this.hasMoved(Ee({},n,{x2:v,y2:d})))return{};if(l&&o){var m=n.startX,g=n.startY,O=this.panBox(n,{x:v,y:d}),j=this.constrainBox(O,i),M=x(Ee({},j,{scale:r,horizontal:s})),_=Ee({currentDomain:M,parentSVG:p,startX:O.x2>=i.x2||O.x1<=i.x1?m:v,startY:O.y2>=i.y2||O.y1<=i.y1?g:d},j);return w()(u)&&u(M,t()({},_,n)),[{target:"parent",mutation:function(){return _}}]}if(c&&a){var D=this.constrainPoint({x:"y"!==h?v:n.x2,y:"x"!==h?d:n.y2},i),E=D.x,P=D.y,A=x({x2:E,y2:P,x1:n.x1,y1:n.y1,scale:r,horizontal:s}),S={x2:E,y2:P,currentDomain:A,parentSVG:p};return w()(u)&&u(A,t()({},S,n)),[{target:"parent",mutation:function(){return S}}]}return{}},onGlobalMouseUp:function(e,n){if(!n.isPanning&&!n.isSelecting)return{};var r=n.x1,o=n.y1,a=n.x2,i=n.y2,u=n.isPanning,c=n.isSelecting,l=n.onBrushDomainChange,s=n.onBrushDomainChangeEnd,f=n.onBrushCleared,p=n.currentDomain,h=n.allowResize,y=n.allowDrag,v=h||n.defaultBrushArea?n.defaultBrushArea:"move",b={isPanning:!1,isSelecting:!1};if(!h&&(void 0===v||"none"===v)||r!==a&&o!==i)(y&&u||h&&c)&&w()(s)&&s(p,t()({},b,n));else{var d=n.cachedCurrentDomain||p,m=this.getDefaultBrushArea(n,d,e);b.currentDomain=m,w()(l)&&l(m,t()({},b,n)),w()(s)&&s(m,t()({},b,n)),w()(f)&&f(m,t()({},b,n))}return[{target:"parent",mutation:function(){return b}}]}};const Te=Ee({},Se,{onMouseDown:Se.onMouseDown.bind(Se),onGlobalMouseUp:Se.onGlobalMouseUp.bind(Se),onGlobalMouseMove:Me()(Se.onGlobalMouseMove.bind(Se),16,{leading:!0,trailing:!1})});function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Re(e,t,n[t])}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var ze=function(e){var n,r;return r=n=function(e){function n(){return Ce(this,n),Ge(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r=n,(o=[{key:"getSelectBox",value:function(e,n){var r=n.x,o=n.y,a=e.brushStyle,i=e.brushComponent,u=e.name,c=i.props&&i.props.style,s=e.allowDrag||e.allowResize?"move":"auto";return r[0]!==r[1]&&o[0]!==o[1]?l().cloneElement(i,{key:"".concat(u,"-brush"),width:Math.abs(r[1]-r[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(r[0],r[1]),y:Math.min(o[0],o[1]),cursor:s,style:t()({},c,a)}):null}},{key:"getCursorPointers",value:function(e){var t={yProps:"ns-resize",xProps:"ew-resize"};return!e.allowResize&&e.allowDrag?(t.xProps="move",t.yProps="move"):e.allowResize||e.allowDrag||(t.xProps="auto",t.yProps="auto"),t}},{key:"getHandles",value:function(e,n){var r=e.handleWidth,o=e.handleStyle,i=e.handleComponent,u=e.name,c=Te.getDomainBox(e,n),s=c.x1,f=c.x2,p=c.y1,h=c.y2,y=Te.getHandles(e,c),v=y.top,b=y.bottom,d=y.left,m=y.right,x=Math.abs(f-s)||1,g=Math.abs(h-p)||1,w=i.props&&i.props.style||{},O=t()({},w,o),j=this.getCursorPointers(e),M={style:O,width:x,height:r,cursor:j.yProps},_={style:O,width:r,height:g,cursor:j.xProps},D={top:v&&a()({x:v.x1,y:v.y1},M),bottom:b&&a()({x:b.x1,y:b.y1},M),left:d&&a()({y:d.y1,x:d.x1},_),right:m&&a()({y:m.y1,x:m.x1},_)},E=["top","bottom","left","right"].reduce((function(e,t){return D[t]?e.concat(l().cloneElement(i,a()({key:"".concat(u,"-handle-").concat(t)},D[t]))):e}),[]);return E.length?E:null}},{key:"getRect",value:function(e){var n=e.currentDomain,r=e.cachedBrushDomain,o=t()({},e.brushDomain,e.domain),a=De()(o,r)?t()({},n,o):o,i=d(e,a),u=this.getSelectBox(e,i);return u?[u,this.getHandles(e,a)]:[]}},{key:"getChildren",value:function(e){return ke(l().Children.toArray(e.children)).concat(ke(this.getRect(e)))}}])&&Ie(r.prototype,o),n}(e),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryBrushContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Be({},me.propTypes,{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Be({},me.defaultProps,{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(ge,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(ge,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseDown:function(t,n){return e.disable?{}:Te.onMouseDown(t,n)},onTouchStart:function(t,n){return e.disable?{}:Te.onMouseDown(t,n)},onGlobalMouseMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:Te.onGlobalMouseMove(t,n)},onGlobalTouchMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:Te.onGlobalMouseMove(t,n)},onGlobalMouseUp:function(t,n){return e.disable?{}:Te.onGlobalMouseUp(t,n)},onGlobalTouchEnd:function(t,n){return e.disable?{}:Te.onGlobalMouseUp(t,n)},onGlobalTouchCancel:function(t,n){return e.disable?{}:Te.onGlobalMouseUp(t,n)}}}]}}),r};const We=ze(me)})(),o})()}));
|
|
2
2
|
//# sourceMappingURL=victory-brush-container.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-brush-container",
|
|
3
|
-
"version": "36.2
|
|
3
|
+
"version": "36.3.2",
|
|
4
4
|
"description": "Interactive Brush Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
24
|
"react-fast-compare": "^2.0.0",
|
|
25
|
-
"victory-core": "^36.2
|
|
25
|
+
"victory-core": "^36.3.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^16.6.0 || ^17.0.0"
|
|
@@ -30,5 +30,6 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
32
32
|
},
|
|
33
|
-
"sideEffects": false
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"gitHead": "18895d1290245732d14332bbbda10336032c9aab"
|
|
34
35
|
}
|