victory-brush-container 36.8.1 → 36.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # victory-brush-container
2
2
 
3
+ ## 36.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Refactor param reassignments ([#2724](https://github.com/FormidableLabs/victory/pull/2724))
8
+
9
+ ## 36.8.2
10
+
3
11
  ## 36.8.1
4
12
 
5
13
  ## 36.8.0
@@ -83,15 +83,18 @@ var Helpers = {
83
83
  x = _mapValues3.x,
84
84
  y = _mapValues3.y;
85
85
 
86
- padding = padding ? padding / 2 : 0;
87
- return x + padding >= Math.min(x1, x2) && x - padding <= Math.max(x1, x2) && y + padding >= Math.min(y1, y2) && y - padding <= Math.max(y1, y2);
86
+ var paddingValue = padding ? padding / 2 : 0;
87
+ return x + paddingValue >= Math.min(x1, x2) && x - paddingValue <= Math.max(x1, x2) && y + paddingValue >= Math.min(y1, y2) && y - paddingValue <= Math.max(y1, y2);
88
88
  },
89
89
  getDomainBox: function (props, fullDomain, selectedDomain) {
90
90
  var brushDimension = this.getDimension(props);
91
- fullDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, fullDomain, props.domain);
92
- selectedDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, selectedDomain, fullDomain);
93
- var fullCoords = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, fullDomain);
94
- var selectedCoords = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, selectedDomain);
91
+
92
+ var fullDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, fullDomain, props.domain);
93
+
94
+ var selectedDomainObject = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, selectedDomain, fullDomainObject);
95
+
96
+ var fullCoords = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, fullDomainObject);
97
+ var selectedCoords = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, selectedDomainObject);
95
98
  return {
96
99
  x1: brushDimension !== "y" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.min.apply(Math, _toConsumableArray(fullCoords.x)),
97
100
  x2: brushDimension !== "y" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.max.apply(Math, _toConsumableArray(fullCoords.x)),
@@ -142,8 +145,7 @@ var Helpers = {
142
145
 
143
146
  var handles = this.getHandles(props, domainBox);
144
147
  var activeHandles = ["top", "bottom", "left", "right"].reduce(function (memo, opt) {
145
- memo = handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
146
- return memo;
148
+ return handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
147
149
  }, []);
148
150
  return activeHandles.length && activeHandles;
149
151
  },
@@ -750,10 +752,9 @@ var brushContainerMixin = function (base) {
750
752
  }, xProps)
751
753
  };
752
754
  var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) {
753
- memo = handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
755
+ return handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
754
756
  key: "".concat(name, "-handle-").concat(curr)
755
757
  }, handleProps[curr]))) : memo;
756
- return memo;
757
758
  }, []);
758
759
  return handles.length ? handles : null;
759
760
  }
@@ -7218,6 +7219,7 @@ function reduceChildren(children, iteratee) {
7218
7219
 
7219
7220
  var traverseChildren = function (childArray, names, parent) {
7220
7221
  return childArray.reduce(function (memo, child, index) {
7222
+ var newMemo = memo;
7221
7223
  var childRole = child.type && child.type.role;
7222
7224
  var childName = child.props.name || "".concat(childRole, "-").concat(names[index]);
7223
7225
 
@@ -7235,16 +7237,16 @@ function reduceChildren(children, iteratee) {
7235
7237
  });
7236
7238
 
7237
7239
  var nestedResults = traverseChildren(nestedChildren, _childNames, child);
7238
- memo = combine(memo, nestedResults);
7240
+ newMemo = combine(newMemo, nestedResults);
7239
7241
  } else {
7240
7242
  var result = iteratee(child, childName, parent);
7241
7243
 
7242
7244
  if (result) {
7243
- memo = combine(memo, result);
7245
+ newMemo = combine(newMemo, result);
7244
7246
  }
7245
7247
  }
7246
7248
 
7247
- return memo;
7249
+ return newMemo;
7248
7250
  }, initialMemo);
7249
7251
  };
7250
7252
 
@@ -7270,8 +7272,7 @@ function isHorizontal(props) {
7270
7272
  var childProps = child.props || {};
7271
7273
 
7272
7274
  if (memo || childProps.horizontal || !childProps.children) {
7273
- memo = memo || childProps.horizontal;
7274
- return memo;
7275
+ return memo || childProps.horizontal;
7275
7276
  }
7276
7277
 
7277
7278
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(childProps.children));
@@ -7818,8 +7819,7 @@ function getSVGEventCoordinates(evt, svg) {
7818
7819
  }
