victory-brush-line 37.0.1 → 37.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # victory-brush-line
2
2
 
3
+ ## 37.0.2
4
+
3
5
  ## 37.0.1
4
6
 
5
7
  ## 37.0.0
@@ -4881,10 +4881,13 @@ __webpack_require__.r(__webpack_exports__);
4881
4881
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4882
4882
  /* harmony export */ "Border": function() { return /* binding */ Border; }
4883
4883
  /* harmony export */ });
4884
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4885
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4886
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4887
- /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
4884
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
4885
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
4886
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
4887
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
4888
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4889
+ /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
4890
+
4888
4891
 
4889
4892
 
4890
4893
 
@@ -4897,13 +4900,13 @@ const evaluateProps = props => {
4897
4900
  * `style`
4898
4901
  * `tabIndex`
4899
4902
  */
4900
- const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.ariaLabel, props);
4901
- const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.desc, props);
4902
- const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.id, props);
4903
- const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateStyle(Object.assign({
4903
+ const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
4904
+ const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
4905
+ const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
4906
+ const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
4904
4907
  fill: "none"
4905
4908
  }, props.style), props);
4906
- const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.tabIndex, props);
4909
+ const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
4907
4910
  return Object.assign({}, props, {
4908
4911
  ariaLabel,
4909
4912
  desc,
@@ -4913,16 +4916,13 @@ const evaluateProps = props => {
4913
4916
  });
4914
4917
  };
4915
4918
  const defaultProps = {
4916
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_2__.Rect, null),
4919
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
4917
4920
  role: "presentation",
4918
4921
  shapeRendering: "auto"
4919
4922
  };
4920
4923
  const Border = initialProps => {
4921
- const props = evaluateProps({
4922
- ...defaultProps,
4923
- ...initialProps
4924
- });
4925
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
4924
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
4925
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
4926
4926
  ...props.events,
4927
4927
  "aria-label": props.ariaLabel,
4928
4928
  style: props.style,
@@ -4953,10 +4953,13 @@ __webpack_require__.r(__webpack_exports__);
4953
4953
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4954
4954
  /* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
4955
4955
  /* harmony export */ });
4956
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4957
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4958
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4959
- /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
4956
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
4957
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
4958
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
4959
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
4960
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4961
+ /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
4962
+
4960
4963
 
4961
4964
 
4962
4965
 
@@ -4969,13 +4972,13 @@ const evaluateProps = props => {
4969
4972
  * `style`
4970
4973
  * `tabIndex`
4971
4974
  */
4972
- const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.ariaLabel, props);
4973
- const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.desc, props);
4974
- const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.id, props);
4975
- const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateStyle(Object.assign({
4975
+ const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
4976
+ const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
4977
+ const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
4978
+ const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
4976
4979
  stroke: "black"
4977
4980
  }, props.style), props);
4978
- const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.tabIndex, props);
4981
+ const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
4979
4982
  return Object.assign({}, props, {
4980
4983
  ariaLabel,
4981
4984
  desc,
@@ -4985,16 +4988,13 @@ const evaluateProps = props => {
4985
4988
  });
4986
4989
  };
4987
4990
  const defaultProps = {
4988
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_2__.Line, null),
4991
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
4989
4992
  role: "presentation",
4990
4993
  shapeRendering: "auto"
4991
4994
  };
