@typeolymp/ui-components 1.19.16 → 1.19.18

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/build/index.js CHANGED
@@ -3591,6 +3591,7 @@ var icons = {
3591
3591
  bell: (jsxRuntime.jsx("path", { d: "M13.6 1.8c0-.4-.2-.8-.5-1.1-.3-.3-.7-.5-1.1-.5-.9 0-1.6.7-1.6 1.6v.4c-3.7.8-6.3 4-6.3 7.8v2.9c0 1.6-.6 3.1-1.7 4.2l-.4.2c-.6.6-.9 1.4-.9 2.2v1c0 .8.6 1.4 1.4 1.4h6.3c.2 1.1 1.2 1.9 2.4 1.9h1.6c.7 0 1.3-.3 1.7-.7.3-.3.6-.8.7-1.2h6.3c.7 0 1.4-.6 1.4-1.4v-1c0-.8-.3-1.6-.9-2.2l-.3-.3c-1.1-1.1-1.7-2.6-1.7-4.2V9.9c0-3.8-2.7-7.1-6.4-7.9v-.2z" })),
3592
3592
  bin: (jsxRuntime.jsx("path", { d: "M4.3 7.2h15.5v.2c-.1 1.4-.2 2.7-.3 4.1-.1 1.3-.2 2.7-.3 4-.1 1.6-.2 3.1-.4 4.7 0 .6-.1 1.1-.1 1.7-.2 1.1-1.3 2.1-2.5 2.1H7.9c-1.2 0-2.4-1.1-2.5-2.3-.1-1.6-.3-3.2-.4-4.9-.1-1.7-.3-3.4-.4-5.2-.1-1.4-.2-2.9-.3-4.4zm7.1 8.4v4.5c0 .4.3.7.7.7.4 0 .6-.3.6-.7v-8.9-.2c-.1-.3-.3-.5-.6-.5-.4 0-.7.3-.7.7v4.4zm4.5 0v-1.1-3.4c0-.4-.3-.7-.7-.7-.4 0-.6.3-.6.7v9.1c0 .3.2.5.5.6.4.1.8-.2.8-.7v-4.5zm-7.8 0v4.6c0 .3.3.6.6.6.4 0 .7-.3.7-.7v-8.9-.2c0-.4-.3-.6-.7-.6-.4 0-.6.3-.6.7v4.5zM15.7 3.3h3.5c1.1 0 1.9.7 2.1 1.8v.4c0 .2-.2.4-.4.5H3.2h-.1c-.3 0-.5-.2-.5-.5 0-1.2.9-2 2.2-2.1h3.5v-.7c0-1.6 1-2.7 2.5-2.7h2.6c1.3.1 2.2 1.2 2.3 2.4v.9zm-5.5 0h3.6v-.8c0-.3-.2-.5-.6-.5h-2.5c-.3 0-.5.2-.6.5.1.2.1.5.1.8z" })),
3593
3593
  user: (jsxRuntime.jsx("path", { d: "M12 12.4c3.4 0 6.2-2.8 6.2-6.2S15.4 0 12 0 5.8 2.8 5.8 6.2s2.8 6.2 6.2 6.2zM16.6 12.6c-.3-.1-.7 0-1 .2-1 .8-2.3 1.2-3.6 1.2s-2.6-.4-3.7-1.2c-.3-.2-.6-.3-1-.2C3 13.6 0 17.4 0 21.9 0 23 1 24 2.1 24h19.7c1.2 0 2.1-1 2.1-2.1.1-4.5-2.9-8.3-7.3-9.3z" })),
3594
+ search: (jsxRuntime.jsx("path", { d: "M.6 23.4c.6.6 1.7.6 2.3 0l7.1-7.1c1.4 1 3.2 1.6 5.1 1.6 4.9 0 8.9-4 8.9-8.9S20 .1 15.1.1C10.1.1 6 4.1 6 9c0 1.9.6 3.6 1.6 5.1L.5 21.2c-.6.6-.6 1.6.1 2.2zM9.3 9c0-3.1 2.5-5.7 5.7-5.7s5.7 2.5 5.7 5.7c0 3.1-2.5 5.7-5.7 5.7S9.3 12.2 9.3 9z" })),
3594
3595
  };
3595
3596
  var Icon = function (props) { return (jsxRuntime.jsx(Wrapper$a, __assign$2({}, props, { children: jsxRuntime.jsx("svg", __assign$2({ viewBox: "0 0 24 24", fill: "none" }, { children: icons[props.type] })) }))); };
3596
3597
 