7819
7820
 
7820
7821
  var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
7821
- svg = svg || getParentSVG(location);
7822
- var matrix = getTransformationMatrix(svg);
7822
+ var matrix = getTransformationMatrix(svg || getParentSVG(location));
7823
7823
  return {
7824
7824
  x: transformTarget(location.clientX, matrix, "x"),
7825
7825
  y: transformTarget(location.clientY, matrix, "y")
@@ -7985,11 +7985,10 @@ var Timer = /*#__PURE__*/function () {
7985
7985
  }, {
7986
7986
  key: "subscribe",
7987
7987
  value: function subscribe(callback, duration) {
7988
- duration = this.shouldAnimate ? duration : 0;
7989
7988
  var subscriptionID = this.subscribers.push({
7990
7989
  startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
7991
7990
  callback: callback,
7992
- duration: duration
7991
+ duration: this.shouldAnimate ? duration : 0
7993
7992
  });
7994
7993
  this.activeSubscriptions++;
7995
7994
  this.start();
@@ -8025,6 +8024,7 @@ var Timer = /*#__PURE__*/function () {
8025
8024
  "use strict";
8026
8025
  __webpack_require__.r(__webpack_exports__);
8027
8026
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8027
+ /* harmony export */ "assert": () => (/* binding */ assert),
8028
8028
  /* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
8029
8029
  /* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
8030
8030
  /* harmony export */ });
@@ -8105,6 +8105,18 @@ var testIfSafeProp = function (key) {
8105
8105
  if (doesPropStartWith(key) || isExactMatch(key)) return true;
8106
8106
  return false;
8107
8107
  };
8108
+ /**
8109
+ * Asserts that value is not null or undefined, throwing an error if it is.
8110
+ * @param value The value to assert
8111
+ * @param message The error message to throw
8112
+ */
8113
+
8114
+
8115
+ function assert(value, message) {
8116
+ if (value === undefined || value === null) {
8117
+ throw new Error(message);
8118
+ }
8119
+ }
8108
8120
  /**
8109
8121
  * getSafeUserProps - function that takes in a props object and removes any
8110
8122
  * key-value entries that do not match filter strings in the USER_PROPS_SAFELIST
@@ -8114,7 +8126,6 @@ var testIfSafeProp = function (key) {
8114
8126
  * @returns {Object}: object containing remaining acceptable props
8115
8127
  */
8116
8128
 
8117
-
8118
8129
  var getSafeUserProps = function (props) {
8119
8130
  var propsToFilter = _objectSpread({}, props);
8120
8131
 
@@ -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,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})()));
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||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){var r=this.subscribers.push({startTime:at(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&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,f=r?r/2:0;return l+f>=Math.min(o,i)&&l-f<=Math.max(o,i)&&s+f>=Math.min(a,u)&&s-f<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t),i=e()({},r,t.domain),a=e()({},n,i),u=x(t,i),c=x(t,a);return{x1:"y"!==o?Math.min.apply(Math,Xt(c.x)):Math.min.apply(Math,Xt(u.x)),x2:"y"!==o?Math.max.apply(Math,Xt(c.x)):Math.max.apply(Math,Xt(u.x)),y1:"x"!==o?Math.min.apply(Math,Xt(c.y)):Math.min.apply(Math,Xt(u.y)),y2:"x"!==o?Math.max.apply(Math,Xt(c.y)):Math.max.apply(Math,Xt(u.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
@@ -46,15 +46,18 @@ var Helpers = {
46
46
  x = _mapValues3.x,
47
47
  y = _mapValues3.y;
48
48
 
49
- padding = padding ? padding / 2 : 0;
50
- return x + padding >= Math.min(x1, x2) && x - padding <= Math.max(x1, x2) && y + padding >= Math.min(y1, y2) && y - padding <= Math.max(y1, y2);
49
+ var paddingValue = padding ? padding / 2 : 0;
50
+ return x + paddingValue >= Math.min(x1, x2) && x - paddingValue <= Math.max(x1, x2) && y + paddingValue >= Math.min(y1, y2) && y - paddingValue <= Math.max(y1, y2);
51
51
  },
52
52
  getDomainBox: function (props, fullDomain, selectedDomain) {
53
53
  var brushDimension = this.getDimension(props);
54
- fullDomain = _defaults({}, fullDomain, props.domain);
55
- selectedDomain = _defaults({}, selectedDomain, fullDomain);
56
- var fullCoords = Selection.getDomainCoordinates(props, fullDomain);
57
- var selectedCoords = Selection.getDomainCoordinates(props, selectedDomain);
54
+
55
+ var fullDomainObject = _defaults({}, fullDomain, props.domain);
56
+
57
+ var selectedDomainObject = _defaults({}, selectedDomain, fullDomainObject);
58
+
59
+ var fullCoords = Selection.getDomainCoordinates(props, fullDomainObject);
60
+ var selectedCoords = Selection.getDomainCoordinates(props, selectedDomainObject);
58
61
  return {
59
62
  x1: brushDimension !== "y" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.min.apply(Math, _toConsumableArray(fullCoords.x)),
60
63
  x2: brushDimension !== "y" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.max.apply(Math, _toConsumableArray(fullCoords.x)),
@@ -105,8 +108,7 @@ var Helpers = {
105
108
 
106
109
  var handles = this.getHandles(props, domainBox);
107
110
  var activeHandles = ["top", "bottom", "left", "right"].reduce(function (memo, opt) {
108
- memo = handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
109
- return memo;
111
+ return handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
110
112
  }, []);
111
113
  return activeHandles.length && activeHandles;
112
114
  },
@@ -153,10 +153,9 @@ export var brushContainerMixin = function (base) {
153
153
  }, xProps)
154
154
  };
155
155
  var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) {
156
- memo = handleProps[curr] ? memo.concat( /*#__PURE__*/React.cloneElement(handleComponent, _assign({
156
+ return handleProps[curr] ? memo.concat( /*#__PURE__*/React.cloneElement(handleComponent, _assign({
157
157
  key: "".concat(name, "-handle-").concat(curr)
158
158
  }, handleProps[curr]))) : memo;
159
- return memo;
160
159
  }, []);
161
160
  return handles.length ? handles : null;
162
161
  }
@@ -61,17 +61,17 @@ var Helpers = {
61
61
  x = _mapValues3.x,
62
62
  y = _mapValues3.y;
63
63
 
64
- padding = padding ? padding / 2 : 0;
65
- return x + padding >= Math.min(x1, x2) && x - padding <= Math.max(x1, x2) && y + padding >= Math.min(y1, y2) && y - padding <= Math.max(y1, y2);
64
+ var paddingValue = padding ? padding / 2 : 0;
65
+ return x + paddingValue >= Math.min(x1, x2) && x - paddingValue <= Math.max(x1, x2) && y + paddingValue >= Math.min(y1, y2) && y - paddingValue <= Math.max(y1, y2);
66
66
  },
67
67
  getDomainBox: function (props, fullDomain, selectedDomain) {
68
68
  var brushDimension = this.getDimension(props);
69
- fullDomain = (0, _defaults2.default)({}, fullDomain, props.domain);
70
- selectedDomain = (0, _defaults2.default)({}, selectedDomain, fullDomain);
69
+ var fullDomainObject = (0, _defaults2.default)({}, fullDomain, props.domain);
70
+ var selectedDomainObject = (0, _defaults2.default)({}, selectedDomain, fullDomainObject);
71
71
 
72
- var fullCoords = _victoryCore.Selection.getDomainCoordinates(props, fullDomain);
72
+ var fullCoords = _victoryCore.Selection.getDomainCoordinates(props, fullDomainObject);
73
73
 
74
- var selectedCoords = _victoryCore.Selection.getDomainCoordinates(props, selectedDomain);
74
+ var selectedCoords = _victoryCore.Selection.getDomainCoordinates(props, selectedDomainObject);
75
75
 
76
76
  return {
77
77
  x1: brushDimension !== "y" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.min.apply(Math, _toConsumableArray(fullCoords.x)),
@@ -123,8 +123,7 @@ var Helpers = {
123
123
 
124
124
  var handles = this.getHandles(props, domainBox);
125
125
  var activeHandles = ["top", "bottom", "left", "right"].reduce(function (memo, opt) {
126
- memo = handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
127
- return memo;
126
+ return handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo;
128
127
  }, []);
129
128
  return activeHandles.length && activeHandles;
130
129
  },
@@ -168,10 +168,9 @@ var brushContainerMixin = function (base) {
168
168
  }, xProps)
169
169
  };
170
170
  var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) {
171
- memo = handleProps[curr] ? memo.concat( /*#__PURE__*/_react.default.cloneElement(handleComponent, (0, _assign2.default)({
171
+ return handleProps[curr] ? memo.concat( /*#__PURE__*/_react.default.cloneElement(handleComponent, (0, _assign2.default)({
172
172
  key: "".concat(name, "-handle-").concat(curr)
173
173
  }, handleProps[curr]))) : memo;
174
- return memo;
175
174
  }, []);
176
175
  return handles.length ? handles : null;
177
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-brush-container",
3
- "version": "36.8.1",
3
+ "version": "36.8.3",
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.8.1"
26
+ "victory-core": "^36.8.3"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
@@ -14,23 +14,23 @@ const Helpers = {
14
14
  withinBounds(point, bounds, padding?) {
15
15
  const { x1, x2, y1, y2 } = mapValues(bounds, Number);
16
16
  const { x, y } = mapValues(point, Number);
17
- padding = padding ? padding / 2 : 0;
17
+ const paddingValue = padding ? padding / 2 : 0;
18
18
  return (
19
- x + padding >= Math.min(x1, x2) &&
20
- x - padding <= Math.max(x1, x2) &&
21
- y + padding >= Math.min(y1, y2) &&
22
- y - padding <= Math.max(y1, y2)
19
+ x + paddingValue >= Math.min(x1, x2) &&
20
+ x - paddingValue <= Math.max(x1, x2) &&
21
+ y + paddingValue >= Math.min(y1, y2) &&
22
+ y - paddingValue <= Math.max(y1, y2)
23
23
  );
24
24
  },
25
25
 
26
26
  getDomainBox(props, fullDomain, selectedDomain?) {
27
27
  const brushDimension = this.getDimension(props);
28
- fullDomain = defaults({}, fullDomain, props.domain);
29
- selectedDomain = defaults({}, selectedDomain, fullDomain);
30
- const fullCoords = Selection.getDomainCoordinates(props, fullDomain);
28
+ const fullDomainObject = defaults({}, fullDomain, props.domain);
29
+ const selectedDomainObject = defaults({}, selectedDomain, fullDomainObject);
30
+ const fullCoords = Selection.getDomainCoordinates(props, fullDomainObject);
31
31
  const selectedCoords = Selection.getDomainCoordinates(
32
32
  props,
33
- selectedDomain,
33
+ selectedDomainObject,
34
34
  );
35
35
 
36
36
  return {
@@ -92,13 +92,10 @@ const Helpers = {
92
92
  getActiveHandles(point, props, domainBox) {
93
93
  const handles = this.getHandles(props, domainBox);
94
94
  const activeHandles = ["top", "bottom", "left", "right"].reduce(
95
- (memo, opt) => {
96
- memo =
97
- handles[opt] && this.withinBounds(point, handles[opt])
98
- ? memo.concat(opt)
99
- : memo;
100
- return memo;
101
- },
95
+ (memo, opt) =>
96
+ handles[opt] && this.withinBounds(point, handles[opt])
97
+ ? memo.concat(opt)
98
+ : memo,
102
99
  [] as string[],
103
100
  );
104
101
  return activeHandles.length && activeHandles;
@@ -199,17 +199,15 @@ export const brushContainerMixin = <TBase extends Constructor>(base: TBase) =>
199
199
  right: right && assign({ y: right.y1, x: right.x1 }, xProps),
200
200
  };
201
201
  const handles = ["top", "bottom", "left", "right"].reduce(
202
- (memo, curr) => {
203
- memo = handleProps[curr]
202
+ (memo, curr) =>
203
+ handleProps[curr]
204
204
  ? memo.concat(
205
205
  React.cloneElement(
206
206
  handleComponent,
207
207
  assign({ key: `${name}-handle-${curr}` }, handleProps[curr]),
208
208
  ),
209
209
  )
210
- : memo;
211
- return memo;
212
- },
210
+ : memo,
213
211
  [] as React.ReactElement[],
214
212
  );
215
213
  return handles.length ? handles : null;