4992
4995
  const LineSegment = initialProps => {
4993
- const props = evaluateProps({
4994
- ...defaultProps,
4995
- ...initialProps
4996
- });
4997
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
4996
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
4997
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
4998
4998
  ...props.events,
4999
4999
  "aria-label": props.ariaLabel,
5000
5000
  style: props.style,
@@ -1,2 +1,2 @@
1
- !function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.VictoryBrushLine=t(require("react")):n.VictoryBrushLine=t(n.React)}(self,(function(n){return function(){var t={2596:function(n,t,e){var r=e(2373).Symbol;n.exports=r},6082:function(n){n.exports=function(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}},8644:function(n){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}},9559:function(n){n.exports=function(n,t){for(var e=-1,r=t.length,i=n.length;++e<r;)n[i+e]=t[e];return n}},4132:function(n,t,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;n.exports=function(n,t,e){var u=n[t];o.call(n,t)&&i(u,e)&&(void 0!==e||t in n)||r(n,t,e)}},8347:function(n,t,e){var r=e(5525);n.exports=function(n,t,e){"__proto__"==t&&r?r(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}},6457:function(n,t,e){var r=e(9559),i=e(3608);n.exports=function n(t,e,o,u,a){var c=-1,l=t.length;for(o||(o=i),a||(a=[]);++c<l;){var s=t[c];e>0&&o(s)?e>1?n(s,e-1,o,u,a):r(a,s):u||(a[a.length]=s)}return a}},4432:function(n,t,e){var r=e(9026),i=e(3110);n.exports=function(n,t){for(var e=0,o=(t=r(t,n)).length;null!=n&&e<o;)n=n[i(t[e++])];return e&&e==o?n:void 0}},563:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},6776:function(n){n.exports=function(n,t){return null!=n&&t in Object(n)}},7537:function(n,t,e){var r=e(563),i=e(3474);n.exports=function(n){return i(n)&&"[object Date]"==r(n)}},5436:function(n,t,e){var r=e(6371),i=e(5066);n.exports=function(n,t){return r(n,t,(function(t,e){return i(n,e)}))}},6371:function(n,t,e){var r=e(4432),i=e(6539),o=e(9026);n.exports=function(n,t,e){for(var u=-1,a=t.length,c={};++u<a;){var l=t[u],s=r(n,l);e(s,l)&&i(c,o(l,n),s)}return c}},1600:function(n){n.exports=function(n){return function(t){return null==t?void 0:t[n]}}},3301:function(n,t,e){var r=e(4432);n.exports=function(n){return function(t){return r(t,n)}}},6317:function(n,t,e){var r=e(5346),i=e(4280),o=e(201);n.exports=function(n,t){return o(i(n,t,r),n+"")}},6539:function(n,t,e){var r=e(4132),i=e(9026),o=e(9099),u=e(7709),a=e(3110);n.exports=function(n,t,e,c){if(!u(n))return n;for(var l=-1,s=(t=i(t,n)).length,f=s-1,h=n;null!=h&&++l<s;){var g=a(t[l]),p=e;if("__proto__"===g||"constructor"===g||"prototype"===g)return n;if(l!=f){var m=h[g];void 0===(p=c?c(m,g,h):void 0)&&(p=u(m)?m:o(t[l+1])?[]:{})}r(h,g,p),h=h[g]}return n}},7556:function(n,t,e){var r=e(788);n.exports=function(n,t){for(var e=-1,i=n.length,o=0,u=[];++e<i;){var a=n[e],c=t?t(a):a;if(!e||!r(c,l)){var l=c;u[o++]=0===a?0:a}}return u}},6316:function(n,t,e){var r=e(2596),i=e(8644),o=e(163),u=e(1995),a=r?r.prototype:void 0,c=a?a.toString:void 0;n.exports=function n(t){if("string"==typeof t)return t;if(o(t))return i(t,n)+"";if(u(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},9110:function(n){n.exports=function(n){return function(t){return n(t)}}},9026:function(n,t,e){var r=e(163),i=e(726),o=e(7801),u=e(7010);n.exports=function(n,t){return r(n)?n:i(n,t)?[n]:o(u(n))}},5525:function(n,t,e){var r=e(3743),i=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=i},5557:function(n,t,e){var r=e(2645),i=e(4280),o=e(201);n.exports=function(n){return o(i(n,void 0,r),n+"")}},2117:function(n,t,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=r},3743:function(n){n.exports=function(n,t){return null==n?void 0:n[t]}},9817:function(n,t,e){var r=e(5125)(Object.getPrototypeOf,Object);n.exports=r},3096:function(n,t,e){var r=e(9026),i=e(5075),o=e(163),u=e(9099),a=e(8454),c=e(3110);n.exports=function(n,t,e){for(var l=-1,s=(t=r(t,n)).length,f=!1;++l<s;){var h=c(t[l]);if(!(f=null!=n&&e(n,h)))break;n=n[h]}return f||++l!=s?f:!!(s=null==n?0:n.length)&&a(s)&&u(h,s)&&(o(n)||i(n))}},3608:function(n,t,e){var r=e(2596),i=e(5075),o=e(163),u=r?r.isConcatSpreadable:void 0;n.exports=function(n){return o(n)||i(n)||!!(u&&n&&n[u])}},9099:function(n){var t=/^(?:0|[1-9]\d*)$/;n.exports=function(n,e){var r=typeof n;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&t.test(n))&&n>-1&&n%1==0&&n<e}},8286:function(n){n.exports=function(){return!1}},726:function(n,t,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;n.exports=function(n,t){if(r(n))return!1;var e=typeof n;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=n&&!i(n))||u.test(n)||!o.test(n)||null!=t&&n in Object(t)}},2453:function(n){n.exports=function(n){return n}},2348:function(n,t,e){n=e.nmd(n);var r=e(2117),i=t&&!t.nodeType&&t,o=i&&n&&!n.nodeType&&n,u=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||u&&u.binding&&u.binding("util")}catch(n){}}();n.exports=a},5125:function(n){n.exports=function(n,t){return function(e){return n(t(e))}}},4280:function(n,t,e){var r=e(6082),i=Math.max;n.exports=function(n,t,e){return t=i(void 0===t?n.length-1:t,0),function(){for(var o=arguments,u=-1,a=i(o.length-t,0),c=Array(a);++u<a;)c[u]=o[t+u];u=-1;for(var l=Array(t+1);++u<t;)l[u]=o[u];return l[t]=e(c),r(n,this,l)}}},2373:function(n,t,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();n.exports=o},201:function(n){n.exports=function(n){return n}},7801:function(n,t,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(i,(function(n,e,r,i){t.push(r?i.replace(o,"$1"):e||n)})),t}));n.exports=u},3110:function(n,t,e){var r=e(1995);n.exports=function(n){if("string"==typeof n||r(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},1893:function(n,t,e){var r=e(6317),i=e(788),o=e(8286),u=e(8855),a=Object.prototype,c=a.hasOwnProperty,l=r((function(n,t){n=Object(n);var e=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++e<r;)for(var s=t[e],f=u(s),h=-1,g=f.length;++h<g;){var p=f[h],m=n[p];(void 0===m||i(m,a[p])&&!c.call(n,p))&&(n[p]=s[p])}return n}));n.exports=l},788:function(n){n.exports=function(n,t){return n===t||n!=n&&t!=t}},2645:function(n,t,e){var r=e(6457);n.exports=function(n){return null!=n&&n.length?r(n,1):[]}},5066:function(n,t,e){var r=e(6776),i=e(3096);n.exports=function(n,t){return null!=n&&i(n,t,r)}},5346:function(n){n.exports=function(n){return n}},5075:function(n){n.exports=function(){return!1}},163:function(n){var t=Array.isArray;n.exports=t},4295:function(n,t,e){var r=e(7537),i=e(9110),o=e(2348),u=o&&o.isDate,a=u?i(u):r;n.exports=a},8454:function(n){n.exports=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}},7709:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},3474:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},3849:function(n,t,e){var r=e(563),i=e(9817),o=e(3474),u=Function.prototype,a=Object.prototype,c=u.toString,l=a.hasOwnProperty,s=c.call(Object);n.exports=function(n){if(!o(n)||"[object Object]"!=r(n))return!1;var t=i(n);if(null===t)return!0;var e=l.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},1995:function(n){n.exports=function(){return!1}},8855:function(n){n.exports=function(n){var t=[];if(null!=n)for(var e in Object(n))t.push(e);return t}},9082:function(n,t,e){var r=e(5436),i=e(5557)((function(n,t){return null==n?{}:r(n,t)}));n.exports=i},8532:function(n,t,e){var r=e(1600),i=e(3301),o=e(726),u=e(3110);n.exports=function(n){return o(n)?r(u(n)):i(n)}},2829:function(n,t,e){var r=e(7556);n.exports=function(n){return n&&n.length?r(n):[]}},7010:function(n,t,e){var r=e(6316);n.exports=function(n){return null==n?"":r(n)}},7491:function(n){var t="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(n,u){if(n===u)return!0;if(n&&u&&"object"==typeof n&&"object"==typeof u){if(n.constructor!==u.constructor)return!1;var a,c,l,s;if(Array.isArray(n)){if((a=n.length)!=u.length)return!1;for(c=a;0!=c--;)if(!o(n[c],u[c]))return!1;return!0}if(e&&n instanceof Map&&u instanceof Map){if(n.size!==u.size)return!1;for(s=n.entries();!(c=s.next()).done;)if(!u.has(c.value[0]))return!1;for(s=n.entries();!(c=s.next()).done;)if(!o(c.value[1],u.get(c.value[0])))return!1;return!0}if(r&&n instanceof Set&&u instanceof Set){if(n.size!==u.size)return!1;for(s=n.entries();!(c=s.next()).done;)if(!u.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(u)){if((a=n.length)!=u.length)return!1;for(c=a;0!=c--;)if(n[c]!==u[c])return!1;return!0}if(n.constructor===RegExp)return n.source===u.source&&n.flags===u.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===u.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===u.toString();if((a=(l=Object.keys(n)).length)!==Object.keys(u).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(u,l[c]))return!1;if(t&&n instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!n.$$typeof)&&!o(n[l[c]],u[l[c]]))return!1;return!0}return n!=n&&u!=u}n.exports=function(n,t){try{return o(n,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},9787:function(t){"use strict";t.exports=n}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryBrushLine:function(){return bo}});var n={};r.r(n),r.d(n,{scaleBand:function(){return j},scaleDiverging:function(){return $i},scaleDivergingLog:function(){return Hi},scaleDivergingPow:function(){return Fi},scaleDivergingSqrt:function(){return Pi},scaleDivergingSymlog:function(){return Ei},scaleIdentity:function(){return dt},scaleImplicit:function(){return S},scaleLinear:function(){return mt},scaleLog:function(){return Nt},scaleOrdinal:function(){return A},scalePoint:function(){return U},scalePow:function(){return Ht},scaleQuantile:function(){return zt},scaleQuantize:function(){return Wt},scaleRadial:function(){return Yt},scaleSequential:function(){return Ni},scaleSequentialLog:function(){return Ci},scaleSequentialPow:function(){return Si},scaleSequentialQuantile:function(){return ji},scaleSequentialSqrt:function(){return Ai},scaleSequentialSymlog:function(){return ki},scaleSqrt:function(){return Et},scaleSymlog:function(){return At},scaleThreshold:function(){return Gt},scaleTime:function(){return Mi},scaleUtc:function(){return wi},tickFormat:function(){return gt}});var t=r(9082),e=r.n(t),o=r(1893),u=r.n(o),a=r(9787),c=r.n(a),l=r(3849),s=r.n(l),f=r(8532),h=r.n(f);function g(n,t){void 0===t&&(t="padding");const e=n[t],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function p(n,t){return y(n)?n(t):n}function m(n,t){return t.disableInlineStyles?{}:n&&Object.keys(n).some((t=>y(n[t])))?Object.keys(n).reduce(((e,r)=>(e[r]=p(n[r],t),e)),{}):n}function d(n){return"number"==typeof n?n*(Math.PI/180):n}function v(n){const{left:t,right:e,top:r,bottom:i}=g(n),{width:o,height:u}=n;return Math.min(o-t-e,u-r-i)/2}function y(n){return"function"==typeof n}function b(n){return Array.isArray(n)&&n.some((n=>n instanceof Date))}function x(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];const i=n.concat(e);return b(i)?new Date(Math.max(...i)):Math.max(...i)}function M(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];const i=n.concat(e);return b(i)?new Date(Math.min(...i)):Math.min(...i)}function w(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}function D(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function T(n,t){switch(arguments.length){case 0:break;case 1:"function"==typeof n?this.interpolator(n):this.range(n);break;default:this.domain(n),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class N extends Map{constructor(n,t=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const[t,e]of n)this.set(t,e)}get(n){return super.get(C(this,n))}has(n){return super.has(C(this,n))}set(n,t){return super.set(function({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):(n.set(r,e),e)}(this,n),t)}delete(n){return super.delete(function({_intern:n,_key:t},e){const r=t(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}(this,n))}}function C({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):e}function k(n){return null!==n&&"object"==typeof n?n.valueOf():n}Set;const S=Symbol("implicit");function A(){var n=new N,t=[],e=[],r=S;function i(i){let o=n.get(i);if(void 0===o){if(r!==S)return r;n.set(i,o=t.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return t.slice();t=[],n=new N;for(const r of e)n.has(r)||n.set(r,t.push(r)-1);return i},i.range=function(n){return arguments.length?(e=Array.from(n),i):e.slice()},i.unknown=function(n){return arguments.length?(r=n,i):r},i.copy=function(){return A(t,e).unknown(r)},D.apply(i,arguments),i}function j(){var n,t,e=A().unknown(void 0),r=e.domain,i=e.range,o=0,u=1,a=!1,c=0,l=0,s=.5;function f(){var e=r().length,f=u<o,h=f?u:o,g=f?o:u;n=(g-h)/Math.max(1,e-c+2*l),a&&(n=Math.floor(n)),h+=(g-h-n*(e-c))*s,t=n*(1-c),a&&(h=Math.round(h),t=Math.round(t));var p=w(e).map((function(t){return h+n*t}));return i(f?p.reverse():p)}return delete e.unknown,e.domain=function(n){return arguments.length?(r(n),f()):r()},e.range=function(n){return arguments.length?([o,u]=n,o=+o,u=+u,f()):[o,u]},e.rangeRound=function(n){return[o,u]=n,o=+o,u=+u,a=!0,f()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(a=!!n,f()):a},e.padding=function(n){return arguments.length?(c=Math.min(1,l=+n),f()):c},e.paddingInner=function(n){return arguments.length?(c=Math.min(1,n),f()):c},e.paddingOuter=function(n){return arguments.length?(l=+n,f()):l},e.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),f()):s},e.copy=function(){return j(r(),[o,u]).round(a).paddingInner(c).paddingOuter(l).align(s)},D.apply(f(),arguments)}function O(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return O(t())},n}function U(){return O(j.apply(null,arguments).paddingInner(1))}var $=Math.sqrt(50),H=Math.sqrt(10),E=Math.sqrt(2);function F(n,t,e){var r,i,o,u,a=-1;if(e=+e,(n=+n)==(t=+t)&&e>0)return[n];if((r=t<n)&&(i=n,n=t,t=i),0===(u=P(n,t,e))||!isFinite(u))return[];if(u>0){let e=Math.round(n/u),r=Math.round(t/u);for(e*u<n&&++e,r*u>t&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)*u}else{u=-u;let e=Math.round(n*u),r=Math.round(t*u);for(e/u<n&&++e,r/u>t&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)/u}return r&&o.reverse(),o}function P(n,t,e){var r=(t-n)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=$?10:o>=H?5:o>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=$?10:o>=H?5:o>=E?2:1)}function Y(n,t,e){var r=Math.abs(t-n)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$?i*=10:o>=H?i*=5:o>=E&&(i*=2),t<n?-i:i}function L(n,t){return null==n||null==t?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function q(n,t){return null==n||null==t?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function R(n){let t,e,r;function i(n,r,i=0,o=n.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;e(n[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==n.length?(t=L,e=(t,e)=>L(n(t),e),r=(t,e)=>n(t)-e):(t=n===L||n===q?n:B,e=n,r=n),{left:i,center:function(n,t,e=0,o=n.length){const u=i(n,t,e,o-1);return u>e&&r(n[u-1],t)>-r(n[u],t)?u-1:u},right:function(n,r,i=0,o=n.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;e(n[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function B(){return 0}function I(n){return null===n?NaN:+n}const V=R(L),_=V.right;V.left,R(I).center;var z=_;function W(n,t,e){n.prototype=t.prototype=e,e.constructor=n}function G(n,t){var e=Object.create(n.prototype);for(var r in t)e[r]=t[r];return e}function Z(){}var X=.7,Q=1/X,J="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tn=/^#([0-9a-f]{3,8})$/,en=new RegExp(`^rgb\\(${J},${J},${J}\\)$`),rn=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),on=new RegExp(`^rgba\\(${J},${J},${J},${K}\\)$`),un=new RegExp(`^rgba\\(${nn},${nn},${nn},${K}\\)$`),an=new RegExp(`^hsl\\(${K},${nn},${nn}\\)$`),cn=new RegExp(`^hsla\\(${K},${nn},${nn},${K}\\)$`),ln={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function sn(){return this.rgb().formatHex()}function fn(){return this.rgb().formatRgb()}function hn(n){var t,e;return n=(n+"").trim().toLowerCase(),(t=tn.exec(n))?(e=t[1].length,t=parseInt(t[1],16),6===e?gn(t):3===e?new vn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===e?pn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===e?pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=en.exec(n))?new vn(t[1],t[2],t[3],1):(t=rn.exec(n))?new vn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=on.exec(n))?pn(t[1],t[2],t[3],t[4]):(t=un.exec(n))?pn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=an.exec(n))?Dn(t[1],t[2]/100,t[3]/100,1):(t=cn.exec(n))?Dn(t[1],t[2]/100,t[3]/100,t[4]):ln.hasOwnProperty(n)?gn(ln[n]):"transparent"===n?new vn(NaN,NaN,NaN,0):null}function gn(n){return new vn(n>>16&255,n>>8&255,255&n,1)}function pn(n,t,e,r){return r<=0&&(n=t=e=NaN),new vn(n,t,e,r)}function mn(n){return n instanceof Z||(n=hn(n)),n?new vn((n=n.rgb()).r,n.g,n.b,n.opacity):new vn}function dn(n,t,e,r){return 1===arguments.length?mn(n):new vn(n,t,e,null==r?1:r)}function vn(n,t,e,r){this.r=+n,this.g=+t,this.b=+e,this.opacity=+r}function yn(){return`#${wn(this.r)}${wn(this.g)}${wn(this.b)}`}function bn(){const n=xn(this.opacity);return`${1===n?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${1===n?")":`, ${n})`}`}function xn(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Mn(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function wn(n){return((n=Mn(n))<16?"0":"")+n.toString(16)}function Dn(n,t,e,r){return r<=0?n=t=e=NaN:e<=0||e>=1?n=t=NaN:t<=0&&(n=NaN),new Nn(n,t,e,r)}function Tn(n){if(n instanceof Nn)return new Nn(n.h,n.s,n.l,n.opacity);if(n instanceof Z||(n=hn(n)),!n)return new Nn;if(n instanceof Nn)return n;var t=(n=n.rgb()).r/255,e=n.g/255,r=n.b/255,i=Math.min(t,e,r),o=Math.max(t,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=t===o?(e-r)/a+6*(e<r):e===o?(r-t)/a+2:(t-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Nn(u,a,c,n.opacity)}function Nn(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}function Cn(n){return(n=(n||0)%360)<0?n+360:n}function kn(n){return Math.max(0,Math.min(1,n||0))}function Sn(n,t,e){return 255*(n<60?t+(e-t)*n/60:n<180?e:n<240?t+(e-t)*(240-n)/60:t)}function An(n,t,e,r,i){var o=n*n,u=o*n;return((1-3*n+3*o-u)*t+(4-6*o+3*u)*e+(1+3*n+3*o-3*u)*r+u*i)/6}W(Z,hn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:sn,formatHex:sn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Tn(this).formatHsl()},formatRgb:fn,toString:fn}),W(vn,dn,G(Z,{brighter(n){return n=null==n?Q:Math.pow(Q,n),new vn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=null==n?X:Math.pow(X,n),new vn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new vn(Mn(this.r),Mn(this.g),Mn(this.b),xn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yn,formatHex:yn,formatHex8:function(){return`#${wn(this.r)}${wn(this.g)}${wn(this.b)}${wn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bn,toString:bn})),W(Nn,(function(n,t,e,r){return 1===arguments.length?Tn(n):new Nn(n,t,e,null==r?1:r)}),G(Z,{brighter(n){return n=null==n?Q:Math.pow(Q,n),new Nn(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=null==n?X:Math.pow(X,n),new Nn(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+360*(this.h<0),t=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*t,i=2*e-r;return new vn(Sn(n>=240?n-240:n+120,i,r),Sn(n,i,r),Sn(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new Nn(Cn(this.h),kn(this.s),kn(this.l),xn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=xn(this.opacity);return`${1===n?"hsl(":"hsla("}${Cn(this.h)}, ${100*kn(this.s)}%, ${100*kn(this.l)}%${1===n?")":`, ${n})`}`}}));var jn=n=>()=>n;function On(n,t){var e=t-n;return e?function(n,t){return function(e){return n+e*t}}(n,e):jn(isNaN(n)?t:n)}var Un=function n(t){var e=function(n){return 1==(n=+n)?On:function(t,e){return e-t?function(n,t,e){return n=Math.pow(n,e),t=Math.pow(t,e)-n,e=1/e,function(r){return Math.pow(n+r*t,e)}}(t,e,n):jn(isNaN(t)?e:t)}}(t);function r(n,t){var r=e((n=dn(n)).r,(t=dn(t)).r),i=e(n.g,t.g),o=e(n.b,t.b),u=On(n.opacity,t.opacity);return function(t){return n.r=r(t),n.g=i(t),n.b=o(t),n.opacity=u(t),n+""}}return r.gamma=n,r}(1);function $n(n){return function(t){var e,r,i=t.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=dn(t[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=n(o),u=n(u),a=n(a),r.opacity=1,function(n){return r.r=o(n),r.g=u(n),r.b=a(n),r+""}}}function Hn(n,t){var e,r=t?t.length:0,i=n?Math.min(r,n.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=Bn(n[e],t[e]);for(;e<r;++e)u[e]=t[e];return function(n){for(e=0;e<i;++e)u[e]=o[e](n);return u}}function En(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Fn(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function Pn(n,t){var e,r={},i={};for(e in null!==n&&"object"==typeof n||(n={}),null!==t&&"object"==typeof t||(t={}),t)e in n?r[e]=Bn(n[e],t[e]):i[e]=t[e];return function(n){for(e in r)i[e]=r[e](n);return i}}$n((function(n){var t=n.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,t-1):Math.floor(e*t),i=n[r],o=n[r+1],u=r>0?n[r-1]:2*i-o,a=r<t-1?n[r+2]:2*o-i;return An((e-r/t)*t,u,i,o,a)}})),$n((function(n){var t=n.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*t),i=n[(r+t-1)%t],o=n[r%t],u=n[(r+1)%t],a=n[(r+2)%t];return An((e-r/t)*t,i,o,u,a)}}));var Yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ln=new RegExp(Yn.source,"g");function qn(n,t){var e,r,i,o=Yn.lastIndex=Ln.lastIndex=0,u=-1,a=[],c=[];for(n+="",t+="";(e=Yn.exec(n))&&(r=Ln.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:Fn(e,r)})),o=Ln.lastIndex;return o<t.length&&(i=t.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(n){return function(t){return n(t)+""}}(c[0].x):function(n){return function(){return n}}(t):(t=c.length,function(n){for(var e,r=0;r<t;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function Rn(n,t){t||(t=[]);var e,r=n?Math.min(t.length,n.length):0,i=t.slice();return function(o){for(e=0;e<r;++e)i[e]=n[e]*(1-o)+t[e]*o;return i}}function Bn(n,t){var e,r,i=typeof t;return null==t||"boolean"===i?jn(t):("number"===i?Fn:"string"===i?(e=hn(t))?(t=e,Un):qn:t instanceof hn?Un:t instanceof Date?En:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Hn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Pn:Fn:Rn))(n,t)}function In(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function Vn(n){return+n}var _n=[0,1];function zn(n){return n}function Wn(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:(e=isNaN(t)?NaN:.5,function(){return e});var e}function Gn(n,t,e){var r=n[0],i=n[1],o=t[0],u=t[1];return i<r?(r=Wn(i,r),o=e(u,o)):(r=Wn(r,i),o=e(o,u)),function(n){return o(r(n))}}function Zn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),o=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=Wn(n[u],n[u+1]),o[u]=e(t[u],t[u+1]);return function(t){var e=z(n,t,1,r)-1;return o[e](i[e](t))}}function Xn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Qn(){var n,t,e,r,i,o,u=_n,a=_n,c=Bn,l=zn;function s(){var n,t,e,c=Math.min(u.length,a.length);return l!==zn&&(n=u[0],t=u[c-1],n>t&&(e=n,n=t,t=e),l=function(e){return Math.max(n,Math.min(t,e))}),r=c>2?Zn:Gn,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?e:(i||(i=r(u.map(n),a,c)))(n(l(t)))}return f.invert=function(e){return l(t((o||(o=r(a,u.map(n),Fn)))(e)))},f.domain=function(n){return arguments.length?(u=Array.from(n,Vn),s()):u.slice()},f.range=function(n){return arguments.length?(a=Array.from(n),s()):a.slice()},f.rangeRound=function(n){return a=Array.from(n),c=In,s()},f.clamp=function(n){return arguments.length?(l=!!n||zn,s()):l!==zn},f.interpolate=function(n){return arguments.length?(c=n,s()):c},f.unknown=function(n){return arguments.length?(e=n,f):e},function(e,r){return n=e,t=r,s()}}function Jn(){return Qn()(zn,zn)}var Kn,nt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tt(n){if(!(t=nt.exec(n)))throw new Error("invalid format: "+n);var t;return new et({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function et(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function rt(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function it(n){return(n=rt(Math.abs(n)))?n[1]:NaN}function ot(n,t){var e=rt(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}tt.prototype=et.prototype,et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ut={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>ot(100*n,t),r:ot,s:function(n,t){var e=rt(n,t);if(!e)return n+"";var r=e[0],i=e[1],o=i-(Kn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rt(n,Math.max(0,t+o-1))[0]},X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function at(n){return n}var ct,lt,st,ft=Array.prototype.map,ht=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gt(n,t,e,r){var i,o=Y(n,t,e);switch((r=tt(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(t));return null!=r.precision||isNaN(i=function(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(it(t)/3)))-it(Math.abs(n)))}(o,u))||(r.precision=i),st(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,it(t)-it(n))+1}(o,Math.max(Math.abs(n),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(n){return Math.max(0,-it(Math.abs(n)))}(o))||(r.precision=i-2*("%"===r.type))}return lt(r)}function pt(n){var t=n.domain;return n.ticks=function(n){var e=t();return F(e[0],e[e.length-1],null==n?10:n)},n.tickFormat=function(n,e){var r=t();return gt(r[0],r[r.length-1],null==n?10:n,e)},n.nice=function(e){null==e&&(e=10);var r,i,o=t(),u=0,a=o.length-1,c=o[u],l=o[a],s=10;for(l<c&&(i=c,c=l,l=i,i=u,u=a,a=i);s-- >0;){if((i=P(c,l,e))===r)return o[u]=c,o[a]=l,t(o);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return n},n}function mt(){var n=Jn();return n.copy=function(){return Xn(n,mt())},D.apply(n,arguments),pt(n)}function dt(n){var t;function e(n){return null==n||isNaN(n=+n)?t:n}return e.invert=e,e.domain=e.range=function(t){return arguments.length?(n=Array.from(t,Vn),e):n.slice()},e.unknown=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return dt(n).unknown(t)},n=arguments.length?Array.from(n,Vn):[0,1],pt(e)}function vt(n,t){var e,r=0,i=(n=n.slice()).length-1,o=n[r],u=n[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),n[r]=t.floor(o),n[i]=t.ceil(u),n}function yt(n){return Math.log(n)}function bt(n){return Math.exp(n)}function xt(n){return-Math.log(-n)}function Mt(n){return-Math.exp(-n)}function wt(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Dt(n){return(t,e)=>-n(-t,e)}function Tt(n){const t=n(yt,bt),e=t.domain;let r,i,o=10;function u(){return r=function(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}(o),i=function(n){return 10===n?wt:n===Math.E?Math.exp:t=>Math.pow(n,t)}(o),e()[0]<0?(r=Dt(r),i=Dt(i),n(xt,Mt)):n(yt,bt),t}return t.base=function(n){return arguments.length?(o=+n,u()):o},t.domain=function(n){return arguments.length?(e(n),u()):e()},t.ticks=n=>{const t=e();let u=t[0],a=t[t.length-1];const c=a<u;c&&([u,a]=[a,u]);let l,s,f=r(u),h=r(a);const g=null==n?10:+n;let p=[];if(!(o%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),u>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<u)){if(s>a)break;p.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<u)){if(s>a)break;p.push(s)}2*p.length<g&&(p=F(u,a,g))}else p=F(f,h,Math.min(h-f,g)).map(i);return c?p.reverse():p},t.tickFormat=(n,e)=>{if(null==n&&(n=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=tt(e)).precision||(e.trim=!0),e=lt(e)),n===1/0)return e;const u=Math.max(1,o*n/t.ticks().length);return n=>{let t=n/i(Math.round(r(n)));return t*o<o-.5&&(t*=o),t<=u?e(n):""}},t.nice=()=>e(vt(e(),{floor:n=>i(Math.floor(r(n))),ceil:n=>i(Math.ceil(r(n)))})),t}function Nt(){const n=Tt(Qn()).domain([1,10]);return n.copy=()=>Xn(n,Nt()).base(n.base()),D.apply(n,arguments),n}function Ct(n){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/n))}}function kt(n){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*n}}function St(n){var t=1,e=n(Ct(t),kt(t));return e.constant=function(e){return arguments.length?n(Ct(t=+e),kt(t)):t},pt(e)}function At(){var n=St(Qn());return n.copy=function(){return Xn(n,At()).constant(n.constant())},D.apply(n,arguments)}function jt(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function Ot(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function Ut(n){return n<0?-n*n:n*n}function $t(n){var t=n(zn,zn),e=1;function r(){return 1===e?n(zn,zn):.5===e?n(Ot,Ut):n(jt(e),jt(1/e))}return t.exponent=function(n){return arguments.length?(e=+n,r()):e},pt(t)}function Ht(){var n=$t(Qn());return n.copy=function(){return Xn(n,Ht()).exponent(n.exponent())},D.apply(n,arguments),n}function Et(){return Ht.apply(null,arguments).exponent(.5)}function Ft(n){return Math.sign(n)*n*n}function Pt(n){return Math.sign(n)*Math.sqrt(Math.abs(n))}function Yt(){var n,t=Jn(),e=[0,1],r=!1;function i(e){var i=Pt(t(e));return isNaN(i)?n:r?Math.round(i):i}return i.invert=function(n){return t.invert(Ft(n))},i.domain=function(n){return arguments.length?(t.domain(n),i):t.domain()},i.range=function(n){return arguments.length?(t.range((e=Array.from(n,Vn)).map(Ft)),i):e.slice()},i.rangeRound=function(n){return i.range(n).round(!0)},i.round=function(n){return arguments.length?(r=!!n,i):r},i.clamp=function(n){return arguments.length?(t.clamp(n),i):t.clamp()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Yt(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},D.apply(i,arguments),pt(i)}function Lt(n,t){let e;if(void 0===t)for(const t of n)null!=t&&(e<t||void 0===e&&t>=t)&&(e=t);else{let r=-1;for(let i of n)null!=(i=t(i,++r,n))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function qt(n,t){let e;if(void 0===t)for(const t of n)null!=t&&(e>t||void 0===e&&t>=t)&&(e=t);else{let r=-1;for(let i of n)null!=(i=t(i,++r,n))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function Rt(n,t){return(null==n||!(n>=n))-(null==t||!(t>=t))||(n<t?-1:n>t?1:0)}function Bt(n,t,e=0,r=n.length-1,i){for(i=void 0===i?Rt:function(n=L){if(n===L)return Rt;if("function"!=typeof n)throw new TypeError("compare is not a function");return(t,e)=>{const r=n(t,e);return r||0===r?r:(0===n(e,e))-(0===n(t,t))}}(i);r>e;){if(r-e>600){const o=r-e+1,u=t-e+1,a=Math.log(o),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(o-c)/o)*(u-o/2<0?-1:1);Bt(n,t,Math.max(e,Math.floor(t-u*c/o+l)),Math.min(r,Math.floor(t+(o-u)*c/o+l)),i)}const o=n[t];let u=e,a=r;for(It(n,e,t),i(n[r],o)>0&&It(n,e,r);u<a;){for(It(n,u,a),++u,--a;i(n[u],o)<0;)++u;for(;i(n[a],o)>0;)--a}0===i(n[e],o)?It(n,e,a):(++a,It(n,a,r)),a<=t&&(e=a+1),t<=a&&(r=a-1)}return n}function It(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Vt(n,t,e){if(n=Float64Array.from(function*(n,t){if(void 0===t)for(let t of n)null!=t&&(t=+t)>=t&&(yield t);else{let e=-1;for(let r of n)null!=(r=t(r,++e,n))&&(r=+r)>=r&&(yield r)}}(n,e)),r=n.length){if((t=+t)<=0||r<2)return qt(n);if(t>=1)return Lt(n);var r,i=(r-1)*t,o=Math.floor(i),u=Lt(Bt(n,o).subarray(0,o+1));return u+(qt(n.subarray(o+1))-u)*(i-o)}}function _t(n,t,e=I){if(r=n.length){if((t=+t)<=0||r<2)return+e(n[0],0,n);if(t>=1)return+e(n[r-1],r-1,n);var r,i=(r-1)*t,o=Math.floor(i),u=+e(n[o],o,n);return u+(+e(n[o+1],o+1,n)-u)*(i-o)}}function zt(){var n,t=[],e=[],r=[];function i(){var n=0,i=Math.max(1,e.length);for(r=new Array(i-1);++n<i;)r[n-1]=_t(t,n/i);return o}function o(t){return null==t||isNaN(t=+t)?n:e[z(r,t)]}return o.invertExtent=function(n){var i=e.indexOf(n);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(L),i()},o.range=function(n){return arguments.length?(e=Array.from(n),i()):e.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return zt().domain(t).range(e).unknown(n)},D.apply(o,arguments)}function Wt(){var n,t=0,e=1,r=1,i=[.5],o=[0,1];function u(t){return null!=t&&t<=t?o[z(i,t,0,r)]:n}function a(){var n=-1;for(i=new Array(r);++n<r;)i[n]=((n+1)*e-(n-r)*t)/(r+1);return u}return u.domain=function(n){return arguments.length?([t,e]=n,t=+t,e=+e,a()):[t,e]},u.range=function(n){return arguments.length?(r=(o=Array.from(n)).length-1,a()):o.slice()},u.invertExtent=function(n){var u=o.indexOf(n);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=r?[i[r-1],e]:[i[u-1],i[u]]},u.unknown=function(t){return arguments.length?(n=t,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return Wt().domain([t,e]).range(o).unknown(n)},D.apply(pt(u),arguments)}function Gt(){var n,t=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[z(t,i,0,r)]:n}return i.domain=function(n){return arguments.length?(t=Array.from(n),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(n){return arguments.length?(e=Array.from(n),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Gt().domain(t).range(e).unknown(n)},D.apply(i,arguments)}ct=function(n){var t,e,r=void 0===n.grouping||void 0===n.thousands?at:(t=ft.call(n.grouping,Number),e=n.thousands+"",function(n,r){for(var i=n.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(e)}),i=void 0===n.currency?"":n.currency[0]+"",o=void 0===n.currency?"":n.currency[1]+"",u=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?at:function(n){return function(t){return t.replace(/[0-9]/g,(function(t){return n[+t]}))}}(ft.call(n.numerals,String)),c=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"−":n.minus+"",s=void 0===n.nan?"NaN":n.nan+"";function f(n){var t=(n=tt(n)).fill,e=n.align,f=n.sign,h=n.symbol,g=n.zero,p=n.width,m=n.comma,d=n.precision,v=n.trim,y=n.type;"n"===y?(m=!0,y="g"):ut[y]||(void 0===d&&(d=12),v=!0,y="g"),(g||"0"===t&&"="===e)&&(g=!0,t="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?c:"",M=ut[y],w=/[defgprs%]/.test(y);function D(n){var i,o,c,h=b,D=x;if("c"===y)D=M(n)+D,n="";else{var T=(n=+n)<0||1/n<0;if(n=isNaN(n)?s:M(Math.abs(n),d),v&&(n=function(n){n:for(var t,e=n.length,r=1,i=-1;r<e;++r)switch(n[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+n[r])break n;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(t+1):n}(n)),T&&0==+n&&"+"!==f&&(T=!1),h=(T?"("===f?f:l:"-"===f||"("===f?"":f)+h,D=("s"===y?ht[8+Kn/3]:"")+D+(T&&"("===f?")":""),w)for(i=-1,o=n.length;++i<o;)if(48>(c=n.charCodeAt(i))||c>57){D=(46===c?u+n.slice(i+1):n.slice(i))+D,n=n.slice(0,i);break}}m&&!g&&(n=r(n,1/0));var N=h.length+n.length+D.length,C=N<p?new Array(p-N+1).join(t):"";switch(m&&g&&(n=r(C+n,C.length?p-D.length:1/0),C=""),e){case"<":n=h+n+D+C;break;case"=":n=h+C+n+D;break;case"^":n=C.slice(0,N=C.length>>1)+h+n+D+C.slice(N);break;default:n=C+h+n+D}return a(n)}return d=void 0===d?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),D.toString=function(){return n+""},D}return{format:f,formatPrefix:function(n,t){var e=f(((n=tt(n)).type="f",n)),r=3*Math.max(-8,Math.min(8,Math.floor(it(t)/3))),i=Math.pow(10,-r),o=ht[8+r/3];return function(n){return e(i*n)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),lt=ct.format,st=ct.formatPrefix;const Zt=1e3,Xt=6e4,Qt=36e5,Jt=864e5,Kt=6048e5,ne=31536e6;var te=new Date,ee=new Date;function re(n,t,e,r){function i(t){return n(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return n(t=new Date(+t)),t},i.ceil=function(e){return n(e=new Date(e-1)),t(e,1),n(e),e},i.round=function(n){var t=i(n),e=i.ceil(n);return n-t<e-n?t:e},i.offset=function(n,e){return t(n=new Date(+n),null==e?1:Math.floor(e)),n},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),t(e,o),n(e)}while(u<e&&e<r);return a},i.filter=function(e){return re((function(t){if(t>=t)for(;n(t),!e(t);)t.setTime(t-1)}),(function(n,r){if(n>=n)if(r<0)for(;++r<=0;)for(;t(n,-1),!e(n););else for(;--r>=0;)for(;t(n,1),!e(n););}))},e&&(i.count=function(t,r){return te.setTime(+t),ee.setTime(+r),n(te),n(ee),Math.floor(e(te,ee))},i.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?i.filter(r?function(t){return r(t)%n==0}:function(t){return i.count(0,t)%n==0}):i:null}),i}var ie=re((function(){}),(function(n,t){n.setTime(+n+t)}),(function(n,t){return t-n}));ie.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?re((function(t){t.setTime(Math.floor(t/n)*n)}),(function(t,e){t.setTime(+t+e*n)}),(function(t,e){return(e-t)/n})):ie:null};var oe=ie,ue=(ie.range,re((function(n){n.setTime(n-n.getMilliseconds())}),(function(n,t){n.setTime(+n+t*Zt)}),(function(n,t){return(t-n)/Zt}),(function(n){return n.getUTCSeconds()}))),ae=ue,ce=(ue.range,re((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Zt)}),(function(n,t){n.setTime(+n+t*Xt)}),(function(n,t){return(t-n)/Xt}),(function(n){return n.getMinutes()}))),le=ce,se=(ce.range,re((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Zt-n.getMinutes()*Xt)}),(function(n,t){n.setTime(+n+t*Qt)}),(function(n,t){return(t-n)/Qt}),(function(n){return n.getHours()}))),fe=se,he=(se.range,re((n=>n.setHours(0,0,0,0)),((n,t)=>n.setDate(n.getDate()+t)),((n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*Xt)/Jt),(n=>n.getDate()-1))),ge=he;function pe(n){return re((function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+7*t)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*Xt)/Kt}))}he.range;var me=pe(0),de=pe(1),ve=pe(2),ye=pe(3),be=pe(4),xe=pe(5),Me=pe(6),we=(me.range,de.range,ve.range,ye.range,be.range,xe.range,Me.range,re((function(n){n.setDate(1),n.setHours(0,0,0,0)}),(function(n,t){n.setMonth(n.getMonth()+t)}),(function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())}),(function(n){return n.getMonth()}))),De=we,Te=(we.range,re((function(n){n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n,t){return t.getFullYear()-n.getFullYear()}),(function(n){return n.getFullYear()})));Te.every=function(n){return isFinite(n=Math.floor(n))&&n>0?re((function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e*n)})):null};var Ne=Te,Ce=(Te.range,re((function(n){n.setUTCSeconds(0,0)}),(function(n,t){n.setTime(+n+t*Xt)}),(function(n,t){return(t-n)/Xt}),(function(n){return n.getUTCMinutes()}))),ke=Ce,Se=(Ce.range,re((function(n){n.setUTCMinutes(0,0,0)}),(function(n,t){n.setTime(+n+t*Qt)}),(function(n,t){return(t-n)/Qt}),(function(n){return n.getUTCHours()}))),Ae=Se,je=(Se.range,re((function(n){n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+t)}),(function(n,t){return(t-n)/Jt}),(function(n){return n.getUTCDate()-1}))),Oe=je;function Ue(n){return re((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+7*t)}),(function(n,t){return(t-n)/Kt}))}je.range;var $e=Ue(0),He=Ue(1),Ee=Ue(2),Fe=Ue(3),Pe=Ue(4),Ye=Ue(5),Le=Ue(6),qe=($e.range,He.range,Ee.range,Fe.range,Pe.range,Ye.range,Le.range,re((function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCMonth(n.getUTCMonth()+t)}),(function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())}),(function(n){return n.getUTCMonth()}))),Re=qe,Be=(qe.range,re((function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)}),(function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()}),(function(n){return n.getUTCFullYear()})));Be.every=function(n){return isFinite(n=Math.floor(n))&&n>0?re((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})):null};var Ie=Be;function Ve(n,t,e,r,i,o){const u=[[ae,1,Zt],[ae,5,5e3],[ae,15,15e3],[ae,30,3e4],[o,1,Xt],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Qt],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Jt],[r,2,1728e5],[e,1,Kt],[t,1,2592e6],[t,3,7776e6],[n,1,ne]];function a(t,e,r){const i=Math.abs(e-t)/r,o=R((([,,n])=>n)).right(u,i);if(o===u.length)return n.every(Y(t/ne,e/ne,r));if(0===o)return oe.every(Math.max(Y(t,e,r),1));const[a,c]=u[i/u[o-1][2]<u[o][2]/i?o-1:o];return a.every(c)}return[function(n,t,e){const r=t<n;r&&([n,t]=[t,n]);const i=e&&"function"==typeof e.range?e:a(n,t,e),o=i?i.range(n,+t+1):[];return r?o.reverse():o},a]}Be.range;const[_e,ze]=Ve(Ie,Re,$e,Oe,Ae,ke),[We,Ge]=Ve(Ne,De,me,ge,fe,le);function Ze(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Xe(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Qe(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}var Je,Ke,nr,tr={"-":"",_:" ",0:"0"},er=/^\s*\d+/,rr=/^%/,ir=/[\\^$*+?|[\]().{}]/g;function or(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(t)+i:i)}function ur(n){return n.replace(ir,"\\$&")}function ar(n){return new RegExp("^(?:"+n.map(ur).join("|")+")","i")}function cr(n){return new Map(n.map(((n,t)=>[n.toLowerCase(),t])))}function lr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function sr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function fr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function hr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function gr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function pr(n,t,e){var r=er.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function mr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function dr(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function vr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.q=3*r[0]-3,e+r[0].length):-1}function yr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function br(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function xr(n,t,e){var r=er.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function Mr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function wr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function Dr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function Tr(n,t,e){var r=er.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function Nr(n,t,e){var r=er.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Cr(n,t,e){var r=rr.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function kr(n,t,e){var r=er.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function Sr(n,t,e){var r=er.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function Ar(n,t){return or(n.getDate(),t,2)}function jr(n,t){return or(n.getHours(),t,2)}function Or(n,t){return or(n.getHours()%12||12,t,2)}function Ur(n,t){return or(1+ge.count(Ne(n),n),t,3)}function $r(n,t){return or(n.getMilliseconds(),t,3)}function Hr(n,t){return $r(n,t)+"000"}function Er(n,t){return or(n.getMonth()+1,t,2)}function Fr(n,t){return or(n.getMinutes(),t,2)}function Pr(n,t){return or(n.getSeconds(),t,2)}function Yr(n){var t=n.getDay();return 0===t?7:t}function Lr(n,t){return or(me.count(Ne(n)-1,n),t,2)}function qr(n){var t=n.getDay();return t>=4||0===t?be(n):be.ceil(n)}function Rr(n,t){return n=qr(n),or(be.count(Ne(n),n)+(4===Ne(n).getDay()),t,2)}function Br(n){return n.getDay()}function Ir(n,t){return or(de.count(Ne(n)-1,n),t,2)}function Vr(n,t){return or(n.getFullYear()%100,t,2)}function _r(n,t){return or((n=qr(n)).getFullYear()%100,t,2)}function zr(n,t){return or(n.getFullYear()%1e4,t,4)}function Wr(n,t){var e=n.getDay();return or((n=e>=4||0===e?be(n):be.ceil(n)).getFullYear()%1e4,t,4)}function Gr(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+or(t/60|0,"0",2)+or(t%60,"0",2)}function Zr(n,t){return or(n.getUTCDate(),t,2)}function Xr(n,t){return or(n.getUTCHours(),t,2)}function Qr(n,t){return or(n.getUTCHours()%12||12,t,2)}function Jr(n,t){return or(1+Oe.count(Ie(n),n),t,3)}function Kr(n,t){return or(n.getUTCMilliseconds(),t,3)}function ni(n,t){return Kr(n,t)+"000"}function ti(n,t){return or(n.getUTCMonth()+1,t,2)}function ei(n,t){return or(n.getUTCMinutes(),t,2)}function ri(n,t){return or(n.getUTCSeconds(),t,2)}function ii(n){var t=n.getUTCDay();return 0===t?7:t}function oi(n,t){return or($e.count(Ie(n)-1,n),t,2)}function ui(n){var t=n.getUTCDay();return t>=4||0===t?Pe(n):Pe.ceil(n)}function ai(n,t){return n=ui(n),or(Pe.count(Ie(n),n)+(4===Ie(n).getUTCDay()),t,2)}function ci(n){return n.getUTCDay()}function li(n,t){return or(He.count(Ie(n)-1,n),t,2)}function si(n,t){return or(n.getUTCFullYear()%100,t,2)}function fi(n,t){return or((n=ui(n)).getUTCFullYear()%100,t,2)}function hi(n,t){return or(n.getUTCFullYear()%1e4,t,4)}function gi(n,t){var e=n.getUTCDay();return or((n=e>=4||0===e?Pe(n):Pe.ceil(n)).getUTCFullYear()%1e4,t,4)}function pi(){return"+0000"}function mi(){return"%"}function di(n){return+n}function vi(n){return Math.floor(+n/1e3)}function yi(n){return new Date(n)}function bi(n){return n instanceof Date?+n:+new Date(+n)}function xi(n,t,e,r,i,o,u,a,c,l){var s=Jn(),f=s.invert,h=s.domain,g=l(".%L"),p=l(":%S"),m=l("%I:%M"),d=l("%I %p"),v=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function M(n){return(c(n)<n?g:a(n)<n?p:u(n)<n?m:o(n)<n?d:r(n)<n?i(n)<n?v:y:e(n)<n?b:x)(n)}return s.invert=function(n){return new Date(f(n))},s.domain=function(n){return arguments.length?h(Array.from(n,bi)):h().map(yi)},s.ticks=function(t){var e=h();return n(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(n,t){return null==t?M:l(t)},s.nice=function(n){var e=h();return n&&"function"==typeof n.range||(n=t(e[0],e[e.length-1],null==n?10:n)),n?h(vt(e,n)):s},s.copy=function(){return Xn(s,xi(n,t,e,r,i,o,u,a,c,l))},s}function Mi(){return D.apply(xi(We,Ge,Ne,De,me,ge,fe,le,ae,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wi(){return D.apply(xi(_e,ze,Ie,Re,$e,Oe,Ae,ke,ae,nr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var n,t,e,r,i,o=0,u=1,a=zn,c=!1;function l(t){return null==t||isNaN(t=+t)?i:a(0===e?.5:(t=(r(t)-n)*e,c?Math.max(0,Math.min(1,t)):t))}function s(n){return function(t){var e,r;return arguments.length?([e,r]=t,a=n(e,r),l):[a(0),a(1)]}}return l.domain=function(i){return arguments.length?([o,u]=i,n=r(o=+o),t=r(u=+u),e=n===t?0:1/(t-n),l):[o,u]},l.clamp=function(n){return arguments.length?(c=!!n,l):c},l.interpolator=function(n){return arguments.length?(a=n,l):a},l.range=s(Bn),l.rangeRound=s(In),l.unknown=function(n){return arguments.length?(i=n,l):i},function(i){return r=i,n=i(o),t=i(u),e=n===t?0:1/(t-n),l}}function Ti(n,t){return t.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Ni(){var n=pt(Di()(zn));return n.copy=function(){return Ti(n,Ni())},T.apply(n,arguments)}function Ci(){var n=Tt(Di()).domain([1,10]);return n.copy=function(){return Ti(n,Ci()).base(n.base())},T.apply(n,arguments)}function ki(){var n=St(Di());return n.copy=function(){return Ti(n,ki()).constant(n.constant())},T.apply(n,arguments)}function Si(){var n=$t(Di());return n.copy=function(){return Ti(n,Si()).exponent(n.exponent())},T.apply(n,arguments)}function Ai(){return Si.apply(null,arguments).exponent(.5)}function ji(){var n=[],t=zn;function e(e){if(null!=e&&!isNaN(e=+e))return t((z(n,e,1)-1)/(n.length-1))}return e.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(L),e},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.range=function(){return n.map(((e,r)=>t(r/(n.length-1))))},e.quantiles=function(t){return Array.from({length:t+1},((e,r)=>Vt(n,r/t)))},e.copy=function(){return ji(t).domain(n)},T.apply(e,arguments)}function Oi(n,t){void 0===t&&(t=n,n=Bn);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);e<r;)o[e]=n(i,i=t[++e]);return function(n){var t=Math.max(0,Math.min(r-1,Math.floor(n*=r)));return o[t](n-t)}}function Ui(){var n,t,e,r,i,o,u,a=0,c=.5,l=1,s=1,f=zn,h=!1;function g(n){return isNaN(n=+n)?u:(n=.5+((n=+o(n))-t)*(s*n<s*t?r:i),f(h?Math.max(0,Math.min(1,n)):n))}function p(n){return function(t){var e,r,i;return arguments.length?([e,r,i]=t,f=Oi(n,[e,r,i]),g):[f(0),f(.5),f(1)]}}return g.domain=function(u){return arguments.length?([a,c,l]=u,n=o(a=+a),t=o(c=+c),e=o(l=+l),r=n===t?0:.5/(t-n),i=t===e?0:.5/(e-t),s=t<n?-1:1,g):[a,c,l]},g.clamp=function(n){return arguments.length?(h=!!n,g):h},g.interpolator=function(n){return arguments.length?(f=n,g):f},g.range=p(Bn),g.rangeRound=p(In),g.unknown=function(n){return arguments.length?(u=n,g):u},function(u){return o=u,n=u(a),t=u(c),e=u(l),r=n===t?0:.5/(t-n),i=t===e?0:.5/(e-t),s=t<n?-1:1,g}}function $i(){var n=pt(Ui()(zn));return n.copy=function(){return Ti(n,$i())},T.apply(n,arguments)}function Hi(){var n=Tt(Ui()).domain([.1,1,10]);return n.copy=function(){return Ti(n,Hi()).base(n.base())},T.apply(n,arguments)}function Ei(){var n=St(Ui());return n.copy=function(){return Ti(n,Ei()).constant(n.constant())},T.apply(n,arguments)}function Fi(){var n=$t(Ui());return n.copy=function(){return Ti(n,Fi()).exponent(n.exponent())},T.apply(n,arguments)}function Pi(){return Fi.apply(null,arguments).exponent(.5)}Je=function(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,u=n.shortDays,a=n.months,c=n.shortMonths,l=ar(i),s=cr(i),f=ar(o),h=cr(o),g=ar(u),p=cr(u),m=ar(a),d=cr(a),v=ar(c),y=cr(c),b={a:function(n){return u[n.getDay()]},A:function(n){return o[n.getDay()]},b:function(n){return c[n.getMonth()]},B:function(n){return a[n.getMonth()]},c:null,d:Ar,e:Ar,f:Hr,g:_r,G:Wr,H:jr,I:Or,j:Ur,L:$r,m:Er,M:Fr,p:function(n){return i[+(n.getHours()>=12)]},q:function(n){return 1+~~(n.getMonth()/3)},Q:di,s:vi,S:Pr,u:Yr,U:Lr,V:Rr,w:Br,W:Ir,x:null,X:null,y:Vr,Y:zr,Z:Gr,"%":mi},x={a:function(n){return u[n.getUTCDay()]},A:function(n){return o[n.getUTCDay()]},b:function(n){return c[n.getUTCMonth()]},B:function(n){return a[n.getUTCMonth()]},c:null,d:Zr,e:Zr,f:ni,g:fi,G:gi,H:Xr,I:Qr,j:Jr,L:Kr,m:ti,M:ei,p:function(n){return i[+(n.getUTCHours()>=12)]},q:function(n){return 1+~~(n.getUTCMonth()/3)},Q:di,s:vi,S:ri,u:ii,U:oi,V:ai,w:ci,W:li,x:null,X:null,y:si,Y:hi,Z:pi,"%":mi},M={a:function(n,t,e){var r=g.exec(t.slice(e));return r?(n.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(n,t,e){var r=f.exec(t.slice(e));return r?(n.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(n,t,e){var r=v.exec(t.slice(e));return r?(n.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(n,t,e){var r=m.exec(t.slice(e));return r?(n.m=d.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(n,e,r){return T(n,t,e,r)},d:br,e:br,f:Nr,g:mr,G:pr,H:Mr,I:Mr,j:xr,L:Tr,m:yr,M:wr,p:function(n,t,e){var r=l.exec(t.slice(e));return r?(n.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:vr,Q:kr,s:Sr,S:Dr,u:sr,U:fr,V:hr,w:lr,W:gr,x:function(n,t,r){return T(n,e,t,r)},X:function(n,t,e){return T(n,r,t,e)},y:mr,Y:pr,Z:dr,"%":Cr};function w(n,t){return function(e){var r,i,o,u=[],a=-1,c=0,l=n.length;for(e instanceof Date||(e=new Date(+e));++a<l;)37===n.charCodeAt(a)&&(u.push(n.slice(c,a)),null!=(i=tr[r=n.charAt(++a)])?r=n.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(n.slice(c,a)),u.join("")}}function D(n,t){return function(e){var r,i,o=Qe(1900,void 0,1);if(T(o,n,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Xe(Qe(o.y,0,1))).getUTCDay(),r=i>4||0===i?He.ceil(r):He(r),r=Oe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ze(Qe(o.y,0,1))).getDay(),r=i>4||0===i?de.ceil(r):de(r),r=ge.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Xe(Qe(o.y,0,1)).getUTCDay():Ze(Qe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Xe(o)):Ze(o)}}function T(n,t,e,r){for(var i,o,u=0,a=t.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=t.charCodeAt(u++))){if(i=t.charAt(u++),!(o=M[i in tr?t.charAt(u++):i])||(r=o(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(t,b),x.x=w(e,x),x.X=w(r,x),x.c=w(t,x),{format:function(n){var t=w(n+="",b);return t.toString=function(){return n},t},parse:function(n){var t=D(n+="",!1);return t.toString=function(){return n},t},utcFormat:function(n){var t=w(n+="",x);return t.toString=function(){return n},t},utcParse:function(n){var t=D(n+="",!0);return t.toString=function(){return n},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ke=Je.format,Je.parse,nr=Je.utcFormat,Je.utcParse;const Yi=["linear","time","log","sqrt"];function Li(n){return"function"==typeof n?y(n.copy)&&y(n.domain)&&y(n.range):"string"==typeof n&&Yi.includes(n)}function qi(t){if(Li(t)){const r=`scale${e=t,e&&e[0].toUpperCase()+e.slice(1)}`;return n[r]()}var e;return mt()}function Ri(n,t){const e=function(n,t){if(!function(n,t){return!(!n.scale||(n.scale.x||n.scale.y)&&!n.scale[t])}(n,t))return;const e=n.scale[t]||n.scale;return Li(e)?y(e)?e:qi(e):void 0}(n,t);return e?"string"==typeof e?qi(e):e:qi(function(n,t){let e;if(n.domain&&n.domain[t]?e=n.domain[t]:n.domain&&Array.isArray(n.domain)&&(e=n.domain),e)return b(e)?"time":"linear"}(n,t)||function(n,t){if(!n.data)return"linear";const e=y(r=n[t])?r:null==r?n=>n:h()(r);var r;return b(n.data.map((n=>{const r=s()(e(n))?e(n)[t]:e(n);return void 0!==r?r:n[t]})))?"time":"linear"}(n,t))}var Bi=r(4295),Ii=r.n(Bi);function Vi(n,t){const e=function(n,t){return s()(n.minDomain)&&void 0!==n.minDomain[t]?n.minDomain[t]:"number"==typeof n.minDomain||Ii()(n.minDomain)?n.minDomain:void 0}(n,t),r=function(n,t){return s()(n.maxDomain)&&void 0!==n.maxDomain[t]?n.maxDomain[t]:"number"==typeof n.maxDomain||Ii()(n.maxDomain)?n.maxDomain:void 0}(n,t);return s()(n.domain)&&n.domain[t]?n.domain[t]:Array.isArray(n.domain)?n.domain:void 0!==e&&void 0!==r?function(n,t){return Number(n)===Number(t)?(n=>{const t=0===n?2*Math.pow(10,-10):Math.pow(10,-10),e=n instanceof Date?new Date(Number(n)-1):Number(n)-t,r=n instanceof Date?new Date(Number(n)+1):Number(n)+t;return 0===n?[0,r]:[e,r]})(t):[n,t]}(e,r):void 0}function _i(){return _i=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},_i.apply(this,arguments)}r(2829);const zi=(0,a.forwardRef)(((n,t)=>{const{desc:e,id:r,tabIndex:i,origin:o,...u}=n,a={vectorEffect:"non-scaling-stroke",id:p(r,n)?.toString(),tabIndex:p(i,n),...u};return e?c().createElement("rect",_i({},a,{ref:t}),c().createElement("desc",null,e)):c().createElement("rect",_i({},a,{ref:t}))})),Wi={rectComponent:c().createElement(zi,null),role:"presentation",shapeRendering:"auto"},Gi=n=>{const t=(n=>{const t=p(n.ariaLabel,n),e=p(n.desc,n),r=p(n.id,n),i=m(Object.assign({fill:"none"},n.style),n),o=p(n.tabIndex,n);return Object.assign({},n,{ariaLabel:t,desc:e,id:r,style:i,tabIndex:o})})({...Wi,...n});return c().cloneElement(t.rectComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath})};function Zi(){return Zi=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Zi.apply(this,arguments)}const Xi=(0,a.forwardRef)(((n,t)=>{const{desc:e,id:r,tabIndex:i,origin:o,...u}=n,a={vectorEffect:"non-scaling-stroke",id:p(r,n)?.toString(),tabIndex:p(i,n),...u};return e?c().createElement("line",Zi({},a,{ref:t}),c().createElement("desc",null,e)):c().createElement("line",Zi({},a,{ref:t}))})),Qi={lineComponent:c().createElement(Xi,null),role:"presentation",shapeRendering:"auto"},Ji=n=>{const t=(n=>{const t=p(n.ariaLabel,n),e=p(n.desc,n),r=p(n.id,n),i=m(Object.assign({stroke:"black"},n.style),n),o=p(n.tabIndex,n);return Object.assign({},n,{ariaLabel:t,desc:e,id:r,style:i,tabIndex:o})})({...Qi,...n});return c().cloneElement(t.lineComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath})};function Ki(n,t,e){const{a:r,d:i,e:o,f:u}=t;return"y"===e?i*n+u:r*n+o}function no(n){return!(!n||void 0===n.identifier)}function to(n){if(no(n.nativeEvent))return;const t=n=>"svg"===n.nodeName?n:n.parentNode?t(n.parentNode):n;return t(n.target)}function eo(n,t){if(no(n.nativeEvent))return{x:n.nativeEvent.locationX,y:n.nativeEvent.locationY};const e=function(n){return n.changedTouches&&n.changedTouches.length>0}(n)?n.changedTouches[0]:n,r=function(n){return n.getScreenCTM().inverse()}(t||to(e));return{x:Ki(e.clientX,r,"x"),y:Ki(e.clientY,r,"y")}}var ro=r(7491),io=r.n(ro);const oo=1/Number.MAX_SAFE_INTEGER,uo=n=>{const{scale:t={},dimension:e="x"}=n;if(t[e])return t[e];const r=Ri(n,e),i=function(n,t){return n.range&&n.range[t]?n.range[t]:n.range&&Array.isArray(n.range)?n.range:n.polar?function(n,t){return"x"===t?[d(n.startAngle||0),d(n.endAngle||360)]:[n.innerRadius||0,v(n)]}(n,t):function(n,t){const e="x"!==t,r=g(n);return e?[n.height-r.bottom,r.top]:[r.left,n.width-r.right]}(n,t)}(n,e),o=Vi(n,e)||[0,1];return r.range(i).domain(o),r},ao=n=>{const{horizontal:t,dimension:e="x"}=n;return t?"x"===e?"y":"x":e},co=(n,t)=>{const e=uo(n);return[e(Math.min(...t)),e(Math.max(...t))]},lo=(n,t)=>{const e=uo(n);return[e.invert(Math.min(...t)),e.invert(Math.max(...t))]},so=n=>uo(n).range(),fo=n=>uo(n).domain(),ho=(n,t)=>n>=M(t)&&n<=x(t),go=(n,t)=>{if(n){const e=M(n),r=x(n),i=M(t),o=x(t),u=e<i?i:Number(o)-oo,a=r>o?o:Number(i)+oo;return[ho(e,t)?e:u,ho(r,t)?r:a]}return t},po=(n,t,e)=>{const r=n.handleWidth/2,i=ao(n),o=["min","max"].reduce(((n,o)=>(n[o]=ho(t,(n=>{const t={min:"x"===i?Math.min(...e):Math.max(...e),max:"x"===i?Math.max(...e):Math.min(...e)};return[t[n]-r,t[n]+r]})(o))?o:void 0,n)),{});return o.min&&o.max?"both":o.min||o.max},mo={stroke:"none",fill:"black",opacity:n=>{let{active:t}=n;return t?.2:.1}},vo={pointerEvents:"none",stroke:"none",fill:"black",opacity:n=>{let{active:t}=n;return t?.4:.3}},yo={pointerEvents:"none",stroke:"none",fill:"none"};class bo extends c().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:c().createElement(Gi,null),brushComponent:c().createElement(Gi,null),groupComponent:c().createElement("g",null),handleComponent:c().createElement(Gi,null),handleWidth:10,lineComponent:c().createElement(Ji,null),width:10};static defaultEvents=function(n){return n.disable?void 0:[{target:n.type,eventHandlers:{onMouseEnter:(n,t)=>{n.preventDefault();const{allowResize:e,brushDomain:r}=t,i=ao(t),o=t.parentSVG||to(n),u=eo(n,o)[i],a=fo(t),c=go(r,a),l=co(t,c),s=e&&po(t,u,l),f={brushArea:!t.brushDomain,brush:ho(u,l)&&!io()(a,c),minHandle:"min"===s||"both"===s,maxHandle:"min"===s||"both"===s};return[{mutation:()=>({activeBrushes:f,brushDomain:t.brushDomain,parentSVG:o})}]},onMouseDown:(n,t)=>{n.preventDefault();const{allowResize:e,allowDrag:r,allowDraw:i,activeBrushes:o,brushDomain:u}=t,a=ao(t);if(!e&&!r)return[];const c=fo(t),l=go(u,c),s=t.parentSVG||to(n),f=eo(n,s)[a],h=co(t,l),g=e&&po(t,f,h);return g?[{mutation:()=>({parentSVG:s,isSelecting:!0,activeHandle:g,brushDomain:l,startPosition:f,activeBrushes:o})}]:ho(f,h)&&!io()(c,l)?[{mutation:()=>({isPanning:r,startPosition:f,brushDomain:l,activeBrushes:o,parentSVG:s})}]:i?[{mutation:()=>({isSelecting:e,brushDomain:null,startPosition:f,activeBrushes:o,parentSVG:s})}]:[]},onMouseMove:(n,t)=>{const{isPanning:e,isSelecting:r,allowResize:i,allowDrag:o,onBrushDomainChange:a,brushDomain:c}=t,l=ao(t);(e||r)&&(n.preventDefault(),n.stopPropagation());const s=t.parentSVG||to(n),f=eo(n,s)[l],h=fo(t),g=go(c,h),p=co(t,g),m=po(t,f,p),d={brushArea:!t.brushDomain,brush:ho(f,p)&&!io()(h,g),minHandle:"min"===m||"both"===m,maxHandle:"max"===m||"both"===m};if(!t.isPanning&&!t.isSelecting)return[{mutation:()=>({activeBrushes:d,brushDomain:t.brushDomain,parentSVG:s})}];if(o&&e){const n=so(t),e=((n,t)=>{const{brushDomain:e,startPosition:r}=n,i=co(n,e),o=so(n),u=Math.abs(i[1]-i[0]),a=Math.min(...o),c=Math.max(...o),l=r?r-t:0,s=Math.min(...i)-l,f=Math.max(...i)-l;return[s>c-u?c-u:Math.max(s,a),f<a+u?a+u:Math.min(f,c)]})(t,f),r=lo(t,e),i={startPosition:Math.max(...e)>=Math.max(...n)||Math.min(...e)<=Math.min(...n)?t.startPosition:f,isPanning:!0,brushDomain:r,activeBrushes:{brush:!0},parentSVG:s};return y(a)&&a(r,u()({},i,t)),[{mutation:()=>i}]}if(i&&r){let n=c||[0,oo];const e=co(t,n),i="min"===t.activeHandle?"max":"min",o=t.activeHandle&&"both"===po(t,f,e)?i:t.activeHandle;if(o){const r="x"===l?Math.max(...e):Math.min(...e),i="x"===l?Math.min(...e):Math.max(...e);n=lo(t,["max"===o?i:f,"min"===o?r:f])}else n=lo(t,[t.startPosition,f]);const h={brushDomain:n,startPosition:t.startPosition,isSelecting:r,activeHandle:o,parentSVG:s,activeBrushes:{brush:!0,minHandle:"min"===m,maxHandle:"max"===m}};return y(a)&&a(n,u()({},h,t)),[{mutation:()=>h}]}return[]},onMouseUp:(n,t)=>{const{onBrushDomainChange:e,brushDomain:r,allowResize:i,activeBrushes:o}=t,a={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:o};return i&&y(e)&&e(r,u()({},a,t)),[{mutation:()=>a}]},onMouseLeave:(n,t)=>{const{brushDomain:e}=t;return[{mutation:()=>({isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:e,activeBrushes:{}})}]}}}]};getRectDimensions(n,t,e){const{brushDomain:r}=n,i=ao(n),o=co(n,e||go(r,fo(n))),u="x"===i?{y1:n.y1,y2:n.y2,x1:Math.min(...o),x2:Math.max(...o)}:{x1:n.x1,x2:n.x2,y1:Math.min(...o),y2:Math.max(...o)},{x1:a,x2:c,y1:l,y2:s}=u,f="x"===i?0:t/2,h="y"===i?0:t/2,g=Math.min(a,c)-f,p=Math.min(l,s)-h;return{x:g,y:p,width:Math.max(a,c)+f-g,height:Math.max(l,s)+h-p}}getHandleDimensions(n){const{handleWidth:t,x1:e,x2:r,y1:i,y2:o,brushDomain:u}=n,a=ao(n),c=n.brushWidth||n.width,l=go(u,fo(n)),s=co(n,l),f=Math.min(e,r)-c/2,h=Math.min(i,o)-c/2,g={min:"x"===a?Math.min(...s)-t/2:f,max:"x"===a?Math.max(...s)-t/2:f},p={min:"y"===a?Math.max(...s)-t/2:h,max:"y"===a?Math.min(...s)-t/2:h},m="x"===a?t:c,d="x"===a?c:t;return{min:{x:g.min,y:p.min,width:m,height:d},max:{x:g.max,y:p.max,width:m,height:d}}}getCursor(n){const{activeBrushes:t={}}=n,e=ao(n);return t.minHandle||t.maxHandle?"x"===e?"ew-resize":"ns-resize":t.brush?"move":"crosshair"}renderHandles(n){const{handleComponent:t,handleStyle:e,id:r,brushDomain:i,datum:o={},activeBrushes:u={}}=n;if(!i)return null;const a=this.getHandleDimensions(n),l=Object.assign({},yo,e),s=Object.assign({handleValue:M(i)},o),f=Object.assign({handleValue:x(i)},o),h=Object.assign({key:`${r}-min`,style:m(l,{datum:s,active:u.minHandle})},a.min),g=Object.assign({key:`${r}-max`,style:m(l,{datum:f,active:u.maxHandle})},a.max);return[c().cloneElement(t,h),c().cloneElement(t,g)]}renderBrush(n){const{brushComponent:t,brushStyle:e,activeBrushes:r={},datum:i={},brushDomain:o}=n;if(!o)return null;const u=n.brushWidth||n.width,a=this.getRectDimensions(n,u),l=m(Object.assign({},vo,e),{datum:i,active:r.brush}),s=Object.assign({style:l},a);return c().cloneElement(t,s)}renderBrushArea(n){const{brushAreaComponent:t,brushAreaStyle:e,activeBrushes:r={},datum:i={}}=n,o=n.brushAreaWidth||n.width,u=this.getCursor(n),a=this.getRectDimensions(n,o,fo(n)),l=m(Object.assign({cursor:u},mo,e),{datum:i,active:r.brushArea}),s=Object.assign({style:l},a);return c().cloneElement(t,s)}renderLine(n){const t=e()(n,["x1","x2","y1","y2","datum","scale","active","style"]);return c().cloneElement(n.lineComponent,t)}render(){return c().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}}(),i}()}));
1
+ !function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.VictoryBrushLine=t(require("react")):n.VictoryBrushLine=t(n.React)}(self,(function(n){return function(){var t={2596:function(n,t,e){var r=e(2373).Symbol;n.exports=r},6082:function(n){n.exports=function(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}},8644:function(n){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}},9559:function(n){n.exports=function(n,t){for(var e=-1,r=t.length,i=n.length;++e<r;)n[i+e]=t[e];return n}},4132:function(n,t,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;n.exports=function(n,t,e){var u=n[t];o.call(n,t)&&i(u,e)&&(void 0!==e||t in n)||r(n,t,e)}},8347:function(n,t,e){var r=e(5525);n.exports=function(n,t,e){"__proto__"==t&&r?r(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}},6457:function(n,t,e){var r=e(9559),i=e(3608);n.exports=function n(t,e,o,u,a){var c=-1,l=t.length;for(o||(o=i),a||(a=[]);++c<l;){var s=t[c];e>0&&o(s)?e>1?n(s,e-1,o,u,a):r(a,s):u||(a[a.length]=s)}return a}},4432:function(n,t,e){var r=e(9026),i=e(3110);n.exports=function(n,t){for(var e=0,o=(t=r(t,n)).length;null!=n&&e<o;)n=n[i(t[e++])];return e&&e==o?n:void 0}},563:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},6776:function(n){n.exports=function(n,t){return null!=n&&t in Object(n)}},7537:function(n,t,e){var r=e(563),i=e(3474);n.exports=function(n){return i(n)&&"[object Date]"==r(n)}},5436:function(n,t,e){var r=e(6371),i=e(5066);n.exports=function(n,t){return r(n,t,(function(t,e){return i(n,e)}))}},6371:function(n,t,e){var r=e(4432),i=e(6539),o=e(9026);n.exports=function(n,t,e){for(var u=-1,a=t.length,c={};++u<a;){var l=t[u],s=r(n,l);e(s,l)&&i(c,o(l,n),s)}return c}},1600:function(n){n.exports=function(n){return function(t){return null==t?void 0:t[n]}}},3301:function(n,t,e){var r=e(4432);n.exports=function(n){return function(t){return r(t,n)}}},6317:function(n,t,e){var r=e(5346),i=e(4280),o=e(201);n.exports=function(n,t){return o(i(n,t,r),n+"")}},6539:function(n,t,e){var r=e(4132),i=e(9026),o=e(9099),u=e(7709),a=e(3110);n.exports=function(n,t,e,c){if(!u(n))return n;for(var l=-1,s=(t=i(t,n)).length,f=s-1,h=n;null!=h&&++l<s;){var g=a(t[l]),p=e;if("__proto__"===g||"constructor"===g||"prototype"===g)return n;if(l!=f){var m=h[g];void 0===(p=c?c(m,g,h):void 0)&&(p=u(m)?m:o(t[l+1])?[]:{})}r(h,g,p),h=h[g]}return n}},7556:function(n,t,e){var r=e(788);n.exports=function(n,t){for(var e=-1,i=n.length,o=0,u=[];++e<i;){var a=n[e],c=t?t(a):a;if(!e||!r(c,l)){var l=c;u[o++]=0===a?0:a}}return u}},6316:function(n,t,e){var r=e(2596),i=e(8644),o=e(163),u=e(1995),a=r?r.prototype:void 0,c=a?a.toString:void 0;n.exports=function n(t){if("string"==typeof t)return t;if(o(t))return i(t,n)+"";if(u(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},9110:function(n){n.exports=function(n){return function(t){return n(t)}}},9026:function(n,t,e){var r=e(163),i=e(726),o=e(7801),u=e(7010);n.exports=function(n,t){return r(n)?n:i(n,t)?[n]:o(u(n))}},5525:function(n,t,e){var r=e(3743),i=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=i},5557:function(n,t,e){var r=e(2645),i=e(4280),o=e(201);n.exports=function(n){return o(i(n,void 0,r),n+"")}},2117:function(n,t,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=r},3743:function(n){n.exports=function(n,t){return null==n?void 0:n[t]}},9817:function(n,t,e){var r=e(5125)(Object.getPrototypeOf,Object);n.exports=r},3096:function(n,t,e){var r=e(9026),i=e(5075),o=e(163),u=e(9099),a=e(8454),c=e(3110);n.exports=function(n,t,e){for(var l=-1,s=(t=r(t,n)).length,f=!1;++l<s;){var h=c(t[l]);if(!(f=null!=n&&e(n,h)))break;n=n[h]}return f||++l!=s?f:!!(s=null==n?0:n.length)&&a(s)&&u(h,s)&&(o(n)||i(n))}},3608:function(n,t,e){var r=e(2596),i=e(5075),o=e(163),u=r?r.isConcatSpreadable:void 0;n.exports=function(n){return o(n)||i(n)||!!(u&&n&&n[u])}},9099:function(n){var t=/^(?:0|[1-9]\d*)$/;n.exports=function(n,e){var r=typeof n;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&t.test(n))&&n>-1&&n%1==0&&n<e}},8286:function(n){n.exports=function(){return!1}},726:function(n,t,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;n.exports=function(n,t){if(r(n))return!1;var e=typeof n;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=n&&!i(n))||u.test(n)||!o.test(n)||null!=t&&n in Object(t)}},2453:function(n){n.exports=function(n){return n}},2348:function(n,t,e){n=e.nmd(n);var r=e(2117),i=t&&!t.nodeType&&t,o=i&&n&&!n.nodeType&&n,u=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||u&&u.binding&&u.binding("util")}catch(n){}}();n.exports=a},5125:function(n){n.exports=function(n,t){return function(e){return n(t(e))}}},4280:function(n,t,e){var r=e(6082),i=Math.max;n.exports=function(n,t,e){return t=i(void 0===t?n.length-1:t,0),function(){for(var o=arguments,u=-1,a=i(o.length-t,0),c=Array(a);++u<a;)c[u]=o[t+u];u=-1;for(var l=Array(t+1);++u<t;)l[u]=o[u];return l[t]=e(c),r(n,this,l)}}},2373:function(n,t,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();n.exports=o},201:function(n){n.exports=function(n){return n}},7801:function(n,t,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(i,(function(n,e,r,i){t.push(r?i.replace(o,"$1"):e||n)})),t}));n.exports=u},3110:function(n,t,e){var r=e(1995);n.exports=function(n){if("string"==typeof n||r(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},1893:function(n,t,e){var r=e(6317),i=e(788),o=e(8286),u=e(8855),a=Object.prototype,c=a.hasOwnProperty,l=r((function(n,t){n=Object(n);var e=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++e<r;)for(var s=t[e],f=u(s),h=-1,g=f.length;++h<g;){var p=f[h],m=n[p];(void 0===m||i(m,a[p])&&!c.call(n,p))&&(n[p]=s[p])}return n}));n.exports=l},788:function(n){n.exports=function(n,t){return n===t||n!=n&&t!=t}},2645:function(n,t,e){var r=e(6457);n.exports=function(n){return null!=n&&n.length?r(n,1):[]}},5066:function(n,t,e){var r=e(6776),i=e(3096);n.exports=function(n,t){return null!=n&&i(n,t,r)}},5346:function(n){n.exports=function(n){return n}},5075:function(n){n.exports=function(){return!1}},163:function(n){var t=Array.isArray;n.exports=t},4295:function(n,t,e){var r=e(7537),i=e(9110),o=e(2348),u=o&&o.isDate,a=u?i(u):r;n.exports=a},8454:function(n){n.exports=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}},7709:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},3474:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},3849:function(n,t,e){var r=e(563),i=e(9817),o=e(3474),u=Function.prototype,a=Object.prototype,c=u.toString,l=a.hasOwnProperty,s=c.call(Object);n.exports=function(n){if(!o(n)||"[object Object]"!=r(n))return!1;var t=i(n);if(null===t)return!0;var e=l.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},1995:function(n){n.exports=function(){return!1}},8855:function(n){n.exports=function(n){var t=[];if(null!=n)for(var e in Object(n))t.push(e);return t}},9082:function(n,t,e){var r=e(5436),i=e(5557)((function(n,t){return null==n?{}:r(n,t)}));n.exports=i},8532:function(n,t,e){var r=e(1600),i=e(3301),o=e(726),u=e(3110);n.exports=function(n){return o(n)?r(u(n)):i(n)}},2829:function(n,t,e){var r=e(7556);n.exports=function(n){return n&&n.length?r(n):[]}},7010:function(n,t,e){var r=e(6316);n.exports=function(n){return null==n?"":r(n)}},7491:function(n){var t="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(n,u){if(n===u)return!0;if(n&&u&&"object"==typeof n&&"object"==typeof u){if(n.constructor!==u.constructor)return!1;var a,c,l,s;if(Array.isArray(n)){if((a=n.length)!=u.length)return!1;for(c=a;0!=c--;)if(!o(n[c],u[c]))return!1;return!0}if(e&&n instanceof Map&&u instanceof Map){if(n.size!==u.size)return!1;for(s=n.entries();!(c=s.next()).done;)if(!u.has(c.value[0]))return!1;for(s=n.entries();!(c=s.next()).done;)if(!o(c.value[1],u.get(c.value[0])))return!1;return!0}if(r&&n instanceof Set&&u instanceof Set){if(n.size!==u.size)return!1;for(s=n.entries();!(c=s.next()).done;)if(!u.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(u)){if((a=n.length)!=u.length)return!1;for(c=a;0!=c--;)if(n[c]!==u[c])return!1;return!0}if(n.constructor===RegExp)return n.source===u.source&&n.flags===u.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===u.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===u.toString();if((a=(l=Object.keys(n)).length)!==Object.keys(u).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(u,l[c]))return!1;if(t&&n instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!n.$$typeof)&&!o(n[l[c]],u[l[c]]))return!1;return!0}return n!=n&&u!=u}n.exports=function(n,t){try{return o(n,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},9787:function(t){"use strict";t.exports=n}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryBrushLine:function(){return bo}});var n={};r.r(n),r.d(n,{scaleBand:function(){return j},scaleDiverging:function(){return $i},scaleDivergingLog:function(){return Hi},scaleDivergingPow:function(){return Fi},scaleDivergingSqrt:function(){return Pi},scaleDivergingSymlog:function(){return Ei},scaleIdentity:function(){return dt},scaleImplicit:function(){return S},scaleLinear:function(){return mt},scaleLog:function(){return Nt},scaleOrdinal:function(){return A},scalePoint:function(){return U},scalePow:function(){return Ht},scaleQuantile:function(){return zt},scaleQuantize:function(){return Wt},scaleRadial:function(){return Yt},scaleSequential:function(){return Ni},scaleSequentialLog:function(){return Ci},scaleSequentialPow:function(){return Si},scaleSequentialQuantile:function(){return ji},scaleSequentialSqrt:function(){return Ai},scaleSequentialSymlog:function(){return ki},scaleSqrt:function(){return Et},scaleSymlog:function(){return At},scaleThreshold:function(){return Gt},scaleTime:function(){return Mi},scaleUtc:function(){return wi},tickFormat:function(){return gt}});var t=r(9082),e=r.n(t),o=r(1893),u=r.n(o),a=r(9787),c=r.n(a),l=r(3849),s=r.n(l),f=r(8532),h=r.n(f);function g(n,t){void 0===t&&(t="padding");const e=n[t],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function p(n,t){return y(n)?n(t):n}function m(n,t){return t.disableInlineStyles?{}:n&&Object.keys(n).some((t=>y(n[t])))?Object.keys(n).reduce(((e,r)=>(e[r]=p(n[r],t),e)),{}):n}function d(n){return"number"==typeof n?n*(Math.PI/180):n}function v(n){const{left:t,right:e,top:r,bottom:i}=g(n),{width:o,height:u}=n;return Math.min(o-t-e,u-r-i)/2}function y(n){return"function"==typeof n}function b(n){return Array.isArray(n)&&n.some((n=>n instanceof Date))}function x(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];const i=n.concat(e);return b(i)?new Date(Math.max(...i)):Math.max(...i)}function M(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];const i=n.concat(e);return b(i)?new Date(Math.min(...i)):Math.min(...i)}function w(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}function D(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function T(n,t){switch(arguments.length){case 0:break;case 1:"function"==typeof n?this.interpolator(n):this.range(n);break;default:this.domain(n),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class N extends Map{constructor(n,t=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const[t,e]of n)this.set(t,e)}get(n){return super.get(C(this,n))}has(n){return super.has(C(this,n))}set(n,t){return super.set(function({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):(n.set(r,e),e)}(this,n),t)}delete(n){return super.delete(function({_intern:n,_key:t},e){const r=t(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}(this,n))}}function C({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):e}function k(n){return null!==n&&"object"==typeof n?n.valueOf():n}Set;const S=Symbol("implicit");function A(){var n=new N,t=[],e=[],r=S;function i(i){let o=n.get(i);if(void 0===o){if(r!==S)return r;n.set(i,o=t.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return t.slice();t=[],n=new N;for(const r of e)n.has(r)||n.set(r,t.push(r)-1);return i},i.range=function(n){return arguments.length?(e=Array.from(n),i):e.slice()},i.unknown=function(n){return arguments.length?(r=n,i):r},i.copy=function(){return A(t,e).unknown(r)},D.apply(i,arguments),i}function j(){var n,t,e=A().unknown(void 0),r=e.domain,i=e.range,o=0,u=1,a=!1,c=0,l=0,s=.5;function f(){var e=r().length,f=u<o,h=f?u:o,g=f?o:u;n=(g-h)/Math.max(1,e-c+2*l),a&&(n=Math.floor(n)),h+=(g-h-n*(e-c))*s,t=n*(1-c),a&&(h=Math.round(h),t=Math.round(t));var p=w(e).map((function(t){return h+n*t}));return i(f?p.reverse():p)}return delete e.unknown,e.domain=function(n){return arguments.length?(r(n),f()):r()},e.range=function(n){return arguments.length?([o,u]=n,o=+o,u=+u,f()):[o,u]},e.rangeRound=function(n){return[o,u]=n,o=+o,u=+u,a=!0,f()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(a=!!n,f()):a},e.padding=function(n){return arguments.length?(c=Math.min(1,l=+n),f()):c},e.paddingInner=function(n){return arguments.length?(c=Math.min(1,n),f()):c},e.paddingOuter=function(n){return arguments.length?(l=+n,f()):l},e.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),f()):s},e.copy=function(){return j(r(),[o,u]).round(a).paddingInner(c).paddingOuter(l).align(s)},D.apply(f(),arguments)}function O(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return O(t())},n}function U(){return O(j.apply(null,arguments).paddingInner(1))}var $=Math.sqrt(50),H=Math.sqrt(10),E=Math.sqrt(2);function F(n,t,e){var r,i,o,u,a=-1;if(e=+e,(n=+n)==(t=+t)&&e>0)return[n];if((r=t<n)&&(i=n,n=t,t=i),0===(u=P(n,t,e))||!isFinite(u))return[];if(u>0){let e=Math.round(n/u),r=Math.round(t/u);for(e*u<n&&++e,r*u>t&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)*u}else{u=-u;let e=Math.round(n*u),r=Math.round(t*u);for(e/u<n&&++e,r/u>t&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)/u}return r&&o.reverse(),o}function P(n,t,e){var r=(t-n)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=$?10:o>=H?5:o>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=$?10:o>=H?5:o>=E?2:1)}function Y(n,t,e){var r=Math.abs(t-n)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$?i*=10:o>=H?i*=5:o>=E&&(i*=2),t<n?-i:i}function L(n,t){return null==n||null==t?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function q(n,t){return null==n||null==t?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function R(n){let t,e,r;function i(n,r,i=0,o=n.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;e(n[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==n.length?(t=L,e=(t,e)=>L(n(t),e),r=(t,e)=>n(t)-e):(t=n===L||n===q?n:B,e=n,r=n),{left:i,center:function(n,t,e=0,o=n.length){const u=i(n,t,e,o-1);return u>e&&r(n[u-1],t)>-r(n[u],t)?u-1:u},right:function(n,r,i=0,o=n.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;e(n[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function B(){return 0}function I(n){return null===n?NaN:+n}const V=R(L),_=V.right;V.left,R(I).center;var z=_;function W(n,t,e){n.prototype=t.prototype=e,e.constructor=n}function G(n,t){var e=Object.create(n.prototype);for(var r in t)e[r]=t[r];return e}function Z(){}var X=.7,Q=1/X,J="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tn=/^#([0-9a-f]{3,8})$/,en=new RegExp(`^rgb\\(${J},${J},${J}\\)$`),rn=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),on=new RegExp(`^rgba\\(${J},${J},${J},${K}\\)$`),un=new RegExp(`^rgba\\(${nn},${nn},${nn},${K}\\)$`),an=new RegExp(`^hsl\\(${K},${nn},${nn}\\)$`),cn=new RegExp(`^hsla\\(${K},${nn},${nn},${K}\\)$`),ln={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function sn(){return this.rgb().formatHex()}function fn(){return this.rgb().formatRgb()}function hn(n){var t,e;return n=(n+"").trim().toLowerCase(),(t=tn.exec(n))?(e=t[1].length,t=parseInt(t[1],16),6===e?gn(t):3===e?new vn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===e?pn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===e?pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=en.exec(n))?new vn(t[1],t[2],t[3],1):(t=rn.exec(n))?new vn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=on.exec(n))?pn(t[1],t[2],t[3],t[4]):(t=un.exec(n))?pn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=an.exec(n))?Dn(t[1],t[2]/100,t[3]/100,1):(t=cn.exec(n))?Dn(t[1],t[2]/100,t[3]/100,t[4]):ln.hasOwnProperty(n)?gn(ln[n]):"transparent"===n?new vn(NaN,NaN,NaN,0):null}function gn(n){return new vn(n>>16&255,n>>8&255,255&n,1)}function pn(n,t,e,r){return r<=0&&(n=t=e=NaN),new vn(n,t,e,r)}function mn(n){return n instanceof Z||(n=hn(n)),n?new vn((n=n.rgb()).r,n.g,n.b,n.opacity):new vn}function dn(n,t,e,r){return 1===arguments.length?mn(n):new vn(n,t,e,null==r?1:r)}function vn(n,t,e,r){this.r=+n,this.g=+t,this.b=+e,this.opacity=+r}function yn(){return`#${wn(this.r)}${wn(this.g)}${wn(this.b)}`}function bn(){const n=xn(this.opacity);return`${1===n?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${1===n?")":`, ${n})`}`}function xn(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Mn(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function wn(n){return((n=Mn(n))<16?"0":"")+n.toString(16)}function Dn(n,t,e,r){return r<=0?n=t=e=NaN:e<=0||e>=1?n=t=NaN:t<=0&&(n=NaN),new Nn(n,t,e,r)}function Tn(n){if(n instanceof Nn)return new Nn(n.h,n.s,n.l,n.opacity);if(n instanceof Z||(n=hn(n)),!n)return new Nn;if(n instanceof Nn)return n;var t=(n=n.rgb()).r/255,e=n.g/255,r=n.b/255,i=Math.min(t,e,r),o=Math.max(t,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=t===o?(e-r)/a+6*(e<r):e===o?(r-t)/a+2:(t-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Nn(u,a,c,n.opacity)}function Nn(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}function Cn(n){return(n=(n||0)%360)<0?n+360:n}function kn(n){return Math.max(0,Math.min(1,n||0))}function Sn(n,t,e){return 255*(n<60?t+(e-t)*n/60:n<180?e:n<240?t+(e-t)*(240-n)/60:t)}function An(n,t,e,r,i){var o=n*n,u=o*n;return((1-3*n+3*o-u)*t+(4-6*o+3*u)*e+(1+3*n+3*o-3*u)*r+u*i)/6}W(Z,hn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:sn,formatHex:sn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Tn(this).formatHsl()},formatRgb:fn,toString:fn}),W(vn,dn,G(Z,{brighter(n){return n=null==n?Q:Math.pow(Q,n),new vn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=null==n?X:Math.pow(X,n),new vn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new vn(Mn(this.r),Mn(this.g),Mn(this.b),xn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yn,formatHex:yn,formatHex8:function(){return`#${wn(this.r)}${wn(this.g)}${wn(this.b)}${wn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bn,toString:bn})),W(Nn,(function(n,t,e,r){return 1===arguments.length?Tn(n):new Nn(n,t,e,null==r?1:r)}),G(Z,{brighter(n){return n=null==n?Q:Math.pow(Q,n),new Nn(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=null==n?X:Math.pow(X,n),new Nn(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+360*(this.h<0),t=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*t,i=2*e-r;return new vn(Sn(n>=240?n-240:n+120,i,r),Sn(n,i,r),Sn(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new Nn(Cn(this.h),kn(this.s),kn(this.l),xn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=xn(this.opacity);return`${1===n?"hsl(":"hsla("}${Cn(this.h)}, ${100*kn(this.s)}%, ${100*kn(this.l)}%${1===n?")":`, ${n})`}`}}));var jn=n=>()=>n;function On(n,t){var e=t-n;return e?function(n,t){return function(e){return n+e*t}}(n,e):jn(isNaN(n)?t:n)}var Un=function n(t){var e=function(n){return 1==(n=+n)?On:function(t,e){return e-t?function(n,t,e){return n=Math.pow(n,e),t=Math.pow(t,e)-n,e=1/e,function(r){return Math.pow(n+r*t,e)}}(t,e,n):jn(isNaN(t)?e:t)}}(t);function r(n,t){var r=e((n=dn(n)).r,(t=dn(t)).r),i=e(n.g,t.g),o=e(n.b,t.b),u=On(n.opacity,t.opacity);return function(t){return n.r=r(t),n.g=i(t),n.b=o(t),n.opacity=u(t),n+""}}return r.gamma=n,r}(1);function $n(n){return function(t){var e,r,i=t.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=dn(t[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=n(o),u=n(u),a=n(a),r.opacity=1,function(n){return r.r=o(n),r.g=u(n),r.b=a(n),r+""}}}function Hn(n,t){var e,r=t?t.length:0,i=n?Math.min(r,n.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=Bn(n[e],t[e]);for(;e<r;++e)u[e]=t[e];return function(n){for(e=0;e<i;++e)u[e]=o[e](n);return u}}function En(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Fn(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function Pn(n,t){var e,r={},i={};for(e in null!==n&&"object"==typeof n||(n={}),null!==t&&"object"==typeof t||(t={}),t)e in n?r[e]=Bn(n[e],t[e]):i[e]=t[e];return function(n){for(e in r)i[e]=r[e](n);return i}}$n((function(n){var t=n.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,t-1):Math.floor(e*t),i=n[r],o=n[r+1],u=r>0?n[r-1]:2*i-o,a=r<t-1?n[r+2]:2*o-i;return An((e-r/t)*t,u,i,o,a)}})),$n((function(n){var t=n.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*t),i=n[(r+t-1)%t],o=n[r%t],u=n[(r+1)%t],a=n[(r+2)%t];return An((e-r/t)*t,i,o,u,a)}}));var Yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ln=new RegExp(Yn.source,"g");function qn(n,t){var e,r,i,o=Yn.lastIndex=Ln.lastIndex=0,u=-1,a=[],c=[];for(n+="",t+="";(e=Yn.exec(n))&&(r=Ln.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:Fn(e,r)})),o=Ln.lastIndex;return o<t.length&&(i=t.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(n){return function(t){return n(t)+""}}(c[0].x):function(n){return function(){return n}}(t):(t=c.length,function(n){for(var e,r=0;r<t;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function Rn(n,t){t||(t=[]);var e,r=n?Math.min(t.length,n.length):0,i=t.slice();return function(o){for(e=0;e<r;++e)i[e]=n[e]*(1-o)+t[e]*o;return i}}function Bn(n,t){var e,r,i=typeof t;return null==t||"boolean"===i?jn(t):("number"===i?Fn:"string"===i?(e=hn(t))?(t=e,Un):qn:t instanceof hn?Un:t instanceof Date?En:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Hn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Pn:Fn:Rn))(n,t)}function In(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function Vn(n){return+n}var _n=[0,1];function zn(n){return n}function Wn(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:(e=isNaN(t)?NaN:.5,function(){return e});var e}function Gn(n,t,e){var r=n[0],i=n[1],o=t[0],u=t[1];return i<r?(r=Wn(i,r),o=e(u,o)):(r=Wn(r,i),o=e(o,u)),function(n){return o(r(n))}}function Zn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),o=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=Wn(n[u],n[u+1]),o[u]=e(t[u],t[u+1]);return function(t){var e=z(n,t,1,r)-1;return o[e](i[e](t))}}function Xn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Qn(){var n,t,e,r,i,o,u=_n,a=_n,c=Bn,l=zn;function s(){var n,t,e,c=Math.min(u.length,a.length);return l!==zn&&(n=u[0],t=u[c-1],n>t&&(e=n,n=t,t=e),l=function(e){return Math.max(n,Math.min(t,e))}),r=c>2?Zn:Gn,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?e:(i||(i=r(u.map(n),a,c)))(n(l(t)))}return f.invert=function(e){return l(t((o||(o=r(a,u.map(n),Fn)))(e)))},f.domain=function(n){return arguments.length?(u=Array.from(n,Vn),s()):u.slice()},f.range=function(n){return arguments.length?(a=Array.from(n),s()):a.slice()},f.rangeRound=function(n){return a=Array.from(n),c=In,s()},f.clamp=function(n){return arguments.length?(l=!!n||zn,s()):l!==zn},f.interpolate=function(n){return arguments.length?(c=n,s()):c},f.unknown=function(n){return arguments.length?(e=n,f):e},function(e,r){return n=e,t=r,s()}}function Jn(){return Qn()(zn,zn)}var Kn,nt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tt(n){if(!(t=nt.exec(n)))throw new Error("invalid format: "+n);var t;return new et({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function et(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function rt(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function it(n){return(n=rt(Math.abs(n)))?n[1]:NaN}function ot(n,t){var e=rt(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}tt.prototype=et.prototype,et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ut={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>ot(100*n,t),r:ot,s:function(n,t){var e=rt(n,t);if(!e)return n+"";var r=e[0],i=e[1],o=i-(Kn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rt(n,Math.max(0,t+o-1))[0]},X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function at(n){return n}var ct,lt,st,ft=Array.prototype.map,ht=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gt(n,t,e,r){var i,o=Y(n,t,e);switch((r=tt(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(t));return null!=r.precision||isNaN(i=function(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(it(t)/3)))-it(Math.abs(n)))}(o,u))||(r.precision=i),st(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,it(t)-it(n))+1}(o,Math.max(Math.abs(n),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(n){return Math.max(0,-it(Math.abs(n)))}(o))||(r.precision=i-2*("%"===r.type))}return lt(r)}function pt(n){var t=n.domain;return n.ticks=function(n){var e=t();return F(e[0],e[e.length-1],null==n?10:n)},n.tickFormat=function(n,e){var r=t();return gt(r[0],r[r.length-1],null==n?10:n,e)},n.nice=function(e){null==e&&(e=10);var r,i,o=t(),u=0,a=o.length-1,c=o[u],l=o[a],s=10;for(l<c&&(i=c,c=l,l=i,i=u,u=a,a=i);s-- >0;){if((i=P(c,l,e))===r)return o[u]=c,o[a]=l,t(o);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return n},n}function mt(){var n=Jn();return n.copy=function(){return Xn(n,mt())},D.apply(n,arguments),pt(n)}function dt(n){var t;function e(n){return null==n||isNaN(n=+n)?t:n}return e.invert=e,e.domain=e.range=function(t){return arguments.length?(n=Array.from(t,Vn),e):n.slice()},e.unknown=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return dt(n).unknown(t)},n=arguments.length?Array.from(n,Vn):[0,1],pt(e)}function vt(n,t){var e,r=0,i=(n=n.slice()).length-1,o=n[r],u=n[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),n[r]=t.floor(o),n[i]=t.ceil(u),n}function yt(n){return Math.log(n)}function bt(n){return Math.exp(n)}function xt(n){return-Math.log(-n)}function Mt(n){return-Math.exp(-n)}function wt(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Dt(n){return(t,e)=>-n(-t,e)}function Tt(n){const t=n(yt,bt),e=t.domain;let r,i,o=10;function u(){return r=function(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}(o),i=function(n){return 10===n?wt:n===Math.E?Math.exp:t=>Math.pow(n,t)}(o),e()[0]<0?(r=Dt(r),i=Dt(i),n(xt,Mt)):n(yt,bt),t}return t.base=function(n){return arguments.length?(o=+n,u()):o},t.domain=function(n){return arguments.length?(e(n),u()):e()},t.ticks=n=>{const t=e();let u=t[0],a=t[t.length-1];const c=a<u;c&&([u,a]=[a,u]);let l,s,f=r(u),h=r(a);const g=null==n?10:+n;let p=[];if(!(o%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),u>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<u)){if(s>a)break;p.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<u)){if(s>a)break;p.push(s)}2*p.length<g&&(p=F(u,a,g))}else p=F(f,h,Math.min(h-f,g)).map(i);return c?p.reverse():p},t.tickFormat=(n,e)=>{if(null==n&&(n=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=tt(e)).precision||(e.trim=!0),e=lt(e)),n===1/0)return e;const u=Math.max(1,o*n/t.ticks().length);return n=>{let t=n/i(Math.round(r(n)));return t*o<o-.5&&(t*=o),t<=u?e(n):""}},t.nice=()=>e(vt(e(),{floor:n=>i(Math.floor(r(n))),ceil:n=>i(Math.ceil(r(n)))})),t}function Nt(){const n=Tt(Qn()).domain([1,10]);return n.copy=()=>Xn(n,Nt()).base(n.base()),D.apply(n,arguments),n}function Ct(n){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/n))}}function kt(n){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*n}}function St(n){var t=1,e=n(Ct(t),kt(t));return e.constant=function(e){return arguments.length?n(Ct(t=+e),kt(t)):t},pt(e)}function At(){var n=St(Qn());return n.copy=function(){return Xn(n,At()).constant(n.constant())},D.apply(n,arguments)}function jt(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function Ot(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function Ut(n){return n<0?-n*n:n*n}function $t(n){var t=n(zn,zn),e=1;function r(){return 1===e?n(zn,zn):.5===e?n(Ot,Ut):n(jt(e),jt(1/e))}return t.exponent=function(n){return arguments.length?(e=+n,r()):e},pt(t)}function Ht(){var n=$t(Qn());return n.copy=function(){return Xn(n,Ht()).exponent(n.exponent())},D.apply(n,arguments),n}function Et(){return Ht.apply(null,arguments).exponent(.5)}function Ft(n){return Math.sign(n)*n*n}function Pt(n){return Math.sign(n)*Math.sqrt(Math.abs(n))}function Yt(){var n,t=Jn(),e=[0,1],r=!1;function i(e){var i=Pt(t(e));return isNaN(i)?n:r?Math.round(i):i}return i.invert=function(n){return t.invert(Ft(n))},i.domain=function(n){return arguments.length?(t.domain(n),i):t.domain()},i.range=function(n){return arguments.length?(t.range((e=Array.from(n,Vn)).map(Ft)),i):e.slice()},i.rangeRound=function(n){return i.range(n).round(!0)},i.round=function(n){return arguments.length?(r=!!n,i):r},i.clamp=function(n){return arguments.length?(t.clamp(n),i):t.clamp()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Yt(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},D.apply(i,arguments),pt(i)}function Lt(n,t){let e;if(void 0===t)for(const t of n)null!=t&&(e<t||void 0===e&&t>=t)&&(e=t);else{let r=-1;for(let i of n)null!=(i=t(i,++r,n))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function qt(n,t){let e;if(void 0===t)for(const t of n)null!=t&&(e>t||void 0===e&&t>=t)&&(e=t);else{let r=-1;for(let i of n)null!=(i=t(i,++r,n))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function Rt(n,t){return(null==n||!(n>=n))-(null==t||!(t>=t))||(n<t?-1:n>t?1:0)}function Bt(n,t,e=0,r=n.length-1,i){for(i=void 0===i?Rt:function(n=L){if(n===L)return Rt;if("function"!=typeof n)throw new TypeError("compare is not a function");return(t,e)=>{const r=n(t,e);return r||0===r?r:(0===n(e,e))-(0===n(t,t))}}(i);r>e;){if(r-e>600){const o=r-e+1,u=t-e+1,a=Math.log(o),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(o-c)/o)*(u-o/2<0?-1:1);Bt(n,t,Math.max(e,Math.floor(t-u*c/o+l)),Math.min(r,Math.floor(t+(o-u)*c/o+l)),i)}const o=n[t];let u=e,a=r;for(It(n,e,t),i(n[r],o)>0&&It(n,e,r);u<a;){for(It(n,u,a),++u,--a;i(n[u],o)<0;)++u;for(;i(n[a],o)>0;)--a}0===i(n[e],o)?It(n,e,a):(++a,It(n,a,r)),a<=t&&(e=a+1),t<=a&&(r=a-1)}return n}function It(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Vt(n,t,e){if(n=Float64Array.from(function*(n,t){if(void 0===t)for(let t of n)null!=t&&(t=+t)>=t&&(yield t);else{let e=-1;for(let r of n)null!=(r=t(r,++e,n))&&(r=+r)>=r&&(yield r)}}(n,e)),r=n.length){if((t=+t)<=0||r<2)return qt(n);if(t>=1)return Lt(n);var r,i=(r-1)*t,o=Math.floor(i),u=Lt(Bt(n,o).subarray(0,o+1));return u+(qt(n.subarray(o+1))-u)*(i-o)}}function _t(n,t,e=I){if(r=n.length){if((t=+t)<=0||r<2)return+e(n[0],0,n);if(t>=1)return+e(n[r-1],r-1,n);var r,i=(r-1)*t,o=Math.floor(i),u=+e(n[o],o,n);return u+(+e(n[o+1],o+1,n)-u)*(i-o)}}function zt(){var n,t=[],e=[],r=[];function i(){var n=0,i=Math.max(1,e.length);for(r=new Array(i-1);++n<i;)r[n-1]=_t(t,n/i);return o}function o(t){return null==t||isNaN(t=+t)?n:e[z(r,t)]}return o.invertExtent=function(n){var i=e.indexOf(n);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(L),i()},o.range=function(n){return arguments.length?(e=Array.from(n),i()):e.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return zt().domain(t).range(e).unknown(n)},D.apply(o,arguments)}function Wt(){var n,t=0,e=1,r=1,i=[.5],o=[0,1];function u(t){return null!=t&&t<=t?o[z(i,t,0,r)]:n}function a(){var n=-1;for(i=new Array(r);++n<r;)i[n]=((n+1)*e-(n-r)*t)/(r+1);return u}return u.domain=function(n){return arguments.length?([t,e]=n,t=+t,e=+e,a()):[t,e]},u.range=function(n){return arguments.length?(r=(o=Array.from(n)).length-1,a()):o.slice()},u.invertExtent=function(n){var u=o.indexOf(n);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=r?[i[r-1],e]:[i[u-1],i[u]]},u.unknown=function(t){return arguments.length?(n=t,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return Wt().domain([t,e]).range(o).unknown(n)},D.apply(pt(u),arguments)}function Gt(){var n,t=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[z(t,i,0,r)]:n}return i.domain=function(n){return arguments.length?(t=Array.from(n),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(n){return arguments.length?(e=Array.from(n),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Gt().domain(t).range(e).unknown(n)},D.apply(i,arguments)}ct=function(n){var t,e,r=void 0===n.grouping||void 0===n.thousands?at:(t=ft.call(n.grouping,Number),e=n.thousands+"",function(n,r){for(var i=n.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(e)}),i=void 0===n.currency?"":n.currency[0]+"",o=void 0===n.currency?"":n.currency[1]+"",u=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?at:function(n){return function(t){return t.replace(/[0-9]/g,(function(t){return n[+t]}))}}(ft.call(n.numerals,String)),c=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"−":n.minus+"",s=void 0===n.nan?"NaN":n.nan+"";function f(n){var t=(n=tt(n)).fill,e=n.align,f=n.sign,h=n.symbol,g=n.zero,p=n.width,m=n.comma,d=n.precision,v=n.trim,y=n.type;"n"===y?(m=!0,y="g"):ut[y]||(void 0===d&&(d=12),v=!0,y="g"),(g||"0"===t&&"="===e)&&(g=!0,t="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?c:"",M=ut[y],w=/[defgprs%]/.test(y);function D(n){var i,o,c,h=b,D=x;if("c"===y)D=M(n)+D,n="";else{var T=(n=+n)<0||1/n<0;if(n=isNaN(n)?s:M(Math.abs(n),d),v&&(n=function(n){n:for(var t,e=n.length,r=1,i=-1;r<e;++r)switch(n[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+n[r])break n;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(t+1):n}(n)),T&&0==+n&&"+"!==f&&(T=!1),h=(T?"("===f?f:l:"-"===f||"("===f?"":f)+h,D=("s"===y?ht[8+Kn/3]:"")+D+(T&&"("===f?")":""),w)for(i=-1,o=n.length;++i<o;)if(48>(c=n.charCodeAt(i))||c>57){D=(46===c?u+n.slice(i+1):n.slice(i))+D,n=n.slice(0,i);break}}m&&!g&&(n=r(n,1/0));var N=h.length+n.length+D.length,C=N<p?new Array(p-N+1).join(t):"";switch(m&&g&&(n=r(C+n,C.length?p-D.length:1/0),C=""),e){case"<":n=h+n+D+C;break;case"=":n=h+C+n+D;break;case"^":n=C.slice(0,N=C.length>>1)+h+n+D+C.slice(N);break;default:n=C+h+n+D}return a(n)}return d=void 0===d?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),D.toString=function(){return n+""},D}return{format:f,formatPrefix:function(n,t){var e=f(((n=tt(n)).type="f",n)),r=3*Math.max(-8,Math.min(8,Math.floor(it(t)/3))),i=Math.pow(10,-r),o=ht[8+r/3];return function(n){return e(i*n)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),lt=ct.format,st=ct.formatPrefix;const Zt=1e3,Xt=6e4,Qt=36e5,Jt=864e5,Kt=6048e5,ne=31536e6;var te=new Date,ee=new Date;function re(n,t,e,r){function i(t){return n(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return n(t=new Date(+t)),t},i.ceil=function(e){return n(e=new Date(e-1)),t(e,1),n(e),e},i.round=function(n){var t=i(n),e=i.ceil(n);return n-t<e-n?t:e},i.offset=function(n,e){return t(n=new Date(+n),null==e?1:Math.floor(e)),n},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),t(e,o),n(e)}while(u<e&&e<r);return a},i.filter=function(e){return re((function(t){if(t>=t)for(;n(t),!e(t);)t.setTime(t-1)}),(function(n,r){if(n>=n)if(r<0)for(;++r<=0;)for(;t(n,-1),!e(n););else for(;--r>=0;)for(;t(n,1),!e(n););}))},e&&(i.count=function(t,r){return te.setTime(+t),ee.setTime(+r),n(te),n(ee),Math.floor(e(te,ee))},i.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?i.filter(r?function(t){return r(t)%n==0}:function(t){return i.count(0,t)%n==0}):i:null}),i}var ie=re((function(){}),(function(n,t){n.setTime(+n+t)}),(function(n,t){return t-n}));ie.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?re((function(t){t.setTime(Math.floor(t/n)*n)}),(function(t,e){t.setTime(+t+e*n)}),(function(t,e){return(e-t)/n})):ie:null};var oe=ie,ue=(ie.range,re((function(n){n.setTime(n-n.getMilliseconds())}),(function(n,t){n.setTime(+n+t*Zt)}),(function(n,t){return(t-n)/Zt}),(function(n){return n.getUTCSeconds()}))),ae=ue,ce=(ue.range,re((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Zt)}),(function(n,t){n.setTime(+n+t*Xt)}),(function(n,t){return(t-n)/Xt}),(function(n){return n.getMinutes()}))),le=ce,se=(ce.range,re((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Zt-n.getMinutes()*Xt)}),(function(n,t){n.setTime(+n+t*Qt)}),(function(n,t){return(t-n)/Qt}),(function(n){return n.getHours()}))),fe=se,he=(se.range,re((n=>n.setHours(0,0,0,0)),((n,t)=>n.setDate(n.getDate()+t)),((n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*Xt)/Jt),(n=>n.getDate()-1))),ge=he;function pe(n){return re((function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+7*t)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*Xt)/Kt}))}he.range;var me=pe(0),de=pe(1),ve=pe(2),ye=pe(3),be=pe(4),xe=pe(5),Me=pe(6),we=(me.range,de.range,ve.range,ye.range,be.range,xe.range,Me.range,re((function(n){n.setDate(1),n.setHours(0,0,0,0)}),(function(n,t){n.setMonth(n.getMonth()+t)}),(function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())}),(function(n){return n.getMonth()}))),De=we,Te=(we.range,re((function(n){n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n,t){return t.getFullYear()-n.getFullYear()}),(function(n){return n.getFullYear()})));Te.every=function(n){return isFinite(n=Math.floor(n))&&n>0?re((function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e*n)})):null};var Ne=Te,Ce=(Te.range,re((function(n){n.setUTCSeconds(0,0)}),(function(n,t){n.setTime(+n+t*Xt)}),(function(n,t){return(t-n)/Xt}),(function(n){return n.getUTCMinutes()}))),ke=Ce,Se=(Ce.range,re((function(n){n.setUTCMinutes(0,0,0)}),(function(n,t){n.setTime(+n+t*Qt)}),(function(n,t){return(t-n)/Qt}),(function(n){return n.getUTCHours()}))),Ae=Se,je=(Se.range,re((function(n){n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+t)}),(function(n,t){return(t-n)/Jt}),(function(n){return n.getUTCDate()-1}))),Oe=je;function Ue(n){return re((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+7*t)}),(function(n,t){return(t-n)/Kt}))}je.range;var $e=Ue(0),He=Ue(1),Ee=Ue(2),Fe=Ue(3),Pe=Ue(4),Ye=Ue(5),Le=Ue(6),qe=($e.range,He.range,Ee.range,Fe.range,Pe.range,Ye.range,Le.range,re((function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCMonth(n.getUTCMonth()+t)}),(function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())}),(function(n){return n.getUTCMonth()}))),Re=qe,Be=(qe.range,re((function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)}),(function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()}),(function(n){return n.getUTCFullYear()})));Be.every=function(n){return isFinite(n=Math.floor(n))&&n>0?re((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})):null};var Ie=Be;function Ve(n,t,e,r,i,o){const u=[[ae,1,Zt],[ae,5,5e3],[ae,15,15e3],[ae,30,3e4],[o,1,Xt],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Qt],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Jt],[r,2,1728e5],[e,1,Kt],[t,1,2592e6],[t,3,7776e6],[n,1,ne]];function a(t,e,r){const i=Math.abs(e-t)/r,o=R((([,,n])=>n)).right(u,i);if(o===u.length)return n.every(Y(t/ne,e/ne,r));if(0===o)return oe.every(Math.max(Y(t,e,r),1));const[a,c]=u[i/u[o-1][2]<u[o][2]/i?o-1:o];return a.every(c)}return[function(n,t,e){const r=t<n;r&&([n,t]=[t,n]);const i=e&&"function"==typeof e.range?e:a(n,t,e),o=i?i.range(n,+t+1):[];return r?o.reverse():o},a]}Be.range;const[_e,ze]=Ve(Ie,Re,$e,Oe,Ae,ke),[We,Ge]=Ve(Ne,De,me,ge,fe,le);function Ze(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Xe(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Qe(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}var Je,Ke,nr,tr={"-":"",_:" ",0:"0"},er=/^\s*\d+/,rr=/^%/,ir=/[\\^$*+?|[\]().{}]/g;function or(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(t)+i:i)}function ur(n){return n.replace(ir,"\\$&")}function ar(n){return new RegExp("^(?:"+n.map(ur).join("|")+")","i")}function cr(n){return new Map(n.map(((n,t)=>[n.toLowerCase(),t])))}function lr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function sr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function fr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function hr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function gr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function pr(n,t,e){var r=er.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function mr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function dr(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function vr(n,t,e){var r=er.exec(t.slice(e,e+1));return r?(n.q=3*r[0]-3,e+r[0].length):-1}function yr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function br(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function xr(n,t,e){var r=er.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function Mr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function wr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function Dr(n,t,e){var r=er.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function Tr(n,t,e){var r=er.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function Nr(n,t,e){var r=er.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Cr(n,t,e){var r=rr.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function kr(n,t,e){var r=er.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function Sr(n,t,e){var r=er.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function Ar(n,t){return or(n.getDate(),t,2)}function jr(n,t){return or(n.getHours(),t,2)}function Or(n,t){return or(n.getHours()%12||12,t,2)}function Ur(n,t){return or(1+ge.count(Ne(n),n),t,3)}function $r(n,t){return or(n.getMilliseconds(),t,3)}function Hr(n,t){return $r(n,t)+"000"}function Er(n,t){return or(n.getMonth()+1,t,2)}function Fr(n,t){return or(n.getMinutes(),t,2)}function Pr(n,t){return or(n.getSeconds(),t,2)}function Yr(n){var t=n.getDay();return 0===t?7:t}function Lr(n,t){return or(me.count(Ne(n)-1,n),t,2)}function qr(n){var t=n.getDay();return t>=4||0===t?be(n):be.ceil(n)}function Rr(n,t){return n=qr(n),or(be.count(Ne(n),n)+(4===Ne(n).getDay()),t,2)}function Br(n){return n.getDay()}function Ir(n,t){return or(de.count(Ne(n)-1,n),t,2)}function Vr(n,t){return or(n.getFullYear()%100,t,2)}function _r(n,t){return or((n=qr(n)).getFullYear()%100,t,2)}function zr(n,t){return or(n.getFullYear()%1e4,t,4)}function Wr(n,t){var e=n.getDay();return or((n=e>=4||0===e?be(n):be.ceil(n)).getFullYear()%1e4,t,4)}function Gr(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+or(t/60|0,"0",2)+or(t%60,"0",2)}function Zr(n,t){return or(n.getUTCDate(),t,2)}function Xr(n,t){return or(n.getUTCHours(),t,2)}function Qr(n,t){return or(n.getUTCHours()%12||12,t,2)}function Jr(n,t){return or(1+Oe.count(Ie(n),n),t,3)}function Kr(n,t){return or(n.getUTCMilliseconds(),t,3)}function ni(n,t){return Kr(n,t)+"000"}function ti(n,t){return or(n.getUTCMonth()+1,t,2)}function ei(n,t){return or(n.getUTCMinutes(),t,2)}function ri(n,t){return or(n.getUTCSeconds(),t,2)}function ii(n){var t=n.getUTCDay();return 0===t?7:t}function oi(n,t){return or($e.count(Ie(n)-1,n),t,2)}function ui(n){var t=n.getUTCDay();return t>=4||0===t?Pe(n):Pe.ceil(n)}function ai(n,t){return n=ui(n),or(Pe.count(Ie(n),n)+(4===Ie(n).getUTCDay()),t,2)}function ci(n){return n.getUTCDay()}function li(n,t){return or(He.count(Ie(n)-1,n),t,2)}function si(n,t){return or(n.getUTCFullYear()%100,t,2)}function fi(n,t){return or((n=ui(n)).getUTCFullYear()%100,t,2)}function hi(n,t){return or(n.getUTCFullYear()%1e4,t,4)}function gi(n,t){var e=n.getUTCDay();return or((n=e>=4||0===e?Pe(n):Pe.ceil(n)).getUTCFullYear()%1e4,t,4)}function pi(){return"+0000"}function mi(){return"%"}function di(n){return+n}function vi(n){return Math.floor(+n/1e3)}function yi(n){return new Date(n)}function bi(n){return n instanceof Date?+n:+new Date(+n)}function xi(n,t,e,r,i,o,u,a,c,l){var s=Jn(),f=s.invert,h=s.domain,g=l(".%L"),p=l(":%S"),m=l("%I:%M"),d=l("%I %p"),v=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function M(n){return(c(n)<n?g:a(n)<n?p:u(n)<n?m:o(n)<n?d:r(n)<n?i(n)<n?v:y:e(n)<n?b:x)(n)}return s.invert=function(n){return new Date(f(n))},s.domain=function(n){return arguments.length?h(Array.from(n,bi)):h().map(yi)},s.ticks=function(t){var e=h();return n(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(n,t){return null==t?M:l(t)},s.nice=function(n){var e=h();return n&&"function"==typeof n.range||(n=t(e[0],e[e.length-1],null==n?10:n)),n?h(vt(e,n)):s},s.copy=function(){return Xn(s,xi(n,t,e,r,i,o,u,a,c,l))},s}function Mi(){return D.apply(xi(We,Ge,Ne,De,me,ge,fe,le,ae,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wi(){return D.apply(xi(_e,ze,Ie,Re,$e,Oe,Ae,ke,ae,nr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var n,t,e,r,i,o=0,u=1,a=zn,c=!1;function l(t){return null==t||isNaN(t=+t)?i:a(0===e?.5:(t=(r(t)-n)*e,c?Math.max(0,Math.min(1,t)):t))}function s(n){return function(t){var e,r;return arguments.length?([e,r]=t,a=n(e,r),l):[a(0),a(1)]}}return l.domain=function(i){return arguments.length?([o,u]=i,n=r(o=+o),t=r(u=+u),e=n===t?0:1/(t-n),l):[o,u]},l.clamp=function(n){return arguments.length?(c=!!n,l):c},l.interpolator=function(n){return arguments.length?(a=n,l):a},l.range=s(Bn),l.rangeRound=s(In),l.unknown=function(n){return arguments.length?(i=n,l):i},function(i){return r=i,n=i(o),t=i(u),e=n===t?0:1/(t-n),l}}function Ti(n,t){return t.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Ni(){var n=pt(Di()(zn));return n.copy=function(){return Ti(n,Ni())},T.apply(n,arguments)}function Ci(){var n=Tt(Di()).domain([1,10]);return n.copy=function(){return Ti(n,Ci()).base(n.base())},T.apply(n,arguments)}function ki(){var n=St(Di());return n.copy=function(){return Ti(n,ki()).constant(n.constant())},T.apply(n,arguments)}function Si(){var n=$t(Di());return n.copy=function(){return Ti(n,Si()).exponent(n.exponent())},T.apply(n,arguments)}function Ai(){return Si.apply(null,arguments).exponent(.5)}function ji(){var n=[],t=zn;function e(e){if(null!=e&&!isNaN(e=+e))return t((z(n,e,1)-1)/(n.length-1))}return e.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(L),e},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.range=function(){return n.map(((e,r)=>t(r/(n.length-1))))},e.quantiles=function(t){return Array.from({length:t+1},((e,r)=>Vt(n,r/t)))},e.copy=function(){return ji(t).domain(n)},T.apply(e,arguments)}function Oi(n,t){void 0===t&&(t=n,n=Bn);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);e<r;)o[e]=n(i,i=t[++e]);return function(n){var t=Math.max(0,Math.min(r-1,Math.floor(n*=r)));return o[t](n-t)}}function Ui(){var n,t,e,r,i,o,u,a=0,c=.5,l=1,s=1,f=zn,h=!1;function g(n){return isNaN(n=+n)?u:(n=.5+((n=+o(n))-t)*(s*n<s*t?r:i),f(h?Math.max(0,Math.min(1,n)):n))}function p(n){return function(t){var e,r,i;return arguments.length?([e,r,i]=t,f=Oi(n,[e,r,i]),g):[f(0),f(.5),f(1)]}}return g.domain=function(u){return arguments.length?([a,c,l]=u,n=o(a=+a),t=o(c=+c),e=o(l=+l),r=n===t?0:.5/(t-n),i=t===e?0:.5/(e-t),s=t<n?-1:1,g):[a,c,l]},g.clamp=function(n){return arguments.length?(h=!!n,g):h},g.interpolator=function(n){return arguments.length?(f=n,g):f},g.range=p(Bn),g.rangeRound=p(In),g.unknown=function(n){return arguments.length?(u=n,g):u},function(u){return o=u,n=u(a),t=u(c),e=u(l),r=n===t?0:.5/(t-n),i=t===e?0:.5/(e-t),s=t<n?-1:1,g}}function $i(){var n=pt(Ui()(zn));return n.copy=function(){return Ti(n,$i())},T.apply(n,arguments)}function Hi(){var n=Tt(Ui()).domain([.1,1,10]);return n.copy=function(){return Ti(n,Hi()).base(n.base())},T.apply(n,arguments)}function Ei(){var n=St(Ui());return n.copy=function(){return Ti(n,Ei()).constant(n.constant())},T.apply(n,arguments)}function Fi(){var n=$t(Ui());return n.copy=function(){return Ti(n,Fi()).exponent(n.exponent())},T.apply(n,arguments)}function Pi(){return Fi.apply(null,arguments).exponent(.5)}Je=function(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,u=n.shortDays,a=n.months,c=n.shortMonths,l=ar(i),s=cr(i),f=ar(o),h=cr(o),g=ar(u),p=cr(u),m=ar(a),d=cr(a),v=ar(c),y=cr(c),b={a:function(n){return u[n.getDay()]},A:function(n){return o[n.getDay()]},b:function(n){return c[n.getMonth()]},B:function(n){return a[n.getMonth()]},c:null,d:Ar,e:Ar,f:Hr,g:_r,G:Wr,H:jr,I:Or,j:Ur,L:$r,m:Er,M:Fr,p:function(n){return i[+(n.getHours()>=12)]},q:function(n){return 1+~~(n.getMonth()/3)},Q:di,s:vi,S:Pr,u:Yr,U:Lr,V:Rr,w:Br,W:Ir,x:null,X:null,y:Vr,Y:zr,Z:Gr,"%":mi},x={a:function(n){return u[n.getUTCDay()]},A:function(n){return o[n.getUTCDay()]},b:function(n){return c[n.getUTCMonth()]},B:function(n){return a[n.getUTCMonth()]},c:null,d:Zr,e:Zr,f:ni,g:fi,G:gi,H:Xr,I:Qr,j:Jr,L:Kr,m:ti,M:ei,p:function(n){return i[+(n.getUTCHours()>=12)]},q:function(n){return 1+~~(n.getUTCMonth()/3)},Q:di,s:vi,S:ri,u:ii,U:oi,V:ai,w:ci,W:li,x:null,X:null,y:si,Y:hi,Z:pi,"%":mi},M={a:function(n,t,e){var r=g.exec(t.slice(e));return r?(n.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(n,t,e){var r=f.exec(t.slice(e));return r?(n.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(n,t,e){var r=v.exec(t.slice(e));return r?(n.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(n,t,e){var r=m.exec(t.slice(e));return r?(n.m=d.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(n,e,r){return T(n,t,e,r)},d:br,e:br,f:Nr,g:mr,G:pr,H:Mr,I:Mr,j:xr,L:Tr,m:yr,M:wr,p:function(n,t,e){var r=l.exec(t.slice(e));return r?(n.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:vr,Q:kr,s:Sr,S:Dr,u:sr,U:fr,V:hr,w:lr,W:gr,x:function(n,t,r){return T(n,e,t,r)},X:function(n,t,e){return T(n,r,t,e)},y:mr,Y:pr,Z:dr,"%":Cr};function w(n,t){return function(e){var r,i,o,u=[],a=-1,c=0,l=n.length;for(e instanceof Date||(e=new Date(+e));++a<l;)37===n.charCodeAt(a)&&(u.push(n.slice(c,a)),null!=(i=tr[r=n.charAt(++a)])?r=n.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(n.slice(c,a)),u.join("")}}function D(n,t){return function(e){var r,i,o=Qe(1900,void 0,1);if(T(o,n,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Xe(Qe(o.y,0,1))).getUTCDay(),r=i>4||0===i?He.ceil(r):He(r),r=Oe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ze(Qe(o.y,0,1))).getDay(),r=i>4||0===i?de.ceil(r):de(r),r=ge.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Xe(Qe(o.y,0,1)).getUTCDay():Ze(Qe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Xe(o)):Ze(o)}}function T(n,t,e,r){for(var i,o,u=0,a=t.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=t.charCodeAt(u++))){if(i=t.charAt(u++),!(o=M[i in tr?t.charAt(u++):i])||(r=o(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(t,b),x.x=w(e,x),x.X=w(r,x),x.c=w(t,x),{format:function(n){var t=w(n+="",b);return t.toString=function(){return n},t},parse:function(n){var t=D(n+="",!1);return t.toString=function(){return n},t},utcFormat:function(n){var t=w(n+="",x);return t.toString=function(){return n},t},utcParse:function(n){var t=D(n+="",!0);return t.toString=function(){return n},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ke=Je.format,Je.parse,nr=Je.utcFormat,Je.utcParse;const Yi=["linear","time","log","sqrt"];function Li(n){return"function"==typeof n?y(n.copy)&&y(n.domain)&&y(n.range):"string"==typeof n&&Yi.includes(n)}function qi(t){if(Li(t)){const r=`scale${e=t,e&&e[0].toUpperCase()+e.slice(1)}`;return n[r]()}var e;return mt()}function Ri(n,t){const e=function(n,t){if(!function(n,t){return!(!n.scale||(n.scale.x||n.scale.y)&&!n.scale[t])}(n,t))return;const e=n.scale[t]||n.scale;return Li(e)?y(e)?e:qi(e):void 0}(n,t);return e?"string"==typeof e?qi(e):e:qi(function(n,t){let e;if(n.domain&&n.domain[t]?e=n.domain[t]:n.domain&&Array.isArray(n.domain)&&(e=n.domain),e)return b(e)?"time":"linear"}(n,t)||function(n,t){if(!n.data)return"linear";const e=y(r=n[t])?r:null==r?n=>n:h()(r);var r;return b(n.data.map((n=>{const r=s()(e(n))?e(n)[t]:e(n);return void 0!==r?r:n[t]})))?"time":"linear"}(n,t))}var Bi=r(4295),Ii=r.n(Bi);function Vi(n,t){const e=function(n,t){return s()(n.minDomain)&&void 0!==n.minDomain[t]?n.minDomain[t]:"number"==typeof n.minDomain||Ii()(n.minDomain)?n.minDomain:void 0}(n,t),r=function(n,t){return s()(n.maxDomain)&&void 0!==n.maxDomain[t]?n.maxDomain[t]:"number"==typeof n.maxDomain||Ii()(n.maxDomain)?n.maxDomain:void 0}(n,t);return s()(n.domain)&&n.domain[t]?n.domain[t]:Array.isArray(n.domain)?n.domain:void 0!==e&&void 0!==r?function(n,t){return Number(n)===Number(t)?(n=>{const t=0===n?2*Math.pow(10,-10):Math.pow(10,-10),e=n instanceof Date?new Date(Number(n)-1):Number(n)-t,r=n instanceof Date?new Date(Number(n)+1):Number(n)+t;return 0===n?[0,r]:[e,r]})(t):[n,t]}(e,r):void 0}function _i(){return _i=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},_i.apply(this,arguments)}r(2829);const zi=(0,a.forwardRef)(((n,t)=>{const{desc:e,id:r,tabIndex:i,origin:o,...u}=n,a={vectorEffect:"non-scaling-stroke",id:p(r,n)?.toString(),tabIndex:p(i,n),...u};return e?c().createElement("rect",_i({},a,{ref:t}),c().createElement("desc",null,e)):c().createElement("rect",_i({},a,{ref:t}))})),Wi={rectComponent:c().createElement(zi,null),role:"presentation",shapeRendering:"auto"},Gi=n=>{const t=(n=>{const t=p(n.ariaLabel,n),e=p(n.desc,n),r=p(n.id,n),i=m(Object.assign({fill:"none"},n.style),n),o=p(n.tabIndex,n);return Object.assign({},n,{ariaLabel:t,desc:e,id:r,style:i,tabIndex:o})})(u()({},n,Wi));return c().cloneElement(t.rectComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath})};function Zi(){return Zi=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Zi.apply(this,arguments)}const Xi=(0,a.forwardRef)(((n,t)=>{const{desc:e,id:r,tabIndex:i,origin:o,...u}=n,a={vectorEffect:"non-scaling-stroke",id:p(r,n)?.toString(),tabIndex:p(i,n),...u};return e?c().createElement("line",Zi({},a,{ref:t}),c().createElement("desc",null,e)):c().createElement("line",Zi({},a,{ref:t}))})),Qi={lineComponent:c().createElement(Xi,null),role:"presentation",shapeRendering:"auto"},Ji=n=>{const t=(n=>{const t=p(n.ariaLabel,n),e=p(n.desc,n),r=p(n.id,n),i=m(Object.assign({stroke:"black"},n.style),n),o=p(n.tabIndex,n);return Object.assign({},n,{ariaLabel:t,desc:e,id:r,style:i,tabIndex:o})})(u()({},n,Qi));return c().cloneElement(t.lineComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath})};function Ki(n,t,e){const{a:r,d:i,e:o,f:u}=t;return"y"===e?i*n+u:r*n+o}function no(n){return!(!n||void 0===n.identifier)}function to(n){if(no(n.nativeEvent))return;const t=n=>"svg"===n.nodeName?n:n.parentNode?t(n.parentNode):n;return t(n.target)}function eo(n,t){if(no(n.nativeEvent))return{x:n.nativeEvent.locationX,y:n.nativeEvent.locationY};const e=function(n){return n.changedTouches&&n.changedTouches.length>0}(n)?n.changedTouches[0]:n,r=function(n){return n.getScreenCTM().inverse()}(t||to(e));return{x:Ki(e.clientX,r,"x"),y:Ki(e.clientY,r,"y")}}var ro=r(7491),io=r.n(ro);const oo=1/Number.MAX_SAFE_INTEGER,uo=n=>{const{scale:t={},dimension:e="x"}=n;if(t[e])return t[e];const r=Ri(n,e),i=function(n,t){return n.range&&n.range[t]?n.range[t]:n.range&&Array.isArray(n.range)?n.range:n.polar?function(n,t){return"x"===t?[d(n.startAngle||0),d(n.endAngle||360)]:[n.innerRadius||0,v(n)]}(n,t):function(n,t){const e="x"!==t,r=g(n);return e?[n.height-r.bottom,r.top]:[r.left,n.width-r.right]}(n,t)}(n,e),o=Vi(n,e)||[0,1];return r.range(i).domain(o),r},ao=n=>{const{horizontal:t,dimension:e="x"}=n;return t?"x"===e?"y":"x":e},co=(n,t)=>{const e=uo(n);return[e(Math.min(...t)),e(Math.max(...t))]},lo=(n,t)=>{const e=uo(n);return[e.invert(Math.min(...t)),e.invert(Math.max(...t))]},so=n=>uo(n).range(),fo=n=>uo(n).domain(),ho=(n,t)=>n>=M(t)&&n<=x(t),go=(n,t)=>{if(n){const e=M(n),r=x(n),i=M(t),o=x(t),u=e<i?i:Number(o)-oo,a=r>o?o:Number(i)+oo;return[ho(e,t)?e:u,ho(r,t)?r:a]}return t},po=(n,t,e)=>{const r=n.handleWidth/2,i=ao(n),o=["min","max"].reduce(((n,o)=>(n[o]=ho(t,(n=>{const t={min:"x"===i?Math.min(...e):Math.max(...e),max:"x"===i?Math.max(...e):Math.min(...e)};return[t[n]-r,t[n]+r]})(o))?o:void 0,n)),{});return o.min&&o.max?"both":o.min||o.max},mo={stroke:"none",fill:"black",opacity:n=>{let{active:t}=n;return t?.2:.1}},vo={pointerEvents:"none",stroke:"none",fill:"black",opacity:n=>{let{active:t}=n;return t?.4:.3}},yo={pointerEvents:"none",stroke:"none",fill:"none"};class bo extends c().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:c().createElement(Gi,null),brushComponent:c().createElement(Gi,null),groupComponent:c().createElement("g",null),handleComponent:c().createElement(Gi,null),handleWidth:10,lineComponent:c().createElement(Ji,null),width:10};static defaultEvents=function(n){return n.disable?void 0:[{target:n.type,eventHandlers:{onMouseEnter:(n,t)=>{n.preventDefault();const{allowResize:e,brushDomain:r}=t,i=ao(t),o=t.parentSVG||to(n),u=eo(n,o)[i],a=fo(t),c=go(r,a),l=co(t,c),s=e&&po(t,u,l),f={brushArea:!t.brushDomain,brush:ho(u,l)&&!io()(a,c),minHandle:"min"===s||"both"===s,maxHandle:"min"===s||"both"===s};return[{mutation:()=>({activeBrushes:f,brushDomain:t.brushDomain,parentSVG:o})}]},onMouseDown:(n,t)=>{n.preventDefault();const{allowResize:e,allowDrag:r,allowDraw:i,activeBrushes:o,brushDomain:u}=t,a=ao(t);if(!e&&!r)return[];const c=fo(t),l=go(u,c),s=t.parentSVG||to(n),f=eo(n,s)[a],h=co(t,l),g=e&&po(t,f,h);return g?[{mutation:()=>({parentSVG:s,isSelecting:!0,activeHandle:g,brushDomain:l,startPosition:f,activeBrushes:o})}]:ho(f,h)&&!io()(c,l)?[{mutation:()=>({isPanning:r,startPosition:f,brushDomain:l,activeBrushes:o,parentSVG:s})}]:i?[{mutation:()=>({isSelecting:e,brushDomain:null,startPosition:f,activeBrushes:o,parentSVG:s})}]:[]},onMouseMove:(n,t)=>{const{isPanning:e,isSelecting:r,allowResize:i,allowDrag:o,onBrushDomainChange:a,brushDomain:c}=t,l=ao(t);(e||r)&&(n.preventDefault(),n.stopPropagation());const s=t.parentSVG||to(n),f=eo(n,s)[l],h=fo(t),g=go(c,h),p=co(t,g),m=po(t,f,p),d={brushArea:!t.brushDomain,brush:ho(f,p)&&!io()(h,g),minHandle:"min"===m||"both"===m,maxHandle:"max"===m||"both"===m};if(!t.isPanning&&!t.isSelecting)return[{mutation:()=>({activeBrushes:d,brushDomain:t.brushDomain,parentSVG:s})}];if(o&&e){const n=so(t),e=((n,t)=>{const{brushDomain:e,startPosition:r}=n,i=co(n,e),o=so(n),u=Math.abs(i[1]-i[0]),a=Math.min(...o),c=Math.max(...o),l=r?r-t:0,s=Math.min(...i)-l,f=Math.max(...i)-l;return[s>c-u?c-u:Math.max(s,a),f<a+u?a+u:Math.min(f,c)]})(t,f),r=lo(t,e),i={startPosition:Math.max(...e)>=Math.max(...n)||Math.min(...e)<=Math.min(...n)?t.startPosition:f,isPanning:!0,brushDomain:r,activeBrushes:{brush:!0},parentSVG:s};return y(a)&&a(r,u()({},i,t)),[{mutation:()=>i}]}if(i&&r){let n=c||[0,oo];const e=co(t,n),i="min"===t.activeHandle?"max":"min",o=t.activeHandle&&"both"===po(t,f,e)?i:t.activeHandle;if(o){const r="x"===l?Math.max(...e):Math.min(...e),i="x"===l?Math.min(...e):Math.max(...e);n=lo(t,["max"===o?i:f,"min"===o?r:f])}else n=lo(t,[t.startPosition,f]);const h={brushDomain:n,startPosition:t.startPosition,isSelecting:r,activeHandle:o,parentSVG:s,activeBrushes:{brush:!0,minHandle:"min"===m,maxHandle:"max"===m}};return y(a)&&a(n,u()({},h,t)),[{mutation:()=>h}]}return[]},onMouseUp:(n,t)=>{const{onBrushDomainChange:e,brushDomain:r,allowResize:i,activeBrushes:o}=t,a={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:o};return i&&y(e)&&e(r,u()({},a,t)),[{mutation:()=>a}]},onMouseLeave:(n,t)=>{const{brushDomain:e}=t;return[{mutation:()=>({isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:e,activeBrushes:{}})}]}}}]};getRectDimensions(n,t,e){const{brushDomain:r}=n,i=ao(n),o=co(n,e||go(r,fo(n))),u="x"===i?{y1:n.y1,y2:n.y2,x1:Math.min(...o),x2:Math.max(...o)}:{x1:n.x1,x2:n.x2,y1:Math.min(...o),y2:Math.max(...o)},{x1:a,x2:c,y1:l,y2:s}=u,f="x"===i?0:t/2,h="y"===i?0:t/2,g=Math.min(a,c)-f,p=Math.min(l,s)-h;return{x:g,y:p,width:Math.max(a,c)+f-g,height:Math.max(l,s)+h-p}}getHandleDimensions(n){const{handleWidth:t,x1:e,x2:r,y1:i,y2:o,brushDomain:u}=n,a=ao(n),c=n.brushWidth||n.width,l=go(u,fo(n)),s=co(n,l),f=Math.min(e,r)-c/2,h=Math.min(i,o)-c/2,g={min:"x"===a?Math.min(...s)-t/2:f,max:"x"===a?Math.max(...s)-t/2:f},p={min:"y"===a?Math.max(...s)-t/2:h,max:"y"===a?Math.min(...s)-t/2:h},m="x"===a?t:c,d="x"===a?c:t;return{min:{x:g.min,y:p.min,width:m,height:d},max:{x:g.max,y:p.max,width:m,height:d}}}getCursor(n){const{activeBrushes:t={}}=n,e=ao(n);return t.minHandle||t.maxHandle?"x"===e?"ew-resize":"ns-resize":t.brush?"move":"crosshair"}renderHandles(n){const{handleComponent:t,handleStyle:e,id:r,brushDomain:i,datum:o={},activeBrushes:u={}}=n;if(!i)return null;const a=this.getHandleDimensions(n),l=Object.assign({},yo,e),s=Object.assign({handleValue:M(i)},o),f=Object.assign({handleValue:x(i)},o),h=Object.assign({key:`${r}-min`,style:m(l,{datum:s,active:u.minHandle})},a.min),g=Object.assign({key:`${r}-max`,style:m(l,{datum:f,active:u.maxHandle})},a.max);return[c().cloneElement(t,h),c().cloneElement(t,g)]}renderBrush(n){const{brushComponent:t,brushStyle:e,activeBrushes:r={},datum:i={},brushDomain:o}=n;if(!o)return null;const u=n.brushWidth||n.width,a=this.getRectDimensions(n,u),l=m(Object.assign({},vo,e),{datum:i,active:r.brush}),s=Object.assign({style:l},a);return c().cloneElement(t,s)}renderBrushArea(n){const{brushAreaComponent:t,brushAreaStyle:e,activeBrushes:r={},datum:i={}}=n,o=n.brushAreaWidth||n.width,u=this.getCursor(n),a=this.getRectDimensions(n,o,fo(n)),l=m(Object.assign({cursor:u},mo,e),{datum:i,active:r.brushArea}),s=Object.assign({style:l},a);return c().cloneElement(t,s)}renderLine(n){const t=e()(n,["x1","x2","y1","y2","datum","scale","active","style"]);return c().cloneElement(n.lineComponent,t)}render(){return c().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}}(),i}()}));
2
2
  //# sourceMappingURL=victory-brush-line.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-brush-line",
3
- "version": "37.0.1",
3
+ "version": "37.0.2",
4
4
  "description": "Interactive Brush Line Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-core": "^37.0.1"
25
+ "victory-core": "^37.0.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.6.0"