@@ -4316,14 +4317,50 @@ var StyledParagraph = styled__default["default"].p(templateObject_1$P || (templa
4316
4317
  var templateObject_1$P;
4317
4318
 
4318
4319
  var Container$q = styled__default["default"].div(templateObject_1$O || (templateObject_1$O = __makeTemplateObject$1(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
4319
- var InputIconWrapper = styled__default["default"].div(templateObject_2$B || (templateObject_2$B = __makeTemplateObject$1(["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"], ["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"])), function (_a) {
4320
+ var InputIconWrapper = styled__default["default"].div(templateObject_2$B || (templateObject_2$B = __makeTemplateObject$1(["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: ", ";\n top: ", ";\n }\n\n svg {\n cursor: ", ";\n width: ", ";\n }\n"], ["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: ", ";\n top: ", ";\n }\n\n svg {\n cursor: ", ";\n width: ", ";\n }\n"])), function (_a) {
4320
4321
  var isChanged = _a.isChanged;
4321
4322
  return !isChanged ? theme.colors.lightGray.darker : "";
4323
+ }, function (_a) {
4324
+ var size = _a.size;
4325
+ switch (size) {
4326
+ case "small":
4327
+ return "7px";
4328
+ default:
4329
+ case "medium":
4330
+ return "12px";
4331
+ }
4332
+ }, function (_a) {
4333
+ var size = _a.size;
4334
+ switch (size) {
4335
+ case "small":
4336
+ return "10px";
4337
+ default:
4338
+ case "medium":
4339
+ return "14px";
4340
+ }
4322
4341
  }, function (_a) {
4323
4342
  var disabled = _a.disabled;
4324
4343
  return (disabled ? "not-allowed" : "pointer");
4344
+ }, function (_a) {
4345
+ var size = _a.size;
4346
+ switch (size) {
4347
+ case "small":
4348
+ return "20px";
4349
+ default:
4350
+ case "medium":
4351
+ return "24px";
4352
+ }
4325
4353
  });
4326
- var StyledInput = styled__default["default"].input(templateObject_3$d || (templateObject_3$d = __makeTemplateObject$1(["\n width: 100%;\n min-width: 228px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 100%;\n min-width: 228px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
4354
+ var StyledInput = styled__default["default"].input(templateObject_3$d || (templateObject_3$d = __makeTemplateObject$1(["\n width: 100%;\n min-width: 228px;\n height: ", ";\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 100%;\n min-width: 228px;\n height: ", ";\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
4355
+ var size = _a.size;
4356
+ switch (size) {
4357
+ case "small":
4358
+ return "40px";
4359
+ default:
4360
+ case "medium":
4361
+ return "50px";
4362
+ }
4363
+ }, function (_a) {
4327
4364
  var disabled = _a.disabled;
4328
4365
  return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
4329
4366
  }, function (_a) {
@@ -4505,7 +4542,7 @@ var PasswordInput = function (props) {
4505
4542
  if (props.onKeyPress)
4506
4543
  props.onKeyPress(e);
4507
4544
  };
4508
- return (jsxRuntime.jsxs(Container$q, { children: [jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled }, { children: [jsxRuntime.jsx(Icon, { type: isVisible ? "eyeInvisible" : "eye", color: "gray", size: "small", onClick: toggle }), jsxRuntime.jsx(StyledInput, __assign$2({ type: isVisible ? "text" : "password" }, props, { onChange: onChange, onKeyPress: onKeyPress }))] })), props.helperLocale && value.length ? (jsxRuntime.jsxs(HelperContainer, { children: [jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasCapitalLetter(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 capital letter"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasNumber(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 number"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasSpecialCharacter(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 special character"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: value.length >= 8 }, { children: ["\u2022 ", translations[props.helperLocale]["At least 8 characters"]] }))] })) : null] }));
4545
+ return (jsxRuntime.jsxs(Container$q, { children: [jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsxRuntime.jsx(Icon, { type: isVisible ? "eyeInvisible" : "eye", color: "gray", size: "small", onClick: toggle }), jsxRuntime.jsx(StyledInput, __assign$2({ type: isVisible ? "text" : "password" }, props, { onChange: onChange, onKeyPress: onKeyPress }))] })), props.helperLocale && value.length ? (jsxRuntime.jsxs(HelperContainer, { children: [jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasCapitalLetter(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 capital letter"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasNumber(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 number"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: expressions.hasSpecialCharacter(value) }, { children: ["\u2022 ", translations[props.helperLocale]["At least 1 special character"]] })), jsxRuntime.jsxs(Helper, __assign$2({ isOk: value.length >= 8 }, { children: ["\u2022 ", translations[props.helperLocale]["At least 8 characters"]] }))] })) : null] }));
4509
4546
  };
4510
4547
 
4511
4548
  function toInteger$2(dirtyNumber) {
@@ -4528,7 +4565,7 @@ function requiredArgs(required, args) {
4528
4565
  }
4529
4566
  }
4530
4567
 
4531
- function _typeof$y(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$y = function _typeof(obj) { return typeof obj; }; } else { _typeof$y = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$y(obj); }
4568
+ function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
4532
4569
  /**
4533
4570
  * @name toDate
4534
4571
  * @category Common Helpers
@@ -4564,7 +4601,7 @@ function toDate(argument) {
4564
4601
  requiredArgs(1, arguments);
4565
4602
  var argStr = Object.prototype.toString.call(argument); // Clone the date
4566
4603
 
4567
- if (argument instanceof Date || _typeof$y(argument) === 'object' && argStr === '[object Date]') {
4604
+ if (argument instanceof Date || _typeof$u(argument) === 'object' && argStr === '[object Date]') {
4568
4605
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
4569
4606
  return new Date(argument.getTime());
4570
4607
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -4835,7 +4872,7 @@ var millisecondsInMinute = 60000;
4835
4872
 
4836
4873
  var millisecondsInHour = 3600000;
4837
4874
 
4838
- function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$x = function _typeof(obj) { return typeof obj; }; } else { _typeof$x = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$x(obj); }
4875
+ function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
4839
4876
  /**
4840
4877
  * @name isDate
4841
4878
  * @category Common Helpers
@@ -4871,7 +4908,7 @@ function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
4871
4908
 
4872
4909
  function isDate(value) {
4873
4910
  requiredArgs(1, arguments);
4874
- return value instanceof Date || _typeof$x(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
4911
+ return value instanceof Date || _typeof$t(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
4875
4912
  }
4876
4913
 
4877
4914
  /**
@@ -7982,7 +8019,25 @@ var DateInput = function (props) {
7982
8019
  if (isBefore(new Date(inputRef.current.value), new Date(props.min)))
7983
8020
  inputRef.current.value = props.min;
7984
8021
  };
7985
- return (jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, isChanged: isChanged }, { children: [jsxRuntime.jsx(Icon, { type: "calendar", color: "gray", size: "small", onClick: showPicker }), jsxRuntime.jsx(StyledInput, __assign$2({ type: "date" }, props, { onChange: onChange, onBlur: onBlur, onKeyPress: onKeyPress, ref: inputRef }))] })));
8022
+ return (jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size, isChanged: isChanged }, { children: [jsxRuntime.jsx(Icon, { type: "calendar", color: "gray", size: "small", onClick: showPicker }), jsxRuntime.jsx(StyledInput, __assign$2({ type: "date" }, props, { onChange: onChange, onBlur: onBlur, onKeyPress: onKeyPress, ref: inputRef }))] })));
8023
+ };
8024
+
8025
+ var SearchInput = function (props) {
8026
+ var _a = React$3.useState(props.defaultValue || ""), value = _a[0], setValue = _a[1];
8027
+ var onChange = function (e) {
8028
+ setValue(e.target.value);
8029
+ if (!props.disabled && !!props.onChange)
8030
+ props.onChange(e.target.value);
8031
+ };
8032
+ var onKeyPress = function (e) {
8033
+ if (e.key === "Enter")
8034
+ onSearch();
8035
+ };
8036
+ var onSearch = function () {
8037
+ if (props.onSearch)
8038
+ props.onSearch(value);
8039
+ };
8040
+ return (jsxRuntime.jsx(Container$q, { children: jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsxRuntime.jsx(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsxRuntime.jsx(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange, onKeyPress: onKeyPress }))] })) }));
7986
8041
  };
7987
8042
 
7988
8043
  var Input = function (props) {
@@ -7993,7 +8048,8 @@ var Input = function (props) {
7993
8048
  return jsxRuntime.jsx(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange }));
7994
8049
  };
7995
8050
  Input.Password = PasswordInput;
7996
- Input.Date = DateInput;
8051
+ Input.Date = DateInput;
8052
+ Input.Search = SearchInput;
7997
8053
 
7998
8054
  var Logo = function (props) { return (jsxRuntime.jsxs("svg", __assign$2({ width: 396, height: 66, viewBox: "0 0 662.8 118.1", fill: "none", xmlSpace: "preserve" }, props, { children: [jsxRuntime.jsxs("g", { children: [jsxRuntime.jsx("path", { d: "M61.6 23.5c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L42 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L4.1 22C1.5 24.6 0 28 0 31.7c0 3.6 1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2-4.9-4.8c-.5-.5-.9-1-1.3-1.5L35.7 53.1c-.5.5-1 .8-1.6 1.1-.6.2-1.3.4-1.9.4-.7 0-1.3-.1-1.9-.4-.6-.2-1.2-.6-1.6-1.1l-18.3-18c-.9-.9-1.5-2.2-1.5-3.5 0-1.3.5-2.5 1.5-3.5l18.3-18c.5-.5 1-.8 1.6-1.1.6-.2 1.3-.4 1.9-.4.7 0 1.3.1 1.9.4.6.2 1.2.6 1.6 1.1l13.5 13.3 4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7c1.8-2.4 2.7-5.2 2.7-8.1-.1-3-1.1-5.8-2.9-8.2z", fill: "#e62743" }), jsxRuntime.jsx("path", { d: "M153.3 22L135 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L102 17.2 97.1 22c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.8 5.2-2.8 8.2 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9.2-.6.6-1.1 1.1-1.6l4.8-4.7 13.5-13.3c.5-.5 1-.8 1.6-1.1.6-.2 1.2-.4 1.9-.4s1.3.1 1.9.4c.6.2 1.1.6 1.6 1.1l18.3 18c.5.5.8 1 1.1 1.6.3.6.4 1.2.4 1.9 0 .6-.1 1.3-.4 1.9-.3.6-.6 1.1-1.1 1.6l-18.3 18c-.5.5-1 .8-1.6 1.1-.6.2-1.2.4-1.9.4s-1.3-.1-1.9-.4c-.6-.2-1.1-.6-1.6-1.1l-13.5-13.3c-.4.5-.8 1.1-1.3 1.5l-4.9 4.8 13.4 13.2c1.3 1.3 2.8 2.3 4.5 3 1.7.7 3.5 1 5.3 1 1.8 0 3.6-.4 5.3-1 1.7-.7 3.2-1.7 4.5-3l18.3-18c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.8-1.5-1.8-3-3.1-4.3z", fill: "#53b476" }), jsxRuntime.jsx("path", { d: "M61.9 23.3l-.3.3c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L68.8 4c1.3-1.3 2.8-2.3 4.5-3 1.7-.7 3.5-1 5.3-1s3.6.4 5.3 1c1.7.7 3.2 1.7 4.5 3l13.4 13.1-4.7 4.9c-.5.5-.9 1-1.3 1.5L82.2 10.2c-.5-.5-1-.8-1.6-1.1-.6-.2-1.3-.4-1.9-.4-.7 0-1.3.1-1.9.4-.6.2-1.2.6-1.6 1.1L61.9 23.3zm41.5 4.9l4.8-4.7c1.8 2.4 2.7 5.2 2.7 8.2 0 2.9-1 5.8-2.7 8.2-.4.5-.8 1.1-1.3 1.5l-4.9 4.8-13.5 13.2c-2.6 2.6-6.2 4-9.8 4s-7.2-1.4-9.8-4L55.4 46.1l-4.9-4.8c-.5-.5-.9-1-1.3-1.5-1.8-2.4-2.7-5.2-2.7-8.1 0-2.9 1-5.8 2.7-8.1l4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7 13.5 13.3c.5.5 1 .8 1.6 1.1s1.3.4 1.9.4 1.3-.1 1.9-.4 1.2-.6 1.6-1.1L95.8 40l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9 0-.8.4-1.3.9-1.8z", fillRule: "evenodd", clipRule: "evenodd", fill: "#ffd800" }), jsxRuntime.jsx("path", { d: "M130 76.6l-18.3-18c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4L78.7 71.9l-4.9 4.8c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.7 5.2-2.7 8.1 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-1.3.5-2.5 1.5-3.4l4.8-4.7 13.5-13.3c.9-.9 2.2-1.4 3.5-1.4 1.3 0 2.6.5 3.5 1.4l18.3 18c.9.9 1.5 2.2 1.5 3.5 0 1.3-.5 2.5-1.5 3.5l-18.3 18c-.9.9-2.2 1.4-3.5 1.4-1.3 0-2.6-.5-3.5-1.4L84.9 94.5c-.4.6-.8 1.1-1.3 1.5l-4.9 4.8L92.1 114c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4L130 96c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.6-1.5-1.7-3-3-4.3z", fill: "#8c5ca2" }), jsxRuntime.jsx("path", { d: "M84.9 78.2l-4.8 4.7c-.9.9-1.4 2.1-1.5 3.4 0 1.3-.5 2.5-1.5 3.4l-4.8 4.7-13.5 13.3c-.9.9-2.2 1.4-3.5 1.4s-2.6-.5-3.5-1.4l-18.3-18c-.9-.9-1.4-2.2-1.4-3.5s.5-2.5 1.4-3.5l18.3-18c.9-.9 2.2-1.4 3.5-1.4s2.6.5 3.5 1.4L72.3 78c.4-.5.8-1.1 1.3-1.5l4.9-4.8-13.3-13c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4l-18.3 18c-2.6 2.6-4.1 6.1-4.1 9.7s1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2 4.9-4.8c.5-.5.9-1 1.3-1.5 1.8-2.4 2.7-5.2 2.7-8.1.1-3.1-.9-5.9-2.6-8.3z", fill: "#3da9e1" })] }), jsxRuntime.jsxs("g", __assign$2({ fill: "#23292f" }, { children: [jsxRuntime.jsx("path", { d: "M236.6 21.5c-1.1-1-2.4-1.5-3.9-1.5h-40.2c-1.6 0-2.9.5-3.9 1.4-1.1.9-1.6 2.2-1.6 3.8 0 1.6.5 2.8 1.6 3.8s2.4 1.5 3.9 1.5h14.2V78c0 1.6.5 2.9 1.6 3.9 1.1 1.1 2.5 1.6 4.2 1.6 1.8 0 3.2-.5 4.3-1.6 1.1-1.1 1.7-2.4 1.7-3.9V30.4h14.2c1.6 0 2.9-.5 3.9-1.4 1.1-.9 1.6-2.2 1.6-3.8 0-1.5-.5-2.8-1.6-3.7z" }), jsxRuntime.jsx("path", { d: "M270.6 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.5.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.3-1.6-.8-2.9-1.8-3.9zM327.5 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3 2.1.8 4.4 1.2 6.8 1.2 4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1s-1-9.3-2.9-13.1zm-9.2 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.6-3.2-4.7-5.5-1.7-4.9-1.7-7.8c0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8 0 2.9-.6 5.5-1.7 7.8zM380.4 61.6c1.1-.9 1.7-2.1 1.7-3.5 0-3.3-.6-6.3-1.9-9.2-1.2-2.9-2.9-5.5-5-7.7s-4.5-3.9-7.3-5.2c-2.8-1.3-5.7-1.9-8.7-1.9-4 0-7.8 1-11.3 3.1-3.6 2.1-6.5 5-8.7 8.8-2.2 3.8-3.3 8.5-3.3 13.9 0 4.7 1 8.8 3 12.5 2 3.7 4.9 6.6 8.7 8.7 3.8 2.1 8.2 3.2 13.4 3.2 3 0 6-.5 8.8-1.5 2.8-1 5-2.2 6.6-3.5 1.7-1.3 2.5-2.8 2.5-4.4 0-1.2-.4-2.3-1.3-3.2-.9-.9-2-1.4-3.3-1.4-1 0-2 .3-3.1.8-.7.4-1.4.8-2.2 1.3-.8.5-1.9 1-3.2 1.3-1.3.4-3.1.5-5.3.5-2.4 0-4.7-.6-6.8-1.8-2.1-1.2-3.9-2.9-5.3-5.2-.8-1.3-1.3-2.8-1.7-4.5h29.9c1.4.3 2.7-.2 3.8-1.1zM350 47.2c1.1-1.1 2.5-2 4.1-2.4 1.6-.5 3.3-.7 5.1-.7 1.9 0 3.6.4 5.3 1.2 1.7.8 3.1 1.9 4.2 3.3s1.7 3 1.9 4.7v.6h-23.7c.1-.7.3-1.5.5-2.1.5-1.9 1.5-3.4 2.6-4.6zM447.3 39.1c-1.5-3.9-3.6-7.4-6.4-10.4-2.8-3-6-5.3-9.8-7-3.8-1.7-7.9-2.5-12.4-2.5s-8.6.8-12.3 2.5c-3.7 1.7-7 4-9.7 7-2.8 3-4.9 6.5-6.4 10.4-1.5 3.9-2.3 8.2-2.3 12.7s.8 8.8 2.3 12.7c1.5 3.9 3.6 7.4 6.4 10.4 2.7 3 6 5.3 9.7 7 3.7 1.7 7.9 2.5 12.3 2.5 4.5 0 8.6-.8 12.4-2.5 3.8-1.7 7-4 9.8-7 2.8-3 4.9-6.5 6.4-10.4 1.5-3.9 2.3-8.2 2.3-12.7-.1-4.6-.8-8.8-2.3-12.7zm-12 23.7c-1.6 3.3-3.9 5.9-6.7 7.8-2.8 1.9-6.1 2.9-9.9 2.9-3.7 0-7-1-9.9-2.9-2.8-1.9-5.1-4.5-6.7-7.8-1.6-3.3-2.4-7-2.4-11 0-4.1.8-7.8 2.4-11.1 1.6-3.3 3.8-5.9 6.7-7.8 2.8-1.9 6.1-2.9 9.9-2.9 3.7 0 7 1 9.9 2.9 2.8 1.9 5.1 4.5 6.7 7.8 1.6 3.3 2.4 7 2.4 11 .1 4.1-.8 7.8-2.4 11.1zM468.4 18c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6c-1.1 1.1-1.6 2.4-1.6 3.9v56c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.8 1.6 1.6 0 2.9-.5 3.9-1.6 1.1-1.1 1.6-2.4 1.6-3.9v-56c.1-1.5-.4-2.9-1.4-3.9zM520.2 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.4.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.2-1.6-.7-2.9-1.8-3.9zM603.2 44.4c-.8-3.1-2.4-5.6-4.7-7.5s-5.6-2.8-9.9-2.8c-2.7 0-5.1.6-7.2 1.7-2.1 1.1-4 2.5-5.5 4.1-1.4 1.5-2.5 2.9-3.2 4.2-.8-2.6-2.1-4.7-3.9-6.5-2.3-2.3-5.9-3.5-10.7-3.5-2 0-3.8.3-5.5 1-1.7.6-3.2 1.5-4.6 2.5-1.4 1-2.6 2.1-3.5 3.3l-.9 1.2v-1.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V78c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c.3-3.8-.2-7.2-1-10.3zM659.8 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3s4.4 1.2 6.8 1.2c4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1.1-5-.9-9.3-2.9-13.1zm-9.1 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.5-3.2-4.7-5.5c-1.1-2.3-1.7-4.9-1.7-7.8 0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8-.1 2.9-.6 5.5-1.7 7.8z" })] }))] }))); };
7999
8055
 
@@ -13587,15 +13643,15 @@ possibleStandardNamesOptimized$1.possibleStandardNames = {
13587
13643
 
13588
13644
  Object.defineProperty(lib$1, '__esModule', { value: true });
13589
13645
 
13590
- function _slicedToArray$c(arr, i) {
13591
- return _arrayWithHoles$d(arr) || _iterableToArrayLimit$c(arr, i) || _unsupportedIterableToArray$k(arr, i) || _nonIterableRest$d();
13646
+ function _slicedToArray$d(arr, i) {
13647
+ return _arrayWithHoles$e(arr) || _iterableToArrayLimit$d(arr, i) || _unsupportedIterableToArray$l(arr, i) || _nonIterableRest$e();
13592
13648
  }
13593
13649
 
13594
- function _arrayWithHoles$d(arr) {
13650
+ function _arrayWithHoles$e(arr) {
13595
13651
  if (Array.isArray(arr)) return arr;
13596
13652
  }
13597
13653
 
13598
- function _iterableToArrayLimit$c(arr, i) {
13654
+ function _iterableToArrayLimit$d(arr, i) {
13599
13655
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
13600
13656
 
13601
13657
  if (_i == null) return;
@@ -13625,16 +13681,16 @@ function _iterableToArrayLimit$c(arr, i) {
13625
13681
  return _arr;
13626
13682
  }
13627
13683
 
13628
- function _unsupportedIterableToArray$k(o, minLen) {
13684
+ function _unsupportedIterableToArray$l(o, minLen) {
13629
13685
  if (!o) return;
13630
- if (typeof o === "string") return _arrayLikeToArray$k(o, minLen);
13686
+ if (typeof o === "string") return _arrayLikeToArray$l(o, minLen);
13631
13687
  var n = Object.prototype.toString.call(o).slice(8, -1);
13632
13688
  if (n === "Object" && o.constructor) n = o.constructor.name;
13633
13689
  if (n === "Map" || n === "Set") return Array.from(o);
13634
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen);
13690
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$l(o, minLen);
13635
13691
  }
13636
13692
 
13637
- function _arrayLikeToArray$k(arr, len) {
13693
+ function _arrayLikeToArray$l(arr, len) {
13638
13694
  if (len == null || len > arr.length) len = arr.length;
13639
13695
 
13640
13696
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
@@ -13642,7 +13698,7 @@ function _arrayLikeToArray$k(arr, len) {
13642
13698
  return arr2;
13643
13699
  }
13644
13700
 
13645
- function _nonIterableRest$d() {
13701
+ function _nonIterableRest$e() {
13646
13702
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13647
13703
  }
13648
13704
 
@@ -13706,7 +13762,7 @@ reservedProps.forEach(function (name) {
13706
13762
  // This is a mapping from React prop names to the attribute names.
13707
13763
 
13708
13764
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
13709
- var _ref2 = _slicedToArray$c(_ref, 2),
13765
+ var _ref2 = _slicedToArray$d(_ref, 2),
13710
13766
  name = _ref2[0],
13711
13767
  attributeName = _ref2[1];
13712
13768
 
@@ -16117,31 +16173,31 @@ var _default = function (file, acceptedFiles) {
16117
16173
  return true;
16118
16174
  };
16119
16175
 
16120
- function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$c(); }
16176
+ function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$k(arr) || _nonIterableSpread$c(); }
16121
16177
 
16122
16178
  function _nonIterableSpread$c() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16123
16179
 
16124
16180
  function _iterableToArray$d(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16125
16181
 
16126
- function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$j(arr); }
16182
+ function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$k(arr); }
16127
16183
 
16128
- function ownKeys$u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16184
+ function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16129
16185
 
16130
- function _objectSpread$u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) { _defineProperty$w(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16186
+ function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty$s(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16131
16187
 
16132
- function _defineProperty$w(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16188
+ function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16133
16189
 
16134
- function _slicedToArray$b(arr, i) { return _arrayWithHoles$c(arr) || _iterableToArrayLimit$b(arr, i) || _unsupportedIterableToArray$j(arr, i) || _nonIterableRest$c(); }
16190
+ function _slicedToArray$c(arr, i) { return _arrayWithHoles$d(arr) || _iterableToArrayLimit$c(arr, i) || _unsupportedIterableToArray$k(arr, i) || _nonIterableRest$d(); }
16135
16191
 
16136
- function _nonIterableRest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16192
+ function _nonIterableRest$d() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16137
16193
 
16138
- function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
16194
+ function _unsupportedIterableToArray$k(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$k(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen); }
16139
16195
 
16140
- function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16196
+ function _arrayLikeToArray$k(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16141
16197
 
16142
- function _iterableToArrayLimit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16198
+ function _iterableToArrayLimit$c(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16143
16199
 
16144
- function _arrayWithHoles$c(arr) { if (Array.isArray(arr)) return arr; }
16200
+ function _arrayWithHoles$d(arr) { if (Array.isArray(arr)) return arr; }
16145
16201
 
16146
16202
  var FILE_INVALID_TYPE = "file-invalid-type";
16147
16203
  var FILE_TOO_LARGE = "file-too-large";
@@ -16221,11 +16277,11 @@ function allFilesAccepted(_ref) {
16221
16277
 
16222
16278
  return files.every(function (file) {
16223
16279
  var _fileAccepted = fileAccepted(file, accept),
16224
- _fileAccepted2 = _slicedToArray$b(_fileAccepted, 1),
16280
+ _fileAccepted2 = _slicedToArray$c(_fileAccepted, 1),
16225
16281
  accepted = _fileAccepted2[0];
16226
16282
 
16227
16283
  var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
16228
- _fileMatchSize2 = _slicedToArray$b(_fileMatchSize, 1),
16284
+ _fileMatchSize2 = _slicedToArray$c(_fileMatchSize, 1),
16229
16285
  sizeMatch = _fileMatchSize2[0];
16230
16286
 
16231
16287
  var customErrors = validator ? validator(file) : null;
@@ -16322,7 +16378,7 @@ function canUseFileSystemAccessAPI() {
16322
16378
  function pickerOptionsFromAccept(accept) {
16323
16379
  if (isDefined(accept)) {
16324
16380
  var acceptForPicker = Object.entries(accept).filter(function (_ref2) {
16325
- var _ref3 = _slicedToArray$b(_ref2, 2),
16381
+ var _ref3 = _slicedToArray$c(_ref2, 2),
16326
16382
  mimeType = _ref3[0],
16327
16383
  ext = _ref3[1];
16328
16384
 
@@ -16340,11 +16396,11 @@ function pickerOptionsFromAccept(accept) {
16340
16396
 
16341
16397
  return ok;
16342
16398
  }).reduce(function (agg, _ref4) {
16343
- var _ref5 = _slicedToArray$b(_ref4, 2),
16399
+ var _ref5 = _slicedToArray$c(_ref4, 2),
16344
16400
  mimeType = _ref5[0],
16345
16401
  ext = _ref5[1];
16346
16402
 
16347
- return _objectSpread$u(_objectSpread$u({}, agg), {}, _defineProperty$w({}, mimeType, ext));
16403
+ return _objectSpread$q(_objectSpread$q({}, agg), {}, _defineProperty$s({}, mimeType, ext));
16348
16404
  }, {});
16349
16405
  return [{
16350
16406
  // description is required due to https://crbug.com/1264708
@@ -16364,7 +16420,7 @@ function pickerOptionsFromAccept(accept) {
16364
16420
  function acceptPropAsAcceptAttr(accept) {
16365
16421
  if (isDefined(accept)) {
16366
16422
  return Object.entries(accept).reduce(function (a, _ref6) {
16367
- var _ref7 = _slicedToArray$b(_ref6, 2),
16423
+ var _ref7 = _slicedToArray$c(_ref6, 2),
16368
16424
  mimeType = _ref7[0],
16369
16425
  ext = _ref7[1];
16370
16426
 
@@ -16432,40 +16488,40 @@ function isExt(v) {
16432
16488
  * @typedef {"file-invalid-type"|"file-too-large"|"file-too-small"|"too-many-files"} ErrorCode
16433
16489
  */
16434
16490
 
16435
- var _excluded$g = ["children"],
16436
- _excluded2$5 = ["open"],
16491
+ var _excluded$d = ["children"],
16492
+ _excluded2$3 = ["open"],
16437
16493
  _excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
16438
16494
  _excluded4 = ["refKey", "onChange", "onClick"];
16439
16495
 
16440
- function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableSpread$b(); }
16496
+ function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$b(); }
16441
16497
 
16442
16498
  function _nonIterableSpread$b() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16443
16499
 
16444
16500
  function _iterableToArray$c(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16445
16501
 
16446
- function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$i(arr); }
16502
+ function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$j(arr); }
16447
16503
 
16448
- function _slicedToArray$a(arr, i) { return _arrayWithHoles$b(arr) || _iterableToArrayLimit$a(arr, i) || _unsupportedIterableToArray$i(arr, i) || _nonIterableRest$b(); }
16504
+ function _slicedToArray$b(arr, i) { return _arrayWithHoles$c(arr) || _iterableToArrayLimit$b(arr, i) || _unsupportedIterableToArray$j(arr, i) || _nonIterableRest$c(); }
16449
16505
 
16450
- function _nonIterableRest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16506
+ function _nonIterableRest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16451
16507
 
16452
- function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
16508
+ function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
16453
16509
 
16454
- function _arrayLikeToArray$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16510
+ function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16455
16511
 
16456
- function _iterableToArrayLimit$a(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16512
+ function _iterableToArrayLimit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16457
16513
 
16458
- function _arrayWithHoles$b(arr) { if (Array.isArray(arr)) return arr; }
16514
+ function _arrayWithHoles$c(arr) { if (Array.isArray(arr)) return arr; }
16459
16515
 
16460
- function ownKeys$t(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16516
+ function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16461
16517
 
16462
- function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) { _defineProperty$v(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16518
+ function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$r(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16463
16519
 
16464
- function _defineProperty$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16520
+ function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16465
16521
 
16466
- function _objectWithoutProperties$g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16522
+ function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16467
16523
 
16468
- function _objectWithoutPropertiesLoose$g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16524
+ function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16469
16525
  /**
16470
16526
  * Convenience wrapper component for the `useDropzone` hook
16471
16527
  *
@@ -16483,11 +16539,11 @@ function _objectWithoutPropertiesLoose$g(source, excluded) { if (source == null)
16483
16539
 
16484
16540
  var Dropzone = /*#__PURE__*/React$3.forwardRef(function (_ref, ref) {
16485
16541
  var children = _ref.children,
16486
- params = _objectWithoutProperties$g(_ref, _excluded$g);
16542
+ params = _objectWithoutProperties$d(_ref, _excluded$d);
16487
16543
 
16488
16544
  var _useDropzone = useDropzone(params),
16489
16545
  open = _useDropzone.open,
16490
- props = _objectWithoutProperties$g(_useDropzone, _excluded2$5);
16546
+ props = _objectWithoutProperties$d(_useDropzone, _excluded2$3);
16491
16547
 
16492
16548
  React$3.useImperativeHandle(ref, function () {
16493
16549
  return {
@@ -16495,13 +16551,13 @@ var Dropzone = /*#__PURE__*/React$3.forwardRef(function (_ref, ref) {
16495
16551
  };
16496
16552
  }, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element
16497
16553
 
16498
- return /*#__PURE__*/React__default["default"].createElement(React$3.Fragment, null, children(_objectSpread$t(_objectSpread$t({}, props), {}, {
16554
+ return /*#__PURE__*/React__default["default"].createElement(React$3.Fragment, null, children(_objectSpread$p(_objectSpread$p({}, props), {}, {
16499
16555
  open: open
16500
16556
  })));
16501
16557
  });
16502
16558
  Dropzone.displayName = "Dropzone"; // Add default props for react-docgen
16503
16559
 
16504
- var defaultProps$2 = {
16560
+ var defaultProps$1 = {
16505
16561
  disabled: false,
16506
16562
  getFilesFromEvent: fromEvent,
16507
16563
  maxSize: Infinity,
@@ -16517,7 +16573,7 @@ var defaultProps$2 = {
16517
16573
  useFsAccessApi: true,
16518
16574
  autoFocus: false
16519
16575
  };
16520
- Dropzone.defaultProps = defaultProps$2;
16576
+ Dropzone.defaultProps = defaultProps$1;
16521
16577
  Dropzone.propTypes = {
16522
16578
  /**
16523
16579
  * Render function that exposes the dropzone state and prop getter fns
@@ -16868,7 +16924,7 @@ var initialState = {
16868
16924
  function useDropzone() {
16869
16925
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16870
16926
 
16871
- var _defaultProps$props = _objectSpread$t(_objectSpread$t({}, defaultProps$2), props),
16927
+ var _defaultProps$props = _objectSpread$p(_objectSpread$p({}, defaultProps$1), props),
16872
16928
  accept = _defaultProps$props.accept,
16873
16929
  disabled = _defaultProps$props.disabled,
16874
16930
  getFilesFromEvent = _defaultProps$props.getFilesFromEvent,
@@ -16915,7 +16971,7 @@ function useDropzone() {
16915
16971
  var inputRef = React$3.useRef(null);
16916
16972
 
16917
16973
  var _useReducer = React$3.useReducer(reducer$1, initialState),
16918
- _useReducer2 = _slicedToArray$a(_useReducer, 2),
16974
+ _useReducer2 = _slicedToArray$b(_useReducer, 2),
16919
16975
  state = _useReducer2[0],
16920
16976
  dispatch = _useReducer2[1];
16921
16977
 
@@ -17085,12 +17141,12 @@ function useDropzone() {
17085
17141
  var fileRejections = [];
17086
17142
  files.forEach(function (file) {
17087
17143
  var _fileAccepted = fileAccepted(file, acceptAttr),
17088
- _fileAccepted2 = _slicedToArray$a(_fileAccepted, 2),
17144
+ _fileAccepted2 = _slicedToArray$b(_fileAccepted, 2),
17089
17145
  accepted = _fileAccepted2[0],
17090
17146
  acceptError = _fileAccepted2[1];
17091
17147
 
17092
17148
  var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
17093
- _fileMatchSize2 = _slicedToArray$a(_fileMatchSize, 2),
17149
+ _fileMatchSize2 = _slicedToArray$b(_fileMatchSize, 2),
17094
17150
  sizeMatch = _fileMatchSize2[0],
17095
17151
  sizeError = _fileMatchSize2[1];
17096
17152
 
@@ -17291,9 +17347,9 @@ function useDropzone() {
17291
17347
  onDragOver = _ref2.onDragOver,
17292
17348
  onDragLeave = _ref2.onDragLeave,
17293
17349
  onDrop = _ref2.onDrop,
17294
- rest = _objectWithoutProperties$g(_ref2, _excluded3$1);
17350
+ rest = _objectWithoutProperties$d(_ref2, _excluded3$1);
17295
17351
 
17296
- return _objectSpread$t(_objectSpread$t(_defineProperty$v({
17352
+ return _objectSpread$p(_objectSpread$p(_defineProperty$r({
17297
17353
  onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
17298
17354
  onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
17299
17355
  onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
@@ -17318,9 +17374,9 @@ function useDropzone() {
17318
17374
  refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey,
17319
17375
  onChange = _ref3.onChange,
17320
17376
  onClick = _ref3.onClick,
17321
- rest = _objectWithoutProperties$g(_ref3, _excluded4);
17377
+ rest = _objectWithoutProperties$d(_ref3, _excluded4);
17322
17378
 
17323
- var inputProps = _defineProperty$v({
17379
+ var inputProps = _defineProperty$r({
17324
17380
  accept: acceptAttr,
17325
17381
  multiple: multiple,
17326
17382
  type: "file",
@@ -17332,10 +17388,10 @@ function useDropzone() {
17332
17388
  tabIndex: -1
17333
17389
  }, refKey, inputRef);
17334
17390
 
17335
- return _objectSpread$t(_objectSpread$t({}, inputProps), rest);
17391
+ return _objectSpread$p(_objectSpread$p({}, inputProps), rest);
17336
17392
  };
17337
17393
  }, [inputRef, accept, multiple, onDropCb, disabled]);
17338
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17394
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17339
17395
  isFocused: isFocused && !disabled,
17340
17396
  getRootProps: getRootProps,
17341
17397
  getInputProps: getInputProps,
@@ -17354,40 +17410,40 @@ function reducer$1(state, action) {
17354
17410
  /* istanbul ignore next */
17355
17411
  switch (action.type) {
17356
17412
  case "focus":
17357
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17413
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17358
17414
  isFocused: true
17359
17415
  });
17360
17416
 
17361
17417
  case "blur":
17362
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17418
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17363
17419
  isFocused: false
17364
17420
  });
17365
17421
 
17366
17422
  case "openDialog":
17367
- return _objectSpread$t(_objectSpread$t({}, initialState), {}, {
17423
+ return _objectSpread$p(_objectSpread$p({}, initialState), {}, {
17368
17424
  isFileDialogActive: true
17369
17425
  });
17370
17426
 
17371
17427
  case "closeDialog":
17372
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17428
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17373
17429
  isFileDialogActive: false
17374
17430
  });
17375
17431
 
17376
17432
  case "setDraggedFiles":
17377
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17433
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17378
17434
  isDragActive: action.isDragActive,
17379
17435
  isDragAccept: action.isDragAccept,
17380
17436
  isDragReject: action.isDragReject
17381
17437
  });
17382
17438
 
17383
17439
  case "setFiles":
17384
- return _objectSpread$t(_objectSpread$t({}, state), {}, {
17440
+ return _objectSpread$p(_objectSpread$p({}, state), {}, {
17385
17441
  acceptedFiles: action.acceptedFiles,
17386
17442
  fileRejections: action.fileRejections
17387
17443
  });
17388
17444
 
17389
17445
  case "reset":
17390
- return _objectSpread$t({}, initialState);
17446
+ return _objectSpread$p({}, initialState);
17391
17447
 
17392
17448
  default:
17393
17449
  return state;
@@ -19615,7 +19671,7 @@ function shallowEqual(a, b) {
19615
19671
  return true;
19616
19672
  }
19617
19673
 
19618
- function _typeof$w(obj) { "@babel/helpers - typeof"; return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$w(obj); }
19674
+ function _typeof$s(obj) { "@babel/helpers - typeof"; return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$s(obj); }
19619
19675
 
19620
19676
  //
19621
19677
  // Event Handler Types -- Copied from @types/react/index.d.ts and adapted for Props.
@@ -19642,9 +19698,7 @@ var FilteredElementKeyMap = {
19642
19698
  };
19643
19699
  var EventKeys = ['dangerouslySetInnerHTML', 'onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onError', 'onErrorCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerEnterCapture', 'onPointerLeave', 'onPointerLeaveCapture', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
19644
19700
 
19645
- /** The type of easing function to use for animations */
19646
-
19647
- /** Specifies the duration of animation, the unit of this option is ms. */
19701
+ // Animation Types => TODO: Should be moved when react-smooth is typescriptified.
19648
19702
 
19649
19703
  /** the offset of a chart, which define the blank space all around */
19650
19704
 
@@ -19680,7 +19734,7 @@ var getEventHandlerOfChild = function getEventHandlerOfChild(originalHandler, da
19680
19734
  };
19681
19735
  };
19682
19736
  var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
19683
- if (!isObject_1(props) || _typeof$w(props) !== 'object') {
19737
+ if (!isObject_1(props) || _typeof$s(props) !== 'object') {
19684
19738
  return null;
19685
19739
  }
19686
19740
  var out = null;
@@ -19694,11 +19748,11 @@ var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
19694
19748
  return out;
19695
19749
  };
19696
19750
 
19697
- var _excluded$f = ["children"],
19698
- _excluded2$4 = ["children"];
19699
- function _objectWithoutProperties$f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19700
- function _objectWithoutPropertiesLoose$f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19701
- function _typeof$v(obj) { "@babel/helpers - typeof"; return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$v(obj); }
19751
+ var _excluded$c = ["children"],
19752
+ _excluded2$2 = ["children"];
19753
+ function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19754
+ function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19755
+ function _typeof$r(obj) { "@babel/helpers - typeof"; return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$r(obj); }
19702
19756
  var REACT_BROWSER_EVENT_MAP = {
19703
19757
  click: 'onClick',
19704
19758
  mousedown: 'onMouseDown',
@@ -19805,7 +19859,7 @@ var isSvgElement = function isSvgElement(child) {
19805
19859
  return child && child.type && isString_1(child.type) && SVG_TAGS.indexOf(child.type) >= 0;
19806
19860
  };
19807
19861
  var isDotProps = function isDotProps(dot) {
19808
- return dot && _typeof$v(dot) === 'object' && 'cx' in dot && 'cy' in dot && 'r' in dot;
19862
+ return dot && _typeof$r(dot) === 'object' && 'cx' in dot && 'cy' in dot && 'r' in dot;
19809
19863
  };
19810
19864
 
19811
19865
  /**
@@ -19897,10 +19951,10 @@ var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {
19897
19951
  if (!isNil_1(nextChild) && !isNil_1(prevChild)) {
19898
19952
  var _ref = nextChild.props || {},
19899
19953
  nextChildren = _ref.children,
19900
- nextProps = _objectWithoutProperties$f(_ref, _excluded$f);
19954
+ nextProps = _objectWithoutProperties$c(_ref, _excluded$c);
19901
19955
  var _ref2 = prevChild.props || {},
19902
19956
  prevChildren = _ref2.children,
19903
- prevProps = _objectWithoutProperties$f(_ref2, _excluded2$4);
19957
+ prevProps = _objectWithoutProperties$c(_ref2, _excluded2$2);
19904
19958
  if (nextChildren && prevChildren) {
19905
19959
  return shallowEqual(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren);
19906
19960
  }
@@ -19942,10 +19996,10 @@ var parseChildIndex = function parseChildIndex(child, children) {
19942
19996
  return toArray(children).indexOf(child);
19943
19997
  };
19944
19998
 
19945
- var _excluded$e = ["children", "width", "height", "viewBox", "className", "style"];
19999
+ var _excluded$b = ["children", "width", "height", "viewBox", "className", "style"];
19946
20000
  function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
19947
- function _objectWithoutProperties$e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19948
- function _objectWithoutPropertiesLoose$e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20001
+ function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20002
+ function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19949
20003
  function Surface(props) {
19950
20004
  var children = props.children,
19951
20005
  width = props.width,
@@ -19953,7 +20007,7 @@ function Surface(props) {
19953
20007
  viewBox = props.viewBox,
19954
20008
  className = props.className,
19955
20009
  style = props.style,
19956
- others = _objectWithoutProperties$e(props, _excluded$e);
20010
+ others = _objectWithoutProperties$b(props, _excluded$b);
19957
20011
  var svgView = viewBox || {
19958
20012
  width: width,
19959
20013
  height: height,
@@ -19970,14 +20024,14 @@ function Surface(props) {
19970
20024
  }), /*#__PURE__*/React__default["default"].createElement("title", null, props.title), /*#__PURE__*/React__default["default"].createElement("desc", null, props.desc), children);
19971
20025
  }
19972
20026
 
19973
- var _excluded$d = ["children", "className"];
20027
+ var _excluded$a = ["children", "className"];
19974
20028
  function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
19975
- function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19976
- function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20029
+ function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20030
+ function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19977
20031
  var Layer = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
19978
20032
  var children = props.children,
19979
20033
  className = props.className,
19980
- others = _objectWithoutProperties$d(props, _excluded$d);
20034
+ others = _objectWithoutProperties$a(props, _excluded$a);
19981
20035
  var layerClass = classNames('recharts-layer', className);
19982
20036
  return /*#__PURE__*/React__default["default"].createElement("g", _extends$l({
19983
20037
  className: layerClass
@@ -23392,16 +23446,7 @@ function stackOffsetWiggle(series, order) {
23392
23446
  stackOffsetNone(series, order);
23393
23447
  }
23394
23448
 
23395
- function _typeof$u(obj) { "@babel/helpers - typeof"; return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$u(obj); }
23396
- var _excluded$c = ["type", "size", "sizeType"];
23397
23449
  function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
23398
- function ownKeys$s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23399
- function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) { _defineProperty$u(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23400
- function _defineProperty$u(obj, key, value) { key = _toPropertyKey$t(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23401
- function _toPropertyKey$t(arg) { var key = _toPrimitive$t(arg, "string"); return _typeof$u(key) === "symbol" ? key : String(key); }
23402
- function _toPrimitive$t(input, hint) { if (_typeof$u(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$u(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23403
- function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23404
- function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23405
23450
  var symbolFactories = {
23406
23451
  symbolCircle: symbolCircle,
23407
23452
  symbolCross: symbolCross,
@@ -23440,35 +23485,31 @@ var calculateAreaSize = function calculateAreaSize(size, sizeType, type) {
23440
23485
  return Math.PI * size * size / 4;
23441
23486
  }
23442
23487
  };
23488
+ var symbolsDefaultProps = {
23489
+ type: 'circle',
23490
+ size: 64,
23491
+ sizeType: 'area'
23492
+ };
23443
23493
  var registerSymbol = function registerSymbol(key, factory) {
23444
23494
  symbolFactories["symbol".concat(upperFirst_1(key))] = factory;
23445
23495
  };
23446
- var Symbols = function Symbols(_ref) {
23447
- var _ref$type = _ref.type,
23448
- type = _ref$type === void 0 ? 'circle' : _ref$type,
23449
- _ref$size = _ref.size,
23450
- size = _ref$size === void 0 ? 64 : _ref$size,
23451
- _ref$sizeType = _ref.sizeType,
23452
- sizeType = _ref$sizeType === void 0 ? 'area' : _ref$sizeType,
23453
- rest = _objectWithoutProperties$c(_ref, _excluded$c);
23454
- var props = _objectSpread$s(_objectSpread$s({}, rest), {}, {
23455
- type: type,
23456
- size: size,
23457
- sizeType: sizeType
23458
- });
23459
-
23496
+ var Symbols = function Symbols(props) {
23460
23497
  /**
23461
23498
  * Calculate the path of curve
23462
23499
  * @return {String} path
23463
23500
  */
23464
23501
  var getPath = function getPath() {
23502
+ var size = props.size,
23503
+ sizeType = props.sizeType,
23504
+ type = props.type;
23465
23505
  var symbolFactory = getSymbolFactory(type);
23466
23506
  var symbol = Symbol$2().type(symbolFactory).size(calculateAreaSize(size, sizeType, type));
23467
23507
  return symbol();
23468
23508
  };
23469
23509
  var className = props.className,
23470
23510
  cx = props.cx,
23471
- cy = props.cy;
23511
+ cy = props.cy,
23512
+ size = props.size;
23472
23513
  var filteredProps = filterProps(props, true);
23473
23514
  if (cx === +cx && cy === +cy && size === +size) {
23474
23515
  return /*#__PURE__*/React__default["default"].createElement("path", _extends$k({}, filteredProps, {
@@ -23479,34 +23520,35 @@ var Symbols = function Symbols(_ref) {
23479
23520
  }
23480
23521
  return null;
23481
23522
  };
23523
+ Symbols.defaultProps = symbolsDefaultProps;
23482
23524
  Symbols.registerSymbol = registerSymbol;
23483
23525
 
23484
- function _typeof$t(obj) { "@babel/helpers - typeof"; return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$t(obj); }
23526
+ function _typeof$q(obj) { "@babel/helpers - typeof"; return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$q(obj); }
23485
23527
  function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
23486
- function ownKeys$r(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23487
- function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) { _defineProperty$t(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23488
- function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23489
- function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$s(descriptor.key), descriptor); } }
23490
- function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23491
- function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
23492
- function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
23493
- function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
23494
- function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$9(self); }
23495
- function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23496
- function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23497
- function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
23498
- function _defineProperty$t(obj, key, value) { key = _toPropertyKey$s(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23499
- function _toPropertyKey$s(arg) { var key = _toPrimitive$s(arg, "string"); return _typeof$t(key) === "symbol" ? key : String(key); }
23500
- function _toPrimitive$s(input, hint) { if (_typeof$t(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$t(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23528
+ function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23529
+ function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$q(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23530
+ function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23531
+ function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$p(descriptor.key), descriptor); } }
23532
+ function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23533
+ function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
23534
+ function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
23535
+ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
23536
+ function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$8(self); }
23537
+ function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23538
+ function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23539
+ function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
23540
+ function _defineProperty$q(obj, key, value) { key = _toPropertyKey$p(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23541
+ function _toPropertyKey$p(arg) { var key = _toPrimitive$p(arg, "string"); return _typeof$q(key) === "symbol" ? key : String(key); }
23542
+ function _toPrimitive$p(input, hint) { if (_typeof$q(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$q(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23501
23543
  var SIZE = 32;
23502
23544
  var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23503
- _inherits$9(DefaultLegendContent, _PureComponent);
23504
- var _super = _createSuper$9(DefaultLegendContent);
23545
+ _inherits$8(DefaultLegendContent, _PureComponent);
23546
+ var _super = _createSuper$8(DefaultLegendContent);
23505
23547
  function DefaultLegendContent() {
23506
- _classCallCheck$b(this, DefaultLegendContent);
23548
+ _classCallCheck$a(this, DefaultLegendContent);
23507
23549
  return _super.apply(this, arguments);
23508
23550
  }
23509
- _createClass$b(DefaultLegendContent, [{
23551
+ _createClass$a(DefaultLegendContent, [{
23510
23552
  key: "renderIcon",
23511
23553
  value:
23512
23554
  /**
@@ -23551,7 +23593,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23551
23593
  });
23552
23594
  }
23553
23595
  if ( /*#__PURE__*/React__default["default"].isValidElement(data.legendIcon)) {
23554
- var iconProps = _objectSpread$r({}, data);
23596
+ var iconProps = _objectSpread$o({}, data);
23555
23597
  delete iconProps.legendIcon;
23556
23598
  return /*#__PURE__*/React__default["default"].cloneElement(data.legendIcon, iconProps);
23557
23599
  }
@@ -23599,7 +23641,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23599
23641
  var finalFormatter = entry.formatter || formatter;
23600
23642
  var className = classNames((_classNames = {
23601
23643
  'recharts-legend-item': true
23602
- }, _defineProperty$t(_classNames, "legend-item-".concat(i), true), _defineProperty$t(_classNames, "inactive", entry.inactive), _classNames));
23644
+ }, _defineProperty$q(_classNames, "legend-item-".concat(i), true), _defineProperty$q(_classNames, "inactive", entry.inactive), _classNames));
23603
23645
  if (entry.type === 'none') {
23604
23646
  return null;
23605
23647
  }
@@ -23644,8 +23686,8 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23644
23686
  }]);
23645
23687
  return DefaultLegendContent;
23646
23688
  }(React$3.PureComponent);
23647
- _defineProperty$t(DefaultLegendContent, "displayName", 'Legend');
23648
- _defineProperty$t(DefaultLegendContent, "defaultProps", {
23689
+ _defineProperty$q(DefaultLegendContent, "displayName", 'Legend');
23690
+ _defineProperty$q(DefaultLegendContent, "defaultProps", {
23649
23691
  iconSize: 14,
23650
23692
  layout: 'horizontal',
23651
23693
  align: 'center',
@@ -23653,25 +23695,25 @@ _defineProperty$t(DefaultLegendContent, "defaultProps", {
23653
23695
  inactiveColor: '#ccc'
23654
23696
  });
23655
23697
 
23656
- function _typeof$s(obj) { "@babel/helpers - typeof"; return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$s(obj); }
23657
- var _excluded$b = ["ref"];
23658
- function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23659
- function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty$s(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23660
- function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23661
- function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$r(descriptor.key), descriptor); } }
23662
- function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23663
- function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
23664
- function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
23665
- function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
23666
- function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$8(self); }
23667
- function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23668
- function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23669
- function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
23670
- function _defineProperty$s(obj, key, value) { key = _toPropertyKey$r(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23671
- function _toPropertyKey$r(arg) { var key = _toPrimitive$r(arg, "string"); return _typeof$s(key) === "symbol" ? key : String(key); }
23672
- function _toPrimitive$r(input, hint) { if (_typeof$s(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$s(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23673
- function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23674
- function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23698
+ function _typeof$p(obj) { "@babel/helpers - typeof"; return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$p(obj); }
23699
+ var _excluded$9 = ["ref"];
23700
+ function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23701
+ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$p(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23702
+ function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23703
+ function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$o(descriptor.key), descriptor); } }
23704
+ function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23705
+ function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
23706
+ function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
23707
+ function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
23708
+ function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$7(self); }
23709
+ function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23710
+ function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23711
+ function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
23712
+ function _defineProperty$p(obj, key, value) { key = _toPropertyKey$o(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23713
+ function _toPropertyKey$o(arg) { var key = _toPrimitive$o(arg, "string"); return _typeof$p(key) === "symbol" ? key : String(key); }
23714
+ function _toPrimitive$o(input, hint) { if (_typeof$p(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$p(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23715
+ function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23716
+ function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23675
23717
  function defaultUniqBy$1(entry) {
23676
23718
  return entry.value;
23677
23719
  }
@@ -23692,27 +23734,27 @@ function renderContent$1(content, props) {
23692
23734
  return /*#__PURE__*/React__default["default"].createElement(content, props);
23693
23735
  }
23694
23736
  props.ref;
23695
- var otherProps = _objectWithoutProperties$b(props, _excluded$b);
23737
+ var otherProps = _objectWithoutProperties$9(props, _excluded$9);
23696
23738
  return /*#__PURE__*/React__default["default"].createElement(DefaultLegendContent, otherProps);
23697
23739
  }
23698
23740
  var EPS$2 = 1;
23699
23741
  var Legend = /*#__PURE__*/function (_PureComponent) {
23700
- _inherits$8(Legend, _PureComponent);
23701
- var _super = _createSuper$8(Legend);
23742
+ _inherits$7(Legend, _PureComponent);
23743
+ var _super = _createSuper$7(Legend);
23702
23744
  function Legend() {
23703
23745
  var _this;
23704
- _classCallCheck$a(this, Legend);
23746
+ _classCallCheck$9(this, Legend);
23705
23747
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23706
23748
  args[_key] = arguments[_key];
23707
23749
  }
23708
23750
  _this = _super.call.apply(_super, [this].concat(args));
23709
- _defineProperty$s(_assertThisInitialized$8(_this), "state", {
23751
+ _defineProperty$p(_assertThisInitialized$7(_this), "state", {
23710
23752
  boxWidth: -1,
23711
23753
  boxHeight: -1
23712
23754
  });
23713
23755
  return _this;
23714
23756
  }
23715
- _createClass$a(Legend, [{
23757
+ _createClass$9(Legend, [{
23716
23758
  key: "componentDidMount",
23717
23759
  value: function componentDidMount() {
23718
23760
  this.updateBBox();
@@ -23787,7 +23829,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23787
23829
  };
23788
23830
  }
23789
23831
  }
23790
- return _objectSpread$q(_objectSpread$q({}, hPos), vPos);
23832
+ return _objectSpread$n(_objectSpread$n({}, hPos), vPos);
23791
23833
  }
23792
23834
  }, {
23793
23835
  key: "updateBBox",
@@ -23830,7 +23872,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23830
23872
  wrapperStyle = _this$props2.wrapperStyle,
23831
23873
  payloadUniqBy = _this$props2.payloadUniqBy,
23832
23874
  payload = _this$props2.payload;
23833
- var outerStyle = _objectSpread$q(_objectSpread$q({
23875
+ var outerStyle = _objectSpread$n(_objectSpread$n({
23834
23876
  position: 'absolute',
23835
23877
  width: width || 'auto',
23836
23878
  height: height || 'auto'
@@ -23841,7 +23883,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23841
23883
  ref: function ref(node) {
23842
23884
  _this2.wrapperNode = node;
23843
23885
  }
23844
- }, renderContent$1(content, _objectSpread$q(_objectSpread$q({}, this.props), {}, {
23886
+ }, renderContent$1(content, _objectSpread$n(_objectSpread$n({}, this.props), {}, {
23845
23887
  payload: getUniqPayload$1(payloadUniqBy, payload)
23846
23888
  })));
23847
23889
  }
@@ -23864,8 +23906,8 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23864
23906
  }]);
23865
23907
  return Legend;
23866
23908
  }(React$3.PureComponent);
23867
- _defineProperty$s(Legend, "displayName", 'Legend');
23868
- _defineProperty$s(Legend, "defaultProps", {
23909
+ _defineProperty$p(Legend, "displayName", 'Legend');
23910
+ _defineProperty$p(Legend, "defaultProps", {
23869
23911
  iconSize: 14,
23870
23912
  layout: 'horizontal',
23871
23913
  align: 'center',
@@ -24429,13 +24471,13 @@ function setRafTimeout(callback) {
24429
24471
  requestAnimationFrame(shouldUpdate);
24430
24472
  }
24431
24473
 
24432
- function _typeof$r(obj) { "@babel/helpers - typeof"; return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$r(obj); }
24433
- function _toArray(arr) { return _arrayWithHoles$a(arr) || _iterableToArray$b(arr) || _unsupportedIterableToArray$h(arr) || _nonIterableRest$a(); }
24434
- function _nonIterableRest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24435
- function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
24436
- function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24474
+ function _typeof$o(obj) { "@babel/helpers - typeof"; return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$o(obj); }
24475
+ function _toArray(arr) { return _arrayWithHoles$b(arr) || _iterableToArray$b(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableRest$b(); }
24476
+ function _nonIterableRest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24477
+ function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
24478
+ function _arrayLikeToArray$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24437
24479
  function _iterableToArray$b(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24438
- function _arrayWithHoles$a(arr) { if (Array.isArray(arr)) return arr; }
24480
+ function _arrayWithHoles$b(arr) { if (Array.isArray(arr)) return arr; }
24439
24481
  function createAnimateManager() {
24440
24482
  var currStyle = {};
24441
24483
  var handleChange = function handleChange() {
@@ -24462,7 +24504,7 @@ function createAnimateManager() {
24462
24504
  setRafTimeout(setStyle.bind(null, restStyles));
24463
24505
  return;
24464
24506
  }
24465
- if (_typeof$r(_style) === 'object') {
24507
+ if (_typeof$o(_style) === 'object') {
24466
24508
  currStyle = _style;
24467
24509
  handleChange(currStyle);
24468
24510
  }
@@ -24489,12 +24531,12 @@ function createAnimateManager() {
24489
24531
  };
24490
24532
  }
24491
24533
 
24492
- function _typeof$q(obj) { "@babel/helpers - typeof"; return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$q(obj); }
24493
- function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24494
- function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$r(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24495
- function _defineProperty$r(obj, key, value) { key = _toPropertyKey$q(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24496
- function _toPropertyKey$q(arg) { var key = _toPrimitive$q(arg, "string"); return _typeof$q(key) === "symbol" ? key : String(key); }
24497
- function _toPrimitive$q(input, hint) { if (_typeof$q(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$q(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24534
+ function _typeof$n(obj) { "@babel/helpers - typeof"; return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$n(obj); }
24535
+ function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24536
+ function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$o(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24537
+ function _defineProperty$o(obj, key, value) { key = _toPropertyKey$n(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24538
+ function _toPropertyKey$n(arg) { var key = _toPrimitive$n(arg, "string"); return _typeof$n(key) === "symbol" ? key : String(key); }
24539
+ function _toPrimitive$n(input, hint) { if (_typeof$n(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$n(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24498
24540
  /* eslint no-console: 0 */
24499
24541
  var PREFIX_LIST$1 = ['Webkit', 'Moz', 'O', 'ms'];
24500
24542
  var IN_LINE_PREFIX_LIST = ['-webkit-', '-moz-', '-o-', '-ms-'];
@@ -24526,7 +24568,7 @@ var getDashCase = function getDashCase(name) {
24526
24568
  */
24527
24569
  var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24528
24570
  if (IN_COMPATIBLE_PROPERTY.indexOf(name) === -1) {
24529
- return _defineProperty$r({}, name, Number.isNaN(value) ? 0 : value);
24571
+ return _defineProperty$o({}, name, Number.isNaN(value) ? 0 : value);
24530
24572
  }
24531
24573
  var isTransition = name === 'transition';
24532
24574
  var camelName = name.replace(/(\w)/, function (v) {
@@ -24537,7 +24579,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24537
24579
  if (isTransition) {
24538
24580
  styleVal = value.replace(/(transform|transform-origin)/gim, "".concat(IN_LINE_PREFIX_LIST[i], "$1"));
24539
24581
  }
24540
- return _objectSpread$p(_objectSpread$p({}, result), {}, _defineProperty$r({}, property + camelName, styleVal));
24582
+ return _objectSpread$m(_objectSpread$m({}, result), {}, _defineProperty$o({}, property + camelName, styleVal));
24541
24583
  }, {});
24542
24584
  };
24543
24585
 
@@ -24547,7 +24589,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24547
24589
  */
24548
24590
  var mapObject = function mapObject(fn, obj) {
24549
24591
  return Object.keys(obj).reduce(function (res, key) {
24550
- return _objectSpread$p(_objectSpread$p({}, res), {}, _defineProperty$r({}, key, fn(key, obj[key])));
24592
+ return _objectSpread$m(_objectSpread$m({}, res), {}, _defineProperty$o({}, key, fn(key, obj[key])));
24551
24593
  }, {});
24552
24594
  };
24553
24595
 
@@ -24557,7 +24599,7 @@ var mapObject = function mapObject(fn, obj) {
24557
24599
  */
24558
24600
  var translateStyle = function translateStyle(style) {
24559
24601
  return Object.keys(style).reduce(function (res, key) {
24560
- return _objectSpread$p(_objectSpread$p({}, res), generatePrefixStyle$1(key, res[key]));
24602
+ return _objectSpread$m(_objectSpread$m({}, res), generatePrefixStyle$1(key, res[key]));
24561
24603
  }, style);
24562
24604
  };
24563
24605
  var getTransitionVal = function getTransitionVal(props, duration, easing) {
@@ -24585,16 +24627,16 @@ var warn$1 = function warn(condition, format, a, b, c, d, e, f) {
24585
24627
  }
24586
24628
  };
24587
24629
 
24588
- function _slicedToArray$9(arr, i) { return _arrayWithHoles$9(arr) || _iterableToArrayLimit$9(arr, i) || _unsupportedIterableToArray$g(arr, i) || _nonIterableRest$9(); }
24589
- function _nonIterableRest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24590
- function _iterableToArrayLimit$9(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24591
- function _arrayWithHoles$9(arr) { if (Array.isArray(arr)) return arr; }
24592
- function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$g(arr) || _nonIterableSpread$a(); }
24630
+ function _slicedToArray$a(arr, i) { return _arrayWithHoles$a(arr) || _iterableToArrayLimit$a(arr, i) || _unsupportedIterableToArray$h(arr, i) || _nonIterableRest$a(); }
24631
+ function _nonIterableRest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24632
+ function _iterableToArrayLimit$a(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24633
+ function _arrayWithHoles$a(arr) { if (Array.isArray(arr)) return arr; }
24634
+ function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$h(arr) || _nonIterableSpread$a(); }
24593
24635
  function _nonIterableSpread$a() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24594
- function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
24636
+ function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
24595
24637
  function _iterableToArray$a(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24596
- function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$g(arr); }
24597
- function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24638
+ function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$h(arr); }
24639
+ function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24598
24640
  var ACCURACY = 1e-4;
24599
24641
  var cubicBezierFactor = function cubicBezierFactor(c1, c2) {
24600
24642
  return [0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1];
@@ -24670,7 +24712,7 @@ var configBezier = function configBezier() {
24670
24712
  var _easing$1$split$0$spl = easing[1].split(')')[0].split(',').map(function (x) {
24671
24713
  return parseFloat(x);
24672
24714
  });
24673
- var _easing$1$split$0$spl2 = _slicedToArray$9(_easing$1$split$0$spl, 4);
24715
+ var _easing$1$split$0$spl2 = _slicedToArray$a(_easing$1$split$0$spl, 4);
24674
24716
  x1 = _easing$1$split$0$spl2[0];
24675
24717
  y1 = _easing$1$split$0$spl2[1];
24676
24718
  x2 = _easing$1$split$0$spl2[2];
@@ -24763,22 +24805,22 @@ var configEasing = function configEasing() {
24763
24805
  return null;
24764
24806
  };
24765
24807
 
24766
- function _typeof$p(obj) { "@babel/helpers - typeof"; return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$p(obj); }
24767
- function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$f(arr) || _nonIterableSpread$9(); }
24808
+ function _typeof$m(obj) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$m(obj); }
24809
+ function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$g(arr) || _nonIterableSpread$9(); }
24768
24810
  function _nonIterableSpread$9() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24769
24811
  function _iterableToArray$9(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24770
- function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$f(arr); }
24771
- function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24772
- function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$q(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24773
- function _defineProperty$q(obj, key, value) { key = _toPropertyKey$p(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24774
- function _toPropertyKey$p(arg) { var key = _toPrimitive$p(arg, "string"); return _typeof$p(key) === "symbol" ? key : String(key); }
24775
- function _toPrimitive$p(input, hint) { if (_typeof$p(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$p(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24776
- function _slicedToArray$8(arr, i) { return _arrayWithHoles$8(arr) || _iterableToArrayLimit$8(arr, i) || _unsupportedIterableToArray$f(arr, i) || _nonIterableRest$8(); }
24777
- function _nonIterableRest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24778
- function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
24779
- function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24780
- function _iterableToArrayLimit$8(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24781
- function _arrayWithHoles$8(arr) { if (Array.isArray(arr)) return arr; }
24812
+ function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$g(arr); }
24813
+ function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24814
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$n(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24815
+ function _defineProperty$n(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24816
+ function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
24817
+ function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24818
+ function _slicedToArray$9(arr, i) { return _arrayWithHoles$9(arr) || _iterableToArrayLimit$9(arr, i) || _unsupportedIterableToArray$g(arr, i) || _nonIterableRest$9(); }
24819
+ function _nonIterableRest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24820
+ function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
24821
+ function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24822
+ function _iterableToArrayLimit$9(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24823
+ function _arrayWithHoles$9(arr) { if (Array.isArray(arr)) return arr; }
24782
24824
  var alpha = function alpha(begin, end, k) {
24783
24825
  return begin + (end - begin) * k;
24784
24826
  };
@@ -24796,10 +24838,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24796
24838
  var nextStepVals = mapObject(function (key, val) {
24797
24839
  if (needContinue(val)) {
24798
24840
  var _easing = easing(val.from, val.to, val.velocity),
24799
- _easing2 = _slicedToArray$8(_easing, 2),
24841
+ _easing2 = _slicedToArray$9(_easing, 2),
24800
24842
  newX = _easing2[0],
24801
24843
  newV = _easing2[1];
24802
- return _objectSpread$o(_objectSpread$o({}, val), {}, {
24844
+ return _objectSpread$l(_objectSpread$l({}, val), {}, {
24803
24845
  from: newX,
24804
24846
  velocity: newV
24805
24847
  });
@@ -24809,7 +24851,7 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24809
24851
  if (steps < 1) {
24810
24852
  return mapObject(function (key, val) {
24811
24853
  if (needContinue(val)) {
24812
- return _objectSpread$o(_objectSpread$o({}, val), {}, {
24854
+ return _objectSpread$l(_objectSpread$l({}, val), {}, {
24813
24855
  velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),
24814
24856
  from: alpha(val.from, nextStepVals[key].from, steps)
24815
24857
  });
@@ -24824,10 +24866,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24824
24866
  var configUpdate = (function (from, to, easing, duration, render) {
24825
24867
  var interKeys = getIntersectionKeys(from, to);
24826
24868
  var timingStyle = interKeys.reduce(function (res, key) {
24827
- return _objectSpread$o(_objectSpread$o({}, res), {}, _defineProperty$q({}, key, [from[key], to[key]]));
24869
+ return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, [from[key], to[key]]));
24828
24870
  }, {});
24829
24871
  var stepperStyle = interKeys.reduce(function (res, key) {
24830
- return _objectSpread$o(_objectSpread$o({}, res), {}, _defineProperty$q({}, key, {
24872
+ return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, {
24831
24873
  from: from[key],
24832
24874
  velocity: 0,
24833
24875
  to: to[key]
@@ -24857,7 +24899,7 @@ var configUpdate = (function (from, to, easing, duration, render) {
24857
24899
  var steps = deltaTime / easing.dt;
24858
24900
  stepperStyle = calStepperVals(easing, stepperStyle, steps);
24859
24901
  // get union set and add compatible prefix
24860
- render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), getCurrStyle()));
24902
+ render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), getCurrStyle()));
24861
24903
  preTime = now;
24862
24904
  if (!shouldStopAnimation()) {
24863
24905
  cafId = requestAnimationFrame(update);
@@ -24875,14 +24917,14 @@ var configUpdate = (function (from, to, easing, duration, render) {
24875
24917
  }, timingStyle);
24876
24918
 
24877
24919
  // get union set and add compatible prefix
24878
- render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), currStyle));
24920
+ render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), currStyle));
24879
24921
  if (t < 1) {
24880
24922
  cafId = requestAnimationFrame(update);
24881
24923
  } else {
24882
24924
  var finalStyle = mapObject(function (key, val) {
24883
24925
  return alpha.apply(void 0, _toConsumableArray$9(val).concat([easing(1)]));
24884
24926
  }, timingStyle);
24885
- render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), finalStyle));
24927
+ render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), finalStyle));
24886
24928
  }
24887
24929
  };
24888
24930
  update = easing.isStepper ? stepperUpdate : timingUpdate;
@@ -24898,37 +24940,37 @@ var configUpdate = (function (from, to, easing, duration, render) {
24898
24940
  };
24899
24941
  });
24900
24942
 
24901
- function _typeof$o(obj) { "@babel/helpers - typeof"; return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$o(obj); }
24902
- var _excluded$a = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
24903
- function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24904
- function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24905
- function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$e(arr) || _nonIterableSpread$8(); }
24943
+ function _typeof$l(obj) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$l(obj); }
24944
+ var _excluded$8 = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
24945
+ function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24946
+ function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24947
+ function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$f(arr) || _nonIterableSpread$8(); }
24906
24948
  function _nonIterableSpread$8() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24907
- function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
24949
+ function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
24908
24950
  function _iterableToArray$8(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24909
- function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$e(arr); }
24910
- function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24911
- function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24912
- function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$p(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24913
- function _defineProperty$p(obj, key, value) { key = _toPropertyKey$o(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24914
- function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24915
- function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$o(descriptor.key), descriptor); } }
24916
- function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24917
- function _toPropertyKey$o(arg) { var key = _toPrimitive$o(arg, "string"); return _typeof$o(key) === "symbol" ? key : String(key); }
24918
- function _toPrimitive$o(input, hint) { if (_typeof$o(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$o(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24919
- function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
24920
- function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
24921
- function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
24922
- function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$7(self); }
24923
- function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24924
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24925
- function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
24951
+ function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$f(arr); }
24952
+ function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24953
+ function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24954
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$m(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24955
+ function _defineProperty$m(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24956
+ function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24957
+ function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$l(descriptor.key), descriptor); } }
24958
+ function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24959
+ function _toPropertyKey$l(arg) { var key = _toPrimitive$l(arg, "string"); return _typeof$l(key) === "symbol" ? key : String(key); }
24960
+ function _toPrimitive$l(input, hint) { if (_typeof$l(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$l(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24961
+ function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
24962
+ function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
24963
+ function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
24964
+ function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$6(self); }
24965
+ function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24966
+ function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24967
+ function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
24926
24968
  var Animate = /*#__PURE__*/function (_PureComponent) {
24927
- _inherits$7(Animate, _PureComponent);
24928
- var _super = _createSuper$7(Animate);
24969
+ _inherits$6(Animate, _PureComponent);
24970
+ var _super = _createSuper$6(Animate);
24929
24971
  function Animate(props, context) {
24930
24972
  var _this;
24931
- _classCallCheck$9(this, Animate);
24973
+ _classCallCheck$8(this, Animate);
24932
24974
  _this = _super.call(this, props, context);
24933
24975
  var _this$props = _this.props,
24934
24976
  isActive = _this$props.isActive,
@@ -24938,8 +24980,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24938
24980
  steps = _this$props.steps,
24939
24981
  children = _this$props.children,
24940
24982
  duration = _this$props.duration;
24941
- _this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$7(_this));
24942
- _this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$7(_this));
24983
+ _this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$6(_this));
24984
+ _this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$6(_this));
24943
24985
  if (!isActive || duration <= 0) {
24944
24986
  _this.state = {
24945
24987
  style: {}
@@ -24951,7 +24993,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24951
24993
  style: to
24952
24994
  };
24953
24995
  }
24954
- return _possibleConstructorReturn$7(_this);
24996
+ return _possibleConstructorReturn$6(_this);
24955
24997
  }
24956
24998
  if (steps && steps.length) {
24957
24999
  _this.state = {
@@ -24962,10 +25004,10 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24962
25004
  _this.state = {
24963
25005
  style: from
24964
25006
  };
24965
- return _possibleConstructorReturn$7(_this);
25007
+ return _possibleConstructorReturn$6(_this);
24966
25008
  }
24967
25009
  _this.state = {
24968
- style: attributeName ? _defineProperty$p({}, attributeName, from) : from
25010
+ style: attributeName ? _defineProperty$m({}, attributeName, from) : from
24969
25011
  };
24970
25012
  } else {
24971
25013
  _this.state = {
@@ -24974,7 +25016,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24974
25016
  }
24975
25017
  return _this;
24976
25018
  }
24977
- _createClass$9(Animate, [{
25019
+ _createClass$8(Animate, [{
24978
25020
  key: "componentDidMount",
24979
25021
  value: function componentDidMount() {
24980
25022
  var _this$props2 = this.props,
@@ -25002,7 +25044,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25002
25044
  }
25003
25045
  if (!isActive) {
25004
25046
  var newState = {
25005
- style: attributeName ? _defineProperty$p({}, attributeName, to) : to
25047
+ style: attributeName ? _defineProperty$m({}, attributeName, to) : to
25006
25048
  };
25007
25049
  if (this.state && style) {
25008
25050
  if (attributeName && style[attributeName] !== to || !attributeName && style !== to) {
@@ -25025,14 +25067,14 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25025
25067
  var from = isTriggered || shouldReAnimate ? currentFrom : prevProps.to;
25026
25068
  if (this.state && style) {
25027
25069
  var _newState = {
25028
- style: attributeName ? _defineProperty$p({}, attributeName, from) : from
25070
+ style: attributeName ? _defineProperty$m({}, attributeName, from) : from
25029
25071
  };
25030
25072
  if (attributeName && [attributeName] !== from || !attributeName && style !== from) {
25031
25073
  // eslint-disable-next-line react/no-did-update-set-state
25032
25074
  this.setState(_newState);
25033
25075
  }
25034
25076
  }
25035
- this.runAnimation(_objectSpread$n(_objectSpread$n({}, this.props), {}, {
25077
+ this.runAnimation(_objectSpread$k(_objectSpread$k({}, this.props), {}, {
25036
25078
  from: from,
25037
25079
  begin: 0
25038
25080
  }));
@@ -25115,7 +25157,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25115
25157
  }), duration]);
25116
25158
  }
25117
25159
  var transition = getTransitionVal(properties, duration, easing);
25118
- var newStyle = _objectSpread$n(_objectSpread$n(_objectSpread$n({}, preItem.style), style), {}, {
25160
+ var newStyle = _objectSpread$k(_objectSpread$k(_objectSpread$k({}, preItem.style), style), {}, {
25119
25161
  transition: transition
25120
25162
  });
25121
25163
  return [].concat(_toConsumableArray$8(sequence), [newStyle, duration, onAnimationEnd]).filter(identity$9);
@@ -25147,9 +25189,9 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25147
25189
  this.runStepAnimation(props);
25148
25190
  return;
25149
25191
  }
25150
- var to = attributeName ? _defineProperty$p({}, attributeName, propsTo) : propsTo;
25192
+ var to = attributeName ? _defineProperty$m({}, attributeName, propsTo) : propsTo;
25151
25193
  var transition = getTransitionVal(Object.keys(to), duration, easing);
25152
- manager.start([onAnimationStart, begin, _objectSpread$n(_objectSpread$n({}, to), {}, {
25194
+ manager.start([onAnimationStart, begin, _objectSpread$k(_objectSpread$k({}, to), {}, {
25153
25195
  transition: transition
25154
25196
  }), duration, onAnimationEnd]);
25155
25197
  }
@@ -25170,7 +25212,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25170
25212
  _this$props4.onAnimationEnd;
25171
25213
  _this$props4.shouldReAnimate;
25172
25214
  _this$props4.onAnimationReStart;
25173
- var others = _objectWithoutProperties$a(_this$props4, _excluded$a);
25215
+ var others = _objectWithoutProperties$8(_this$props4, _excluded$8);
25174
25216
  var count = React$3.Children.count(children);
25175
25217
  // eslint-disable-next-line react/destructuring-assignment
25176
25218
  var stateStyle = translateStyle(this.state.style);
@@ -25185,8 +25227,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25185
25227
  _container$props$styl = _container$props.style,
25186
25228
  style = _container$props$styl === void 0 ? {} : _container$props$styl,
25187
25229
  className = _container$props.className;
25188
- var res = /*#__PURE__*/React$3.cloneElement(container, _objectSpread$n(_objectSpread$n({}, others), {}, {
25189
- style: _objectSpread$n(_objectSpread$n({}, style), stateStyle),
25230
+ var res = /*#__PURE__*/React$3.cloneElement(container, _objectSpread$k(_objectSpread$k({}, others), {}, {
25231
+ style: _objectSpread$k(_objectSpread$k({}, style), stateStyle),
25190
25232
  className: className
25191
25233
  }));
25192
25234
  return res;
@@ -25711,10 +25753,10 @@ var defineProperty$2 = (function() {
25711
25753
  } catch (e) {}
25712
25754
  }());
25713
25755
 
25714
- var _defineProperty$o = defineProperty$2;
25756
+ var _defineProperty$l = defineProperty$2;
25715
25757
 
25716
25758
  var constant$1 = constant_1,
25717
- defineProperty$1 = _defineProperty$o,
25759
+ defineProperty$1 = _defineProperty$l,
25718
25760
  identity$7 = identity_1;
25719
25761
 
25720
25762
  /**
@@ -25891,18 +25933,18 @@ var sortBy_1 = sortBy;
25891
25933
  /**
25892
25934
  * @fileOverview Default Tooltip Content
25893
25935
  */
25894
- function _typeof$n(obj) { "@babel/helpers - typeof"; return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$n(obj); }
25895
- function _slicedToArray$7(arr, i) { return _arrayWithHoles$7(arr) || _iterableToArrayLimit$7(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$7(); }
25896
- function _nonIterableRest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25897
- function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
25898
- function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25899
- function _iterableToArrayLimit$7(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25900
- function _arrayWithHoles$7(arr) { if (Array.isArray(arr)) return arr; }
25901
- function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25902
- function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$n(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25903
- function _defineProperty$n(obj, key, value) { key = _toPropertyKey$n(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25904
- function _toPropertyKey$n(arg) { var key = _toPrimitive$n(arg, "string"); return _typeof$n(key) === "symbol" ? key : String(key); }
25905
- function _toPrimitive$n(input, hint) { if (_typeof$n(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$n(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25936
+ function _typeof$k(obj) { "@babel/helpers - typeof"; return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$k(obj); }
25937
+ function _slicedToArray$8(arr, i) { return _arrayWithHoles$8(arr) || _iterableToArrayLimit$8(arr, i) || _unsupportedIterableToArray$e(arr, i) || _nonIterableRest$8(); }
25938
+ function _nonIterableRest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25939
+ function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
25940
+ function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25941
+ function _iterableToArrayLimit$8(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25942
+ function _arrayWithHoles$8(arr) { if (Array.isArray(arr)) return arr; }
25943
+ function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25944
+ function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$k(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25945
+ function _defineProperty$k(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25946
+ function _toPropertyKey$k(arg) { var key = _toPrimitive$k(arg, "string"); return _typeof$k(key) === "symbol" ? key : String(key); }
25947
+ function _toPrimitive$k(input, hint) { if (_typeof$k(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$k(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25906
25948
  function defaultFormatter(value) {
25907
25949
  return isArray_1(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(' ~ ') : value;
25908
25950
  }
@@ -25932,7 +25974,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25932
25974
  if (entry.type === 'none') {
25933
25975
  return null;
25934
25976
  }
25935
- var finalItemStyle = _objectSpread$m({
25977
+ var finalItemStyle = _objectSpread$j({
25936
25978
  display: 'block',
25937
25979
  paddingTop: 4,
25938
25980
  paddingBottom: 4,
@@ -25946,7 +25988,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25946
25988
  if (finalFormatter && finalValue != null && finalName != null) {
25947
25989
  var formatted = finalFormatter(value, name, entry, i, payload);
25948
25990
  if (Array.isArray(formatted)) {
25949
- var _formatted = _slicedToArray$7(formatted, 2);
25991
+ var _formatted = _slicedToArray$8(formatted, 2);
25950
25992
  finalValue = _formatted[0];
25951
25993
  finalName = _formatted[1];
25952
25994
  } else {
@@ -25978,14 +26020,14 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25978
26020
  }
25979
26021
  return null;
25980
26022
  };
25981
- var finalStyle = _objectSpread$m({
26023
+ var finalStyle = _objectSpread$j({
25982
26024
  margin: 0,
25983
26025
  padding: 10,
25984
26026
  backgroundColor: '#fff',
25985
26027
  border: '1px solid #ccc',
25986
26028
  whiteSpace: 'nowrap'
25987
26029
  }, contentStyle);
25988
- var finalLabelStyle = _objectSpread$m({
26030
+ var finalLabelStyle = _objectSpread$j({
25989
26031
  margin: 0
25990
26032
  }, labelStyle);
25991
26033
  var hasLabel = !isNil_1(label);
@@ -26026,22 +26068,18 @@ var Global = {
26026
26068
  }
26027
26069
  };
26028
26070
 
26029
- function _typeof$m(obj) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$m(obj); }
26030
- function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26031
- function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$m(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26032
- function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26033
- function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$m(descriptor.key), descriptor); } }
26034
- function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26035
- function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
26036
- function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
26037
- function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
26038
- function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$6(self); }
26039
- function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26040
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26041
- function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
26042
- function _defineProperty$m(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26043
- function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
26044
- function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26071
+ function _typeof$j(obj) { "@babel/helpers - typeof"; return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$j(obj); }
26072
+ function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26073
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$j(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26074
+ function _defineProperty$j(obj, key, value) { key = _toPropertyKey$j(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26075
+ function _toPropertyKey$j(arg) { var key = _toPrimitive$j(arg, "string"); return _typeof$j(key) === "symbol" ? key : String(key); }
26076
+ function _toPrimitive$j(input, hint) { if (_typeof$j(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$j(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26077
+ function _slicedToArray$7(arr, i) { return _arrayWithHoles$7(arr) || _iterableToArrayLimit$7(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$7(); }
26078
+ function _nonIterableRest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
26079
+ function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
26080
+ function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26081
+ function _iterableToArrayLimit$7(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
26082
+ function _arrayWithHoles$7(arr) { if (Array.isArray(arr)) return arr; }
26045
26083
  var CLS_PREFIX = 'recharts-tooltip-wrapper';
26046
26084
  var EPS$1 = 1;
26047
26085
  function defaultUniqBy(entry) {
@@ -26065,204 +26103,7 @@ function renderContent(content, props) {
26065
26103
  }
26066
26104
  return /*#__PURE__*/React__default["default"].createElement(DefaultTooltipContent, props);
26067
26105
  }
26068
- var Tooltip$1 = /*#__PURE__*/function (_PureComponent) {
26069
- _inherits$6(Tooltip, _PureComponent);
26070
- var _super = _createSuper$6(Tooltip);
26071
- function Tooltip() {
26072
- var _this;
26073
- _classCallCheck$8(this, Tooltip);
26074
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26075
- args[_key] = arguments[_key];
26076
- }
26077
- _this = _super.call.apply(_super, [this].concat(args));
26078
- _defineProperty$m(_assertThisInitialized$6(_this), "state", {
26079
- boxWidth: -1,
26080
- boxHeight: -1,
26081
- dismissed: false,
26082
- dismissedAtCoordinate: {
26083
- x: 0,
26084
- y: 0
26085
- }
26086
- });
26087
- _defineProperty$m(_assertThisInitialized$6(_this), "handleKeyDown", function (event) {
26088
- if (event.key === 'Escape') {
26089
- _this.setState({
26090
- dismissed: true,
26091
- dismissedAtCoordinate: _objectSpread$l(_objectSpread$l({}, _this.state.dismissedAtCoordinate), {}, {
26092
- x: _this.props.coordinate.x,
26093
- y: _this.props.coordinate.y
26094
- })
26095
- });
26096
- }
26097
- });
26098
- _defineProperty$m(_assertThisInitialized$6(_this), "getTranslate", function (_ref) {
26099
- var key = _ref.key,
26100
- tooltipDimension = _ref.tooltipDimension,
26101
- viewBoxDimension = _ref.viewBoxDimension;
26102
- var _this$props = _this.props,
26103
- allowEscapeViewBox = _this$props.allowEscapeViewBox,
26104
- reverseDirection = _this$props.reverseDirection,
26105
- coordinate = _this$props.coordinate,
26106
- offset = _this$props.offset,
26107
- position = _this$props.position,
26108
- viewBox = _this$props.viewBox;
26109
- if (position && isNumber(position[key])) {
26110
- return position[key];
26111
- }
26112
- var negative = coordinate[key] - tooltipDimension - offset;
26113
- var positive = coordinate[key] + offset;
26114
- if (allowEscapeViewBox[key]) {
26115
- return reverseDirection[key] ? negative : positive;
26116
- }
26117
- if (reverseDirection[key]) {
26118
- var _tooltipBoundary = negative;
26119
- var _viewBoxBoundary = viewBox[key];
26120
- if (_tooltipBoundary < _viewBoxBoundary) {
26121
- return Math.max(positive, viewBox[key]);
26122
- }
26123
- return Math.max(negative, viewBox[key]);
26124
- }
26125
- var tooltipBoundary = positive + tooltipDimension;
26126
- var viewBoxBoundary = viewBox[key] + viewBoxDimension;
26127
- if (tooltipBoundary > viewBoxBoundary) {
26128
- return Math.max(negative, viewBox[key]);
26129
- }
26130
- return Math.max(positive, viewBox[key]);
26131
- });
26132
- return _this;
26133
- }
26134
- _createClass$8(Tooltip, [{
26135
- key: "componentDidMount",
26136
- value: function componentDidMount() {
26137
- this.updateBBox();
26138
- }
26139
- }, {
26140
- key: "componentWillUnmount",
26141
- value: function componentWillUnmount() {
26142
- document.removeEventListener('keydown', this.handleKeyDown);
26143
- }
26144
- }, {
26145
- key: "componentDidUpdate",
26146
- value: function componentDidUpdate() {
26147
- this.updateBBox();
26148
- }
26149
- }, {
26150
- key: "updateBBox",
26151
- value: function updateBBox() {
26152
- var _this$state = this.state,
26153
- boxWidth = _this$state.boxWidth,
26154
- boxHeight = _this$state.boxHeight,
26155
- dismissed = _this$state.dismissed;
26156
- if (dismissed) {
26157
- document.removeEventListener('keydown', this.handleKeyDown);
26158
- if (this.props.coordinate.x !== this.state.dismissedAtCoordinate.x || this.props.coordinate.y !== this.state.dismissedAtCoordinate.y) {
26159
- this.setState({
26160
- dismissed: false
26161
- });
26162
- }
26163
- } else {
26164
- document.addEventListener('keydown', this.handleKeyDown);
26165
- }
26166
- if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
26167
- var box = this.wrapperNode.getBoundingClientRect();
26168
- if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
26169
- this.setState({
26170
- boxWidth: box.width,
26171
- boxHeight: box.height
26172
- });
26173
- }
26174
- } else if (boxWidth !== -1 || boxHeight !== -1) {
26175
- this.setState({
26176
- boxWidth: -1,
26177
- boxHeight: -1
26178
- });
26179
- }
26180
- }
26181
- }, {
26182
- key: "render",
26183
- value: function render() {
26184
- var _classNames,
26185
- _this2 = this;
26186
- var _this$props2 = this.props,
26187
- payload = _this$props2.payload,
26188
- isAnimationActive = _this$props2.isAnimationActive,
26189
- animationDuration = _this$props2.animationDuration,
26190
- animationEasing = _this$props2.animationEasing,
26191
- filterNull = _this$props2.filterNull,
26192
- payloadUniqBy = _this$props2.payloadUniqBy;
26193
- var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
26194
- return !isNil_1(entry.value);
26195
- }) : payload);
26196
- var hasPayload = finalPayload && finalPayload.length;
26197
- var _this$props3 = this.props,
26198
- content = _this$props3.content,
26199
- viewBox = _this$props3.viewBox,
26200
- coordinate = _this$props3.coordinate,
26201
- position = _this$props3.position,
26202
- active = _this$props3.active,
26203
- wrapperStyle = _this$props3.wrapperStyle;
26204
- var outerStyle = _objectSpread$l({
26205
- pointerEvents: 'none',
26206
- visibility: !this.state.dismissed && active && hasPayload ? 'visible' : 'hidden',
26207
- position: 'absolute',
26208
- top: 0,
26209
- left: 0
26210
- }, wrapperStyle);
26211
- var translateX, translateY;
26212
- if (position && isNumber(position.x) && isNumber(position.y)) {
26213
- translateX = position.x;
26214
- translateY = position.y;
26215
- } else {
26216
- var _this$state2 = this.state,
26217
- boxWidth = _this$state2.boxWidth,
26218
- boxHeight = _this$state2.boxHeight;
26219
- if (boxWidth > 0 && boxHeight > 0 && coordinate) {
26220
- translateX = this.getTranslate({
26221
- key: 'x',
26222
- tooltipDimension: boxWidth,
26223
- viewBoxDimension: viewBox.width
26224
- });
26225
- translateY = this.getTranslate({
26226
- key: 'y',
26227
- tooltipDimension: boxHeight,
26228
- viewBoxDimension: viewBox.height
26229
- });
26230
- } else {
26231
- outerStyle.visibility = 'hidden';
26232
- }
26233
- }
26234
- outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
26235
- transform: this.props.useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
26236
- })), outerStyle);
26237
- if (isAnimationActive && active) {
26238
- outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
26239
- transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
26240
- })), outerStyle);
26241
- }
26242
- var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
26243
- return (
26244
- /*#__PURE__*/
26245
- // ESLint is disabled to allow listening to the `Escape` key. Refer to
26246
- // https://github.com/recharts/recharts/pull/2925
26247
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
26248
- React__default["default"].createElement("div", {
26249
- tabIndex: -1,
26250
- role: "dialog",
26251
- className: cls,
26252
- style: outerStyle,
26253
- ref: function ref(node) {
26254
- _this2.wrapperNode = node;
26255
- }
26256
- }, renderContent(content, _objectSpread$l(_objectSpread$l({}, this.props), {}, {
26257
- payload: finalPayload
26258
- })))
26259
- );
26260
- }
26261
- }]);
26262
- return Tooltip;
26263
- }(React$3.PureComponent);
26264
- _defineProperty$m(Tooltip$1, "displayName", 'Tooltip');
26265
- _defineProperty$m(Tooltip$1, "defaultProps", {
26106
+ var tooltipDefaultProps = {
26266
26107
  active: false,
26267
26108
  allowEscapeViewBox: {
26268
26109
  x: false,
@@ -26283,6 +26124,9 @@ _defineProperty$m(Tooltip$1, "defaultProps", {
26283
26124
  x: 0,
26284
26125
  y: 0
26285
26126
  },
26127
+ // this doesn't exist on TooltipProps
26128
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26129
+ // @ts-ignore
26286
26130
  cursorStyle: {},
26287
26131
  separator: ' : ',
26288
26132
  wrapperStyle: {},
@@ -26296,7 +26140,173 @@ _defineProperty$m(Tooltip$1, "defaultProps", {
26296
26140
  animationDuration: 400,
26297
26141
  filterNull: true,
26298
26142
  useTranslate3d: false
26299
- });
26143
+ };
26144
+ var Tooltip$1 = function Tooltip(props) {
26145
+ var _classNames;
26146
+ var _useState = React$3.useState(-1),
26147
+ _useState2 = _slicedToArray$7(_useState, 2),
26148
+ boxWidth = _useState2[0],
26149
+ setBoxWidth = _useState2[1];
26150
+ var _useState3 = React$3.useState(-1),
26151
+ _useState4 = _slicedToArray$7(_useState3, 2),
26152
+ boxHeight = _useState4[0],
26153
+ setBoxHeight = _useState4[1];
26154
+ var _useState5 = React$3.useState(false),
26155
+ _useState6 = _slicedToArray$7(_useState5, 2),
26156
+ dismissed = _useState6[0],
26157
+ setDismissed = _useState6[1];
26158
+ var _useState7 = React$3.useState({
26159
+ x: 0,
26160
+ y: 0
26161
+ }),
26162
+ _useState8 = _slicedToArray$7(_useState7, 2),
26163
+ dismissedAtCoordinate = _useState8[0],
26164
+ setDismissedAtCoordinate = _useState8[1];
26165
+ var wrapperNode = React$3.useRef();
26166
+ var allowEscapeViewBox = props.allowEscapeViewBox,
26167
+ reverseDirection = props.reverseDirection,
26168
+ coordinate = props.coordinate,
26169
+ offset = props.offset,
26170
+ position = props.position,
26171
+ viewBox = props.viewBox;
26172
+ var handleKeyDown = React$3.useCallback(function (event) {
26173
+ if (event.key === 'Escape') {
26174
+ setDismissed(true);
26175
+ setDismissedAtCoordinate(function (prev) {
26176
+ return _objectSpread$i(_objectSpread$i({}, prev), {}, {
26177
+ x: coordinate === null || coordinate === void 0 ? void 0 : coordinate.x,
26178
+ y: coordinate === null || coordinate === void 0 ? void 0 : coordinate.y
26179
+ });
26180
+ });
26181
+ }
26182
+ }, [coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, coordinate === null || coordinate === void 0 ? void 0 : coordinate.y]);
26183
+ React$3.useEffect(function () {
26184
+ var updateBBox = function updateBBox() {
26185
+ if (dismissed) {
26186
+ document.removeEventListener('keydown', handleKeyDown);
26187
+ if ((coordinate === null || coordinate === void 0 ? void 0 : coordinate.x) !== dismissedAtCoordinate.x || (coordinate === null || coordinate === void 0 ? void 0 : coordinate.y) !== dismissedAtCoordinate.y) {
26188
+ setDismissed(false);
26189
+ }
26190
+ } else {
26191
+ document.addEventListener('keydown', handleKeyDown);
26192
+ }
26193
+ if (wrapperNode.current && wrapperNode.current.getBoundingClientRect) {
26194
+ var box = wrapperNode.current.getBoundingClientRect();
26195
+ if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
26196
+ setBoxWidth(box.width);
26197
+ setBoxHeight(box.height);
26198
+ }
26199
+ } else if (boxWidth !== -1 || boxHeight !== -1) {
26200
+ setBoxWidth(-1);
26201
+ setBoxHeight(-1);
26202
+ }
26203
+ };
26204
+ updateBBox();
26205
+ return function () {
26206
+ document.removeEventListener('keydown', handleKeyDown);
26207
+ };
26208
+ }, [boxHeight, boxWidth, coordinate, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]);
26209
+ var getTranslate = function getTranslate(_ref) {
26210
+ var key = _ref.key,
26211
+ tooltipDimension = _ref.tooltipDimension,
26212
+ viewBoxDimension = _ref.viewBoxDimension;
26213
+ if (position && isNumber(position[key])) {
26214
+ return position[key];
26215
+ }
26216
+ var negative = coordinate[key] - tooltipDimension - offset;
26217
+ var positive = coordinate[key] + offset;
26218
+ if (allowEscapeViewBox !== null && allowEscapeViewBox !== void 0 && allowEscapeViewBox[key]) {
26219
+ return reverseDirection[key] ? negative : positive;
26220
+ }
26221
+ if (reverseDirection !== null && reverseDirection !== void 0 && reverseDirection[key]) {
26222
+ var _tooltipBoundary = negative;
26223
+ var _viewBoxBoundary = viewBox[key];
26224
+ if (_tooltipBoundary < _viewBoxBoundary) {
26225
+ return Math.max(positive, viewBox[key]);
26226
+ }
26227
+ return Math.max(negative, viewBox[key]);
26228
+ }
26229
+ var tooltipBoundary = positive + tooltipDimension;
26230
+ var viewBoxBoundary = viewBox[key] + viewBoxDimension;
26231
+ if (tooltipBoundary > viewBoxBoundary) {
26232
+ return Math.max(negative, viewBox[key]);
26233
+ }
26234
+ return Math.max(positive, viewBox[key]);
26235
+ };
26236
+ var payload = props.payload,
26237
+ payloadUniqBy = props.payloadUniqBy,
26238
+ filterNull = props.filterNull,
26239
+ active = props.active,
26240
+ wrapperStyle = props.wrapperStyle,
26241
+ useTranslate3d = props.useTranslate3d,
26242
+ isAnimationActive = props.isAnimationActive,
26243
+ animationDuration = props.animationDuration,
26244
+ animationEasing = props.animationEasing;
26245
+ var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
26246
+ return !isNil_1(entry.value);
26247
+ }) : payload);
26248
+ var hasPayload = finalPayload && finalPayload.length;
26249
+ var content = props.content;
26250
+ var outerStyle = _objectSpread$i({
26251
+ pointerEvents: 'none',
26252
+ visibility: !dismissed && active && hasPayload ? 'visible' : 'hidden',
26253
+ position: 'absolute',
26254
+ top: 0,
26255
+ left: 0
26256
+ }, wrapperStyle);
26257
+ var translateX, translateY;
26258
+ if (position && isNumber(position.x) && isNumber(position.y)) {
26259
+ translateX = position.x;
26260
+ translateY = position.y;
26261
+ } else if (boxWidth > 0 && boxHeight > 0 && coordinate) {
26262
+ translateX = getTranslate({
26263
+ key: 'x',
26264
+ tooltipDimension: boxWidth,
26265
+ viewBoxDimension: viewBox.width
26266
+ });
26267
+ translateY = getTranslate({
26268
+ key: 'y',
26269
+ tooltipDimension: boxHeight,
26270
+ viewBoxDimension: viewBox.height
26271
+ });
26272
+ } else {
26273
+ outerStyle.visibility = 'hidden';
26274
+ }
26275
+ outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
26276
+ transform: useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
26277
+ })), outerStyle);
26278
+ if (isAnimationActive && active) {
26279
+ outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
26280
+ transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
26281
+ })), outerStyle);
26282
+ }
26283
+ var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
26284
+ return (
26285
+ /*#__PURE__*/
26286
+ // ESLint is disabled to allow listening to the `Escape` key. Refer to
26287
+ // https://github.com/recharts/recharts/pull/2925
26288
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
26289
+ React__default["default"].createElement("div", {
26290
+ tabIndex: -1,
26291
+ role: "dialog",
26292
+ className: cls,
26293
+ style: outerStyle,
26294
+ ref: wrapperNode
26295
+ }, renderContent(content, _objectSpread$i(_objectSpread$i({}, props), {}, {
26296
+ payload: finalPayload
26297
+ })))
26298
+ );
26299
+ };
26300
+
26301
+ // needs to be set so that renderByOrder can find the correct handler function
26302
+ Tooltip$1.displayName = 'Tooltip';
26303
+
26304
+ /**
26305
+ * needs to be set so that renderByOrder can access an have default values for
26306
+ * children.props when there are no props set by the consumer
26307
+ * doesn't work if using default parameters
26308
+ */
26309
+ Tooltip$1.defaultProps = tooltipDefaultProps;
26300
26310
 
26301
26311
  var root = _root;
26302
26312
 
@@ -31866,12 +31876,12 @@ module.exports = exports['default'];
31866
31876
 
31867
31877
  var reduceCSSCalc = /*@__PURE__*/getDefaultExportFromCjs(dist.exports);
31868
31878
 
31869
- function _typeof$l(obj) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$l(obj); }
31870
- function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31871
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$l(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31872
- function _defineProperty$l(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31873
- function _toPropertyKey$l(arg) { var key = _toPrimitive$l(arg, "string"); return _typeof$l(key) === "symbol" ? key : String(key); }
31874
- function _toPrimitive$l(input, hint) { if (_typeof$l(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$l(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31879
+ function _typeof$i(obj) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$i(obj); }
31880
+ function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31881
+ function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$i(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31882
+ function _defineProperty$i(obj, key, value) { key = _toPropertyKey$i(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31883
+ function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
31884
+ function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31875
31885
  function _toConsumableArray$7(arr) { return _arrayWithoutHoles$7(arr) || _iterableToArray$7(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$7(); }
31876
31886
  function _nonIterableSpread$7() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31877
31887
  function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
@@ -31939,7 +31949,7 @@ var getStringSize = function getStringSize(text) {
31939
31949
  }
31940
31950
  // Need to use CSS Object Model (CSSOM) to be able to comply with Content Security Policy (CSP)
31941
31951
  // https://en.wikipedia.org/wiki/Content_Security_Policy
31942
- var measurementSpanStyle = _objectSpread$k(_objectSpread$k({}, SPAN_STYLE), style);
31952
+ var measurementSpanStyle = _objectSpread$h(_objectSpread$h({}, SPAN_STYLE), style);
31943
31953
  Object.keys(measurementSpanStyle).map(function (styleKey) {
31944
31954
  measurementSpan.style[styleKey] = measurementSpanStyle[styleKey];
31945
31955
  return styleKey;
@@ -31994,11 +32004,10 @@ var calculateChartCoordinate = function calculateChartCoordinate(event, offset)
31994
32004
  };
31995
32005
  };
31996
32006
 
31997
- var _excluded$9 = ["x", "y", "lineHeight", "capHeight", "scaleToFit", "textAnchor", "verticalAnchor", "fill"],
31998
- _excluded2$3 = ["dx", "dy", "angle", "className", "breakAll"];
32007
+ var _excluded$7 = ["dx", "dy", "textAnchor", "verticalAnchor", "scaleToFit", "angle", "lineHeight", "capHeight", "className", "breakAll"];
31999
32008
  function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
32000
- function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32001
- function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
32009
+ function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32010
+ function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
32002
32011
  function _slicedToArray$5(arr, i) { return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _unsupportedIterableToArray$a(arr, i) || _nonIterableRest$5(); }
32003
32012
  function _nonIterableRest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32004
32013
  function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
@@ -32152,46 +32161,45 @@ var getWordsByLines = function getWordsByLines(_ref4) {
32152
32161
  }
32153
32162
  return getWordsWithoutCalculate(children);
32154
32163
  };
32155
- var DEFAULT_FILL = '#808080';
32156
- var Text = function Text(_ref5) {
32157
- var _ref5$x = _ref5.x,
32158
- propsX = _ref5$x === void 0 ? 0 : _ref5$x,
32159
- _ref5$y = _ref5.y,
32160
- propsY = _ref5$y === void 0 ? 0 : _ref5$y,
32161
- _ref5$lineHeight = _ref5.lineHeight,
32162
- lineHeight = _ref5$lineHeight === void 0 ? '1em' : _ref5$lineHeight,
32163
- _ref5$capHeight = _ref5.capHeight,
32164
- capHeight = _ref5$capHeight === void 0 ? '0.71em' : _ref5$capHeight,
32165
- _ref5$scaleToFit = _ref5.scaleToFit,
32166
- scaleToFit = _ref5$scaleToFit === void 0 ? false : _ref5$scaleToFit,
32167
- _ref5$textAnchor = _ref5.textAnchor,
32168
- textAnchor = _ref5$textAnchor === void 0 ? 'start' : _ref5$textAnchor,
32169
- _ref5$verticalAnchor = _ref5.verticalAnchor,
32170
- verticalAnchor = _ref5$verticalAnchor === void 0 ? 'end' : _ref5$verticalAnchor,
32171
- _ref5$fill = _ref5.fill,
32172
- fill = _ref5$fill === void 0 ? DEFAULT_FILL : _ref5$fill,
32173
- props = _objectWithoutProperties$9(_ref5, _excluded$9);
32164
+ var textDefaultProps = {
32165
+ x: 0,
32166
+ y: 0,
32167
+ lineHeight: '1em',
32168
+ capHeight: '0.71em',
32169
+ // Magic number from d3
32170
+ scaleToFit: false,
32171
+ textAnchor: 'start',
32172
+ verticalAnchor: 'end',
32173
+ // Maintain compat with existing charts / default SVG behavior
32174
+ fill: '#808080'
32175
+ };
32176
+ var Text = function Text(props) {
32174
32177
  var wordsByLines = React$3.useMemo(function () {
32175
32178
  return getWordsByLines({
32176
32179
  breakAll: props.breakAll,
32177
32180
  children: props.children,
32178
32181
  maxLines: props.maxLines,
32179
- scaleToFit: scaleToFit,
32182
+ scaleToFit: props.scaleToFit,
32180
32183
  style: props.style,
32181
32184
  width: props.width
32182
32185
  });
32183
- }, [props.breakAll, props.children, props.maxLines, scaleToFit, props.style, props.width]);
32186
+ }, [props.breakAll, props.children, props.maxLines, props.scaleToFit, props.style, props.width]);
32184
32187
  var dx = props.dx,
32185
32188
  dy = props.dy,
32189
+ textAnchor = props.textAnchor,
32190
+ verticalAnchor = props.verticalAnchor,
32191
+ scaleToFit = props.scaleToFit,
32186
32192
  angle = props.angle,
32193
+ lineHeight = props.lineHeight,
32194
+ capHeight = props.capHeight,
32187
32195
  className = props.className,
32188
32196
  breakAll = props.breakAll,
32189
- textProps = _objectWithoutProperties$9(props, _excluded2$3);
32190
- if (!isNumOrStr(propsX) || !isNumOrStr(propsY)) {
32197
+ textProps = _objectWithoutProperties$7(props, _excluded$7);
32198
+ if (!isNumOrStr(textProps.x) || !isNumOrStr(textProps.y)) {
32191
32199
  return null;
32192
32200
  }
32193
- var x = propsX + (isNumber(dx) ? dx : 0);
32194
- var y = propsY + (isNumber(dy) ? dy : 0);
32201
+ var x = textProps.x + (isNumber(dx) ? dx : 0);
32202
+ var y = textProps.y + (isNumber(dy) ? dy : 0);
32195
32203
  var startDy;
32196
32204
  switch (verticalAnchor) {
32197
32205
  case 'start':
@@ -32221,7 +32229,7 @@ var Text = function Text(_ref5) {
32221
32229
  y: y,
32222
32230
  className: classNames('recharts-text', className),
32223
32231
  textAnchor: textAnchor,
32224
- fill: fill.includes('url') ? DEFAULT_FILL : fill
32232
+ fill: textProps.fill.includes('url') ? textDefaultProps.fill : textProps.fill
32225
32233
  }), wordsByLines.map(function (line, index) {
32226
32234
  return (
32227
32235
  /*#__PURE__*/
@@ -32234,6 +32242,7 @@ var Text = function Text(_ref5) {
32234
32242
  );
32235
32243
  }));
32236
32244
  };
32245
+ Text.defaultProps = textDefaultProps;
32237
32246
 
32238
32247
  var baseIsEqual = _baseIsEqual;
32239
32248
 
@@ -38501,7 +38510,7 @@ function getTickValuesFixedDomainFn(_ref7, tickCount) {
38501
38510
  var getNiceTickValues = memoize(getNiceTickValuesFn);
38502
38511
  var getTickValuesFixedDomain = memoize(getTickValuesFixedDomainFn);
38503
38512
 
38504
- var _excluded$8 = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"];
38513
+ var _excluded$6 = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"];
38505
38514
  function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
38506
38515
  function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$7(arr, i) || _nonIterableRest$3(); }
38507
38516
  function _nonIterableRest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -38509,8 +38518,8 @@ function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o
38509
38518
  function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
38510
38519
  function _iterableToArrayLimit$3(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
38511
38520
  function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
38512
- function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38513
- function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
38521
+ function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38522
+ function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
38514
38523
  function ErrorBar(props) {
38515
38524
  var offset = props.offset,
38516
38525
  layout = props.layout,
@@ -38520,7 +38529,7 @@ function ErrorBar(props) {
38520
38529
  dataPointFormatter = props.dataPointFormatter,
38521
38530
  xAxis = props.xAxis,
38522
38531
  yAxis = props.yAxis,
38523
- others = _objectWithoutProperties$8(props, _excluded$8);
38532
+ others = _objectWithoutProperties$6(props, _excluded$6);
38524
38533
  var svgProps = filterProps(others);
38525
38534
  var errorBars = data.map(function (entry, i) {
38526
38535
  var _dataPointFormatter = dataPointFormatter(entry, dataKey),
@@ -38631,18 +38640,18 @@ ErrorBar.defaultProps = {
38631
38640
  };
38632
38641
  ErrorBar.displayName = 'ErrorBar';
38633
38642
 
38634
- function _typeof$k(obj) { "@babel/helpers - typeof"; return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$k(obj); }
38643
+ function _typeof$h(obj) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$h(obj); }
38635
38644
  function _toConsumableArray$4(arr) { return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$6(arr) || _nonIterableSpread$4(); }
38636
38645
  function _nonIterableSpread$4() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38637
38646
  function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
38638
38647
  function _iterableToArray$4(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
38639
38648
  function _arrayWithoutHoles$4(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$6(arr); }
38640
38649
  function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
38641
- function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38642
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$k(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38643
- function _defineProperty$k(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38644
- function _toPropertyKey$k(arg) { var key = _toPrimitive$k(arg, "string"); return _typeof$k(key) === "symbol" ? key : String(key); }
38645
- function _toPrimitive$k(input, hint) { if (_typeof$k(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$k(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
38650
+ function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38651
+ function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$h(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38652
+ function _defineProperty$h(obj, key, value) { key = _toPropertyKey$h(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38653
+ function _toPropertyKey$h(arg) { var key = _toPrimitive$h(arg, "string"); return _typeof$h(key) === "symbol" ? key : String(key); }
38654
+ function _toPrimitive$h(input, hint) { if (_typeof$h(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$h(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
38646
38655
  // TODO: Cause of circular dependency. Needs refactor.
38647
38656
  // import { RadiusAxisProps, AngleAxisProps } from '../polar/types';
38648
38657
  function getValueByDataKey(obj, dataKey, defaultValue) {
@@ -38813,7 +38822,7 @@ var getLegendProps = function getLegendProps(_ref2) {
38813
38822
  };
38814
38823
  });
38815
38824
  }
38816
- return _objectSpread$j(_objectSpread$j(_objectSpread$j({}, legendItem.props), Legend.getWithHeight(legendItem, legendWidth)), {}, {
38825
+ return _objectSpread$g(_objectSpread$g(_objectSpread$g({}, legendItem.props), Legend.getWithHeight(legendItem, legendWidth)), {}, {
38817
38826
  payload: legendData,
38818
38827
  item: legendItem
38819
38828
  });
@@ -38967,10 +38976,10 @@ var appendOffsetOfLegend = function appendOffsetOfLegend(offset, items, props, l
38967
38976
  verticalAlign = legendProps.verticalAlign,
38968
38977
  layout = legendProps.layout;
38969
38978
  if ((layout === 'vertical' || layout === 'horizontal' && verticalAlign === 'middle') && isNumber(offset[align])) {
38970
- newOffset = _objectSpread$j(_objectSpread$j({}, offset), {}, _defineProperty$k({}, align, newOffset[align] + (box.width || 0)));
38979
+ newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, align, newOffset[align] + (box.width || 0)));
38971
38980
  }
38972
38981
  if ((layout === 'horizontal' || layout === 'vertical' && align === 'center') && isNumber(offset[verticalAlign])) {
38973
- newOffset = _objectSpread$j(_objectSpread$j({}, offset), {}, _defineProperty$k({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
38982
+ newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
38974
38983
  }
38975
38984
  }
38976
38985
  return newOffset;
@@ -39396,14 +39405,14 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
39396
39405
  items: [item]
39397
39406
  };
39398
39407
  }
39399
- return _objectSpread$j(_objectSpread$j({}, result), {}, _defineProperty$k({}, axisId, parentGroup));
39408
+ return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, parentGroup));
39400
39409
  }, {});
39401
39410
  return Object.keys(stackGroups).reduce(function (result, axisId) {
39402
39411
  var group = stackGroups[axisId];
39403
39412
  if (group.hasStack) {
39404
39413
  group.stackGroups = Object.keys(group.stackGroups).reduce(function (res, stackId) {
39405
39414
  var g = group.stackGroups[stackId];
39406
- return _objectSpread$j(_objectSpread$j({}, res), {}, _defineProperty$k({}, stackId, {
39415
+ return _objectSpread$g(_objectSpread$g({}, res), {}, _defineProperty$h({}, stackId, {
39407
39416
  numericAxisId: numericAxisId,
39408
39417
  cateAxisId: cateAxisId,
39409
39418
  items: g.items,
@@ -39411,7 +39420,7 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
39411
39420
  }));
39412
39421
  }, {});
39413
39422
  }
39414
- return _objectSpread$j(_objectSpread$j({}, result), {}, _defineProperty$k({}, axisId, group));
39423
+ return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, group));
39415
39424
  }, {});
39416
39425
  };
39417
39426
 
@@ -39625,7 +39634,7 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
39625
39634
  formatter = _graphicalItem$props.formatter,
39626
39635
  tooltipType = _graphicalItem$props.tooltipType,
39627
39636
  chartType = _graphicalItem$props.chartType;
39628
- return _objectSpread$j(_objectSpread$j({}, filterProps(graphicalItem)), {}, {
39637
+ return _objectSpread$g(_objectSpread$g({}, filterProps(graphicalItem)), {}, {
39629
39638
  dataKey: dataKey,
39630
39639
  unit: unit,
39631
39640
  formatter: formatter,
@@ -39638,12 +39647,12 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
39638
39647
  });
39639
39648
  };
39640
39649
 
39641
- function _typeof$j(obj) { "@babel/helpers - typeof"; return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$j(obj); }
39642
- function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39643
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$j(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39644
- function _defineProperty$j(obj, key, value) { key = _toPropertyKey$j(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39645
- function _toPropertyKey$j(arg) { var key = _toPrimitive$j(arg, "string"); return _typeof$j(key) === "symbol" ? key : String(key); }
39646
- function _toPrimitive$j(input, hint) { if (_typeof$j(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$j(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39650
+ function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
39651
+ function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39652
+ function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39653
+ function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39654
+ function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
39655
+ function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39647
39656
  var RADIAN = Math.PI / 180;
39648
39657
  var radianToDegree = function radianToDegree(angleInRadian) {
39649
39658
  return angleInRadian * 180 / Math.PI;
@@ -39748,7 +39757,7 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
39748
39757
  inRange = formatAngle >= endAngle && formatAngle <= startAngle;
39749
39758
  }
39750
39759
  if (inRange) {
39751
- return _objectSpread$i(_objectSpread$i({}, sector), {}, {
39760
+ return _objectSpread$f(_objectSpread$f({}, sector), {}, {
39752
39761
  radius: radius,
39753
39762
  angle: reverseFormatAngleOfSetor(formatAngle, sector)
39754
39763
  });
@@ -39756,21 +39765,18 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
39756
39765
  return null;
39757
39766
  };
39758
39767
 
39759
- function _typeof$i(obj) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$i(obj); }
39760
- var _excluded$7 = ["offset"];
39768
+ function _typeof$f(obj) { "@babel/helpers - typeof"; return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$f(obj); }
39761
39769
  function _toConsumableArray$3(arr) { return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread$3(); }
39762
39770
  function _nonIterableSpread$3() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39763
39771
  function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
39764
39772
  function _iterableToArray$3(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
39765
39773
  function _arrayWithoutHoles$3(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$5(arr); }
39766
39774
  function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
39767
- function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
39768
- function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
39769
- function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39770
- function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$i(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39771
- function _defineProperty$i(obj, key, value) { key = _toPropertyKey$i(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39772
- function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
39773
- function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39775
+ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39776
+ function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$f(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39777
+ function _defineProperty$f(obj, key, value) { key = _toPropertyKey$f(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39778
+ function _toPropertyKey$f(arg) { var key = _toPrimitive$f(arg, "string"); return _typeof$f(key) === "symbol" ? key : String(key); }
39779
+ function _toPrimitive$f(input, hint) { if (_typeof$f(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$f(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39774
39780
  function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
39775
39781
  var getLabel = function getLabel(props) {
39776
39782
  var value = props.value,
@@ -39915,7 +39921,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39915
39921
  textAnchor: 'middle',
39916
39922
  verticalAnchor: verticalEnd
39917
39923
  };
39918
- return _objectSpread$h(_objectSpread$h({}, attrs), parentViewBox ? {
39924
+ return _objectSpread$e(_objectSpread$e({}, attrs), parentViewBox ? {
39919
39925
  height: Math.max(y - parentViewBox.y, 0),
39920
39926
  width: width
39921
39927
  } : {});
@@ -39927,7 +39933,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39927
39933
  textAnchor: 'middle',
39928
39934
  verticalAnchor: verticalStart
39929
39935
  };
39930
- return _objectSpread$h(_objectSpread$h({}, _attrs), parentViewBox ? {
39936
+ return _objectSpread$e(_objectSpread$e({}, _attrs), parentViewBox ? {
39931
39937
  height: Math.max(parentViewBox.y + parentViewBox.height - (y + height), 0),
39932
39938
  width: width
39933
39939
  } : {});
@@ -39939,7 +39945,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39939
39945
  textAnchor: horizontalEnd,
39940
39946
  verticalAnchor: 'middle'
39941
39947
  };
39942
- return _objectSpread$h(_objectSpread$h({}, _attrs2), parentViewBox ? {
39948
+ return _objectSpread$e(_objectSpread$e({}, _attrs2), parentViewBox ? {
39943
39949
  width: Math.max(_attrs2.x - parentViewBox.x, 0),
39944
39950
  height: height
39945
39951
  } : {});
@@ -39951,7 +39957,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39951
39957
  textAnchor: horizontalStart,
39952
39958
  verticalAnchor: 'middle'
39953
39959
  };
39954
- return _objectSpread$h(_objectSpread$h({}, _attrs3), parentViewBox ? {
39960
+ return _objectSpread$e(_objectSpread$e({}, _attrs3), parentViewBox ? {
39955
39961
  width: Math.max(parentViewBox.x + parentViewBox.width - _attrs3.x, 0),
39956
39962
  height: height
39957
39963
  } : {});
@@ -39961,7 +39967,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39961
39967
  height: height
39962
39968
  } : {};
39963
39969
  if (position === 'insideLeft') {
39964
- return _objectSpread$h({
39970
+ return _objectSpread$e({
39965
39971
  x: x + horizontalOffset,
39966
39972
  y: y + height / 2,
39967
39973
  textAnchor: horizontalStart,
@@ -39969,7 +39975,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39969
39975
  }, sizeAttrs);
39970
39976
  }
39971
39977
  if (position === 'insideRight') {
39972
- return _objectSpread$h({
39978
+ return _objectSpread$e({
39973
39979
  x: x + width - horizontalOffset,
39974
39980
  y: y + height / 2,
39975
39981
  textAnchor: horizontalEnd,
@@ -39977,7 +39983,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39977
39983
  }, sizeAttrs);
39978
39984
  }
39979
39985
  if (position === 'insideTop') {
39980
- return _objectSpread$h({
39986
+ return _objectSpread$e({
39981
39987
  x: x + width / 2,
39982
39988
  y: y + verticalOffset,
39983
39989
  textAnchor: 'middle',
@@ -39985,7 +39991,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39985
39991
  }, sizeAttrs);
39986
39992
  }
39987
39993
  if (position === 'insideBottom') {
39988
- return _objectSpread$h({
39994
+ return _objectSpread$e({
39989
39995
  x: x + width / 2,
39990
39996
  y: y + height - verticalOffset,
39991
39997
  textAnchor: 'middle',
@@ -39993,7 +39999,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39993
39999
  }, sizeAttrs);
39994
40000
  }
39995
40001
  if (position === 'insideTopLeft') {
39996
- return _objectSpread$h({
40002
+ return _objectSpread$e({
39997
40003
  x: x + horizontalOffset,
39998
40004
  y: y + verticalOffset,
39999
40005
  textAnchor: horizontalStart,
@@ -40001,7 +40007,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
40001
40007
  }, sizeAttrs);
40002
40008
  }
40003
40009
  if (position === 'insideTopRight') {
40004
- return _objectSpread$h({
40010
+ return _objectSpread$e({
40005
40011
  x: x + width - horizontalOffset,
40006
40012
  y: y + verticalOffset,
40007
40013
  textAnchor: horizontalEnd,
@@ -40009,7 +40015,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
40009
40015
  }, sizeAttrs);
40010
40016
  }
40011
40017
  if (position === 'insideBottomLeft') {
40012
- return _objectSpread$h({
40018
+ return _objectSpread$e({
40013
40019
  x: x + horizontalOffset,
40014
40020
  y: y + height - verticalOffset,
40015
40021
  textAnchor: horizontalStart,
@@ -40017,7 +40023,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
40017
40023
  }, sizeAttrs);
40018
40024
  }
40019
40025
  if (position === 'insideBottomRight') {
40020
- return _objectSpread$h({
40026
+ return _objectSpread$e({
40021
40027
  x: x + width - horizontalOffset,
40022
40028
  y: y + height - verticalOffset,
40023
40029
  textAnchor: horizontalEnd,
@@ -40025,14 +40031,14 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
40025
40031
  }, sizeAttrs);
40026
40032
  }
40027
40033
  if (isObject_1(position) && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) {
40028
- return _objectSpread$h({
40034
+ return _objectSpread$e({
40029
40035
  x: x + getPercentValue(position.x, width),
40030
40036
  y: y + getPercentValue(position.y, height),
40031
40037
  textAnchor: 'end',
40032
40038
  verticalAnchor: 'end'
40033
40039
  }, sizeAttrs);
40034
40040
  }
40035
- return _objectSpread$h({
40041
+ return _objectSpread$e({
40036
40042
  x: x + width / 2,
40037
40043
  y: y + height / 2,
40038
40044
  textAnchor: 'middle',
@@ -40042,13 +40048,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
40042
40048
  var isPolar = function isPolar(viewBox) {
40043
40049
  return 'cx' in viewBox && isNumber(viewBox.cx);
40044
40050
  };
40045
- function Label$3(_ref4) {
40046
- var _ref4$offset = _ref4.offset,
40047
- offset = _ref4$offset === void 0 ? 5 : _ref4$offset,
40048
- restProps = _objectWithoutProperties$7(_ref4, _excluded$7);
40049
- var props = _objectSpread$h({
40050
- offset: offset
40051
- }, restProps);
40051
+ function Label$3(props) {
40052
40052
  var viewBox = props.viewBox,
40053
40053
  position = props.position,
40054
40054
  value = props.value,
@@ -40085,6 +40085,9 @@ function Label$3(_ref4) {
40085
40085
  }), label);
40086
40086
  }
40087
40087
  Label$3.displayName = 'Label';
40088
+ Label$3.defaultProps = {
40089
+ offset: 5
40090
+ };
40088
40091
  var parseViewBox = function parseViewBox(props) {
40089
40092
  var cx = props.cx,
40090
40093
  cy = props.cy,
@@ -40239,9 +40242,8 @@ function last(array) {
40239
40242
 
40240
40243
  var last_1 = last;
40241
40244
 
40242
- function _typeof$h(obj) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$h(obj); }
40243
- var _excluded$6 = ["valueAccessor"],
40244
- _excluded2$2 = ["data", "dataKey", "clockWise", "id", "textBreakAll"];
40245
+ function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
40246
+ var _excluded$5 = ["data", "valueAccessor", "dataKey", "clockWise", "id", "textBreakAll"];
40245
40247
  function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2(); }
40246
40248
  function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
40247
40249
  function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
@@ -40249,26 +40251,26 @@ function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Sy
40249
40251
  function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$4(arr); }
40250
40252
  function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
40251
40253
  function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
40252
- function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40253
- function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$h(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40254
- function _defineProperty$h(obj, key, value) { key = _toPropertyKey$h(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40255
- function _toPropertyKey$h(arg) { var key = _toPrimitive$h(arg, "string"); return _typeof$h(key) === "symbol" ? key : String(key); }
40256
- function _toPrimitive$h(input, hint) { if (_typeof$h(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$h(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40257
- function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40258
- function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40259
- var defaultAccessor = function defaultAccessor(entry) {
40260
- return isArray_1(entry.value) ? last_1(entry.value) : entry.value;
40261
- };
40262
- function LabelList(_ref) {
40263
- var _ref$valueAccessor = _ref.valueAccessor,
40264
- valueAccessor = _ref$valueAccessor === void 0 ? defaultAccessor : _ref$valueAccessor,
40265
- restProps = _objectWithoutProperties$6(_ref, _excluded$6);
40266
- var data = restProps.data,
40267
- dataKey = restProps.dataKey,
40268
- clockWise = restProps.clockWise,
40269
- id = restProps.id,
40270
- textBreakAll = restProps.textBreakAll,
40271
- others = _objectWithoutProperties$6(restProps, _excluded2$2);
40254
+ function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40255
+ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40256
+ function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40257
+ function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
40258
+ function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40259
+ function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40260
+ function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40261
+ var defaultProps = {
40262
+ valueAccessor: function valueAccessor(entry) {
40263
+ return isArray_1(entry.value) ? last_1(entry.value) : entry.value;
40264
+ }
40265
+ };
40266
+ function LabelList(props) {
40267
+ var data = props.data,
40268
+ valueAccessor = props.valueAccessor,
40269
+ dataKey = props.dataKey,
40270
+ clockWise = props.clockWise,
40271
+ id = props.id,
40272
+ textBreakAll = props.textBreakAll,
40273
+ others = _objectWithoutProperties$5(props, _excluded$5);
40272
40274
  if (!data || !data.length) {
40273
40275
  return null;
40274
40276
  }
@@ -40284,7 +40286,7 @@ function LabelList(_ref) {
40284
40286
  index: index,
40285
40287
  value: value,
40286
40288
  textBreakAll: textBreakAll,
40287
- viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$g(_objectSpread$g({}, entry), {}, {
40289
+ viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$d(_objectSpread$d({}, entry), {}, {
40288
40290
  clockWise: clockWise
40289
40291
  })),
40290
40292
  key: "label-".concat(index) // eslint-disable-line react/no-array-index-key
@@ -40339,14 +40341,9 @@ function renderCallByParent(parentProps, data) {
40339
40341
  return [implicitLabelList].concat(_toConsumableArray$2(explicitChildren));
40340
40342
  }
40341
40343
  LabelList.renderCallByParent = renderCallByParent;
40344
+ LabelList.defaultProps = defaultProps;
40342
40345
 
40343
- function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
40344
40346
  function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
40345
- function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40346
- function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40347
- function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40348
- function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
40349
- function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40350
40347
  var getDeltaAngle = function getDeltaAngle(startAngle, endAngle) {
40351
40348
  var sign = mathSign(endAngle - startAngle);
40352
40349
  var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 359.999);
@@ -40487,19 +40484,7 @@ var getSectorWithCorner = function getSectorWithCorner(_ref3) {
40487
40484
  }
40488
40485
  return path;
40489
40486
  };
40490
- var defaultProps$1 = {
40491
- cx: 0,
40492
- cy: 0,
40493
- innerRadius: 0,
40494
- outerRadius: 0,
40495
- startAngle: 0,
40496
- endAngle: 0,
40497
- cornerRadius: 0,
40498
- forceCornerRadius: false,
40499
- cornerIsExternal: false
40500
- };
40501
- var Sector = function Sector(sectorProps) {
40502
- var props = _objectSpread$f(_objectSpread$f({}, defaultProps$1), sectorProps);
40487
+ var Sector = function Sector(props) {
40503
40488
  var cx = props.cx,
40504
40489
  cy = props.cy,
40505
40490
  innerRadius = props.innerRadius,
@@ -40545,14 +40530,25 @@ var Sector = function Sector(sectorProps) {
40545
40530
  role: "img"
40546
40531
  }));
40547
40532
  };
40533
+ Sector.defaultProps = {
40534
+ cx: 0,
40535
+ cy: 0,
40536
+ innerRadius: 0,
40537
+ outerRadius: 0,
40538
+ startAngle: 0,
40539
+ endAngle: 0,
40540
+ cornerRadius: 0,
40541
+ forceCornerRadius: false,
40542
+ cornerIsExternal: false
40543
+ };
40548
40544
 
40549
- function _typeof$f(obj) { "@babel/helpers - typeof"; return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$f(obj); }
40545
+ function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
40550
40546
  function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
40551
- function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40552
- function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$f(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40553
- function _defineProperty$f(obj, key, value) { key = _toPropertyKey$f(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40554
- function _toPropertyKey$f(arg) { var key = _toPrimitive$f(arg, "string"); return _typeof$f(key) === "symbol" ? key : String(key); }
40555
- function _toPrimitive$f(input, hint) { if (_typeof$f(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$f(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40547
+ function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40548
+ function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40549
+ function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40550
+ function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
40551
+ function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40556
40552
  var CURVE_FACTORIES = {
40557
40553
  curveBasisClosed: curveBasisClosed,
40558
40554
  curveBasisOpen: curveBasisOpen,
@@ -40592,14 +40588,11 @@ var getCurveFactory = function getCurveFactory(type, layout) {
40592
40588
  * @return {String} path
40593
40589
  */
40594
40590
  var getPath$1 = function getPath(_ref) {
40595
- var _ref$type = _ref.type,
40596
- type = _ref$type === void 0 ? 'linear' : _ref$type,
40597
- _ref$points = _ref.points,
40598
- points = _ref$points === void 0 ? [] : _ref$points,
40591
+ var type = _ref.type,
40592
+ points = _ref.points,
40599
40593
  baseLine = _ref.baseLine,
40600
40594
  layout = _ref.layout,
40601
- _ref$connectNulls = _ref.connectNulls,
40602
- connectNulls = _ref$connectNulls === void 0 ? false : _ref$connectNulls;
40595
+ connectNulls = _ref.connectNulls;
40603
40596
  var curveFactory = getCurveFactory(type, layout);
40604
40597
  var formatPoints = connectNulls ? points.filter(function (entry) {
40605
40598
  return defined(entry);
@@ -40610,7 +40603,7 @@ var getPath$1 = function getPath(_ref) {
40610
40603
  return defined(base);
40611
40604
  }) : baseLine;
40612
40605
  var areaPoints = formatPoints.map(function (entry, index) {
40613
- return _objectSpread$e(_objectSpread$e({}, entry), {}, {
40606
+ return _objectSpread$c(_objectSpread$c({}, entry), {}, {
40614
40607
  base: formatBaseLine[index]
40615
40608
  });
40616
40609
  });
@@ -40651,8 +40644,12 @@ var Curve = function Curve(props) {
40651
40644
  ref: pathRef
40652
40645
  }));
40653
40646
  };
40647
+ Curve.defaultProps = {
40648
+ type: 'linear',
40649
+ points: [],
40650
+ connectNulls: false
40651
+ };
40654
40652
 
40655
- function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
40656
40653
  function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
40657
40654
  function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2(); }
40658
40655
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -40660,11 +40657,6 @@ function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o
40660
40657
  function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
40661
40658
  function _iterableToArrayLimit$2(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
40662
40659
  function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
40663
- function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40664
- function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40665
- function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40666
- function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
40667
- function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40668
40660
  var getRectanglePath = function getRectanglePath(x, y, width, height, radius) {
40669
40661
  var maxRadius = Math.min(Math.abs(width) / 2, Math.abs(height) / 2);
40670
40662
  var ySign = height >= 0 ? 1 : -1;
@@ -40720,29 +40712,13 @@ var isInRectangle = function isInRectangle(point, rect) {
40720
40712
  }
40721
40713
  return false;
40722
40714
  };
40723
- var defaultProps = {
40724
- x: 0,
40725
- y: 0,
40726
- width: 0,
40727
- height: 0,
40728
- // The radius of border
40729
- // The radius of four corners when radius is a number
40730
- // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
40731
- radius: 0,
40732
- isAnimationActive: false,
40733
- isUpdateAnimationActive: false,
40734
- animationBegin: 0,
40735
- animationDuration: 1500,
40736
- animationEasing: 'ease'
40737
- };
40738
- var Rectangle = function Rectangle(rectangleProps) {
40739
- var props = _objectSpread$d(_objectSpread$d({}, defaultProps), rectangleProps);
40715
+ var Rectangle = function Rectangle(props) {
40740
40716
  var pathRef = React$3.useRef();
40741
40717
  var _useState = React$3.useState(-1),
40742
40718
  _useState2 = _slicedToArray$2(_useState, 2),
40743
40719
  totalLength = _useState2[0],
40744
40720
  setTotalLength = _useState2[1];
40745
- React$3.useEffect(function () {
40721
+ React$3.useLayoutEffect(function () {
40746
40722
  if (pathRef.current && pathRef.current.getTotalLength) {
40747
40723
  try {
40748
40724
  var pathTotalLength = pathRef.current.getTotalLength();
@@ -40813,6 +40789,21 @@ var Rectangle = function Rectangle(rectangleProps) {
40813
40789
  })));
40814
40790
  });
40815
40791
  };
40792
+ Rectangle.defaultProps = {
40793
+ x: 0,
40794
+ y: 0,
40795
+ width: 0,
40796
+ height: 0,
40797
+ // The radius of border
40798
+ // The radius of four corners when radius is a number
40799
+ // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
40800
+ radius: 0,
40801
+ isAnimationActive: false,
40802
+ isUpdateAnimationActive: false,
40803
+ animationBegin: 0,
40804
+ animationDuration: 1500,
40805
+ animationEasing: 'ease'
40806
+ };
40816
40807
 
40817
40808
  function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
40818
40809
  var Dot$1 = function Dot(props) {
@@ -40832,42 +40823,18 @@ var Dot$1 = function Dot(props) {
40832
40823
  return null;
40833
40824
  };
40834
40825
 
40835
- function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
40836
- var _excluded$5 = ["x", "y", "top", "left", "width", "height", "className"];
40837
40826
  function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
40838
- function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40839
- function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40840
- function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40841
- function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
40842
- function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40843
- function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40844
- function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40845
40827
  var getPath = function getPath(x, y, width, height, top, left) {
40846
40828
  return "M".concat(x, ",").concat(top, "v").concat(height, "M").concat(left, ",").concat(y, "h").concat(width);
40847
40829
  };
40848
- var Cross = function Cross(_ref) {
40849
- var _ref$x = _ref.x,
40850
- x = _ref$x === void 0 ? 0 : _ref$x,
40851
- _ref$y = _ref.y,
40852
- y = _ref$y === void 0 ? 0 : _ref$y,
40853
- _ref$top = _ref.top,
40854
- top = _ref$top === void 0 ? 0 : _ref$top,
40855
- _ref$left = _ref.left,
40856
- left = _ref$left === void 0 ? 0 : _ref$left,
40857
- _ref$width = _ref.width,
40858
- width = _ref$width === void 0 ? 0 : _ref$width,
40859
- _ref$height = _ref.height,
40860
- height = _ref$height === void 0 ? 0 : _ref$height,
40861
- className = _ref.className,
40862
- rest = _objectWithoutProperties$5(_ref, _excluded$5);
40863
- var props = _objectSpread$c({
40864
- x: x,
40865
- y: y,
40866
- top: top,
40867
- left: left,
40868
- width: width,
40869
- height: height
40870
- }, rest);
40830
+ var Cross = function Cross(props) {
40831
+ var x = props.x,
40832
+ y = props.y,
40833
+ width = props.width,
40834
+ height = props.height,
40835
+ top = props.top,
40836
+ left = props.left,
40837
+ className = props.className;
40871
40838
  if (!isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || !isNumber(top) || !isNumber(left)) {
40872
40839
  return null;
40873
40840
  }
@@ -40876,6 +40843,14 @@ var Cross = function Cross(_ref) {
40876
40843
  d: getPath(x, y, width, height, top, left)
40877
40844
  }));
40878
40845
  };
40846
+ Cross.defaultProps = {
40847
+ x: 0,
40848
+ y: 0,
40849
+ top: 0,
40850
+ left: 0,
40851
+ width: 0,
40852
+ height: 0
40853
+ };
40879
40854
 
40880
40855
  /* Built-in method references for those with the same name as other `lodash` methods. */
40881
40856
 
@@ -41085,7 +41060,6 @@ var createScale = function createScale(_ref) {
41085
41060
  isTextActive: false,
41086
41061
  isSlideMoving: false,
41087
41062
  isTravellerMoving: false,
41088
- isTravellerFocused: false,
41089
41063
  startX: scale(startIndex),
41090
41064
  endX: scale(endIndex),
41091
41065
  scale: scale,
@@ -41299,38 +41273,6 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41299
41273
  }
41300
41274
  });
41301
41275
  }
41302
- }, {
41303
- key: "handleTravellerMoveKeyboard",
41304
- value: function handleTravellerMoveKeyboard(direction, id) {
41305
- var _this2 = this;
41306
- // scaleValues are a list of coordinates. For example: [65, 250, 435, 620, 805, 990].
41307
- var _this$state3 = this.state,
41308
- scaleValues = _this$state3.scaleValues,
41309
- startX = _this$state3.startX,
41310
- endX = _this$state3.endX;
41311
- // currentScaleValue refers to which coordinate the current traveller should be placed at.
41312
- var currentScaleValue = this.state[id];
41313
- var currentIndex = scaleValues.indexOf(currentScaleValue);
41314
- if (currentIndex === -1) {
41315
- return;
41316
- }
41317
- var newIndex = currentIndex + direction;
41318
- if (newIndex === -1 || newIndex >= scaleValues.length) {
41319
- return;
41320
- }
41321
- var newScaleValue = scaleValues[newIndex];
41322
-
41323
- // Prevent travellers from being on top of each other or overlapping
41324
- if (id === 'startX' && newScaleValue >= endX || id === 'endX' && newScaleValue <= startX) {
41325
- return;
41326
- }
41327
- this.setState(_defineProperty$b({}, id, newScaleValue), function () {
41328
- _this2.props.onChange(_this2.getIndex({
41329
- startX: _this2.state.startX,
41330
- endX: _this2.state.endX
41331
- }));
41332
- });
41333
- }
41334
41276
  }, {
41335
41277
  key: "renderBackground",
41336
41278
  value: function renderBackground() {
@@ -41378,7 +41320,6 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41378
41320
  }, {
41379
41321
  key: "renderTravellerLayer",
41380
41322
  value: function renderTravellerLayer(travellerX, id) {
41381
- var _this3 = this;
41382
41323
  var _this$props7 = this.props,
41383
41324
  y = _this$props7.y,
41384
41325
  travellerWidth = _this$props7.travellerWidth,
@@ -41392,31 +41333,11 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41392
41333
  height: height
41393
41334
  });
41394
41335
  return /*#__PURE__*/React__default["default"].createElement(Layer, {
41395
- tabIndex: 0,
41396
- role: "slider",
41397
41336
  className: "recharts-brush-traveller",
41398
41337
  onMouseEnter: this.handleEnterSlideOrTraveller,
41399
41338
  onMouseLeave: this.handleLeaveSlideOrTraveller,
41400
41339
  onMouseDown: this.travellerDragStartHandlers[id],
41401
41340
  onTouchStart: this.travellerDragStartHandlers[id],
41402
- onKeyDown: function onKeyDown(e) {
41403
- if (!['ArrowLeft', 'ArrowRight'].includes(e.key)) {
41404
- return;
41405
- }
41406
- e.preventDefault();
41407
- e.stopPropagation();
41408
- _this3.handleTravellerMoveKeyboard(e.key === 'ArrowRight' ? 1 : -1, id);
41409
- },
41410
- onFocus: function onFocus() {
41411
- _this3.setState({
41412
- isTravellerFocused: true
41413
- });
41414
- },
41415
- onBlur: function onBlur() {
41416
- _this3.setState({
41417
- isTravellerFocused: false
41418
- });
41419
- },
41420
41341
  style: {
41421
41342
  cursor: 'col-resize'
41422
41343
  }
@@ -41460,9 +41381,9 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41460
41381
  height = _this$props9.height,
41461
41382
  travellerWidth = _this$props9.travellerWidth,
41462
41383
  stroke = _this$props9.stroke;
41463
- var _this$state4 = this.state,
41464
- startX = _this$state4.startX,
41465
- endX = _this$state4.endX;
41384
+ var _this$state3 = this.state,
41385
+ startX = _this$state3.startX,
41386
+ endX = _this$state3.endX;
41466
41387
  var offset = 5;
41467
41388
  var attrs = {
41468
41389
  pointerEvents: 'none',
@@ -41494,13 +41415,12 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41494
41415
  width = _this$props10.width,
41495
41416
  height = _this$props10.height,
41496
41417
  alwaysShowText = _this$props10.alwaysShowText;
41497
- var _this$state5 = this.state,
41498
- startX = _this$state5.startX,
41499
- endX = _this$state5.endX,
41500
- isTextActive = _this$state5.isTextActive,
41501
- isSlideMoving = _this$state5.isSlideMoving,
41502
- isTravellerMoving = _this$state5.isTravellerMoving,
41503
- isTravellerFocused = _this$state5.isTravellerFocused;
41418
+ var _this$state4 = this.state,
41419
+ startX = _this$state4.startX,
41420
+ endX = _this$state4.endX,
41421
+ isTextActive = _this$state4.isTextActive,
41422
+ isSlideMoving = _this$state4.isSlideMoving,
41423
+ isTravellerMoving = _this$state4.isTravellerMoving;
41504
41424
  if (!data || !data.length || !isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || width <= 0 || height <= 0) {
41505
41425
  return null;
41506
41426
  }
@@ -41512,7 +41432,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41512
41432
  onMouseLeave: this.handleLeaveWrapper,
41513
41433
  onTouchMove: this.handleTouchMove,
41514
41434
  style: style
41515
- }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving || isTravellerFocused || alwaysShowText) && this.renderText());
41435
+ }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving || alwaysShowText) && this.renderText());
41516
41436
  }
41517
41437
  }], [{
41518
41438
  key: "renderDefaultTraveller",
@@ -41830,7 +41750,7 @@ function every(collection, predicate, guard) {
41830
41750
 
41831
41751
  var every_1 = every;
41832
41752
 
41833
- var defineProperty = _defineProperty$o;
41753
+ var defineProperty = _defineProperty$l;
41834
41754
 
41835
41755
  /**
41836
41756
  * The base implementation of `assignValue` and `assignMergeValue` without
@@ -42191,6 +42111,7 @@ _defineProperty$a(Bar, "defaultProps", {
42191
42111
  legendType: 'rect',
42192
42112
  minPointSize: 0,
42193
42113
  hide: false,
42114
+ // data of bar
42194
42115
  data: [],
42195
42116
  layout: 'vertical',
42196
42117
  isAnimationActive: !Global.isSsr,
@@ -45103,11 +45024,10 @@ var AccessibilityManager = /*#__PURE__*/function () {
45103
45024
  }
45104
45025
  var _this$container$getBo = this.container.getBoundingClientRect(),
45105
45026
  x = _this$container$getBo.x,
45106
- y = _this$container$getBo.y,
45107
- height = _this$container$getBo.height;
45027
+ y = _this$container$getBo.y;
45108
45028
  var coordinate = this.coordinateList[this.activeIndex].coordinate;
45109
45029
  var pageX = x + coordinate;
45110
- var pageY = y + this.offset.top + height / 2;
45030
+ var pageY = y + this.offset.top;
45111
45031
  this.mouseHandlerCallback({
45112
45032
  pageX: pageX,
45113
45033
  pageY: pageY