victory-brush-container 36.7.0 → 36.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -6759,32 +6759,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6759
6759
|
/* harmony export */ });
|
|
6760
6760
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
6761
6761
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
6762
|
-
var
|
|
6762
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6763
|
+
var _excluded = ["desc", "id", "tabIndex", "origin"];
|
|
6763
6764
|
|
|
6764
6765
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6765
6766
|
|
|
6767
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6768
|
+
|
|
6769
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6770
|
+
|
|
6771
|
+
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; }
|
|
6772
|
+
|
|
6766
6773
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6767
6774
|
|
|
6768
6775
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6769
6776
|
|
|
6770
6777
|
|
|
6771
|
-
|
|
6772
|
-
|
|
6778
|
+
|
|
6779
|
+
var Rect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
|
6780
|
+
var _evaluateProp;
|
|
6781
|
+
|
|
6782
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars --
|
|
6783
|
+
* origin conflicts with the SVG element's origin attribute
|
|
6784
|
+
*/
|
|
6773
6785
|
var desc = props.desc,
|
|
6786
|
+
id = props.id,
|
|
6787
|
+
tabIndex = props.tabIndex,
|
|
6788
|
+
origin = props.origin,
|
|
6774
6789
|
rest = _objectWithoutProperties(props, _excluded);
|
|
6775
6790
|
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
/*#__PURE__*/
|
|
6783
|
-
|
|
6784
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
6785
|
-
|
|
6786
|
-
}
|
|
6787
|
-
};
|
|
6791
|
+
var svgProps = _objectSpread({
|
|
6792
|
+
vectorEffect: "non-scaling-stroke",
|
|
6793
|
+
id: (_evaluateProp = (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(id, props)) === null || _evaluateProp === void 0 ? void 0 : _evaluateProp.toString(),
|
|
6794
|
+
tabIndex: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(tabIndex, props)
|
|
6795
|
+
}, rest);
|
|
6796
|
+
|
|
6797
|
+
return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({}, svgProps, {
|
|
6798
|
+
ref: ref
|
|
6799
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({}, svgProps, {
|
|
6800
|
+
ref: ref
|
|
6801
|
+
}));
|
|
6802
|
+
});
|
|
6788
6803
|
|
|
6789
6804
|
/***/ }),
|
|
6790
6805
|
|
|
@@ -7233,10 +7248,11 @@ function reduceChildren(children, iteratee) {
|
|
|
7233
7248
|
}, initialMemo);
|
|
7234
7249
|
};
|
|
7235
7250
|
|
|
7236
|
-
var
|
|
7251
|
+
var validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_6__.isValidElement);
|
|
7252
|
+
var childNames = validChildren.map(function (c, i) {
|
|
7237
7253
|
return i;
|
|
7238
7254
|
});
|
|
7239
|
-
return traverseChildren(
|
|
7255
|
+
return traverseChildren(validChildren, childNames);
|
|
7240
7256
|
}
|
|
7241
7257
|
/**
|
|
7242
7258
|
* @param {Object} props: the props object
|
|
@@ -8014,6 +8030,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8014
8030
|
/* harmony export */ });
|
|
8015
8031
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8016
8032
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8033
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8017
8034
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8018
8035
|
|
|
8019
8036
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -8033,6 +8050,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8033
8050
|
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; }
|
|
8034
8051
|
|
|
8035
8052
|
|
|
8053
|
+
|
|
8036
8054
|
/*
|
|
8037
8055
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
8038
8056
|
The startsWidth array will contain the start of any accepted user-prop that
|
|
@@ -8087,21 +8105,6 @@ var testIfSafeProp = function (key) {
|
|
|
8087
8105
|
if (doesPropStartWith(key) || isExactMatch(key)) return true;
|
|
8088
8106
|
return false;
|
|
8089
8107
|
};
|
|
8090
|
-
/**
|
|
8091
|
-
* Gets the value from props if a function value is provided
|
|
8092
|
-
* @param {any} value: maybe function value
|
|
8093
|
-
* @param {Object} props: props object
|
|
8094
|
-
* @returns {any} newValue
|
|
8095
|
-
*/
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
var getValue = function (value, props) {
|
|
8099
|
-
if (typeof value === "function") {
|
|
8100
|
-
return value(props);
|
|
8101
|
-
}
|
|
8102
|
-
|
|
8103
|
-
return value;
|
|
8104
|
-
};
|
|
8105
8108
|
/**
|
|
8106
8109
|
* getSafeUserProps - function that takes in a props object and removes any
|
|
8107
8110
|
* key-value entries that do not match filter strings in the USER_PROPS_SAFELIST
|
|
@@ -8125,7 +8128,7 @@ var getSafeUserProps = function (props) {
|
|
|
8125
8128
|
key = _ref4[0],
|
|
8126
8129
|
value = _ref4[1];
|
|
8127
8130
|
|
|
8128
|
-
return [key,
|
|
8131
|
+
return [key, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(value, props)];
|
|
8129
8132
|
}));
|
|
8130
8133
|
};
|
|
8131
8134
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={3273:(t,e,r)=>{var n=r(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,e,r)=>{var n=r(1171),o=r(7838),i=r(4859),a=r(4073),u=r(8541);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,e,r)=>{var n=r(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},8644:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},9559:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},1634:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4132:(t,e,r)=>{var n=r(8347),o=r(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3162:(t,e,r)=>{var n=r(788);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8347:(t,e,r)=>{var n=r(5525);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},3705:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},6457:(t,e,r)=>{var n=r(9559),o=r(3608);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},320:(t,e,r)=>{var n=r(4710)();t.exports=n},2446:(t,e,r)=>{var n=r(320),o=r(7747);t.exports=function(t,e){return t&&n(t,e,o)}},4432:(t,e,r)=>{var n=r(9026),o=r(3110);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},9070:(t,e,r)=>{var n=r(7028),o=r(3474);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7028:(t,e,r)=>{var n=r(8708),o=r(8705),i=r(2813),a=r(6682),u=r(9667),c=r(163),l=r(4801),s=r(4289),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),O=x?p:u(e),w=(g=g==f?y:g)==y,j=(O=O==f?y:O)==y,M=g==O;if(M&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(M&&!w)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=w&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9548:(t,e,r)=>{var n=r(8708),o=r(9070);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},2229:(t,e,r)=>{var n=r(563),o=r(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},3472:(t,e,r)=>{var n=r(758),o=r(5223),i=r(5346),a=r(163),u=r(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},758:(t,e,r)=>{var n=r(9548),o=r(597),i=r(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},5223:(t,e,r)=>{var n=r(9070),o=r(9201),i=r(5066),a=r(726),u=r(5385),c=r(6878),l=r(3110);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},5436:(t,e,r)=>{var n=r(6371),o=r(5066);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6371:(t,e,r)=>{var n=r(4432),o=r(6539),i=r(9026);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,r)=>{var n=r(4432);t.exports=function(t){return function(e){return n(e,t)}}},6317:(t,e,r)=>{var n=r(5346),o=r(4280),i=r(201);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6539:(t,e,r)=>{var n=r(4132),o=r(9026),i=r(9099),a=r(7709),u=r(3110);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},6316:(t,e,r)=>{var n=r(2596),o=r(8644),i=r(163),a=r(1995),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},9914:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9026:(t,e,r)=>{var n=r(163),o=r(726),i=r(7801),a=r(7010);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},9021:(t,e,r)=>{var n=r(4132),o=r(8347);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},6092:(t,e,r)=>{var n=r(6317),o=r(8286);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},4710:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},4499:(t,e,r)=>{var n=r(3472),o=r(981),i=r(7747);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},5525:(t,e,r)=>{var n=r(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,r)=>{var n=r(3273),o=r(1634),i=r(9914);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var b=t[h],m=e[h];if(a)var x=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,r)=>{var n=r(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,O=e.constructor;g==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof O&&O instanceof O||(v=!1)}return u.delete(t),u.delete(e),v}},5557:(t,e,r)=>{var n=r(2645),o=r(4280),i=r(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8143:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},597:(t,e,r)=>{var n=r(5385),o=r(7747);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9817:(t,e,r)=>{var n=r(5125)(Object.getPrototypeOf,Object);t.exports=n},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,r)=>{var n=r(9026),o=r(5075),i=r(163),a=r(9099),u=r(8454),c=r(3110);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},3608:(t,e,r)=>{var n=r(2596),o=r(5075),i=r(163),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8286:t=>{t.exports=function(){return!1}},726:(t,e,r)=>{var n=r(163),o=r(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,r)=>{var n=r(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,r)=>{var n=r(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4859:(t,e,r)=>{var n=r(3162);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4073:(t,e,r)=>{var n=r(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,e,r)=>{var n=r(3162);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6878:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,e,r)=>{t=r.nmd(t);var n=r(2117),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4280:(t,e,r)=>{var n=r(6082),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},2373:(t,e,r)=>{var n=r(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},201:t=>{t.exports=function(t){return t}},7801:(t,e,r)=>{var n=r(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},3110:t=>{t.exports=function(t){return t}},156:(t,e,r)=>{var n=r(4132),o=r(9021),i=r(6092),a=r(981),u=r(5782),c=r(7747),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5034:(t,e,r)=>{var n=r(7709),o=r(6987),i=r(5812),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(O,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=s}function O(){var t=o();if(g(t))return w(t);p=setTimeout(O,function(t){var r=e-(t-y);return d?u(r,s-(t-h)):r}(t))}function w(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(O,e),m(y)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:w(o())},j}},1893:(t,e,r)=>{var n=r(6317),o=r(788),i=r(8286),a=r(8855),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9992:(t,e,r)=>{var n=r(4499)(r(5541));t.exports=n},5541:(t,e,r)=>{var n=r(3705),o=r(3472),i=r(982),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},2645:(t,e,r)=>{var n=r(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},9201:(t,e,r)=>{var n=r(4432);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},5066:(t,e,r)=>{var n=r(6776),o=r(3096);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5346:t=>{t.exports=function(t){return t}},6149:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,r)=>{var n=r(9642),o=r(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4801:t=>{t.exports=function(){return!1}},9642:(t,e,r)=>{var n=r(563),o=r(7709);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,e,r)=>{var n=r(563),o=r(9817),i=r(3474),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},5395:(t,e,r)=>{var n=r(2229),o=r(9110),i=r(2348),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},4943:(t,e,r)=>{var n=r(8347),o=r(2446),i=r(3472);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},6987:(t,e,r)=>{var n=r(2373);t.exports=function(){return n.Date.now()}},9082:(t,e,r)=>{var n=r(5436),o=r(5557)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},8532:(t,e,r)=>{var n=r(1600),o=r(3301),i=r(726),a=r(3110);t.exports=function(t){return i(t)?n(a(t)):o(t)}},8163:(t,e,r)=>{var n=r(5034),o=r(7709);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},9139:(t,e,r)=>{var n=r(5812);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},982:(t,e,r)=>{var n=r(9139);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},5812:t=>{t.exports=function(t){return t}},7010:(t,e,r)=>{var n=r(6316);t.exports=function(t){return null==t?"":n(t)}},660:(t,e,r)=>{var n=r(7010),o=0;t.exports=function(t){var e=++o;return n(t)+e}},2504:(t,e,r)=>{"use strict";var n=r(2265);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3698:(t,e,r)=>{t.exports=r(2504)()},2265:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7491:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Yt,VictoryBrushContainer:()=>ae,brushContainerMixin:()=>ie});var t=n(1893),e=n.n(t),r=n(156),i=n.n(r),a=n(3698),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){return!(!t||void 0===t.identifier)}function b(t){if(!d(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function m(t,e){if(d(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var r=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,n=function(t){return t.getScreenCTM().inverse()}(e=e||b(r));return{x:v(r.clientX,n,"x"),y:v(r.clientY,n,"y")}}function x(t,e){var r=t.horizontal,n=t.scale,o=e||{x:n.x.domain(),y:n.y.domain()};return{x:r?[n.y(o.y[0]),n.y(o.y[1])]:[n.x(o.x[0]),n.x(o.x[1])],y:r?[n.x(o.x[0]),n.x(o.x[1])]:[n.y(o.y[0]),n.y(o.y[1])]}}function g(t,e,r,n){var o=t.polar,i=t.horizontal;if(!o)return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)};var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.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:e.x.invert(s),y:e.y.invert(l)}}function O(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=g(t,i,e,n),u=g(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(9642),j=n.n(w),M=n(7709),P=n.n(M),D=n(660),_=n.n(D),E=n(5395),S=n.n(E),A=n(9992),R=n.n(A),B=(n(3849),n(6149)),T=n.n(B),C=["linear","time","log","sqrt"];var k=function(t){var e=function(e){return function(r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))}};return Object.assign(e(!1),{isRequired:e(!0)})},I=function(){return null},z=function(){},G=function(t){return void 0===t?z:null===t?I:t.constructor},U=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},N=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<0?new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number.")):null})),W=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n%1!=0?new Error("`".concat(e,"` in `").concat(r,"` must be an integer.")):null})),V=(k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<=0?new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero.")):null})),k((function(t,e,r){var n=t[e];return Array.isArray(n)&&2===n.length&&n[1]!==n[0]?null:new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),k((function(t,e,r){return("function"==typeof(n=t[e])?j()(n.copy)&&j()(n.domain)&&j()(n.range):"string"==typeof n&&T()(C,n))?null:new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."));var n})),k((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(n.length<2)return null;var o=G(n[0]),i=R()(n,(function(t){return o!==G(t)}));if(i){var a=U(n[0]),u=U(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}return null})),k((function(t,e){return t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length?new Error("Length of data and ".concat(e," arrays must match.")):null})),k((function(t,e,r){return t[e]&&!S()(t[e])?new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression.")):null})),n(7747)),F=n.n(V);function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function q(t,e){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q(t,e)}function $(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=X(n);if(o){var r=X(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return $(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,r){e.map[t]=r,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(r=[{key:"getChildren",value:function(){var t=this;return F()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&H(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);Y.displayName="Portal",Y.propTypes={className:u().string,height:N,style:u().object,viewBox:u().string,width:N};var L=l().createContext({});L.displayName="PortalContext";var Z,J,K=0,Q=0,tt=0,et=0,rt=0,nt=0,ot="object"==typeof performance&&performance.now?performance:Date,it="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function at(){return rt||(it(ut),rt=ot.now()+nt)}function ut(){rt=0}function ct(){this._call=this._time=this._next=null}function lt(t,e,r){var n=new ct;return n.restart(t,e,r),n}function st(){rt=(et=ot.now())+nt,K=Q=0;try{!function(){at(),++K;for(var t,e=Z;e;)(t=rt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--K}()}finally{K=0,function(){for(var t,e,r=Z,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Z=e);J=t,pt(n)}(),rt=0}}function ft(){var t=ot.now(),e=t-et;e>1e3&&(nt-=e,et=t)}function pt(t){K||(Q&&(Q=clearTimeout(Q)),t-rt>24?(t<1/0&&(Q=setTimeout(st,t-ot.now()-nt)),tt&&(tt=clearInterval(tt))):(tt||(et=ot.now(),tt=setInterval(ft,1e3)),K=1,it(st)))}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ct.prototype=lt.prototype={constructor:ct,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?at():+r)+(null==e?0:+e),this._next||J===this||(J?J._next=this:Z=this,J=this),this._call=t,this._time=r,pt()},stop:function(){this._call&&(this._call=null,this._time=1/0,pt())}};var ht=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(at()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=lt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:at(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&yt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),vt=l().createContext({transitionTimer:new ht,animationTimer:new ht});vt.displayName="TimerContext";const dt=vt;function bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(9082),n(8532);var Ot={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},jt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){gt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Ot.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Ot.exactMatch.includes(t)}(t))}(bt(t,1)[0])})).map((function(e){var r=bt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function Mt(){return Mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mt.apply(this,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(r),!0).forEach((function(e){_t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Et(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function At(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rt(o);if(a){var r=Rt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return At(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return j()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=P()(t)&&void 0!==t.containerId?t.containerId:_()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return r=c,(n=[{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(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Dt(Dt(Dt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(L.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",Mt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",Mt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:b},l().cloneElement(u,Dt(Dt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=jt(this.props),y=i()(Dt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&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:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Et(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);Bt.displayName="VictoryContainer",Bt.role="container",Bt.propTypes={"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:N,name:u().string,origin:u().shape({x:N,y:N}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:W,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:N},Bt.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(Y,null),portalZIndex:99,responsive:!0,role:"img"},Bt.contextType=dt;var Tt=["desc"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(this,arguments)}var kt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Tt);return e?l().createElement("rect",Ct({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Ct({vectorEffect:"non-scaling-stroke"},r))},It=n(4943),zt=n.n(It),Gt=n(8163),Ut=n.n(Gt),Nt=n(7491),Wt=n.n(Nt);function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(r),!0).forEach((function(e){Ht(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ht(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){return function(t){if(Array.isArray(t))return $t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$t(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xt={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=zt()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=zt()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=x(t,r),a=x(t,n);return{x1:"y"!==o?Math.min.apply(Math,qt(a.x)):Math.min.apply(Math,qt(i.x)),x2:"y"!==o?Math.max.apply(Math,qt(a.x)):Math.max.apply(Math,qt(i.x)),y1:"x"!==o?Math.min.apply(Math,qt(a.y)):Math.min.apply(Math,qt(i.y)),y2:"x"!==o?Math.max.apply(Math,qt(a.y)):Math.max.apply(Math,qt(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||b(r),s=this.panBox(Ft(Ft(Ft({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),m(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return O(Ft(Ft({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,d=o?o-h:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=zt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=zt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||b(t),h=m(t,y),v=h.x,d=h.y;if(!this.withinBounds({x:v,y:d},p,o))return{};var x=e()({},r.brushDomain,a),g=Wt()(x,i)?r.currentDomain||x||a:x||a,O=this.getDomainBox(r,a,g),w=u&&this.getActiveHandles({x:v,y:d},r,O);return w?[{target:"parent",mutation:function(){return Ft({isSelecting:!0,domainBox:O,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(O,w))}}]:this.withinBounds({x:v,y:d},O)&&!Wt()(a,g)?[{target:"parent",mutation:function(){return Ft({isPanning:c,startX:v,startY:d,domainBox:O,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},O)}}]:l?[{target:"parent",mutation:function(){return Ft({isSelecting:u||"move"===f,domainBox:O,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:d},O,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=m(t,p),v=h.x,d=h.y;if(!c&&!l||f>0&&!this.hasMoved(Ft(Ft({},r),{},{x2:v,y2:d})))return{};if(l&&o){var b=r.startX,x=r.startY,g=this.panBox(r,{x:v,y:d}),w=this.constrainBox(g,a),M=O(Ft(Ft({},w),{},{scale:n,horizontal:s})),P=Ft({currentDomain:M,parentSVG:p,startX:g.x2>=a.x2||g.x1<=a.x1?b:v,startY:g.y2>=a.y2||g.y1<=a.y1?x:d},w);return j()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=O({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return j()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&j()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,j()(l)&&l(m,e()({},d,r)),j()(s)&&s(m,e()({},d,r)),j()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}},Yt=Ft(Ft({},Xt),{},{onMouseDown:Xt.onMouseDown.bind(Xt),onGlobalMouseUp:Xt.onGlobalMouseUp.bind(Xt),onGlobalMouseMove:Ut()(Xt.onGlobalMouseMove.bind(Xt),16,{leading:!0,trailing:!1})});function Lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kt(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function re(t,e){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},re(t,e)}function ne(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function oe(t){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oe(t)}var ie=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&re(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=oe(o);if(a){var r=oe(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ne(this,t)});function c(){return te(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Yt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Yt.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,O=a.props&&a.props.style||{},w=e()({},O,o),j=this.getCursorPointers(t),M={style:w,width:x,height:n,cursor:j.yProps},P={style:w,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Wt()(o,n)?e()({},r,o):o,a=x(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Kt(l().Children.toArray(t.children)),Kt(this.getRect(t)))}}])&&ee(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),r.displayName="VictoryBrushContainer",r.propTypes=Zt(Zt({},Bt.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}),r.defaultProps=Zt(Zt({},Bt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(kt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(kt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),r.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Yt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Yt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Yt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Yt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)}}}]},r},ae=ie(Bt)})(),o})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={3273:(t,e,r)=>{var n=r(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,e,r)=>{var n=r(1171),o=r(7838),i=r(4859),a=r(4073),u=r(8541);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,e,r)=>{var n=r(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},8644:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},9559:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},1634:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4132:(t,e,r)=>{var n=r(8347),o=r(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3162:(t,e,r)=>{var n=r(788);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8347:(t,e,r)=>{var n=r(5525);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},3705:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},6457:(t,e,r)=>{var n=r(9559),o=r(3608);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},320:(t,e,r)=>{var n=r(4710)();t.exports=n},2446:(t,e,r)=>{var n=r(320),o=r(7747);t.exports=function(t,e){return t&&n(t,e,o)}},4432:(t,e,r)=>{var n=r(9026),o=r(3110);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},9070:(t,e,r)=>{var n=r(7028),o=r(3474);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7028:(t,e,r)=>{var n=r(8708),o=r(8705),i=r(2813),a=r(6682),u=r(9667),c=r(163),l=r(4801),s=r(4289),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,b,d){var m=c(t),x=c(e),g=m?p:u(t),O=x?p:u(e),w=(g=g==f?y:g)==y,j=(O=O==f?y:O)==y,M=g==O;if(M&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(M&&!w)return d||(d=new n),m||s(t)?o(t,e,r,v,b,d):i(t,e,g,r,v,b,d);if(!(1&r)){var P=w&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return d||(d=new n),b(_,E,r,v,d)}}return!!M&&(d||(d=new n),a(t,e,r,v,b,d))}},9548:(t,e,r)=>{var n=r(8708),o=r(9070);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},2229:(t,e,r)=>{var n=r(563),o=r(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},3472:(t,e,r)=>{var n=r(758),o=r(5223),i=r(5346),a=r(163),u=r(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},758:(t,e,r)=>{var n=r(9548),o=r(597),i=r(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},5223:(t,e,r)=>{var n=r(9070),o=r(9201),i=r(5066),a=r(726),u=r(5385),c=r(6878),l=r(3110);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},5436:(t,e,r)=>{var n=r(6371),o=r(5066);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6371:(t,e,r)=>{var n=r(4432),o=r(6539),i=r(9026);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,r)=>{var n=r(4432);t.exports=function(t){return function(e){return n(e,t)}}},6317:(t,e,r)=>{var n=r(5346),o=r(4280),i=r(201);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6539:(t,e,r)=>{var n=r(4132),o=r(9026),i=r(9099),a=r(7709),u=r(3110);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},6316:(t,e,r)=>{var n=r(2596),o=r(8644),i=r(163),a=r(1995),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},9914:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9026:(t,e,r)=>{var n=r(163),o=r(726),i=r(7801),a=r(7010);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},9021:(t,e,r)=>{var n=r(4132),o=r(8347);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},6092:(t,e,r)=>{var n=r(6317),o=r(8286);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},4710:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},4499:(t,e,r)=>{var n=r(3472),o=r(981),i=r(7747);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},5525:(t,e,r)=>{var n=r(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,r)=>{var n=r(3273),o=r(1634),i=r(9914);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,b=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var d=t[h],m=e[h];if(a)var x=l?a(m,d,h,e,t,c):a(d,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(b){if(!o(e,(function(t,e){if(!i(b,e)&&(d===t||u(d,t,r,a,c)))return b.push(e)}))){v=!1;break}}else if(d!==m&&!u(d,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,r)=>{var n=r(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var b=c;++f<s;){var d=t[p=l[f]],m=e[p];if(i)var x=c?i(m,d,p,e,t,u):i(d,m,p,t,e,u);if(!(void 0===x?d===m||a(d,m,r,i,u):x)){v=!1;break}b||(b="constructor"==p)}if(v&&!b){var g=t.constructor,O=e.constructor;g==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof O&&O instanceof O||(v=!1)}return u.delete(t),u.delete(e),v}},5557:(t,e,r)=>{var n=r(2645),o=r(4280),i=r(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8143:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},597:(t,e,r)=>{var n=r(5385),o=r(7747);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9817:(t,e,r)=>{var n=r(5125)(Object.getPrototypeOf,Object);t.exports=n},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,r)=>{var n=r(9026),o=r(5075),i=r(163),a=r(9099),u=r(8454),c=r(3110);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},3608:(t,e,r)=>{var n=r(2596),o=r(5075),i=r(163),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8286:t=>{t.exports=function(){return!1}},726:(t,e,r)=>{var n=r(163),o=r(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,r)=>{var n=r(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,r)=>{var n=r(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4859:(t,e,r)=>{var n=r(3162);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4073:(t,e,r)=>{var n=r(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,e,r)=>{var n=r(3162);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6878:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,e,r)=>{t=r.nmd(t);var n=r(2117),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4280:(t,e,r)=>{var n=r(6082),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},2373:(t,e,r)=>{var n=r(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},201:t=>{t.exports=function(t){return t}},7801:(t,e,r)=>{var n=r(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},3110:t=>{t.exports=function(t){return t}},156:(t,e,r)=>{var n=r(4132),o=r(9021),i=r(6092),a=r(981),u=r(5782),c=r(7747),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5034:(t,e,r)=>{var n=r(7709),o=r(6987),i=r(5812),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,b=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(O,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||b&&t-h>=s}function O(){var t=o();if(g(t))return w(t);p=setTimeout(O,function(t){var r=e-(t-y);return b?u(r,s-(t-h)):r}(t))}function w(t){return p=void 0,d&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(b)return clearTimeout(p),p=setTimeout(O,e),m(y)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(b="maxWait"in r)?a(i(r.maxWait)||0,e):s,d="trailing"in r?!!r.trailing:d),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:w(o())},j}},1893:(t,e,r)=>{var n=r(6317),o=r(788),i=r(8286),a=r(8855),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9992:(t,e,r)=>{var n=r(4499)(r(5541));t.exports=n},5541:(t,e,r)=>{var n=r(3705),o=r(3472),i=r(982),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},2645:(t,e,r)=>{var n=r(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},9201:(t,e,r)=>{var n=r(4432);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},5066:(t,e,r)=>{var n=r(6776),o=r(3096);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5346:t=>{t.exports=function(t){return t}},6149:(t,e,r)=>{var n=r(6123);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,r)=>{var n=r(9642),o=r(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4801:t=>{t.exports=function(){return!1}},9642:(t,e,r)=>{var n=r(563),o=r(7709);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,e,r)=>{var n=r(563),o=r(9817),i=r(3474),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},5395:(t,e,r)=>{var n=r(2229),o=r(9110),i=r(2348),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,e,r)=>{var n=r(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},4943:(t,e,r)=>{var n=r(8347),o=r(2446),i=r(3472);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},6987:(t,e,r)=>{var n=r(2373);t.exports=function(){return n.Date.now()}},9082:(t,e,r)=>{var n=r(5436),o=r(5557)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},8532:(t,e,r)=>{var n=r(1600),o=r(3301),i=r(726),a=r(3110);t.exports=function(t){return i(t)?n(a(t)):o(t)}},8163:(t,e,r)=>{var n=r(5034),o=r(7709);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},9139:(t,e,r)=>{var n=r(5812);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},982:(t,e,r)=>{var n=r(9139);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},5812:t=>{t.exports=function(t){return t}},7010:(t,e,r)=>{var n=r(6316);t.exports=function(t){return null==t?"":n(t)}},660:(t,e,r)=>{var n=r(7010),o=0;t.exports=function(t){var e=++o;return n(t)+e}},2504:(t,e,r)=>{"use strict";var n=r(2265);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3698:(t,e,r)=>{t.exports=r(2504)()},2265:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7491:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Zt,VictoryBrushContainer:()=>ce,brushContainerMixin:()=>ue});var t=n(1893),e=n.n(t),r=n(156),i=n.n(r),a=n(3698),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function b(t){return!(!t||void 0===t.identifier)}function d(t){if(!b(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function m(t,e){if(b(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var r=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,n=function(t){return t.getScreenCTM().inverse()}(e=e||d(r));return{x:v(r.clientX,n,"x"),y:v(r.clientY,n,"y")}}function x(t,e){var r=t.horizontal,n=t.scale,o=e||{x:n.x.domain(),y:n.y.domain()};return{x:r?[n.y(o.y[0]),n.y(o.y[1])]:[n.x(o.x[0]),n.x(o.x[1])],y:r?[n.x(o.x[0]),n.x(o.x[1])]:[n.y(o.y[0]),n.y(o.y[1])]}}function g(t,e,r,n){var o=t.polar,i=t.horizontal;if(!o)return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)};var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.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:e.x.invert(s),y:e.y.invert(l)}}function O(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=g(t,i,e,n),u=g(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(9642),j=n.n(w),M=n(7709),P=n.n(M),D=n(660),_=n.n(D),E=n(5395),S=n.n(E),A=n(9992),R=n.n(A),B=(n(3849),n(6149)),T=n.n(B),C=["linear","time","log","sqrt"];var k=function(t){var e=function(e){return function(r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))}};return Object.assign(e(!1),{isRequired:e(!0)})},I=function(){return null},z=function(){},G=function(t){return void 0===t?z:null===t?I:t.constructor},U=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},N=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<0?new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number.")):null})),W=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n%1!=0?new Error("`".concat(e,"` in `").concat(r,"` must be an integer.")):null})),V=(k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<=0?new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero.")):null})),k((function(t,e,r){var n=t[e];return Array.isArray(n)&&2===n.length&&n[1]!==n[0]?null:new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),k((function(t,e,r){return("function"==typeof(n=t[e])?j()(n.copy)&&j()(n.domain)&&j()(n.range):"string"==typeof n&&T()(C,n))?null:new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."));var n})),k((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(n.length<2)return null;var o=G(n[0]),i=R()(n,(function(t){return o!==G(t)}));if(i){var a=U(n[0]),u=U(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}return null})),k((function(t,e){return t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length?new Error("Length of data and ".concat(e," arrays must match.")):null})),k((function(t,e,r){return t[e]&&!S()(t[e])?new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression.")):null})),n(7747)),F=n.n(V);function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function q(t,e){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q(t,e)}function $(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=X(n);if(o){var r=X(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return $(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,r){e.map[t]=r,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(r=[{key:"getChildren",value:function(){var t=this;return F()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&H(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);Y.displayName="Portal",Y.propTypes={className:u().string,height:N,style:u().object,viewBox:u().string,width:N};var L=l().createContext({});L.displayName="PortalContext";var Z,J,K=0,Q=0,tt=0,et=0,rt=0,nt=0,ot="object"==typeof performance&&performance.now?performance:Date,it="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function at(){return rt||(it(ut),rt=ot.now()+nt)}function ut(){rt=0}function ct(){this._call=this._time=this._next=null}function lt(t,e,r){var n=new ct;return n.restart(t,e,r),n}function st(){rt=(et=ot.now())+nt,K=Q=0;try{!function(){at(),++K;for(var t,e=Z;e;)(t=rt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--K}()}finally{K=0,function(){for(var t,e,r=Z,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Z=e);J=t,pt(n)}(),rt=0}}function ft(){var t=ot.now(),e=t-et;e>1e3&&(nt-=e,et=t)}function pt(t){K||(Q&&(Q=clearTimeout(Q)),t-rt>24?(t<1/0&&(Q=setTimeout(st,t-ot.now()-nt)),tt&&(tt=clearInterval(tt))):(tt||(et=ot.now(),tt=setInterval(ft,1e3)),K=1,it(st)))}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ct.prototype=lt.prototype={constructor:ct,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?at():+r)+(null==e?0:+e),this._next||J===this||(J?J._next=this:Z=this,J=this),this._call=t,this._time=r,pt()},stop:function(){this._call&&(this._call=null,this._time=1/0,pt())}};var ht=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(at()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=lt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:at(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&yt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),vt=l().createContext({transitionTimer:new ht,animationTimer:new ht});vt.displayName="TimerContext";const bt=vt;function dt(t,e){return j()(t)?t(e):t}function mt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return xt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(9082),n(8532);var wt={startsWith:["data-","aria-"],exactMatch:[]},jt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){Ot(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return wt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return wt.exactMatch.includes(t)}(t))}(mt(t,1)[0])})).map((function(e){var r=mt(e,2);return[r[0],dt(r[1],t)]})))};function Mt(){return Mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mt.apply(this,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(r),!0).forEach((function(e){_t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Et(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function At(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rt(o);if(a){var r=Rt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return At(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return j()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=P()(t)&&void 0!==t.containerId?t.containerId:_()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return r=c,(n=[{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(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Dt(Dt(Dt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},b=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),d=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(L.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",Mt({style:e()({},n,b),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",Mt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:d},l().cloneElement(u,Dt(Dt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=jt(this.props),y=i()(Dt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&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:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Et(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);Bt.displayName="VictoryContainer",Bt.role="container",Bt.propTypes={"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:N,name:u().string,origin:u().shape({x:N,y:N}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:W,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:N},Bt.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(Y,null),portalZIndex:99,responsive:!0,role:"img"},Bt.contextType=bt;var Tt=["desc","id","tabIndex","origin"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(this,arguments)}function kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function It(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zt=(0,c.forwardRef)((function(t,e){var r,n=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Tt)),u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(r=dt(o,t))||void 0===r?void 0:r.toString(),tabIndex:dt(i,t)},a);return n?l().createElement("rect",Ct({},u,{ref:e}),l().createElement("desc",null,n)):l().createElement("rect",Ct({},u,{ref:e}))})),Gt=n(4943),Ut=n.n(Gt),Nt=n(8163),Wt=n.n(Nt),Vt=n(7491),Ft=n.n(Vt);function Ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(r),!0).forEach((function(e){$t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xt(t){return function(t){if(Array.isArray(t))return Yt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Lt={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=Ut()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=Ut()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=x(t,r),a=x(t,n);return{x1:"y"!==o?Math.min.apply(Math,Xt(a.x)):Math.min.apply(Math,Xt(i.x)),x2:"y"!==o?Math.max.apply(Math,Xt(a.x)):Math.max.apply(Math,Xt(i.x)),y1:"x"!==o?Math.min.apply(Math,Xt(a.y)):Math.min.apply(Math,Xt(i.y)),y2:"x"!==o?Math.max.apply(Math,Xt(a.y)):Math.max.apply(Math,Xt(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||d(r),s=this.panBox(qt(qt(qt({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),m(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return O(qt(qt({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,b=o?o-h:0,d=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-b:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-b:Math.max(s,f),y1:"x"!==a?Math.min(p,y)-d:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-d:Math.max(p,y)}},constrainBox:function(t,e){var r=Ut()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=Ut()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||d(t),h=m(t,y),v=h.x,b=h.y;if(!this.withinBounds({x:v,y:b},p,o))return{};var x=e()({},r.brushDomain,a),g=Ft()(x,i)?r.currentDomain||x||a:x||a,O=this.getDomainBox(r,a,g),w=u&&this.getActiveHandles({x:v,y:b},r,O);return w?[{target:"parent",mutation:function(){return qt({isSelecting:!0,domainBox:O,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(O,w))}}]:this.withinBounds({x:v,y:b},O)&&!Ft()(a,g)?[{target:"parent",mutation:function(){return qt({isPanning:c,startX:v,startY:b,domainBox:O,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},O)}}]:l?[{target:"parent",mutation:function(){return qt({isSelecting:u||"move"===f,domainBox:O,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:b},O,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=m(t,p),v=h.x,b=h.y;if(!c&&!l||f>0&&!this.hasMoved(qt(qt({},r),{},{x2:v,y2:b})))return{};if(l&&o){var d=r.startX,x=r.startY,g=this.panBox(r,{x:v,y:b}),w=this.constrainBox(g,a),M=O(qt(qt({},w),{},{scale:n,horizontal:s})),P=qt({currentDomain:M,parentSVG:p,startX:g.x2>=a.x2||g.x1<=a.x1?d:v,startY:g.y2>=a.y2||g.y1<=a.y1?x:b},w);return j()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?b:r.y2},a),_=D.x,E=D.y,S=O({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return j()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",b={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&j()(s)&&s(p,e()({},b,r));else{var d=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,d,t);b.currentDomain=m,j()(l)&&l(m,e()({},b,r)),j()(s)&&s(m,e()({},b,r)),j()(f)&&f(m,e()({},b,r))}return[{target:"parent",mutation:function(){return b}}]}},Zt=qt(qt({},Lt),{},{onMouseDown:Lt.onMouseDown.bind(Lt),onGlobalMouseUp:Lt.onGlobalMouseUp.bind(Lt),onGlobalMouseMove:Wt()(Lt.onGlobalMouseMove.bind(Lt),16,{leading:!0,trailing:!1})});function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(r),!0).forEach((function(e){Qt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function te(t){return function(t){if(Array.isArray(t))return ee(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oe(t,e)}function ie(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ae(t){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ae(t)}var ue=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ae(o);if(a){var r=ae(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ie(this,t)});function c(){return re(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Zt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Zt.getHandles(t,c),v=h.top,b=h.bottom,d=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,O=a.props&&a.props.style||{},w=e()({},O,o),j=this.getCursorPointers(t),M={style:w,width:x,height:n,cursor:j.yProps},P={style:w,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:b&&i()({x:b.x1,y:b.y1},M),left:d&&i()({y:d.y1,x:d.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Ft()(o,n)?e()({},r,o):o,a=x(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(te(l().Children.toArray(t.children)),te(this.getRect(t)))}}])&&ne(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),r.displayName="VictoryBrushContainer",r.propTypes=Kt(Kt({},Bt.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}),r.defaultProps=Kt(Kt({},Bt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(zt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(zt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),r.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Zt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Zt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Zt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Zt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Zt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Zt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Zt.onGlobalMouseUp(e,r)}}}]},r},ce=ue(Bt)})(),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.
|
|
3
|
+
"version": "36.8.2",
|
|
4
4
|
"description": "Interactive Brush Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
25
|
"react-fast-compare": "^3.2.0",
|
|
26
|
-
"victory-core": "^36.
|
|
26
|
+
"victory-core": "^36.8.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.6.0"
|